See also my tech blog.
This file contains hidden or 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
/** | |
* - Run `npm run dev` in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run `npm run deploy` to publish your worker | |
* | |
* Bind resources to your worker in `wrangler.toml`. After adding bindings, a type definition for the | |
* `Env` object can be regenerated with `npm run cf-typegen`. | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
This file contains hidden or 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
import { z } from 'zod'; | |
// System for creating dynamically accessible environment variables | |
// from a schema. | |
// Schema for the environment variables. | |
// `type` specifies the type of the environment variable. | |
// `fallback` is the fallback value if the environment variable is not set. | |
type EnvSchema<T extends string> = Record< | |
T, |
This file contains hidden or 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
.mailboxContainer { | |
position: relative; | |
background-color: #111111; /* Changed to black background */ | |
color: #ffffff; /* Changed to white foreground */ | |
z-index: 1; | |
width: 100vw; | |
min-height: 100vh; | |
display: flex; | |
justify-content: center; |
This file contains hidden or 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
#OSX Tweaks: | |
=========== | |
- Most need reboot to show changes | |
- Most of these tweaks are just for speed, but some are specific for development | |
- All of these are to be ran in terminal. The commands to be copy and pasted start after the less-than sign. | |
- I'm not responsible for any adverse effects to your computer, at all. | |
##Increase the speed of OS X dialogs boxes: |
This file contains hidden or 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 nio = require("nio") | |
local M = {} | |
local timeout_ms = 10000 | |
local service_lookup = {} | |
local streaming_mode = false | |
local cancel_streaming = false | |
local function get_api_key(name) | |
return os.getenv(name) |
This file contains hidden or 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
Verifying my account on nostr My Public Key: "npub1r5z784psvm4a7haegtfjqkdgc5gnctjehd93ld46smfuyugzmx6q3esmvg" |
This file contains hidden or 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
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left) | |
// https://gist.github.com/JamieMason/7580315 | |
// | |
// 1. Go to https://twitter.com/YOUR_USER_NAME/following | |
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac) | |
// 3. Paste this into the Developer Console and run it | |
// | |
// Last Updated: 09 April 2020 | |
(() => { | |
const $followButtons = '[data-testid$="-unfollow"]'; |
Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct
This file contains hidden or 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
;; You can use this function to export your current .org file as a .md file | |
;; The function requires Pandoc to be installed, so make sure you've got it! | |
;; Why use this instead of org's built in markdown exporter? | |
;; If you're a fan of both org mode and NextJournal's Clerk, you can use this to | |
;; effectively have Clerk render your .org files as you write them. | |
;; The built-in markdown exporter does not correctly annotate code blocks | |
;; with ```clojure \n ... \n```, which prevents Clerk from seeing and evaluating |
NewerOlder