when creating a repo with "committer" trust model:
CreatePost: initRepository: initRepoCommit: git commit: exit status 128 - fatal: empty ident name (for <>) not allowed
(log file)
| git clone https://github.com/chronotope/pure-rust-locales | |
| cd pure-rust-locales | |
| rustdoc src/lib.rs -Z unstable-options --output-format json | |
| let lib = open doc/lib.json | |
| let items = $lib.index | columns | each {into int} | math max | 0..$in | each {|e| {index: $e, item: ($lib.index | get -o ($e | into string))} } | flatten | each { try { update inner { transpose -d kind content } } catch { {} } } | flatten inner | |
| def expand [] { let $i = $in; let item = $items | get $i; if $item.kind == "use" { $item.content.id | expand | update name $item.content.name } else { $item } } | |
| def transpose_members_map [f] { each { [ $in.name ($in | do $f) ] } | into record } | |
| let locales = $items | get $lib.root | get content.items | each { expand } | where kind == "module" | select name content | update content { get items | each { expand } | transpose_members_map { get content.items | each { expand } | transpose_members_map { get docs | str trim -c "`" } } } | flatten | rename -c {name:index} | |
| $locales | where LC_TIME.D_FMT in ['%F |
| # this is a home-manager module | |
| {lib, options, ...}: let | |
| settings-binds-type = let | |
| traverse = v: | |
| if (v ? _type && v._type == "option") | |
| then | |
| { | |
| ${lib.concatStringsSep "." v.loc} = v; | |
| } | |
| // traverse (v.type.getSubOptions v.loc) |
| { | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | |
| fenix = { | |
| url = "github:nix-community/fenix"; | |
| inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| }; |
| use knuffel::{errors::DecodeError, traits::ErrorSpan}; | |
| #[derive(knuffel::Decode, Debug)] | |
| enum Width { | |
| Fixed(#[knuffel(argument)] u64), | |
| Proportion(#[knuffel(argument)] f64), | |
| } | |
| #[derive(Debug)] | |
| enum OptChild<T> |
So, recently, i wrote a couple tweets where i explored how to theoretically overwrite the division implementation for C# numbers.
In short:
div instruction. You can't edit thisdecimal typedecimal corresponds to System.Decimal which is not a primitive type. Let's 0 / 2 == 0.5, or since we're doing decimals only, 0m / 2m == 0.5m. M for money i guess? i don't really know why that's the suffix C# uses, d was already taken for double i guess.Hi, emogex is an esoteric regular expression language based entirely on emojis. It was originally created as a joke at the @happyautomata twitter bot under this thread.
I've ended up actually using it regularly because i solve those FSMs to regexes on my phone, and it's more convenient to use emoji-based syntax because it's on the same keyboard as the language characters.
I've also noticed that other people (well, it's just this one guy so far at least two people) are now using emogex unironically to solve them, so i thought it's about time to write it all in a single document so you can more conveniently reference all the features of the language with
Even though this guide is specifically for Muck, most of it applies to any Unity game.
Muck is compiled using Mono, which is cross-platform. I did notice that the hashes of the assemblies for the Linux version are not the same as the Windows version, but my mods seemed to work regardless.
Because assemblies are cross-platform, if your mod only applies code patches with no additional assets, you don't need to do anything about the AssetBundles. However, if your mod reads or writes any files to the disk, make sure not to hardcode backslashes! To work with the filesystem, use .NET's Path helpers, they will make sure you write to the desired location!
BAD: