Skip to content

Instantly share code, notes, and snippets.

View kkosuge's full-sized avatar
🐇
busy

Kosuge Kazuya kkosuge

🐇
busy
View GitHub Profile
@dnpp73
dnpp73 / after_jailbreak.md
Last active October 28, 2015 13:54
俺の iPhone の JB 環境まとめ。

俺の iPhone 5 (iOS 6.1.2) の JB 環境まとめ。

iOS 6 に上げたついでに、一時期入れまくってたのと比べると随分ミニマムになった。
iPhone 4 とか iPad mini とか iPad 4 th も大体こんな感じで、 Retina Pad とか FullForce が入る程度かな。たぶん。


Sources

BigBoss
@kimihito
kimihito / Rakefile
Last active December 9, 2015 19:48
post text to tumblr on terminal.
task :default => :new
desc "Create a new article."
task :new do
title = ask("Title: ")
article = "<pre><code class=\"prettyprint lang-ruby\">
</code></pre>"
path = "./#{title}.txt"
class A
class B
def self.nyan
"A::B"
end
end
def self.nyan
B.nyan
end
def self.wan
@rummelonp
rummelonp / .0.tmux.md
Last active December 10, 2015 08:58
tmux 入れてみた

tmux 入れてみた

screen から tmux に乗り換える人をよく見るので入れて使ってみた

インストール

brew install tmux
@rummelonp
rummelonp / agharta.md
Last active December 11, 2015 09:18
Twitter ストーキングツールのブレスト的なアレ

Agharta

あらすじ

その昔 creepy というソフトウェアがあった
Twitter の UserStream を拾い設定したフィルターにかけて処理をするという中身も動作も邪悪なツールである
また、独自のタスクをサブコマンドで実行するという機能もあった

本プロジェクトはこのツールをより使いやすく拡張しやすい形に書き直し gem としてリリースすることを目標とする

@rummelonp
rummelonp / integer_to_s64.rb
Last active December 12, 2015 02:28
64進数的な
# -*- coding: utf-8 -*-
class Integer
S64_MAP = ('0'..'9').to_a +
('a'..'z').to_a +
('A'..'Z').to_a +
['_']
def to_s64
s, i, base, negative = '', self, S64_MAP.size, false
@tatat
tatat / static_html_init.sh
Last active December 12, 2015 08:48
こんな感じで行こうと思う
#!/bin/bash
jquery_version="1.9.1"
jquery_name="jquery-${jquery_version}.min.js"
jquery_url="http://code.jquery.com/$jquery_name"
mkdir -p haml coffee sass vendor public/{javascripts,stylesheets,images,lib}
touch vendor/.gitkeep
curl -L "$jquery_url" > "public/lib/$jquery_name"
@rummelonp
rummelonp / homebrew_sushi.patch
Created February 14, 2013 10:52
Homebrew インストール後に寿司表示するやつ
diff --git Library/Homebrew/formula_installer.rb Library/Homebrew/formula_installer.rb
index 1008bc2..3cf2492 100644
--- Library/Homebrew/formula_installer.rb
+++ Library/Homebrew/formula_installer.rb
@@ -236,7 +236,7 @@ class FormulaInstaller
ohai "Summary" if ARGV.verbose? or show_summary_heading
unless ENV['HOMEBREW_NO_EMOJI']
- print "🍺 " if MacOS.version >= :lion
+ print "🍣 " if MacOS.version >= :lion
@Shinpeim
Shinpeim / retry.rb
Last active December 14, 2015 06:48
# -*- coding: utf-8 -*-
class Retry
def initialize(times, begin_block)
@times = times
@begin_block = begin_block
end
def catch(error_type, &rescue_block)
tries = 0
begin
@begin_block.call(tries)