Skip to content

Instantly share code, notes, and snippets.

stevecastaneda / Example.tsx
Created Jul 16, 2020
A Tailwind-ready Modal using React Aria from Adobe
View Example.tsx
import React, { useState, useContext, useRef } from "react";
import { useOverlayTriggerState } from "@react-stately/overlays";
import { useButton } from "@react-aria/button";
import { Modal } from "components/overlays/Modal";
export function Example() {
let state = useOverlayTriggerState({});
function onOpen() {;
dvdbng /
Last active May 6, 2021
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from
# Compiled on Jul 20 2017
curl '' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
datagrok / .gitignore
Last active Apr 21, 2021 quick and dirty script to archive twitter favs (aka "likes")
View .gitignore
shazow /
Last active Aug 14, 2018
Notes on learning OpenGL
jiaaro / install_nodejs
Last active Aug 8, 2016
Put the following files in a folder called `bin` (so they'll be `bin/post_compile` and `bin/install_nodejs`)
View install_nodejs
#!/usr/bin/env bash
set -eo pipefail
NODE_VERSION=$(curl --silent --get
# make a temp directory
tempdir="$( mktemp -t node_XXXX )"
rm -rf $tempdir
#!/usr/bin/env bash
curl --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin