- GitHub Staff
- https://bento.me/kyanny
- @kyanny
- in/kyanny
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
gem 'activemodel', '4.2.7.1' | |
require 'active_model' | |
require 'mongo_mapper' | |
require 'byebug' | |
require 'logger' | |
logger = Logger.new(STDOUT) | |
logger.level = :info | |
MongoMapper.setup( | |
{ |
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
gem 'activemodel', '4.2.7.1' | |
require 'active_model' | |
require 'mongo_mapper' | |
require 'byebug' | |
require 'logger' | |
logger = Logger.new(STDOUT) | |
logger.level = :info | |
MongoMapper.setup( | |
{ |
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
gem 'activemodel', '4.2.7.1' | |
require 'active_model' | |
require 'mongo_mapper' | |
MongoMapper.database = 'testing' | |
class User | |
include MongoMapper::Document | |
one :membership | |
end |
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
kyanny@NagaeKensuke-no-MacBook-Pro ~/mruby (master) 2.3.1 | |
$ uname -a | |
Darwin NagaeKensuke-no-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64 | |
kyanny@NagaeKensuke-no-MacBook-Pro ~/mruby (master) 2.3.1 | |
$ docker --version | |
Docker version 1.12.0, build 8eab29e | |
kyanny@NagaeKensuke-no-MacBook-Pro ~/mruby (master) 2.3.1 | |
$ docker-compose --version | |
docker-compose version 1.8.0, build f3628c7 |
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
kyanny@NagaeKensuke-no-MacBook-Pro ~ 2.3.1 | |
$ git clone https://github.com/hone/mruby-cli.git | |
Cloning into 'mruby-cli'... | |
remote: Counting objects: 467, done. | |
remote: Total 467 (delta 0), reused 0 (delta 0), pack-reused 467 | |
Receiving objects: 100% (467/467), 87.17 KiB | 48.00 KiB/s, done. | |
Resolving deltas: 100% (264/264), done. | |
Checking connectivity... done. | |
kyanny@NagaeKensuke-no-MacBook-Pro ~ 2.3.1 | |
$ cd mruby-cli/ |
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
kyanny@NagaeKensuke-no-MacBook-Pro ~/bin 2.3.1 | |
$ wget https://github.com/hone/mruby-cli/releases/download/v0.0.4/mruby-cli-0.0.4-x86_64-apple-darwin14.tgz | |
--2016-09-16 17:36:26-- https://github.com/hone/mruby-cli/releases/download/v0.0.4/mruby-cli-0.0.4-x86_64-apple-darwin14.tgz | |
Resolving github.com... 192.30.253.113 | |
Connecting to github.com|192.30.253.113|:443... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://github-cloud.s3.amazonaws.com/releases/38273977/715573c8-8dec-11e5-9c98-5eac1bc38601.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160916%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160916T083621Z&X-Amz-Expires=300&X-Amz-Signature=61d1b56a215202ad4cacd28e5bdab6c39940f23a22316b7d69b34e1ecbc17ff1&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dmruby-cli-0.0.4-x86_64-apple-darwin14.tgz&response-content-type=application%2Foctet-stream [following] | |
--2016-09-16 17:36:28-- https://github-cloud.s3.ama |
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
kyanny@NagaeKensuke-no-MacBook-Pro ~/mruby (master) 2.3.1 | |
$ git log -1 | |
commit 6498970d81f6d0577a3eca77a9bf61040fb87e4c | |
Merge: 07e905e 04ae296 | |
Author: Yukihiro "Matz" Matsumoto <matz@ruby-lang.org> | |
Date: Fri Sep 16 08:33:01 2016 +0900 | |
Merge pull request #3210 from AltimitSystems/android.rake-ndk-clang | |
Fixed regex order falling early in arch cases, causing x86_64 and arm… |
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
(fn [val seq] | |
(into {} | |
(for [key seq] | |
(conj [key] val)))) |
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
# 使い方: | |
# 1. 以下を .bashrc などにコピペして保存 -> 端末・シェル再起動または .bashrc 再読み込み | |
# 2. Git リポジトリを clone したディレクトリに移動 -> Pull Request と紐付いているブランチを checkout | |
# 3. $ ciopen [COMMIT] | |
# $ ciopen head | |
# $ ciopen head^ | |
# $ ciopen head~2 | |
ciopen() { | |
commit=$1 | |
result=$(hub ci-status -v $commit) |
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
world |