I hereby claim:
- I am mwbrooks on github.
- I am mwbrooks (https://keybase.io/mwbrooks) on keybase.
- I have a public key whose fingerprint is C28F 5906 C202 EAE7 3CC0 1230 CD57 9760 B735 6299
To claim this, I am signing this object:
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
I hereby claim:
To claim this, I am signing this object:
typeof NaN === 'number' // true | |
Infinity === 1/0 // true | |
0.1 + 0.2 === 0.3 // false |
# Are you using the BASH shell? | |
echo $SHELL # /bin/bash | |
# | |
# Day-to-day shortcuts for the BASH shell | |
# --------------------------------------- | |
# | |
# up/down arrows => View your command history | |
# | |
# tab => Auto-complete file and directory names from ... |
#include <typeinfo> | |
using namespace std; | |
int myNumber = 5; | |
const char *name1 = typeid(int).name(); // i on gcc, int on VSC++ | |
const char *name2 = typeid(myNumber).name(); // i on gcc, int on VSC++ |
#include <cstdio> // printf function | |
class SuperClass | |
{ | |
public: | |
SuperClass(int foo) | |
{ | |
printf("SuperClass constructor fired with value %d\n", foo); | |
} | |
}; |
# Show all tags | |
git tag | |
# Create tag | |
git tag <tag_name> <branch_name - default is current branch> | |
# Checkout a tag | |
git checkout <tag_name> |
# Local Branch | |
# ============ | |
# Create | |
git branch my_feature | |
git checkout -b my_feature | |
# Delete | |
git branch -d my_feature | |
# Remote Branch |
// Uncomment to disable assertions. | |
// NDEBUG macro must be defined before #include <assert.h> | |
// #define NDEBUG | |
#include <assert.h> | |
int main (int argc, char * const argv[]) { | |
int *goodInteger = new int(2); | |
int *badInteger = NULL; |
#include <cstdio> | |
// Class Definition | |
// | |
class MyClass | |
{ | |
public: | |
void print(int value1, int value2 = 200); | |
}; |