Skip to content

Instantly share code, notes, and snippets.

View davidhaley's full-sized avatar

David Haley davidhaley

View GitHub Profile
@davidhaley
davidhaley / hers.sh
Created July 9, 2024 01:24 — forked from alganet/hers.sh
Fast and portable mouse/keyboard terminal capture (zsh,ksh,mksh,bash on Windows+WSL, Linux or Mac OS)
#!/bin/sh
# Quick run: bash -c "$(curl -L https://git.io/fjToH)"
# CTRL+W to exit
set -euf
unsetopt FLOW_CONTROL GLOB NO_MATCH NO_SH_WORD_SPLIT NO_PROMPT_SUBST 2>/dev/null || :
write ()
{
@davidhaley
davidhaley / coin
Last active August 22, 2017 01:30 — forked from anonymous/coin
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
public GameObject coinPoof;
private static int coinsCollected = 0;
public int CoinsCollected