Skip to content

Instantly share code, notes, and snippets.

View KageKirin's full-sized avatar

Christian Helmich KageKirin

View GitHub Profile
@KageKirin
KageKirin / osx_install.sh
Created March 7, 2012 03:37
Changed install script for OSX with Ruby 1.9.2 and PhoneGap 1.5.0
# install.sh: Installation script for OSX
PACKAGES='git chromedriver android-sdk'
XCODEFILE=$(which xed)
RVMFILE=$(which rvm)
BREWFILE=$(which brew)
GEMFILE=$(which gem)
JAVAFILE=$(which java)
ANTFILE=$(which ant)
ANDROIDFILE=$(which android)
@KageKirin
KageKirin / .clang-format
Created July 13, 2017 01:29
default .clang-format for most of my projects
---
Language: Cpp
AccessModifierOffset: -4
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignOperands: true
@KageKirin
KageKirin / scaffolding.cpp.md
Last active April 29, 2021 03:42
Scaffolding C++ projects with Google Depot Tools gclient

The following is an internal memo I recently wrote to explain the structure of a project I have been working for the last 2 years. While there are a number of details that can only be understood if you have the mentioned repos in front of you, I figured this might give some interesting ideas to other devs.


Scaffolding C++ projects

about the project scaffolding structure used among other for BADASS and AVALON

Why scaffold a project?

@KageKirin
KageKirin / .gitconfig
Created February 27, 2019 03:08
Git command aliases (.gitconfig entries)
[alias]
it = !git init && git commit --allow-empty -m \"initial commit [empty]\"
please = push --force-with-lease
commend = commit --amend --no-edit
commedit = commit --amend
ch = checkout
cb = checkout --branch
ps = push
psu = push --set-upstream
pl = pull
#!python3
"""
A simple python script to find all file types in a folder structure.
call: typewalk.py <folder> [lfs]
optional argument 'lfs' to run 'git lfs track *.ext' for each new BINARY FILE extension
I used this for making a git repo out of the full Android SDK/NDK.
"""
@KageKirin
KageKirin / git-gears-techchoices.md
Created January 8, 2020 02:53
git-gears -- technological choices

git-gears -- Technological Choices

A little blog post to cover the technological choices and considerations I took when starting with git-gears.

Minimal binary size

I'm targeting to have a small binary size.
With C# and .NET native, this might not be as minimal I'd love to have, but it's a good compromise wrt the other considerations.

@KageKirin
KageKirin / contents.md
Created January 10, 2020 03:58
another test v2

so this

should work

hopefully better

than the previous

version

@KageKirin
KageKirin / ImguiMayaStyle.cpp
Created June 11, 2020 15:40 — forked from ongamex/ImguiMayaStyle.cpp
ImGui style that look like Maya
ImGuiStyle& style = ImGui::GetStyle();
style.ChildWindowRounding = 3.f;
style.GrabRounding = 0.f;
style.WindowRounding = 0.f;
style.ScrollbarRounding = 3.f;
style.FrameRounding = 3.f;
style.WindowTitleAlign = ImVec2(0.5f,0.5f);
style.Colors[ImGuiCol_Text] = ImVec4(0.73f, 0.73f, 0.73f, 1.00f);
@KageKirin
KageKirin / SafeGL.h
Created July 1, 2020 04:25
Safe OpenGL call
#define SAFEGL(call) (call); \
{\
GLenum err = glGetError(); \
if (err != GL_NO_ERROR) \
fprintf(stdout, "GL ERROR: 0x%x at '%s' %s:%d\n", err, #call, __FILE__, __LINE__);\
}\
@KageKirin
KageKirin / recomment.cpp
Last active August 20, 2020 13:52
Recomment C++ to C89
//#!`/usr/bin/env clang++` --std=c++03 -I/usr/local/Cellar/boost/1.73.0/include -L/usr/local/Cellar/boost/1.73.0/lib -lboost_wave -orecomment
#include <fstream>
#include <iostream>
#include <sstream>
#include <cassert>
#include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
#include <boost/wave/cpplexer/cpp_lex_token.hpp>
typedef boost::wave::cpplexer::lex_token<> token_type;