Skip to content

Instantly share code, notes, and snippets.

@onjiro
onjiro / build_and_test_when_modified.sh
Created January 9, 2012 10:50
inotify と notify-send のサンプル
while inotifywait -r -e modify ./src; do cake build; cake test |& tee build.log | if grep "Command failed" $*; then notify-send "Test failed"; fi ;done
@onjiro
onjiro / package.json
Created December 4, 2011 16:06
package.json in [email protected] for node.exe
{
"name": "hamljs",
"description": "Faster / Express compliant Haml implementation",
"version": "0.5.1",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/haml.js.git"
},
"author": "TJ Holowaychuk <[email protected]> (http://tjholowaychuk.com)",
"main": "./lib/haml",
@onjiro
onjiro / customize.mayu
Created September 7, 2011 09:43
my yamy setting files
include "109.mayu"
include "emacseditcustom.mayu"
keymap Global
# CapsLock に Ctrl の役割を設定
mod Control += E0英数
key *E0英数 = *LControl
key LControl = E0英数
key C-Space = 半角/全角
@onjiro
onjiro / float_left_with_relative.html
Created August 30, 2011 07:01
HTML構造のメモ
<html>
<body>
<div id="wrapper" style="width: 560px; margin: 20px auto">
<div id="header" style="display:block; position:absolute; background:#00aa00; width: 480px">
ヘッダー
</div>
<div id="main" style="display:block; width:560px; background:#aaaaaa;">
<div id="contents" style="float:left; margin: 36px 0; background:#aa0000; width: 480px">
コンテンツ
</div>
@onjiro
onjiro / splitvideo.rb
Created June 10, 2011 14:44
Split ogv video with mplayer and mencoder.
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if ARGV.length < 3
puts "#{$0}: usage: #{$0} src destdir [sec]"
exit
end
# 引数の取得
src,destdir,sec_per_part = ARGV