Skip to content

Instantly share code, notes, and snippets.

View dotcomboom's full-sized avatar
:shipit:
at university of minnesota

dcb dotcomboom

:shipit:
at university of minnesota
View GitHub Profile
@dotcomboom
dotcomboom / aaaahhhhh.py
Created April 4, 2021 05:47
A script for extracting links from my daily notes
import marko
import os
import urllib.parse
from dateparser import parse
from bs4 import BeautifulSoup
from datetime import time
import requests
cupboard = "Daily"
epichtml = "<h1>HELLOOOOOO</h1>"
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Pocowrite" Height="176" Width="435">
<Grid Background="#40444b">
<InkCanvas Margin="12,12,12,38" Name="InkCanvas1" Background="#36393f" MinHeight="1" MinWidth="1" />
<Button Content="Copy" HorizontalAlignment="Left" Margin="12,0,0,12" Name="CopyBtn" Width="75" Height="23" VerticalAlignment="Bottom" />
<Button Content="Clear" HorizontalAlignment="Right" Margin="0,0,12,12" Name="ClearBtn" Width="75" Background="#FFDDDDDD" Height="23" VerticalAlignment="Bottom" />
</Grid>
</Window>
@dotcomboom
dotcomboom / MoodleCurrent.user.js
Last active September 29, 2020 00:23
Moodle: Jump to Current Section
// ==UserScript==
// @name Moodle: Jump to Current Section
// @version 0.1
// @description Userscript for Moodle sites that lets you quickly jump to the current week/section. Made for the Boost and Fordson themes.
// @author dotcomboom
// @match *://*/course/view.php?id=*
// @grant none
// ==/UserScript==
(function() {
@dotcomboom
dotcomboom / Donkey Konga 2 Chart.RTrackTemplate
Last active October 18, 2022 04:04
Donkey Konga 2 Modding Guide
<TRACK
NAME Chart
PEAKCOL 32559202
BEAT -1
AUTOMODE 0
VOLPAN 0.4316101837015 0 -1 -1 1
MUTESOLO 0 0 0
IPHASE 0
PLAYOFFS 0 1
ISBUS 1 1
@dotcomboom
dotcomboom / 99-bottles.e
Last active August 19, 2020 22:04
99 Bottles of Beer on the Wall (E sample program)
Checkpoint Start.
<-- Defines a checkpoint named Start. You can go back to it with Goto, as seen on line 13. Also, every operation ends with a period.
Set Drink to "Dr. Pepper".
Set Bottles to 0.
<-- This sets the variable Bottles. Variables store values.
<-- Similarly to other languages, quotes around text makes them a string (string of characters, or text)
Add 99 to Bottles.
<-- Add 99 bottles. (Shown here as an example. You could just Set Bottles to 99.)
@dotcomboom
dotcomboom / ccso.py
Last active July 27, 2020 19:14
CCSO/Ph Server in Python 3
## Read-only CCSO server for Python 3.7+ by dotcomboom for somnol
## Originally worked on ~5/29/2019, finished 7/6/2020
## What is implemented:
## - "status" command
## - "fields" command
## - Title-cases fields for the frontend's description
## - query command
## - reload when any command passed has "reload" in it (with cooldown)
## - reading entries from json
import simplegui
c1x = 0
c2x = 0
p1x = 0
p2x = 0
p3x = 0
def draw_handler(canvas):
global c1x, c2x, p1x, p2x, p3x
@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)
@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.