Skip to content

Instantly share code, notes, and snippets.

View kevinkassimo's full-sized avatar
🤕
Tried to be less stupid, but failed

Kevin (Kun) "Kassimo" Qian kevinkassimo

🤕
Tried to be less stupid, but failed
View GitHub Profile
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active May 3, 2024 12:56
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
@MohHeader
MohHeader / QuadTreeTest.cs
Last active May 1, 2022 17:39 — forked from DGoodayle/QuadTreeTest.cs
Quadtree in Unity
using UnityEngine;
using System.Collections;
public class QuadTreeTest : MonoBehaviour {
public class TestObject : IQuadTreeObject{
private Vector3 m_vPosition;
public TestObject(Vector3 position){
m_vPosition = position;
}
public Vector2 GetPosition(){
@domenic
domenic / angularpromise.js
Created January 21, 2016 23:28
How to subclass a promise
// ES6
class AngularPromise extends Promise {
constructor(executor) {
super((resolve, reject) => {
// before
return executor(resolve, reject);
});
// after
}
@DGoodayle
DGoodayle / QuadTreeTest.cs
Last active June 9, 2023 10:59
Quadtree in Unity
using UnityEngine;
using System.Collections;
public class QuadTreeTest : MonoBehaviour {
public class TestObject : IQuadTreeObject{
private Vector3 m_vPosition;
public TestObject(Vector3 position){
m_vPosition = position;
}
public Vector2 GetPosition(){
@krusynth
krusynth / books.md
Last active June 15, 2021 16:56
A list of useful books to improve your skills

Recommended Books

A list of useful books to improve your skills

Recommendations from others are noted in (parentheses). The rest are my personal recommendations.

Programming

Building your core

  • The Pragmatic Programmer - Hunt & Thomas
@staltz
staltz / introrx.md
Last active May 24, 2024 07:56
The introduction to Reactive Programming you've been missing
@sixman9
sixman9 / CSharpSpatialHash.cs
Created February 1, 2011 12:51
A Spatial Hash class in C#.
/*
http://entitycrisis.blogspot.com/2010/02/spatial-hash-class-in-c.html
This is a rather useful class, the Spatial Hash. It is used for creating an index of spatial data (3D things in space) and allowing fast queries to be run against the index.
Effectively, you can use this class to ask, "I'm at this position, what other objects are near me?".
*/
using UnityEngine; //This needs to be 'removed' to make 'universal', i.e. not tied to Unity3D
using System.Collections;