Skip to content

Instantly share code, notes, and snippets.

View minkcv's full-sized avatar

minkcv minkcv

View GitHub Profile
@minkcv
minkcv / skull.json
Created March 31, 2019 01:25
Skull model for line3d
[{"id":1,"pos":{"x":-211.5,"y":0,"z":-90.41},"conn":[2,6]},{"id":2,"pos":{"x":-181.25,"y":0,"z":-39.07},"conn":[1,3,7]},{"id":3,"pos":{"x":-130.2,"y":0,"z":2.84},"conn":[2,4,8]},{"id":4,"pos":{"x":-67.99,"y":0,"z":45.61},"conn":[3,5,19]},{"id":5,"pos":{"x":-67.99,"y":57.15,"z":45.61},"conn":[8,4,18,22]},{"id":8,"pos":{"x":-130.2,"y":57.15,"z":2.84},"conn":[5,7,3]},{"id":6,"pos":{"x":-211.5,"y":57.15,"z":-90.41},"conn":[7,1,20]},{"id":7,"pos":{"x":-181.25,"y":57.15,"z":-39.07},"conn":[6,8,2]},{"id":9,"pos":{"x":211.5,"y":0,"z":-90.41},"conn":[10,15]},{"id":10,"pos":{"x":181.25,"y":0,"z":-39.07},"conn":[9,11,16]},{"id":11,"pos":{"x":130.2,"y":0,"z":2.84},"conn":[10,12,14]},{"id":12,"pos":{"x":67.99,"y":0,"z":48.29},"conn":[11,19,87]},{"id":15,"pos":{"x":211.5,"y":57.15,"z":-90.41},"conn":[16,9,21]},{"id":16,"pos":{"x":181.25,"y":57.15,"z":-39.07},"conn":[15,14,10]},{"id":14,"pos":{"x":130.2,"y":57.15,"z":2.84},"conn":[16,11,87]},{"id":18,"pos":{"x":0,"y":56.4,"z":65},"conn":[5,19,87]},{"id":19,"pos":{"x":0,"y":
@minkcv
minkcv / gist:51885494f36f07ac0163a5659c224b73
Last active August 10, 2019 17:27
evolution of pinballnx
https://giant.gfycat.com/AgedSmoothIslandwhistler.webm
https://giant.gfycat.com/ComplicatedPerkyCommabutterfly.webm
https://giant.gfycat.com/NeighboringFlimsyIsabellineshrike.webm
https://giant.gfycat.com/RequiredTerribleGalapagosalbatross.webm
https://giant.gfycat.com/SpottedWellinformedBactrian.webm
@minkcv
minkcv / art.svg
Created January 28, 2019 03:06
An svg I generated with some programs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minkcv
minkcv / test.svg
Created January 28, 2019 02:51
svg steganography
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minkcv
minkcv / gist:ccb04c62c287f6bf7c01fcb3d2014474
Last active June 4, 2024 23:29
Buttons on devkitPro switch port of SDL2
// This is what devkitPro has done with the SDL keybinds for the switch.
// These are not any of the built in SDL_CONTROLLER_* values or SDL_JOYSTICK_* values from the SDL 2.0 documentation.
// Which makes development very confusing if you haven't read the thread on gbatemp about these.
// The analog sticks are mapped here as buttons. Meaning the analog sticks only report 4 directions each.
// The Analog stick "click in" is reported here so that is nice.
// Snippet from devkitPro/SDL
// src/joystick/switch/SDL_sysjoystick.c
// with added comments indicating numbers for keys
static const HidControllerKeys pad_mapping[] = {
@minkcv
minkcv / configure output
Created December 8, 2018 01:07
Trying to make sdl-libtransistor
wsmith@DESKTOP MSYS ~/sdl-libtransistor
$ ./configure
configure: loading site script /etc/config.site
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
@minkcv
minkcv / cube.json
Created October 8, 2018 04:17
cube.json
[{"id1":1,"id2":2,"pos1":{"x":-201.25868055555543,"y":152.99479166666674,"z":-196.79687500000003},"pos2":{"x":-199.08854166666652,"y":152.99479166666674,"z":-3.6545138888888493}},{"id1":2,"id2":3,"pos1":{"x":-199.08854166666652,"y":152.99479166666674,"z":-3.6545138888888493},"pos2":{"x":-0.5208333333329649,"y":152.99479166666674,"z":-3.6545138888888484}},{"id1":3,"id2":4,"pos1":{"x":-0.5208333333329649,"y":152.99479166666674,"z":-3.6545138888888484},"pos2":{"x":1.649305555555923,"y":152.99479166666674,"z":-203.30729166666725}},{"id1":4,"id2":1,"pos1":{"x":1.649305555555923,"y":152.99479166666674,"z":-203.30729166666725},"pos2":{"x":-201.25868055555543,"y":152.99479166666674,"z":-196.79687500000003}},{"id1":4,"id2":5,"pos1":{"x":1.649305555555923,"y":152.99479166666674,"z":-203.30729166666725},"pos2":{"x":0.5642361111114791,"y":1.085069444444642,"z":-203.30729166666725}},{"id1":5,"id2":6,"pos1":{"x":0.5642361111114791,"y":1.085069444444642,"z":-203.30729166666725},"pos2":{"x":-199.08854166666694,"y":1.08506944
@minkcv
minkcv / data.js
Last active August 31, 2018 03:05
Probably the absolute worst code I have ever written. 8/29/18
// This is probably the absolute worst code I have ever written. 8/29/18
var data = [
['AAAAAA', 'BBBBBB', 'CCCCCC'],
['a', 'a', 'c'],
['a', 'a', 'c'],
['a', 'a', 'c'],
['a', 'a', 'c']
];
var html = `
<div id='data-component'>
@minkcv
minkcv / autoexec.cfg
Created September 21, 2016 20:46
Bind T to cinematic mode in source games.
alias "cinematicon" "cl_drawhud 0; r_drawviewmodel 0; noclip; alias cinematic cinematicoff"
alias "cinematicoff" "cl_drawhud 1; r_drawviewmodel 1; noclip; alias cinematic cinematicon"
alias "cinematic" "cinematicon"
bind "t" "cinematic"
@minkcv
minkcv / question.java
Created February 25, 2016 17:51
What does this do?
private String getString(int n) {
return String.format("%" + n + "s", " ");
}