text
stringlengths
3.08k
22k
/** * @file maze_BASICsolver.cpp * @author your name (<EMAIL>) * @brief * @version 0.1 * @date 2019-08-22 * * @copyright Copyright (c) 2019 * */ #include <iostream> #include <fstream> #include <string> #include "ros/ros.h" #include <ros/console.h> #include "geometry_msgs/Twist.h" #include "sensor_msgs/LaserSc...
/* Resource-based image extractor based on PDFlib TET * * $Id: image_resources.c,v 1.10 2015/07/24 12:41:17 tm Exp $ */ #include <iostream> #include <algorithm> #include "tet.hpp" using namespace std; using namespace pdflib; namespace { /* global option list */ const wstring globaloptlist = L"searchpath={{../d...
// Bank Management System #include<bits/stdc++.h> using namespace std; set<long long/*account no.*/> accountsLiveset; set<long long/*card no.*/> cardsLiveset; class Card { // Card class containing the skeleton for every card. public: long long cardNo; // 10 digits int pin; // 4 digits long long long a...
#include "PhotonBox/core/Core.h" #include "PhotonBox/core/PhotonBoxVersion.h" #include "PhotonBox/core/Config.h" #include "PhotonBox/core/Display.h" #include "PhotonBox/core/InputManager.h" #include "PhotonBox/core/Profiler.h" #include "PhotonBox/core/Time.h" #include "PhotonBox/core/ISystem.h" #include "PhotonBox/cor...
#include "code_sequence.hpp" static bool is_repeated(const std::vector<CodeNumber>& numbers, const size_t sub_length) { for (size_t i = sub_length; i < numbers.size(); ++i) { const auto sub_index = i % sub_length; if (numbers.at(i) != numbers.at(sub_index)) { return false; } ...
#include <poll.h> #include <string.h> #include <sys/inotify.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/wait.h> #include <arpa/inet.h> #include <unistd.h> #include <fcntl.h> #include <iostream> #include <spawn.h> #include "utils.hpp" AutoCloseFD::~AutoCloseFD() { close(fd_); } AutoMunmap::AutoMunma...
#include <data_types/timeseries.hpp> #include <data_types/fourierseries.hpp> #include <data_types/candidates.hpp> #include <data_types/filterbank.hpp> #include <transforms/dedisperser.hpp> #include <transforms/resampler.hpp> #include <transforms/folder.hpp> #include <transforms/ffter.hpp> #include <transforms/dereddene...
#define EIGEN_USE_GPU #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/framework/common_shape_fns.h" #include "tensorflow/core/platform/stream_executor.h" #include "tensorflow/core/platform/cuda.h" ...
/** * * FluxParser.cpp: InfluxDB flux query result parser * * MIT License * * Copyright (c) 2018-2020 InfluxData * * 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 restri...
#include "ChunkManager.h" #include "Chunk.h" #include "Shader.h" #include "utils/Chunkindex.h" #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtx/hash.hpp> #include <glm/gtx/component_wise.hpp> #include <iostream> #include <functional> namespace { const auto viewDistanceInChunks = chunkViewDistance();...
#include "instrument.hh" #include <inttypes.h> #include <stdio.h> #include <string.h> #include <phosg/Encoding.hh> #include <phosg/Filesystem.hh> #include <phosg/Strings.hh> #include <vector> #include "afc.hh" using namespace std; const vector<float>& Sound::samples() const { if (this->decoded_samples.empty())...
#pragma once #include "model.hpp" #include "tree.hpp" #include "dsu.hpp" typedef std::pair<size_t, size_t> Edge; template<size_t DIM> class EmstSolver { public: EmstSolver() = default; const std::vector<Edge> & get_solution() const { return solution; } const double & get_total_length() const { return tot...
#include <iomanip> #include <iostream> #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #include "CondFormats/Da...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME> 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 ri...
#include "NFA.h" #include <math.h> #include <float.h> NFALUT::NFALUT(int size, double _prob, double _logNT) { LUTSize = size; LUT = new int[LUTSize]; prob = _prob; logNT = _logNT; LUT[0] = 1; int j = 1; for (int i = 1; i<LUTSize; i++) { LUT[i] = LUTSize + 1; double ret = nfa(i, j); if (ret < 0) { whi...
#include "Game.h" #include "Ball.h" #include "Board.h" #include "GUI.h" #include <SFML/Audio/Sound.hpp> #include <SFML/Audio/SoundBuffer.hpp> #include <SFML/Graphics/Color.hpp> #include <SFML/Graphics/Font.hpp> #include <SFML/Graphics/Rect.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/Sprite.hp...
#include <iostream> #include <fstream> #include <chrono> #include <string> #include <vector> // Because I'm too lazy to type typedef unsigned long long ull_t; typedef unsigned u_t; typedef long long ll_t; unsigned verb_lvl = 0; constexpr bool is_hex(char a){ return (a<='9'&&a>='0')||(a<='f'&&a>='a'); } int chec...
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* QM DSP Library Centre for Digital Music, Queen Mary, University of London. This file 2005-2006 <NAME>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Publi...
/* Copyright (C) 2018, Project Pluto. See LICENSE. */ #include <math.h> #include <assert.h> #include "norad.h" #include "norad_in.h" /* params[1] and [6]-[9] were used in earlier implementations, but are now unused */ #define c2 params[0] #define c1 params[2] #define c4 params[3] #...
#include <stdlib.h>//c #include <stdio.h> #include <string>//c++ #include <iostream> #include <fstream>//for shaders #include <vector> #include <glm/glm.hpp>//libraries #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/closest_point.hpp> #include <GL/glew.h> #include <SDL2/SDL....
#include "Hardware.h" #define SKIP_I2C_TEST false Hardware::Hardware() { } Hardware::~Hardware() { delete lcd; } void Hardware::Init() { // Check i2c connection for IO #if !SKIP_I2C_TEST while (!checkHardware()) { delay(1000); } #endif // Initialise l'ecran LCD lcd = new LiquidCrystal_I2C(SCREEN_ADD...
#include "Application.h" #include "mdRender.h" #include "Widgets.h" #include "Bars.h" #include "DebLog.h" #include "mdEntities.h" #include "Player.h" #include "Character.h" #include "mdGuiManager.h" #include "mdSceneManager.h" #include "settingsScene.h" Bars::Bars(bar_types type, std::pair<int, int> pos, bool _flippe...
#include "../../src/mhd.h" #include "../../src/Point3.h" #include "../../src/commonSRG.h" #include "example_creation.h" #include <cmath> //#include <vector> //example creation with simplifications of given size for Cube_data //1. Full Cube //2. Full Sphere //3. Helix //check, if voxel with radius^2 inside sphere inl...
#include "explore_tree.h" #include "rendering/ui/widgets/util.h" #include "rendering/drag_and_drop.h" #include "rendering/views/project_view.h" #include "settings.h" #include "log.h" namespace dataset = ::core::dataset; Rendering::ExploreFolder::ExploreFolder(ImGuiID docking_id) : AbstractLayout(docking_id) { lo...
// // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. // // 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 rig...
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * 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 your option) any l...
#include "labirynt.h" #include <ctime> // zmienne globalne string mapy="maps"; //folder, w którym są mapy string file_name; //ścieżka do mapy string prev_file; //nazwa poprzedniej mapy size_t size_map=0; string *bufor = NULL; string buffor="0123456789"; vector<string> mapa; char user_ch='X', end_ch='O'; COORDS play...
#include "mex.h" #include <math.h> #include <vector> #include <queue> using namespace std; inline double res(double DI,double *p) { return p[0]+p[1]*(1.0-exp(-DI/p[2])); } inline double res2(double DI,double *p) { return p[0]+p[1]*exp(-DI/p[2]); } // [out, pos_AT, AT_out, everything] = run_new_model2(impu...
/*************************************************************************/ /* */ /* Carnegie Mellon University and */ /* Centre for Speech Technology Research */ /* ...
#include "opencv2/video/tracking.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/gpu/gpu.hpp" #include <stdio.h> #include <iostream> using namespace cv; using namespace cv::gpu; //static void convertFlowToImage(const Mat &flow_x, const Mat &flow_y, Mat &img, // ...
/*VRP********************************************************************* * * vehicle routing problems * A collection of C++ classes for developing VRP solutions * and specific solutions developed using these classes. * * Copyright 2014 <NAME> <<EMAIL>> * Copyright 2014 <NAME> <<EMAIL>> * * This is ...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <ie_core.hpp> #include <cmath> #include <string> #include "tests_common.hpp" #include "single_layer_common.hpp" using namespace ::testing; using namespace InferenceEngine; using namespace std; st...
/* * Copyright (c) 2019 <NAME> University, * Copyright (c) 2019 Triad National Security, LLC, as operator of * Los Alamos National Laboratory. * * All rights reserved. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. See the AUTHORS file for names of co...
/*============================================================================== Platype. Yet another commissioned custom made live audio-visual performer software. Copyright (c) 2020 <NAME> aka n3m3da <<EMAIL>> Platype is distributed under the MIT License. This gives everyone the freedoms to use Pla...
/* * UAE - The Un*x Amiga Emulator * * Read 68000 CPU specs from file "table68k" and build table68k.c * * Copyright 1995,1996 <NAME> */ #include "uae/types.h" //#define TCHAR char #include <string.h> #include "sysconfig.h" #include "sysdeps.h" #include <stdlib.h> //#include <tchar.h> #include <assert.h> #inclu...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
//===- IdentifierResolver.cpp - Lexical Scope Name lookup -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "PhysicsTools/SelectorUtils/interface/WPlusJetsEventSelector.h" #include "DataFormats/Candidate/interface/ShallowCloneCandidate.h" #include <iostream> using namespace std; WPlusJetsEventSelector::WPlusJetsEventSelector( edm::ParameterSet const & params ) : EventSelector(), muonTag_ (params.getP...
/* * Copyright 2019 Xilinx Inc. * * 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 ...
// Copyright (c) 2021 <NAME> // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include <tcob/tcob_config.hpp> #include <optional> #include <vector> #include <tcob/audio/AudioDecoder.hpp> #include <tcob/audio/Sound.hpp> #include <tcob/audio/Stream.hpp> struct...
#include <fcntl.h> #include <unistd.h> #include "xboxoutdevice.h" XboxOutDevice::XboxOutDevice(QObject *parent) : QObject(parent) { uinputHandler = 0; } void XboxOutDevice::createDevice() { uinputHandler = open("/dev/uinput", O_RDWR | O_NONBLOCK); struct uinput_user_dev uidev; strncpy(uidev.name, "Mi...
// // nodeLines.cpp // ClusterDuo_v1-1_Main // // Created by <NAME> on 20.07.19. // #include <stdio.h> #include "ofApp.h" bool bDOF = false; bool bCheckFFT = false; float spectrumSmoothedNodes[256]; //-------------------------------------- void ofApp::setupNodeLines(){ ofSetBackgroundAuto(tr...
#include <bridge_px4/hr_control.h> const string HR_Control::states[] = { "px","py","pz", "vx","vy","vz", "qw","qx","qy","qz"}; HR_Control::HR_Control() : pxy_slim_(1.0),pz_slim_(0.5),v_slim_(0.5),q_slim_(0.3), ep_lim_(3.0),eq_lim_(0.6) { ros::param::get("~pxy_slim", pxy_slim_); ros::param::g...
// Copyright 2015 <NAME> /* - Designer will publish: http://docs.ros.org/indigo/api/trajectory_msgs/html/msg/JointTrajectory.html - Designer will receive: (with root link as 0,0,0) http://docs.ros.org/indigo/api/sensor_msgs/html/msg/JointState.html */ #include <cstdlib> #include <string> #include <ros/ros.h> #inc...
#define GLFW_INCLUDE_NONE #include "Model/model.hpp" #include "Utility/indirectDraw.hpp" #include "Utility/mat.hpp" #include "Utility/shader.hpp" #include "Utility/vec.hpp" #include "hull.hpp" #include "window.hpp" #include <GLFW/glfw3.h> #include <algorithm> #include <cmath> #include <glad/glad.h> #include <iostream> ...
/* * This file is part of Poedit (https://poedit.net) * * Copyright (C) 2015-2016 <NAME> * * 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 ...
#include "lyne_graph_generator.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <stdexcept> #include <iostream> #include <iomanip> #include <algorithm> #include <cmath> #include <utility> #include <functional> const int xGridVariance = 15; const int yGridVarianc...
#include <algorithm> #include <cmath> #include <SDL.h> #include <stdio.h> #include "aaline.h" void Draw_Pixel(SDL_Surface* s, int x, int y, uint8_t r, uint8_t g, uint8_t b, uint8_t a){ Uint8 c_r, c_g, c_b, c_a; Uint8* buf8; Uint32* buf32; //In range? if(x < 0 || y < 0 || x >= s->w || y >= s->h) ...
// gmmbin/gmm-decode-lazylm-faster.cc // // Copyright (c) 2016 <NAME> <<EMAIL>> // // 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 rig...
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
/* ** Bitty ** ** An itty bitty game engine. ** ** Copyright (C) 2020 - 2021 <NAME>, all rights reserved ** ** For the latest info, see https://github.com/paladin-t/bitty/ */ #include "pathfinder.h" #include "../lib/micropather/micropather.h" /* ** {======================================================...
#include <render/particleIndexRender/particleIndexRender.h> #include <render/util/color_map.h> static const char *vertexShaderSource = R"(#version 450 compatibility in vec4 posAttr; in vec2 uvAttr; in vec4 position; in vec4 renderArray; in float volume; uniform vec4 camera_right; uniform vec4 camera_up; uniform mat4 ...
#include "BAGame.h" #include "BAMapData.h" // ============================================= // Main game method BAGameCommand BAGame::playGame(){ bool gameOver = false; while (!gameOver) { // Switch between player and AI if(this->playerFirstRound){ // Animate between maps this->animateFrom...
#include "arvore_rb_c.h" /* * Tree constructor: * This implementation uses Sentinel nodes, so I create one, make his color black * and then I make my root point to it. */ Tree::Tree(){ this->T_NIL = criar_no(0,this->T_NIL); this->T_NIL->color = BLACK; this->root = this->T_NIL; } /* * For the deconstructor I jus...
#include "lockerinterface.h" #include "FS.h" #include <SPI.h> #include <TFT_eSPI.h> // Hardware-specific library #define CALIBRATION_FILE "/TouchCalData1" // Set REPEAT_CAL to true instead of false to run calibration // again, otherwise it will only be done once. // Repeat calibration if you change the screen...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <chrono> #include <fstream> //#include "mkl.h" #include <cblas.h> #include "types.h" #include "utils.h" #include "arm_compute/core/Types.h" #include "arm_compute/runtime/NEON/NEFunctions.h" #include "arm_compute/r...
/*** MIT License Copyright (c) 2021 <NAME> 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 use, copy, modify, merge, publish...
#include <iostream> #include <functional> #include <cmath> using namespace std; /** * Integrates f from a to be using trapezoidal rule. * @param f Function f(x) * @param a Lower Limit * @param b Upper Limit * @return Integral value */ double trapezoidal_rule(function <double (double)> f, double a, double b...
#include "util.h" #include <cstdlib> #include <execinfo.h> #include <map> #include <string> namespace { std::map<std::string, bool> Features; // Read control register 0 (XCR0). Used to detect features such as AVX. static bool getX86XCR0(unsigned *rEAX, unsigned *rEDX) { #if defined(__GNUC__) || defined(__clang__) ...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * * Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) * 8/24/2011 by <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated do...
// //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // ghv : <NAME> : 20180528 // // file gv_MiniSphere.cpp // //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ...
#include <Arduino.h> #include <Wire.h> #include <ros.h> #include <ros/time.h> #include <std_msgs/Int32.h> #include <std_msgs/Float32.h> // #include <hyperion_msgs/Depth.h> // #include <hyperion_msgs/Pressure.h> #include "../include/MS5837.h" // #include "../include/Thruster.h" #include "../include/ArduinoConfig.h" #i...
#include <3ds.h> #include <string> #include <algorithm> #include <citro2d.h> #include "CTRFont.hpp" #include "unicode.h" #include "item.h" #include "imagebutton.h" #include "gfx.h" #include "save.h" #include "e_utils.h" #include "utils.h" #include "InputManager.h" #include "menus.h" #include "gui/AcreMenu.hpp" #define...
// // Created by <NAME> on 29/03/2020. // Released under license: Apache-2.0 License // #include "JobsOutputAnalysis.h" #include "../../Auxiliaries/SplitString.h" /** * Output statistics about the allocation from a file recording the allocation decisions * @param allocation_output * @param output_file_results */ void...
/* copyright (C) 2020 Sohta. */ #include <Arduino.h> #include <stdint.h> #include <Wire.h> #include "main.h" #include "microbit_Screen.h" microbit_Screen SCREEN; // microbit V1.5 #if 1 #include <LSM303AGR_ACC_Sensor.h> LSM303AGR_ACC_Sensor AccNew(&Wire1); #else #include <Adafruit_LSM303_Accel.h> #include <Adafruit_Se...
#include <iostream> #include <fstream> #include <getopt.h> #include "spoa/spoa.hpp" #include "spoa/alignment_engine.hpp" using namespace std; typedef struct { const bool operator()(const std::string& first, const std::string& second) { return first.size() < second.size() || (first.size() == second.size() &...
#include "FastSimulation/Utilities/interface/RandomEngineAndDistribution.h" #include "FastSimulation/SimplifiedGeometryPropagator/interface/Particle.h" #include "FastSimulation/SimplifiedGeometryPropagator/interface/SimplifiedGeometry.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Paramet...
/* * 讯飞离线语音合成服务端 * * Author: <NAME> * Date: 2017-08-14 */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include "qtts.h" #include "msp_cmn.h" #include "msp_errors.h" #include <ros/ros.h> #include <actionlib/server/simple_action_server.h> #include <xfei_tts/XFeiTTSAction.h> #include <...
//---------------------------------------------------------------------------// /* Copyright (c) 2012, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *: Redistributions of source cod...
/** * Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved. * http://soramitsu.co.jp * * 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/LICENS...
// Copyright 2011 The Kyua Authors. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditio...
// // Created by serboba on 21.10.21. // // // Created by serboba on 21.10.21. // #include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <random> #include <Eigen/Dense> #include <robowflex_library/util.h> #include <robowflex_dart/point_collector.h> #include <robowflex_dart/quaternion_fa...
// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) // 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 distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include "payload_test_client.hpp" e...
/////////////////////////////////////////////////////////// // Forward declarations #include "http_resource_factory.h" #include "http_protocol_handler_cache.h" #include "http_protocol_handler.h" /////////////////////////////////////////////////////////// // Class declaration #include "http_service.hpp" //////////////...
#include "ep_writer.h" #ifdef _WIN32 #include <io.h> #else #include <unistd.h> #include <stdio.h> #include <dirent.h> #include <sys/stat.h> #endif #include <time.h> #include "ep_utils.h" #include "ep_package.h" #include "zlib.h" ep_writer::ep_writer() { } ep_writer::~ep_writer() { } int ep_writer::packag...
/*----------------------------------------------------------------- * Name: wxMsOptions.cpp * Purpose: * Author: <NAME> * * Copyright: * Licence: wxWidgets license *---------------------------------------------------------------- */ /*-------------------------------------------------------------...
#include "Application.hpp" #include "NE_MemoryStream.hpp" #include "BI_BuiltInNodes.hpp" #include <locale> #ifdef EMSCRIPTEN #include <emscripten.h> #endif static const NUIE::BasicSkinParams& GetAppSkinParams () { static const NUIE::BasicSkinParams skinParams ( /*backgroundColor*/ NUIE::Color (255, 255, 255), /*...
#include <iostream> #include <cstdio> #include <vector> #include <map> #include <sstream> #include <fstream> #include <cstring> #include <cstdlib> using namespace std; typedef vector<vector<int>> IntContainer; typedef IntContainer::iterator IntIterator; class ITE { private: int nNodes, nInputs, nLatches, nOutpu...
// // file subset_fp_file.cc // <NAME> // AstraZeneca // 28th February 2007 // // Does what it says on the tin. #include <iostream> #include <fstream> #include <vector> #include <boost/regex.hpp> #include <boost/shared_ptr.hpp> #include <boost/program_options/cmdline.hpp> #include <boost/program_options/options_descr...
/* ===== ===== ===== Theory of Programming Binary Heap using structure and Heap Sort Algorithm http://theoryofprogramming.com/2015/02/01/binary-heaps-and-heapsort-algorithm/ GitHub - https://github.com/VamsiSangam/theoryofprogramming Code Contributor - <NAME> ===== ===== ===== */ #include <cstdio> #include <cstdlib...
#include "kdx_util.hpp" KDXIndexSummary::KDXIndexSummary(liblas::Reader& reader, boost::uint32_t capacity, bool verbose) { boost::ignore_unused_variable_warning(verbose); liblas::chipper::Chipper c(&reader, capacity); c.Chip(); double mins[2]; double maxs[2]; bool first = true; ...
//PC Engine CD-ROM struct PCD : Thread { Node::Component node; Node::Port tray; Node::Peripheral disc; Shared::File fd; CD::Session session; Memory::Writable<uint8> wram; // 64KB Memory::Writable<uint8> bram; // 2KB //PC Engine Duo only: Memory::Readable<uint8> bios; //256KB Memory::Writable<ui...
#include <iostream> #include <stdlib.h> #include "Southpole.hpp" #include "dsp/digital.hpp" #include "VAStateVariableFilter.h" struct DeuxEtageres : Module { enum ParamIds { FREQ1_PARAM, FREQ2_PARAM, FREQ3_PARAM, FREQ4_PARAM, GAIN1_PARAM, GAIN2_PARAM, GAIN3...
/* ======================================================================== $File: $ $Date: $ $Revision: $ $Creator: <NAME> $ $Notice: $ ======================================================================== */ #include "q3_platform.h" #include "q3_intrinsics.h" #include "q3_assets.h" #include <win...
#include "../../revisit-logger/cpp/logger.hpp" #include <dart/dart.hpp> using namespace dart::dynamics; using namespace dart::simulation; using namespace dart::collision; using namespace Eigen; #include <dart/gui/gui.hpp> #include <iostream> using std::cout; using std::endl; // Centimers conversion from SI units ...
#include<bits/stdc++.h> #include<cmath> #include<array> using namespace std; #define MAX 32 int pow2array[10]; void setpow2array() { for(int i=0;i<10;i++) { pow2array[i]=pow(2,i); } } bool diffispow2(int a , int b) { for(int i=0;i<10;i++) if(a==pow2array[i]&&a==b+1) return false; for(int i=0;i<10;i++) i...
#include <iostream> //#include <stack> #include "../../../../modules/mapping/DSPCC.hpp" #include "examples/mapping_examples/assets/helpers.cpp" // for .csv reader #include "../../../../modules/utils/visualizer.hpp" #include "../../../../modules/utils/metric_err.cpp" #include "../../../../modules/distance/k-related...
#include "FlowLine.h" using namespace std; const int JOBARRIVAL = 1; const int JOBCOMPLETION = 2; const int UNBLOCK = 3; // Service rate is in the unit of # of items/time unit. TOTALTIME and WARMUP both use the // same time unit. JobArrivalEvent::JobArrivalEvent(int station, double time) : Event(JOBARRIVAL,...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
/* Copyright (c) 2020 <NAME> 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 use, copy, modify, merge, publish, distribute, sublicens...
//---------------------------------------------------------- // @file : pot_mapping.cpp // @author : <NAME> // @version: Ver0.1.4 (since 2014.05.02) // @date : 2014.11.12 //---------------------------------------------------------- #include <ros/ros.h> #include <pthread.h> #include <std_msgs/String.h> #include <vi...
// // main.cpp // arbitrage // // Created by <NAME> on 10/5/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> char does_it_exist(char *filename); int main(int argc, char* argv[])...
#include <iostream> #include <sstream> #include <sys/resource.h> #include <thread> #include <algorithm> //#include <boost/asio/thread_pool.hpp> //#include <boost/asio/post.hpp> //#include <boost/bind.hpp> #include <mutex> #include "emissionprobabilitycomputer.hpp" #include "copynumber.hpp" #include "variantreader.hpp" ...
#include "Network.h" Network::Network(){} //If this is being used by itself you need to do SDLNet_INIT! void Network::init(Osa osa) { if(!forceServer) isServer = osa.isServer(); //Dont forget to change for server if needed! start = time(0); if (isServer) { //Server INIT std::cout << "Network: INIT Server" << s...
// ============================================== // // // // ============================================= #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <limits> #include "../headers/graph.h" #include "../headers/dijkstra.h" namespace betacore { dijkstra::di...
// Copyright 2021 SMS // License(Apache-2.0) #include <Clem/Clem.h> #include <future> #include <iostream> #include <string> using namespace std; using namespace clem; // TODO: 物理引擎: 碰撞检测, 乒乓球反弹, 约束球拍 class App : public Application { public: App() : Application("Pong") { } void init() overr...
/** Software License Agreement (BSD) \file semantic_vtr.cpp \authors <NAME> <<EMAIL>> \copyright Copyright (c) 2017, Autonomy Lab (Simon Fraser University), All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
/* --------------------------------------------------------------------------------*\ Copyright 2019 <NAME> 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/LICENS...