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 <fstream> | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <iterator> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
template <typename T> |
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 <fstream> | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <iterator> | |
#include <vector> | |
using namespace std; | |
template <typename T> | |
T stoi (const string &input) { |
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
"basics | |
set nu | |
set bs=2 | |
set t_Co=256 | |
set nocp | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set smarttab | |
set ignorecase |
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> | |
#include <random> | |
#include <ctime> | |
#include <vector> | |
#include <fstream> | |
#include <string> | |
using namespace std; | |
int main () { | |
string content = "abcdefghijklmnopqrstuvwxyz0123456789"; |
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 "Triangle.h" | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "Enter three sides: "; | |
double side1, side2, side3; | |
cin >> side1 >> side2 >> side3; |
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
@echo off | |
cls | |
pause | |
cgminer.exe -o http://ltc.kattare.com:9332 -u WORKERUSERNAME -p WORKERPASSWORD -I 17 --scrypt |
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
<?php | |
/* Feel free to use this to your heart's content, but please link back here somewhere, I'd appreciate it. Thanks. | |
Also if you find any problems, let me know, I'll get to fixing them. */ | |
function addHTTP($url) { | |
if (!preg_match("~^(?:f|ht)tps?://~i", $url)) | |
$url = "http://" . $url; | |
return $url; | |
} |
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
// Fizzbuzz | |
#include <iostream> | |
using std::cout; | |
using std::endl; | |
int main () { | |
for (int i = 0; i <= 100; i++) { | |
if (i % 15 == 0) | |
cout << i << ": FizzBuzz"; |
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 hello(name): | |
print 'Hello,', name | |
os.system('pause') | |
hello('Casey') |
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 | |
for i in range(0, 100): | |
if i % 15 == 0: | |
print i,': FizzBuzz' | |
elif i % 3 == 0: | |
print i,': Fizz' | |
elif i % 5 == 0: | |
print i,': Buzz' | |
else: |