| name | rust |
|---|---|
| description | Idiomatic Rust patterns — traits, builders, type-erased state, newtype IDs, state separation, batching, and common anti-patterns. Load when editing .rs files, designing a Rust API or trait, or when Rust-specific questions arise (ownership, lifetimes, error handling, FFI). |
One contract (DeepKey / DeepValue / DeepKeyFiltered / ArrayOfChanges / BoolLogic /
MathExpr over a large state object), six implementation approaches, measured from 4.7k to 96k
paths under two TypeScript engines. The question throughout: what keeps the type-checker (and
the editor) cheap as the state grows past ~5–6k paths, where the union approach OOMs.
Path convention: [*] = Record/index key, [n] = array element, .?? = any/never sentinel.
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
| [package] | |
| name = "type-profiler" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [[bin]] | |
| name = "type-profiler" | |
| path = "src/main.rs" | |
| [dependencies] |
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
| 0.0.0.0 clientsettings.api.roblox.com | |
| 0.0.0.0 roblox.com | |
| 0.0.0.0 www.roblox.com | |
| 0.0.0.0 12masterov.com |
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 "./styles.css"; | |
| import { forwardRef, useRef, useState } from "react"; | |
| import { | |
| autoUpdate, | |
| size, | |
| flip, | |
| useId, | |
| useDismiss, | |
| useFloating, | |
| useInteractions, |
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
| const fs = require('fs') | |
| const path = require('path') | |
| const { patchFs } = require('@aleung/fs-monkey') | |
| const resolveToTmp = (pathLike) => { | |
| const isCacheDir = pathLike.includes('.next/cache') | |
| if (!isCacheDir) return pathLike | |
| const endPath = pathLike.split('.next/cache/')[1] | |
| console.log('patcher.js: resolveToTmp', endPath) |
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
| <!-- | |
| // inside _app.tsx | |
| import Script from 'next/script'; | |
| // inside custom App component. | |
| <Script src="https://www.google.com/recaptcha/enterprise.js?render=explicit" /> | |
| --> | |
| import { useEffect, useState } from 'react'; |
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
| // use "{{ 'analytics-head.js' | asset_url | script_tag }}" inside your liquid files. Namely `theme.liquid`. | |
| var layerName = 'customDataLayer' | |
| var gtmId = 'GTM-XXXXXX' | |
| // ------------------------------ | |
| // Load GTM in head, initialize dataLayer. | |
| ;(function (w, d, s, l, i) { | |
| console.log('Initializing GTM ...') | |
| w[l] = w[l] || [] |
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
| # meta.yaml (use conda build ./path-to-directory-with-this-file | |
| package: | |
| name: cloudcompare | |
| version: v2.12.4 | |
| source: | |
| git_url: https://github.com/CloudCompare/CloudCompare.git | |
| git_rev: v2.12.4 | |
| build: |
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
| # meta.yaml (use conda build ./path-to-directory-with-this-file | |
| package: | |
| name: potreeconverter | |
| version: 2.1.1 | |
| source: | |
| git_url: https://github.com/potree/PotreeConverter.git | |
| git_rev: 2.1.1 |
NewerOlder