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
___ ___ ___
{o,o} {o.o} {o,o}
|)__) |)_(| (__(|
--"-"-----"-"------"-"--
O RLY? YA RLY NO WAI!
@pketh
pketh / names.js
Last active August 8, 2019 20:45
hw name maker
// Project Generator creates a random name for a users it forms the name from a random combination of
// An Adjective and Noun
const adjectives = ["pink", "carnelian", "orange", "yellow", "ivory", "cream", "green", "viridian", "aquamarine", "cyan", "blue", "cerulean", "azure", "indigo", "navy", "violet", "purple", "lavender", "magenta", "rainbow", "iridescent", "spectrum", "prism", "bold", "vivid", "pale", "clear", "glass", "translucent", "misty", "dark", "light", "gold", "silver", "copper", "bronze", "steel", "iron", "brass", "mercury", "zinc", "chrome", "platinum", "titanium", "nickel", "lead", "pewter", "rust", "metal", "stone", "quartz", "granite", "marble", "alabaster", "agate", "pebble", "pyrite", "crystal", "geode", "obsidian", "mica", "flint", "sand", "gravel", "boulder", "basalt", "ruby", "beryl", "scarlet", "citrine", "sulpher", "topaz", "amber", "emerald", "malachite", "jade", "abalone", "lapis", "sapphire", "diamond", "peridot", "gem", "jewel", "bevel", "coral", "jet", "ebony", "wood", "tree", "c
@pketh
pketh / jiggle.styl
Created March 15, 2016 15:42
jiggle animation css
.jiggle
animation: jiggle 0.25s 1 ease-out forwards
@keyframes jiggle
0%
transform: rotate(-3deg)
33%
transform: rotate(3deg)
66%
transform: rotate(-3deg)
@pketh
pketh / meta-seo.jade
Last active February 25, 2024 21:43
seo meta tags for social unfurling
// facebook open graph tags
meta(property="og:type" content="website")
meta(property="og:url" content=url)
meta(property="og:title" content=title)
meta(property="og:description" content=description)
meta(property="og:image" content=frog2x)
// twitter card tags (stack with og: tags)
meta(name="twitter:card" content="summary")
meta(name="twitter:site" content="@pketh")
@pketh
pketh / 1-promises.coffee
Last active April 5, 2023 02:12
Promises in Coffeescript
# Create a promise:
myCoolPromise = new Promise (resolve, reject) ->
# do a thing
success = true
if success
resolve 'stuff worked'
else
reject Error 'it broke'
@pketh
pketh / pricing-sketch.md
Last active July 14, 2016 14:22
fogbugz pricing logic sketch

Here's some jade html

section.packages
  ul
    li.package.tracker.active(data-package="tracker" data-cost="12")
      // fb tracker is ...
    li.package.helpdesk(data-package="helpdesk" data-cost="13")
      // ...
    li.package.agile(data-package="agile" data-cost="14")
@pketh
pketh / project-avatar.coffee
Last active July 21, 2016 19:42
hyperdev project avatar generator
_ = require 'underscore'
randomColor = require 'randomcolor'
AVATAR_SIZE = 200
module.exports = (application) ->
self =
sharedPanelAttributes: (context) ->
@pketh
pketh / hyperdev presentation.md
Last active August 9, 2016 12:37
HyperDev: Web Development Without the Trash Parts 🌈

slides: https://midnight-surf.hyperdev.space

1

my name is pirijan and i'll be talking about..

HyperDev

Web Development Without the Trash Parts 🌈

(not the offical slogan)

1 year

@pketh
pketh / success-confetti.coffee
Last active September 1, 2016 19:23
canvas success confetti
confetti: ->
# ported from http://codepen.io/iprodev/pen/azpWBr
PI = Math.PI
sqrt = Math.sqrt
round = Math.round
random = Math.random
cos = Math.cos
sin = Math.sin
rAF = window.requestAnimationFrame
cAF = window.cancelAnimationFrame or window.cancelRequestAnimationFrame
<pre>
,-.
, ,-. ,-.
/ \ ( )-( )
\ | ,.>-( )-<
\|,' ( )-( )
Y ___`-' `-'
|/__/ `-'
|
|