This file contains hidden or 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
#extracted from .travis.yml | |
mkdir -p "$HOME"/.local/lib/python2.7/site-packages | |
export PATH="$HOME/.local/bin:$PATH" | |
export PYTHONPATH="$HOME"/.local/lib/python2.7/site-packages:"$PYTHONPATH" | |
# travis_retry make node_modules | |
export DISPLAY=:99.0 | |
sh -e /etc/init.d/xvfb start |
This file contains hidden or 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
var Class = function(parent){ | |
var klass = function(){ | |
this.init.apply(this, arguments); | |
}; | |
// Change klass' prototype | |
if (parent) { | |
var subclass = function() { }; | |
subclass.prototype = parent.prototype; | |
klass.prototype = new subclass; |
This file contains hidden or 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
// follow the same step in the following link to add pref, | |
// https://developer.mozilla.org/en-US/Firefox_OS/Using_the_App_Manager#Debugging_Certified_Apps_2 | |
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1001348 for details. | |
echo 'user_pref("javascript.options.discardSystemSource", false);' >> prefs.js | |
// and this, if you want to debug certified app | |
echo 'user_pref("devtools.debugger.forbid-certified-apps", false);' >> prefs.js |
This file contains hidden or 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
Download file: https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/nightly/mozilla-central-hamachi-eng/latest/gaia.zip | |
WGET: -P /var/folders/g8/_gfsy_r14870m89nlsv677zh0000gn/T/autoflashfromPVT.XXXXXXXXXXXX.R3fETS5h https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/nightly/mozilla-central-hamachi-eng/latest/gaia.zip | |
--2013-11-28 10:53:48-- https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/nightly/mozilla-central-hamachi-eng/latest/gaia.zip | |
Resolving pvtbuilds.mozilla.org... 63.245.215.32 | |
Connecting to pvtbuilds.mozilla.org|63.245.215.32|:443... connected. | |
HTTP request sent, awaiting response... 401 Authorization Required | |
Reusing existing connection to pvtbuilds.mozilla.org:443. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 57629810 (55M) [application/zip] | |
Saving to: ‘/var/folders/g8/_gfsy_r14870m89nlsv677zh0000gn/T/autoflashfromPVT.XXXXXXXXXXXX.R3fETS5h/gaia.zip’ |
This file contains hidden or 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
<html> | |
<audio src='sound/test.ogg' controls /> | |
</html> |
This file contains hidden or 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
<html> | |
<head> | |
<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | |
<script src="strophe-102.js" type="text/javascript"></script> | |
<script src="facebook.js" type="text/javascript"></script> | |
<script> | |
var BOSH_SERVICE = 'http://island.csie.org:8273/xmpp-httpbind' | |
var connection = null; |
This file contains hidden or 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/apps/system/js/value_selector/value_selector.js b/apps/system/js/value_selector/value_selector.js | |
index 3d9012e..98d86d6 100644 | |
--- a/apps/system/js/value_selector/value_selector.js | |
+++ b/apps/system/js/value_selector/value_selector.js | |
@@ -1,4 +1,4 @@ | |
-/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | |
+/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | |
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | |
'use strict'; |
This file contains hidden or 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 -r b5c4b792f3f2 b2g/chrome/content/forms.js | |
--- a/b2g/chrome/content/forms.js Mon Jul 30 17:20:58 2012 +0300 | |
+++ b/b2g/chrome/content/forms.js Mon Jul 30 16:08:55 2012 -0700 | |
@@ -61,6 +61,7 @@ | |
content.setTimeout(function showIMEForSelect() { | |
sendAsyncMessage("Forms:Input", getJSON(evt.target)); | |
}); | |
+ this.previousTarget = evt.target; | |
} else if (evt.target instanceof HTMLOptionElement && | |
evt.target.parentNode instanceof HTMLSelectElement) { |
This file contains hidden or 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
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | |
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | |
'use strict'; | |
// Duplicated code in several places | |
// TODO Better settings observe interface? | |
if (!window.navigator.mozKeyboard) { |