Skip to content

Instantly share code, notes, and snippets.

View digitaljhelms's full-sized avatar

Jeremy Helms digitaljhelms

  • USA
View GitHub Profile
@digitaljhelms
digitaljhelms / gist:1359047
Created November 11, 2011 19:55
GravatarExample
#!/usr/bin/perl
#fetch Gravatars
#http://code.google.com/p/gource/wiki/GravatarExample
use strict;
use warnings;
use LWP::Simple;
use Digest::MD5 qw(md5_hex);
@digitaljhelms
digitaljhelms / gist:1354003
Created November 10, 2011 03:10
Installing and using Gource on Mac OS X (only tested on Snow Leopard)

Gource

Gource is a software version control visualization tool.

Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project.

http://code.google.com/p/gource/

Installing Gource Manually (w/out MacPorts or Homebrew)

@digitaljhelms
digitaljhelms / README.MD
Created November 4, 2011 19:10 — forked from wynst/README.MD
A Thor Task to unwatch *all* Github watched repositories (excluding owned) and optionally export to delicious.

A Thor Task to unwatch all Github watched repositories (excluding owned) and optionally export to delicious.

Sorry Github, for I have sinned. I use the Watch feature as a bookmarker.

Install required gems:

gem install thor rest-client

Use it as such:

@digitaljhelms
digitaljhelms / gist:1297318
Created October 19, 2011 02:12
Cloud9 IDE `help` command output
$ help
beautify reformat selected JavaScript code in the editor
c9 alias for 'open'
cd change working directory
clear clear all the messages from the console
closeallbutme close all opened tabs, but the tab that is currently active
closealltabs close all opened tabs
closetab close the tab that is currently active
debug run and debug a node program on the server
find open the quicksearch dialog to quickly search for a phrase
@digitaljhelms
digitaljhelms / nph-sprockets.cgi
Created August 5, 2011 06:17
Use Sprockets to serve JavaScript outside of a Ruby environment using an RVM instance (and optional gemset)
#!/usr/bin/env /User/<username>/.rvm/bin/<instance>[@gemset]
# This is a simple CGI wrapper around Sprockets.
#
# Copy it into a directory on your site with CGI enabled. When invoked, the
# script will search its directory and parent directories for a YAML file named
# "config/sprockets.yml" in order to load configuration information.
#
# If you set the environment variable "sprockets_generate_output_file" to
# "true" the concatenation will be cached to disk. Use it in conjunction with
@digitaljhelms
digitaljhelms / img_coverage.rb
Created May 9, 2011 17:04 — forked from angelo/img_coverage.rb
finds unused image assets in a website project.
#!/usr/bin/env ruby
require 'fileutils'
files = Dir['**/*.{htm,html,shtml,php,css,js}']
images = Dir['**/*.{jpg,png,gif,bmp}']
puts "#{images.size} images found & #{files.size} files found to search against"
content = ""
@digitaljhelms
digitaljhelms / nph-sass.cgi
Created March 25, 2011 21:18
CGI wrapper around Sass, written in Ruby
#!/usr/bin/env ruby
# This is a simple CGI wrapper around Sass.
#
# Copy it into a directory on your site with CGI enabled. When invoked, the
# script will search its directory and parent directories for a YAML file named
# "config/sass.yml" in order to load configuration information.
#
# If you set the environment variable "sass_generate_output_file" to
# "true" the concatenation will be cached to disk. Use it in conjunction with
@digitaljhelms
digitaljhelms / growlnotificationswithmessagesforcampfireandfluid.user.js
Created March 23, 2011 03:36
Modified version of Growl for Campfire & Fluid.app
// ==UserScript==
// @name Growl notifications with messages for Campfire and Fluid.app
// @namespace https://gist.github.com/882569
// @description If your name is mentioned in a message, a growl notification shows what was said.
// @author Tim Harper
// @homepage http://userscripts.org/scripts/show/22891
// @include *.campfirenow.com/room*
// ==/UserScript==
@digitaljhelms
digitaljhelms / campfireuicleanup.user.js
Created February 9, 2011 18:36
Campfire UI Cleanup
// ==UserScript==
// @name Campfire UI Cleanup
// @namespace https://gist.github.com/818985
// @description Some crap is just unnecessary
// @author Jeremy Helms
// @include *.campfirenow.com/room*
// ==/UserScript==
try {
var css = "#conference {display:none;}\n#corner_logo {display:none;}\nul.participant-list {height:auto;}\n";
@digitaljhelms
digitaljhelms / position:fixed.css
Created July 20, 2010 20:18
Fixed positioning, even in IE6
html, body { min-height:100%; *height:auto !important; height:100%; }
#foobar { height:100%; width:100%; overflow:hidden; position:fixed; z-index:0; top:0; left:0; }
/* IE6 doesn't recognize position:fixed */
/* http://bit.ly/blamhO */
body { _background-image:url(about:blank); _background-attachment:fixed; }
/* http://bit.ly/aOv4iK */