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 / 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
sansumbrella / index.html
Last active Jun 21, 2019
Pickable 3D buildings with feature state and buildings plus
View index.html
<!DOCTYPE html>
<html>
<head>
<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="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css" rel="stylesheet" />
<style>
body {
@sansumbrella
sansumbrella / query-sparsebundle-band-size.sh
Created Nov 4, 2012
Query band size of a sparsebundle (also accessible in Info.plist of bundle)
View query-sparsebundle-band-size.sh
# 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
sansumbrella / EventDispatcher.cpp
Created Aug 3, 2009
C++ observer pattern for event handling.
View EventDispatcher.cpp
#include "EventDispatcher.h"
void EventDispatcher::addListener( Listener *l )
{
mListeners.push_back(l);
}
void EventDispatcher::removeListener( Listener *l )
{
mListeners.erase( std::remove( mListeners.begin(), mListeners.end(), l ), mListeners.end() );
@sansumbrella
sansumbrella / create-sparsebundle.sh
Created Nov 1, 2012
Sparse bundle creation for time machine on NAS.
View create-sparsebundle.sh
# creates a sparsebundle disk image with a 128MB band size
MACHINE_NAME=your-machine-name
echo $MACHINE_NAME
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
sansumbrella / LICENSE
Last active Jul 8, 2018
Reaction Diffusion Simulation in GLSL
View LICENSE
/*
* Copyright (c) 2016 David Wicks, sansumbrella.com
* 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
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
sansumbrella / refugee_quick_script.md
Created Jan 30, 2017
Quick script for opposing the executive order on refugees
View refugee_quick_script.md

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
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.