Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Dab city

Faraz Kaleem Malik farazkaleemmalik

:shipit:
Dab city
  • University of Toronto Scarborough
  • Canada
View GitHub Profile
@farazkaleemmalik
farazkaleemmalik / runcases.py
Last active Feb 10, 2022
A simple script runner for C++ and Python useful for competitive programming
View runcases.py
import time
import os
import sys
import subprocess
EXENAME = "temp"
args = sys.argv
filepath = args[1]
filetype = filepath.split(".")[1]
@farazkaleemmalik
farazkaleemmalik / alarmclock.ino
Created Jun 11, 2019
A simple alarm clock application for Arduino
View alarmclock.ino
#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;