- git clone https://git01.codeplex.com/typescript
- RC file
let typescript_path=<path>
- let's typescript
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
// vim: set sw=4 ts=4 fdm=marker et : | |
//"use strict"; | |
var INFO = //{{{ | |
<plugin name="hints-ext" version="0.0.3" | |
href="http://github.com/caisui/vimperator/blob/master/plugin/hints-ext.js" | |
summary="Hints Ext" | |
xmlns="http://vimperator.org/namespaces/liberator"> | |
<author href="http://d.hatena.ne.jp/caisui">caisui</author> | |
<license href="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> | |
<project name="Vimperator" minVersion="3.0"/> |
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
// vim: set fdm=marker : | |
function Reader() {} //{{{ | |
Reader.prototype.END = {}; | |
(function (F) { | |
var P = F.prototype; | |
P.open = true; | |
P.path = "undefined(str)"; | |
P.close = function close() { | |
this.open = 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
src= install.rdf Makefile $(shell find . \( -name '*.js' -or -name chrome.manifest \)) | |
output=sourceless.xpi | |
xpi: $(src) | |
zip $(output) -r $(src) |
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
commands.addUserCommand(["realsize"], "may be real size", function (args) { | |
var width, height; | |
if (args.length === 1) | |
width = height = args[0]; | |
else { | |
width = args[0]; | |
height = args[1]; | |
} | |
if (args["-r"]) | |
[width, height] = [height, width]; |
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
content inspector-ext chrome/content/ | |
override chrome://inspector/content/viewers/eventListeners/eventListeners.js chrome://inspector-ext/content/eventListeners.js | |
override chrome://inspector/content/viewers/eventListeners/eventListeners.xul chrome://inspector-ext/content/eventListeners.xul | |
override chrome://inspector/content/res/viewer-registry.rdf chrome://inspector-ext/content/viewer-registry.rdf |
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 (!services.services.pref) { | |
[ | |
["appStartup", "startup"], | |
["browserSearch", "search"], | |
["directory", "dirsvc"], | |
["observer", "obs"], | |
["pref", "prefs"], | |
["subscriptLoader", "scriptloader"], | |
["windowMediator", "wm"], | |
["windowWatcher", "ww"], |
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
from types import FunctionType | |
def percol_specialkey_replace(fn): | |
def decofn(self, key): | |
if len(key) > 2 and key[0] == "<" and key[-1] == ">": | |
key = key[1:-1] | |
return fn(self, key) | |
return decofn | |
class ChainMap(object): |
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 a = { | |
__noSuchMethod__: function () {c++;} | |
}; | |
var e = []; | |
var c = 0; | |
for (var i = 0; i < 100; i++) { | |
try { | |
a.b(); | |
} catch (ex) { | |
e.push([i, ex.message]); |