In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py)
Save and open the script in your editor of choice.
| const express = require('express') | |
| const app = express() | |
| const crypto = require('crypto') | |
| const secretKey = '<your secret key>' | |
| const bodyParser = require('body-parser') | |
| app.use('/webhooks', bodyParser.raw({ type: 'application/json' })) | |
| app.use(bodyParser.json()) | |
| app.post('/webhooks/orders/create', async (req, res) => { |
This note illustrates how to adjust resolution using keyboard shorcut using built-in app automator.
After setting up, I can use two actions:
I'm new to apple script, so the rule is very simple.
| /** | |
| * Event loop. | |
| * | |
| * Read details here: | |
| * http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/#job | |
| * | |
| * by Dmitry Soshnikov <dmitry.soshnikov@gmail.com> | |
| */ | |
| /** |
| Per https://code.google.com/p/v8/codesearch#v8/trunk/src/runtime.cc | |
| %CreateSymbol | |
| %CreatePrivateSymbol | |
| %CreateGlobalPrivateSymbol | |
| %NewSymbolWrapper | |
| %SymbolDescription | |
| %SymbolRegistry | |
| %SymbolIsPrivate |