Skip to content

Instantly share code, notes, and snippets.

View raleighlittles's full-sized avatar

Raleigh Littles raleighlittles

View GitHub Profile
@raleighlittles
raleighlittles / Bambu_Labs_AMS_info.md
Last active December 26, 2023 05:41
Bambu Labs AMS bus info

Power supply

AMS power supply circuit diagram

Connector pinout

AMS connector pinout

"Sig-A" and "Sig-B" are still unknown.

@raleighlittles
raleighlittles / SuperBowl-Squares.md
Created October 11, 2022 05:49
Script for generating results of Superbowl Squares score analysis
@raleighlittles
raleighlittles / Steam-Directory-GameID-Auto-Renamer.md
Last active October 8, 2022 08:14
A script for auto-renaming subfolders based on Steam Game ID

About

This script iterates over subdirectories and if the subdirectory's name is a Steam Game ID, it renames that directory to the year the game was released and its full name -- see example below.

output example screenshot

This makes use of a semi-undocumented portion of the Steam API: https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI

Usage/Code

@raleighlittles
raleighlittles / instagram-data-parser.md
Created June 22, 2022 05:14
A simple tool for analyzing your like behavior and viewing activity on Instagram

About

This tool uses your Instagram data to visualize which accounts you interact with most. When you do an export of your Instagram data, every post & comment you liked, as well as every post & video you've viewed, are recorded. This tool simply analyzes that and produces a simple report:

Usage

To use this tool, you obviously first need to download your Instagram data.

Once the data is downloaded, extract it, and move any of the following HTML files to this location:

@raleighlittles
raleighlittles / procore_interview.rb
Last active April 30, 2021 07:16
Procore Interview
require 'rspec/autorun'
=begin
You are a Pokemon, hooray!
Pokemon have it tough though. Every day in the field of battle they are susceptible to dangerous status effects. Some status effects are stronger than others.
You can only be under the effects of one status effect at any time. That depends on the ranking of the status effect.
In our case, the status effect hierarchy is as follows:
Sleep > Paralyze > Confusion
@raleighlittles
raleighlittles / gist:d3609a0d33f94f7d0d644b7ab0b8aa8d
Created April 6, 2017 22:16
[MATLAB] "SEND NUDES" in Rainbow colors
figure('units','normalized','position',[.1 .1 .4 .4])
tic;
res = 40;
Ah = [linspace(1,4,res),linspace(5,8,res),linspace(30,33,res),linspace(34,37,res)];
Av = linspace(8,8,4*res);
for i=1:4*res
axis([0 40 0 5])
p = plot(Ah(i),Av(i)/2,'.','markersize',30);