Skip to content

Instantly share code, notes, and snippets.

Chris Gregory czipperz

Block or report user

Report or block czipperz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


Add Dvorak

Language Settings



Add a keyboard

United States-Dvorak

Make dvorak the default

Remove qwerty and readd it

Remove control+shift switch keyboard layout hotkey


a [abc] Used to do a cheap reference-to-reference conversion.

This trait is similar to [AsMut] which is used for converting between mutable references. If you need to do a costly conversion it is better to implement [From] with type &T or write a custom function.

czipperz /
Created Apr 3, 2016
Define basic manual variant class.
#include <string>
#include <exception>
#if __cplusplus < 201103L
// for c++98 compiler support
#define noexcept throw ()
#if __cplusplus < 201103L

Remember username: when clone use

When already cloned (and installed):

gr ro; gr ao`

w/o gr (normal git):

git remote remove origin
czipperz / String Example
Last active Aug 29, 2015
String Example
View String Example
public static void main(String[] args) {
String a = "asdf";
String b = "asdf";
String c = b;
if(a == b)
System.out.print("AAA, ");
if(b == c)
System.out.print("BBB, ");
if(a == c)
View Effects of Slark essence shift
int maxHealth = 600, currentHealth=maxHealth;
int essenceShiftStacks=0;
int baseDamage=60;
int burstFromPounce = 60;
public int getSlarkDamage() {
return baseDamage + 3*essenceShiftStacks;
public static void main(String[] args) {
You can’t perform that action at this time.