iOS 6 に上げたついでに、一時期入れまくってたのと比べると随分ミニマムになった。
iPhone 4 とか iPad mini とか iPad 4 th も大体こんな感じで、 Retina Pad とか FullForce が入る程度かな。たぶん。
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
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" |
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 A | |
class B | |
def self.nyan | |
"A::B" | |
end | |
end | |
def self.nyan | |
B.nyan | |
end | |
def self.wan |
その昔 creepy というソフトウェアがあった
Twitter の UserStream を拾い設定したフィルターにかけて処理をするという中身も動作も邪悪なツールである
また、独自のタスクをサブコマンドで実行するという機能もあった
本プロジェクトはこのツールをより使いやすく拡張しやすい形に書き直し gem としてリリースすることを目標とする
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
# -*- 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 |
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
#!/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" |
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
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 |
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
# -*- 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) |