Skip to content

Instantly share code, notes, and snippets.

View sinistersnare's full-sized avatar
🕹️
Coding

Davis Silverman sinistersnare

🕹️
Coding
View GitHub Profile
@sinistersnare
sinistersnare / county_data.csv
Created August 9, 2023 04:50
US County Data (Got OG lat/lng data from https://simplemaps.com/data/us-counties)
county county_ascii county_full county_fips state_id state_name lat lng population
Los Angeles Los Angeles Los Angeles County 06037 CA California 34.3209 -118.2247 10019635
Cook Cook Cook County 17031 IL Illinois 41.8401 -87.8168 5265398
Harris Harris Harris County 48201 TX Texas 29.8577 -95.3936 4697957
Maricopa Maricopa Maricopa County 04013 AZ Arizona 33.3490 -112.4915 4367186
San Diego San Diego San Diego County 06073 CA California 33.0343 -116.7350 3296317
Orange Orange Orange County 06059 CA California 33.7031 -117.7609 3182923
Kings Kings Kings County 36047 NY New York 40.6395 -73.9385 2712360
Miami-Dade Miami-Dade Miami-Dade County 12086 FL Florida 25.6150 -80.5623 2690113
Dallas Dallas Dallas County 48113 TX Texas 32.7666 -96.7778 2604722
@sinistersnare
sinistersnare / census_data_county.csv
Created August 9, 2023 03:52
Looking at county statistics.
GEO_ID NAME B01003_001E B01003_001M B01003_001MA B01003_001EA
Geography Geographic Area Name Estimate!!Total Margin of Error!!Total Annotation of Margin of Error!!Total Annotation of Estimate!!Total
0100000US United States 331893745 ***** ***** null
0500000US01003 Baldwin County, Alabama 239294 ***** ***** null
0500000US01015 Calhoun County, Alabama 115972 ***** ***** null
0500000US01043 Cullman County, Alabama 89496 ***** ***** null
0500000US01049 DeKalb County, Alabama 71813 ***** ***** null
0500000US01051 Elmore County, Alabama 89304 ***** ***** null
0500000US01055 Etowah County, Alabama 103162 ***** ***** null
0500000US01069 Houston County, Alabama 107458 ***** ***** null
@sinistersnare
sinistersnare / actual_pr_1044_fix.xml
Created May 18, 2023 00:00
A file that is broken before ActualBudget/Actual PR #1044
<?xml version="1.0" standalone="no"?>
<?OFX OFXHEADER="200" VERSION="202" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?>
<OFX>
<SIGNONMSGSRSV1>
<SONRS>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
<MESSAGE>Login Successful!</MESSAGE>
</STATUS>
#!/usr/bin/env python3
"""
A simple HTTP Server (a la `python3 -m http.server`)
that sets CORS handlers correctly (not a la `python3 -m http.server`)
This server can be used to give files to Prospective.
TODO: add -d argmuent to choose directory to serve
Code: https://fpira.com/blog/2020/05/python-http-server-with-cors
"""
@sinistersnare
sinistersnare / tauri_segfault_report
Created November 1, 2022 21:14
for tauri bug #5489
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: tauri_repro [21717]
Path: /Users/USER/*/tauri_repro
Identifier: tauri_repro
Version: ???
Code Type: ARM-64 (Native)
Parent Process: zsh [17421]
@sinistersnare
sinistersnare / userChrome.css
Last active April 19, 2023 20:16
my firefox userChrome.css file (check about:profiles), and config
/*
MAKE SURE toolkit.legacyUserProfileCustomizations.stylesheets IS SET TO TRUE!
Also set:
* mousewheel.with_meta.action = 3 // When cmd+scroll to zoom is used (macOS)
* mousewheel.with_control.action = 3 // When ctrl+scroll to zoom (!macOS).
* privacy.resistFingerprinting = true
* privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts = false
* privacy.userContext.enabled = false // disables 'open in new container tab'
And turn titlebar on in the "customize toolbar" page.
@sinistersnare
sinistersnare / big_main.ll
Created May 18, 2022 21:49
A LLVM .ll file with a @main function thats ~10k lines long...
This file has been truncated, but you can view the full file.
; ModuleID = './src/cpp/runtime.cpp'
source_filename = "./src/cpp/runtime.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Map = type { %struct.Map*, %struct.SinObj*, %struct.SinObj* }
%struct.SinObj = type { i8*, i32 }
%struct.SinRecord = type { %struct.SinObj**, %struct.SinRecord*, i64, i64, i8* }
@.str = private unnamed_addr constant [18 x i8] c"Register Values:\0A\00", align 1
@sinistersnare
sinistersnare / why.md
Last active February 20, 2020 02:17
My opinions on 2020 candidates. Mostly why I dont like them, but for candidates I like I may try to give rebuttals to their common critiques.

Candidacy

When I watch candidates, sometimes I hear them say something that is patently false, or completely disengenuous. How am I expected to vote for such a person? They clearly only have their own interests at heart if they know they are lying, or they are incompetent, not knowing basic facts about their opponents.

This is a short list with stuff that I wanted to write down in case it comes up in an argument :P. Hopefully, I eventually get to all candidates, including ones I support.

Also, the list has kind of morphed. It was originally critiques on candidates, now its just general thoughts, idk.

@sinistersnare
sinistersnare / AutoSaveSceneOnPlay.cs
Last active May 14, 2018 01:19
Auto saves current Unity scene when entering play mode.
#if UNITY_EDITOR
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using UnityEditor.SceneManagement;
[InitializeOnLoad]
public class AutoSaveSceneOnPlay: ScriptableObject {
static AutoSaveSceneOnPlay() {
EditorApplication.playModeStateChanged += OnStateChanged;
@sinistersnare
sinistersnare / 0000-ellipses-elide.md
Last active August 29, 2015 14:14
Ellipses elision in patterns instead of double-dot.
  • Start Date: (fill me in with today's date, YYYY-MM-DD)
  • RFC PR: (leave this empty)
  • Rust Issue: (leave this empty)

Summary

Use ellipses ... instead of the current double dot notation .. for elision in patterns, such as in match expressions.

example: