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 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
/** | |
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 | |
# 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
<?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
#include "cinder/app/AppBasic.h" | |
#include "cinder/ImageIo.h" | |
#include "cinder/Utilities.h" | |
#include <vector> | |
using namespace ci; | |
using namespace ci::app; | |
using std::vector; | |
class CopySurfaceApp : public AppBasic { |
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/params/Params.h" | |
#include "cinder/ImageIo.h" | |
#include "cinder/gl/TileRender.h" | |
#include "cinder/Utilities.h" | |
#include "cinder/Rand.h" | |
#include <vector> | |
using namespace ci; | |
using namespace ci::app; |
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
void yourApp::renderTiles() | |
{ | |
//the size here doesn't matter, but it will get distorted if it's not the same ratio as your window | |
gl::TileRender tr( getWindowWidth()*4, getWindowHeight()*4 ); | |
//use the default cinder view to render from | |
tr.setMatricesWindow(getWindowWidth(), getWindowHeight()); | |
while( tr.nextTile() ) { | |
draw(); | |
} |
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
/* | |
Find in Maps Bookmarklet | |
author: @sansumbrella | |
Enters the selected query into Google Maps. | |
Maps is generally location-aware, so it should pick out your city for use | |
*/ | |
(function() { |
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
(*_*) | |
(* Navigates to each page and takes a screenshot *) | |
(* Combined a screenshot script -- http://www.macosxhints.com/article.php?story=20030115080027106 -- with some javascript *) | |
set save_location to (choose folder with prompt "Choose where to save screenshots") | |
set base_url to "http://sansumbrella.com/writing/page/" | |
set first_page to 1 | |
set last_page to 5 | |
set filename to "screenshot-" | |
tell application "Safari" |