Skip to content

Instantly share code, notes, and snippets.

@evanmcd
evanmcd / gist:3737558
Created September 17, 2012 14:13
Sublime Text 2 SublimeLinter user settings
{
"jshint_options":
{
"browser" : false,
"camelcase" : true,
"curly" : true,
"devel" : false,
"indent" : false,
"jquery" : true,
@evanmcd
evanmcd / PagesToJSON
Created July 10, 2012 03:30
First try at a ProcessWire module to convert a PageArray to JSON
<?php
/**
* ProcessWire PagesToJSON Module
*
* Adds the ability to output a PageArray as JSON
* Original code from RC here: http://processwire.com/talk/topic/1417-export-array-to-json-format/
* Don't for get to add header("Content-type: application/json"); to pages that output JSON only
*
* ProcessWire 2.x
/*******************************/
/* app.js
*/
/*******************************/
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var baseWin = Titanium.UI.createWindow({
backgroundColor:'red',
@evanmcd
evanmcd / base.js
Created March 10, 2011 16:33
A window opened from app.js - demonstrating lack of functioning zIndex in Titanium windows
var win = Titanium.UI.currentWindow;
var menuOpen = false;
var lbl = Titanium.UI.createLabel({
color:'#FFF',
text:'Base',
right:0
});
win.add(lbl);
#!C:\ruby\bin
require 'yaml'
require 'cgi'
require 'net/http'
require 'uri'
# configure multiple project settings below
SVNLOOK = `E:\Subversion\bin\svnlook.exe'
LOG_FILE = 'C:\temp\svn-hooks.log'