Skip to content

Instantly share code, notes, and snippets.

@stevecastaneda
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() {
state.open();
@dvdbng
dvdbng / vim-heroku.sh
Last active May 6, 2021
Run vim in heroku updated 2017
View vim-heroku.sh
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@datagrok
datagrok / .gitignore
Last active Apr 21, 2021
get_favs.py: quick and dirty script to archive twitter favs (aka "likes")
View .gitignore
creds.py
favs.db*
@shazow
shazow / learning-opengl.md
Last active Aug 14, 2018
Notes on learning OpenGL
View learning-opengl.md
@jiaaro
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 https://semver.io/node/stable)
NODE_BASENAME=node-v${NODE_VERSION}-linux-x64
NODE_ARCHIVE="http://nodejs.org/dist/v${NODE_VERSION}/${NODE_BASENAME}.tar.gz"
# make a temp directory
tempdir="$( mktemp -t node_XXXX )"
rm -rf $tempdir
View vim-on-heroku.sh
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin