Skip to content

Instantly share code, notes, and snippets.


James Dennes jdennes

View GitHub Profile
jdennes /
Created August 14, 2014 14:59
Keybase proof

Keybase proof

I hereby claim:

  • I am jdennes on github.
  • I am jdennes ( on keybase.
  • I have a public key whose fingerprint is 9886 E863 A016 9D16 D60D 5B27 0078 B621 0DD0 ABB1

To claim this, I am signing this object:

jdennes /
Created November 18, 2009 21:46
pre-revprop-change svn hook in python
# Performs the following:
# - Makes sure that only the log message may be modified
# - Makes sure that the action is either addition or modification, but not deletion
# - Makes sure that an empty log message isn't entered
# N.B. The new value of the property is passed via standard input
# e.g. in pre-revprop-change.cmd (under Windows)
jdennes / gist:253939
Created December 11, 2009 03:01
Basic .NET .gitignore entries
View gist:253939
# Basic .NET .gitignore entries:
jdennes / Fixing cygwin remap errors
Created July 27, 2010 06:35
Fixing cygwin remap errors
View Fixing cygwin remap errors
In the case of cygwin producing an error of the form "*** fatal error - unable to remap ...":
1. Make sure rebase package is installed (use cygwin setup.exe utility)
2. Kill all cygwin processes
3. Run cmd.exe
4. cd C:\cygwin\bin\
5. .\ash.exe
6. ./rebaseall
View node.js configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : yes
View node.js make
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
This program built for i386-apple-darwin10.0
Reading makefiles...
Updating goal targets....
File `all' does not exist.
jdennes / 01_unvalidated_cm_signup_form.html
Created September 7, 2010 06:26
Easily adding basic validation to your Campaign Monitor subscribe form with jQuery
View 01_unvalidated_cm_signup_form.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<style type="text/css">
span.label,span.spacer,span.multiple span {width:120px;float:left;}
span.multiple {float:left;}
span.button {padding-left:120px;}
div.clear {clear:both;padding-top:5px;}
jdennes / riceisnice.rb
Created November 8, 2010 12:18
Automatically download the playlist
View riceisnice.rb
# Automatically download the playlist
require 'rexml/document'
file ='playlist.xml', 'r')
doc =
files = []
doc.elements.each('playlist/item/path') do |p|
files << p.text
jdennes / ivyleague.rb
Created December 20, 2010 23:47
Automatically download the playlist
View ivyleague.rb
# Automatically download the playlist
require 'rexml/document'
file ='data.xml', 'r')
doc =
files = []
doc.elements.each('songs/song') do |s|
files << "{s.attributes["url"]}"
View campaignmonitor_api_wadl.xml
<application xmlns:xsi=""
<resources base="">
<resource path="clients.{format}">
<param name="format" type="xsd:string" style="template" required="true" default="json">
<option value="json" mediaType="application/json"/>