Skip to content

Instantly share code, notes, and snippets.

View olesgedz's full-sized avatar
⁉️
Nani!?

Oles olesgedz

⁉️
Nani!?
View GitHub Profile
@olesgedz
olesgedz / private_fork.md
Created March 26, 2024 12:15 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@bazhenovc
bazhenovc / the_sane_rendering_manifesto.md
Last active September 30, 2025 18:19
The Sane Rendering Manifesto

The Sane Rendering Manifesto

The goal of this manifesto is to provide an easy to follow and reasonable rules that realtime and video game renderers can follow.

These rules highly prioritize image clarity/stability and pleasant gameplay experience over photorealism and excess graphics fidelity.

Keep in mind that shipping a game has priority over everything else and it is allowed to break the rules of the manifesto when there are no other good options in order to ship the game.

Do not use dynamic resolution.

@herohiralal
herohiralal / CurveController.cs
Created January 18, 2022 18:25
Add curvature to the rendering without changing simulation code.
using UnityEngine;
namespace AIEngineTest
{
public class CurveController : MonoBehaviour
{
private static CurveController s_Instance = null;
private const float k_StraightDistanceClamp = 50f;
private const float k_CurvatureClamp = 10f;
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'
@bmegli
bmegli / CMake_3_20_Ubuntu_18_04.md
Last active June 11, 2025 01:16
CMake 3.20 in Ubuntu 18.04 (reversible way)

Motivatation

  • modern CMake is required for building a lot of new software
  • CMake is dependency for many packages (e.g. ROS related)
  • we don't want to remove CMake (which would remove packages that depend on it)
  • we want safe procedure to update CMake that can be reversed easily

Current version in OS

Check current version

@cnlohr
cnlohr / forgot_to_check_out_with_recurse_submodules.md
Last active August 9, 2025 09:26
Git forgot to clone recursively (forgot to check out with recurse submodules)
@TheCherno
TheCherno / Instrumentor.h
Last active October 17, 2025 07:36
Basic Instrumentation Profiler
//
// Basic instrumentation profiler by Cherno
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like:
//
// Instrumentor::Get().BeginSession("Session Name"); // Begin session
// {
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling
// // Code
// }
@olesgedz
olesgedz / rtv1
Last active January 21, 2020 15:35
rtv1
https://habr.com/ru/post/436790/
https://habr.com/ru/post/437714/
https://habr.com/ru/post/443174/
http://esate.ru/uroki/OpenGL/uroki-OpenGL-c-sharp/
https://courses.edx.org/courses/course-v1:UCSanDiegoX+CSE167x+2T2018/courseware/Unit_2/L6/1?activate_block_id=block-v1%3AUCSanDiegoX%2BCSE167x%2B2T2018%2Btype%40html%2Bblock%40video_l6v1
https://bitbucket.org/Areredify/code_example/src/master/
https://gamedev.ru/code/articles/vulkan_raytracing
https://github.com/ssloy/tinyraytracer/wiki
https://www.youtube.com/watch?v=ARn_yhgk7aE&t=580s
@gcatlin
gcatlin / sdl-metal-example.m
Last active February 24, 2025 15:11
Minimal C SDL2 Metal example
//
// cc sdl-metal-example.m `sdl2-config --cflags --libs` -framework Metal -framework QuartzCore && ./a.out
//
#include <SDL.h>
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalLayer.h>
int main (int argc, char *args[])
{
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal");