이전의 세션은 늦게와서 적지 못했습니다.
- 질문 타임 정도에 들어왔다.
- 파비콘이 혼동하기 쉬워서 확장플러그인을 만듬
- 방금 발표한 내용을 오픈소스로 만들 계획은 아직없음.
| var async = require('async'); | |
| var p = | |
| [ function (cb) { redis.get('key1', cb); } | |
| , function (cb) { couchdb.get('key2', cb); } | |
| ]; | |
| async.parallel(p, function (err, results) { | |
| console.log(results[0]); | |
| console.log(results[1]); | |
| }); |
| #!/usr/local/bin/fish | |
| for file in (git grep -l -E "^ *#"); echo "# "$file; git --no-pager blame -L "/^ *#/" $file; end|grep -e "\(^\|)\) *#" |
| require File.expand_path(File.dirname(__FILE__) + '/edgecase') | |
| # Greed is a dice game where you roll up to five dice to accumulate | |
| # points. The following "score" function will be used to calculate the | |
| # score of a single roll of the dice. | |
| # | |
| # A greed roll is scored as follows: | |
| # | |
| # * A set of three ones is 1000 points | |
| # |
Designing a programming system for understanding programs
Here's a trick question: How do we get people to understand programming?
Khan Academy recently launched an online environment for learning to program. It offers a set of tutorials based on the JavaScript and Processing languages, and features a "live coding" environment, where the program's output updates as the programmer types.
| # first one | |
| mv /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3 ~/Dropbox/Rosetta\ Stone/ | |
| ln -s ~/Dropbox/Rosetta\ Stone/tracking.db3 /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3 | |
| # other | |
| rm /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3 | |
| ln -s ~/Dropbox/Rosetta\ Stone/tracking.db3 /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3 |
| !SLIDE | |
| # 간단히 멋진 슬라이드를 만들수 있는 사이트를 만들었어! | |
| !SLIDE | |
| 이런걸 했어↓ | |
| [Picture Show를 써보았어요.( ^ω^) ](http://d.hatena.ne.jp/xuwei/20110903/1315044919) |
| namespace :db do | |
| namespace :schema do | |
| # desc 'Dump all database schema' | |
| task :dump_all => [:environment, :load_config] do | |
| ActiveRecord::Base.configurations.keys.grep(/_development$/).map{|o|o.sub "_development", ""}.each do |name| | |
| begin | |
| filename = "#{Rails.root}/db/#{name}_schema.rb" | |
| File.open(filename, 'w:utf-8') do |file| | |
| ActiveRecord::Base.establish_connection("#{name}_#{Rails.env}") |