crap.git
23 months agoAdd test cases for reshetkovo master
Hudd [Sun, 17 Dec 2017 21:59:17 +0000 (00:59 +0300)]
Add test cases for reshetkovo

23 months agoAdd another practice thingy
Hudd [Sun, 17 Dec 2017 21:54:38 +0000 (00:54 +0300)]
Add another practice thingy

23 months agoLua: Improve tosnake
Hudd [Sun, 17 Dec 2017 21:53:21 +0000 (00:53 +0300)]
Lua: Improve tosnake

I don't remember exactly what state it is in now. I remember I was
trying to make it snakeisze OpenGL functions, but shuhs shahs

23 months agoLua: Improve to_snake
Hudd [Tue, 11 Jul 2017 03:14:54 +0000 (06:14 +0300)]
Lua: Improve to_snake

Handles some names with numbers in them better

23 months agoOpenGL: Add discarded renderer code
Hudd [Thu, 6 Jul 2017 18:17:02 +0000 (21:17 +0300)]
OpenGL: Add discarded renderer code

I decided to do it another way, but want to keep this for reference
(maybe for later tests)

2 years agoOptimize url-log-parser
Hudd [Tue, 27 Jun 2017 18:18:43 +0000 (21:18 +0300)]
Optimize url-log-parser

— Replaced crude sort with a stable_sort which sorts only on occurence
counts, taking advantage of data beging already sorted.
— Various minor optimizations
— Fixed handling of URLs with '-' in them
— Fixed handling of URLs without '/' after tham
— Some other fixes

2 years agoLua: Add print-table
Hudd [Sun, 4 Jun 2017 16:58:50 +0000 (19:58 +0300)]
Lua: Add print-table

2 years agoBash: Update cpu boost switcher script
Hudd [Thu, 30 Mar 2017 12:28:43 +0000 (15:28 +0300)]
Bash: Update cpu boost switcher script

Also lock frequency to minimum when boost is off

2 years agoBash: Add cpu boost switcher script
Hudd [Thu, 30 Mar 2017 12:28:25 +0000 (15:28 +0300)]
Bash: Add cpu boost switcher script

2 years agoAdd old aw::archive code
Hudd [Tue, 27 Jun 2017 10:26:38 +0000 (13:26 +0300)]
Add old aw::archive code

2 years agoExercises: Add url-log-parsers
Hudd [Mon, 26 Jun 2017 16:27:12 +0000 (19:27 +0300)]
Exercises: Add url-log-parsers

(unigine-whatever-school entry task; not for application; wrote out of
curiosity; write in 58 minutes, then spent another 58 minutes fixing
bugs)

2 years agoCodewars: Add C++/replace-every-nth
Hudd [Mon, 12 Dec 2016 18:19:05 +0000 (21:19 +0300)]
Codewars: Add C++/replace-every-nth

2 years agoAdd multiple C++ tests and prototypes
Hudd [Mon, 12 Dec 2016 18:17:22 +0000 (21:17 +0300)]
Add multiple C++ tests and prototypes

2 years agoOpenGL: Implement first-person camera movement
Hudd [Wed, 15 Feb 2017 14:01:32 +0000 (17:01 +0300)]
OpenGL: Implement first-person camera movement

2 years agoOpenGL: Fix typo and simplify camera rotation expr
Hudd [Fri, 3 Feb 2017 17:31:49 +0000 (20:31 +0300)]
OpenGL: Fix typo and simplify camera rotation expr

2 years agoOpenGL: Add camera world position and rotation
Hudd [Fri, 3 Feb 2017 17:05:54 +0000 (20:05 +0300)]
OpenGL: Add camera world position and rotation

2 years agoOpenGL: store locations for transform and perspective
Hudd [Fri, 3 Feb 2017 17:04:58 +0000 (20:04 +0300)]
OpenGL: store locations for transform and perspective

2 years agoaur-add: Add better version comparison
Hudd [Thu, 2 Feb 2017 18:25:09 +0000 (21:25 +0300)]
aur-add: Add better version comparison

whatever, I am disappointed that I've lost my original code by copying
old over it (WHY IT WAS UNCOMMITED?)
it was better, and I always get stuck when I try to reproduce something
exatly as it was
CANT WRITE FUCK IT

2 years agoaur-add: Fix "Failed to sign"
Hudd [Thu, 2 Feb 2017 17:49:04 +0000 (20:49 +0300)]
aur-add: Fix "Failed to sign"

For some reason -f flag interferes with package signing.

2 years agoaur-add: Reorganize the script to make -U work better
Hudd [Thu, 2 Feb 2017 17:46:58 +0000 (20:46 +0300)]
aur-add: Reorganize the script to make -U work better

— build is called in a subshell, so it doesn't affect parent shell
— added ability to check for updates, without building them
— moved prints into their respective functions

2 years agoaur-add: Bail out if package is not found
Hudd [Thu, 2 Feb 2017 17:45:35 +0000 (20:45 +0300)]
aur-add: Bail out if package is not found

2 years agoOpenGL: Add more benchmarking code
Hudd [Thu, 26 Jan 2017 18:06:28 +0000 (21:06 +0300)]
OpenGL: Add more benchmarking code

, and camera movement

2 years agoOpenGL: Increase falloff range and clamp minimum brightness
Hudd [Thu, 26 Jan 2017 18:05:26 +0000 (21:05 +0300)]
OpenGL: Increase falloff range and clamp minimum brightness

2 years agoC++: Add build_hash prototype
Hudd [Tue, 10 Jan 2017 14:07:26 +0000 (17:07 +0300)]
C++: Add build_hash prototype

2 years agoOther: Add sitparser.c++
Hudd [Sun, 11 Dec 2016 01:52:36 +0000 (04:52 +0300)]
Other: Add sitparser.c++

// Converts map data from infernal engine

2 years agoCodeward: Add weird-prime-gen in Haskell
Hudd [Sat, 10 Dec 2016 20:25:20 +0000 (23:25 +0300)]
Codeward: Add weird-prime-gen in Haskell

2 years agoCodewars: Add C++/weird-prime-gen
Hudd [Sat, 10 Dec 2016 17:07:07 +0000 (20:07 +0300)]
Codewars: Add C++/weird-prime-gen

2 years agoCodewars: Add simple bash scripts
Hudd [Sat, 10 Dec 2016 17:06:51 +0000 (20:06 +0300)]
Codewars: Add simple bash scripts

2 years agoCodewars: Add "Vasya Clerk"
Hudd [Sat, 10 Dec 2016 12:17:50 +0000 (15:17 +0300)]
Codewars: Add "Vasya Clerk"

Basically an example of change-making problem.
Ugh, I hate JS.

2 years agoProjects: Add newer version of aur-tool
Hudd [Sat, 10 Dec 2016 10:32:56 +0000 (13:32 +0300)]
Projects: Add newer version of aur-tool

2 years agoProjects: Remove aur-tool code from Other/bash
Hudd [Sat, 10 Dec 2016 10:31:42 +0000 (13:31 +0300)]
Projects: Remove aur-tool code from Other/bash

Oops. It already was in the repository.

2 years agoProjects: Add my old aur-tool
Hudd [Wed, 7 Dec 2016 09:48:55 +0000 (12:48 +0300)]
Projects: Add my old aur-tool

2 years agoC++: Add 'paint' prototype
Hudd [Sun, 4 Dec 2016 18:27:33 +0000 (21:27 +0300)]
C++: Add 'paint' prototype

While I was making a visualisation of weapon hit distribution, I
discovered that I've made a rudimentary image editor.

2 years agoMove AWRTS prototypes from C++ into AWRTS
Hudd [Sun, 4 Dec 2016 18:27:05 +0000 (21:27 +0300)]
Move AWRTS prototypes from C++ into AWRTS

2 years agoAWRTS: Add spread prototype
Hudd [Sun, 4 Dec 2016 18:22:06 +0000 (21:22 +0300)]
AWRTS: Add spread prototype

I want projectiles to hit according to normal distribution, and this is
a test to see how well that would work.
*How well picking 2 numbers from std::normal_distribution and
combining them into vec2{x,y} would work.

2 years agoPrototypes: Add stopwatch
Hudd [Wed, 30 Nov 2016 11:40:07 +0000 (14:40 +0300)]
Prototypes: Add stopwatch

2 years agoPrototypes: Add fakesh
Hudd [Wed, 30 Nov 2016 11:39:55 +0000 (14:39 +0300)]
Prototypes: Add fakesh

2 years agoAdd signals v3 benchmark
Hudd [Wed, 30 Nov 2016 10:20:24 +0000 (13:20 +0300)]
Add signals v3 benchmark

2 years agoOpenGL: Output depth
Hudd [Thu, 24 Nov 2016 16:29:48 +0000 (19:29 +0300)]
OpenGL: Output depth

2 years agoAdd my AUR tool
Hudd [Thu, 24 Nov 2016 16:22:34 +0000 (19:22 +0300)]
Add my AUR tool

2 years agoBash: Add stuff from screenshot archive
Hudd [Thu, 24 Nov 2016 16:20:00 +0000 (19:20 +0300)]
Bash: Add stuff from screenshot archive

2 years agoAdd bunch of bash scripts from dotfiles
Hudd [Thu, 24 Nov 2016 16:17:37 +0000 (19:17 +0300)]
Add bunch of bash scripts from dotfiles

2 years agoAdd bunch of junk from my old junk collection
Hudd [Thu, 24 Nov 2016 16:07:09 +0000 (19:07 +0300)]
Add bunch of junk from my old junk collection

2 years agoC++: Add comprimes
Hudd [Thu, 24 Nov 2016 16:03:24 +0000 (19:03 +0300)]
C++: Add comprimes

It was a time-based programming challenge, I quickly hacked together
this piece of… something.
I cheated a little bit by using bash, instead of implementing it all in
C++ (even though I could, using std::unique)

2 years agoC++: Add test of overloads with diff. access specifiers
Hudd [Tue, 22 Nov 2016 12:58:57 +0000 (15:58 +0300)]
C++: Add test of overloads with diff. access specifiers

I couldn't remember if that works. Yes, it does.

2 years agoAdd C++ regex test
Hudd [Mon, 21 Nov 2016 17:24:48 +0000 (20:24 +0300)]
Add C++ regex test

Argh, it doesn't support UTF-8 and doesn't provide specializations for
char32_t.

3 years agoOpenGL: Use model class
Hudd [Thu, 17 Nov 2016 16:35:52 +0000 (19:35 +0300)]
OpenGL: Use model class

3 years agoSDL: Add SDL_Image test
Hudd [Thu, 17 Nov 2016 10:53:37 +0000 (13:53 +0300)]
SDL: Add SDL_Image test

3 years agobash: Add find-orphans.sh
Hudd [Thu, 17 Nov 2016 10:53:01 +0000 (13:53 +0300)]
bash: Add find-orphans.sh

3 years agoOpenGL: Add Makefile
Hudd [Thu, 17 Nov 2016 09:40:31 +0000 (12:40 +0300)]
OpenGL: Add Makefile

3 years agoAdd some old junk
Hudd [Thu, 17 Nov 2016 09:39:11 +0000 (12:39 +0300)]
Add some old junk

3 years agoCmdHist: Add another completion prototype.
Hudd [Thu, 17 Nov 2016 09:35:25 +0000 (12:35 +0300)]
CmdHist: Add another completion prototype.

(I think it is GDB-style completion)

3 years agoAdd old GL loader test
Hudd [Thu, 17 Nov 2016 09:34:02 +0000 (12:34 +0300)]
Add old GL loader test

I wanted to see how glload interacts with sfml, but never commited this.

3 years agoPrototypes: Add ListOfLambdas
Hudd [Thu, 17 Nov 2016 09:35:20 +0000 (12:35 +0300)]
Prototypes: Add ListOfLambdas

I don't remember what it is, but I think it is somehow related to
aw::variant

3 years agoC++: Add exceptions-through-c-code test
Hudd [Thu, 17 Nov 2016 09:33:26 +0000 (12:33 +0300)]
C++: Add exceptions-through-c-code test

3 years agoOpenGL: Add prototype model formats
Hudd [Thu, 17 Nov 2016 09:28:59 +0000 (12:28 +0300)]
OpenGL: Add prototype model formats

3 years agoOpenGL: Remove hardcoded data
Hudd [Wed, 16 Nov 2016 13:40:50 +0000 (16:40 +0300)]
OpenGL: Remove hardcoded data

3 years agoOpenGL: Discard model data; Add vertex color
Hudd [Wed, 16 Nov 2016 13:37:22 +0000 (16:37 +0300)]
OpenGL: Discard model data; Add vertex color

3 years agoOpenGL: Add OBJ loader
Hudd [Wed, 16 Nov 2016 13:04:27 +0000 (16:04 +0300)]
OpenGL: Add OBJ loader

3 years agoJunk: Add unused enumerate_extensions()
Hudd [Tue, 15 Nov 2016 09:23:03 +0000 (12:23 +0300)]
Junk: Add unused enumerate_extensions()

3 years agoOpenGL: Use camera class
Hudd [Wed, 9 Nov 2016 07:10:35 +0000 (10:10 +0300)]
OpenGL: Use camera class

3 years agoOpenGL: Use matrix for transform
Hudd [Tue, 8 Nov 2016 11:58:21 +0000 (14:58 +0300)]
OpenGL: Use matrix for transform

3 years agoOpenGL: Use glDrawElementsBaseVertex
Hudd [Tue, 8 Nov 2016 06:27:24 +0000 (09:27 +0300)]
OpenGL: Use glDrawElementsBaseVertex

3 years agoOpenGL: Add index buffer
Hudd [Tue, 8 Nov 2016 06:10:32 +0000 (09:10 +0300)]
OpenGL: Add index buffer

3 years agoOpenGL: Use perspective matrix
Hudd [Tue, 8 Nov 2016 04:17:55 +0000 (07:17 +0300)]
OpenGL: Use perspective matrix

3 years agoC++: Add matrix constructor prototype
Hudd [Tue, 8 Nov 2016 01:40:46 +0000 (04:40 +0300)]
C++: Add matrix constructor prototype

3 years agoOpenGL: Add simple perspective
Hudd [Mon, 7 Nov 2016 12:21:05 +0000 (15:21 +0300)]
OpenGL: Add simple perspective

3 years agoC: Add MurmurHash3 test
Hudd [Mon, 7 Nov 2016 10:21:36 +0000 (13:21 +0300)]
C: Add MurmurHash3 test

(I was testing if modified code still produces same results)

3 years agoPrototypes: Add any_type_to_array
Hudd [Sun, 6 Nov 2016 21:52:19 +0000 (00:52 +0300)]
Prototypes: Add any_type_to_array

3 years agoOpenGL: Add pulsating colors
Hudd [Sun, 6 Nov 2016 17:54:21 +0000 (20:54 +0300)]
OpenGL: Add pulsating colors

3 years agoOpenGL: Add screen uniform
Hudd [Sun, 6 Nov 2016 17:31:37 +0000 (20:31 +0300)]
OpenGL: Add screen uniform

3 years agoPrototypes: Add test GL application
Hudd [Sun, 6 Nov 2016 17:30:49 +0000 (20:30 +0300)]
Prototypes: Add test GL application

3 years agoLua: Add tosnake
Hudd [Fri, 4 Nov 2016 01:27:12 +0000 (04:27 +0300)]
Lua: Add tosnake

3 years agoFix square-every-digit.hs
Hudd [Sat, 29 Oct 2016 15:24:00 +0000 (18:24 +0300)]
Fix square-every-digit.hs

3 years agoCodewar: Add C++ impl of population
Hudd [Sat, 29 Oct 2016 14:46:53 +0000 (17:46 +0300)]
Codewar: Add C++ impl of population

3 years agoAdd more Haskell exercises
Hudd [Sat, 29 Oct 2016 13:54:08 +0000 (16:54 +0300)]
Add more Haskell exercises

3 years agoTests: Add split.hs
Hudd [Sat, 29 Oct 2016 12:09:17 +0000 (15:09 +0300)]
Tests: Add split.hs

3 years agoCodewar: Sort things by language
Hudd [Sat, 29 Oct 2016 11:29:27 +0000 (14:29 +0300)]
Codewar: Sort things by language

3 years agoAdd more Codewar stuff
Hudd [Sat, 29 Oct 2016 11:16:28 +0000 (14:16 +0300)]
Add more Codewar stuff

3 years agoTests: Add some Haskell code
Hudd [Sat, 29 Oct 2016 03:12:45 +0000 (06:12 +0300)]
Tests: Add some Haskell code

3 years agoC++: Add Sieve of Eratosthenes
Hudd [Sat, 22 Oct 2016 16:15:58 +0000 (19:15 +0300)]
C++: Add Sieve of Eratosthenes

Implementation using std::remove

3 years agoTests: Add abominable.c++
Hudd [Thu, 20 Oct 2016 21:34:36 +0000 (00:34 +0300)]
Tests: Add abominable.c++

3 years agoTests/Ruby: Add equa.rb
Hudd [Thu, 20 Oct 2016 19:39:30 +0000 (22:39 +0300)]
Tests/Ruby: Add equa.rb

2015-10-12
I have no idea for what purpose did I write that.

3 years agoBash: Add test-inotify
Hudd [Thu, 20 Oct 2016 19:38:43 +0000 (22:38 +0300)]
Bash: Add test-inotify

3 years agoC: Add segfault.c
Hudd [Thu, 20 Oct 2016 19:36:33 +0000 (22:36 +0300)]
C: Add segfault.c

2015-02-27
Quick check to remind me if printf() checks for null.

3 years agoTests/Perl: Add regex.pl
Hudd [Thu, 20 Oct 2016 19:35:15 +0000 (22:35 +0300)]
Tests/Perl: Add regex.pl

Working with unicode in perl5 is frustrating.

3 years agoTests/Perl: Add retcode.pl
Hudd [Thu, 20 Oct 2016 19:34:24 +0000 (22:34 +0300)]
Tests/Perl: Add retcode.pl

3 years agoRuby: Add balance.rb
Hudd [Thu, 20 Oct 2016 19:32:05 +0000 (22:32 +0300)]
Ruby: Add balance.rb

Some kind of script I wrote when I was modding VCMI.

3 years agoAWTEST: Add old header
Hudd [Thu, 20 Oct 2016 19:27:30 +0000 (22:27 +0300)]
AWTEST: Add old header

It was just lying around, I don't remember if it was temporary or not.

3 years agoAdd Misc tests
Hudd [Thu, 20 Oct 2016 19:25:26 +0000 (22:25 +0300)]
Add Misc tests

3 years agoAdd old aw::compose test
Hudd [Thu, 20 Oct 2016 19:21:34 +0000 (22:21 +0300)]
Add old aw::compose test

3 years agoDeprecated: Add filesystem.cpp
Hudd [Thu, 20 Oct 2016 19:20:47 +0000 (22:20 +0300)]
Deprecated: Add filesystem.cpp

3 years agoDeprecated: Add aw::math/matrix inverse
Hudd [Thu, 20 Oct 2016 19:20:14 +0000 (22:20 +0300)]
Deprecated: Add aw::math/matrix inverse

3 years agoC++: Add DAG traversal
Hudd [Thu, 20 Oct 2016 19:19:19 +0000 (22:19 +0300)]
C++: Add DAG traversal

3 years agoC: Add nocomp.c
Hudd [Thu, 20 Oct 2016 19:17:41 +0000 (22:17 +0300)]
C: Add nocomp.c

Print string N times without using comparison operators or branching
statements (if/while/for/switch/etc)

3 years agoUpdate ctcp_sound_count
Hudd [Wed, 19 Oct 2016 11:25:47 +0000 (14:25 +0300)]
Update ctcp_sound_count

3 years agoBash: Add ClipMapper
Hudd [Sun, 16 Oct 2016 06:23:45 +0000 (09:23 +0300)]
Bash: Add ClipMapper

I used it to sort my screenshots (of which I have several thousand), I
no longer remember how it works and how to use it.

3 years agoAdd lastmonth.pl
Hudd [Sun, 16 Oct 2016 06:22:47 +0000 (09:22 +0300)]
Add lastmonth.pl

Parse sounds only for last month
blah blahs fijasdg hwibghlaeib

3 years agoC++: Add overload prototype
Hudd [Mon, 3 Oct 2016 14:07:32 +0000 (17:07 +0300)]
C++: Add overload prototype

(Exactly the one in awlib)

3 years agoDocs: Add hdf_revisions
Hudd [Tue, 4 Oct 2016 18:25:59 +0000 (21:25 +0300)]
Docs: Add hdf_revisions