Skip to content

Instantly share code, notes, and snippets.

View bashbaugh's full-sized avatar
🐟
cod

Benjamin Ashbaugh bashbaugh

🐟
cod
View GitHub Profile
/* https://scrapbook.benjaminashbaugh.me/ */
@bashbaugh
bashbaugh / studio775.html
Last active January 26, 2020 21:21
Homepage for makerspace computers at Studio 775, the mini-makerspace at my local library
<!--
Homepage for makerspace computers at Studio 775
https://www.cityoflafayette.com/2097/
If you have a change in mind, please ask Kate, the makerspace manager, before making any changes to this page. Also, the code is stored here: https://gist.github.com/scitronboy/4177d289fe8f4d6b9a5df5187083584f
code by Benjamin Ashbaugh.
Licensed under CC-zero public domain dedication
That means you can use this however you want any you don't need to give credit or attribution to anyone.
-->
<!DOCTYPE html>
@bashbaugh
bashbaugh / krunker_settings.json
Last active December 12, 2020 22:47
My settings for Krunker. I didn't know where else to keep them :)
{"lagComp":0.5,"servSendR":true,"resolution":1,"updateRate":400,"screenShake":false,"scaleUI":0.4,"oldScoreboard":true,"showKillC":true,"showDeaths":true,"showScore":true,"showStreak":true,"showFPS":true,"showUnboxings":false,"chatHeight":4,"crosshairSho":"2","crosshairStyle":"2","crosshairAlways":true,"crosshairColor":"#ff0000","crosshairShadowThickess":0,"crosshairLen":3,"crosshairDot":true,"hitmCol":"#ff11f7","hitmKCol":"#ff5c00","hitmLen":20,"hitmThick":8,"hitmSpac":35,"hitmAnimD":0.1,"hitmAnimS":0.005,"hitmFad":0.0011,"sensitivityX":0.6,"sensitivityY":0.6,"aimSensitivityX":0.6,"aimSensitivityY":0.6,"sound":0.6,"gunsVolume":1,"fov":110,"weaponBob":0.5,"weaponLean":0.5,"weaponOffX":1.3,"weaponOffY":1.5,"hideADS":true,"roundArms":true,"showSpdLines":0.6,"scopeBorders":false,"customScope":"https://cdn.discordapp.com/attachments/598351191600267264/605541637644615701/crosshair2.png","controls":{"primKey":20000,"sprayKey":53,"inspKey":72,"aimKey":-1}}

This is the folder shortcut for the godmode control panel in Windows 10

To access the godmode control panel, create a new folder and immediately give it this name:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello.
Hello. This is to verify that key "C3DB053BD7019D22F131CB523D3B00ECAD828B54" is belongs to Benjamin Ashbaugh, user scitronboy, on github.
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEw9sFO9cBnSLxMctSPTsA7K2Ci1QFAlz1vM8ACgkQPTsA7K2C
i1TOrQ//X1KkupK/6o2iwdh7Qd3ZuIPJjyxg6QKcYSL8CFLDrM3FTCYZSJOhYBz8
@bashbaugh
bashbaugh / spambot.py
Created May 7, 2019 15:19
A simple discord bot that generates spam (strings of random characters) when a user types `$spamhere`.
# Spambot
# A simple discord bot that generates spam (strings of random characters) when a user types `$spamhere`.
# Written by Benjamin A
from time import sleep
import string
import random
import os
import logging
import discord
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Game</title>
</head>
<body onload="init()">
<h1>JavaScript Game</h1>
<p>Here is a simple JavaScript game:</p>
<canvas id="c" width="400" height="400"></canvas>
if (game_over)
{
canvas.fillStyle = text_color; // Set color
canvas.font = "45px Arial"; // Set font
canvas.fillText("Game Over", 80, 100); // Draw line one
canvas.fillText("Final Score: " + score.toString(), 60, 150); // Draw line two
}
// If y distance is greater than dot_distance_apart
if (dots_y[dots_y.length - 1] > dot_distance_apart)
{
// Choose random new color:
let new_color = dot_color_options[Math.floor(Math.random()*dot_color_options.length)];
// Choose random new lane:
let lane_number = Math.floor(Math.random() * (canvas_element.width / player_move_increment + 1));
// Convert to new x position:
function key_pressed(key)
{
... // arrow up block
if (key.key == "ArrowLeft")
{
console.log("left");
player_x -= player_move_increment // reduce player_move_increment, which moves player left
}