- remap keyboard keys natively –> https://stackoverflow.com/a/46460200/10234605
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Place in ~/Library/LaunchAgents/ --> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.akhilome.CapslockLShift</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/hidutil</string> |
This gist would offer a step-by-step guide of some sort for quickly setting
up a "serverless" API using expressjs, and Vercel's Now platform for local
development with now dev
and eventual prod deployment now --prod
If you haven't already, install now's cli tool globally on your development environment:
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
{ | |
"version": 2, | |
"routes": [ | |
{ | |
"src": "/v1/logs/(.*)", | |
"dest": "src/routes/logger.route.ts?slug=$1", | |
"methods": ["OPTIONS", "POST", "PUT"] | |
}, | |
{ | |
"src": "/(?<slug>[^/]*)/?", |
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
// ABC...Z | |
const alphaUpper = Array(26) | |
.fill('') | |
.map((_, i) => String.fromCharCode(65 + i)) | |
.join(''); | |
// abc...z | |
const alphaUpper = Array(26) | |
.fill('') | |
.map((_, i) => String.fromCharCode(65 + i)) |
OlderNewer