Assumtions: Git repo cloned from remote named "production" (hence the "-r production" flags)
Pane 1:
heroku logs -t -r production
Pane 2:
/** | |
* Loop over all invoice line items and total up hours/quantity for each person | |
* @author Vance Lucas, Brightbit, LLC | |
*/ | |
var people = {}; | |
$('table.invbody-items tr').each(function(index) { | |
var tr = $(this); | |
var personParts = tr.find('div.description').text().match(/.*\]([^\:]*):/); | |
if(personParts) { | |
var person = personParts[1]; |
Assumtions: Git repo cloned from remote named "production" (hence the "-r production" flags)
Pane 1:
heroku logs -t -r production
Pane 2:
Now that Titanium is starting to have a proper CLI, installing and using Titanium is 67% more awesome. At some of the CLI commands, you will be asked for config information and your Appcelerator login, but these are the high level steps:
sudo npm install -g titanium
titanium sdk install --default
titanium create
#!/usr/bin/env bash | |
### | |
# Run this script as root | |
### | |
# Setup variables for this script | |
USER_NAME=vlucas | |
USER_EMAIL=vance@vancelucas.com | |
SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxoQkUlUr+GcEpY1Its3mXFq/xi6yUgknxcSfGx0Yl25zo9nLl5UpeA+r0SmTfnu5oj674i+Ccx7NgwIkhGONXyKZaWyQf7jQZRa6sAMyETQ8QFbkprLCcF6LXJ9B1Khj16ZgXgcuSjMQKmbi8FA3iCcP5jGeT/02x5QhC5hXNPZafODwR5Xty559mLqsZ3LwzQZ4YaQDi4fnEDz7z4iA5+2Xo44de4ypmAmRBsOJZ0mgiRyClDEa0TVCctIXLeOt5OU76DE/IXuKHmtpwWiAI+c6ZNLmXeidrMQzhS6XfDwtTS0YMNnXn4aSSSJNhuvRAhCj9qjAXT1lV1QPb2P84Q== vance@vancelucas.com" |
{ | |
"_links":{ | |
"add":{ | |
"title":"Add Budget", | |
"href":"http:\/\/localhost\/brightb.it\/budgetapp\/budgets", | |
"method":"post", | |
"parameters":{ | |
"name":{ | |
"type":"string", | |
"required":true |
{ | |
"page":1, | |
"actions":{ | |
"add":{ | |
"url":"http://localhost:3000/events.json", | |
"method":"post", | |
"fields":{ | |
"category_id":{ | |
"type":"integer", | |
"length":null, |
frisby.create('Ensure each tweet has base attributes') | |
.get('https://api.twitter.com/1/statuses/user_timeline.json?screen_name=brightbit') | |
.expectStatus(200) | |
.expectHeaderContains('content-type', 'application/json') | |
.expectJSONTypes('*', { | |
id_str: String, | |
retweeted: Boolean, | |
in_reply_to_screen_name: function(val) { expect(val).toBeTypeOrNull(String); }, // Custom matcher callback | |
user: { | |
verified: Boolean, |
get('http://api.joind.in/v2.1/events/907') | |
expectJSONTypes({ | |
name: String | |
start_date: String | |
end_date: String | |
description: String | |
href: String | |
attendee_count: Number | |
icon: String | |
tags: Array |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
# x386 Architecture | |
export CFLAGS="-arch i386 $CFLAGS" | |
export CCFLAGS="-arch i386 $CCFLAGS" | |
export CXXFLAGS="-arch i386 $CXXFLAGS" | |
export LDFLAGS="-arch i386 $LDFLAGS" | |
# x64 Architecture | |
export CFLAGS="-arch x86_64 $CFLAGS" | |
export CCFLAGS="-arch x86_64 $CCFLAGS" | |
export CXXFLAGS="-arch x86_64 $CXXFLAGS" |