Skip to content

Instantly share code, notes, and snippets.

View pketh's full-sized avatar
🐢
https://kinopio.club

Pirijan pketh

🐢
https://kinopio.club
View GitHub Profile
@pketh
pketh / easing.js
Created June 21, 2019 14:21
easings js
easing (percentComplete, elaspedTime) {
const duration = lockingDuration
const startValue = 0
const endValue = 1
// https://stackoverflow.com/questions/8316882/what-is-an-easing-function
// x percentComplete,
// t elaspedTime,
// b startValue,
// c endValue,
// d duration
@pketh
pketh / random splatter.coffee
Created February 7, 2019 22:05
random splatters
# addRandomSplatter = ->
# maxX = window.innerWidth
# maxY = window.innerHeight
# x = _.random 0, maxX
# y = _.random 0, maxY
# if consecutiveRandomSplatters < MAX_CONSECUTIVE_SPLATTERS
# consecutiveRandomSplatters += 1
# addSplatter x, y
#
# autoSplatter = ->
@pketh
pketh / static.coffee
Created February 7, 2019 22:03
dynamic static
# viewportWidth = window.innerWidth
# viewportHeight = window.innerHeight
# totalPixels = viewportWidth * viewportHeight
# staticPixels = Math.round(totalPixels * 0.05) # 5 percent static
# staticCanvas = undefined
# staticContext = undefined
# staticCanvasImage = undefined
# frames = Array.from(Array(24)) # 24 variations
window.onload = ->
@pketh
pketh / confetti.js
Created December 12, 2018 17:23
confetti pours on you after you buy something in glitch/hyperweb
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
"use strict";
/* istanbul ignore next */
module.exports = function(canvas) {
(*・_・)ノ⌒*
(*・_・)⊃══✫⌒*・゚✲
@pketh
pketh / subscriptions.opml
Created December 17, 2017 21:32
rss lyfe
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - pirijan@gmail.com</title>
</head>
<body>
<outline title="tomayko.com" xmlUrl="http://tomayko.com/writings/feed" type="rss" text="tomayko.com"/>
<outline title="-" xmlUrl="rss2.xml" type="rss" text="-"/>
<outline htmlUrl="http://scriptogr.am/blog" title="(title unknown)" xmlUrl="http://scriptogr.am/blog/feed" type="rss" text="(title unknown)"/>
<outline htmlUrl="http://ablogfromscratch.com/" title="* From Scratch" xmlUrl="http://ablogfromscratch.com/rss" type="rss" text="* From Scratch"/>

Keybase proof

I hereby claim:

  • I am pketh on github.
  • I am pirijan (https://keybase.io/pirijan) on keybase.
  • I have a public key ASBBFhxt_pOH579ddv7ATEFc49Hd-5zWFpk5AiIcXH51xwo

To claim this, I am signing this object:

| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
|  spiders |
|__________|
(\__/) ||
(•ㅅ•) ||
/   づ
@pketh
pketh / circles.txt
Created March 14, 2017 22:43
scroll me quickly and weird things happen
⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
 ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
 ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
 ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
 ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝ ⠀⃝
@pketh
pketh / guitar.txt
Created February 23, 2017 01:55
brang brang
         ♬♫♪♩♫♬♪ ♬♫♪♩♫♪
        ♬♫♪♩♫♪♫♫♬♫♪♩♫♫♬♪
╭━━━╮    ♬♫♪♩ ♬♫♪♩♫♪
 ☰⚫☰☰☰☰☰☰☰☰☰✥
        ♭♭♭