This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BLOG_DIR="src/content/blog" | |
# Loop through each .md file in the directory | |
for file in "$BLOG_DIR"/*.md; do | |
# Extract the filename without the directory path | |
filename=$(basename "$file") | |
# Extract the date portion from the filename (yyyy-mm-dd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function switchToDevice(deviceUid, alertIcon, alertMessage) | |
local device = hs.fnutils.find(hs.audiodevice.allOutputDevices(), function(_device) | |
return string.match(_device:uid(), deviceUid) | |
end) | |
if not device then | |
hs.alert.show(alertIcon .. " " .. deviceUid .. " not found") | |
return | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
030000005e0400008e02000014010000,Microsoft X-Box 360 pad,platform:Linux,a:b1,b:b0,x:b3,y:b2,back:b8,start:b9,-leftx:h0.8,+leftx:h0.2,-lefty:h0.1,+lefty:h0.4,lefttrigger:b4,righttrigger:b5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export POCKETCHIP=true | |
function setPocketchip { | |
DISPLAY=:0 XAUTHORITY=${HOME}/.Xauthority xmodmap ${HOME}/.Xmodmap 2> /dev/null | |
STATUS="$?" | |
if [ "$STATUS" != "0" ] ; then | |
while [ "$STATUS" != "0" ] ; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Example Menu in .jwmrc config--> | |
<!-- ... --> | |
<Menu label="GBA Games" icon="gba.png"> | |
<Include>exec:$HOME/.scripts/gen_menu_items.sh gba vba</Include> | |
</Menu> | |
<Menu label="NES Games" icon="nes.png"> | |
<Include>exec:$HOME/.scripts/gen_menu_items.sh nes nestopia</Include> | |
</Menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("mail.google.com") { | |
/* Last updated March 29, 2019 | |
* Show tasks for Nicholas | |
* Tell people to turn off chat and use icon actions | |
* Search for TODO | |
*/ | |
/* ================================================== */ | |
/* APP BAR (menu and account switcher + container for search) */ | |
/* Hide Gmail logo and name */ | |
html a[title="Gmail"] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _init() | |
_upd=upd_title | |
_drw=drw_title | |
end | |
function _update() | |
_upd() | |
end | |
function _draw() | |
_drw() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
--init | |
_t=0 | |
dirx={-1,1,0,0,1,1,-1,-1} | |
diry={0,0,-1,1,-1,1,1,-1} | |
tiles={16,8,15,7,12,4,11,3,14,6,13,5,10,2,9,0} | |
function _init() | |
_upd=upd_game |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
--init | |
function _init() | |
-- hold debug messages | |
debug={} | |
particles={} | |
p_colors = {5,6,7,10,9,5} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
function _init() | |
_t=0 | |
sprites={1,2,3,4} | |
end | |
function _update() | |
_t+=1 |
NewerOlder