Skip to content

Instantly share code, notes, and snippets.

@sguzman
sguzman / cache.js
Created May 11, 2022 19:55
Cache hacker news comments
const https = require('https');
const fs = require('fs');
const testFolder = './data/';
function path(i) {
return `./data/${i}`;
}
function json(i) {
return `./data/${i}.json`;
@sguzman
sguzman / working-duolingo-clipboard.js
Created April 23, 2022 21:50
Copy duolingo text into clipboard
// ==UserScript==
// @name Make a text selectable in Practice
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.duolingo.com/*
// @homepage https://userstyles.org/styles/152853
// @icon https://www.google.com/s2/favicons?domain=duolingo.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js
@sguzman
sguzman / prog-langs.md
Created April 17, 2022 02:34
Cool prog langs imma check out later

Prog langs I want to research

Summary

I'm really into type theory right now. I went back to my old flame from college, Scala. Because of that, I want to see what the state of the art is in type systems

Programming Languages

@sguzman
sguzman / fun-with.svg
Created April 9, 2022 18:31
Fun with SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sguzman
sguzman / parse-goodreads-read.wls
Created March 12, 2022 18:46
Parse out read books from good read dumps and sort by read date
With[{
csv = Import[
"C:\\Users\\Salvador \
Guzman\\Documents\\goodeads-dump\\goodreads_library_export.csv",
"CSV"
],
data = {2, 3, 12, 15}
},
With[{
headers = First@csv
@sguzman
sguzman / parse-content.wls
Created March 9, 2022 16:35
Script to parse US Code files
Map[
Cases[
Import[#, "XML"],
XMLElement[tag_,
{___, "identifier" -> id_}, {
___,
XMLElement[
Pattern[container,
"content"
| "heading"
@sguzman
sguzman / models.txt
Created February 26, 2022 23:45
A list of interesting Mathematica Default Neural Network Models
name, net-model, desc
OpenFace Face Recognition Net Trained on CASIA-WebFace and FaceScrub Data, NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and FaceScrub Data"], ?
ose-Aware Face Recognition in the Wild Nets Trained on CASIA WebFace Data, NetModel["Pose-Aware Face Recognition in the Wild Nets Trained on CASIA WebFace Data"], ?
@sguzman
sguzman / data.json
Created February 19, 2022 06:00
US Code hierarchy data
This file has been truncated, but you can view the full file.
[
{
"level": "title",
"name": "GENERAL PROVISIONS",
"number": "1",
"subparts": [
{
"level": "chapter",
"name": "RULES OF CONSTRUCTION",
"number": "1",
@sguzman
sguzman / exercises.csv
Created February 11, 2022 19:58
A list of simple exercises I will do at home
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Excercise
Pull up bar
Elevated push ups
Treadmill running
*Something for lower back*
*Something for obliques+
@sguzman
sguzman / catcher-in-the-rye.txt
Created February 11, 2022 18:49
I like this line :)
"Anyway, I keep picturing all these little kids playing some game in this big field of rye and all. Thousands of little kids, and nobody's around—nobody big, I mean—except me. And I'm standing on the edge of some crazy cliff. What I have to do, I have to catch everybody if they start to go over the cliff—I mean if they're running and they don't look where they're going I have to come out from somewhere and catch them. That's all I do all day. I'd just be the catcher in the rye and all. I know it's crazy, but that's the only thing I'd really like to be. I know it's crazy."