Skip to content

Instantly share code, notes, and snippets.

View joedf's full-sized avatar
🦝
Studying geology, materials, and hacking computers

Joe DF joedf

🦝
Studying geology, materials, and hacking computers
View GitHub Profile
@joedf
joedf / DarkMonokai.qss
Created July 10, 2016 15:25 — forked from Zren/DarkMonokai.qss
Dark Monokai - Quassel Theme (qss)
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**

Keybase proof

I hereby claim:

  • I am joedf on github.
  • I am joedf (https://keybase.io/joedf) on keybase.
  • I have a public key whose fingerprint is 2A59 37EE B92E 3F0C D736 0445 DA71 F180 C393 5E9D

To claim this, I am signing this object:

@joedf
joedf / ahkrules_v1.04.txt
Last active October 27, 2017 04:58
[WIP] AHK Forum rules
AutoHotkey Community Rules
Version [INSERT VERSION], [INSERT DATE]
General Policy and Clauses
----------------------------------------------
A. FORUM TOS: https://autohotkey.com/boards/viewtopic.php?f=2&t=29155
NOTE: "This list is non-exhaustive - the Moderating team reserves the right to close any thread that they feel is contrary to the ethos of the forum."
B. The Moderation team will do their best to act in a fair and reasonable manner. Sanctions will only be applied as a last resort and any action taken will be explained in the relevant thread.
C. If moderation action is taken, you will need to acknowledge this through a dialog or you will be unable to post further in the forum. Please note that this dialog is not an agreement that the warning was justified - it is only there so that members are aware that moderation action has been taken and that they may have certain restrictions applied to their account.
D. If you feel that you have been unfairly moderated then contact the Moderator concerned or an ad
@joedf
joedf / ahkrules_v1.05.txt
Last active October 27, 2017 21:09 — forked from nnnik/ahkrules_v1.04.txt
[WIP] AHK Forum rules
AutoHotkey Community Rules
Version [INSERT VERSION], [INSERT DATE]
General Policy and Clauses
----------------------------------------------
A. FORUM TOS: https://autohotkey.com/boards/viewtopic.php?f=2&t=29155
B. NOTE: "This list is non-exhaustive - the Moderating team reserves the right to close any thread that they feel is contrary to the ethos of the forum."
C. The Moderation team will do their best to act in a fair and reasonable manner. Sanctions will only be applied as a last resort and any action taken will be explained in the relevant thread.
D. If moderation action is taken, you will need to acknowledge this through a dialog or you will be unable to post further in the forum. Please note that this dialog is not an agreement that the warning was justified - it is only there so that members are aware that moderation action has been taken and that they may have certain restrictions applied to their account.
E. If you feel that you have been unfairly moderated then contact the Moderator concerned or an
@joedf
joedf / ahkrules_v1.10.txt
Last active January 14, 2023 16:40 — forked from Masonjar13/ahkrules_v1.05.txt
[WIP] AHK Forum rules
AutoHotkey Community Rules
Version v1.10, January 14th, 2023
General Policy and Clauses
----------------------------------------------
A. FORUM TOS: https://autohotkey.com/boards/viewtopic.php?f=2&t=29155
B. NOTE: "This list is non-exhaustive - the Moderating team reserves the right to close any thread that they feel is contrary to the ethos of the forum."
C. The Moderation team will do their best to act in a fair and reasonable manner. Sanctions will only be applied as a last resort and any action taken will be explained in the relevant thread.
D. If moderation action is taken, you will need to acknowledge this through a dialog or you will be unable to post further in the forum. Please note that this dialog is not an agreement that the warning was justified - it is only there so that members are aware that moderation action has been taken and that they may have certain restrictions applied to their account.
E. If you feel that you have been unfairly moderated then contact the Moderator concerned or
@joedf
joedf / videocapture.js
Last active April 14, 2018 20:32
generate an image from an HTML5 video element, useful for on-the-go thumbnails
// videocapture.js - MIT License
// credits: joedf (2018/04/10)
// Revision 8 - 2018/04/12
// modified from: https://codepen.io/renanpupin/pen/PqjyeK (Renan Pupin)
/**
* Captures a image frame from the provided video element.
*
* @param {Video} video HTML5 video element from where the image frame will be captured.
* @param {Number} scaleFactor Factor to scale the canvas element that will be return. This is an optional parameter.
@joedf
joedf / Speech Recognition.ahk
Created February 22, 2019 15:47 — forked from Uberi/Speech Recognition.ahk
Speech recognition with Microsoft's SAPI. A simple SpeechRecognizer class provides a quick and easy way to use speech recognition in your scripts. Inspired by some [prototype code](http://www.autohotkey.com/board/topic/24490-voice-recognition-com/) made a long time ago.
#NoEnv
#Warn All
#Warn LocalSameAsGlobal, Off
#Persistent
/*
Speech Recognition
==================
A class providing access to Microsoft's SAPI. Requires the SAPI SDK.
@joedf
joedf / specialTitleCase.py
Last active February 18, 2020 22:28
Returns title case avoiding title() 's double captilization of words with hyphens and apotrophes
def specialTitleCase(words):
# written by joedf (Feb. 2020), loosely inspired from https://github.com/gouch/to-title-case
# 1. assumes a list of short words to change to lower case
# 2. assumes short words are preceded by ' ' (or brackets), so that any "starting" ones are still capitalized.
# handle words within brackets
sWords = re.sub(r'[\(\[]',(lambda x:x.group(0)+' '),words)
# Avoid issue of title() capitalizing "2-part" tokens joined by a hyphen on an apostrophe.
# Also allows for "intentional" captilizations
/* r41nb0w b4rf */
.rainbow {
background: linear-gradient(30deg, red, purple, blue, lime, hotpink, cyan);
padding: 2px;
}
.rainbow {
animation: hue-rotate-fast 2s linear infinite;
box-shadow: 0 0 50px 5px cyan;
}
@keyframes hue-rotate-fast {
import os
import subprocess
import datetime
def file2str(path):
with open(path, 'r') as file:
return file.read().strip()
def update_badge_html():
command = 'python3 /home/path/to/github-badge-2/src/generate_badge.py'