- Firefox
- Chrome
- Alfred
- iTerm
- Brackets
- Xcode
- Xcode > Preferences > Downloads > Command Line Tools (WTFBBQ)
- git
- node
- Android SDK
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
/* setup a pile of nodejs style methods that accept nodejs style callbacks (where err is the first argument and data the second)*/ | |
var obj = {msg:'before'} | |
function first(obj, cb) { | |
console.log('first', obj.msg) | |
obj.msg += ' ... first' | |
cb(null, obj) | |
} | |
function second(obj, cb) { |
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
function checkForReload() { | |
var xhr = new XMLHttpRequest | |
xhr.open('get', 'http://localhost:1978', true) | |
xhr.setRequestHeader('X-Requested-With','XMLHttpRequest') | |
xhr.onreadystatechange = function() { | |
if (this.readyState === 4 && /^[20]/.test(this.status)) { | |
var reload = JSON.parse(this.responseText).reload | |
if (reload) window.location.reload() | |
} | |
} |
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 connect = require('connect') | |
var static = connect.static(__dirname + '/public') | |
var middleware = function(req, res, next) { next() } | |
var port = 9999 | |
var cb = function() { console.log('Started server localhost:9999') } | |
connect() | |
.use(static) | |
.use(middleware) | |
.listen(port, cb) |
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
// this thing | |
connect( | |
connect.static(_path.join(__dirname, '..', 'thirdparty')), | |
connect.static(__dirname), | |
connect.router(function (app) { | |
app.get('/cordova.test.js', function (req, res) { | |
/* impl */ | |
}), | |
app.get('/', function (req, res) { | |
/* impl */ |
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
<?xml version='1.0' encoding='utf-8'?> | |
<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
<name>HelloCordova</name> | |
<description> | |
A sample Apache Cordova application that responds to the deviceready event. | |
</description> | |
<author email="[email protected]" href="http://cordova.io"> | |
Apache Cordova Team | |
</author> | |
<content src="index.html" /> |
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 path = require('path') | |
, src = path.join(__dirname, 'test/fixtures/mobile-dark-button.css') | |
, dest = path.join('tmp/mobile-dark-button.out.css') | |
require('topcoat-resin')({src:src, dest:dest}) |
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
Running "topcoat:compile" (topcoat) task | |
test/fixtures/mobile-dark-button.css tmp/mobile-dark-button.out.css | |
Warning: Cannot read property 'r' of undefined Use --force to continue. |
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
DGREY="\[\e[0;32m\]" | |
ENDCOLOR="\[\e[0m\]" | |
PS1="$DGREY#! $ENDCOLOR" | |
# allow vi nav on esc | |
set -o vi | |
# android business | |
export PATH=$PATH:~/Repo/android-sdk-macosx/tools | |
export PATH=$PATH:~/Repo/android-sdk-macosx/platform-tools |
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 shell = require('shelljs') | |
, harp = require('harp') | |
, path = require('path') | |
module.exports = function(grunt) { | |
// init ceremonies | |
// | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), |