Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️
Hi

Benjamin Ashbaugh scitronboy

🕶️
Hi
View GitHub Profile
View som_scrapbook.css
/* https://scrapbook.benjaminashbaugh.me/ */
h1.header-title-name {
display: block;
visibility: hidden;
font-size: 1px;
}
h1.header-title-name::after {
content: 'SirBenjamin';
@scitronboy
scitronboy / studio775.html
Last active Jan 26, 2020
Homepage for makerspace computers at Studio 775, the mini-makerspace at my local library
View studio775.html
<!--
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>
@scitronboy
scitronboy / krunker_settings.json
Created Dec 20, 2019
My settings for Krunker. I didn't know where else to keep them :)
View krunker_settings.json
{"controls":{"jumpKey":32,"crouchKey":16,"meleeKey":81,"swapKey":69,"primKey":84,"reloadKey":82,"sprayKey":70,"inspKey":88,"aimKey":67,"shootKey":-1,"chatKey":13,"voiceKey":86,"listKey":9,"interactKey":71,"interactSecKey":72,"dropKey":90,"wepVisKey":72,"streakKeys":[49,50,51,52],"moveKeys":[87,83,65,68]},"defaultRegion":"us-ca-sv","lang":"en","resolution":0.6,"updateRate":0,"aspectRatio":"","lowSpec":false,"particles":false,"shadows":false,"ambientShading":false,"showTrails":"true","muzzleFlash":false,"sniperFlap":false,"scaleUI":1,"showUI":true,"dynamicHP":true,"showHitInd":true,"showDMG":true,"dmgColor":"#DE292F","critColor":"#FFD542","dmgScale":1,"showChat":true,"showKills":true,"showDeaths":"true","showStreak":"true","showMessages":true,"showUnboxings":true,"showPing":true,"showFPS":"true","showSpeed":false,"speedOffX":5,"speedOffY":5,"showMedals":true,"hideNames":0,"nametagStyle":0,"crosshairSho":"2","crosshairStyle":"2","crosshairImage":"http://pixelartmaker.com/art/fc457db27078b63.png","crosshairAlways
View GodModeCode.md

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}
View verified-key.txt
-----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
@scitronboy
scitronboy / spambot.py
Created May 7, 2019
A simple discord bot that generates spam (strings of random characters) when a user types `$spamhere`.
View spambot.py
# 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
View final-game.html
<!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>
View if-game-over-in-update-func.js
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
}
View generate-new-dot-in-update-func.js
// 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:
View final-key_pressed-function.js
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
}
You can’t perform that action at this time.