Skip to content

Instantly share code, notes, and snippets.

View ghae's full-sized avatar

Aeromedicale ghae

View GitHub Profile
@ghae
ghae / gist:3927649
Created October 21, 2012 17:12 — forked from aaronpk/gist:2947274
Example of using sign up / log in methods of the Titanium SDK
geoloqi.init({
clientId: "xxxxxxx",
clientSecret: "xxxxxxx",
trackingProfile: "OFF", // Don't automatically start tracking
allowAnonymousUsers:false, // Don't automatically create a user when starting up the first time
pushAccount: "[email protected]", // Sets the push account to use for Android notifications
pushIcon: "push_icon" // Also required for Android push notifications
}, {
onSuccess:function(e) {
if (geoloqi.session==null) {
@ghae
ghae / hack.sh
Created April 10, 2012 15:38 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@ghae
ghae / colorbox.less
Created April 4, 2012 22:11 — forked from barryvdh/colorbox.less
Colorbox skin for Bootstrap
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
@ghae
ghae / dbtest.js
Created August 17, 2010 15:04 — forked from kwhinnery/dbtest.js
// Using the JavaScript module pattern, create a persistence module for CRUD operations
// One tutorial on the Module Pattern: http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
var db = (function() {
//create an object which will be our public API
var api = {};
//maintain a database connection we can use
var conn = Titanium.Database.open('todos');
//Initialize the database