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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
using namespace std; | |
#include "Klass.h" | |
using namespace std; |
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
#include <iostream> | |
#include <fstream> | |
#include <locale> | |
//#include <vector> | |
#include <cassert> | |
#include <math.h> | |
#include <stdio.h> | |
using namespace std; |
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
{ | |
"shell_cmd": "clang++ -v -Wall -std=c++11 \"${file}\" -o \"${file_path}/${file_base_name}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c++.11, source.cxx, source.c11, source.cxx.11", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#pragma once | |
#include <iostream> | |
#include "IntSet.hpp" | |
using namespace std; | |
IntSet::IntSet (int m) { |
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
private final native public volatile static transient synchronized protected abstract class FactoryFactoryFactoryFacade extends AbstractBuilderIteratorBeanDecoratorInterceptorFactoryFactory implements AbstractFactoryStrategyIteratorProxy, AbstractFactoryFactoryListener { | |
SingletonDecoratorAdapter singletonDecoratorAdapter = new SingletonDecoratorAdapter(); | |
AbstractFactoryFactorySingletonBuilderProxy abstractFactoryFactorySingletonBuilderProxy = new AbstractFactoryFactorySingletonBuilderProxy(); | |
VisitorBeanSingletonProxyAdvisorBuilderFactoryFactory visitorBeanSingletonProxyAdvisorBuilderFactoryFactory = new VisitorBeanSingletonProxyAdvisorBuilderFactoryFactory(); | |
IteratorListenerBean iteratorListenerBean = new IteratorListenerBean(); |
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
#include <iostream> | |
using namespace std; | |
bool F(bool y1, bool y2, bool y3) { | |
return !((!y1 && y2) || !y3) == (!y2 || y3) && y1 == ((y3 <= (y1 || y2)) && (y1 <= (y2 || y3))); | |
} | |
int main(int argc, char** argv) { | |
int x1, x2, x3; // arguments variable |
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
function setupGithub(url, el) { | |
var href = el.href; | |
if ($('#github-profile').length > 0) { | |
window.location = href; | |
return; | |
} | |
var params = url.attr('path').split('/').filter(function(w) { |
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
#include <iostream> | |
#include <map> | |
#include <string> | |
#include <functional> | |
void foo() { std::cout << "foo()"; } | |
void boo() { std::cout << "boo()"; } | |
void too() { std::cout << "too()"; } | |
void goo() { std::cout << "goo()"; } |
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
// The desk calulator | |
// reads from standard input or command line | |
// uses namespaces and no exceptions | |
// pp 190-1921, sec 8.3.3, Exceptions in Calculator | |
// uses += rather than push_back() for string | |
// to work around standard library bug |
OlderNewer