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 make_sealer(){ | |
var cur = null, ret; | |
return { | |
sealer: function write(value){ | |
return function f(){ | |
if(f === cur) | |
ret = value; | |
}; | |
}, |
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
implement AltTest; | |
include "sys.m"; | |
include "draw.m"; | |
AltTest: module { | |
init: fn(c: ref Draw->Context, a: list of string); | |
}; | |
sys: Sys; |
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
XJS - JavaScript (SpiderMonkey) plugin for XChat, by Maxdamantus | |
http://ntus.uni.cc/xjs | |
http://ntus.uni.cc/xjs/xjs-8.c | |
== Description == | |
This is a fairly simple extension, which allows for JavaScript scripts and code | |
to be used in XChat. The /js command usage: |
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
/* | |
* cc d2q.c -o d2q.exe -Wl,-subsystem,windows | |
*/ | |
#include <windows.h> | |
int mapping; | |
int remap(int o){ | |
return |
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 extend(from, to){ | |
var x, r = Object.create(from); | |
for(x in to) | |
r[x] = to[x]; | |
return r; | |
} | |
function Mage(name) { | |
this.name = name; |