rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
#!/usr/bin/env python | |
"""Split large file into multiple pieces for upload to S3. | |
S3 only supports 5Gb files for uploading directly, so for larger CloudBioLinux | |
box images we need to use boto's multipart file support. | |
This parallelizes the task over available cores using multiprocessing. | |
Usage: | |
s3_multipart_upload.py <file_to_transfer> <bucket_name> [<s3_key_name>] |
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> |
# 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", |
from itertools import chain | |
list(chain.from_iterable(l)) |
describe ExamplesController do | |
render_views # コレをつけるとrenderを実行してくれる | |
end |
npm clear cache |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# -*- 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. |
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" ; rbenv install <ruby_version> |