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
:js <<EOF | |
let bookmarksService = services.get("bookmarks"); | |
let bookmarks = storage["bookmark-cache"].bookmarks; | |
let idToDate = Object.create(null); | |
for (let item of bookmarks) { | |
idToDate[item.id] = bookmarksService.getItemDateAdded(item.id); | |
} | |
completion.listCompleter(function(context, tags, extra) { | |
completion.bookmark(context, tags, extra); | |
context.compare = function (a,b) (idToDate[b.item.id] - idToDate[a.item.id]); |
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
// あらかじめ<data:text/html,>なんかを開いておいてFirebug上で実行する | |
include("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"); // この行だけ単独で先に実行すること | |
let N = 5; | |
let USER = "mattn"; | |
function pred(x) Object.keys(x.files).some(function (n) /\.go/.test(n)); | |
function loop(n) { | |
if (n > N) return; |
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 sub { | |
export function x() { | |
console.log("x"); | |
} | |
function y() { | |
console.log("y"); | |
} | |
} |
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:for(x%20of%20document.links)x.href=(x.getAttribute("data-expanded-url")||x.href).replace(/[\w\-]+-22/g,"");void 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
class Test { | |
public function new() {} | |
static function main(){ | |
var x = new Map<Test, Int>(); | |
x[new Test()] = 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
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <algorithm> | |
#include "litestring.h" | |
static int firstCapa(int len) { | |
return len == 0 ? 64 : (len + 63) & ~63; | |
} |
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
class Set<K> { | |
var map: Map<K,Bool>; | |
public function new() { | |
this.map = new Map<K,Bool>(); | |
} | |
public function add(k:K): Void { | |
this.map.set(k, true); | |
} | |
public function has(k:K): Bool { |
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
require "set" | |
def main | |
# 関数の引数はすべて参照渡しということにする | |
@program = [ | |
[:sub, :main, [], | |
[:f, :a]], | |
[:sub, :f, [:x], | |
[:set!, :a], | |
[:g, :x]], |
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
Index: desmume/src/lua-engine.cpp | |
=================================================================== | |
--- desmume/src/lua-engine.cpp (リビジョン 5048) | |
+++ desmume/src/lua-engine.cpp (作業コピー) | |
@@ -1124,6 +1124,24 @@ | |
} | |
+extern TimeSpan HIJACK_TIME_DIFF; | |
+ |
OlderNewer