Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
digitaljhelms / gist:303071
Created Feb 12, 2010
Quick way to see files in a given hg changset
View gist:303071
#!/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 Feb 17, 2010
Fluid SSB userstyle for PyCon Live Stream
View gist:306823
/********************************************
*
* 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 Jul 20, 2010
Fixed positioning, even in IE6
View position:fixed.css
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 */
View campfireuicleanup.user.js
// ==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 Mar 23, 2011
Modified version of Growl for Campfire & Fluid.app
View growlnotificationswithmessagesforcampfireandfluid.user.js
// ==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 Mar 25, 2011
CGI wrapper around Sass, written in Ruby
View nph-sass.cgi
#!/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 — forked from angelo/img_coverage.rb
finds unused image assets in a website project.
View img_coverage.rb
#!/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 Aug 5, 2011
Use Sprockets to serve JavaScript outside of a Ruby environment using an RVM instance (and optional gemset)
View nph-sprockets.cgi
#!/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 Oct 19, 2011
Cloud9 IDE `help` command output
View gist:1297318
$ 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 Nov 4, 2011 — forked from wynst/README.MD
A Thor Task to unwatch *all* Github watched repositories (excluding owned) and optionally export to delicious.
View README.MD

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: