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
#!/bin/sh | |
set -e | |
vendor_root='_vendor' | |
cmd_save () { | |
deps="$(go list -f '{{join .Deps "\n"}}' ./...)" | |
go list -f '{{if (not .Standard)}}{{.ImportPath}}{{"\t"}}{{.Dir}}{{end}}' $deps | sort \ |
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 Secs Hour | |
// @namespace http://d.hatena.ne.jp/motemen/ | |
// @include * | |
// ==/UserScript== | |
document.body.innerHTML = document.body.innerHTML.replace(/秒/g, '年'); |
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 Kore Yoyaku Shita | |
// @namespace http://twitter.com/motemen | |
// @include http://www.amazon.co.jp/*-22* | |
// ==/UserScript== | |
var ID_MAPPING = { | |
nifuba: 'fuba', | |
harsch: 'harsch', | |
tokyoenvious: 'motemen' |
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
package Object::Nil; | |
use strict; | |
use warnings; | |
use overload | |
'0+' => sub { 0 }, | |
'""' => sub { '' }, | |
'eq' => sub { ref $_[1] && $_[1]->isa(__PACKAGE__) }, | |
'==' => sub { ref $_[1] && $_[1]->isa(__PACKAGE__) }, | |
'ne' => sub { not $_[0] eq $_[1] }, | |
'!=' => sub { not $_[0] == $_[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
50000got |
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 Ichigo-Mashimaro | |
// @namespace http://kentarok.org/ | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
(function () { | |
var textarea = document.getElementById('status'); | |
textarea.value = ''; | |
var start = 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 Hatena::Diary - Autocomplete Categories | |
// @namespace http://d.hatena.ne.jp/motemen/ | |
// @include http://d.hatena.ne.jp/* | |
// @include http://*.g.hatena.ne.jp/* | |
// @include https://*.g.hatena.ne.jp/* | |
// ==/UserScript== | |
with (unsafeWindow) { | |
(function() { |
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
diff --git a/Makefile.PL b/Makefile.PL | |
index a55efd0..6911ee5 100644 | |
--- a/Makefile.PL | |
+++ b/Makefile.PL | |
@@ -15,3 +15,7 @@ can_cc or die 'This module requires C++ compiler.'; | |
use_test_base; | |
auto_include_deps; | |
WriteAll; | |
+ | |
+sub MY::post_constants { |
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 Hatena::Diary - Replace mimeTeX by ASCIIMathML | |
// @namespace http://subtech.g.hatena.ne.jp/motemen/ | |
// @include http://d.hatena.ne.jp/* | |
// @include http://*.g.hatena.ne.jp/* | |
// @include https://*.g.hatena.ne.jp/* | |
// ==/UserScript== | |
// Thanks to ASCIIMathML http://www1.chapman.edu/~jipsen/asciimath.html | |
var texImages = document.evaluate('//img[@class="tex"]', document, 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 id:USERNAME | |
// @namespace http://subtech.g.hatena.ne.jp/motemen/ | |
// @include http://*.hatena.ne.jp/USERNAME/ | |
// @include http://*.hatena.ne.jp/USERNAME | |
// ==/UserScript== | |
location.href = location.href.replace('USERNAME', 'motemen'); |