Skip to content

Instantly share code, notes, and snippets.

View Michaelangel007's full-sized avatar

Michael "Code Poet" Pohoreski Michaelangel007

  • Seattle, WA
View GitHub Profile
@Michaelangel007
Michaelangel007 / c.c
Created October 10, 2015 06:27 — forked from nkurz/c.c
// C implementation for Pathfinding Benchmark by nate@verse.com
// See https://github.com/logicchains/LPATHBench for details
// Summary of benchmarks (see bottom for full numbers)
// 8981 LANGUAGE C 623
// 8981 LANGUAGE C++/clang 734
// 8981 LANGUAGE C++/gcc 755
// Best results compiling with GCC 4.7 or 4.8 -O2
// clang, icc and GCC 4.9 slightly worse with -O1, -O2, -O3, -Ofast
// -O3 and -Ofast much worse for all GCC. -O1 mixed but worse.
@Michaelangel007
Michaelangel007 / outfitting.csv
Created October 9, 2015 23:43
ID mapping for E:D outfitting modules
id category name mount guidance ship class rating
128049250 standard Lightweight Alloy Sidewinder 1 I
128049251 standard Reinforced Alloy Sidewinder 1 I
128049252 standard Military Grade Composite Sidewinder 1 I
128049253 standard Mirrored Surface Composite Sidewinder 1 I
128049254 standard Reactive Surface Composite Sidewinder 1 I
128049256 standard Lightweight Alloy Eagle 1 I
128049257 standard Reinforced Alloy Eagle 1 I
128049258 standard Military Grade Composite Eagle 1 I
128049259 standard Mirrored Surface Composite Eagle 1 I
@Michaelangel007
Michaelangel007 / shipyard.csv
Created October 9, 2015 23:43
ID mapping for E:D ships in the shipyard
id name
128049249 Sidewinder
128049255 Eagle
128049261 Hauler
128049267 Adder
128049273 Viper
128049279 Cobra Mk III
128049285 Type-6 Transporter
128049297 Type-7 Transporter
128049303 Asp
@Michaelangel007
Michaelangel007 / perlin.c
Last active December 10, 2015 19:01 — forked from afarah1/perlin.c
/*
perlin.c - Creates an image of Perlin (gradient) noise.
Default will write to a BMP. (Optionally writes it to a CSV file.)
Original Version: Alef Farah https://gist.github.com/a442/e82c5cbd29083558bd81
Cleaned up ver: Michaelangel007 aka MysticReddit https://gist.github.com/Michaelangel007/89bbb866cb048938df04
Enhancements:
+ Save perlin.bmp as default
+ Optional OpenMP support
+ Optional save perlin.CSV
+ Cleaned up code for readability
/*
* OpenSimplex (Simplectic) Noise in C++
* Original version by Arthur Tombs * Modified 2014-09-22
* Cleaned up version by Michaelangel007
*
* This is a derivative work based on OpenSimplex by Kurt Spencer:
* https://gist.github.com/KdotJPG/b1270127455a94ac5d19
* Which was derived from Steven Gustavson,
* http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
* "Reference" implementation: