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 {
return;
@Basicprogrammer10
Basicprogrammer10 / CommitMessages.txt
Last active February 28, 2023 15:24
Some random Commit Messages from whatthecommit.com
""Get that shit outta my master."",
"#GrammarNazi",
"$(init 0)",
"$(rm -rvf .)",
"(\ /)(O.o)(> <) Bunny approves these changes.",
"(c) Microsoft 1988",
"--help",
"-m \'So I hear you like commits ...\'",
".",
"...",
@Basicprogrammer10
Basicprogrammer10 / headers.rs
Created February 7, 2023 03:18
HTTP Headers
pub enum Headers {
AcceptLanguage,
AlsoControl,
AlternateRecipient,
Approved,
ARCAuthenticationResults,
ARCMessageSignature,
ARCSeal,
Archive,
ArchivedAt,
@Basicprogrammer10
Basicprogrammer10 / bencher.rs
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();
f();
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
Basicprogrammer10 / Instructables-VL_Ratio.js
Last active August 4, 2021 00:24
Add a View / Like ratio to the stats bar on any instructable
// ==UserScript==
// @name Instructables View Like Ratio
// @namespace https://www.instructables.com
// @version 0.2
// @description Add a V/L ratio to the stats bar on any instructable
// @author Connor Slade
// @match http*://www.instructables.com/*
// @icon https://www.instructables.com/assets/img/siteassets/favicon.ico
// @updateURL https://gist.githubusercontent.com/Basicprogrammer10/c75f18d75db56df9d313b540debf0230/raw/a9b540195b3161572d5242e927109e907f96d1a2/Instructables-VL_Ratio.js
// ==/UserScript==
@Basicprogrammer10
Basicprogrammer10 / waterTempWidget.js
Created July 17, 2021 15:39
Widget for my Water Temp System
// Connor Slade - 7/14/2021
let server = "https://water.connorcode.com";
// Weather Info Stuff
let weatherConfig = {
showAirTemp: false, // Make true if you want to show air temp too
server: "https://api.openweathermap.org/data/2.5/weather",
apiKey: "", // Put ya api key here
zip: "18464,US"
@Basicprogrammer10
Basicprogrammer10 / Tomorrow-Night-Eighties-Theme.css
Created July 13, 2021 01:18
Tomorrow Night Eighties Theme
/* Tomorrow Night Eighties Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* https://jmblog.github.io/color-themes-for-google-code-highlightjs */
.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
Basicprogrammer10 / getNewName.py
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
USERNAME = ""
PASSWORD = ""
chars = [chr(x) for x in range(ord('a'), ord('z') + 1)]
usedNames = []
(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
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
FileRead, itemString, xp.txt
if ErrorLevel
{
MsgBox, Error Reading File
Exit, 1
}