Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
🏳️‍🌈

Connor Slade Basicprogrammer10

🐢
🏳️‍🌈
View GitHub Profile
@Basicprogrammer10
Basicprogrammer10 / headers.rs
Created February 7, 2023 03:18
HTTP Headers
View headers.rs
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
View bencher.rs
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
View Instructables-VL_Ratio.js
// ==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
View waterTempWidget.js
// 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
View Tomorrow-Night-Eighties-Theme.css
/* 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
View getNewName.py
import random
import requests
import time
# Mojang Auth
USERNAME = ""
PASSWORD = ""
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
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
@Basicprogrammer10
Basicprogrammer10 / COLOR.lua
Created May 8, 2021 22:18
Make cool color spectrums on a TI nspire
View COLOR.lua
-- COLOR for TI-Nspire
-- By Connor Slade
local precision = 5
local x = 0
local y = 0
local ss = { "Red", "Green", "Blue" }
local xs = 1
local ys = 2