Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<math.h> | |
| #include<string.h> | |
| #include<time.h> | |
| #define B 8 | |
| #define E 32 | |
| #define H 64 | |
| #define V 27 |
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| #!/bin/bash | |
| # Claude Code Multi-Account Switcher | |
| # Usage: ./claude-switch-multi.sh [account1|account2|account3|save-current|list|status] | |
| CLAUDE_DIR="$HOME/.claude" |
| // ==UserScript== | |
| // @name GitHub: remove `?tab=readme-ov-file` from URL | |
| // @description GitHub: remove `?tab=readme-ov-file` from URL | |
| // @namespace https://gist.github.com/vogler | |
| // @downloadURL https://gist.github.com/vogler/74edff6de37c3a13eeff8c99c6bed910/raw/clean-url-readme-tab.github.com.tamper.js | |
| // @version 0.1 | |
| // @author Ralf Vogler | |
| // @match https://github.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant none |
| import React from "react"; | |
| import { | |
| Canvas, | |
| Skia, | |
| Shader, | |
| Fill, | |
| vec, | |
| useTouchHandler, | |
| useValue, | |
| useComputedValue, |
If you are using this already, consider changes soon due the discussion around current ESX proposal.
Feel free to keep an eye on udomsay as that will be the implementation reference for consumers.
| /* | |
| Made by Elly Loel - https://ellyloel.com/ | |
| With inspiration from: | |
| - Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
| - Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
| - Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
| Notes: | |
| - `:where()` is used to lower specificity for easy overriding. | |
| */ |
These work in Firefox and Chrome, where %s is replaced with the search query. For Raycast and Alfred, the %s should be replaced with {query}. For more details also see my blogpost.
I recommend picking keywords that are easy to memorize, like am=Amazon, an=Anaconda, gi=Github,... and switching to three letters when the two letter abbreviation appears to commonly in a sentence (eg goi=Google images, gom=Google Maps).
| //Showing random wikimedia-commons-featured-picture | |
| const url = `https://randomincategory.toolforge.org/Featured_pictures_on_Wikimedia_Commons?server=commons.wikimedia.org&type=file&debug=1` | |
| const req = new Request(url) | |
| const res = await req.loadString() | |
| let titleRegExp = new RegExp("Location: https://commons.wikimedia.org/wiki/(.*)") | |
| let titleMatch = res.match(titleRegExp) | |
| let title = titleMatch[1].replace("<br>", ""); | |
| let titleEncoded = encodeURI(title) | |
| let url2 = `https://commons.wikimedia.org/w/api.php?action=query&titles=${titleEncoded}&prop=pageimages&format=json&pithumbsize=500` | |
| const req2 = new Request(url2) |