This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nil.aaa | |
# => NoMethodError: undefined method `aaa' for nil:NilClass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1, nil, 2, nil, 3, nil].compact | |
# => [1, 2, 3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/posts', to: MyRackApp => (変更不要) | |
get '/posts', to: 'post#index' => (変更不要) | |
get '/posts', to: 'posts' => get '/posts', controller: :posts | |
get '/posts', to: :index => get '/posts', action: :index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
---------- | |
Updated Homebrew from 04771ec8 to e89d1e75. | |
==> New Formulae | |
chinadns-c smali synscan ucommon | |
==> Updated Formulae | |
ansible flac jenkins mplayershell wimlib | |
assimp flow juju neo4j wireshark | |
cfengine fontforge libksba ninja wxpython | |
clamav git liboping percona-server xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== APP-NAME Releases | |
v50 Deploy 45de3e3 [email protected] 2014/11/25 17:37:55 (~ 27m ago) | |
v49 Deploy ff3082d [email protected] 2014/11/25 16:49:20 (~ 1h ago) | |
v48 Deploy 0508f80 [email protected] 2014/11/25 14:05:57 (~ 3h ago) | |
v47 Deploy cfed7f8 [email protected] 2014/11/25 13:44:55 (~ 4h ago) | |
v46 Deploy e847a65 [email protected] 2014/11/25 12:27:30 (~ 5h ago) | |
v45 Deploy 0848019 [email protected] 2014/11/25 12:14:57 (~ 5h ago) | |
v44 Deploy 5a5b056 [email protected] 2014/11/25 11:56:16 (~ 6h ago) | |
v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tasks = new Mongo.Collection("tasks"); | |
if (Meteor.isClient) { | |
// This code only runs on the client | |
Template.body.helpers({ | |
tasks: function () { | |
if (Session.get("hideCompleted")) { | |
// If hide completed is checked, filter tasks | |
return Tasks.find({checked: {$ne: true}}, {sort: {createdAt: -1}}); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Todo List</title> | |
</head> | |
<body> | |
<div class="container"> | |
<header> | |
<h1>Todo List ({{incompleteCount}})</h1> | |
<label class="hide-completed"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tasks = new Mongo.Collection("tasks"); | |
if (Meteor.isClient) { | |
// This code only runs on the client | |
Template.body.helpers({ | |
tasks: function () { | |
if (Session.get("hideCompleted")) { | |
// If hide completed is checked, filter tasks | |
return Tasks.find({checked: {$ne: true}}, {sort: {createdAt: -1}}); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Todo List</title> | |
</head> | |
<body> | |
<div class="container"> | |
<header> | |
<h1>Todo List ({{incompleteCount}})</h1> | |
<label class="hide-completed"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tasks = new Mongo.Collection("tasks"); | |
if (Meteor.isClient) { | |
// This code only runs on the client | |
Template.body.helpers({ | |
tasks: function () { | |
// Show newest tasks first | |
return Tasks.find({}, {sort: {createdAt: -1}}); | |
} | |
}); |
NewerOlder