Skip to content

Instantly share code, notes, and snippets.

companies = [{"id":1,"ticker":"AAPL","name":"Apple Inc"},
{"id":2,"ticker":"ABC","name":"Amerisourcebergen Corp"},
{"id":3,"ticker":"ABT","name":"Abbott Labs"},
{"id":4,"ticker":"ACE","name":"Ace Ltd"},
{"id":5,"ticker":"ADBE","name":"Adobe Sys Inc"}]
_.templateSettings = interpolate :/\{\{(.+?)\}\}/g
$ ->
@ruedap
ruedap / gist:5035744
Last active December 14, 2015 05:29 — forked from mochiz/gist:4736183
ruby2.0.0-p0のインストール

ruby2.0.0-p0のインストール

$ brew update
$ brew upgrade rbenv
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
"----------------------------------------
" vim-ref
"----------------------------------------
"{{{
let g:ref_use_vimproc = 1
let g:ref_open = 'split'
let g:ref_cache_dir = expand('~/.Trash')
" PATHを設定する
let g:ref_refe_cmd = expand('~/.vim/ref/ruby-ref1.9.2/refe-1_9_2')
@ruedap
ruedap / .vimrc
Created September 10, 2012 17:37 — forked from qickstarter/.vimrc
"------------------------------------
" vim-rails.vim
"------------------------------------
""{{{
"有効化
let g:rails_some_option = 1
let g:rails_level = 4
let g:rails_syntax = 1
let g:rails_statusline = 1
let g:rails_url='http://localhost:3000'
@ruedap
ruedap / _html5boilerplate.css.sass
Created September 4, 2012 19:13 — forked from richardvenneman/_html5boilerplate.css.sass
HTML5 Boilerplate HAML & SASS
/*
* HTML5 ✰ Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
@ruedap
ruedap / application.html.haml
Created September 4, 2012 19:10
HTML5 Boilerplate v2.0 in HAML
!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
/[if lt IE 7] <html class="no-js ie6 oldie" lang="en">
/[if IE 7] <html class="no-js ie7 oldie" lang="en">
/[if IE 8] <html class="no-js ie8 oldie" lang="en">
-# Consider adding a manifest.appcache: h5bp.com/d/Offline
/[if gt IE 8] <!--> <html class="no-js" lang="en"> <!--
%head
%meta{:charset => 'utf-8'}
" こういうHTMLがあったときに
" <div id="hoge" class="fuga">
" ...
" </div>
"
" 実行するとこうなる
" <div id="hoge" class="fuga">
" ...
" <!-- /div#hoge.fuga --></div>
@ruedap
ruedap / app~model~user.rb
Created June 4, 2012 00:57
rails3: 復号化出来るユーザー情報の保存
# 参考にしたサイト: http://mono-comp.com/programming/rails-web-appli-register/
# URLのコードとほぼ100%同じ
# $ rails g model user name:string access_token:binary access_token_secret:binary salt:string
# または
# $ rails g model user して、 db/migration 下の ***_create_user.rb に
# t.string :name
# t.binary :access_token
# t.binary :access_token_secret
# t.string :salt
@ruedap
ruedap / octocat.svg
Created July 1, 2011 13:04
Github octocat avatar, SVG format
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.