Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:a26bff54a1cd605f454c380e3463d3ba
Created March 24, 2023 06:49
javascript regex resources
View gist:a26bff54a1cd605f454c380e3463d3ba
* https://dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode/
* https://mathiasbynens.be/notes/es6-unicode-regex
* https://mathiasbynens.be/notes/javascript-unicode
* https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point
* https://mothereff.in/js-escapes#1ma%C3%B1ana%20man%CC%83ana
@sogaiu
sogaiu / github-cloning-limits.md
Created March 24, 2023 01:38
github git cloning limits
View github-cloning-limits.md

Received the answer from the Github support team on this:

"Git operations do not consume part of your API rate limit, as there are no API calls made to GitHub.com via the git client.

We don't have any hard limits for clones, though we may delay requests if they come in fast enough to potentially cause overload on one of our servers (this would be determined by the amount of load being placed on our servers at the time of the clones, and would have to exceptionally high to occur). So while Git operations do have dynamic limits, this might result in slower clones, but shouldn't cause any failures.

In terms of API requests: unauthenticated ones are typically limited to ~5000/hr per IP address, 5000/hr per authenticated user, and significantly lower for anonymous requests (typically ~100/hr or less)."

@sogaiu
sogaiu / gist:b6d43ad7fdd06f72a678fcaa36e5bc40
Last active March 23, 2023 12:57
use of something other than node for generating grammar.json for tree-sitter
View gist:b6d43ad7fdd06f72a678fcaa36e5bc40
* quickjs (or other js runtime) version of repository?
* quickjs availability
* prebuilt binaries for windows exist
* can build on linux
* there is a brew package
* old successful grammar.json generation experiment
https://github.com/tree-sitter/tree-sitter/issues/465#issuecomment-602107222
* maxbrunsfeld summary of avoiding using nodejs / npm
https://github.com/tree-sitter/tree-sitter/issues/465#issuecomment-980440455
View gist:1b6f365a738cd89a2415475b4a6bf234
* removal of npm dependency (tldr: npm not so good)
* what others have said
* https://medium.com/@setharchambault/why-i-dont-use-npm-if-i-can-help-it-1a70e0305781
* keep seeing instructions to install a certain something globally
depsite the fact that backward compatibility issues seem to take
a back seat. this seems to lead to conflicts when trying to
work with multiple projects on the same machine that require
different versions of something (e.g. npm itself)
* npm install hangs at fetchMetatadata - one example:
$ npm install
@sogaiu
sogaiu / gist:faf336cdc0f4112b8ef82c6eb4bd2979
Created March 23, 2023 10:37
task automation resources
View gist:faf336cdc0f4112b8ef82c6eb4bd2979
* https://acecilia.medium.com/introducing-the-taskfile-e9068e3b2804
* https://dev.to/aahnik/is-there-a-makefile-alternative-where-we-can-run-code-in-python-114a
* https://pypyr.io/
* https://github.com/pypyr/pypyr/
* https://github.com/pyinvoke/invoke
* https://www.pyinvoke.org/
* https://github.com/testdouble/scripty
* https://github.com/testdouble/testdouble.js/blob/30e27f54de0e84fe99a9c33340a0474c3a21369b/package.json#L16-L42
* https://spin.atomicobject.com/2019/01/19/project-specific-cl-shortcuts/
* https://direnv.net/
@sogaiu
sogaiu / gist:60fde1ed9a131b8744c5c556a26bb0da
Created March 23, 2023 10:17
babashka tasks resources
View gist:60fde1ed9a131b8744c5c556a26bb0da
* https://book.babashka.org/#tasks
* https://github.com/babashka/babashka/wiki/Bash-and-Babashka-equivalents
* https://github.com/babashka/fs
* https://github.com/babashka/fs/blob/master/API.md
* https://github.com/babashka/process
* https://github.com/babashka/process/blob/master/API.md
@sogaiu
sogaiu / gist:ff8d6f2769a1d5604851a094d926faf0
Created March 23, 2023 09:53
shelling out, communicating with external processes, etc.
View gist:ff8d6f2769a1d5604851a094d926faf0
* https://docs.rs/xshell/latest/xshell/
* https://julialang.org/blog/2012/03/shelling-out-sucks/
* https://julialang.org/blog/2013/04/put-this-in-your-pipe/
@sogaiu
sogaiu / gist:07eae463757499c254ee3930aa66a1ba
Created March 21, 2023 11:27
useful tree-sitter articles / posts / etc.
View gist:07eae463757499c254ee3930aa66a1ba
https://derek.stride.host/posts/comprehensive-introduction-to-tree-sitter