Skip to content

Instantly share code, notes, and snippets.

View polylines.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:6587fe69f12572d638ed23fff1970141
const Color3u8 Aliceblue = { 240, 248, 255 };
const Color3u8 Antiquewhite = { 250, 235, 215 };
const Color3u8 Aqua = { 0, 255, 255 };
const Color3u8 Aquamarine = { 127, 255, 212 };
const Color3u8 Azure = { 240, 255, 255 };
const Color3u8 Beige = { 245, 245, 220 };
const Color3u8 Bisque = { 255, 228, 196 };
const Color3u8 Black = { 0, 0, 0 };
const Color3u8 Blanchedalmond = { 255, 235, 205 };
const Color3u8 Blue = { 0, 0, 255 };
@karimnaaji
karimnaaji / feed.opml
Last active Aug 22, 2017
Blog on game programming / graphics
View feed.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - RSS</title>
</head>
<body>
<outline text="Graphics, Games, Programming" title="Graphics, Games, Programming">
<outline htmlUrl="http://olickspulpit.blogspot.com/" title="olickspulpit.blogspot.com" xmlUrl="http://olickspulpit.blogspot.com/feeds/posts/default" type="rss" text="olickspulpit.blogspot.com"/>
<outline htmlUrl="https://0fps.net" title="0 FPS" xmlUrl="https://0fps.net/feed/" type="rss" text="0 FPS"/>
<outline htmlUrl="https://www.sebastiansylvan.com/index.xml" title="A Random Walk Through Geek-Space" xmlUrl="http://www.sebastiansylvan.com/index.xml" type="rss" text="A Random Walk Through Geek-Space"/>
@karimnaaji
karimnaaji / valgrind.md
Last active Sep 21, 2020
Valgrind steps to get cache misses
View valgrind.md
@karimnaaji
karimnaaji / GoogleFonts.txt
Created Jan 9, 2017
Google fonts list (TTF)
View GoogleFonts.txt
{
"kind": "webfonts#webfontList",
"items": [
{
"kind": "webfonts#webfont",
"family": "ABeeZee",
"category": "sans-serif",
"variants": [
"regular",
"italic"
@karimnaaji
karimnaaji / reserve_vs_resize.cpp
Last active Sep 8, 2016
reserve_vs_resize.cpp
View reserve_vs_resize.cpp
#include <time.h>
#include <stdio.h>
#include <vector>
struct A {
int mem[100];
};
int n = 1000000;
@karimnaaji
karimnaaji / teapot.h
Created Mar 15, 2016
Teapot in a single header file (normal,uvs,tangent)
View teapot.h
This file has been truncated, but you can view the full file.
#pragma once
/**
\file minimalOpenGL/teapot.h
\author Morgan McGuire, http://graphics.cs.williams.edu
Geometric data for the Utah teapot.
Distributed with the G3D Innovation Engine http://g3d.cs.williams.edu
*/
View const_string_vs_value_string.cpp
#include <iostream>
#include <ctime>
#include <string>
void function_a(const std::string& str) {
return;
}
void function_b(std::string str) {
return;
View plot.frag
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265359
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
@karimnaaji
karimnaaji / track.cpp
Created Jun 16, 2015
track c++ allocations
View track.cpp
global operator new
global operator new []
global operator delete
global operator delete []
#undef new
void *operator new (size_t size, char *file, int line, char *function);
// [...]
#define new new (__FILE__, __LINE__, __FUNCTION__)