Skip to content

Instantly share code, notes, and snippets.

View jgallen23's full-sized avatar

Greg Allen jgallen23

View GitHub Profile
@jgallen23
jgallen23 / ir_black.taskpapertheme
Created March 31, 2010 04:36
TaskPaper IRBlack Theme
<theme>
<!-- Window Style -->
<color id="foreground" red="0.59" green="0.80" blue="0.99" alpha="1.0" />
<color id="background" red=".1" green=".1" blue=".1" alpha=".95" />
<window foregroundColorID="foreground" backgroundColorID="background" shouldUseHUDScrollers="yes" />
<!-- Text View Style -->
<color id="tag" red=".48" green=".48" blue=".48" alpha="1.0" />
<color id="handle" extendsColorID="foreground" />
<color id="insertionPoint" red=".4" green=".4" blue=".4" alpha="1.0" />
@jgallen23
jgallen23 / CycleTags.applescript
Created March 31, 2010 04:56
TaskPaper Cycle Tag Script
property cycleTags : {"low", "medium", "high"}
tell application "TaskPaper"
tell front document
set selected to selected entries
repeat with t in selected
if entry type of t is task type then
set tagged to false
set item_count to number of items in cycleTags
repeat with i from 1 to item_count
set tagName to item i of cycleTags
@jgallen23
jgallen23 / weinre.js
Created February 6, 2011 00:28
Simple Javascript function to connect to Weinre server
var startWeinre = function() {
var setServer = localStorage['weinre'] || "";
var server = prompt("Weinre Server:", setServer);
if (!server)
return;
localStorage['weinre'] = server;
var script=document.createElement('script');
script.src = "http://" + server + "/target/target-script.js";
document.getElementsByTagName("head")[0].appendChild(script);
}
console.log = function() { document.write([].splice.call(arguments,0).join(' ')+"<br/>"); };
express = require "express"
app = express.createServer()
app.configure () ->
app.use express.methodOverride()
app.use express.bodyParser()
app.use app.router
app.set "views", "#{ __dirname }/templates"
app.set "view engine", "ejs"
app.register ".html", require "ejs"
@jgallen23
jgallen23 / bookmarklet.js
Created July 26, 2011 00:57
The Hit List Bookmarklet
javascript:var addTask=function(a,b,c,d,e){window.location="thehitlist:///"+c+"/tasks?method=POST&title="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&startDate="+d+"&priority="+e};addTask(document.title,window.location,"inbox","t")
@jgallen23
jgallen23 / cmd.sh
Created January 2, 2012 22:19
Server Provision Script
wget https://gist.github.com/raw/1552359/82565cd875067cc6ac4250daaeeb151d41f8b9a7/setup.sh && chmod +x setup.sh
sudo ./setup.sh
@jgallen23
jgallen23 / .gitignore
Created April 25, 2012 22:36
Mon tests
server.pid

#Moncmd

moncmd is a wrapper for mon

##Usage

moncmd start
moncmd status
moncmd restart
@jgallen23
jgallen23 / toggle.applescript
Created January 7, 2013 23:15
Script to toggle between Google Chrome and iTerm
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
if frontApp is "Google Chrome" then
tell application "iTerm"
activate
end tell
else
tell application "Google Chrome"
activate
end tell