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.
Block or report user

Report or block stevefan1999-personal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LexManos
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
waryas / MumGay.c
Last active Jun 2, 2019
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
elcritch / rancher-zerotier.yml
Last active Jul 24, 2019
Run ZeroTier on RancherOS
View rancher-zerotier.yml
#cloud-config
rancher:
services:
zerotier:
image: zerotier/zerotier-containerized:1.2.4
labels:
io.rancher.os.scope: system
volumes:
- /var/lib/zerotier-one:/var/lib/zerotier-one
restart: always
@isiahmeadows
isiahmeadows / constraint-types.md
Last active Dec 22, 2018
TypeScript Constraint Types Proposal
View constraint-types.md

(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'm-leaving-kubernetes-for-swarm.md

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 (saharacluster.com).

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
darklight721 / INSTRUCTIONS.md
Last active Jul 17, 2019
Using MobX with decorators in React Native
View INSTRUCTIONS.md

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
@sasq64
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
DmitrySoshnikov / sr-rr-confilct.md
Last active Apr 3, 2019
Parsing notes: "Shift-reduce" and "Reduce-reduce" conflicts in LR parsing
View sr-rr-confilct.md

"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.
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active Aug 18, 2019
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
View nativeJavaScript.js
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
You can’t perform that action at this time.