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
/chrome.manifest: | |
component {a5d89cee-85f4-44ad-b8eb-39ad39170823} components/helloworldapi.js | |
contract @mozilla.org/helloworld;1 {a5d89cee-85f4-44ad-b8eb-39ad39170823} | |
category JavaScript-navigator-property helloworld @mozilla.org/helloworld;1 | |
/components/helloworldapi.js: | |
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); |
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
/* | |
Quick and easy conversion of nodelist to array. | |
You're on your own for error handling - invalid selectors throw an exception! | |
Example: | |
qsa['.fooble'].forEach(function(node) { | |
// do stuff |
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
if (navigator.mozSetMessageHandler) { | |
function NFCActivityHandler(activity) { | |
var text = activity.source.data.text; | |
if (!text) { | |
updateText('No text record') | |
} | |
else if (text.indexOf('bcm:') === 0) { | |
var email = text.substr(4) | |
registerRider(email) | |
updateText('Registered ' + email) |
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
Firefox OS News Reader | |
Software Requirements Document | |
(Draft 1, May 2014) | |
Christopher Behrens, Randal Holmes, Nhan Huynh, | |
Michael Kuvelas, Mike Messuri-Zhang, Jeremy Sample, Josh Willhite | |
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
<div id="myElement">asdfa</div> | |
<script> | |
var element = document.querySelector('#myElement') | |
element.addEventListener('dblclick', makeEditable, false) | |
function makeEditable(e) { | |
var editable = e.target, | |
input = document.createElement('input') | |
input.value = editable.textContent |
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
# cleanup | |
rm -rf objdir-gecko && rm -rf out | |
# .userconfig | |
export BRANCH=master | |
export HIDPI=1 | |
export NOFTU=1 | |
# configure |
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 installAppFromManifestObj(obj) { | |
//const {Cc, Ci, Cu, Cm} = require('chrome') | |
var Cu = Components.utils | |
Cu.import("resource://gre/modules/WebappsInstaller.jsm") | |
var installParam = { | |
app: { | |
manifest : obj, | |
origin: obj.url | |
} | |
} |
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
<button id="signin">Sign in</button> | |
<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase.js'></script> | |
<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase-simple-login.js'></script> | |
<script type='text/javascript' src='https://login.persona.org/include.js'></script> | |
<script type='text/javascript'> | |
var chatRef = new Firebase('https://SampleChat.firebaseIO-demo.com'), | |
signedIn = false |
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
Drag this link to your bookmarks toolbar. You can click it when on a Github account page to quickly tip someone when you use their code or like their project! | |
<a href="javascript:window.location = 'https://www.gittip.com/on/github/' + document.URL.split('/').pop()">Gittip!</a> |
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
squirple:bugdata dietrich$ jitsu deploy | |
path.existsSync is now called `fs.existsSync`. | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in start.js | |
warn: Creating new snapshot for version 0.0.1-1 | |
info: Done creating snapshot 0.0.1-1 | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error |