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
| 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 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
| <!DOCTYPE html> | |
| <title>link to local file</title> | |
| <a href="file:///c:/windows/">c:\windows\</a> |
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
| { "version": 3, | |
| "datasets": { | |
| "Default": { | |
| "volume": { "replicas": [ | |
| { "slices": [ | |
| { "volume": { "replicas": [ | |
| { "address": "node0:10031/droonga.000" }, | |
| { "address": "node1:10031/droonga.000" } | |
| ] } }, | |
| { "volume": { "replicas": [ |
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
| { | |
| "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 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
| #!/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 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
| /** | |
| * @fileOverview JSDeferred flavoured Promise.jsm | |
| * @author [email protected] | |
| * @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 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
| (function(){ | |
| Components.utils.import('resource://gre/modules/ctypes.jsm'); | |
| var library = ctypes.open(ctypes.libraryName('nss3')); | |
| var PR_Free = library.declare( | |
| 'PR_Free', | |
| ctypes.default_abi, | |
| ctypes.void_t, | |
| ctypes.voidptr_t | |
| ); | |
| var ptr = new ctypes.voidptr_t(0123); |
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
| /** | |
| * Usage: | |
| * var matcher = GroongaStringUtils.getTermsMatcher('検索 OR けんさく'); | |
| * // => /(a pattern to match all search terms in the given query)/g | |
| * document.body.innerHTML = document.body.innerHTML | |
| * .replace(matcher, function(term) { return '<em>' + term + '</em>'; }); | |
| * | |
| * License: The MIT License | |
| * Copyright (c) 2013 ClearCode Inc. | |
| */ |
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 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); | |
| } |