- Email: me@example.com
- Twitter: @example
- Website or Blog: http://example.com
- Company: Example Ltd.
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
$ ./run_automation.sh | |
Make sure you are using Xcode 4.3.3 | |
Build settings from command line: | |
CONFIGURATION_BUILD_DIR = /tmp/AutomationExample | |
SDKROOT = iphonesimulator6.0 | |
=== BUILD NATIVE TARGET AutomationExample OF PROJECT AutomationExample WITH THE DEFAULT CONFIGURATION (Release) === | |
Check dependencies | |
ProcessInfoPlistFile /tmp/AutomationExample/AutomationExample.app/Info.plist AutomationExample/AutomationExample-Info.plist |
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
# Provisioning a slicehost for RoR | |
apt-get update | |
apt-get upgrade -y | |
# install dependencies | |
/usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion libcurl4-openssl-dev | |
# install rvm | |
sudo curl -L https://get.rvm.io | bash -s stable --ruby |
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
receive.action_mailer | |
deliver.action_mailer | |
write_fragment.action_controller | |
read_fragment.action_controller | |
exist_fragment?.action_controller | |
expire_fragment.action_controller | |
write_page.action_controller | |
expire_page.action_controller | |
start_processing.action_controller | |
process_action.action_controller |
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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* |
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
commit 79d8497573031a08cffa5bf7d844586aa86d9483 | |
Author: Eric Allam | |
Date: Sat Mar 31 12:43:45 2012 -0400 | |
FIXIN YR SPECS | |
commit 88e9343e1e06956473462a4a83fed7e8e3c845b4 | |
Author: Nick Walsh | |
Date: Fri Mar 30 12:07:23 2012 -0400 |
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
page = new WebPage() | |
page.viewportSize = { width: 800, height: 800 } | |
page.content = "<html><head><title></title></head><body><div></div></body></html>" | |
page.onConsoleMessage = (msg) -> | |
console.log msg | |
page.evaluate -> | |
console.log window.location.protocol # about: |
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
var Appointment = Backbone.Model.extend({ | |
defaults: function(){ | |
date: new Date() | |
} | |
}); | |
var app1 = new Appointment(); | |
var app2 = new Appointment(); | |
app1.get('date') !== app2.get('date') |
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
var TodoItem = Backbone.Model.extend({ | |
initialize: function(){ | |
this.save = _.debounce(this.save, 500); | |
}, | |
toggleStatus: function(){ | |
if(this.get('status') == 'incomplete'){ | |
this.set({'status': 'complete'}); | |
}else{ | |
this.set({'status': 'incomplete'}); |
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
var TodoItem = Backbone.Model.extend({}); | |
var TodoView = Backbone.View.extend({ | |
template: _.template('<h3><%= description %></h3>'), | |
initialize: function(){ | |
this.model.bind('change', this.render, this); | |
this.model.on('destroy', this.remove, this); | |
}, |