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:303071
Created February 12, 2010 22:39
Quick way to see files in a given hg changset
#!/bin/bash
usage()
{
cat << __EOT
Usage: hglist <revision>
where <revision> is the number of a commit revision you'd like to use.
__EOT
exit 1
}
@digitaljhelms
digitaljhelms / gist:306823
Created February 17, 2010 17:18
Fluid SSB userstyle for PyCon Live Stream
/********************************************
*
* Fluid SSB userstyle for PyCon Live Stream by http://twitter.com/digitaljhelms
* Download the x512 SSB application icon here: http://drp.ly/qgqau
*
* Screenshots:
* 1 - http://twitpic.com/13scyf
* 2 - http://twitpic.com/13sczr
*
*******************************************/
@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 */
@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 / 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 / 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 / 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-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 / 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 / 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: