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
// ==UserScript== | |
// @name NicoLyricManager | |
// @namespace NicoLyricManager | |
// @description ニコ動の歌詞職人支援ツール | |
// @include http://www.nicovideo.jp/watch/* | |
// @include http://nine.nicovideo.jp/watch/* | |
// @excludes | |
// ==/UserScript== | |
(function(){ |
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
require 'thread' | |
class File | |
# ファイルの更新を検知して、渡されたブロックを実行する | |
# 更新検知部分のコードは[ここ](http://ja.doukaku.org/comment/387/)のを丸パクリ | |
def self.watch(fileName, &function) | |
raise AugumentsError if(!File.exist?(fileName) || !function) | |
thread = Thread.new(fileName, function){ | _fileName, _function | | |
Thread.pass | |
last_mtime = File.mtime(_fileName) |
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
# 時間がかかったらgrowlで終了通知 | |
local COMMAND="" | |
local COMMAND_TIME="" | |
precmd() { | |
if [ "$COMMAND_TIME" -ne "0" ] ; then | |
local d=`date +%s` | |
d=`expr $d - $COMMAND_TIME` | |
if [ "$d" -ge "30" ] ; then | |
COMMAND="$COMMAND " | |
echo -ne "\a" |
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 TypeCheck(func) { | |
var argumentTypes = []; | |
var functionString = func.toString().replace(/\n/g, ' '); | |
var argumentString = functionString.replace(/^function.*?\(/, '').replace(/\).*$/,''); | |
var argumentTypes = argumentString.split(','); | |
for(var i=0,l=argumentTypes.length; i<l; i++) { | |
var match = argumentTypes[i].match(/\/\*\*(.*)\*\//); | |
if(match) { | |
argumentTypes[i] = match[1].replace(/^ *| *$/g,'').toLowerCase(); |
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
fs = require('fs') | |
fs.write('/dev/stdout', 'test!!', 'w') | |
phantom.exit() |
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
fs = require('fs') | |
printfln = (text) => | |
text += "\n" | |
fs.write('/dev/stdout', text, 'w') | |
printfln "Hello, World!" | |
phantom.exit() |
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
// ==UserScript== | |
// @name ZeroFix | |
// @namespace applest.net | |
// @version 0.5 | |
// @description ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 市場エリアに投稿者情報を表示、コメント投稿エリアの修正、フェード防止の機能があります。 | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
/**************************************** | |
* 右上の[raw]をクリックしてダウンロード開始 * |
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
Gemfile.local |
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
(define-module color-convert | |
(export hex->rgb) | |
(export rgb->hex) | |
(export rgb->hls)) | |
(select-module color-convert) | |
(use srfi-13) | |
(define (hex->rgb hex) |
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
#!/usr/bin/env bash | |
exit 1 |