I have a bunch of folks I want to export from Apple Contacts on MacOS and turn into a spreadsheet for a holiday card mail merge.
This is my clumsy way of doing it.
| public class KeyCodes { | |
| // Layout-independent Keys | |
| // eg.These key codes are always the same key on all layouts. | |
| public const ushort ReturnKey = 0x24; | |
| public const ushort Enter = 0x4C; | |
| public const ushort Tab = 0x30; | |
| public const ushort Space = 0x31; | |
| public const ushort Delete = 0x33; | |
| public const ushort Escape = 0x35; |
| const checkBodyType = (body) => { | |
| if(Array.isArray(body)) return 0; | |
| else if(typeof body == "object") return 1; | |
| else throw new Error("Unknown type of the body"); | |
| } | |
| const definePropertySettings = { configurable: true, enumerable: true, writable: true } | |
| const deleteEmptyValues = (currentBody) => { | |
| if(typeof currentBody === "string") currentBody = JSON.parse(currentBody); |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io/ioutil" | |
| "net" | |
| "net/http" | |
| ) |
I have a bunch of folks I want to export from Apple Contacts on MacOS and turn into a spreadsheet for a holiday card mail merge.
This is my clumsy way of doing it.
Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.
Once you have a remote set up for one of your upstreams, run these commands with:
git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]
Once set up, git remote -v should show two (push) URLs and one (fetch) URL. Something like this: