Skip to content

Instantly share code, notes, and snippets.

@nonopolarity
nonopolarity / TurnipPrices.cpp
Last active August 25, 2020 23:52 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
// munged from https://github.com/simontime/Resead
namespace sead
{
@nonopolarity
nonopolarity / stopwatch.sh
Last active July 31, 2017 11:54 — forked from rawaludin/stopwatch.sh
simple stopwatch in bash
# add to your ~/.bashrc
function stopwatch() {
local BEGIN=$(date +%s)
while true; do
local NOW=$(date +%s)
local DIFF=$(($NOW - $BEGIN))
local MINS=$(($DIFF / 60 % 60))
local SECS=$(($DIFF % 60))