This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/run b/run | |
index 9ff275b..308dd0b 100755 | |
--- a/run | |
+++ b/run | |
@@ -44,4 +44,4 @@ print "You can also try other scripts such as ./run ui/thumbnails/index.html" | |
# now let's run the cfx thingy and specify the app-kit main module | |
# as our starting point | |
-os.system("impl/bin/cfx -a xulrunner -t ./template/app-extension --static-args {\\\"browser\\\":\\\""+ browserToLaunch+"\\\"} -p \"impl/packages/chromeless\" run") | |
+os.system("impl/bin/cfx -a xulrunner -t ./template/app-extension --static-args {\\\"browser\\\":\\\""+ browserToLaunch+"\\\"} -p \"impl/packages/chromeless\" --binary /Applications/Firefox.app run") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
from smtpd import SMTPChannel, SMTPServer | |
import asyncore | |
class LMTPChannel(SMTPChannel): | |
# LMTP "LHLO" command is routed to the SMTP/ESMTP command | |
def smtp_LHLO(self, arg): | |
self.smtp_HELO(arg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// default to the local dev redis environment | |
var port = 6379; | |
var host = "127.0.0.1"; | |
var password = null; | |
// Check if we're running in the hosted VCAP environment instead of the localhost dev | |
if (process.env.VCAP_SERVICES){ | |
var srv = null, credentials = null; | |
try { | |
srv = JSON.parse(process.env.VCAP_SERVICES); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { CC, Ci } = require('chrome'); | |
const { when: unload } = require('sdk/system/unload'); | |
var ios = Cc['@mozilla.org/network/io-service;1'].getService(Ci.nsIIOService); | |
/* Helper that registers style sheets and remembers to unregister on unload */ | |
exports.addXULStylesheet = function addXULStylesheet(url) { | |
var uri = newURI(url); | |
var sss = Cc["@mozilla.org/content/style-sheet-service;1"] | |
.getService(Ci.nsIStyleSheetService); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findStylesheet(document, name) { | |
var uri = data.url(name + ".css"), | |
css = "href=\"" + uri + "\" type=\"text/css\"", | |
ORDERED_NODE_SNAPSHOT_TYPE = 7, // XPathResult doesn't exist in context | |
xpath = null; | |
xpath = document.evaluate("//processing-instruction(\"xml-stylesheet\")", | |
document, | |
document.createNSResolver(document), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Gemfile b/Gemfile | |
index 6966c65..59e7dc3 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -34,6 +34,7 @@ gem "omniauth-openid" | |
gem "openid-redis-store" | |
gem "omniauth-facebook" | |
gem "omniauth-twitter" | |
+gem "omniauth-persona" | |
gem 'oj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bryan: | |
email: [email protected] | |
encrypted_password: <%= User.new.send(:password_digest, '1234567890') %> | |
confirmed_at: <%= Time.zone.now - 1.hour %> | |
confirmation_sent_at: <%= Time.zone.now - 2.hours %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fakeweb' | |
require 'yaml' | |
Rails.logger.info "Using FakeWeb: #{GeoNamesAPI.url}::#{GeoNamesAPI.username}" | |
# expects a fixture with the following geonames data format: | |
# 42.93,-71.43: | |
# json: > | |
# { "time": "2014-01-12 12:41", "countryName": "United States", "sunset": "2014-01-12 16:33", | |
# "rawOffset": -5, "dstOffset": -4, "countryCode": "US", "gmtOffset": -5, "lng": -71.43, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit(e) { | |
// https://code.google.com/p/google-apps-script-issues/issues/detail?id=2521 | |
// var e = { range: SpreadsheetApp.getActiveRange(), value : "bug 972929" }; | |
function fetchBug(bugNumber) { | |
var url = "https://api-dev.bugzilla.mozilla.org/latest/bug/" + bugNumber; | |
var parameters = {}; | |
var response = UrlFetchApp.fetch(url, parameters); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2012-2014 RedBearLab | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
OlderNewer