Skip to content

Instantly share code, notes, and snippets.

View NuclearCookie's full-sized avatar

Pieter Vantorre NuclearCookie

View GitHub Profile
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
["mod+shift+n", "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"],
["mod+shift+p", "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],
@NuclearCookie
NuclearCookie / log_end_time.sh
Created March 7, 2017 08:45
bash script that logs the time you can go home :)
function log_end_time() {
export HOURS_PER_DAY=7.6
export LUNCH_BREAK_HOURS=1
echo "You can go home starting on "
date -d "$(echo $(echo ($HOURS_PER_DAY+$LUNCH_BREAK_HOURS)*60*60 | bc -l)-$(</proc/uptime awk '{print $1}') | bc -l) seconds"
}
@NuclearCookie
NuclearCookie / GitEditor.sh
Last active August 29, 2015 14:08
git config --global core.editor PathTo/GitEditor.sh #cygwin #Windows #Sublime
#!/bin/sh
# Script to setup your prefered editor in git.
# Script is designed for Windows while using Cygwin
# I had problems setting up the editor because using "$*" would open the
# COMMIT_EDITMSG file of an emulated drive. Using the windows version of the cygpath fixes this!
# USAGE:
# Save this script in a location (Preferably without spaces)
#include "DebugDraw.h"
#include "../../Graphics/GraphicsManager.h"
#include "../../Graphics/ScaleSystem.h"
#include "../../Logger.h"
#include "../AARect.h"
#include "../Rect.h"
#include "../Helpers.h"
#include "../Math.h"
namespace star
#pragma once
#include "../../defines.h"
#include "../../Graphics/Color.h"
#include "../../Graphics/Shader.h"
#ifdef DESKTOP
#include <gl\GL.h>
#else
#include <GLES2/gl2.h>
#endif
@NuclearCookie
NuclearCookie / CollisionManager.cpp
Created November 22, 2013 09:30
Gist uses 8 spaces for a tab. In VS this is 4 or less (i think) this causes the lines to look a lot longer than they are
#include "CollisionManager.h"
#include "../../StarComponents.h"
#include <algorithm>
#include "../../Components/Physics/BaseColliderComponent.h"
namespace star
{
CollisionManager::CollisionManager(void)
: m_CollisionMap()
{
#pragma once
#include "../../defines.h"
#include <vector>
#include <map>
namespace star
{
struct Context;
class Object;
#include "CircleColliderComponent.h"
#include "../../Context.h"
#include "../../Objects/Object.h"
#include "../../Helpers/Math.h"
#include "../../Helpers/Debug/DebugDraw.h"
#include "../../Graphics/GraphicsManager.h"
#include "../../Scenes/SceneManager.h"
#include "../../Scenes/BaseScene.h"
#include "../../Physics/Collision/CollisionManager.h"
#pragma once
#include "BaseColliderComponent.h"
#include "../../defines.h"
namespace star
{
struct Context;
class CircleColliderComponent final : public BaseColliderComponent
#include "BaseColliderComponent.h"
#include "../../Context.h"
#include "RectangleColliderComponent.h"
#include "CircleColliderComponent.h"
#include "../TransformComponent.h"
#include "../../Helpers/Math.h"
#include "../../Scenes/SceneManager.h"
#include "../../Scenes/BaseScene.h"
#include "../../Physics/Collision/CollisionManager.h"