text
stringlengths
54
60.6k
<commit_before>#ifndef _TREEVIEW_TVREAD_HXX_ #define _TREEVIEW_TVREAD_HXX_ #ifndef INCLUDED_STL_VECTOR #include <vector> #define INCLUDED_STL_VECTOR #endif #ifndef _RTL_REF_HXX_ #include <rtl/ref.hxx> #endif #ifndef _RTL_USTRING_HXX_ #include <rtl/ustring.hxx> #endif #ifndef _UCBHELPER_MACROS_HXX #include <ucbhelper/m...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ImageStyle.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: obo $ $Date: 2006-09-17 10:43:47 $ * * The Contents of this file are m...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ImageStyle.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: rt $ $Date: 2008-03-12 10:42:50 $ * * The Contents of this file are ma...
<commit_before>#include <clang-c/Index.h> #include <fstream> #include <string> class String { CXString m_str; public: String(CXString str) : m_str(str) {} ~String() { clang_disposeString(m_str); } operator const char*() { return clang_getCString(m_str); } }; std::string &operator+=(std::string &str, unsigned...
<commit_before>// Simple byte-aligned rANS encoder/decoder - public domain - Fabian 'ryg' Giesen 2014 // // Not intended to be "industrial strength"; just meant to illustrate the general // idea. #ifndef RANS_BYTE_HEADER #define RANS_BYTE_HEADER #include <stdint.h> #ifdef assert #define RansAssert assert #else #defi...
<commit_before>#include <chrono> #include <iostream> #include <limits> #include <string> #include "CLI/CLI.hpp" #include "cereal/archives/binary.hpp" #include "doc_lens.hpp" #include "inverted_index.hpp" #include "term_feature.hpp" int main(int argc, char **argv) { size_t done = 0; size_t freq = 0;...
<commit_before>// festus/algebraic-path-test.cc // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
<commit_before>#include "FastTimer.hpp" #include <sys/time.h> #include <stdio.h> #include <QEvent> #include <QApplication> FastTimer::FastTimer(QObject* parent): QThread(parent), _us(0), _running(false) { pthread_mutex_init(&_mutex, 0); pthread_cond_init(&_cond, 0); } FastTimer::~FastTimer() { ...
<commit_before><commit_msg>small improvement to fz logging<commit_after><|endoftext|>
<commit_before>#include <ir/Zambezi/AttrScoreInvertedIndex.hpp> #include <ir/Zambezi/Utils.hpp> #include <glog/logging.h> NS_IZENELIB_IR_BEGIN namespace Zambezi { AttrScoreInvertedIndex::AttrScoreInvertedIndex( uint32_t maxPoolSize, uint32_t numberOfPools, bool reverse) : buffer_(DEFAUL...
<commit_before>/* * * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "source/loader/driver_discovery.h" #include "source/inc/ze_util.h" #include <iostream> #include <sstream> #include <string> namespace loader { static const char *knownDriverNames[] = { MAKE_LIBRARY_NA...
<commit_before>/* Copyright © 2001-2019, Canal TP and/or its affiliates. All rights reserved. This file is part of Navitia, the software to build cool stuff with public transport. Hope you'll enjoy and contribute to this project, powered by Canal TP (www.canaltp.fr). Help us simplify mobility and open public ...
<commit_before>#include "Game.h" Game::Game() : board(10, 10, 2), renderer(), gameState(IN_GAME) { } int Game::init() { // Handle renderer setup if(renderer.init() != 0) { renderer.quit(); return 1; } return 0; } // Returns a bool indicating if the game should continue (true) or terminate (false) bool Game...
<commit_before>/* Copyright © 2001-2019, Canal TP and/or its affiliates. All rights reserved. This file is part of Navitia, the software to build cool stuff with public transport. Hope you'll enjoy and contribute to this project, powered by Canal TP (www.canaltp.fr). Help us simplify mobility and open public ...
<commit_before>#include "Game.hpp" #include <Arduino.h> namespace { constexpr uint32_t MsPerUpdate = 200; } // namespace namespace arduino_pong { void Game::run() { while(true) { uint32_t start = millis(); gameField_.update(); gameField_.render(renderer_); int32_t delayV...
<commit_before>/** * \file * \brief MutexControlBlock class implementation * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not * ...
<commit_before>#include <Game.hpp> #include <iostream> Game::Game(sf::RenderWindow* window): m_window(*window), m_gameState(GAME_STATE::MAIN_MENU), m_level(Level(*window)), m_blackBar(sf::RectangleShape(sf::Vector2f(window->getSize().x, 36))){ m_view.reset(sf::FloatRect(0, 0, 500, 500)); m_window.setFramerateLimi...
<commit_before>//- Standard Library - #include <iostream> #include <fstream> #include <algorithm> #include <cstring> //- Beach Judge - #include <BeachJudge/Base.h> #include <BeachJudge/Page.h> #include <BeachJudge/Session.h> #include <BeachJudge/HTTP.h> #include <BeachJudge/Team.h> using namespace std; const char *w...
<commit_before>#include "Http.hpp" #include "Logger.hpp" #include "misc.hpp" #include "version.hpp" #include <boost/asio/system_timer.hpp> #include <boost/beast/version.hpp> Http::Http(std::string token) : m_SslContext(asio::ssl::context::tlsv12_client), m_Token(token), m_NetworkThreadRunning(true), m_NetworkThr...
<commit_before>#ifndef __SNOW__AUTORELEASE_HH__ #define __SNOW__AUTORELEASE_HH__ #include "config.hh" #ifndef __has_feature #define __has_feature(F) 0 #endif #if __has_feature(objc_arc) #define AUTORELEASE_PUSH() do { @autoreleasepool { #define AUTORELEASE_POP() } } while (0) #elif S_PLATFORM_APPLE && !__has_featu...
<commit_before>#include "stdafx.h" #include "Audio.h" #include "Configuration.h" const WAVEFORMATEX Audio::wfx = { WAVE_FORMAT_PCM, // wFormatTag 1, // nChannels AU_SAMPLING_RATE, // nSamplesPerSec AU_SAMPLING_RATE * 2, // nAvgBytesPerSec 1 * 2, ...
<commit_before><commit_msg>Updated xjob.cc includes and namespace.<commit_after><|endoftext|>
<commit_before>#include "Core/Logger.hpp" #include "Core/MessageQueue.hpp" #include "Services/Display.hpp" #include "Services/HttpServerAsync.hpp" #include "Services/WiFiManager.hpp" #include "Services/WebSocketsServerAsync.hpp" #include "Json/SerializationService.hpp" #include "Json/StatusResultSerializer.hpp" #includ...
<commit_before>/* * Main.cpp * * Created on: Jul 13, 2014 * Author: Pimenta */ #include "metallicar.hpp" class FirstScene : public metallicar::engine::GameScene { protected: void update() { if (metallicar::engine::Game::quitRequested()) { metallicar::engine::Game::quit(); ...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2016 Mustafa Serdar Sanli // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation t...
<commit_before>#include "OSPGlutViewer.h" using std::cout; using std::endl; using std::string; using std::lock_guard; using std::mutex; using namespace ospcommon; // Static local helper functions ////////////////////////////////////////////// // helper function to write the rendered image as PPM file static void ...
<commit_before><commit_msg>Fixes for notify callback.<commit_after><|endoftext|>
<commit_before>/******************************************************************************* Module: FGFCS.cpp Author: Jon Berndt Date started: 12/12/98 Purpose: Model the flight controls Called by: FDMExec ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) ------------- ...
<commit_before>#ifndef __FRAME_HPP__ #define __FRAME_HPP__ #include "include/global.hpp" #include <string> #include <vector> #define MAX_PAYLOAD_LENGTH 0x7FFFFFFFFFFFFFFF; #define PAYLOAD_SIZE_DEFAULT 125; #define PAYLOAD_SIZE_EXTRA_WORD 126; #define PAYLOAD_SIZE_EXTRA_QWORD 127; ...
<commit_before><commit_msg>mds: path_traverse cleanup<commit_after><|endoftext|>
<commit_before>/* Ping.cpp - Implementation of the pinger component Copyright 2006 Jens Georg Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/l...
<commit_before> #include "Globals.h" class MockChest; typedef cItemCallback<MockChest> cChestCallback; AString ItemToFullString(const cItem & a_Item) { return ""; } class cEntity { public: const Vector3d & GetPosition (void) const { return m_pos;} double GetWidth (void) const { return 0; } double GetHeight (void)...
<commit_before>/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <map> #include <set> #include "build/build_config.h" // Need to include this before most other files because it defines // IP...
<commit_before>/*------------MD.cpp----------------------------------------------------------// * * MD.cpp -- a simple event-driven MD simulation * * Purpose: Figure out the pressure on the interior of a box based on * Boltzmann's theory and stuff * * Notes: This simulation will predominantly fol...
<commit_before> #include <scene.h> /// global to keep persistence over instances of scene // Grid* Scene::grid_ = NULL; Scene::Scene(const ros::NodeHandle& node) : Ped::Tscene(), nh_(node) { // start the time steps timestep = 0; /// setup the list of all agents and the robot agent all_agents_....
<commit_before>// Copyright (c) Andrew Fischer. See LICENSE file for license terms. #include "framework.h" #include "object.h" #include "evaluation.h" using namespace circa; namespace c_objects { struct CustomObject { bool initialized; bool checked; bool destroyed; }; int g_currentlyAllocated = 0; int...
<commit_before>/** \file base.hpp \brief Defines base formal language types used throughout this project. \author Radek Vít */ #ifndef CTF_BASE_H #define CTF_BASE_H #include <any> #include <ostream> #include <stdexcept> #include "generic_types.hpp" namespace ctf { /** \brief Attribute class. Holds values of any typ...
<commit_before>/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
<commit_before>#include <iostream> #include <primesieve.hpp> #include <boost/multiprecision/cpp_int.hpp> #include <boost/multiprecision/miller_rabin.hpp> #include <boost/math/common_factor.hpp> using namespace boost::multiprecision; cpp_int phi(const cpp_int x) { if (x == 1) { return 1; } if (mil...
<commit_before>#include "gtest/gtest.h" #include "gmock/gmock.h" #include <string> #include "hybrid_automaton/JumpCondition.h" #include "hybrid_automaton/DescriptionTreeNode.h" #include "hybrid_automaton/JointConfigurationSensor.h" #include "hybrid_automaton/FrameOrientationSensor.h" #include "hybrid_automaton/FrameD...
<commit_before>#include <cstring> #include <inttypes.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #ifndef JSON_TEST_NUMBERS #define JSON_TEST_NUMBERS #endif #if (!(_MSC_VER) && !(__MINGW32__) && !(__MINGW64__)) #include <dirent.h> #else #include <dirent_portable.h> #endif #include ...
<commit_before>#include <stdio.h> #include <sstream> #include <cstdlib> #include <cstring> #include <set> #include <string> #include <iostream> #include <unistd.h> #include "Compile.h" #include "Parser.h" int run_on_bash(std::istream &is) { FILE *bash = popen("bash", "w"); char buf[4096]; do { is....
<commit_before>/* This file is part of Groho, a simulator for inter-planetary travel and warfare. Copyright (c) 2017-2018 by Kaushik Ghose. Some rights reserved, see LICENSE We have two types of objects in the simulation - Orrery bodies (planets/moons/asteroid) and spaceships. They have some metadata in common and som...
<commit_before>#include <taichi/common/util.h> #include <taichi/common/task.h> #include <taichi/visual/gui.h> TC_NAMESPACE_BEGIN constexpr int n = 100; constexpr real dx = 1.0_f / n; constexpr real c = 340; constexpr real alpha = 0.001; Array2D<real> p, q, r; void advance(real dt) { r.reset_zero(); constexpr re...
<commit_before>// Copyright (c) 2014-2017 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "spork.h" #include "base58.h" #include "chainparams.h" #include "validation.h" #include "messagesign...
<commit_before>#include "internal.hpp" namespace CaDiCaL { /*------------------------------------------------------------------------*/ Stats::Stats () { memset (this, 0, sizeof *this); } /*------------------------------------------------------------------------*/ void Stats::print (Internal * internal) { #ifndef ...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/* gobby - A GTKmm driven libobby client * Copyright (C) 2005 0x539 dev group * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at you...
<commit_before>/** * Copyright (C) 2021 3D Repo Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * T...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. #include "browser/url_request_context_getter.h" #include "network_delegate.h" #include "base/string_util.h" #include "base/th...
<commit_before>// ===================================================================================== // // Filename: demo.cpp // // Description: replacement for LRC (demo) // // Version: 1.0 // Created: 2013/8/26 下午 08:33:37 // Revision: none // Compiler: g++ // // ...
<commit_before>/* SWARM Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (...
<commit_before>/* * Copyright 2002-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>#include "eval.h" #include "board.h" #include "int64.h" ////////////////////////////////////////////////////////////////////////////// //Returns a static evaluation score of the board in the //perspective of the player given ////////////////////////////////////////////////////////////////////////////// ...
<commit_before>/** * @file file.cpp * @brief Classes for transferring files * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth i...
<commit_before>#include <SDL/SDL.h> #ifdef __APPLE__ #include <SDL_mixer/SDL_mixer.h> #else #include <SDL/SDL_mixer.h> #endif #include "main.h" #include "game.h" #include "map.h" #include "hud.h" #include "sprite.h" #include "image.h" extern int resetTimer; extern SDL_Surface *screen; Game::Game() { ...
<commit_before>#include <Bridge.h> #include <BridgeClient.h> #include <MQTT.h> #include <ArduinoJson.h> // Sensors and actuators libs #include "Ultrasonic.h" #include "DHT.h" // Networking BridgeClient net; MQTTClient client; // Sensors and actuators #define DHTTYPE DHT11 int ultrasonicPin = 2; int DHTPin = 4; int ...
<commit_before> int main(int argc, char** argv) { // silence unused warnings (void)argc; (void)argv; return 0; } <commit_msg>travis: trigger build<commit_after> int main(int argc, char** argv) { // silence unused warnings (void)argc; (void)argv; return 0; } <|endoftext|>
<commit_before> #include "GmshReader.hpp" #include <boost/program_options.hpp> #include <iostream> int main(int argc, char* argv[]) { using namespace gmsh; // Parse the command line options and process the mesh try { // Define and parse the program options namespace po = boost::progra...
<commit_before>/** * libcec-daemon * A simple daemon to connect libcec to uinput. That is, using your TV to control your PC! * by Andrew Brampton * * TODO * */ #include "main.h" #define VERSION "libcec-daemon v0.9" #define CEC_NAME "linux PC" #define UINPUT_NAME "libcec-daemon" #include <algorithm> #i...
<commit_before>// main.cpp // 26. April 2017 // Created by: // Bryan Burkhardt (bmburkhardt@alaska.edu) // Alexander Eckert (aeckert@alaska.edu) // Jeremiah Jacobson (jjjacobson2@alaska.edu) // Jarye Murphy (jmurphy11@alaska.edu) // Cameron Showalter (cjshowalter@alaska.edu) // // Main file for MusicPl...
<commit_before>#include <cstdlib> #include <sys/wait.h> #include <string> #include <vector> #include <cstring> #include <iostream> #include <unistd.h> #include <pwd.h> #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include "main.h" using namespace std; int main() { string userinput...
<commit_before>#include <iostream> #include "main.hpp" #include "util.hpp" #include "system/printer.hpp" #ifndef OBJ_PATH #define OBJ_PATH "share/sphere.obj" #endif /*#ifndef MTL_PATH #define MTL_PATH "share/cube.mtl" #endif*/ #ifndef VERT_PATH #define VERT_PATH "share/fallback.vert" #endif #ifndef FRAG_PATH #define ...
<commit_before>#include <memory> #include <iostream> #include <string> #include <sstream> #include <functional> #include <utility> #include <unordered_map> #include <vector> #include <nan.h> #include <v8.h> #include <uv.h> #include "log.h" #include "queue.h" #include "worker/worker_thread.h" using v8::Local; using v8...
<commit_before>#include "common.h" #include <boost/program_options/cmdline.hpp> #include <boost/program_options/options_description.hpp> #include <boost/program_options/parsers.hpp> #include <boost/program_options/variables_map.hpp> #include "hex/generate.h" #include "hex/ai/ai.h" #include "hex/ai/ai_updater.h" #incl...
<commit_before>#include "parser.h" #include "tests/alltests.h" using namespace ical; int main() { return tests::AllTests::run(); } <commit_msg>Implemented CLI for the parser.<commit_after>#ifdef RUN_TESTS #include "tests/alltests.h" #else /* RUN_TESTS */ #include "parser.h" #include <memory> #include <iostr...
<commit_before>#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "mySocket.h" #include "error.h" #include "sdrplay.h" #define SERVER_VERSION "1.0.1" struct sdr_info { char magic[4]; int32_t tuner_type; int32_t tuner_gain_count; } __attribute__((pack...
<commit_before>// ----------------------------------------------------------------------------- // // MIT License // // Copyright (c) 2016 Alberto Sola // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // i...
<commit_before>#include <logging/Logger.h> #include <graphics/GlfwContext.h> #include <graphics/GlfwWindow.h> #include <graphics/Renderer.h> #include <gamemodel/GameState.h> #include <input/Input.h> int main(int argc, char ** argv) { Logger::initSystem(argc, argv); GlfwContext glfwContext(Logger::glfwEr...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (people-users@projects.maemo.org) ** ** This file is part of contactsd. ** ** If you have questions re...
<commit_before>#include <fstream> #include <iostream> #include <iterator> #include <map> #include <stdexcept> #include <string> #include <utility> #include <vector> #include <boost/algorithm/string/split.hpp> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <boost/archive/text_oarchive.hp...
<commit_before>#include "includes.hpp" #include "interface.hpp" namespace ProjectInfo { const char* const projectName = "Kiwano"; const char* const versionString = "0.1"; const int versionNumber = 0x10000; } class MainWindow : public DocumentWindow { user_interface itf; base::lisp gl; JUCE_DECLARE_NON_COPYABLE_WIT...
<commit_before>#include <string.h> #include <stdlib.h> #include <iostream> #include <unistd.h> #include <string> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include <vector> using namespace std; void parse_input(char* (&args)[100], string usrString){ char *cstr = new char[usr...
<commit_before>#include "AppInfo.h" #include "FileUtils.h" #include "Log.h" #include "Platform.h" #include "ProcessUtils.h" #include "StringUtils.h" #include "UpdateScript.h" #include "UpdaterOptions.h" #include "tinythread.h" #if defined(PLATFORM_LINUX) #include "UpdateDialogGtkWrapper.h" #include "UpdateDialogA...
<commit_before>#include <fstream> #include <iostream> #include <Refal2.h> using namespace Refal2; class CMyClass : public IVariablesBuilderListener, public IFunctionBuilderListener, public IScannerListener, public IParserListener { public: virtual void OnScannerError(const TScannerErrorCodes errorCode, char c); ...
<commit_before>#include <iostream> #include <vector> #include <set> #include <algorithm> #include <queue> #include <boost/asio.hpp> #include <boost/thread.hpp> #include <google/protobuf/io/coded_stream.h> #include "message.pb.h" using namespace boost::asio; using ru::spbau::chat::commons::protocol::Message;...
<commit_before>/* The MIT License (MIT) * * Copyright (c) 2013 nitoyon * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to ...
<commit_before>#include <memory> #include <iostream> #include <string> #include <sstream> #include <functional> #include <utility> #include <unordered_map> #include <vector> #include <nan.h> #include <v8.h> #include <uv.h> #include "log.h" #include "queue.h" #include "worker/worker_thread.h" using v8::Local; using v8...
<commit_before>/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * main.cpp * - Compiler Entrypoint */ #include <iostream> #include <iomanip> #include <string> #include <set> #include "parse/lex.hpp" #include "parse/parseerror.hpp" #include "ast/ast.hpp" #include "ast/crate.hpp...
<commit_before>#include <iostream> #include <SDL2/SDL.h> #include <mosquitto.h> #include <math.h> void message_callback(struct mosquitto *mosq, void *userdata, const struct mosquitto_message *message) { //Simply print the data to standard out. if(message->payloadlen) { //Data is binary, but we cast it to a string...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include <future> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mesh_chunk.h" #include "gfx/idriv...
<commit_before>#include <FS.h> #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino //#include <DNSServer.h> //#include <ESP8266WebServer.h> #include "mqtthandler.h" #include "confighandler.h" constexpr int8_t PIN_01 = 0; constexpr int8_t PIN_02 = 1; constexpr int8_t PIN_03 = 3; constexpr int8_t PIN_04 = 4...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>#include "system.hpp" #include "control.hpp" #include "math.hpp" #include "main.hpp" #include <iostream> #include "omp.h" #include <boost/asio.hpp> #include <boost/date_time/posix_time/posix_time.hpp> int main(int argc, const char **argv) { using namespace Util; glfwInit(); std::atomic_bool alive(...
<commit_before>#include <SDL/SDL.h> #include <GL/gl.h> SDL_Surface *screen = NULL; void drawScene(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0f, 0.0f, 0.0f); glBegin(GL_TRIANGLES); glVertex3f(-0.5f, -0.7f, 0.0f); glVertex3f( 0.5f, -0.7f, 0.0f); glVertex3f( 0.0f, 0.7f, 0.0f); glEnd...
<commit_before>#include <QtGui/QGuiApplication> #include <QQmlContext> #include <QStateMachine> #include <QDebug> #include <memory> #include "./window.h" #include "./scene.h" #include "./nodes.h" #include "./label_node.h" #include "./input/invoke_manager.h" #include "./input/signal_manager.h" #include "./input/scxml_im...
<commit_before>/* The MIT License (MIT) Copyright (c) 2014-2015 Andrea Scarpino <me@andreascarpino.it> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
<commit_before>#include <iostream> #include <string> #include <vector> #include <stdlib.h> #include <chrono> #include "lexer.h" #include "tokens.h" #include "parser.h" #include "astnode.h" #include "asttransforms.h" #include "irgen.h" #include "ccodegen.h" bool debug_lexer; bool debug_parser; bool semantic_error = fal...
<commit_before>#include <iostream> #include "main.hpp" #include "omp.h" #include <boost/asio.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #ifndef OBJ_PATH #define OBJ_PATH "share/icosahedron.obj" #endif #ifndef VERT_PATH #define VERT_PATH "share/fallback.vert" #endif #ifndef FRAG_PATH #define FRAG_PATH "...
<commit_before>/* Copyright (C) 2016 Jeremy Starnes This file is part of TDSE. TDSE is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
<commit_before>#include <cstdio> #include <cstdlib> #include <unistd.h> #include <vector> #include <string> #include <iostream> int main(int argc, char** argv) { std::string line; // hold a raw line of input std::vector<char*> cmd; // holds a single command and its arguments std::ve...
<commit_before>/* The MIT License (MIT) Copyright (c) 2015-2016 Andrea Scarpino <me@andreascarpino.it> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
<commit_before>/* my own headers */ #include "landscape.h" #include "error_handling.h" #include "command_line.h" #include "popsim.h" #include "stats.h" #include "sequence.h" /* system headers */ #include <iostream> #include <string> using namespace std; void usage(void); int main(int argc, char *argv[]) { try { ...
<commit_before>// GPS Tracker project with Adafruit IO // Author: Martin Spier // Libraries #include <Arduino.h> #include <Adafruit_SleepyDog.h> #include <SoftwareSerial.h> #include "Adafruit_FONA.h" #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_FONA.h" #include <Wire.h> #include <RTClib.h> #include <SPI.h> #incl...
<commit_before>#include <QApplication> #include <QDir> #include <QDesktopServices> #include <QDate> #include <QIcon> #include <QPointer> #include <QLocalServer> #include <QLocalSocket> #include "window.h" #include "tracker.h" #include "updater.h" #ifdef Q_WS_MAC #include "cocoa_initializer.h" #include "sparkle_updat...
<commit_before>/* main.cpp This file is part of: GAME PENCIL ENGINE https://create.pawbyte.com Copyright (c) 2014-2020 Nathan Hurde, Chase Lee. Copyright (c) 2014-2020 PawByte LLC. Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free of charge, to ...
<commit_before>/* videocapture is a tool with no special purpose * * Copyright (C) 2009 Ronny Brendel <ronnybrendel@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
<commit_before>/* The MIT License (MIT) Copyright (c) 2016 Andrea Scarpino <me@andreascarpino.it> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without ...
<commit_before>#include <cstdio> #include <iostream> #include <sys/stat.h> #include <unistd.h> #define GetCurrentDir getcwd #include <array> #include <string> #include <memory> #include <stdexcept> std::string exec(const char* cmd) { std::array<char, 128> buffer; std::string result; std::shared_ptr<FILE> p...