Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / Makefile
Last active June 2, 2016 14:32 — forked from nhunzaker/Makefile
Light Level
all:
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light
clean:
rm -f light
@athaeryn
athaeryn / buildthethingsanddothestuff.coffee
Last active August 29, 2015 13:56
Build the things and do the stuff
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 April 16, 2014 19:52
Generated by SassMeister.com.
// ----
// 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 16:47
Ruby String -> hex color
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 June 10, 2014 05:48
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
$grid-widths: (
1:
one-whole,
1/2:
@athaeryn
athaeryn / SassMeister-input.scss
Created June 17, 2014 03:24
Sass mixin for z-index
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/*
* inspired by:
* http://www.smashingmagazine.com/2014/06/12/sassy-z-index-management-for-complex-layouts/
*/
$z: (
@athaeryn
athaeryn / pluralize.md
Last active August 29, 2015 14:05
Pluralize me, Cap'n!

HTML (mustache):

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

JS:

@athaeryn
athaeryn / SassMeister-input.scss
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
@mixin n-up($number) {
&:nth-child(#{$number}n + 1) { clear: left; }
}
.tile {
@athaeryn
athaeryn / fizzbuzz.js
Last active June 17, 2016 16:46
fizzbuzzjustbecuzz.js
console.log(
(Array(100) + "")
.split(",")
.map(function(s, i) {
return !!(++i % 3) || (s += "Fizz"),
!!( i % 5) || (s += "Buzz"),
s || i;
})
.join("\n")
);
@athaeryn
athaeryn / _mosh.md
Last active June 15, 2017 17:04
moshmoshmosh

install aviglitch gem

gem install aviglitch

run mo.sh

./mo.sh input.gif