Skip to content

Instantly share code, notes, and snippets.

View malkia's full-sized avatar

Dimiter 'malkia' Stanev malkia

View GitHub Profile
@malkia
malkia / gist:89c6a78405132bc30dcc
Created December 18, 2014 09:25
chrome://version
Google Inc.
Copyright 2014 Google Inc. All rights reserved.
Google Chrome 40.0.2214.43 (Official Build) beta
Revision 9d5cd14c677accab1e25f0ee3d58667ff5b41dac
Platform 6457.36.0 (Official Build) beta-channel parrot_ivb
Blink 537.36 (@62f90f76bfca59fa9dd2d73329019b2d841a9b5e)
JavaScript V8 3.30.33.8
Flash 16.0.0.235-r1
User Agent Mozilla/5.0 (X11; CrOS x86_64 6457.36.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.43 Safari/537.36
#define FAST // Comment this out this going 7 times slower
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace netBlah1
{
class Program
{
cd /usr/local
tar jxf ~/opencv2.4.8-cygwin64-g++-4.8.2-shared-release-20131231.tar.bz2
cd ~
First I've downloaded ode from here:
http://sourceforge.net/projects/opende/files/ODE/0.12/ and extracted it in my e:\p under e:\p\ode-0.12
Then I did (from cmd.exe)
bash --login -i
$ cd /cygdrive/e/p/ode-0.12
$ ./configure
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
/* Stolen from luajit - http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_obj.h */
/* Look for examples here - http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_meta.c */
/* ANd http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_obj.c */
#define MYDEFS(_) _(one) _(two) _(three) _(four) _(five)
/* Make an enum from 'one', 'two', etc. */
typedef enum my_enums{
#define MYENUM(name) my_##name,
MYDEFS(MYENUM)
#include <type_traits>
#include <iostream>
#include <cassert>
#include <cstdint>
#include "murmur3_32_constexpr.hpp"
// Add compilers here
#define UNKNOWN -1
#define GCC 0
#define CLANG 1
@malkia
malkia / ProFi.lua
Created December 2, 2012 07:59 — forked from perky/ProFi.lua
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
--[[
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php.
Example:
ProFi = require 'ProFi'
ProFi:start()
some_function()
another_function()
coroutine.resume( some_coroutine )
ProFi:stop()
@malkia
malkia / bolo-again.txt
Created September 19, 2012 06:46
bolo again
OpenGL - glfw, regal, cairo
GLESv2 - egl, gles2, cairo-gles2
@malkia
malkia / ray-object.lua
Created July 5, 2012 05:21 — forked from geoffleyland/ray-object.lua
Raytrace using vector objects
local sqrt = math.sqrt
local huge = math.huge
local delta = 1
while delta * delta + 1 ~= 1 do
delta = delta * 0.5
end
-- vectors -------------------------------------------------------------------
@malkia
malkia / ray-stack.lua
Created July 5, 2012 05:21 — forked from geoffleyland/ray-stack.lua
Raytrace avoiding vector objects
local sqrt = math.sqrt
local huge = math.huge
local delta = 1
while delta * delta + 1 ~= 1 do
delta = delta * 0.5
end
-- vectors -------------------------------------------------------------------