@ken_c_lo in 町田の部屋 新年会 2014-03-30
- HTML
- CSS
- ビジュアルデザイン
{ | |
"app/serializers/*_serializer.rb": { | |
"command": "serializer", | |
"related": "app/model/*.rb", | |
"alternate": "spec/serializers/%s_spec.rb" | |
}, | |
"app/assets/javascripts/models/*.js.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.js.coffee", | |
"template": "class @AppName.Models.%S extends Backbone.Model" |
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} | |
useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
Thanks.| |
2013 Minori Yamashita ympbyc@gmail.com
ターゲットを動的オブジェクト指向プログラマに絞って、関数指向の考え方を説明します。 コードサンプルでは、オブジェクト指向には CoffeeScript ^1、関数指向には Clojure を使用しますが、文章は汎用的に書いてあります。
最下部に用語集があるので、わかりづらい単語、表現があったら参照してください。
/* balloon | |
=balloon-left($size: 6px, $color: #FFF, $top: 6px) | |
position: relative | |
&:after | |
position: absolute | |
content: "" | |
display: block | |
border: $size solid transparent | |
border-right: $size solid $color | |
top: $top |
# Support for Rspec / Capybara subdomain integration testing | |
# Make sure this file is required by spec_helper.rb | |
# | |
# Sample subdomain test: | |
# it "should test subdomain" do | |
# switch_to_subdomain("mysubdomain") | |
# visit root_path | |
# end | |
DEFAULT_HOST = "lvh.me" |
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |