Skip to content

Instantly share code, notes, and snippets.

View fakestarbaby's full-sized avatar

Yoshinori Hirasawa fakestarbaby

View GitHub Profile
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@jugyo
jugyo / sublime_text_2_plugin_tips.md
Created August 13, 2012 09:54
Sublime Text 2 Plugin Tips

Sublime Text 2 Plugin Tips

API Reference

コマンドの実行はコンソール( ctrl + ` で開ける)で以下を実行する:

view.run_command('example')
@ppworks
ppworks / hoge.m
Created July 10, 2012 11:15
まじで断片ですまぬ
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
if (self.item_page == 1 && !JSON) {
[UIUtilitiy hideActivityIndicator];
[UIUtilitiy showAlert:@"error" text:@"見つかりませんでした"];
return;
}
if (JSON) {
[self.items addObjectsFromArray:[[[NSMutableArray alloc]initWithArray:JSON]autorelease]];
self.not_found = NO;
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')