- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| params[:upload_file].tap do |upload_file| | |
| file = upload_file.tempfile.tap | |
| master_class = upload_file.original_filename.sub('.csv', '').classify | |
| master_class.delete_all | |
| csv = CSV.parse(file.read, headers: true) | |
| csv.each do |row| | |
| row = row.to_hash.with_indifferent_access | |
| row.delete(nil) | |
| if row[:id] | |
| master_class.new(row).tap {|record| |
| " filetype が typescript の場合にのみ動作する neocomplcache プラグイン | |
| " jsx_complete.vim を参考にしてます. | |
| " https://github.com/osyo-manga/neocomplcache-jsx/blob/master/autoload/neocomplcache/sources/jsx_complete.vim | |
| let s:source = { | |
| \ 'name': 'typescript_complete', | |
| \ 'kind': 'ftplugin', | |
| \ 'filetypes': { 'typescript': 1 }, | |
| \ } |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |
| /** | |
| * Requires the most current version of Chrome Canary | |
| * | |
| * Demonstrates out of: | |
| * | |
| * v8Intl.DateTimeFormat([ locale ], options ).format() | |
| * | |
| * | |
| */ |
| !!! | |
| html | |
| head | |
| title= title | |
| link(rel='stylesheet', href='/bootstrap.css') | |
| link(rel='stylesheet', href='/bootstrap-responsive.css') | |
| body | |
| div.navbar.navbar-fixed-top | |
| div.navbar-inner |