This document is generated by AI, and there may be issues with the specific details.
- Version: 1.0
- Date: 2025-01-XX
- Purpose: Public technical specification for format conversion
- Target Platform: ESP32 E-Paper Display Devices
| { | |
| "vim.showMarksInGutter": false, | |
| "vim.foldfix": true, | |
| "vim.surround": true, | |
| "vim.easymotion": true, | |
| "vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj", | |
| "vim.leader": "<space>", | |
| "vim.normalModeKeyBindingsNonRecursive": [ | |
| { | |
| "before": [":", "w", "<CR>"], |
I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.
Today, I want to reply to a blog post that almost perfectly summarised my current practice.
Go read it; I'll wait!
| let | |
| # Playdate distributes their SDK as precompiled x86_64 binaries | |
| # currently so we have to import cross-compiled packages for it | |
| # if we're not on an x86_64 system. | |
| pkgsIntel = import <nixpkgs> { | |
| crossSystem = { | |
| config = "x86_64-unknown-linux-gnu"; | |
| }; | |
| }; | |
| in |
| ### | |
| ### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
| ###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
| ###. things to watch out for: | |
| ### - Check out the `nix-darwin` instructions, as they have changed. | |
| ### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
| ### | |
| # I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
| # So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
| * text=auto | |
| # Unity files | |
| *.meta -text -merge=unityamlmerge | |
| *.unity -text -merge=unityamlmerge | |
| *.asset -text -merge=unityamlmerge | |
| *.prefab -text -merge=unityamlmerge | |
| # Image formats | |
| *.psd filter=lfs diff=lfs merge=lfs -text |
| /** | |
| * @function | |
| * @description Deep clone a class instance. | |
| * @param {object} instance The class instance you want to clone. | |
| * @returns {object} A new cloned instance. | |
| */ | |
| function clone(instance) { | |
| return Object.assign( | |
| Object.create( | |
| // Set the prototype of the new object to the prototype of the instance. |
| { | |
| "name": "webpack-sass", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "start": "webpack-dev-server --open --mode development", | |
| "build": "webpack -p" | |
| }, | |
| "devDependencies": { | |
| "babel-core": "^6.26.0", | |
| "babel-loader": "^7.1.4", |
| #!/usr/bin/env python | |
| """ | |
| Clone all public and private repositories from a GitHub user or organization. | |
| Copyright (c) 2018 Yuriy Guts | |
| usage: github-clone-all.py [-h] [--auth-user AUTH_USER] | |
| [--auth-password AUTH_PASSWORD] [--clone-user USER] | |
| [--clone-org ORG] |