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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Variant52 | |
{ | |
class Program | |
{ | |
const int N = 4; | |
const int M = 5; |
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
$ valgrind --main-stacksize=200000000 ./main | |
<... Some long output ...> | |
==10944== Thread 3: | |
==10944== Invalid read of size 8 | |
==10944== at 0x66184C9: ??? (in /usr/lib/libGL.so.1.0.0) | |
==10944== by 0x51A80F2: irr::video::COpenGLTexture::COpenGLTexture(irr::video::IImage*, irr::core::string<char, irr::core::irrAllocator<char> > const&, void*, irr::video::COpenGLDriver*) (in /usr/lib/libIrrlicht.so.1.8.4) | |
==10944== by 0x518D6D4: irr::video::COpenGLDriver::createDeviceDependentTexture(irr::video::IImage*, irr::core::string<char, irr::core::irrAllocator<char> > const&, void*) (in /usr/lib/libIrrlicht.so.1.8.4) | |
==10944== by 0x51837BD: irr::video::CNullDriver::loadTextureFromFile(irr::io::IReadFile*, irr::core::string<char, irr::core::irrAllocator<char> > const&) (in /usr/lib/libIrrlicht.so.1.8.4) | |
==10944== by 0x5183E37: irr::video::CNullDriver::getTexture(irr::core::string<char, irr::core::irrAllocator<char> > const&) (in /usr/lib/libIrrlicht.so.1.8.4) | |
==10944== by 0x12CE98: handlerGraphicsLoadTextu |
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
diff --git a/make-dist.sh b/make-dist.sh | |
new file mode 100755 | |
index 0000000..34e5706 | |
--- /dev/null | |
+++ b/make-dist.sh | |
@@ -0,0 +1,17 @@ | |
+#!/data/data/com.termux/files/usr/bin/env bash | |
+set -ex | |
+ | |
+mkdir -p .dist |
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
================== | |
WARNING: ThreadSanitizer: data race (pid=13839) | |
Write of size 8 at 0x7ff29ee1c508 by thread T1: | |
#0 void drawTriangle<void*>(screen&, std::pair<int, int> const&, std::pair<int, int> const&, std::pair<int, int> const&, void*) <null> (main+0x6ad6) | |
#1 void drawTriangle3d<void*>(screen&, coords const&, coords const&, coords const&, void*) <null> (main+0x7d71) | |
#2 void drawBlock<void*>(screen&, std::vector<std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, std::allocator<std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > > > const&, int, int, int, player_pos const&, void*) <null> (main+0xdfe0) | |
#3 worker(worker_shared*, int, bool) <null> (main+0xf9ed) | |
#4 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(worker_shared*, int, bool), worker_shared*, int, bool> > >::_M_run() <null> (main+0x7e02) | |
#5 execute_native_thread_routine /build/gcc/src/ |
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
#!/usr/bin/env bash | |
echo "Directory cleanup tool. For every file/dir in the current working directory it will ask you" | |
echo "if you want to remove it or not" | |
echo | |
echo "Files and directories won't be actually deleted until you delete the temporary" | |
echo "directory ~/.REMOVE" | |
echo | |
echo "This may be helpful if you accidently 'remove' something useful" |
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
// LICENSE: Unlicense <https://unlicense.org/> (Public domain) | |
// I am not liable for any damage to your eyes and mind while you are reading this code | |
#include <cmath> | |
#include <iostream> | |
#define CreateType( NewType, OldType ) typedef OldType NewType | |
#define CPlusPlusAttribute( AttributeName ) AttributeName | |
#define ADoesNotThrow CPlusPlusAttribute( noexcept ) | |
#define ANonNegative CPlusPlusAttribute( unsigned ) | |
#define AReadOnly CPlusPlusAttribute( const ) |
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
#!/usr/bin/env bash | |
sudo mkdir -p /etc/pak/mirrors/ | |
echo 'https://www.dropbox.com/s/mxbyky28bac4uoh/kodopp-dropbox-sources-pak2.list?dl=0' | sudo tee /etc/pak/mirrors/kodopp-dropbox-sources-pak2.list >/dev/null |
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
#ifdef AAA | |
#define db(x) \ | |
std::cerr << "\x1b[1;35m[DEBUG] " << __LINE__ << "\t|\x1b[0;34m " \ | |
#x "\x1b[0m = \x1b[32m" << (x) << "\x1b[0m" << std::endl | |
#define dbx(x) \ | |
std::cerr << "\x1b[1;35m[DEBUG] " << __LINE__ << "\t| \x1b[0;34m " \ | |
#x "\x1b[0m = \x1b[32m" << (x) << "\x1b[0m" << std::endl | |
#define dbs(s) \ | |
std::cerr << "\x1b[1;35m[DEBUG] " << __LINE__ << "\t| \x1b[0;34m " \ | |
<< s << "\x1b[0m" << std::endl |
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
$ coredumpctl dump -o tilix.coredump tilix | |
PID: 11306 (tilix) | |
UID: 1000 (kodopp) | |
GID: 1000 (kodopp) | |
Signal: 6 (ABRT) | |
Timestamp: Fri 2019-01-25 22:50:51 MSK (1min 29s ago) | |
Command Line: tilix | |
Executable: /usr/bin/tilix | |
Control Group: /user.slice/user-1000.slice/session-2.scope | |
Unit: session-2.scope |
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 <bits/stdc++.h> | |
// Легально скопипащено с https://github.com/kodo-pp/vsosh-region-preparation/ | |
using namespace std; | |
default_random_engine gen; | |
uniform_real_distribution<double> dist(0.0, 1.0); | |
void init_rng() |
OlderNewer