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
sql=`cat <<'EOS' | |
SELECT * FROM mysql.user | |
WHERE User = 'root' | |
AND Host = 'localhost' | |
\G | |
EOS` |
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
use strict; | |
use warnings; | |
# fork of https://github.com/klange/nyancat | |
package Nyancat; | |
use Time::HiRes 'sleep'; | |
local $SIG{INT} = sub { | |
print "\033[?25h\033[0m"; |
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
/* | |
* 事前にランタイムディレクトリ内に module ディレクトリを作成し workerとして使うファイルを置いておくこと | |
*/ | |
var resourceName = "vimp-module"; | |
var IO = services.get("io"); | |
var moduleDirs = io.getRuntimeDirectories("module"); | |
if (moduleDirs.length === 0) | |
throw new Error("module directory is not found"); |
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
/** | |
* @fileoverview Gyazo にキャプチャ画像をアップロードするライブラリ | |
* @author teramako teramako.at.gmail.com | |
* @license MPL 1.1 | |
* @requires Firefox, Chrome特権 | |
* @example | |
* // 表示画面のキャプチャを 3/4 スケールで撮る | |
* var win = gBrowser.mCurrentBrowser.contentWindow; | |
* var file = createCaptureFile(win, win.scrollX, win.scrollY, win.innerWidth, win.innerHeight, 0.75); | |
* uploadGyazo(file, function callback (url) { |
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
#!/bin/sh | |
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf | |
cookiefile=./cookie.txt | |
playerfile=./player.swf | |
keyfile=./authkey.png | |
if [ $# -eq 1 ]; then | |
channel=$1 | |
output=./$1.flv |
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
default $d $w | |
d -g | |
w -W -Wall | |
a -ansi -pedantic | |
o -O -DNDUBUG | |
p -pg | |
SDL `sdl-config --cflags --libs` | |
SDL_mixer -lSDL_mixer | |
X11 -L/usr/X11R6/lib -lX11 | |
cv `pkg-config opencv --libs --cflags` |