Skip to content

Instantly share code, notes, and snippets.

@lyrick17
lyrick17 / deped-masterlist-schools-ay2021.csv
Created May 9, 2025 11:03
DepEd BEIS Masterlist Schools 2020-2021 Record
We can't make this file beautiful and searchable because it's too large.
Region,Division,BEIS School ID,School Name,Normalized,Sector
Region I,Ilocos Norte,100001,Apaleng-Libtong ES,apaleng libtong es,Public
Region I,Ilocos Norte,100002,Bacarra CES,bacarra ces,Public
Region I,Ilocos Norte,100003,Buyon ES,buyon es,Public
Region I,Ilocos Norte,100004,Ganagan Elementary School,ganagan elementary school,Public
Region I,Ilocos Norte,100005,Macupit ES,macupit es,Public
Region I,Ilocos Norte,100006,Nambaran ES,nambaran es,Public
Region I,Ilocos Norte,100007,Pasiocan ES,pasiocan es,Public
Region I,Ilocos Norte,100008,Pulangi ES,pulangi es,Public
Region I,Ilocos Norte,100009,Sabas-Sagisi Memorial Elem. School,sabas sagisi memorial elem school,Public
@lyrick17
lyrick17 / trafficlight-diagram.json
Last active November 7, 2023 09:50
Arduino Uno Activity - Traffic Light with Pedestrian Button
{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-breadboard-half", "id": "bb1", "top": -89.4, "left": -74, "attrs": {} },
{ "type": "wokwi-arduino-uno", "id": "uno", "top": 154.2, "left": -87, "attrs": {} },
{ "type": "wokwi-led", "id": "led1", "top": -61.2, "left": 167, "attrs": { "color": "red" } },
{ "type": "wokwi-led", "id": "led2", "top": -61.2, "left": 23, "attrs": { "color": "green" } },
{
@lyrick17
lyrick17 / logging.py
Created July 16, 2023 08:11
logging codes for Python, useful for debugging
# This is set up code for logging in Python
# - the format can be changed
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
# this is the set up instead if you want to save the logs in another file
logging.basicConfig(filename="filename.txt", level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
# Disable all the logs...(will be used to stop the logs)
# - you can change CRITICAL into DEBUG, WARNING, INFO, ERROR, CRITICAL
@lyrick17
lyrick17 / grokking_to_leetcode.md
Created July 15, 2023 08:05 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window