Skip to content

Instantly share code, notes, and snippets.

@tomgp
tomgp / package.json
Created May 28, 2017 18:21
simple npm script based build for js projects
{
"name": "starter",
"version": "0.0.1",
"main": "index.js",
"license": "MIT",
"dependencies": {
"browser-sync": "^2.18.12",
"nodemon": "^1.11.0",
"webpack": "^2.6.1"
},
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active July 26, 2024 20:17
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@magrawala
magrawala / README.md
Last active August 29, 2015 13:57
Bubble Cursor

This is an implentation of the Bubble Cursor, which was originally introduced by Tovi Grossman and Ravin Balakrishnan at CHI 2005.

@triblondon
triblondon / page.html
Last active January 3, 2016 03:08
Recommended Origami JavaScript loader
<script>
(function() {
if (Modernizr.classlist && Modernizr.queryselector && Modernizr.localstorage && Modernizr.eventlistener) {
var j = document.createElement('script');
j.type = 'text/javascript';
j.async = true;
j.src = '/resources/javascript/bundle.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(j, s);
} else {
@mbostock
mbostock / .block
Last active October 16, 2023 18:49
Satellite Projection
license: gpl-3.0
redirect: https://observablehq.com/@d3/satellite
@mojodna
mojodna / index.html
Created June 25, 2012 22:23
D3 + ModestMaps
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#map {
width: 1000px;
height: 600px;
}
path {
@gka
gka / index.html
Created January 3, 2012 00:08
alpha-shapes aka concave hulls in d3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Alpha-Shapes</title>
<script src="http://mbostock.github.com/d3/d3.js"></script>
<script src="http://mbostock.github.com/d3/d3.geom.js"></script>
<style type="text/css">
path {
@RandomEtc
RandomEtc / README.md
Created September 22, 2011 02:41
Map Tiles in D3

An exercise in learning D3 / a proof of concept / my hat-in-the-ring for what comes next after Polymaps and Modest Maps. See the github project page for more information.