Skip to content

Instantly share code, notes, and snippets.

View Oyshoboy's full-sized avatar
🦄
Magic

Oleg Smirnoff Oyshoboy

🦄
Magic
View GitHub Profile
@Oyshoboy
Oyshoboy / ElytraModel.java
Created May 13, 2024 02:08 — forked from samsartor/ElytraModel.java
Code for simulating the elytra item in Minecraft
/**
* An accurate simulation of the elytra item as of Minecraft 15w41b
*/
public class ElytraModel
{
public int glideTime;
public int damageTaken;
public double posX;
public double posY;
@Oyshoboy
Oyshoboy / repo-reset.md
Created March 31, 2021 07:10 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A