This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <xinput.h> | |
#define SWAP(T, x, y) do {T t = x; x = y; y = t;} while(0) | |
#define MIN(x, y) ((x) < (y) ? x : y); | |
bool window_running = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local fn = vim.fn | |
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' | |
if fn.empty(fn.glob(install_path)) > 0 then | |
packer_bootstrap = fn.system({ | |
'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', | |
install_path | |
}) | |
end | |
local options = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; for performance | |
(setq gc-cons-threshold 100000000) | |
(setq read-process-output-max (* 1024 1024)) | |
(add-hook 'after-init-hook #'(lambda () | |
(setq gc-cons-threshold 800000))) | |
(require 'package) | |
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if not exist build mkdir build | |
pushd build | |
setlocal | |
call "D:\Apps\Visual Studio\VC\Auxiliary\Build\vcvarsall" x64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const table = [ | |
'073642', | |
'dc322f', | |
'859900', | |
'b58900', | |
'268bd2', | |
'd33682', | |
'2aa198', | |
'eee8d5', | |
'002b36', |