Skip to content

Instantly share code, notes, and snippets.

alias
alias e='aquamacs'
export PATH=~/bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH
export GIT_EDITOR=emacs
alias ls="ls -G"
alias g="git"
alias gb="git branch"
alias gba="git branch -all"
alias gca="git commit -v -a"
alias gst="git status"
alias mr='mate app config content db lib public test spec features vendor/plugins vendor/gems'
alias e='aquamacs'
alias e='aquamacs'
test this
alias e='aquamacs'
test this
test this again
revision?
Database = Class.create({
initialize: function(tableName) {
this.tableName = tableName;
this.db = openDatabase("Database Name", "1.0", "Display Name", 10000);
},
handleFirstTimers: function(firstTimeCallback, everyOtherTimeCallback) {
this.db.transaction(function(tx) {
tx.executeSql("CREATE TABLE IF NOT EXISTS " + this.tableName + " (flag REAL)",[], function(tx, result) {
tx.executeSql("SELECT flag FROM " + this.tableName, [], function(tx, result) {
this.db.transaction(function(tx) {
tx.executeSql("CREATE TABLE IF NOT EXISTS " + this.tableName + " (flag REAL)",[], function(tx, result) {
tx.executeSql("SELECT flag FROM " + this.tableName, [], function(tx, result) {
if (result.rows.length == 0) {
tx.executeSql("INSERT INTO " + this.tableName + " (flag) VALUES (1)", [], function(tx, result) {
firstTimeCallback();
}, function(tx, error) {
Mojo.Log.error("There was an error inserting into " + this.tableName + ": " + error.message);
tx.executeSQL("SQL instructions", function(tx, result){}, function(tx,error){});