Skip to content

Instantly share code, notes, and snippets.

View minkcv's full-sized avatar

minkcv minkcv

View GitHub Profile
@minkcv
minkcv / gist:276b84f5ddd00fef7e83
Last active August 29, 2015 14:24
oldmcdonald
sample-data.txt 2 channels (stereo)
Left channel then Right channel on same line.
Sample Rate: 44100 Hz. Sample values on dB scale.
Length processed: 100 samples 0.00227 seconds.
Peak amplitude: 0.00656 (lin) -43.66023 dB. Unweighted rms: -46.22432 dB.
DC offset: Left: -0.00472 lin, -46.51358 dB | Right: -0.00495 lin, -46.10691 dB.
-44.96556 -46.50236
-46.33586 -47.89752
@minkcv
minkcv / gist:335e049ed21305c3288b
Created July 11, 2015 02:26
sample data as ascii
-,.礬 -..쐼
-..茲 -/.庘
-2.囱 -..깫
--.扪 -,.�
-..墄 -,.ằ
--.扪 -+.爵
-/.䓽 -/.㝟
-0.갘 -..깫
--.袉 --.⨅
-,.㸤 -0.Q
@minkcv
minkcv / question.java
Created February 25, 2016 17:51
What does this do?
private String getString(int n) {
return String.format("%" + n + "s", " ");
}
@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 / 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 / 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 / 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 / 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 / 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 / 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.