This file contains hidden or 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
alias commit='git commit -m' | |
alias l='ls -lF' | |
#trolol alias because of http://xkcd.com/530 | |
alias highvolume="osascript -e 'set volume 7'" | |
alias mute="osascript -e 'set volume output muted true'" | |
# List only directories | |
alias lsd='ls -l ${colorflag} | grep "^d"' |
This file contains hidden or 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
{ | |
"installed_packages": | |
[ | |
"DocBlockr", | |
"Emmet", | |
"Gist", | |
"Package Control", | |
"SendToPasteBin", | |
"SFTP", | |
"SublimeLinter", |
This file contains hidden or 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
int main() | |
{ | |
locale swedish("swedish"); | |
locale::global(swedish); | |
srand((unsigned)time(NULL)); | |
string playerName; | |
int nrOfCardDecks = 1; | |
int cardSum = 0; | |
int cardPos = 0; | |
Card lastCard; |
This file contains hidden or 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 printRecursiveReverseString(string s) { | |
// Om strängens längd är 0, returnera | |
if(s.length() == 0 ) { | |
return; | |
} | |
// Character är tar den första charen i strängen | |
//cout << "Character: " << s.substr(0, 1) << endl; | |
string character = s.substr(0, 1); | |
// rekursivt anrop (Kallar på sig själv). |
This file contains hidden or 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 qsort(int array[], int end, int start = 0) { | |
int i=start, j = end; | |
int temp; | |
int pivot=array[(start+end)/2]; | |
cout << "Sorterar från " << start << " till " << end << " pivot " << pivot << endl; | |
while (i <= j) { | |
while (array[i] < pivot) { | |
i++; |
NewerOlder