Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / buildthethingsanddothestuff.coffee
Last active Aug 29, 2015
Build the things and do the stuff
View buildthethingsanddothestuff.coffee
build = (cb) ->
alert 'building'
cb()
stuff = -> -> -> ->
alert 'running'
the = things = (cb) -> cb?()
build the things and do the stuff
@athaeryn
athaeryn / SassMeister-input.scss
Created Apr 16, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$base-font-size: 16px;
// Helper Functions
// map
@athaeryn
athaeryn / hex.rb
Created May 29, 2014
Ruby String -> hex color
View hex.rb
require "digest/sha2"
class String
def to_hex_color
"\##{(::Digest::SHA2.new << self).to_s[0...6]}"
end
end
@athaeryn
athaeryn / SassMeister-input.scss
Created Jun 10, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
$grid-widths: (
1:
one-whole,
1/2:
@athaeryn
athaeryn / pluralize.md
Last active Aug 29, 2015
Pluralize me, Cap'n!
View pluralize.md

HTML (mustache):

<div class="count">
   Found {{count}} Result<span class="ess">s</span>.
</div>

JS:

@athaeryn
athaeryn / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
@mixin n-up($number) {
&:nth-child(#{$number}n + 1) { clear: left; }
}
.tile {
@athaeryn
athaeryn / Makefile
Last active Jun 2, 2016 — forked from nhunzaker/Makefile
Light Level
View Makefile
all:
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light
clean:
rm -f light
@athaeryn
athaeryn / fizzbuzz.js
Last active Jun 17, 2016
fizzbuzzjustbecuzz.js
View fizzbuzz.js
console.log(
(Array(100) + "")
.split(",")
.map(function(s, i) {
return !!(++i % 3) || (s += "Fizz"),
!!( i % 5) || (s += "Buzz"),
s || i;
})
.join("\n")
);
View keybase.md

Keybase proof

I hereby claim:

  • I am athaeryn on github.
  • I am athaeryn (https://keybase.io/athaeryn) on keybase.
  • I have a public key whose fingerprint is 11B8 5003 D377 5BCD 1667 C508 9065 E768 2896 8C89

To claim this, I am signing this object:

View numeronym.js
const fs = require('fs')
const words = fs.readFileSync('/usr/share/dict/words')
.toString()
.toLowerCase()
.split('\n')
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('')
let lookup =