Skip to content

Instantly share code, notes, and snippets.

View bildepunkt's full-sized avatar

Chris Peters bildepunkt

View GitHub Profile
@bildepunkt
bildepunkt / spiral.idplugin.js
Last active September 8, 2016 02:05
draw an archimedian spiral approximation (w/ cubic bezier curves) in iDraw/Graphic
// spiral.idplugin
function drawSegment (doc, radius, iterations) {
var path = [doc addPath]
var spread = radius / 4
var c = 0.552284749
[path addMoveTo:CGPointMake(radius, 0)]
while (--iterations) {
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-OceanicNext.tmTheme",
"draw_white_space": "all",
"font_size": 12,
"highlight_selected_regions": false,
"ignored_packages":
[
"Vintage"
@bildepunkt
bildepunkt / main.js
Last active January 21, 2016 00:22
background color fishing
(function () {
'use strict';
function getRgbArray(rgb) {
return rgb.match(/[0-9]+/g);
}
function getDarkenedRgbArray(rgb) {
let rgbs = getRgbArray(rgb);
return [Math.round(rgbs[0] / 2), Math.round(rgbs[1] / 2), Math.round(rgbs[2] / 2)];
@bildepunkt
bildepunkt / jsdoc-default.css
Last active August 29, 2015 14:07
replace the standard jsdoc-default.css file with this for somewhat nicer layout and styling.
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
nav {
width: 180px;
position: fixed;
top: 0;
left: 0;