Skip to content

Instantly share code, notes, and snippets.

@shaunlebron
shaunlebron / perbang-colors.json
Last active October 1, 2018 14:29
Per Bang's color name table in JSON: http://www.procato.com/rgb+index/
[
{
"name": "Red",
"hueAngle": 0,
"color": "rgb(255, 0, 0)",
"swatches": [
[
{
"index": 1,
"name": "Pinkish white",
@shaunlebron
shaunlebron / world-50m.json
Last active October 1, 2018 14:28
World Map 50m
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shaunlebron
shaunlebron / paperprograms-api.md
Last active October 1, 2018 14:33
Paper Programs API

Paper Programs API

Welcome to Paper Programs! Here's a quick reference followed by longer descriptions:

Quickref

// IMPORTS
importScripts('paper.js');
importScripts('http://.js');
!function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.obliterator=r()}}(function(){return function r(e,t,n){function o(a,u){if(!t[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var c=t[a]={exports:{}};e[a][0].call(c.exports,function(r){var t=e[a][1][r];return o(t?t:r)},c,c.exports,r,e,t,n)}return t[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(r,e,t){var n=r("./iterator.js");e.exports=function(){var r,e=arguments,t=-1;return new n(function n(){if(!r){if(t++,t>=e.length)return{done:!0};r=e[t]}var o=r.next();return o.done?(r=null,n()):o})}},{"./iterator.js":7}],2:[function(r,e,t){function n(r,e,t,n){for(var o=0;o<
This file has been truncated, but you can view the full file.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root.SubformLayout = factory();
}
})(this, function () {
var shadow$provide = {};
@shaunlebron
shaunlebron / intro.md
Last active February 25, 2021 22:35
PingThings and Mr. Plotter
@shaunlebron
shaunlebron / keybase.md
Created November 15, 2017 21:44
Keybase Proof

Keybase proof

I hereby claim:

  • I am shaunlebron on github.
  • I am shaunlebron (https://keybase.io/shaunlebron) on keybase.
  • I have a public key ASDCttxZDBGVhlhca0AvJ-3EG-vRFFgbMAv_YUclmPgx5Qo

To claim this, I am signing this object:

@shaunlebron
shaunlebron / externs.js
Created October 23, 2017 22:06
parinfer externs
var parinfer = {};
parinfer.indentMode;
parinfer.parenMode;
parinfer.smartMode;
var parinferCodeMirror = {};
parinferCodeMirror.init;
parinferCodeMirror.enable;
@shaunlebron
shaunlebron / readme.md
Created June 2, 2017 01:36
cljs developer experience work

cljs dev experience

  1. Writing API docs (colored by progress)
  2. Integrating API docs into official ClojureScript website
  3. Integrating news into official ClojureScript website
  4. Pushing npm cljs tool to first public release 1.0.0.
@shaunlebron
shaunlebron / turoMiles.js
Created March 7, 2017 04:23
Optimizing cost on Turo
function turoMiles(desiredMiles) {
var costPerDay = 35;
var costPerMileOver = 0.75;
var milesPerDay = 150;
var milesPerWeek = 1000;
function milesAllowed(days) {
var weeks = Math.floor(days / 7);
days = days % 7;