Skip to content

Instantly share code, notes, and snippets.

@dotcomboom
dotcomboom / Image Tag Generator.py
Last active Jul 25, 2018
Generate IMG tags for every file in a folder
View Image Tag Generator.py
import os
for filename in os.listdir(input('Path: ')):
print('<img src="' + filename + '" />')
@dotcomboom
dotcomboom / redirect_date.js
Last active Jul 28, 2018
Redirect to another URL based on the current date
View redirect_date.js
/* 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
The entire Bee Movie script in Newspeak courtesy of @mat1
View beespeak.txt
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 Aug 27, 2019
Background Worker
View Form1.vb
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 Sep 14, 2019
Roam source code from June 11, 2018
View Roam.lua
-- roam
-- by dotcomboom
-- init functions
function clear()
for i=1, 30 do
print()
end
end
@dotcomboom
dotcomboom / gnu.txt
Created Oct 3, 2019
woke computer kid national anthem
View gnu.txt
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
@dotcomboom
dotcomboom / Old Pets.js
Last active Mar 10, 2020
Neopets userscript, very early version probably. Tested with https://github.com/janekptacijarabaci/greasemonkey/releases/tag/3.31.4Fork on Pale Moon.
View Old Pets.js
// ==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.
View contacts.txt
dotcomboom@somnolescent.net
dotcomboom#1395
https://dotcomboom.somnolescent.net
View recovered-ascii-art.txt
/\/\____
| .. \
| \/__ /\
\ / \ / \
U U
~dcb
View wow.py
import simplegui
c1x = 0
c2x = 0
p1x = 0
p2x = 0
p3x = 0
def draw_handler(canvas):
global c1x, c2x, p1x, p2x, p3x