Welcome to Paper Programs! Here's a quick reference followed by longer descriptions:
// IMPORTS
importScripts('paper.js');
importScripts('http://.js');
[ | |
{ | |
"name": "Red", | |
"hueAngle": 0, | |
"color": "rgb(255, 0, 0)", | |
"swatches": [ | |
[ | |
{ | |
"index": 1, | |
"name": "Pinkish white", |
!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< |
(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 = {}; |
Live links to try:
I hereby claim:
To claim this, I am signing this object:
var parinfer = {}; | |
parinfer.indentMode; | |
parinfer.parenMode; | |
parinfer.smartMode; | |
var parinferCodeMirror = {}; | |
parinferCodeMirror.init; | |
parinferCodeMirror.enable; |
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; |