Skip to content

Instantly share code, notes, and snippets.

Hans Elias J. hansihe

Block or report user

Report or block hansihe

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
View keybase.md

Keybase proof

I hereby claim:

  • I am hansihe on github.
  • I am hansihe (https://keybase.io/hansihe) on keybase.
  • I have a public key ASBfXtO4vEM1zEt4gwHp7XeCUuN31ZJVfVrqDptfpo9pVAo

To claim this, I am signing this object:

View gist:113564a8ee7738087d3a7e33b7c66913
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFUpX5sQLQRS6zvj/Wjcrc50g3ej+JruBPkW8iWW88ll6KFl3QQB9jjDj8f7dOykn4Cld3gHRQfGde2Wz1MLfTzifKfV2wXjKB6iE9MD9zIemR6Y8xI4MKan3zHYqpPHpmhheqWt1PE7TG3FAMUfU46r7LXQtld19O8bH7WBGt7L7BLqdNf8lLwUeo8Ah0D66AGjQWJs5T6K92xbqiQ9eG6r/NLtCmLnnzHcGRb11zdrZUdZDKBhvyiivmNYRRZ7mSXj9h0jkHsoLd8Gj/d4yh0pWHjs7clC1m2iVkpAqAb+TKMpwyomdAJi4AhGJsMBK/WLpnBrkUI07nX49trhpZ hansihe@hansihe-XPS-13-9343
View test.core
module 'test' ['add'/2,
'add_two'/3,
'module_info'/0,
'module_info'/1,
'return_closure'/1]
attributes [%% Line 1
'file' =
%% Line 1
[{[116|[101|[115|[116|[46|[101|[114|[108]]]]]]]],1}]]
'add'/2 =
View gist:9a86f3d8cbc15f2f4a21d8b2cf4601d9
read_tag_val() {
tag = read_u8();
tag_type = tag & 0b00000111;
tag_expanded = tag & 0b00001000;
tag_adv_expanded = tag & 0b00010000;
if tag_expanded == 0 {
val = tag >> 4;
View test.c
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <pthread.h>
#include <signal.h>
#include <stdint.h>
#include <time.h>
#include "queue.h"
#include "erl_nif.h"
View 3d_dda.js
// NOTE: Although this uses javascript syntax highlighting, it is not javascript.
// start: Vec3
// direction: Vec3
function traverse(start, direction) {
// TODO: Make sure direction is not 0, this will result in infinite loop!
// Floor the position to get current voxel.
var pos = floor(start);
@hansihe
hansihe / OpenSimplex Normalize.ipynb
Last active Jan 27, 2016
Normalizing OpenSimplex probability distribution.
View OpenSimplex Normalize.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hansihe
hansihe / playground.rs
Created Jan 7, 2016 — forked from anonymous/playground.rs
Shared via Rust Playground
View playground.rs
use std::marker::PhantomData;
struct Env;
#[derive(Clone, Copy)]
struct Term<'a> {
life: PhantomData<&'a Env>,
}
// Decodes a Term to a rust value. This interfaces with native code.
trait Decoder: Sized {
@hansihe
hansihe / rl-api.md
Last active Dec 9, 2018
Rocket League API Documentation
View rl-api.md

#Rocket League API

Endpoints

All requests seem to be to the domain https://psyonix-rl.appspot.com. There are several endpoints on this domain.

Endpoint Purpose
/callproc105/ Leaderboard, player statistics
/Population/GetPopulation/ Player counts/regions
/login105/ Authentication, obtaining session ids
View gist:90e2e613fb64e0cd61df
;koku-xinput-wine config, for more information see https://github.com/KoKuToru/koku-xinput-wine
XINPUT_GAMEPAD_LEFT_THUMB_X = A01
XINPUT_GAMEPAD_LEFT_THUMB_Y = A02*-1
XINPUT_GAMEPAD_RIGHT_THUMB_X = A04
XINPUT_GAMEPAD_RIGHT_THUMB_Y = A05*-1
XINPUT_GAMEPAD_DPAD_UP = H01&0x0001
XINPUT_GAMEPAD_DPAD_DOWN = H01&0x0004
XINPUT_GAMEPAD_DPAD_LEFT = H01&0x0008
XINPUT_GAMEPAD_DPAD_RIGHT = H01&0x0002
XINPUT_GAMEPAD_START = B08
You can’t perform that action at this time.