-
brew install gnupg21, pinentry-mac
(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg --gen-key
-
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
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
README.txt | |
========== | |
kuromojiをrubyで利用するサンプル | |
1. kuromojiのダウンロード | |
wget https://github.com/downloads/atilika/kuromoji/kuromoji-0.7.7.tar.gz | |
tar zxf kuromoji-0.7.7.tar.gz | |
cd kuromoji-0.7.7 |
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
module Mongoid | |
class Criteria | |
def each_by(by, &block) | |
idx = 0 | |
total = 0 | |
set_limit = options[:limit] | |
while (results = ordered_clone.limit(by).skip(idx)) && results.any? | |
results.each do |result| | |
return self if set_limit and set_limit >= total |
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
@media (max-width: 479px) { | |
.show-on-desktop, .show-on-tablets, .hide-on-mobile { display: none; } | |
} | |
@media (min-width: 480px) and (max-width: 979px) { | |
.show-on-desktop, .hide-on-tablets, .show-on-mobile { display: none; } | |
} | |
@media (min-width: 980px) { | |
.hide-on-desktop, .show-on-tablets, .show-on-mobile { display: none; } | |
} |
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
.container { | |
width: 960px !important; | |
} | |
@media (min-width: 1px) { | |
.container { | |
max-width: 940px; | |
} | |
.col-lg-1, | |
.col-lg-2, |
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
var JOYO = | |
"亜哀挨愛曖悪握圧扱宛嵐安案暗以衣位囲医依委威為畏胃尉異移萎偉椅彙意違維慰遺緯域育一壱逸茨芋引印" | |
+"因咽姻員院淫陰飲隠韻右宇羽雨唄鬱畝浦運雲永泳英映栄営詠影鋭衛易疫益液駅悦越謁閲円延沿炎怨宴媛援" | |
+"園煙猿遠鉛塩演縁艶汚王凹央応往押旺欧殴桜翁奥横岡屋億憶臆虞乙俺卸音恩温穏下化火加可仮何花佳価果" | |
+"河苛科架夏家荷華菓貨渦過嫁暇禍靴寡歌箇稼課蚊牙瓦我画芽賀雅餓介回灰会快戒改怪拐悔海界皆械絵開階" | |
+"塊楷解潰壊懐諧貝外劾害崖涯街慨蓋該概骸垣柿各角拡革格核殻郭覚較隔閣確獲嚇穫学岳楽額顎掛潟括活喝" | |
+"渇割葛滑褐轄且株釜鎌刈干刊甘汗缶完肝官冠巻看陥乾勘患貫寒喚堪換敢棺款間閑勧寛幹感漢慣管関歓監緩" | |
+"憾還館環簡観韓艦鑑丸含岸岩玩眼頑顔願企伎危机気岐希忌汽奇祈季紀軌既記起飢鬼帰基寄規亀喜幾揮期棋" | |
+"貴棄毀旗器畿輝機騎技宜偽欺義疑儀戯擬犠議菊吉喫詰却客脚逆虐九久及弓丘旧休吸朽臼求究泣急級糾宮救" | |
+"球給嗅窮牛去巨居拒拠挙虚許距魚御漁凶共叫狂京享供協況峡挟狭恐恭胸脅強教郷境橋矯鏡競響驚仰暁業凝" |
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 | |
old_sha, new_sha, ref = STDIN.read.split(' ') | |
diff = %x{ git diff --raw --name-only #{old_sha} #{new_sha} 2> /dev/null } | |
diff.each_line do |line| | |
file = line.chomp | |
next unless file =~ /\.rb\Z/i |
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
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Ruby app detected | |
remote: -----> Compiling Ruby/Rails | |
remote: -----> Using Ruby version: ruby-2.2.1 | |
remote: -----> Installing dependencies using bundler 1.11.2 | |
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment | |
remote: Fetching gem metadata from https://rubygems.org/........... | |
remote: Fetching version metadata from https://rubygems.org/... |
I hereby claim:
- I am SebastianSzturo on github.
- I am sebastianszturo (https://keybase.io/sebastianszturo) on keybase.
- I have a public key whose fingerprint is 7653 B7F2 9AF8 58CD E7CF 3A1A 1AF4 A071 8B5A 9794
To claim this, I am signing this object: