Skip to content

Instantly share code, notes, and snippets.

@russellsamora
russellsamora / us_county_latlng.csv
Last active May 4, 2024 05:42
US counties with fips code, name, and lat lng
fips_code name lng lat
01059 Franklin -87.843283 34.44238135
13111 Fannin -84.31929617 34.86412558
19109 Kossuth -94.20689787 43.20413984
40115 Ottawa -94.81058917 36.83587796
42115 Susquehanna -75.80090451 41.82127676
40053 Grant -97.78493404 36.79651364
31029 Chase -101.6979407 40.52371008
29213 Taney -93.04127586 36.65473646
32510 Carson City -119.7473502 39.15108405
@nyancodeid
nyancodeid / README.md
Last active May 4, 2024 05:41
Make RESTful API with Google Apps Script and SpreadSheet

Google Script CRUD

By Ryan Aunur Rassyid

Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.

@veekaybee
veekaybee / normcore-llm.md
Last active May 4, 2024 05:37
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@safaorhan
safaorhan / uninstall-youtube.txt
Created July 6, 2023 06:28
How to uninstall YouTube app via adb
The first command uninstalls updates and clears data.
The second command uninstalls the system app all together.
Run commands in this order to get rid of YouTube forever.
--
adb uninstall com.google.android.youtube
adb shell pm uninstall --user 0 com.google.android.youtube
import SwiftUI
struct SqureFlowView: View {
@StateObject private var holder = SquresHolder()
var body: some View {
TimelineView(.animation) { timeline in
Canvas { context, size in
holder.update(at: timeline.date, in: size)
for item in holder.squre {
@JMPerez
JMPerez / service-worker.js
Created October 27, 2018 20:21
An example of a service worker for serving network first, cache second
// the cache version gets updated every time there is a new deployment
const CACHE_VERSION = 10;
const CURRENT_CACHE = `main-${CACHE_VERSION}`;
// these are the routes we are going to cache for offline support
const cacheFiles = ['/', '/about-me/', '/projects/', '/offline/'];
// on activation we clean up the previously registered service workers
self.addEventListener('activate', evt =>
evt.waitUntil(
@ashishsoniii
ashishsoniii / GSoC_TOR.md
Last active May 4, 2024 05:17
Explore my Google Summer of Code journey with The Tor Project. Check out my final report summarizing my contributions & coding.🚀

Google Summer of Code 2023 Final Report - Tor’s SnowFlake: Revitalising Snowflake's Landing Page for a Better User Experience

👤 Contributor: Ashish Soni

🤝 Mentor: Raya, Donuts

⚙️ Organization: The Tor Project

🚀 Repository: Snowflake

@chrisbraddock
chrisbraddock / anaconda-clean-base.sh
Created May 2, 2024 18:04
Reset Anaconda / Miniconda Base Environment
# https://stackoverflow.com/a/77768997/227260
CONDA_DIR="$HOME/anaconda3"
CONDA_DIR_BAK="${CONDA_DIR}_bak"
# Miniconda: https://docs.anaconda.com/free/miniconda/miniconda-other-installer-links/
# Anaconda: https://repo.anaconda.com/archive/
CONDA_INSTALL_SHELL="https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh"
# Check if backup directory exists and move if it does not
@junegunn
junegunn / gist:f4fca918e937e6bf5bad
Last active May 4, 2024 05:07
Browsing git commit history with fzf
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort)
fshow() {
local out shas sha q k
while out=$(
git log --graph --color=always \
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
fzf --ansi --multi --no-sort --reverse --query="$q" \
--print-query --expect=ctrl-d --toggle-sort=\`); do
q=$(head -1 <<< "$out")
k=$(head -2 <<< "$out" | tail -1)
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 4, 2024 05:06
set -e, -u, -o, -x pipefail explanation