Skip to content

Instantly share code, notes, and snippets.

David Wicks sansumbrella

Block or report user

Report or block sansumbrella

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sansumbrella / recordTweets.php
Created Jan 6, 2011
Use SimplePie to write twitter rss search results to a file.
View recordTweets.php
include( 'simplepie.php' );
$sourceURL = 'feed://';
$feed = new SimplePie();
sansumbrella /
Created Feb 4, 2011
Patches holes in tabular data. Good for cleaning up TSV and CSV files.
#!/usr/bin/env python
# encoding: utf-8
# David Wicks
Fills holes in tabular data files (TSV)
basic usage: python fileToPatch.tsv
more control: python fileToPatch.csv outputfile.csv replacementValue ,
sansumbrella / AnnihilateTime.js
Created Feb 9, 2011
Flash animation export script annihilates all non-essential frames
View AnnihilateTime.js
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,
sansumbrella /
Created Feb 10, 2011
Downloads the current day's precipitation shapefile from NOAA.
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import commands
from datetime import date
def main():
downloadDaysData( )
sansumbrella / SuperFormulaApp.cpp
Created Feb 19, 2011
Port of code from Form+Code by Chandler McWilliams and Casey Reas:
View SuperFormulaApp.cpp
#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 {
sansumbrella /
Created Feb 24, 2011
Walks directory for image files and merges them into a large sheet at a fixed individual size.
#!/usr/bin/env python
# encoding: utf-8
import Image
import sys
import os
def main():
path = "where-images-may-live"
sansumbrella / TileMaker.pde
Created Apr 12, 2011
Quick and dirty map tile-generation
View TileMaker.pde
String imageName;
String outputPath;
boolean labelTiles = false;
int tileSize = 256;
PFont tileFont;
PImage startImage;
void setup()
sansumbrella / polymapping.html
Created Apr 15, 2011
Basic use of polymaps. Loads tiles generated by
View polymapping.html
<title>Polymaps Learning</title>
<meta name="author" content="David Wicks"/>
<!-- Date: 2011-04-11 -->
<!-- Get polymaps for this to work: -->
<script type="text/javascript" src="lib/polymaps.min.js"></script>
<script type="text/javascript">
function run()
sansumbrella / DateUtils.cpp
Created Apr 24, 2011
A sane way to format dates from boost. Simple interface, no noodling with stringstreams and locales.
View DateUtils.cpp
// DateUtils.cpp
// Created by David Wicks on 4/23/11.
#include "DateUtils.h"
#include <sstream>
using namespace boost::gregorian;
using namespace std;
sansumbrella / ExampleUsage.cpp
Created Apr 24, 2011
Basic IOS Utilities for Cinder
View ExampleUsage.cpp
// 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." );
You can’t perform that action at this time.