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 ruby | |
# -*- coding: utf-8 -*- | |
if ARGV.length < 3 | |
puts "#{$0}: usage: #{$0} src destdir [sec]" | |
exit | |
end | |
# 引数の取得 | |
src,destdir,sec_per_part = ARGV |
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
<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> |
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
include "109.mayu" | |
include "emacseditcustom.mayu" | |
keymap Global | |
# CapsLock に Ctrl の役割を設定 | |
mod Control += E0英数 | |
key *E0英数 = *LControl | |
key LControl = E0英数 | |
key C-Space = 半角/全角 |
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
{ | |
"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", |
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
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 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
<!-- | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html, body { |
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
# 次の置換と同じ。 | |
# grep -lre h1 検索対象ディレクトリ | xargs sed -i 's/h1/h2/g' | |
grep -lre 'h1' 検索対象ディレクトリ | xargs -n 1 -i sh "cp {} tmp; sed -e 's/h1/h2/g' ./tmp > {}" |
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
<html> | |
<head> | |
<style type="text/css"> | |
/* アイコンは次のサイトのとか使わせてもらったらそれっぽいかも */ | |
/* http://hail2u.net/blog/webdesign/shirokuro-social-icons-v1.5.html */ | |
body { | |
z-index: 0; | |
margin-left: 80px; | |
margin-top: 80px; | |
background-color: #aaa; |
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 | |
sudo apt-get install curl | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
. ~/.nvm/nvm.sh | |
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc | |
echo "enter node version you want to install..." | |
read -p "ex.) v0.6.11 > " version |
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 | |
sudo apt-get install git | |
alias g=git | |
echo "alias g=git" >> ~/.bashrc | |
g config --global user.name onjiro | |
g config --global user.password [email protected] | |
g config --global alias.co checkout | |
g config --global alias.br branch |
OlderNewer