Skip to content

Instantly share code, notes, and snippets.

View meowteusz's full-sized avatar

Mateusz Ryczek meowteusz

  • Northwestern University
  • Chicago, IL
View GitHub Profile
@meowteusz
meowteusz / vue.md
Created April 30, 2024 16:36
Vue Project Boilerplate

Create Project Scaffold

bun create vue@latest

cd <your-project-name>
bun i
bun run dev
@meowteusz
meowteusz / hn2json.js
Last active April 24, 2024 20:49
hn2json
function clean(){
// Grab main table
let table = document.querySelector(".athing").parentElement
// Remove spacer <tr> elements
for(i of document.querySelectorAll(".spacer")) {i.remove()}
// Remove "more" button and spacers
table.children[table.children.length - 1].remove()
document.querySelector(".morespace").remove()
@meowteusz
meowteusz / fix-tid.sh
Created February 1, 2021 20:08
Little sed oneliner to enable Touch ID authentication within Terminal
sudo sed -i .bak '2i\
auth sufficient pam_tid.so
' /etc/pam.d/sudo
@meowteusz
meowteusz / smart_install.bat
Created October 22, 2020 21:58
Small bat script to scan a directory for Office 365 XML files and run the setup tool with a user chose file. setup.exe must be in same dir as XML file. If there is only 1 XML file it chooses that one automatically, allowing for automated install.
@echo off
setlocal enableDelayedExpansion
set i=0
for %%f in (*.xml) do (
set /A i+=1
if "%%~xf"==".xml" set list[!i!]=%%f
)
@meowteusz
meowteusz / Readme.md
Last active June 11, 2019 03:42
D3 Clickable Quadtrees

Build as you go quadtrees! Click anywhere on the svg to add a point to the quadtree. Rectangles showing partitions automatically draw around it to show which node the point is stored in. Tree is also responsive and can resize to desired viewport width and height.

@meowteusz
meowteusz / Readme.md
Last active June 11, 2019 03:05
D3 Responsive Quadtrees

Example of quadtrees that will rescale to fit nicely in an x by y containter. Cells automatically recalculated to be proportional to the container shape as well. Useful when it is necessary to fit the entire tree in a viewport, and not just the first quadrant.

Keybase proof

I hereby claim:

  • I am meowteusz on github.
  • I am mateuszryczek (https://keybase.io/mateuszryczek) on keybase.
  • I have a public key whose fingerprint is 9B2E A3ED B53D 67B1 E25B 1558 AF2A B4F9 3914 B475

To claim this, I am signing this object: