Skip to content

Instantly share code, notes, and snippets.

View haxscramper's full-sized avatar

haxscramper haxscramper

View GitHub Profile
ColumnLimit: 75
IndentWidth: 4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
Cpp11BracedListStyle: 'true'
IndentWrappedFunctionNames: 'true'
IndentPPDirectives: AfterHash
KeepEmptyLinesAtTheStartOfBlocks: 'false'
SpacesInParentheses: 'false'
@haxscramper
haxscramper / cpp_operator_overloading.cpp
Created June 25, 2018 17:11
C++ operator overloading.
#include <string>
#include <iostream>
struct Test {
std::string word;
Test& operator()() { return *this; }
std::string operator()(float f) { return word; }
Test& operator[](std::string w) {
word.append(w);
return *this;
@haxscramper
haxscramper / Surfingkeys_settings.js
Created March 19, 2018 08:44
Setting for surfingkeys chrome extension
var remapArray =
[
[';', 'R'], // One tab right
['l', 'E'], //One tab left
[',', 'S'], //History back
['t', 'on'], // New Tab
['z', 'X'], // Restore closed tab
['.', 'D'], // History forward
['<', '<<'], // Move tab left
['>', '>>'], // Move tab right