Instantly share code, notes, and snippets.
Discover gists
matt-graham /jax-sci-comp-tutorial.ipynb
Last activeDecember 17, 2025 16:21
Accompanying notebook for JAX scientific computing tutorialLoading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| usingSystem; | |
| usingSystem.Collections.Generic; | |
| usingUnityEngine; | |
| [CreateAssetMenu(fileName="AbilityData",menuName="ScriptableObjects/AbilityData")] | |
| classAbilityData:ScriptableObject{ | |
| publicstringlabel; | |
| publicAnimationClipanimationClip; | |
| [Range(0.1f,4f)]publicfloatcastTime=2f; |
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
| inbounds: | |
| -listen:192.168.1.1 | |
| tag:all-in | |
| port:1083 | |
| protocol:dokodemo-door | |
| settings: | |
| network:tcp,udp | |
| followRedirect:true | |
| streamSettings: | |
| sockopt: |
johnslavik /DRAMA.md
Last activeDecember 17, 2025 16:16
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
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
darencard /entware_synology.md
Last activeDecember 17, 2025 16:11
Setting up and using Entware on Synology deviceHere's myAGENTS.md(also linked fromCLAUDE.md as@AGENTS.md) for hackingagentically onMDFlow recipes.
I have this in~/.mdflow/, and the agents/recipes live in~/.mdflow/agents/ and added to the pathso that they can be invoked as commands.
With this I can use a coding agent like Claude Code or GitHub Copilot in VSCode and say something like:
> create a new agent using copilot that reviews all the code files in this directory as a poemscornork /utils.approximate-sinusoid.js
Last activeDecember 17, 2025 16:19
A modern vanilla ES6+ implementation of a sinusoid approximated from a polynomial expansion of n terms. 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
| /** | |
| * @typedef{Object}SinusoidTraits | |
| * @property{number}[sampleRate=44100]-TheoverallwavesamplingrateinHz. | |
| * @property{number}[frequency=1000]-TheoscillationwavefrequencyinHz. | |
| * @property{number}[length=1024]-Thetotalwavesamples/buffersize. | |
| * @property{number}[terms=13]-Thetotalpolynomialexpansionterms. | |
| * | |
| * @typedef{Object}PolynomialApproximation | |
| * @property{number}termPartialSum-Thecurrentrunningaccumulationforthe | |
| *iterativereductionperformedtoapproximatetheMaclaurinpower |
NewerOlder