rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
-l <pattern> or --limit=<pattern> |
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" ; rbenv install <ruby_version> |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
npm clear cache |
describe ExamplesController do | |
render_views # コレをつけるとrenderを実行してくれる | |
end |
from itertools import chain | |
list(chain.from_iterable(l)) |
# Import the schema, datafile and io submodules | |
# from avro (easy_install avro) | |
from avro import schema, datafile, io | |
OUTFILE_NAME = 'sample.avro' | |
SCHEMA_STR = """{ | |
"type": "record", | |
"name": "sampleAvro", | |
"namespace": "AVRO", |
In [1]: import boto | |
In [2]: c = boto.connect_s3() | |
In [3]: b = c.lookup('test-1245812163') | |
In [4]: mp = b.initiate_multipart_upload('testmpupload2') | |
In [5]: mp | |
Out[5]: <MultiPartUpload testmpupload2> |