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
sansumbrella / ProjectSetup.md
Last active Aug 29, 2015
Brief instructions for project setup using submodules.
View ProjectSetup.md

Instructions for project setup using submodules.

Initialization

# Add Cinder and Soso submodules, specifying the branches we want
git submodule add -b release --name Cinder git@github.com:sosolimited/Cinder.git lib/Cinder
git submodule add -b cinder --name Soso git@github.com:sosolimited/ofxSoso.git lib/ofxSoso
View CameraTestApp.cpp
#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Camera.h"
#include "cinder/params/Params.h"
using namespace ci;
using namespace ci::app;
using namespace std;
@sansumbrella
sansumbrella / IntelJFC.md
Last active Aug 29, 2015
Letter to Intel
View IntelJFC.md

The reason I'm writing today is the decision, relayed by your customer support team, to pull advertising for Intel RealSense Technology from the online publication for game industry professionals, Gamasutra.com.

I am very disappointed in your response to important cultural criticism that is driving our field forward. It is especially dismaying that you would pull support from the site on the basis of a single article and the complaints of a small, bigoted group.

The writing of critics such as Leigh Alexander, Mattie Brice, Robert Yang, and Anita Sarkeesian is essential to the growth of the gaming and computing industry and vital to our wider cultural discourse. It is shameful that a major corporation would run away from this discourse, especially if it purports to be interested in developing the technologies of the future.

The technologies of the future are inherently bound up in the culture of the future. They do not exist apart from racism, sexism, and classism. By pretending that technology can be separ

@sansumbrella
sansumbrella / gist:fae0ca475a5c965e6e06
Created Jan 26, 2015
Sublime Text 2 Keybindings Preferences
View gist:fae0ca475a5c965e6e06
[
// match XCode switch file key binding
{ "keys": ["super+ctrl+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }
, { "keys": ["super+ctrl+down"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }
// move line like XCode
, { "keys": ["super+option+["], "command": "swap_line_up" }
, { "keys": ["super+option+]"], "command": "swap_line_down" }
]
View load_movie_async_crash.cpp
qtime::MovieGlRef loadMovie( const ci::gl::ContextRef &context, const ci::fs::path &path ) {
ci::ThreadSetup thread_setup;
try {
context->makeCurrent();
auto movie = qtime::MovieGl::create(path);
return movie;
}
catch( std::exception &exc ) {
CI_LOG_E( "Error loading texture: " << exc.what() );
return nullptr;
@sansumbrella
sansumbrella / image_load_timing.cpp
Last active Aug 29, 2015
Test of async and synchronous image load timing in Cinder.
View image_load_timing.cpp
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/Texture.h"
using namespace ci;
using namespace ci::app;
using namespace std;
struct TextureInfo {
@sansumbrella
sansumbrella / Hosting Git repositories on DreamHost
Created May 7, 2009
Bash script to create and initialize a git repo on a dreamhost server
View Hosting Git repositories on DreamHost
#Based on:
#http://casperfabricius.com/site/2008/09/21/keeping-git-repositories-on-dreamhost-using-ssh/
DREAMGIT_DOMAIN=you@yourhost.dreamhost.com
GIT_DOMAIN=whatever.you.want
DH_USER=home/yourusername
YEAR=`eval date +%Y`
#set up on the server
ssh $DREAMGIT_DOMAIN 'mkdir -p '$GIT_DOMAIN'/'$YEAR'/'$1'.git && cd '$GIT_DOMAIN'/'$YEAR'/'$1'.git && git --bare init'
#set up locally
@sansumbrella
sansumbrella / jsonp.php
Created May 14, 2009
php to return JSON objects. Works with jQuery.
View jsonp.php
<?php
$JSON = '{events:[{title:"title", info:"info"},{title:"title", info:"info"},{title:"title", info:"info"}]}';
header("Content-type: application/json");
echo $_GET['callback']."($JSON);"
?>
@sansumbrella
sansumbrella / keyboard_save.pde
Created Aug 12, 2009
Processing saveFrame function.
View keyboard_save.pde
//this is part of why processing is awesome
void keyPressed()
{
if( key == 's')
{
saveFrame("frames/Generic-####.png");
}
}
@sansumbrella
sansumbrella / Build.php
Created Dec 19, 2009
php static page creation
View Build.php
<?php
$base_url = "http://localhost/~username";
$builder = new Build($base_url);
$source = "index.php?about";
$target = "about.html";
$builder->write_file($source, $target);
Class Build
{
public $url; //base url
You can’t perform that action at this time.