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 'open-uri' | |
require 'json' | |
open('https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json') do |f| | |
json = JSON.parse(f.read) | |
puts json.size # => 1338 | |
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
" for CRuby | |
if &filetype=='c' | |
setlocal noexpandtab tabstop=8 shiftwidth=4 softtabstop=4 | |
endif |
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
aycabta@x250:~/rcodetools$ rake | |
/home/aycabta/.rbenv/versions/2.3.1/bin/ruby -w -I"lib:ext/rcovrt" -I"/home/aycabta/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rake-11.2.2/lib" "/home/aycabta/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rake-11.2.2/lib/rake/rake_test_loader.rb" "test/test_completion.rb" "test/test_doc.rb" "test/test_functional.rb" "test/test_method_analyzer.rb" "test/test_method_args.rb" "test/test_options.rb" "test/test_ruby_toggle_file.rb" "test/test_xmpfilter.rb" "test/test_xmptestunitfilter.rb" | |
test/test_completion.rb | |
test/test_doc.rb | |
test/test_functional.rb | |
test/test_method_analyzer.rb | |
test/test_method_args.rb | |
test/test_options.rb | |
test/test_ruby_toggle_file.rb | |
test/test_xmpfilter.rb |
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
0000010010101010010000000100010000101000010000000000000000000000 | |
0000010010101110111010001010100001000100111001000000000000000000 | |
0000010000001010110000100100000001000100010001000000000000000010 | |
0000010000001010011001000110000001000100101011100000111000000100 | |
0000000000001110111010001100000001000100000001000000000000001000 | |
0000010000001010010000101110000001000100000001000100000001000000 | |
0000000000000000000000000000000000101000000000001000000000000000 | |
0000000000000000000000000000000000000000000000000000000000000000 | |
0000000000000000000000000000000000000000000000000000000000000100 | |
0100010011001100001011100110111001000100000000000010000010001010 |
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
class BinaryDotToBraille | |
LEFT_SHIFT_TABLE = { | |
0b00000001 => 7, | |
0b00000010 => 4, | |
0b00000100 => 1, | |
0b00001000 => 3, | |
0b00010000 => 0, | |
0b00100000 => -3, | |
0b01000000 => -5, |
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
長袖シャツ | |
長袖インナー | |
ハードシェル | |
タイツ | |
ズボン | |
靴下 | |
グローブ | |
アウター手袋 | |
予備手袋 | |
防寒着 |
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
set-option -g prefix C-t | |
bind-key C-t send-prefix | |
unbind-key C-b | |
#set-window-option -g mode-mouse on | |
set-window-option -g mode-keys vi | |
set-window-option -g utf8 on | |
set-option status-utf8 on |
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
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo "succeeded" | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add ~/.ssh/bitbucket | |
/usr/bin/ssh-add ~/.ssh/github | |
} |
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
301: http://www.kaoriya.net/blog/2012/12/02 moves to http://www.kaoriya.net/blog/2012/12/02/ | |
301: http://qiita.com/items/415a30930a80b9b42adb moves to http://qiita.com/kefir_/items/415a30930a80b9b42adb | |
301: http://d.hatena.ne.jp/deris/20121209/1355048075 moves to http://deris.hatenablog.jp/entry/20121209/1355048075 | |
Domain Not Found: http://blog.wflow.jp/posts/20121216-tips-vim-outliner/ | |
Domain Not Found: http://blog.wflow.jp/posts/20121216-tips-vim-outliner/ | |
301: http://d.hatena.ne.jp/kanno_kanno/20121217/1355694191 moves to http://kannokanno.hatenablog.com/entry/20121217/1355694191 | |
301: http://fukayatsu.github.com/2013/01/02/vim-advent-calendar/ moves to http://blog.fukayatsu.com/2013/01/02/vim-advent-calendar/ | |
301: http://d.hatena.ne.jp/basyura/20130106/p1 moves to http://basyura.hateblo.jp/entry/20130106/p1 | |
301: http://d.hatena.ne.jp/cohama/20130108/1357664352 moves to http://cohama.hateblo.jp/entry/20130108/1357664352 | |
301: http://qiita.com/items/a5ead41d4a1d4cbaeb74 moves to http://qiita.com/rbtnn/items/a |
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
def retrieve_write_queries(filename) | |
queries = [] | |
now_query = "" | |
open(filename) do |f| | |
add_query = lambda { | |
if $1 == "Query" | |
if not now_query.empty? | |
#puts now_query.split.first | |
queries << now_query | |
end |