This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Digital Ocean Natted IP for private nets | |
NATADDR=0.0.0.0 | |
setopt promptsubst | |
setopt promptpercent | |
# crunch theme colorpreset examples | |
# esembeh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================================== | |
# 1. PATH SETUP | |
# ===================================================================================== | |
#export PATH=/bin:/usr/bin:/usr/local/bin | |
export TEXINPUTS=/Users/yourUserName/.TexConfigs//: | |
# For SFML programming | |
export LD_LIBRARY_PATH=/usr/local/bin/SFML-2.5.0-macOS-clang/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THIS CODE WILL ERROR | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
class A { | |
private: | |
int private_part; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void LinkedList::print() { | |
Node *travel = front; // Line 1 | |
while (travel) { // Line 2 | |
// do stuff here | |
travel = travel->next; // Line 3 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(100,1,-1): | |
print(f"{i} bottles of beer on the wall, {i} bottles of beer.") | |
print(f"Take one down, pass it around, {i-1} bottles of beer on the wall.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
for (int i = 99; i > 0; i--) { | |
cout << i << " Bottles of beer on the wall " << i << " bottles of beer.\n"; | |
cout << "Take one down, pass it around, " << (i - 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update && apt upgrade -y | |
apt install git | |
apt install zsh | |
apt install wget | |
chsh -s /bin/zsh root | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
cp ~/.zshrc ~/.zshrc.hold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Digital Ocean Natted IP for private nets | |
NATADDR=0.0.0.0 | |
setopt promptsubst | |
setopt promptpercent | |
# crunch theme colorpreset examples | |
# esembeh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================================== | |
# MY STUFF | |
# ===================================================================================== | |
# User configuration | |
export EDITOR=nano | |
alias cp='cp -i' # Preferred 'cp' implementation | |
alias cpp='cp -iv' # Preferred 'cp' implementation | |
alias mv='mv -iv' # Preferred 'mv' implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Standard: Cpp11 | |
BasedOnStyle: LLVM | |
IndentWidth: 4 | |
ColumnLimit: 0 | |
AccessModifierOffset: -4 | |
NamespaceIndentation: All | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterEnum: false | |
AfterStruct: false |
NewerOlder