Skip to content

Instantly share code, notes, and snippets.

View TheKingOfAtlantis's full-sized avatar
🎲

Sulaiman Sulaiman TheKingOfAtlantis

🎲
View GitHub Profile

Keybase proof

I hereby claim:

  • I am thekingofatlantis on github.
  • I am kingofatlantis (https://keybase.io/kingofatlantis) on keybase.
  • I have a public key ASBIKo5bdQMGr8R7aE2qIrxnQMiPgnisD08Lc3me6WRmqwo

To claim this, I am signing this object:

@TheKingOfAtlantis
TheKingOfAtlantis / .git-commit-template.txt
Last active July 16, 2018 12:12 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>:<subject> (Max 50 char)
# --------------------
# Type can be:
# Feature (new feature)
# Fix (bug fix)
# Refactor (refactoring production code)
# Style (formatting, missing semi colons, etc; no code change)
# Docs (changes to documentation)
# Test (adding or refactoring tests; no production code change)
# Chore (updating grunt tasks etc; no production code change)
@TheKingOfAtlantis
TheKingOfAtlantis / StringConstains.h
Last active August 29, 2015 14:28
A set of constraints which relate to strings
/*******************************************************************************\
* @brief Defines whether a type is a C-style string type
***
* @tparam Type - The type to check
\*******************************************************************************/
template<template Type> struct is_c_string_type
: std::integral_constant<bool,
std::is_same<Type, CString>::value ||
std::is_same<Type, WCString>::value ||
std::is_same<Type, CString16>::value ||
@TheKingOfAtlantis
TheKingOfAtlantis / Zleep.cpp
Last active August 29, 2015 14:04
Gives a more OS consistent sleep/delay function
#include "Zleep.h"
#include <Windows.h>
void zleep(unsigned int period) {
#if defined(_WIN32)
sleep(period)
#elif defined(__unix__)
sleep(period/1000);
#endif