Skip to content

Instantly share code, notes, and snippets.

View numberisnan's full-sized avatar
:fishsticks:

Number.isNaN numberisnan

:fishsticks:
View GitHub Profile
@numberisnan
numberisnan / runcases.py
Last active February 10, 2022 01:40
A simple script runner for C++ and Python useful for competitive programming
import time
import os
import sys
import subprocess
EXENAME = "temp"
args = sys.argv
filepath = args[1]
filetype = filepath.split(".")[1]
@numberisnan
numberisnan / alarmclock.ino
Created June 11, 2019 02:41
A simple alarm clock application for Arduino
#include <Time.h>
#include <TimeLib.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
//User editable configurations
const short dismissPin = 7;
const short snoozePin = 8;
const short buzzerPin = 13;