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
<?php | |
/* PORTAL 2 PUZZLEMAKER MAP MERGER - VERSION 1.0.0 (2014-02-20) | |
* COPYRIGHT (C) 2013,2014 Joel Yliluoma - http://iki.fi/bisqwit/ | |
* Source code license: MIT | |
*/ | |
/* PUT YOUR SETTINGS HERE: */ | |
// Filenames for the input and output maps |
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 <stdint.h> | |
#include <stdio.h> | |
#include <cstring> | |
#include <string> | |
#include <map> | |
#include <vector> | |
#include <cmath> |
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
/* TO COMPILE: | |
* | |
i686-w64-mingw32-g++.exe -o vbsp_bisqwit.exe vbsp_bisqwit.cc -Wall -Wextra -pedantic -Ofast -static -flto -s -std=gnu++1y -fopenmp | |
OR: | |
x86_64-w64-mingw32-g++.exe -o vbsp_bisqwit.exe vbsp_bisqwit.cc -Wall -Wextra -pedantic -Ofast -static -flto -s -std=gnu++1y -fopenmp | |
OR |
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
/** | |
* | |
* Block-local temporaries | |
* | |
* Copyright (C) 2006,2014 Bisqwit (http://iki.fi/bisqwit/) | |
* | |
* Example use: | |
* bool in_critical_context = false; | |
* | |
* void example() |
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
/** | |
* Mandelbrot fractal portable SIMD calculation core | |
* Copyright (c) 2017 Joel Yliluoma (http://iki.fi/bisqwit/) | |
*/ | |
#include <array> | |
#include <cmath> | |
/* | |
* SIMDMandelCalculator template: | |
* | |
* T is the underlying (real) numeric type, with which the calculations |
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 <memory> | |
#include <iterator> | |
#include <typeindex> | |
/* Tiny transform_iterator for C++. Copyright 2018 © Joel Yliluoma - http://iki.fi/bisqwit/ | |
* License: MIT | |
Example WITHOUT transform_iterator: | |
template<typename Func> |
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 <string> | |
#include <vector> | |
#include <algorithm> | |
/* textbox: Abstraction for 2-dimensional text strings, with VT100 linedrawing support */ | |
/* Copyright (c) 2017 Joel Yliluoma - http://iki.fi/bisqwit/ */ | |
/* License: MIT */ | |
/* Requires a C++17 capable compiler and standard library. */ | |
struct textbox | |
{ |
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 <vector> | |
#include <cmath> | |
#include <cstdlib> | |
#include <ctime> | |
#include <unistd.h> | |
#include <cstdio> | |
using namespace std; | |
/* saturation, value and hue all are 0..1 */ |
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
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi |
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
// RGB to YUV conversion matrix | |
#define LUMA_COEFFICIENTS 0.29900, 0.58700, 0.11400 | |
#define CHROMA1_COEFFICIENTS -0.14713, -0.28886, 0.43600 | |
#define CHROMA2_COEFFICIENTS 0.61500, -0.51499, -0.10001 | |
// YUV to RGB conversion matrix | |
#define R_YUV_COEFFICIENTS 1, 0.00000, 1.13983 | |
#define G_YUV_COEFFICIENTS 1, -0.39465, -0.58060 | |
#define B_YUV_COEFFICIENTS 1, 2.03211, 0.00000 | |
template<typename VecType> |
OlderNewer