Skip to content

Instantly share code, notes, and snippets.

View notmatt's full-sized avatar
⚛️
Friend of electrons

Matthew Smillie notmatt

⚛️
Friend of electrons
View GitHub Profile
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
@mbostock
mbostock / .block
Last active February 8, 2016 23:52
d3.geo.tiler
license: gpl-3.0
@joemccann
joemccann / exbp.sh
Created June 1, 2011 20:17
Express Boilerplate using EJS, Stylus, jQuery and Normalize.css
# /bin/bash
# run from Express project root directory
# Dependencies: wget, express, npm
express -t ejs -c stylus
npm install ejs
npm install stylus
mv public/stylesheets public/css
mv public/javascripts/ public/js
mv public/images/ public/img
@notmatt
notmatt / index.html
Created January 3, 2012 22:34 — forked from jasondavies/index.html
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.min.js"></script>
<script src="http://mbostock.github.com/d3/d3.geom.min.js"></script>
<style type="text/css">
path {
anonymous
anonymous / gist:4163741
Created November 28, 2012 19:57
MathBox API example
Open this page and open the JavaScript console / inspector:
http://acko.net/files/mathbox/MathBox.js/examples/ComplexExponentiation.html
Paste in these commands to manipulate the scene:
console.log(mathbox.select('surface')); // Surface primitives
console.log(mathbox.select('surface')[0].get()); // Get attributes of first surface
mathbox.set('surface', { color: 0x30a030 }); // Change color of surface(s)
@AlainODea
AlainODea / hello.c
Last active March 16, 2016 09:00
Cross-compiler from x86_64 Linux to x86_64 Illumos on Ubuntu (works for Hello World and possibly more)
#include<stdio.h>
main()
{
printf("Hello World");
}
@bahamat
bahamat / cmon.sh
Last active December 15, 2022 15:26
Shell script to pull CMON metrics from Joyent Triton (https://www.joyent.com/triton)
#!/bin/bash
# shellcheck disable=SC2154
if [[ -n "$TRACE" ]]; then
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -o xtrace
fi
export PATH=/opt/pkg/bin:/opt/local/bin:/opt/custom/bin:$PATH