Skip to content

Instantly share code, notes, and snippets.

View paramt's full-sized avatar

Param Thakkar paramt

View GitHub Profile
@paramt
paramt / crossword-times.js
Last active December 25, 2023 04:25
Search mini crossword times on discord
/*
1. Open Discord in a browser
2. Search for all crossword times
e.g. from:paramt https://www.nytimes.com
3. Paste the following script in the console
*/
let res1 = "";
@paramt
paramt / notify.py
Created December 3, 2022 11:21
cronjob to send phone notification when a spot in your desired uw class opens up
from twilio.rest import Client
import requests
from bs4 import BeautifulSoup
COURSE = ["MATH", "136"]
SECTION = 8
# Twilio Auth
account_sid = ""
auth_token = ""
@paramt
paramt / magic_square.py
Last active November 8, 2019 04:12
Determine whether a given square is a magic square
#!/usr/bin/env python3
# Get the size of the square
def getSquareSize():
waitingForInput = True
while waitingForInput:
print("Enter the size of the magic square: ", end="")
try:
size = int(input())
@paramt
paramt / middle.cpp
Created November 8, 2019 04:05
Computer studies lab (C++)
/*
Name: Param Thakkar
Date: September 30
Purpose: Find the middle of a set of numbers
*/
#include <algorithm>
#include <iostream>
#include <vector>
@paramt
paramt / average.cpp
Last active November 8, 2019 03:59
Computer studies lab (C++)
/*
Name: Param Thakkar
Date: September 30
Purpose: Calculate the average of a user defined number of inputs
**/
#include <iostream>
#include <iomanip>
using namespace std;