Skip to content

Instantly share code, notes, and snippets.

@cdmoyer
cdmoyer / bloxsom_to_tumblr.rb
Created October 30, 2009 04:16
Script to import bloxsom blog to tumblr
require 'rubygems'
require 'redcloth'
require 'net/http'
require 'uri'
user = 'your@email.here'
pass = 'thisisnotit'
url = URI.parse('http://www.tumblr.com/api/write')
ARGF.each do |f|
@cdmoyer
cdmoyer / minimal_modal.js
Created October 21, 2009 19:49
A minimal modal? Ideally cross-platform, fast, and tiny.
/* minimal_modal.js - http://gist.github.com/215401
* Copyright (c) 2009 Chris Moyer (chris@inarow.net)
*
* Usage:
* modal.open('some html'); // Open a modal
* modal.close(); // Close a modal
*
* No options or configuration. It's minimal. Take, edit, use.
*
* MIT (http://www.opensource.org/licenses/mit-license.php) licensed.
@cdmoyer
cdmoyer / gist:199379
Created October 2, 2009 01:22 — forked from atduskgreg/gist:44089
jquery.tinydb
/* jquery.tinydb - jQuery interface to TinyDB (http://tinydb.org/)
* Copyright (c) 2008 Chris Moyer (chris@inarow.net)
*
* usage:
* jQuery.tinydb.read(tinydb_id, callback);
* callback is called with the data from TinyDB
*
* jQuery.tinydb.write({key: val, key2: val2}, callback);
* write data, callback is called with tinydb_id string
*