Skip to content

Instantly share code, notes, and snippets.

@sherrytp
sherrytp / Awesome_CS.md
Last active February 15, 2026 21:39
Awesome Quant resources

Awesome CS Courses Awesome

CS Course Lists other than ClassCentral[https://www.classcentral.com/]

Introduction

There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome CS courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.

Table of Contents

@karpathy
karpathy / microgpt.py
Last active February 15, 2026 21:39
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@productdevbook
productdevbook / drizzle-orm.md
Last active February 15, 2026 21:37
Drizzle ORM PostgreSQL Best Practices Guide (2025)

Drizzle ORM PostgreSQL Best Practices Guide (2025)

Latest Drizzle ORM features and optimal schema patterns

Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.

import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';
@xphir
xphir / userChrome.css
Created June 29, 2025 09:41
Firefox hide native vertical tab bar if Sidebery is enabled
/*
Credit: https://gist.github.com/abhinav/00c2053b750b72e2d43bcf1652b5fb66
This is a userChrome.css for Firefox
that hides the vertical tab sidebar (used by Sidebery),
but only if Sidebery is enabled and the window title contains the "sidebery" preface.
Instructions:
1. Enable userChrome.css support and vertical tabs in Firefox:
1.1 Go to about:config
1.2 Set `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`
@JigSawFr
JigSawFr / http.yaml
Created April 24, 2022 21:51
Crowdsec Pushover Notification (using API and HTTP notifier)
#########################################################################
# Title: CrowdSec : Pushover Notification (API) #
# Author(s): JigSawFr #
# URL: https://github.com/crowdsecurity/crowdsec #
#########################################################################
# MIT License #
#########################################################################
type: http # Don't change
name: http_default # Must match the registered plugin in the profile
@T4P4N
T4P4N / aria2c-webui-termux.md
Last active February 15, 2026 21:27
Setup aria2c WebUI in Termux

Installation & Configuration

  • Install necessary pkgs
pkg install aria2c wget python git
  • Download webui for aria2c