Skip to content

Instantly share code, notes, and snippets.

View Ayfri's full-sized avatar
🤖
Working hard on AI

Ayfri Ayfri

🤖
Working hard on AI
View GitHub Profile
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@jamestalmage
jamestalmage / How_Require_Extensions_Work.md
Last active February 28, 2024 18:22
Breakdown of How Require Extensions Work

Why

Doing require extensions correctly is essential, because:

  1. Users should be able to install multiple extensions in succession, and have them work together.
  2. Coverage tools like nyc need it to reliably supply coverage information that takes into account sourcemaps from upstream transforms.
  3. Because non-standard, un-predictable behavior causes hard to solve bugs, and major headaches for project maintainers.

What is a require extension anyways?

@Eng-Fouad
Eng-Fouad / SampleMingw.kt
Created July 9, 2019 22:38
Kotlin Native Win32 GUI Sample
package sample
import kotlinx.cinterop.*
import platform.windows.*
@ExperimentalUnsignedTypes
fun WndProc(hwnd: HWND?, msg: UINT, wParam: WPARAM, lParam: LPARAM) : LRESULT
{
// This switch block differentiates between the message type that could have been received. If you want to
// handle a specific type of message in your application, just define it in this block.
@TrueCP6
TrueCP6 / forge-to-fabric-ports.md
Last active October 19, 2024 18:27
A list of decently sized Forge mods ported or being ported to Fabric

22w19a docs

Known Issues

  • Crash when warden gets angry at multiple mobs MC-251641

Changes

Note that for convenience, the following will use proposed Yarn names that are not yet merged.

Chat and Networking

Chat Preview was added, allowing server-side decorated messages to be signed. Basically this works like this:

  1. Server enables chat preview (with server.properties)