Skip to content

Instantly share code, notes, and snippets.

Idling
Idling without Selection*
shiftdown -> Highlighting point
mousedown -> Panning view
Idling with Selection
shiftdown -> Highlighting point
mousedown -> Drag?
Idle?
hasSelection -> Idling with Selection
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://unpkg.com/walt-compiler@0.16.2/dist/walt.js"></script>
<script id="jsbin-javascript">
@shaunlebron
shaunlebron / notes.md
Last active September 6, 2018 10:31
Movie shot detection

Movie shots detection

I like this "show all the data" view of 2001, from VashiVisuals:

2001

Using a program

@shaunlebron
shaunlebron / faketalk.js
Created August 30, 2018 07:48 — forked from antimatter15/faketalk.js
A toy system inspired by realtalk
function mouse(_, me, when, claim){
when('fox is out', () => {
claim(me, 'wish', 'labelled', 'squeak')
claim(me, 'wish', 'outlined', 'red')
})
}
function fox(_, me, when, claim){
claim('fox is out')
}
@shaunlebron
shaunlebron / dynamicland-vneck-tshirt.lua
Created August 30, 2018 05:05 — forked from forresto/dynamicland-vneck-tshirt.lua
first shot at dynamicland #softfab
-- Shirt (#softfab)
Claim (you) has state "waist" with initial value (30).
Claim (you) has state "arm" with initial value (5).
Claim (you) has state "armaround" with initial value (10).
Claim (you) has state "side" with initial value (20).
Claim (you) has state "neck" with initial value (15).
When (you) contains dots /dots/,
(you) has width /width/:
@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
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 = {};