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
import * as fs from 'fs'; | |
import * as path from 'path'; | |
import * as protobufjs from 'protobufjs'; | |
function camelCase(strings: string[]) { | |
return strings | |
.map(s => s[0].toUpperCase() + s.slice(1).toLowerCase()) | |
.join(''); | |
} |
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
{ | |
"FirebaseConnection": { | |
"type": "firebase", | |
"url": "https://moddls-test.firebaseio.com" | |
} | |
} |
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
#!/bin/sh | |
repo=$1 | |
shift | |
echo $repo | grep '/' >/dev/null 2>&1 | |
[ 0 != $? ] && repo="mattinsler/$repo" | |
git clone git@github.com:$repo.git $@ |
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
{ | |
"name": "nodeapps-socket.io", | |
"author": { | |
"name": "Nodejitsu Inc.", | |
"email": "support@nodejitsu.com" | |
}, | |
"scripts": { | |
"start": "node bin/server" | |
}, | |
"version": "0.1.2-5", |
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
mort:socket.io mattinsler$ jitsu deploy | |
info: Welcome to Nodejitsu mattinsler | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Skipping require-analyzer because noanalyze option is set | |
info: Skipping require-analyzer because noanalyze option is set | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/mattinsler/node/socket.io/package.json |
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
new: -> @render() |
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
<h1>New Post</h1> | |
<form id="post" action="/posts" method="POST"> | |
<p> | |
<label for="post[title]">Title:</label> | |
<input type="text" name="post[title]" /> | |
</p> | |
<p> | |
<label for="post[body]">Body:</label> | |
<textarea name="post[body]"></textarea> |
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
<h1>My Blog</h1> | |
<p>Welcome to my blog!</p> | |
<p>To create a new post <%- link_to('click here', '/posts/new') %></p> |
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
index: -> @render() |
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
$ caboose generate controller Posts |
NewerOlder