This file contains 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</h1> | |
<form class="new-task"> |
This file contains 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}}); | |
} | |
}); |
This file contains 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</h1> | |
<form class="new-task"> |
This file contains 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 () { | |
return Tasks.find({}); | |
} | |
}); | |
} |
This file contains 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</h1> | |
</header> |
This file contains 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
gem 'webpay', '~> 3.1' # WebPay |
This file contains 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
curl https://install.meteor.com/ | sh | |
---------- | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 6117 0 6117 0 0 2958 0 --:--:-- 0:00:02 --:--:-- 2959 | |
Downloading Meteor distribution | |
######################################################################## 100.0% | |
Meteor 1.0 has been installed in your home directory (~/.meteor). | |
Writing a launcher script to /usr/local/bin/meteor for your convenience. |
This file contains 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
heroku fork -a APPNAME APPNAME-staging |
This file contains 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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
---------- | |
==> This script will install: | |
/usr/local/bin/brew | |
/usr/local/Library/... | |
/usr/local/share/man/man1/brew.1 | |
Press RETURN to continue or any other key to abort | |
==> /usr/bin/sudo /bin/mkdir /usr/local |
This file contains 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
ruby -v | |
---------- | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] | |
---------- |