https://www.dropbox.com/s/mx836an8niwr7mu/jupyter.box?dl=0
$ vagrant box add jupyter jupyter.box
$ vagrant init jupyter
$ vagrant up
$ vagrant ssh -- -L 8888:localhost:8888
| import time | |
| from tqdm import tqdm | |
| items = [1,2,3,4,5,6,7,8,9,10] | |
| def process(item): | |
| time.sleep(1) | |
| for item in tqdm(items): | |
| process(item) |
| require 'natto' | |
| text = 'すもももももももものうち' | |
| natto = Natto::MeCab.new | |
| natto.parse(text) do |n| | |
| if n.feature.split(',')[0] == '名詞' | |
| puts "#{n.surface}\t#{n.feature}" | |
| end | |
| end | |
| ==== | |
| すもも 名詞,一般,*,*,*,*,すもも,スモモ,スモモ |
| sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local |
| irb(main):001:0> true & true | |
| => true | |
| irb(main):002:0> true & false | |
| => false | |
| irb(main):003:0> false & true | |
| => false | |
| irb(main):004:0> false & false | |
| => false |
| $ echo '{"Compile":["C","C++","Objective-C"],"Script":["JavaScript","PHP","Perl","Python"]}' |python -mjson.tool | |
| { | |
| "Compile": [ | |
| "C", | |
| "C++", | |
| "Objective-C" | |
| ], | |
| "Script": [ | |
| "JavaScript", | |
| "PHP", |
| HEADS UP! Haml 4.0 has many improvements, but also has changes that may break | |
| your application: | |
| * Support for Ruby 1.8.6 dropped | |
| * Support for Rails 2 dropped | |
| * Sass filter now always outputs <style> tags | |
| * Data attributes are now hyphenated, not underscored | |
| * html2haml utility moved to the html2haml gem | |
| * Textile and Maruku filters moved to the haml-contrib gem |
https://www.dropbox.com/s/mx836an8niwr7mu/jupyter.box?dl=0
$ vagrant box add jupyter jupyter.box
$ vagrant init jupyter
$ vagrant up
$ vagrant ssh -- -L 8888:localhost:8888
| vagrant@vagrant-ubuntu-trusty-64:~$ conda update conda | |
| Fetching package metadata: .... | |
| Solving package specifications: . | |
| Package plan for installation in environment /home/vagrant/anaconda: | |
| The following packages will be downloaded: | |
| package | build | |
| ---------------------------|----------------- | |
| conda-env-2.1.4 | py27_0 15 KB |