Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / Index.res
Last active June 28, 2021 15:43
ReScript worker threads WIP design
let app = Express.App.make()
let taskPool = TaskPool.make()
// How can I just get the Pause.output back out of this, and avoid
// doing extra work to check if the output is from the wrong Task?
app.get(."/pause", (. _req, res) => {
taskPool.run(Pause({howLongMs: 4200}))
->Promise.thenResolve(result => {
switch result {
@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 / Bunny.js
Created October 30, 2018 04:30 — forked from bberak/Bunny.js
How to use regl in React or React Native
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: `

How I have NeoVim set up for ReasonML Development

Install neovim python package:

$ pip2 install neovim
$ pip3 install neovim

@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

@athaeryn
athaeryn / codpen
Created April 11, 2017 19:25
Codpen — Like Codepen but local?
#!/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 December 27, 2016 02:19
Basically a local Codepen
autocmd! BufWritePost * silent! !chrome-cli reload
const fs = require('fs')
const words = fs.readFileSync('/usr/share/dict/words')
.toString()
.toLowerCase()
.split('\n')
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('')
let lookup =

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 / 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")
);