Skip to content

Instantly share code, notes, and snippets.

View postpostmodern's full-sized avatar

Jason T Johnson postpostmodern

View GitHub Profile
@postpostmodern
postpostmodern / unform.js
Created December 12, 2008 23:37
unform is a function for replacing form controls with plain text using jQuery
// Replaces form controls with plain text
function unform(form_class)
{
$('form.'+form_class+' input[type=text]').each(
function() {
$(this).after('<span class="proxy">' + $(this).attr('value') + '</span>');
$(this).hide();
}
).next().click(
function() {
Test Gist
#!/usr/bin/env ruby
require 'rubygems'
require 'activeresource'
# Get your API key from your SliceManager here:
# https://manage.slicehost.com/api/
# and put it here:
API_PASSWORD = 'your_api_key_goes_here'
unless ARGV.size == 2 && ARGV[1].end_with?('.')