This file contains hidden or 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
<?php | |
include( 'simplepie.php' ); | |
$sourceURL = 'feed://search.twitter.com/search.atom?q=+%22i+am+here+now%22&lang=all&rpp=100'; | |
$feed = new SimplePie(); | |
$feed->set_feed_url($sourceURL); | |
$feed->set_timeout(10); | |
$feed->enable_cache(true); | |
$feed->init(); |
This file contains hidden or 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 python | |
# encoding: utf-8 | |
# David Wicks | |
""" | |
patcher.py | |
Fills holes in tabular data files (TSV) | |
basic usage: python patcher.py fileToPatch.tsv | |
more control: python patcher.py fileToPatch.csv outputfile.csv replacementValue , | |
""" |
This file contains hidden or 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
/** | |
AnnihilateTime.jsfl | |
Pre-processing script for exporting animation keyframes | |
Use before exporting an image sequence | |
Duplicates your keyframes to new layers for export | |
Original layers become guides so they aren't exported | |
David Wicks, http://sansumbrella.com/ | |
*/ |
This file contains hidden or 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 python | |
# encoding: utf-8 | |
import sys | |
import os | |
import commands | |
from datetime import date | |
def main(): | |
downloadDaysData( date.today() ) |
This file contains hidden or 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
#include "cinder/app/AppBasic.h" | |
#include "cinder/CinderMath.h" | |
#include "cinder/gl/gl.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
class SuperFormulaApp : public AppBasic { | |
public: |
This file contains hidden or 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 python | |
# encoding: utf-8 | |
import Image | |
import sys | |
import os | |
def main(): | |
path = "where-images-may-live" | |
This file contains hidden or 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
String imageName; | |
String outputPath; | |
boolean labelTiles = false; | |
int tileSize = 256; | |
PFont tileFont; | |
PImage startImage; | |
void setup() | |
{ |
This file contains hidden or 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
<html> | |
<head> | |
<title>Polymaps Learning</title> | |
<meta name="author" content="David Wicks"/> | |
<!-- Date: 2011-04-11 --> | |
<!-- Get polymaps for this to work: http://polymaps.org/ --> | |
<script type="text/javascript" src="lib/polymaps.min.js"></script> | |
<script type="text/javascript"> | |
function run() | |
{ |
This file contains hidden or 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
// | |
// DateUtils.cpp | |
// Created by David Wicks on 4/23/11. | |
#include "DateUtils.h" | |
#include <sstream> | |
using namespace boost::gregorian; | |
using namespace std; |
This file contains hidden or 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
// normal TextLayout code | |
TextLayout layout; | |
layout.clear( ColorA( CM_HSV, 0.0f, 0.0f, 0.0f, 0.0f ) ); | |
layout.setFont( mDateFont ); | |
layout.setColor( ColorA( CM_HSV, 0.0f, 0.0f, 1.0f, 1.0f ) ); | |
layout.setLeadingOffset( 4.0f ); | |
// write some | |
layout.addLine( "Some Text" ); | |
layout.addLine( "Some more text." ); |