Skip to content

Instantly share code, notes, and snippets.

View JRiggles's full-sized avatar
🪴

John Riggles / sudo whoami JRiggles

🪴
View GitHub Profile
@bmaupin
bmaupin / free-database-hosting.md
Last active July 9, 2026 16:44
Free database hosting
@m10x
m10x / globalhotkeys.py
Last active January 31, 2025 19:39 — forked from mdavey/globalhotkeys.py
Global hot keys in Python for Win32, fixed range and missing brackets, implemented that you can now reassign a key without error, works now perfectly with Python 3.X. Added method to unregister. Accomplished PEP 8 compliance.
from ctypes import windll
from ctypes import byref as ctypes_byref
from ctypes.wintypes import MSG as wintypes_MSG
import win32con
class GlobalHotKeys(object):
key_mapping = []
user32 = windll.user32
@eplawless
eplawless / djb2.js
Last active February 13, 2026 17:37
function hash(str) {
var len = str.length;
var hash = 5381;
for (var idx = 0; idx < len; ++idx) {
hash = 33 * hash + str.charCodeAt(idx);
}
return hash;
}
@somebox
somebox / gh-like.css
Created July 14, 2011 14:55
github markdown css+script with syntax highlighting. Works with http://markedapp.com
/*
Some simple Github-like styles, with syntax highlighting CSS via Pygments.
*/
body{
font-family: helvetica, arial, freesans, clean, sans-serif;
color: #333;
background-color: #fff;
border: none;
line-height: 1.5;
margin: 2em 3em;