Skip to content

Instantly share code, notes, and snippets.

@evanmcd
evanmcd / gist:3737558
Created Sep 17, 2012
Sublime Text 2 SublimeLinter user settings
View gist:3737558
{
"jshint_options":
{
"browser" : false,
"camelcase" : true,
"curly" : true,
"devel" : false,
"indent" : false,
"jquery" : true,
@evanmcd
evanmcd / PagesToJSON
Created Jul 10, 2012
First try at a ProcessWire module to convert a PageArray to JSON
View PagesToJSON
<?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
View gist:864926
/*******************************/
/* 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 Mar 10, 2011
A window opened from app.js - demonstrating lack of functioning zIndex in Titanium windows
View base.js
var win = Titanium.UI.currentWindow;
var menuOpen = false;
var lbl = Titanium.UI.createLabel({
color:'#FFF',
text:'Base',
right:0
});
win.add(lbl);
View Lighthouse-Subversion-post-commit-hook_Win.rb
#!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'
You can’t perform that action at this time.