Skip to content

Instantly share code, notes, and snippets.


Jonathan Dixon jonathandixon

View GitHub Profile
ohh2ahh / increment_build_number.js
Created Jun 1, 2015
Cordova hook for incrementing build numbers
View increment_build_number.js
#!/usr/bin/env node
// Save hook under `project-root/hooks/before_prepare/`
// Don't forget to install xml2js using npm
// `$ npm install xml2js`
var fs = require('fs');
var xml2js = require('xml2js');
staltz /
Last active Oct 20, 2020
The introduction to Reactive Programming you've been missing
Kartones /
Last active Oct 20, 2020
PostgreSQL command line cheatsheet


Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
jonathandixon /
Last active Apr 16, 2019
Using Grunt with a Cordova 3 project.

Grunt and Cordova 3

The advantages of using Grunt with Cordova:

  1. It simplifies working with the cordova cli.
  2. It provides a mechanism to copy platform customization to the platforms directory without having to commit the generated plugins and platforms directories to version control.
  3. It provides a way to watch resources and automatically run cordova commands.

Stack Overflow: .gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?

brajeshwar / gist:1886227
Created Feb 22, 2012 — forked from axelav/gist:1839777
Sublime Text 2 Shortcuts for Mac
View gist:1886227

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
nuxlli /
Created Sep 9, 2011 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
uarun / filetype.vim
Created Aug 3, 2011
Gradle syntax highlighting in vim
View filetype.vim
# ~/.vim/filetype.vim
au BufNewFile,BufRead *.gradle setf groovy
You can’t perform that action at this time.