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
var psParts = rawPs.split(/\w+/); | |
console.error(psParts); | |
[ ' ', ' ', '' ] | |
[ ' ', ' ', '' ] | |
[ ' ', ' ', '' ] | |
[ '', ' ', '' ] | |
[ '', ' ', '' ] | |
[ '', ' ', '' ] | |
[ '', ' ', '' ] |
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
#foo { | |
width: 100px; | |
height: 100px; | |
border: 1px solid grey; | |
} |
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
var list; | |
function getList() { | |
if (!list) | |
...compute list | |
reutrn list | |
} | |
Template.post.postList = function () { | |
return list; |
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
Mycollection = new Meteor.Collection("mycollection"); | |
Meteor.startup(function () { | |
Mycollection.insert({name: test1}); | |
Mycollection.insert({name: test2}); | |
var my_collection = Mycollection.find({}, {sort: {name: 1}}); | |
console.log(my_collection.count()); | |
my_collection.forEach(function debug() {console.log('test');}); | |
}); |
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>Shuffle</title> | |
<link href='http://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="main"> | |
{{#if front}} |
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
#!/bin/bash | |
# | |
# Until Meteor with something better, | |
# This script installs the required dependencies into meteor | |
# Written by @orefalo (Olivier Refalo) | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | |
CLIENT_SESSIONS="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
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
new Demo({ | |
hosts: { | |
production: ['forms.meteor.com'] | |
}, | |
github: { | |
user: 'possibilities', | |
repo: 'meteor-forms' | |
} | |
}); |
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
<body> | |
{{#routeIs "home"}} | |
{{> home}} | |
{{else}} | |
{{> kitchenSink}} | |
{{/routeIs}} | |
</body> |
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
if (Meteor.is_client) { | |
Chatrooms = new Meteor.Collection('chatRooms'); | |
Meteor.subscribe('chatRooms'); | |
var rooms = Chatrooms.find(); | |
Meteor.startup(function() { | |
var roomResults = Meteor.ui.render(function() { |
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
<template name="RoomListTemplate"> | |
<div id="roomList"> | |
<ul> | |
{{#each rooms}} | |
<li>{{name}}</li> | |
{{/each}} | |
</ul> | |
</div> | |
</template> |