Skip to content

Instantly share code, notes, and snippets.

@hramos
hramos / buildandarchive.sh
Created January 11, 2011 04:25
Build and Archive script from command line. Use with testflight deployment script, or upload .ipa to web server (use iOS Beta Builder to create initial manifest files)
MY_USERNAME="username"
CONFIGURATION_NAME="Ad Hoc" # Distribution, Ad Hoc...
PROJDIR="/path-to-your-xcode-project"
APPLICATION_NAME="myapplication"
PROJECT_NAME="${APPLICATION_NAME}" # .xcodeproj ommitted
TARGET_SDK="iphoneos4.2" # current sdk
PROJECT_BUILDDIR="/Users/${MY_USERNAME}/path-to-build-dir/${CONFIGURATION_NAME}-iphoneos"
TARGET_TEST_NAME="${APPLICATION_NAME}"
BUILD_HISTORY_DIR="${PROJDIR}/distribution/" # write ${APPLICATION_NAME}.IPA here
DEVELOPER_NAME="Your Name (Bundle Prefix If Applicable)" # mine was company name
var get = Ember.get, set = Ember.set, doc = document;
var FastSelectComponent = Ember.Component.extend({
items: null,
valuePath: 'value',
labelPath: 'label',
value: null,
selected: null,
tagName: 'select',
@chukcha-wtf
chukcha-wtf / adapter.js
Created May 5, 2014 15:14
Ember.js preview
App.ApplicationAdapter = DS.RESTAdapter.extend({
find: function(store, type, token) {
var service = new AuthServiceClient(new Thrift.Protocol(new Thrift.Transport(App.Config.url.auth)));
return new Ember.RSVP.Promise(function(resolve, reject) {
service.error = function(status) {
Ember.run(function(){
reject(status.errorDescription);
});
@cyoungberg
cyoungberg / gist:16f3baa300ccff7c472a
Created August 10, 2015 20:34
Delete merged branches
Local:
git branch --merged | grep -v '>' | grep -v master | xargs -L1 | xargs git branch --delete
Remote (origin):
git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete