Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / reload-chrome.vim
Created December 27, 2016 02:19
Basically a local Codepen
autocmd! BufWritePost * silent! !chrome-cli reload
@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 / _mosh.md
Last active June 15, 2017 17:04
moshmoshmosh

install aviglitch gem

gem install aviglitch

run mo.sh

./mo.sh input.gif

How I have NeoVim set up for ReasonML Development

Install neovim python package:

$ pip2 install neovim
$ pip3 install neovim

@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: `
@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 / 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 {