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 gfx <const> = playdate.graphics | |
local W <const> = playdate.display.getWidth() | |
local H <const> = playdate.display.getHeight() | |
local BAND_HEIGHT <const> = 6 --band size | |
function playdate.update() | |
for band=0,8 do --create gradient using multiple bands | |
gfx.setDitherPattern(1-1/(band+1), gfx.image.kDitherTypeBayer8x8) --dither amount |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml xmlns:frss="https://freshrss.org/opml" version="2.0"> | |
<head> | |
<title>FreshRSS</title> | |
<dateCreated>Thu, 29 Jun 2023 21:15:11 +0100</dateCreated> | |
</head> | |
<body> | |
<outline text="Computers"> | |
<outline text="32by32" type="rss" xmlUrl="https://32by32.com/feed/" htmlUrl="https://32by32.com/" description="Macintosh History from the 1980s"/> | |
<outline text="Accidentally in Code" type="rss" xmlUrl="https://cate.blog/feed/" htmlUrl="https://cate.blog" description="Engineering an Interesting Life"/> |
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
{ | |
"info": { | |
"_postman_id": "356eda77-071b-42db-97f1-53f297f4cf4d", | |
"name": "Linkding", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "26329767" | |
}, | |
"item": [ | |
{ | |
"name": "AUTH", |
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
#!/usr/bin/env bash | |
echo "url('data:$(file -bN --mime-type "$1");base64,$(base64 < "$1")')" |
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
div#polyglot__panel { | |
transform: scale(1) !important; | |
} |
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
#!/usr/bin/env bash | |
# requirements: blueutil | |
echo "Hold both 1+2 buttons on Wii Remote and wait for 30 seconds" | |
# get MAC Address of Wii Remote | |
MAC=`$(which blueutil) --inquiry 5 2>&1 | grep 'address' | awk '{print substr($2,1,17)}'` | |
(killall -m 'blueutil*' 2>&1) >/dev/null | |
echo "MAC: $MAC" |
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
#!/usr/bin/env zsh | |
# requirements: hidapitester, sendkeys | |
doPress() { | |
cur+="$1" | |
sendkeys send --delay 0 --initial-delay 0 -c "$1" # faster than osascript | |
} | |
hidapitester --vidpid 054C/00C4 -l 4 --open --read-input-forever --quiet \ |
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
var g=null,i,j=this;function aa(){} | |
function k(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; | |
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function l(a){return k(a)=="array"}function m(a){var b=k(a);return b=="array"||b=="object"&&typeof a.length=="number"}function n(a){return typeof a=="string"}function ba(a){a=k(a);return a=="object"||a=="array"||a=="function"}Math.floor(Math.random()*2147483648).toString(36);function ca(a){return a.call.apply(a.bind,arguments)} | |
function da(a,b){if(!a)throw Error();if(ar |
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
#!/usr/bin/env zsh | |
# repack Becker Cascade Traffic Pro navigation filesystem | |
# requires: 7zip | |
echo "merging RAW files into source ISO" | |
rm -rf NEW | |
mkdir NEW | |
cat TRACK01.RAW TRACK02.RAW > NEW/RAW.ISO |
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
FILE=`basename "$@" .gif` | |
PARENT=`dirname "$@"` | |
/usr/local/bin/gifsicle -O1 -Okeep-empty --careful --scale 2 "$@" > "$PARENT/$FILE.opt.gif" |