Skip to content

Instantly share code, notes, and snippets.

View untodesu's full-sized avatar
💣
アイウエオ > アエイオウ

Kirill Dmitrievich untodesu

💣
アイウエオ > アエイオウ
View GitHub Profile
#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;
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage{amsmath}
\newcommand{\erev}{\mbox{\usefont{T2A}{\rmdefault}{m}{n}\cyrerev}}
\begin{document}
\end{document}
<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>
@untodesu
untodesu / gist:1cd6483d6ae99c8b515cadc5f9795e46
Last active August 30, 2022 18:44
Jschlatt purge list
.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
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
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:
/*
* 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;
// 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"
#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);
@untodesu
untodesu / mathlib.c
Created April 25, 2021 17:46
mathlib
#include "mathlib.h"
#define ROW1 0
#define ROW2 4
#define ROW3 8
#define ROW4 12
void Math_VectorInit(vector2D vec)
{
vec[0] = 0.0f;