Skip to content

Instantly share code, notes, and snippets.

View danielsdesk's full-sized avatar

danielsdesk danielsdesk

View GitHub Profile
@danielsdesk
danielsdesk / machine.js
Created December 12, 2019 02:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@danielsdesk
danielsdesk / machine.js
Last active December 12, 2019 01:29
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am danielsdesk on github.
  • I am danielsdesk (https://keybase.io/danielsdesk) on keybase.
  • I have a public key ASCYkm_yBLDZjgdI-nRZDsqXMpYRL_U8yGwZowAUDHHdUgo

To claim this, I am signing this object:

@danielsdesk
danielsdesk / index.html
Created May 2, 2017 18:15
React Animated Page Transitions
<div id="container"></div>
@danielsdesk
danielsdesk / ofApp.cpp
Created July 2, 2016 18:18 — forked from elliotwoods/ofApp.cpp
ofxMultiTrack test osc subscrier
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
this->receiver.setup(4444);
this->subscriber.setup("localhost", 2046);
{
ofxOscMessage message;
message.setAddress("/addClient");
@danielsdesk
danielsdesk / README.md
Created January 24, 2016 19:26 — forked from sjengle/README.md
TopoJSON Demo

TopoJSON Demo

The goal of this demo is to show how to use D3 and TopoJSON to draw U.S. states and counties, and how to map the IDs in the TopoJSON file to names.

References

This demo is based off the following blocks:

@danielsdesk
danielsdesk / README.md
Created January 24, 2016 18:12 — forked from mbostock/.block
U.S. TopoJSON

A demo of TopoJSON using a single file that contains county, state and country boundaries. This example uses topojson.mesh to extract separating lines between states and counties from the geometry collections.

@danielsdesk
danielsdesk / README.md
Created January 24, 2016 17:58 — forked from mbostock/.block
U.S. States TopoJSON
@danielsdesk
danielsdesk / README.md
Created January 24, 2016 17:57 — forked from mbostock/.block
U.S. Counties TopoJSON

A demo of TopoJSON on a U.S. counties shapefile from the U.S. census bureau. The same TopoJSON file can also be used to show states.

@danielsdesk
danielsdesk / levenshtein.js
Last active August 28, 2015 20:09 — forked from andrei-m/levenshtein.js
Levenshtein distance between two given strings implemented in JavaScript and usable as a Node.js module
/*
Copyright (c) 2011 Andrei Mackenzie
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE