This file contains hidden or 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 <ctype.h> | |
#include <stdio.h> | |
#include <string.h> | |
/* counts case-insensitive entries for ch */ | |
static int numchars(const char *s, int ch) | |
{ | |
int r, cv; | |
const char *sv; |
This file contains hidden or 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
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T2A,T1]{fontenc} | |
\usepackage{amsmath} | |
\newcommand{\erev}{\mbox{\usefont{T2A}{\rmdefault}{m}{n}\cyrerev}} | |
\begin{document} | |
\end{document} |
This file contains hidden or 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
<p style="code { white-space: pre; }"> | |
<code white-space="pre"> | |
SELECT COUNT(*) FROM pulsar_stars <br> | |
WHERE (TARGET = 0 AND MIP BETWEEN 83 AND 84) OR <br> | |
(TARGET = 1 AND MIP BETWEEN 83 AND 89)<br> | |
^^^^^ R=79<br> | |
SELECT AVG(MIP) FROM pulsar_stars <br> | |
WHERE (TARGET = 0 AND MIP BETWEEN 83 AND 84) OR <br> | |
(TARGET = 1 AND MIP BETWEEN 83 AND 89)<br> | |
^^^^^ R=84.5427964154411764705882352941176470588<br> |
This file contains hidden or 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
.ban gogypissinmydreammask username | |
.ban jschlattandsapnapsimp username | |
.ban quackitysboyfriend username | |
.ban 101gogysimp username | |
.ban quackityspisskink username | |
.ban quackitymakesmecum username | |
.ban tommyinnitissexy username | |
.ban quackityhasafatcock username | |
.ban jordan_karljacobs_simp username | |
.ban xxxcreamyinnitxdxxx username |
This file contains hidden or 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
Here are some thoughts about the world format | |
because storing all the chunks in memory sucks. | |
The format still has no name but I would name it | |
something like VG (as for VGame - project name) | |
or VX (as for Voxelius - game's name) | |
Core world configuration is stored in a specific | |
file called world.toml and placed in the root of | |
the "world/" subdirectory. This file contains |
This file contains hidden or 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
Advanced Screen Technology Bureau | |
of Union of Sovereign States | |
Copyright © 199X | |
HARDWARE INFO: | |
Name: LPM25 (Low Power Monitor model 25) | |
Hardware ID: 0x1F25 | |
Manufacturer: 0x911F (ASTB_USS) | |
DESCRIPTION: |
This file contains hidden or 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
/* | |
* main.cc | |
* Created: 2021-05-31, 01:14:45. | |
* Copyright (C) 2021, Kirill GPRB. | |
*/ | |
#include <GLFW/glfw3.h> | |
#include <rena/renderdevice.hh> | |
#include <stdio.h> | |
static GLFWwindow *g_window = NULL; |
This file contains hidden or 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
// PBR shader. | |
// Originates from https://github.com/thexa4/source-pbr | |
// Adopted for Refraction. Things done so far: | |
// 1. Fixed SP branch crash (See PSREG_FREE). | |
// 2. Removed all the verbosity in the comments | |
// leaving only stuff that explains obfuscated stuff. | |
#include "BaseVSShader.h" | |
#include "cpp_shader_constant_register_map.h" | |
#include "pbr_vs30.inc" |
This file contains hidden or 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 <GLFW/glfw3.h> | |
#include <physfs.h> | |
#include "common/util.h" | |
#include "render/render.h" | |
#include "globals.h" | |
#include "window.h" | |
static void error_callback(int code, const char *message) | |
{ | |
lprintf("glfw error %d: %s", code, message); |
This file contains hidden or 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 "mathlib.h" | |
#define ROW1 0 | |
#define ROW2 4 | |
#define ROW3 8 | |
#define ROW4 12 | |
void Math_VectorInit(vector2D vec) | |
{ | |
vec[0] = 0.0f; |