Skip to content

Instantly share code, notes, and snippets.

View mattinsler's full-sized avatar

Matt Insler mattinsler

  • San Francisco, CA
View GitHub Profile
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('');
}
{
"FirebaseConnection": {
"type": "firebase",
"url": "https://moddls-test.firebaseio.com"
}
}
#!/bin/sh
repo=$1
shift
echo $repo | grep '/' >/dev/null 2>&1
[ 0 != $? ] && repo="mattinsler/$repo"
git clone git@github.com:$repo.git $@
{
"name": "nodeapps-socket.io",
"author": {
"name": "Nodejitsu Inc.",
"email": "support@nodejitsu.com"
},
"scripts": {
"start": "node bin/server"
},
"version": "0.1.2-5",
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
new: -> @render()
<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>
<h1>My Blog</h1>
<p>Welcome to my blog!</p>
<p>To create a new post <%- link_to('click here', '/posts/new') %></p>
index: -> @render()
$ caboose generate controller Posts