Skip to content

Instantly share code, notes, and snippets.

View iKlsR's full-sized avatar
😲
daemon.

iKlsR

😲
daemon.
View GitHub Profile
@iKlsR
iKlsR / pclc
Created March 29, 2012 20:03
c++ portable command line compiler for mingw, java and msvc
#include <Windows.h>
#include <iostream>
#include <string>
#include <conio.h>
std::string filename;
std::string parameters;
std::string new_filename;
std::string gcompiler = "g++";
@iKlsR
iKlsR / build.bat
Created June 25, 2012 18:21
build my ogl proj(mingw)
@echo off
echo building..
g++ -o core src/core.cpp -lfreeglut -lopengl32 -lglu32 -lglew32
copy C:\lib\freeglut\freeglut.dll
copy C:\lib\glew32\glew32.dll
core.exe
echo cleaning..
#include <vector>
#include <stdio.h>
#include <string>
#include <cstring>
#include <iostream>
#include <glm/glm.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
@iKlsR
iKlsR / obp
Created August 2, 2012 18:49
front page..
#include <iostream>
#include <stdio.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <GL/glew.h>
#include <GL/glfw.h>
@iKlsR
iKlsR / helper.py
Last active July 25, 2018 23:36
pygame boilerplate..
import pygame
import os, sys
width, height = 400, 400
os.environ['SDL_VIDEO_CENTERED'] = '1'
screen = pygame.display.set_mode((width, height))
class Core(object):
def __init__(self, surface, name):
pygame.display.set_caption(name)
@iKlsR
iKlsR / poor_me.c
Last active October 8, 2015 02:08
something something almost swizzly vectorish for the poor
#include <stdio.h>
typedef struct {
char t;
int x, y;
} swizzle;
swizzle image;
@iKlsR
iKlsR / bloodust draw code etc...
Created August 12, 2012 17:11
hrrmm code from irc
#include "model.hpp"
#include "global.hpp"
#include <sys/stat.h>
#include <glm/gtx/integer.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <sstream>
@iKlsR
iKlsR / unpack
Created August 14, 2012 02:19
stupid.. i hate **kwargs :) no i love it
#include "iostream"
using namespace std;
int unpack(int array[], int size) {
int index = 0;
int i = 0;
for(; i < size; ++i)
@iKlsR
iKlsR / mooar
Created August 14, 2012 02:36
errrrr
#include "iostream"
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main(int argc, char const *argv[])
{
long long unsigned int * ptr = new long long unsigned int; /* modern */
@iKlsR
iKlsR / cmingw.bat
Created October 17, 2012 14:54
my special build script for blender x64 with mingw64 having mingwx86(in path) and cygwin then compress
@echo off
echo INFO -- mingw64/bin added to path
set Path=C:\mingw64\bin;%PATH%
echo INFO -- navigating to cygwin/bin
cd ../../../cygwin/bin
echo INFO -- moving troublesome sh.exe to tmp dir
move sh.exe C:\Users\iKlsR