(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
haiku = -> | |
adjs = [ | |
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
"billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
"red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
"wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
var moment = require('moment'); // http://momentjs.com/docs/ | |
var _ = require('lodash'); // https://lodash.com/docs | |
function(collectionsWithDateValues){ | |
var slots = []; | |
var hours = { | |
start: 7, // 7am | |
end: 21, // 9pm | |
window: 2 // How long each item should be slotted for. | |
}; |
If you want to submit a pull request for an Atmosphere package you will first need to
cd
into the folder you want the repository saved in and run the git clone
command.git clone
command we break it down into 3 parts.git clone
.We will create a simple "Wish List" Web application using Ruby on Rails (Rails) and Nitrous.IO (Nitrous).
Rails is a Web application development framework written in the Ruby programming language. It follows a "convention over configuration" philosophy that allows developers to quickly create valuable products if they choose to follow convention. However, Rails is powerful enough to to create applications like Twitter and Groupon.
Nitrous is a Web-based application development service. It permits software developers to focus on writing code and less on the intricacies of their development environment. Their tagline is, "making coding in the cloud a reality." Using Nitrous, you are literally programming a server running in "The Cloud."
A query defines a set of conditions on a collection of documents. Most of the time, only the documents that meet these conditions need to be published to the client. In many cases the query's conditions are subject to the state of the application (for instance the selected sorting field). This pattern describes how to update your query's result set reactively with meteor without losing the cursor's state. This way, results are preserved over different adjustements of a query if they meet both set of conditions.
To illustrate this pattern best, we'll be using the following example case throughout.
Let's say you have a collection of Players
and a collection of Games
. We track each score in a Scores
collection. Some example data:
Players:
import ProductTable from './product-table' | |
import SearchBar from './search-bar' | |
div | |
SearchBar(filterText=state.filterText | |
inStockOnly=state.inStockOnly | |
handleUserInput=this.handleUserInput | |
) | |
ProductTable(filterText=state.filterText | |
inStockOnly=state.inStockOnly | |
products=props.products |
function checkEmailAddress(emailAddress) { | |
check(emailAddress, String); | |
suffix = emailAddress.split('@')[1]; | |
if (suffix === "wcs.com") | |
{ return true } else { return false }; | |
}; | |
Accounts.validateNewUser(function (user) { | |
console.log(user); | |
if (checkEmailAddress(user.emails[0].address)) { |
## Meteor Patterns ## | |
---------- | |
# Simple Search | |
- Avoid duplicating the same query code on the client and server. | |
- Provide some simple search results. | |
> common/utils.js |