This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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?('.') |
NewerOlder