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
| tx.executeSQL("SQL instructions", function(tx, result){}, function(tx,error){}); |
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.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); |
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
| 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 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
| alias e='aquamacs' | |
| test this | |
| test this again | |
| revision? |
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
| alias e='aquamacs' | |
| test this |
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
| 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' |
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
| alias e='aquamacs' |
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
| alias |