Skip to content

Instantly share code, notes, and snippets.

sansumbrella /
Created Nov 1, 2012
Sparse bundle creation for time machine on NAS.
# creates a sparsebundle disk image with a 128MB band size
hdiutil create -size 900g -type SPARSEBUNDLE -nospotlight -volname "Backup of $MACHINE_NAME" -fs "Case-sensitive Journaled HFS+" -imagekey sparse-band-size=262144 -verbose ./$MACHINE_NAME.sparsebundle
sansumbrella / LICENSE
Last active Jun 11, 2020
Reaction Diffusion Simulation in GLSL
* Copyright (c) 2016 David Wicks,
* All rights reserved.
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
sansumbrella / MapboxMap.css
Last active Sep 27, 2019
Copy of the Mapbox data-driven-lines sample using React+Hooks
View MapboxMap.css
.mapbox-map {
min-height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
sansumbrella / index.html
Last active Jun 21, 2019
Pickable 3D buildings with feature state and buildings plus
View index.html
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Highlight 3D Building By ID</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src=""></script>
<link href="" rel="stylesheet" />
body {
sansumbrella /
Created Nov 4, 2012
Query band size of a sparsebundle (also accessible in Info.plist of bundle)
# find out how big the sparse-band-size is in a mounted volume
hdiutil info -verbose | grep band-size
# default Time Machine sparsbundle virtual-band-size = 16384 (8MB)
# create-sparsebundle's virtual-band-size = 262144 (128MB)
sansumbrella / EventDispatcher.cpp
Created Aug 3, 2009
C++ observer pattern for event handling.
View EventDispatcher.cpp
#include "EventDispatcher.h"
void EventDispatcher::addListener( Listener *l )
void EventDispatcher::removeListener( Listener *l )
mListeners.erase( std::remove( mListeners.begin(), mListeners.end(), l ), mListeners.end() );
sansumbrella / PolygonShapes.cpp
Created Aug 12, 2011
Basic Shapefile to Shape2d
View PolygonShapes.cpp
* PolygonShapes.cpp
* HereToThere
* Created by David Wicks on 2/23/11.
* Copyright 2011 David Wicks. All rights reserved.
#include "PolygonShapes.h"
sansumbrella /
Created Jan 30, 2017
Quick script for opposing the executive order on refugees

I am calling in opposition to the executive order on refugees. It is harmful to victims of terrorism, keeping them in danger longer. It is harmful to our economy, preventing many people from traveling for work or returning to work in the US. And the unwelcoming message it sends is clear, making the United States appear like an international bully unworthy of respect, and thereby increasing hostile attitudes toward our country.

sansumbrella / TinyScene.cpp
Last active Jul 14, 2016
Tiny Cinder C++ Scene Graph
View TinyScene.cpp
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Utilities.h"
#include "cinder/Log.h"
#include "cinder/Json.h"
using namespace ci;
using namespace ci::app;
using namespace std;
You can’t perform that action at this time.