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>chat</title> | |
</head> | |
<body> | |
{{> entryfield}} | |
{{> messages}} | |
</body> | |
<template name="entryfield"> |
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
"router": { | |
"git": "https://github.com/tmeasday/meteor-router.git", | |
"tag": "v0.6.0" | |
} |
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 -x | |
# useradd -m digilord # Uncomment and change digilord to your username if you want to add a user for yourself | |
sudo apt-get install build-essential -y | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install mongodb -y |
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
[digilord@Io meteor]$ mkdir automation | |
[digilord@Io meteor]$ cd $_ | |
[digilord@Io automation]$ yo meteor | |
_-----_ | |
| | | |
|--(o)--| .--------------------------. | |
`---------´ | Welcome to Yeoman, | | |
( _´U`_ ) | ladies and gentlemen! | | |
/___A___\ '__________________________' |
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
gruntFunction = (grunt) -> | |
gruntConfig = | |
develop: | |
server: | |
file: 'app.js' | |
shell: | |
killmongo: | |
command: 'killall mongod' | |
options: | |
async: false |
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(!Roles.userIsInRole(this.userId, ['s3_admin'])) { | |
return false | |
} | |
# Rest of the code |
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
creationTime = new Date() | |
profile = | |
name: '' | |
stripeId: '' | |
created: creationTime.getTime() | |
address: '' | |
city: '' | |
state: '' | |
country: '' | |
limit: 2 |
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
_data = {} | |
_inputElements = ['input', 'select', 'textarea'] | |
# Find this templates 'form' | |
form = template.find('form'); | |
for type in _inputElements | |
# Get all the fields as an array of jQuery objects | |
elements = $(form).find(type) | |
for element in elements | |
console.log element | |
if element.type == 'checkbox' |
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 http = require('http'); | |
var concatStream = require('concat-stream'); | |
var countDown = 3; | |
var urls = [ | |
{ | |
url: process.argv[2], | |
data: null | |
}, | |
{ | |
url: process.argv[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
#!/bin/bash | |
sudo apt-get install build-essential -y | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install mongodb -y | |
sudo apt-get install git -y | |
sudo apt-get install nginx -y | |
sudo apt-get install htop -y |