Skip to content

Instantly share code, notes, and snippets.

View Basicprogrammer10's full-sized avatar

Connor Slade Basicprogrammer10

View GitHub Profile
fn main() -> Result<()> {
(0..2800).par_bridge().progress_count(2800).for_each(|id| {
let address = format!("../download/file.php?id={id}");
let res = match ureq::get(&address).call() {
Ok(x) => x,
Err(..) => return,
if res.status() != 200 {
Basicprogrammer10 /
Created February 7, 2023 03:18
HTTP Headers
pub enum Headers {
Basicprogrammer10 /
Created August 22, 2021 17:52
Stable Rust Benchmarker
fn bencher(name: &str, iter: u32, f: fn() -> ()) {
let mut avg_time: u128 = 0;
for i in 0..iter {
let start = std::time::Instant::now();
avg_time += start.elapsed().as_nanos();
println!("[*] Bench: {} ({})", name, iter);
println!(" ├─ Total: {}ns", avg_time);
println!(" └─ AVG: {}ns\n", avg_time / iter as u128);
Basicprogrammer10 / Instructables-VL_Ratio.js
Last active August 4, 2021 00:24
Add a View / Like ratio to the stats bar on any instructable
View Instructables-VL_Ratio.js
// ==UserScript==
// @name Instructables View Like Ratio
// @namespace
// @version 0.2
// @description Add a V/L ratio to the stats bar on any instructable
// @author Connor Slade
// @match http*://*
// @icon
// @updateURL
// ==/UserScript==
Basicprogrammer10 / waterTempWidget.js
Created July 17, 2021 15:39
Widget for my Water Temp System
View waterTempWidget.js
// Connor Slade - 7/14/2021
let server = "";
// Weather Info Stuff
let weatherConfig = {
showAirTemp: false, // Make true if you want to show air temp too
server: "",
apiKey: "", // Put ya api key here
zip: "18464,US"
Basicprogrammer10 / Tomorrow-Night-Eighties-Theme.css
Created July 13, 2021 01:18
Tomorrow Night Eighties Theme
View Tomorrow-Night-Eighties-Theme.css
/* Tomorrow Night Eighties Theme */
/* Original theme - */
/* */
.tomorrow-comment, pre .comment, pre .title {
color: #999999;
.tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo {
color: #f2777a;
Basicprogrammer10 /
Created July 3, 2021 15:38
A simple python program to find available short account names in Minecraft
import random
import requests
import time
# Mojang Auth
chars = [chr(x) for x in range(ord('a'), ord('z') + 1)]
usedNames = []
View beez.txt
(Black screen with text; The sound of buzzing bees can be heard) Narrator: According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. (Barry is picking out a shirt) Barry: Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Janet: Barry! Breakfast is ready! Barry: Coming! Hang on a second. (Barry uses his antenna like a phone) Barry: Hello (Through phone) Adam: Barry? Barry: Adam? Adam: Can you believe this is happening? Barry: I can't. I'll pick you up. (Barry flies down the stairs) Martin: Looking sharp. Janet: Use the stairs. Your father paid good money for those. Barry: Sorry. I'm excited. Martin: Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Janet: Very proud. (Rubs Barry's hair) Barry: Ma! I got a thing going here. Janet: You go
View DiscordXpBoost.ahk
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
FileRead, itemString, xp.txt
if ErrorLevel
MsgBox, Error Reading File
Exit, 1
Basicprogrammer10 / devInfo.lua
Created May 9, 2021 04:20
Get Ti Nispire Device Info
View devInfo.lua
platform.apiLevel = '2.7'
-- Device Info
-- By Connor Slade
-- Config
local programVersion = '1.2'
local fontSize = 12 -- 6 to 255 Defult 12
-- Set Background Color