You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
💭
🧙♂️
Jamie Birch
shirakaba
💭
🧙♂️
NativeScript TSC; Cross-platform tinkerer trying to improve upon React Native.
How to configure Vite from svelte.config.js in SvelteKit projects
SvelteKit
In SvelteKit projects, SvelteKit wraps around Vite.
This example is for configuring path aliases, but you get the idea. There's a kit.vite property in svelte.config.js, and you'd configure vite through there.
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
Swapping between Amazon Japan and Amazon UK on your Kindle
This guide is aimed at people outside of Japan (I use UK for the sake of discussion) trying to learn Japanese by reading Kindle books, or vice versa. This approach may well work for other Amazon regions, though it should be noted that to my understanding, Amazon Japan is a special case amongst the regions (I believe it's a separate business entity from typical Amazon regions in ways that the other regions aren't) and therefore may work somewhat differently.
How to switch Kindle between Amazon accounts
Once your Kindle is registered to your Amazon UK account, you must deregister that account before registering the Amazon Japan account.
Any time you switch accounts, your downloaded library will be cleared. By that, I mean that your downloads will be deleted from disk – but you are still entitled to redownload whichever purchases are associated with your currently-registered account. Rest assured that any manually-added files (PDFs that you've added via file transfer, for example) will not be cleared w
GUI-based debugging of iOS/macOS Rust projects in Xcode
Here's how to get your environment set up to:
Develop iOS and Android apps using Rust.
Enable GUI debugging of Rust projects in Xcode.
If you just want to enable GUI debugging of macOS Rust projects in Xcode, I'm not actually sure whether you need cargo-mobile at all. But one benefit of installing it is that it automatically installs rust-xcode-plugin for you, giving you syntax highlighting of Rust sources in Xcode.
TypeScript guard function for type-checking records by index signatures
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
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
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
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