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 <vector> | |
#include <iostream> | |
int main() | |
{ | |
std::vector<int> factorials; | |
factorials.push_back(1); | |
int n; | |
std::cin >> n; | |
for (auto i = 1; i <= n; i++) |
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
--style=stroustrup -A4 | |
--indent=spaces | |
--add-brackets -j | |
--max-code-length=80 | |
--mode=c | |
--close-templates -xy | |
--align-pointer=name -k3 | |
--align-reference=name -W3 | |
--delete-empty-lines -xe | |
--unpad-paren -U |
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 source code written by Roland Ihasz | |
#include <iostream> | |
#include <vector> | |
#include <sstream> | |
int main() | |
{ | |
std::vector<int> NBuffer; | |
std::vector<std::string> AnswerBuffer; | |
std::string Nline; |
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 source code written by Roland Ihasz | |
#include <iostream> | |
#include <vector> | |
#include <sstream> | |
int alter(std::string Nline) | |
{ | |
std::vector<int> NBuffer; | |
std::vector<int> lister; | |
std::vector<char> AnswerBuffer(Nline.begin(), Nline.end()); |
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 source code written by Roland Ihasz | |
#include <vector> | |
#include <iostream> | |
int rdn(int y, int m, int d) | |
{ | |
if (m < 3) | |
{ | |
y--, m += 12; | |
} |
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 source code written by Roland Ihasz | |
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
std::vector<int> vec; | |
void chockFunc(int nu, int co, int mn) |
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
#!/bin/bash | |
MYSQL_ROOT_PASSWORD=$1 | |
if [ -z "$MYSQL_ROOT_PASSWORD" ]; then | |
echo 'Missing required $1 (password).' | |
exit 1 | |
fi | |
# check if mysql is running now. |
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 source code written by Roland Ihasz | |
#include<iostream> | |
using namespace std; | |
bool evenOrOdd(int integer) | |
{ | |
if (integer % 2==0) | |
return true; | |
else | |
return false; |
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
import os | |
def getcurrentloc(fileName): | |
isfile = os.path.isfile(fileName) | |
notfound = (str(fileName) + " does not exist") | |
if isfile: # if (True) file exist return the path | |
return os.path.abspath(fileName) | |
else: | |
print notfound |
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 source code written by Roland Ihasz | |
#include <iostream> | |
#include <vector> | |
#include <iomanip> // std::setprecision | |
using namespace std; | |
int main() | |
{ | |
OlderNewer