Skip to content

Instantly share code, notes, and snippets.

View kalj's full-sized avatar

Karl Ljungkvist kalj

View GitHub Profile
@fakhrullah
fakhrullah / css
Created August 18, 2016 20:56
Distraction Free Youtube - stylish css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.youtube.com") {
/** =============================================================================================
* I love Youtube. I watch lot of videos there.
*
* Once upon a time, I want to search for latest song in Youtube.
* I enter Youtube, then I lost.
* There are too many exciting videos. I watch the recommended videos, just one video.
@Stemer114
Stemer114 / nut_trap.scad
Last active February 1, 2023 22:07
openscad nut trap module
//nut trap
//default values are for M3 nut
//if you use this module as a nut trap cutout, you need to add +de (ie 0.1mm or similiar) to height
//in order to get non-manifold cutouts
module nut_trap (
w = 5.5,
h = 3
)
{
cylinder(r = w / 2 / cos(180 / 6) + 0.05, h=h, $fn=6);
@sedm0784
sedm0784 / CapsLockCtrlEscape.ahk
Last active April 11, 2025 12:38
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}