Skip to content

Instantly share code, notes, and snippets.

@0x414c
0x414c / Govno
Last active August 29, 2015 14:03
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
#include "Klass.h"
using namespace std;
#include <iostream>
#include <fstream>
#include <locale>
//#include <vector>
#include <cassert>
#include <math.h>
#include <stdio.h>
using namespace std;
{
"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",
@0x414c
0x414c / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#pragma once
#include <iostream>
#include "IntSet.hpp"
using namespace std;
IntSet::IntSet (int m) {
@0x414c
0x414c / govno
Created September 23, 2014 15:18
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();
@0x414c
0x414c / 1.cxx
Last active August 29, 2015 14:06
#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
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) {
#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()"; }
@0x414c
0x414c / dc.cxx
Last active August 29, 2015 14:07
// 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