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
/** | |
* @fileOverview JSDeferred flavoured Promise.jsm | |
* @author piro.outsider.reflex@gmail.com | |
* @version 0.1 | |
* @license | |
* JSDeferred flavoured Promise.jsm Copyright (c) 2014 YUKI "Piro" Hiroshi | |
* JSDeferred Copyright (c) 2007 cho45 ( www.lowreal.net ) | |
* | |
* Original: http://github.com/cho45/jsdeferred | |
* |
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
#!/usr/bin/env ruby | |
# | |
# Mork Dumper, based on the CPAN module "Mozilla::Mork" | |
# http://search.cpan.org/~kript/Mozilla-Mork-0.01/lib/Mozilla/Mork.pm | |
# | |
# description: | |
# "Mork" is a format of Mozilla's internal data files, like | |
# summary files (*.msf) of Thunderbird. This command reports | |
# all contents of the specified Mork file as a JSON string. | |
# |
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
{ | |
"id": 01234, | |
"type": "select", | |
"date": "2014-12-16T00:00:00Z", | |
"from": "client0:10031/droonga", | |
"replyTo": "client0:10031/droonga", | |
"dataset": "Default", | |
"body": { "table": "Stores", | |
"output_columns": "name", | |
"limit": 10 } |
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
{ "version": 3, | |
"datasets": { | |
"Default": { | |
"volume": { "replicas": [ | |
{ "slices": [ | |
{ "volume": { "replicas": [ | |
{ "address": "node0:10031/droonga.000" }, | |
{ "address": "node1:10031/droonga.000" } | |
] } }, | |
{ "volume": { "replicas": [ |
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
<!DOCTYPE html> | |
<title>link to local file</title> | |
<a href="file:///c:/windows/">c:\windows\</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
With the prefs: | |
group bar = 0 | |
tab bar = 1 |
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
Components.utils.import('resource://gre/modules/Services.jsm');var text=[];for (var row of Services.wm.getMostRecentWindow('global:console').document.getElementById('ConsoleBox').mConsoleRowBox.children) { if (row.boxObject.height > 0) { text.push(row.toString()); } }; Components.classes['@mozilla.org/widget/clipboardhelper;1'].getService(Components.interfaces.nsIClipboardHelper).copyString(text.join('\n---\n')); |
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
/** | |
* Original: | |
* http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/nsBlocklistService.js?raw=1 | |
* Usage: | |
* 1. Go to "about:config" and turn "devtools.chrome.enabled" to "true". | |
* 2. Start "Scratchpad" with Shift-F4. | |
* 3. Change the context from "web page" to "browser". | |
* 4. Copy this script and paste to the scratchpad. | |
* 5. Run it. | |
* Sample result: |
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
var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas'); | |
canvas.width = 100; | |
canvas.height = 100; | |
canvas.setAttribute('style', 'width:100px;height:100px;position:fixed;top:0;right:0;z-index:10000;'); | |
document.documentElement.appendChild(canvas); | |
var context = canvas.getContext('2d'); | |
function random(max) { | |
return parseInt(Math.random() * max); | |
} |
OlderNewer