Skip to content

Instantly share code, notes, and snippets.

View mitchellrj's full-sized avatar

Richard Mitchell mitchellrj

View GitHub Profile
@mitchellrj
mitchellrj / loadtweetsfromjson.php
Created August 28, 2012 13:39 — forked from bryanveloso/loadtweetsfromjson.php
A horrible, simply horrible hack to getting TweetNest to read JSON. Copy this to the /maintenance/ folder of your TweetNest installation.
<?php
// TWEET NEST
// Load tweets (from JSON)
error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", true); // For easy debugging, this is not a production page
@set_time_limit(0);
require_once "mpreheader.php";
$p = "";
// The below is not important, so errors surpressed
@mitchellrj
mitchellrj / get_teaser.py
Created February 20, 2012 15:42 — forked from enko/teaser.py
teaser behavior
## Script (Python) "get_teaser"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##
# Put this file in a skins directory, call it by doing context/get_teaser or context.get_teaser()