- これはテストです。
- gist.ioを試す。
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
require 'json' | |
require 'pp' | |
def parse_glb(f) | |
magic = f.read(4) | |
if magic != 'glTF' | |
raise "magic not found: #{magic}" | |
end | |
version = f.read(4).unpack('I').first |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Control_L to Control_L</name> | |
<appendix>(+ When you type Control_L only, send Enter)</appendix> | |
<identifier>remap.controlL2controlL_enter_orig</identifier> | |
<autogen>--KeyOverlaidModifier-- KeyCode::CONTROL_L, KeyCode::CONTROL_L, KeyCode::ENTER</autogen> | |
</item> | |
</root> |
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
(1..10).each do |i| | |
puts i | |
end |
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
cd ~/my_repo1/ | |
git fast-export --all --signed-tags=strip > ~/my_repository.fi | |
cd ~/my_repo2/ | |
git fast-import < ~/my_repository.fi | |
# warning: Not updating refs/heads/master (new tip b3e90632cd34e2f4439ba0e6412c2fae3b7929e3 | |
# does not contain b003578907cd0788e350cb3b69e573f59d6db4b8) | |
# ..... |
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
# encoding: utf-8 | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'sinatra/reloader' | |
require 'rack/rewrite' | |
require 'padrino-helpers' | |
require 'padrino-core' | |
require 'padrino-cache' | |
require 'haml' |
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
# encoding: utf-8 | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'sinatra/reloader' | |
require 'rack/rewrite' | |
require 'haml' | |
class App < Sinatra::Base | |
enable :inline_templates |
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
if grep -i Error log.txt | |
then | |
echo "found error" | |
fi |
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
◆docdiff.sh(ラッパー) | |
#!/bin/sh | |
[ $# -eq 7 ] && docdiff.rb --tty --digest "$2" "$5" | |
参考:http://twitter.com/#!/kdmsnr/status/16634034079 | |
◆.gitconfig(の一部) |