Skip to content

Instantly share code, notes, and snippets.

@mattdsteele
mattdsteele / .gitignore
Last active July 31, 2023 11:26
BBQ Thermometer with the Web Bluetooth API
node_modules
*.pem
@mattdsteele
mattdsteele / README.md
Last active April 16, 2023 01:21
lowbrow.com (partial) archive

lowbrow.com was an early-2000s era website with a simple premise: visit the site, get a short post about hitting the bottom of the barrel.

Example: https://web.archive.org/web/20050206094553/http://www.lowbrow.com/

The site no longer exists, and the archive of posts has been lost to history.

I've tried to collect the few remaining posts from wherever I've found them floating around online; as well as a few scripts to generate the structured data.

This archive is powering https://botsin.space/@hourly_lowbrow

@mattdsteele
mattdsteele / add_wsl_exclusions.ps1
Created October 23, 2018 03:07 — forked from ian-p-cooke/add_wsl_exclusions.ps1
powershell script to add WSL exclusions
$win_user = "matt"
$linux_user = "matt"
$package = "TheDebianProject.DebianGNULinux_76v4gfsz19hv4"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@mattdsteele
mattdsteele / README.md
Created April 23, 2017 19:17
Screen Scrape Papercall.io

Papercall's free version doesn't have a public API, so this is a stupid simple way to get a pseudo-CSV of all the submissions on a page.

@mattdsteele
mattdsteele / README.md
Last active March 14, 2017 22:31
Electoral College Basketball

Bracketology based on the 2016 presidential election.

Schools advance based on whichever county had the higher Hillary Clinton vote percentage. Maryland is going to take it all with 85%, apparently.

Methodology

@mattdsteele
mattdsteele / gist:5615925
Last active October 30, 2016 12:18
Quirks in DeviceOrientation API
@mattdsteele
mattdsteele / ojug-jasmine.md
Created October 6, 2012 23:06
JavaScript testing with Jasmine
@mattdsteele
mattdsteele / game_of_life.rb
Created February 12, 2012 05:36 — forked from steven-s/game_of_life.rb
Conway's Game of Life with Ruby and RSpec
require 'rspec'
class World
attr_accessor :cells
def initialize
@cells = []
end
def tick
@mattdsteele
mattdsteele / who_should_i_follow.rb
Created November 24, 2011 05:52
Of the people I follow, who do they follow that I don't follow? (sorted by count of people I follow)
require 'rubygems'
require 'json'
user = ARGV[0]
if user == nil
puts "usage: who-should-i-follow.rb screen_name"
exit 1
end
followers_to_check = 100