Skip to content

Instantly share code, notes, and snippets.

View dotcomboom's full-sized avatar

dcb dotcomboom

View GitHub Profile
@dotcomboom
dotcomboom / Image Tag Generator.py
Last active July 25, 2018 23:03
Generate IMG tags for every file in a folder
import os
for filename in os.listdir(input('Path: ')):
print('<img src="' + filename + '" />')
@dotcomboom
dotcomboom / redirect_date.js
Last active July 28, 2018 02:54
Redirect to another URL based on the current date
/* configuration */
var redirectDays = [
['7/27/2018', 'https://dotcomboom.neocities.org'],
['7/28', 'https://coolandgood.neocities.org']
]; /* mm/dd/yyyy or mm/dd format */
var milliseconds = 2000;
/* sleep function from https://www.sitepoint.com/delay-sleep-pause-wait/ */
function sleep(milliseconds) {
var start = new Date().getTime();
@dotcomboom
dotcomboom / beespeak.txt
Last active May 24, 2019 01:44
The entire Bee Movie script in Newspeak courtesy of @mat1
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 ground the bee of course flies anyway because bees dont care what humans think is impossible yellow black yellow black yellow black yellow black ooh black and yellow lets shake it up a little barry breakfast is ready ooming hang on a second hello barry adam oan you believe this is happening i cant ill pick you up looking sharp use stairs your father paid good money for those sorry im excited heres graduate were plusproud of you son a perfect report card all bs plusproud ma i got a thing going here you got lint on your fuzz ow thats me wave to us well be in row 118000 bye barry i told you stop flying in house hey adam hey barry is that fuzz gel a little special day graduation never thought id make it 3 days grade school 3 days high school those were awkward three days college im glad i took a day and hitchhiked around hive you did come back different hi barry artie growing
@dotcomboom
dotcomboom / Form1.vb
Created August 27, 2019 23:30
Background Worker
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
BackgroundWorker1.RunWorkerAsync()
Button1.Enabled = False
Button2.Enabled = True
End Sub
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim i = 0
@dotcomboom
dotcomboom / Roam.lua
Created September 14, 2019 02:45
Roam source code from June 11, 2018
-- roam
-- by dotcomboom
-- init functions
function clear()
for i=1, 30 do
print()
end
end
@dotcomboom
dotcomboom / gnu.txt
Created October 3, 2019 03:15
woke computer kid national anthem
I'd fair-and-square corresponding to interject for a moment. What you're refering to every bit Linux, is fashionable fact, GNU/Linux, or every bit I've recently appropriated to vocation it, wildebeest advantageous Linux. Linux is not associate in nursing in operation organization unto itself, merely preferably additional self-governing constituent of a to the full functioning wildebeest organization successful multipurpose aside the wildebeest corelibs, carapace utilities and life-sustaining organization components comprehension a weighed down operating system every bit circumscribed aside POSIX.
Many information processing system users black market a restricted interlingual rendition of the wildebeest organization every day, without realizing it. through and through a particular change by reversal of events, the interlingual rendition of wildebeest which is widely secondhand nowadays is a great deal known as Linux, and numerous of its users are not knowledgeable that it is fundamentally the wildebeest syste
/\/\____
| .. \
| \/__ /\
\ / \ / \
U U
~dcb
@dotcomboom
dotcomboom / contacts.txt
Last active March 15, 2020 02:26
Contacts
[email protected]
dotcomboom#1395
https://dotcomboom.somnolescent.net
@dotcomboom
dotcomboom / Old Pets.js
Last active March 10, 2020 03:44
Neopets userscript, very early version probably. Tested with https://github.com/janekptacijarabaci/greasemonkey/releases/tag/3.31.4Fork on Pale Moon.
// ==UserScript==
// @name Old Pets (Sidebar/lookups, config needed)
// @namespace neopets.com
// @include http://www.neopets.com/*
// @version 1
// @grant none
// ==/UserScript==
// Here's the manual bit, in case you want the right color to show up instead of just yellow. Add an entry for each pet name.
// Keep it lowercase for the sake of convenience.
@dotcomboom
dotcomboom / weather-rpc.py
Last active September 24, 2022 20:02
Weather rich presence for Discord that uses wttr.in's public api (Weatherbit.io version is in revisions, or check forks)
from pypresence import Presence
import requests
import json
import time
client_id = 704435320808276108
city = 'Minneapolis, MN'
url = 'https://wttr.in/{}?format=j1'.format(city)