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
--- | |
BasedOnStyle: Microsoft | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveMacros: 'true' | |
AlignConsecutiveAssignments: 'false' | |
AlignConsecutiveDeclarations: 'false' | |
AlignEscapedNewlines: Left | |
AlignOperands: 'true' | |
AlignTrailingComments: 'true' | |
AllowAllArgumentsOnNextLine: 'false' |
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
colorscheme onehalflight | |
"colorscheme gruvbox | |
"set background=dark | |
" Disable bell | |
set visualbell | |
set t_vb= | |
set t_u7= | |
set tabstop=4 |
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
// https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <assert.h> | |
typedef uint64_t u64; | |
typedef uint32_t u32; | |
u32 fnv1a_32(const char *str) | |
{ |
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
# blender.exe -b -P decimate.py -- --input_file crate.glb --output_file output.glb | |
import bpy | |
import sys | |
import math | |
args = sys.argv | |
input_file = None | |
output_file = None | |
i = 0 |
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
import re | |
class Struct: | |
def __init__(self, name, body): | |
self.name = name | |
self.references = [] | |
self.body = body | |
def __str__(self) -> str: | |
return f'{self.name}: {self.references}' |
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
PMIXERCONTROLDETAILS soundFuncFix(const char* search) | |
{ | |
HMIXER phmx; | |
//probably wouldn't be a bad idea to also ZeroMemory this structure | |
if (waveInGetNumDevs() < 1 || mixerGetNumDevs() < 1 || mixerOpen(&phmx, 0, 0, 0, 0)) | |
{ | |
return (PMIXERCONTROLDETAILS)-1; | |
} | |
else | |
{ |
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
(deftheme my | |
"My theme for Emacs") | |
(custom-theme-set-faces | |
'my | |
'(font-lock-function-name-face ((t (:foreground "#523112" :weight normal)))) | |
'(font-lock-string-face ((t (:foreground "#606060")))) | |
'(font-lock-type-face ((t (:foreground "#044333")))) | |
'(font-lock-constant-face ((t (:foreground "blue")))) | |
'(font-lock-builtin-face ((t (:foreground "#70312a")))) |
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
~/.Xresources | |
------------------------- | |
Xft.autohint: 0 | |
Xft.antialias: 1 | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
Xft.dpi: 96 | |
Xft.rgba: rgb | |
Xft.lcdfilter: lcddefault | |
-------------------------- |
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
scrollbar slider { | |
min-width: 15px; | |
min-height: 15px; | |
border: 2px solid transparent; | |
border-radius: 0px; | |
} |
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
(defun custom-select-all () | |
(interactive) | |
;; (message "test %s" (key-description (string (read-event nil nil 2)))) | |
(mark-whole-buffer) | |
(setq tmp (read-event nil nil 0.3)) | |
(if tmp | |
(progn | |
(when (string= "left" tmp) | |
(deactivate-mark) | |
) |
NewerOlder