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
// Should make it a sliding drawer | |
document.getElementById("sideBarPanel").style.display = "none"; |
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 { Ci, Cc, Cu } = require("chrome"); | |
Cu.import("resource://gre/modules/Services.jsm", this); | |
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this); | |
function AutoCompleteInput(aSearches) { | |
this.searches = aSearches; | |
} | |
AutoCompleteInput.prototype = { |
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
/* | |
Module for searching available commands in the browser. | |
Allows searching and execution of commands in Firefox, such as | |
'Back', 'Zoom In', 'Reload'. | |
Example that adds buttons to the add-on bar for every command, | |
which trigger the command when clicked: |
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
/** | |
* Module for using an external editor. | |
* | |
* Example where the user will be prompted for the path | |
* to their editor of choice. The callback is passed the | |
* entirety of the changed contents, whenever a change is | |
* detected. | |
* | |
* const extEditor = require("ext-editor"); | |
* |
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
exports.setURI = function setURI(uri) { | |
let window = require("window-utils").activeWindow; | |
// Make BrowserOpenTab point to the new tab uri instead of about:blank | |
window.eval(window.BrowserOpenTab.toSource().replace(/about:blank/g, uri)); | |
// Clear out the new tab url | |
window.eval(window.URLBarSetURI.toSource().replace(/}$/, 'if (gURLBar.value == "' + uri + '") gURLBar.value = ""; $&')); | |
}; |
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"); | |
function base64encode(str) { | |
var wm = Cc["@mozilla.org/appshell/window-mediator;1"]. | |
getService(Ci.nsIWindowMediator); | |
return wm.getMostRecentWindow("navigator:browser").btoa(str); | |
} |
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
Sample code: | |
Pouch('idb://test', function(err, db) { | |
if (!err) | |
console.log('DB OPENED', db) | |
else | |
console.log('ERROR OPENING DB', err); | |
}); | |
[22:36:45.849] ERROR OPENING DB ({status:500, error:"error", reason:({})}) @ http://localhost/pouch.html:75 |
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
javascript:document.location='http://jlebar.github.com/transitively-blocking/?'+document.title.substr(0,6) |
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
Blocking-. We have to focus on stabilization and fixing of functional bugs, see https://wiki.mozilla.org/B2G/V1StabilizationPhase. | |
Once the functional issues are fixed, if a patch becomes available for this issue and it has tests and passes the smoketest, file it at https://bugzilla.mozilla.org/enter_bug.cgi?product=Boot2Gecko&component=Gaia and ask for driver approval. |
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 |
OlderNewer