Skip to content

Instantly share code, notes, and snippets.

const canvasSketch = require('canvas-sketch');
const random = require('canvas-sketch-util/random');
const palettes = require('nice-color-palettes');
// Ensure ThreeJS is in global scope for the 'examples/'
global.THREE = require('three');
// Include any additional ThreeJS examples below
require('three/examples/js/controls/OrbitControls');
@lkpttn
lkpttn / sketch.js
Last active January 3, 2019 00:30
Canvas exercise for mattdesl's Frontend Masters course.
const canvasSketch = require('canvas-sketch');
const { lerp } = require('canvas-sketch-util/math');
const random = require('canvas-sketch-util/random');
const palettes = require('nice-color-palettes');
const settings = {
// Defines settings for canvas size, exports, etc
dimensions: [2048, 2048],
};
@lkpttn
lkpttn / dancify.sh
Created August 31, 2018 16:12
SlackHeads Dancify
#!/bin/bash
FILES=/Path/To/Images/*.png
for filename in $FILES; do
magick $filename -flop image2.png
magick convert -delay 50 -dispose Background $filename image2.png "${filename%.*}"dance.gif
rm image2.png
done
@lkpttn
lkpttn / keybase.md
Created June 14, 2014 17:18
keybase.md

Keybase proof

I hereby claim:

  • I am lkpttn on github.
  • I am lkpttn (https://keybase.io/lkpttn) on keybase.
  • I have a public key whose fingerprint is AD80 2A23 18F4 C2B1 ADE3 6F23 492B 5AFA E53A 1C0B

To claim this, I am signing this object:

@lkpttn
lkpttn / gist:1389e6192f9cdca7999a
Last active August 29, 2015 14:01
DS-Form CSS
/* - - - - - - - - - - - - - - - - - - - - -
Title :
Author :
URL : http://
Last Updated :
- - - - - - - - - - - - - - - - - - - - - */
@lkpttn
lkpttn / gist:5792589
Created June 16, 2013 16:39
Forecast.io JSON response
013-06-16 12:36:10.185 WeatherBud[70257:c07] Started updating location.
2013-06-16 12:36:10.670 WeatherBud[70257:c07] Stopped updating location.
2013-06-16 12:36:10.671 WeatherBud[70257:c07] Forecastr: Checking forecast for https://api.forecast.io/forecast/2dbe68f586a9cb81552a468ee6490337/37.785835,-122.406418
2013-06-16 12:36:10.945 WeatherBud[70257:c07] Found location name to be: San Francisco
2013-06-16 12:36:11.361 WeatherBud[70257:c07] Forecastr: Caching item for https://api.forecast.io/forecast/2dbe68f586a9cb81552a468ee6490337/37.79,-122.41
2013-06-16 12:36:11.369 WeatherBud[70257:c07] JSON response was: {
currently = {
cloudCover = "0.26";
dewPoint = 50;
humidity = "0.72";
@lkpttn
lkpttn / gist:3800798
Created September 28, 2012 16:30
Sass color combos
$brightGreen: #03fca5;
$brightblue: #4bc1ff;
lighten(#03fca5, 24)
desaturate(darken(#4bc1ff, 29), 48)
@lkpttn
lkpttn / gist:3395443
Created August 19, 2012 15:16 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@lkpttn
lkpttn / bigtest
Created August 9, 2012 04:05
The Big Test
This is a test for the gist logger for Day One. I may need to alter it, cause I don't really make many gists.
@lkpttn
lkpttn / labels.scss
Created July 13, 2012 20:36 — forked from orderedlist/labels.scss
Simple Label Colors with SCSS
$red:#f36d54;
$number: 100;
@for $i from 1 through $number {
.label-#{$i} {
color:adjust_hue($red, ($i - 1) * (360 / $number));
}
}