Skip to content

Instantly share code, notes, and snippets.

View timothyf's full-sized avatar

Timothy Fisher timothyf

View GitHub Profile
@timothyf
timothyf / tumblr-recent-posts.js
Last active April 19, 2016 20:23 — forked from jarmo/tumblr-recent-posts.js
Tumblr Recent Posts Widget
/*
This widget shows Recent Posts on your Tumblr blog.
Its dependency is jQuery.
Usage:
1) Add html:
<div id="recent-posts"></div>
2) Add code into the <head>:
@timothyf
timothyf / Using ActiveRecord outside of Rails
Created July 21, 2010 18:51
Using ActiveRecord Outside of Rails
require "rubygems"
require_gem "activerecord"
ActiveRecord::Base.establish_connection (
:adapter => "mysql",
:host => "localhost",
:username => "root",
:database => "HumanResources")
class Employee < ActiveRecord::Base