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 <stdio.h> | |
void f1() { | |
puts("f1"); | |
} | |
int main(int argc, char **argv) { | |
void *p = f1; | |
printf("p: %p\n", p); | |
printf("f1 address: %p\n", &f1); | |
f1(); | |
return 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
doc.getAnonymousElementByAttribute(doc.getElementById("content"), "anonid", "panelcontainer").style.backgroundColor = "transparent"; | |
doc.getElementById("main-window").style.backgroundRepeat = "repeat"; | |
hook.addToHook("LocationChange", function (aNsURI) { | |
gBrowser.mCurrentTab.style.backgroundColor = "transparent"; | |
gBrowser.mCurrentBrowser.collapsed = (aNsURI && aNsURI.spec == "about:blank") ? true : 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
plugins.options["follow-link.targets"] = 'a[href], input:not([type="hidden"]), button'; | |
plugins.options["follow-link.nextpattern"] = "^次へ|進む|^次.*|続|→|\\bnext|>>|≫"; | |
plugins.options["follow-link.prevpattern"] = "\\bback|戻る|^前.*|←|\\bprev|<<|≪"; | |
function findPattern(doc, pattern) { | |
let target = plugins.options["follow-link.targets"]; | |
let regex = RegExp(pattern); | |
let result = doc.querySelectorAll(target); | |
for (let i=result.length-1;i>=0;--i) { | |
let elem = result[i]; |
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
// ==UserScript== | |
// @name fixtext_sssite | |
// @namespace fixtext_sssite | |
// @include http://www.mai-net.net/ | |
// @include http://*syosetu.com/ | |
// @include http://echelon.wiki.fc2.com/wiki/* | |
// ==/UserScript== | |
function $x(exp, doc, callback) { | |
var result = doc.evaluate(exp, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); |
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
// ==UserScript== | |
// @name 503favotter-matope-status | |
// @namespace 503favotter-matope-status | |
// @include http://favotter.matope.com/* | |
// ==/UserScript== | |
if (document.childNodes.length != 1) return; | |
window.location.href = "http://twitter.com/ono_matope"; |
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
// ========================== KeySnail Init File =========================== // | |
// この領域は, GUI により設定ファイルを生成した際にも引き継がれます | |
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい | |
// ========================================================================= // | |
//{{%PRESERVE% | |
// ここにコードを入力して下さい | |
for each (let id in ["keysnail-prompt-textbox", "urlbar"]) { | |
let box = document.getElementById(id); | |
let input = document.getAnonymousElementByAttribute(box, 'anonid', 'input'); |
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 PLUGIN_INFO = | |
<VimperatorPlugin> | |
<name>heuristic-search</name> | |
<description>Heuristic search</description> | |
<author mail="[email protected]" homepage="http://www.hatena.ne.jp/hitode909/">hitode909</author> | |
<version>0.1</version> | |
<detail><![CDATA[ | |
== Commands == | |
:hsearch {keywords} |
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
// ==UserScript== | |
// @name dqnplus | |
// @namespace dqnplus | |
// @include http://blog.livedoor.jp/dqnplus/* | |
// ==/UserScript== | |
function remove(id) { | |
var node = document.getElementById(id); | |
node.parentNode.removeChild(node); | |
} | |
remove("comment"); |
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 | |
# vim: set fileencoding=utf-8: | |
require "kakasi" | |
require "MeCab" | |
class Cambridge | |
def initialize | |
@mecab_y = MeCab::Tagger.new("-Oyomi") | |
end |
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
main(c){while(c=getchar())putchar(c);} |