Skip to content

Instantly share code, notes, and snippets.

View jlgib's full-sized avatar
🐢

Jeff Gibson jlgib

🐢
  • Mindy
  • San Francisco, CA
View GitHub Profile
@keirongulrajani
keirongulrajani / parseNftDataToCanvas.worker.js
Created March 5, 2021 14:11
Web workers to encode/decode MurAll NFT data to/from HTML5 Canvas
const { leftPad, numberToHex } = require('web3-utils')
const decoder = new TextDecoder()
const numberPerGroup = 32
const maxIndexWithinGroup = 31
const numberPerIndexGroup = 16
const numberPerIndividualPixelGroup = 8
const emptyHex8 = '00000000'
const emptyHex4 = '0000'
@nf3
nf3 / .bashrc
Created August 28, 2016 21:49
ssh-agent .bashrc script
# Note: not sure who wrote this, but thank you
# Note: ~/.ssh/environment should not be used, as it
# already has a different purpose in SSH.
env=~/.ssh/agent.env
# Note: Don't bother checking SSH_AGENT_PID. It's not used
# by SSH itself, and it might even be incorrect
# (for example, when using agent-forwarding over SSH).
@sedm0784
sedm0784 / CapsLockCtrlEscape.ahk
Last active May 10, 2024 23:10
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
}
@ibeex
ibeex / foo.log
Created August 4, 2012 13:46
Flask logging example
A warning occurred (42 apples)
An error occurred