a?= 1- GitHub Staff
- https://bento.me/kyanny
- @kyanny
- in/kyanny
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
| [{"foo":"1"}] |
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
| $ curl -s https://rubygems.org/api/v1/gems/diff-lcs.json | |
| { | |
| "dependencies": { | |
| "runtime": [], | |
| "development": [ | |
| { | |
| "requirements": "~> 3.7", | |
| "name": "hoe" | |
| }, |
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
| changeset: 203:31902182b995 | |
| branch: no35_translation | |
| tag: tip | |
| user: Kensuke Nagae <kyanny@gmail.com> | |
| date: Thu Mar 20 02:51:03 2014 +0900 | |
| summary: Fix Japanese translation of No.35 | |
| diff -r c892a61a8dc7 -r 31902182b995 content/tour.article.jp | |
| --- a/content/tour.article.jp Thu Jan 09 21:23:38 2014 +0900 | |
| +++ b/content/tour.article.jp Thu Mar 20 02:51:03 2014 +0900 |
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
| package main | |
| import "fmt" | |
| func adder (n int) func() int { | |
| sum := 0 | |
| return func () int { | |
| sum += n | |
| return sum | |
| } |
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
| require 'rails' | |
| require 'mongo_mapper' | |
| require 'draper' | |
| require 'rspec' | |
| MongoMapper.database = 'testing' | |
| MongoMapper::Document.send(:include, Draper::Decoratable) | |
| class Bookmark | |
| include MongoMapper::Document |
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
| [nil, 0] | |
| [nil, 1] | |
| [nil, 2] | |
| [nil, 3] | |
| [nil, 4] | |
| [nil, 5] | |
| [nil, 6] | |
| [nil, 7] | |
| [nil, 8] | |
| [nil, 9] |
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
| source "https://rubygems.org" | |
| gem 'grape' | |
| gem 'newrelic_rpm', '3.8.1.221' | |
| gem 'newrelic-grape' |
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 | |
| require 'pry' | |
| require 'capybara/dsl' | |
| require 'capybara/poltergeist' | |
| require 'uri' | |
| include Capybara::DSL | |
| Capybara.default_driver = :poltergeist |
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
| describe "App.request", -> | |
| deferred = null | |
| beforeEach -> | |
| sinon.stub(App, "request").yieldsTo('done', {res: "ok"}) | |
| afterEach -> | |
| App.request.restore() |
OlderNewer