Skip to content

Instantly share code, notes, and snippets.

View Darkborderman's full-sized avatar

Darkborderman Darkborderman

View GitHub Profile
@Darkborderman
Darkborderman / Change CRLF to LF to all Files.md
Created May 23, 2023 09:13 — forked from tjsudarsan/Change CRLF to LF to all Files.md
Change End of Line Sequence from CRLF to LF to all files in the project for supporting ESLint

Converting the End of Line Sequence from CRLF to LF in any of your project files

Execute the following commands in your root of your project folder

NOTE: Do not do the following steps without commiting your data. As it clears all the git cache and it will clear all your changes in your project.

  1. First disable the autoCRLF in the git config by running the following command in your terminal git config core.autocrlf false

  2. Then remove the cached files in the git. Run the following command:

@Darkborderman
Darkborderman / rust-vs-go.md
Created October 26, 2021 11:18 — forked from weihanglo/rust-vs-go.md
【譯】Rust vs. Go

【譯】Rust vs. Go

本文譯自 Julio MerinoRust vs. Go。Julio Merino 目前是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。

Thanks Julio Merino for this awesome article!


@Darkborderman
Darkborderman / rimworld-xml-patching.md
Created March 9, 2021 21:18 — forked from Lanilor/rimworld-xml-patching.md
Random stuff about XML patching

Notes

  • This document is still a draft. Don't rely on any information until it is done and tested.
  • This is a more advanced guide with some special cases, improvements and optimizations. If you need to know the basics, read this guide.

Compatibility patches (with FindMod)

You can use cores PatchOperationFindMod to create conditional patches when certain mods are loaded without the need of an external library.

<Operation Class="PatchOperationFindMod">
    <mods>