Skip to content

Instantly share code, notes, and snippets.

View OllieReynolds's full-sized avatar

Ollie Reynolds OllieReynolds

  • London
View GitHub Profile
cmake . -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$DST -DUSE_OPENJPEG=OFF -DPORT=WPE -DENABLE_MINIBROWSER=ON -DENABLE_TOOLS=ON -DENABLE_WPE_QT_API=OFF -DENABLE_ACCESSIBILITY=OFF -DENABLE_VIDEO=ON -DENABLE_WEB_AUDIO=ON -DENABLE_WPE_QT_API=OFF -DUSE_LIBEPOXY=ON -DUSE_WPE_RENDERER=ON -DUSE_WOFF2=OFF -DENABLE_BUBBLEWRAP_SANDBOX=OFF -DENABLE_WEBGL2=ON -GNinja
quine = ['print "quine =",quine,"; exec(quine[0])"'] ; exec(quine[0])
private double fBoxCheap(Vec3 p, Vec3 b) {
return Vec3.minus(p.abs(), b).max();
}
private double map(Vec3 p) {
double theta = elapsedTime * 0.001;
Vec2 yz = new Vec2(0.0, 0.0);
yz.x = (p.y * Math.cos(theta)) - (p.z * Math.sin(theta));
Function Add(a As vec3, b As vec3) As vec3
Dim r As New vec3
r.x = a.x + b.x
r.y = a.y + b.y
r.z = a.z + b.z
Set Add = r
End Function

Keybase proof

I hereby claim:

  • I am OllieReynolds on github.
  • I am olliereynolds (https://keybase.io/olliereynolds) on keybase.
  • I have a public key whose fingerprint is 0E46 F266 0E7D F275 36D7 F88D E3AA 9285 3717 E141

To claim this, I am signing this object:

#include <iostream>
// Credit to: https://github.com/warrenm/AHEasing/blob/master/AHEasing/easing.c
double CubicEaseInOut(double p) {
if (p < 0.5) {
return 4 * p * p * p;
} else {
double f = ((2 * p) - 2);
return 0.5 * f * f * f + 1;
}
// Shader sources
const GLchar* vertexSource =
"#version 150 core\n"
"in vec2 position;"
"in vec3 color;"
"out vec3 Color;"
"void main()"
"{"
" Color = color;"
" gl_Position = vec4(position, 0.0, 1.0);"
#version 450
out vec4 frag_colour;
void main() {
frag_colour = vec4(1.0, 0.0, 0.0, 1.0);
};
std::string load_source(const char* filename) {
std::ifstream input{filename};
return std::string{std::istreambuf_iterator<char>(input), std::istreambuf_iterator<char>()};
}
#include <fstream>
#include <deque>
#include <string>
int main() {
std::ifstream input;
input.open("C:/Users/Ollie/Desktop/Captures/Q.txt", std::ifstream::in);
std::string line;
std::deque<std::string> linesReversed;