Skip to content

Instantly share code, notes, and snippets.

@gibsonhan
gibsonhan / useScript.tsx
Created February 27, 2020 23:53 — forked from addisonschultz/useScript.tsx
A React hook that lets you add script tags to a component. Useful when needing to load scripts for components in Framer X.
import * as React from "react"
import { useState, useEffect } from "react"
// Hook
let cachedScripts = []
export function useScript(src) {
// Keeping track of script loaded and error state
const [state, setState] = useState({
loaded: false,
@gibsonhan
gibsonhan / tmux-cheatsheet.markdown
Created December 3, 2018 01:16 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname