Skip to content

Instantly share code, notes, and snippets.

View matsumos's full-sized avatar

Keiichiro Matsumoto matsumos

View GitHub Profile
Verifying my Blockstack ID is secured with the address 15KrHcAAY8x1DyyEnunfobeNWbhjoBpbgw https://explorer.blockstack.org/address/15KrHcAAY8x1DyyEnunfobeNWbhjoBpbgw
### Keybase proof
I hereby claim:
* I am matsumos on github.
* I am matsumos (https://keybase.io/matsumos) on keybase.
* I have a public key ASCJJB81pbfwS7JKlp48yIQP83MoN_efQSn4KFsMPu_VOwo
To claim this, I am signing this object:
@matsumos
matsumos / scss
Created June 16, 2014 06:43
SCSS bem mixin work with libsass2.0
@mixin elem($el) {
&__#{$el} {
@content;
}
}
@mixin mod($mod) {
&#{'--'}#{$mod} {
@content;
}
@matsumos
matsumos / Gemfile
Created December 21, 2012 10:22
zxcvbn をつかって Rails のパスワードバリデーションを強化してみる ref: http://qiita.com/items/5563519a8e7f2dbc427a
gem "zxcvbn-ruby", :require => 'zxcvbn'
@matsumos
matsumos / gist:3780473
Created September 25, 2012 07:38
slimish-jinja2 で block を使う
slimish-jinja2 で block を使う
微妙にわかりにくかったのでメモ
base.slim
------------------------------------
!5
html
head
title
@matsumos
matsumos / gist:1066991
Created July 6, 2011 10:48
バンドルしたXMLの読み込み
- (void)hogehoge
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"hoge" ofType:@"xml"];
// とりあえずファイルの中身をトレース
NSError *error = nil;
NSString *str = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
NSLog(@"str:%@", str);
// URLに変換したいならこう