This is about;
- How i draw them
- How i scale them
- How do i make a history timelapse video
- How do i convert between file formats
The most tricky thing is to scale pixel art without losing the blockiness with
import { DependencyList, useCallback } from 'react'; | |
import { throttle } from 'lodash'; | |
export function useThrottledCallback<A extends Array<unknown>, R extends unknown>( | |
callback: ((...args: A) => R) | undefined, | |
wait: number, | |
extraDeps: DependencyList = [], | |
): (...args: A) => R | undefined { | |
return useCallback( |
#!/usr/bin/env | |
mkdir -p ~/patched-fonts/in | |
mkdir -p ~/patched-fonts/out | |
echo "Download SF mono Download https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg" | |
echo "Install it" | |
echo "Open FontBook and copy all SF Mono fonts to ~/patched-fonts/in" | |
read -p "Press enter to continue when you are done" |
(cd chia-blockchain/ && . ./activate && chia farm summary && chia show -s && chia wallet show) | grep -E 'Block rewards:|Sync status:|Total chia farmed:|Expected time to win:|Plot count:|Estimated network space:|Farming status:' |
# Install Dependency: apt-get install jq | |
$PLEX_USERNAME="[email protected]" | |
$PLEX_PASSWORD="yourpassword" | |
$LIBRARY_TITLE="Movies" #TV, Music, etc | |
PLEX_TOKEN=`curl -s -X POST \ | |
-H "X-Plex-Client-Identifier: jenkins" \ | |
-H "X-Plex-Product: jenkins" \ | |
-H "X-Plex-Version: 1.0.0" \ |
on run {input, parameters} | |
repeat 300 times | |
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
click at {300, 100} -- {from left, from top} | |
end tell |
# Solves these issues; | |
# * Wireles headphone pairing takes forever | |
# * Wireles headphone is paired but keeps disconnecting | |
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0 | |
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 1 |
var netscape = require('netscape-bookmarks'); | |
var fs = require('fs'); | |
var bookmarksList = fs.readFileSync('readinglistlinksfromsafari.txt').toString().split("\n"); | |
var bookmarksObj = bookmarksList.reduce((acc, url) => { | |
var title = url; | |
acc[title] = url; | |
return acc; | |
}, {}); |
I hereby claim:
To claim this, I am signing this object:
func someFunction() { | |
// drops last call because it's the current function call | |
if let sym = NSThread.callStackSymbols().dropFirst().first { | |
print(sym) | |
} | |
} |