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
View polymode-markdown-example-1.md

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
czipperz / Cell.cc
Created Apr 3, 2016
Define basic manual variant class.
View Cell.cc
#include <string>
#include <exception>
#if __cplusplus < 201103L
// for c++98 compiler support
#define noexcept throw ()
#endif
#if __cplusplus < 201103L
#define EQUALS_DELETE
View example.md

Remember username: when clone use https://USERNAME@url.com/aseruiosuerio

When already cloned (and https://github.com/czipperz/gr installed):

gr ro; gr ao https://USERNAME@url.com/aseirousrieosu`

w/o gr (normal git):

git remote remove origin
@czipperz
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.