Skip to content

Instantly share code, notes, and snippets.

View numberisnan's full-sized avatar
🍀

Number.isNaN numberisnan

🍀
View GitHub Profile
#!/bin/bash
# A simple bash script that downloads, installs, and inits postgres made for CSCD43 at UTSC
# Make sure you have all the dependancies installed first!
wget https://ftp.postgresql.org/pub/source/v17.2/postgresql-17.2.tar.gz
tar -xzvf postgresql-17.2.tar.gz
rm postgresql-17.2.tar.gz
cd postgresql-17.2
mkdir build pgsql
@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;