Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / Bunny.js
Created Oct 30, 2018 — forked from bberak/Bunny.js
How to use regl in React or React Native
View Bunny.js
import React, { PureComponent } from "react";
import { StyleSheet } from "react-native";
import ReglView from "./ReglView";
import mat4 from "gl-mat4";
import bunny from "bunny";
export default class Bunny extends PureComponent {
drawCommand = regl => {
return regl({
vert: `
View my-neovim-setup-for-reason.md

How I have NeoVim set up for ReasonML Development

Install neovim python package:

$ pip2 install neovim
$ pip3 install neovim

@athaeryn
athaeryn / codpen
Created Apr 11, 2017
Codpen — Like Codepen but local?
View codpen
#!/bin/sh
if ! hash chrome-cli 2>/dev/null; then
echo "Couldn't find chrome-cli. Ensure it's installed and on your PATH."
exit 1
fi
DIRNAME="/tmp/codpen+$(date '+%s')"
INDEX="$DIRNAME/index.html"
RELOAD="$DIRNAME/reload"
@athaeryn
athaeryn / reload-chrome.vim
Created Dec 27, 2016
Basically a local Codepen
View reload-chrome.vim
autocmd! BufWritePost * silent! !chrome-cli reload
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 =
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:

@athaeryn
athaeryn / _mosh.md
Last active Jun 15, 2017
moshmoshmosh
View _mosh.md

install aviglitch gem

gem install aviglitch

run mo.sh

./mo.sh input.gif
@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")
);
@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 / 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: