Skip to content

Instantly share code, notes, and snippets.

<?php
# Automated Deployments from Bitbucket/Github Service Hook
# Graciously borrowed from: http://brandonsummers.name/blog/2012/02/10/using-bitbucket-for-automated-deployments/
date_default_timezone_set('America/Chicago');
class Deploy {
/**
* A callback function to call after the deploy has finished.

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@musaulker
musaulker / gist:3365455
Created August 16, 2012 01:37
ActionBarSherlock Theme with Transparent Background (not working)
<style name="Theme.TransparentActivity" parent="Theme.Sherlock.Light.ForceOverflow">
<item name="windowActionBarOverlay">true</item>
<item name="icon">@drawable/ic_launcher</item>
<item name="android:background">@android:color/transparent</item>
<item name="background">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
macbook:iphone macuser$ ./prereq.py package
Traceback (most recent call last):
File "./prereq.py", line 158, in <module>
main(sys.argv)
File "./prereq.py", line 153, in main
check_for_package()
File "./prereq.py", line 138, in check_for_package
check_itunes_version(props)
File "./prereq.py", line 79, in check_itunes_version
minor = int(ver[2])
@musaulker
musaulker / ex.js
Created September 6, 2010 02:13 — forked from kwhinnery/ex.js
win.addEventListener("android:back", function(e) {
//screw with users expectations here
});
// Titanium Create3DMatrix Sample
var button = Titanium.UI.createButton({
title:'Animate Me',
width:300,
height:40,
top:10
});
button.addEventListener('click', function(){
var t = Titanium.UI.create3DMatrix();
t = t.rotate(200, 0, 1.0, 1.0);
// Google Ads on a webview
// Titanium Appcelerator Mobile on Android
//create a mainwindow
var mainwindow = Ti.UI.createWindow({
backgroundColor:'white',
});
//create a webview which opens the Google Adsense html file
var advertisement = Titanium.UI.createWebView({