Skip to content

Instantly share code, notes, and snippets.

View rpdelaney's full-sized avatar
🏠
Working nomad

Ryan Delaney rpdelaney

🏠
Working nomad
View GitHub Profile
Click to expand!

Your detailed text here.

{
"version": "2.6",
"groups": [
{
"name": "Watts to Joules/sec",
"urls": [
"factoriolab.github.io",
"wiki.factorio.com"
],
"substitutions": [
@rpdelaney
rpdelaney / gruvbox.json
Created August 17, 2023 18:40
gruvbox.json
{
"black": {
"neutral": {
"hex": "#282828",
"standard": 0,
"8bit": 235,
"ansi_fg": "\u001b[38;2;40;40;40m",
"ansi_bg": "\u001b[48;2;40;40;40m"
}
},
"""
Calculate 12 week periods in a year that have the fewest holidays.
"""
import argparse
from datetime import date, datetime, timedelta
from pprint import pprint as print
from typing import List, Tuple
from pandas.tseries.holiday import (
Question Answer
What are you using the system for? Mostly gaming. The hardware intensive games I play are "simulation" games (think Factorio) that are more CPU bound than GPU bound. I do not play the latest marquee games with the biggest and baddest graphics etc.
What's your budget? $1300-$2000, although I doubt I need to go to the higher end of that range
@rpdelaney
rpdelaney / using-details-summary-github.md
Created April 5, 2023 16:43 — forked from scmx/using-details-summary-github.md
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example

@rpdelaney
rpdelaney / font_test.txt
Created December 6, 2022 20:12
font_test.txt
ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZabc.def.ghi.jkl.mno.pqrs.tuv.wxyz
¢ ſß ΓΛΔ αδιλμξ КУЗЯ эльф язычникfloat il1[]={1-2/3.4,5+6=7/8%90};
1234567890 ,._-+= >< ¯-¬_ >~–÷+×<{}[]()<>`+-=$*/#_%^@\&|~?'" !,.;:
!iIlL17|¦ coO08BbDQ $5SZ2zsz 96G&dbqp E3 g9q CGQ vvw VVW /V <= >=÷
@rpdelaney
rpdelaney / python_oneliners.md
Last active October 7, 2022 15:11
python cli tools in the standard library

You get a lot of command-line tools just for having python 3 installed.

$ # despite the name, compares files found in two _directories_ (non-recursive)
$ python3 -m filecmp dumbpw/ tests/
diff dumbpw/ tests/
Only in dumbpw/ : ['candidate.py', 'charspace.py', 'cli.py', 'pwgen.py']
Only in tests/ : ['test_charspace', 'test_pwgen']
Differing files : ['__init__.py']
$ # print a calendar
@rpdelaney
rpdelaney / factorio_logistics_silo_assembler.py
Created August 14, 2022 21:47
Create a Factorio blueprint with a logistic assembler for a rocket silo.
"""Create a Factorio blueprint with a logistic assembler for a rocket silo.
This assembler directly requests the ingredients for a rocket silo,
without the use of a requester chest.
Many thanks to redruin1 for factorio-draftsman:
https://github.com/redruin1/factorio-draftsman
This script licensed under the public domain.
@rpdelaney
rpdelaney / README.md
Last active October 24, 2022 16:15 — forked from marceloalmeida/.gitattributes
How to show git diffs for gpg-encrypted files?

How to show diffs for gpg-encrypted files?

Git supports showing diffs for encrypted files, but has to be told to do so.

git config --global diff.gpg.textconv "gpg --no-tty --decrypt"
echo "*.gpg filter=gpg diff=gpg" >> .gitattributes
echo "*.asc filter=gpg diff=gpg" >> .gitattributes