Skip to content

Instantly share code, notes, and snippets.

View carldanley's full-sized avatar

Carl Danley carldanley

View GitHub Profile
@carldanley
carldanley / cd-twitter.php
Created August 29, 2012 14:13
CD Twitter Caching
<?php
//------------------------------------------------------------------------------
class CD_Twitter{
protected $_base_twitter_url = 'https://api.twitter.com/1/statuses/user_timeline.json?';
protected $_default_options = array(
'include_entities' => true,
'include_rts' => true,
'screen_name' => 'carldanley',
'count' => 10
);
@carldanley
carldanley / box-example.js
Created August 28, 2012 21:04
Box Example
function createBoxes(){
var html = '';
var boxesToCreate = 50;
//create the container node
var container = document.createElement( 'div' );
container.className = 'container';
//create the boxes and add them to the container
for( var i = 0; i < boxesToCreate; i++ ){