Skip to content

Instantly share code, notes, and snippets.

@biojppm
biojppm / block_folded.yml
Created February 1, 2022 20:11
Test cases for YAML block folded scalars consisting of whitespace only
---
#----------------------------------
- yaml: |-
>
tree: |
+STR
+DOC
=VAL >
-DOC
-STR
@biojppm
biojppm / READ_FLOATS.md
Created November 12, 2020 03:02
benchmark results: for reading floats
@biojppm
biojppm / HandlebarsJson.cs
Last active October 2, 2017 12:39
Demonstrates use of parsed json with Handlebars.Net
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using HandlebarsDotNet;
using System.Web.Script.Serialization;
namespace ConsoleApp1
@biojppm
biojppm / main.cpp
Last active February 27, 2017 11:45
C++ resize with emplace semantics
#include <iostream>
template< class T, class ...CtorArgs >
size_t resize(T* mem, size_t prev, size_t next, CtorArgs && ...args)
{
if(next > prev)
{
for(size_t i = prev; i < next; ++i)
{
new (mem + i) T(std::forward< CtorArgs >(args)...);
@biojppm
biojppm / gist:11158062
Created April 21, 2014 22:01
ue4editor fail
Building UE4Editor...
Performing 4 Actions (4 parallel jobs)
[3/4] [compile] clang++ Module.ShaderFormatOpenGL.cpp
[1/4] [compile] clang++ Module.UnrealEd.1_of_21.cpp
[2/4] [compile] clang++ Module.MeshUtilities.cpp
In file included from /home/jppm/projects/ue4/Engine/Intermediate/Build/Linux/UE4Editor/Debug/ShaderFormatOpenGL/Module.ShaderFormatOpenGL.cpp:2:
/home/jppm/projects/ue4/Engine/Source/Developer/ShaderFormatOpenGL/Private/OpenGLShaderCompiler.cpp(1042,6) : error: use of undeclared identifier 'HSF_PixelShader'; did you mean 'RRT_PixelShader'?
case HSF_PixelShader:
^~~~~~~~~~~~~~~
RRT_PixelShader