Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Steve Fan stevefan1999-personal

I may be slow to respond.
View GitHub Profile
LexManos / clean.txt
Created Dec 8, 2018
1.13 Announcement.
View clean.txt
So about 1.13. As we have been stating since the public release of 1.13,
the Forge update is a time we are taking to re-write everything from the
ground up. Not just Forge, but the entire toolchain, launcher, installer,
and core of Forge is being rewritten. Every line of code is being inspected,
and re-validated. This whole process takes a while. To give you (the reader)
an idea of what has been done so far:
ForgeGradle has been rewritten to support modern gradle versions, with better tools
to be expandable and used for more than just setting up a Minecraft/Forge
dependency project. It's also much cleaner and organized this time around
waryas / MumGay.c
Last active Feb 25, 2021
Use mumble_ol.dll to render on any 3D application.
View MumGay.c
// OverwolfEmulator.cpp : définit le point d'entrée pour l'application console.
#include "stdafx.h"
#include <Windows.h>
#include <stdint.h>
#define OVERLAY_MAGIC_NUMBER 0x00000005
struct OverlayMsgHeader {
elcritch / rancher-zerotier.yml
Last active Jul 24, 2019
Run ZeroTier on RancherOS
View rancher-zerotier.yml
image: zerotier/zerotier-containerized:1.2.4
io.rancher.os.scope: system
- /var/lib/zerotier-one:/var/lib/zerotier-one
restart: always
isiahmeadows /
Last active Oct 23, 2019
TypeScript Constraint Types Proposal

(All feedback/discussion should take place in the relevant issue.)

TypeScript Constraint Types Proposal

There's multiple requests for the ability to control a type at a much more fine grained level:

  • #12424: Mapped conditional types
  • #12885: Typing function overloads
  • #12880: Bad inference for lambda closures
  • Promises wrongfully accept thenables as their generic parameter (thenables can never be the argument to a then callback).
View why-i'

I have been an aggressive Kubernetes evangelist over the last few years. It has been the hammer with which I have approached almost all my deployments, and the one tool I have mentioned (shoved down clients throats) in almost all my foremost communications with clients, and it was my go to choice when I was mocking my first startup (

A few weeks ago Docker 1.13 was released and I was tasked with replicating a client's Kubernetes deployment on Swarm, more specifically testing running compose on Swarm.

And it was a dream!

All our apps were already dockerised and all I had to do was make a few modificatons to an existing compose file that I had used for testing before prior said deployment on Kubernetes.

And, with the ease with which I was able to expose our endpoints, manage volumes, handle networking, deploy and tear down the setup. I in all honesty see no reason to not use Swarm. No mission-critical feature, or incredibly convenient really nice to have feature in Kubernetes that I'm go

darklight721 /
Last active Dec 7, 2020
Using MobX with decorators in React Native

Using MobX with decorators in React Native

The following instructions should work with React Native v0.32:

  1. Install mobx libraries.

    npm install mobx --save
    npm install mobx-react --save
sharmaeklavya2 /
Last active Apr 21, 2021
Competitive Programming Syllabus

Competitive Programming Syllabus


sasq64 / func.cpp
Last active Oct 1, 2017
C++ Type erased dispatch - or whatever
View func.cpp
#include <cstdio>
#include <functional>
#include <string>
#if __cplusplus <= 201200L
namespace std {
// index_sequence
DmitrySoshnikov /
Last active Sep 2, 2020
Parsing notes: "Shift-reduce" and "Reduce-reduce" conflicts in LR parsing

"Shift-reduce" and "Reduce-reduce" conflicts in LR parsing.

How to determine?

A full parsing table is not needed, only the canonical collection. In the canonical collection, find all final items (and only final items), and see if:

  • There are both shift and reduce in the same item ("shift-reduce", s/r)
  • There are two reduce actions in the same item ("reduce-reduce", r/r)

If none of these is true, there are no conflicts, even in LR(0). If there are some of the above, SLR(1) still may solve it.

View graphql-nested-schema-example
1. Build GraphQL server using `express-graphql` package.
2. Configure `schema.js` file.
3. Query for data.