Skip to content

Instantly share code, notes, and snippets.

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
process {
resource_limits {
time_limit_millis: 1000
memory_limit_bytes: 1073741824
}
file {
id: "stdin"
permission: READ
init: "in"
}
@sarum9in
sarum9in / Makefile
Last active June 3, 2016 21:58 — forked from duskborn/nya.c
LDFLAGS = -lcursesw
nya: nya.c
@sarum9in
sarum9in / gcc-1.patch
Created May 22, 2016 01:28
protobuf3 gcc patches
--- a/src/google/protobuf/util/internal/protostream_objectsource_test.cc 2016-05-16 22:34:04.000000000 +0400
+++ b/src/google/protobuf/util/internal/protostream_objectsource_test.cc 2016-05-22 05:16:56.210068181 +0400
@@ -132,6 +132,7 @@
->RenderUint32("", bit_cast<uint32>(0))
->RenderUint32("", bit_cast<uint32>(3202))
->EndList()
+ ;(&ow_)
->StartList("repU32")
->RenderUint32("", bit_cast<uint32>(3203))
->RenderUint32("", bit_cast<uint32>(0))
COMPILER_FLAGS = -Wall -Wextra -g -O0 -lboost_system -lboost_thread -pthread
JAVAC = $(JAVA_HOME)/bin/javac
CFLAGS = $(COMPILER_FLAGS)
CXXFLAGS = $(COMPILER_FLAGS)
GOFLAGS =
#GOFLAGS = -compiler gccgo
#pragma once
#include <bunsan/filesystem/error.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/scope_exit.hpp>
namespace bunsan{namespace filesystem
{
namespace detail
@sarum9in
sarum9in / 100M.sdbl
Last active December 23, 2015 08:39
Yandex.Contest.Invoker time usage testing
104857600
@sarum9in
sarum9in / main.cpp
Last active December 21, 2015 16:49
#include <fstream>
#include <iostream>
#include <iterator>
using namespace std;
template <typename Iter>
inline void safe_advance(Iter &i, const Iter &end, std::size_t steps)
{
while (steps-- > 0)
@sarum9in
sarum9in / small.cpp
Last active December 19, 2015 10:29
I don't know how it works, I have to learn spirit attribute rules.
#include <iostream>
#include <fstream>
#include <string>
#define BOOST_SPIRIT_DEBUG
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/lex_lexertl.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_statement.hpp>
"yandex::contest::invoker::detail::execution::async_process_group_detail::Task": {
"processes": [
{
"meta": {
"id": "0",
"name": ""
},
"descriptors": {
"0": {
"File": {