Skip to content

Instantly share code, notes, and snippets.

View vs2961's full-sized avatar
🎯
Focusing

Victor Siu vs2961

🎯
Focusing
View GitHub Profile
@vs2961
vs2961 / .vimrc
Created April 20, 2023 02:53
Victor's .vimrc for ieng6
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set mouse=a
set nu
set statusline+=%#warningmsg#
@vs2961
vs2961 / csvparser.py
Last active June 4, 2021 00:09
Parses MN.csv and creates two files, after.csv and before.csv, which contain the number of floors and when the building was created for each building in the samples.
import csv
import random
import math
def get_data(isAfter1950):
with open("MN.csv") as csvfile:
reader = csv.reader(csvfile)
x = []
for row in reader:
@vs2961
vs2961 / run.sh
Last active November 7, 2019 02:43
Script for running the environment for the attendance-scanner for Stuypulse 694.
export FN_AUTH_REDIRECT_URI=http://localhost:5000/admin/google/auth
export FN_BASE_URI=http://localhost:5000/
export FN_CLIENT_ID=YOUR_CLIENT_ID
export FN_CLIENT_SECRET=YOUR_SECRET
# Change this based on what you want to run
export FLASK_APP=admin.py
# export FLASK_APP=main.py
export FLASK_DEBUG=1