Skip to content

Instantly share code, notes, and snippets.

View v3c70r's full-sized avatar
🐱
Cats typing ...

QGu v3c70r

🐱
Cats typing ...
View GitHub Profile
@v3c70r
v3c70r / ac.md
Last active April 4, 2020 05:04
Assetto Corsa Server

Assetto Corsa test server.

I'm planing to run my server and manage some races with it. The testing periord is from 2020-04-04 to 2020-04-14, the end of easter holiday.

Will migrate to AWS if things goes well.

Server Details

Server Name: MTL_Trackday (Search for the name to join, or use the link below with Content Manager)

https://marctenbosch.com/quaternions/
@v3c70r
v3c70r / .vimrc
Last active July 13, 2020 04:43
Updated vimrc
set nocompatible
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
filetype off
set number
set incsearch
set autoindent
set history=1000
set cursorline
@v3c70r
v3c70r / Huffman.java
Last active June 16, 2018 04:40
Java Huffman tree
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public final class Huffman {
static class HuffmanRecord {
char ch = '\uffff';
@v3c70r
v3c70r / throwTable.cpp
Created September 19, 2017 15:06
ThrowTableExceptions
class TableException: public std::runtime_error
{
public:
TableException(): std::runtime_error("(╯°□°)╯︵ ┻━┻"){}
};
-- list operators
-- head
-- tail
-- last
-- init
-- length
-- null
-- reverse
-- take
-- drop
throw table_exception(R"'((ノ ゜Д゜)ノ ︵ ┻━┻")'");
@v3c70r
v3c70r / Squad.md
Created May 18, 2017 21:07
Interpolations

Squad interpolation involves finding tangent point in squad(q1, qa, qb, q2), where qa and qb are two control points.

// The ocean FFT
// Can be played on book of shader editor
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
@v3c70r
v3c70r / GLSLValidator.cpp
Created March 9, 2017 22:46
GLSL_Validator
#include <GL/glew.h>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <GLFW/glfw3.h>
const size_t MAX_SHADER_LOG_LENGTH = 2048;
std::string clangifyError(const char* err, const std::string& fileName)
{