text
stringlengths
3.08k
12.5k
/* * * Copyright 2014 <NAME>, <NAME>, <NAME> and * <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/LICENSE-2.0 * *...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/*************************************************************************** Copyright (c) 2015 <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 limita...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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 * * ...
/* Includes ------------------------------------------------------------------*/ #include "stm32f0xx_it.h" #include <main.h> #include <Arduino.h> /** @addtogroup Template_Project * @{ */ /* Private typedef -----------------------------------------------------------*/ /* Private define ---------------------------...
#include "globalStuff.h" #include <iostream> #include <sstream> #include <iomanip> std::vector< cMeshObject* > g_vec_pMeshObjects; //cMeshObject* g_pTheLightMesh = 0; // or NULL // Will show the attenuation of the lights // 1% brightness // 25% brightness // 50% brightness // 90% brightness //cMeshObject* g_pTheLig...
#include <SMObject.h> #include <SMStructs.h> #include <conio.h> // for kbhit #include <Windows.h> #include <iostream> #include <TlHelp32.h> using namespace System; // for console using namespace System::Threading; #define NUM_PROCESS 5 #define waitTime 10 TCHAR* Units[10] = // { TEXT("GPSModule.exe"), TEXT("LaserMod...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and <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 ...
#ifndef INCLUDED_STDDEFX #include "stddefx.h" #define INCLUDED_STDDEFX #endif #ifndef INCLUDED_CALC_IOCSFFIELDSTRATEGY #include "calc_iocsffieldstrategy.h" #define INCLUDED_CALC_IOCSFFIELDSTRATEGY #endif // Library headers. #ifndef INCLUDED_VECTOR #include <vector> #define INCLUDED_VECTOR #endif // PCRaster library ...
#include <map> #include <stack> #include "dependency_analyzer.h" #include "../utilities/mappings.h" #include "../utilities/predicates.h" #include <iostream> using namespace std; using namespace sc2; // //! Stable ID. This ID will not change between patches. // UnitTypeID unit_type_id; // //! Unit type name, correspon...
// //////////////////////////////////////////////////////// // # Title // Primes with runs // // # URL // https://projecteuler.net/problem=111 // http://euler.stephan-brumme.com/111/ // // # Problem // Considering 4-digit primes containing repeated digits it is clear that they cannot all be the same: // 1111 is divisib...
#include <iostream> #include "CCustomerTransaction.h" #include "CCustomer.h" #include "CError.h" #include "common_helper.h" #include <algorithm> bool CustomerTransaction::Login() { int ch; cout << "\n**********************************************************\n"; cout << "\n\t1. New Customer \t 2.Existing Customer...
// C&C NLP tools // Copyright (c) Universities of Edinburgh, Oxford and Sydney // Copyright (c) <NAME> // // This software is covered by a non-commercial use licence. // See LICENCE.txt for the full text of the licence. // // If LICENCE.txt is not included in this distribution // please email <EMAIL> to obtain a copy. ...
#include "controls.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> #include "settings.h" using namespace Settings::Controls; using namespace Settings::Window; Controller::Controller(Camera &camera_, Window &window_) : camera(camera_), window(window_), last_time_point(), is_...
#include <inttypes.h> #include <stdlib.h> #include <string.h> #include <string> #include <utility> #include <vector> #include "WAVM/IR/Module.h" #include "WAVM/IR/Operators.h" #include "WAVM/IR/Types.h" #include "WAVM/IR/Validate.h" #include "WAVM/IR/Value.h" #include "WAVM/Inline/BasicTypes.h" #include "WAVM/Inline/C...
#include <cslibs_arff/arff_data.h> #include <fstream> #include <stdexcept> using namespace cslibs_arff; ArffData::ArffData(): m_rel(""), m_nominals(), m_formats(), m_attrs(), m_instances() { } ArffData::~ArffData() { } void ArffData::set_relation_name(const std::string& name) { m_rel = name; } ...
/* ************************************************************************ * * samearchive - Reads the paths from the input and output the identical * * files. This program is written for the special case * * where each directory acts as an archive or backup. The * * ...
/* * Frog.cpp * * Created on: Oct 22, 2014 * Author: ian */ #include "Frog.h" #include "../SimpleObjects/Sphere.h" #include "../SimpleObjects/Cube.h" Frog::Frog() : HitableObject(Vector3(-2.0, -1.5, -1.0), Vector3(2.0, 1.5, 1.0)) { MyMesh* mesh = new MyMesh(); MyMesh* mesh2 ...
#include <vtkSmartPointer.h> #include <vtkImageReader2Factory.h> #include <vtkImageReader2.h> #include <vtkAssemblyPath.h> #include <vtkCell.h> #include <vtkCommand.h> #include <vtkCornerAnnotation.h> #include <vtkDataArray.h> #include <vtkImageActor.h> #include <vtkImageData.h> #include <vtkImageViewer2.h> #include <...
#include "WindowManager.h" #include <X11/Xatom.h> #include <X11/extensions/Xinerama.h> typedef struct { unsigned long flags; unsigned long functions; unsigned long decorations; long inputMode; unsigned long status; } Hints; unsigned long RGBA2DWORD(int iR, int iG, int iB, int iA) { return ((iA...
// Copyright 2016 <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/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, ...
/* * IOMemcachedIODriver.cpp * !CHOAS * Created by <NAME>. * * Copyright 2012 INFN, National Institute of Nuclear Physics * * 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...
/* Copyright 2018 The Chromium OS 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 <fcntl.h> #include <linux/media.h> #include <sys/ioctl.h> #include <algorithm> #include <iomanip> #include <iostream> #include <sstream> ...
//============================================================================== // This file is part of the SPNC project under the Apache License v2.0 by the // Embedded Systems and Applications Group, TU Darmstadt. // For the full copyright and license information, please view the LICENSE // file that was distributed...
// prototypes.cpp <NAME>, 2020 #include <iostream> #include <cstdio> #include <cctype> #include <cstring> #include <clang-c/Index.h> using namespace std; // $Id: prototypes.cpp 5433 2020-10-15 21:09:02Z arthurcnorman $ // The tutorial at http://shaharmike.com/cpp/libclang/ wi...
#include "stereo_processor/klt.hpp" bool DEBUG_KLT = false; void KLT::compute_pymd(const cv::Mat& prev_img, const cv::Mat& next_img, const std::vector<cv::Point3f>& prev_fts_d, std::vector<cv::Point2f>& next_fts, const cv::Mat& K, const cv::Mat& R, const cv::Mat& t, std::vector<uchar>& status, std::vec...
#define K2_NO_DEBUG 1 #include "Values.h" #include "WordCountMapperEvaluator.h" #include "WordCountMapper.h" //template <class InputT, class OutputT, class InputBundleT, class OutputBundleT, template <class InputT, class OutputT, template<class> class BundleT, wc_mapper::mode mode> //void WordCountMapper<InputT,...
#include <algorithm> #include <array> #include <functional> #include <iostream> #include <numeric> #include <vector> class add { public: add(){}; double operator()(double left, double right) { return left + right; } }; int main() { using namespace std; // The old way: Functors // - Function ob...
#include <Arduino.h> #include "debug.hpp" void setupDriveMotor(void); void execDriveMotor(void); void DriveMotorTask( void * parameter) { int core = xPortGetCoreID(); LOG_I(core); setupDriveMotor(); for(;;) {// execDriveMotor(); delay(1); } } static const uint8_t iConstPinSpeed = GPIO...
/** $lic$ * Copyright (C) 2012-2015 by Massachusetts Institute of Technology * Copyright (C) 2010-2013 by The Board of Trustees of Stanford University * * This file is part of zsim. * * zsim is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as publishe...
#include "ML_modules.hpp" #include "simd_mask.hpp" using simd::float_4; struct SH_channel { dsp::TSchmittTrigger<float_4> trigger[4]; inline void step(int channels, const float_4 *in, const float_4 *trig, float_4 *out) { for(int c=0; c<channels; c+=4) { out[c/4] = ifelse(trigger[c/4].process(trig[c/4]), ...
#include <M5Stack.h> #include <TinyGPS++.h> #include <WiFiMulti.h> #include <HTTPClient.h> #include "HeadView.h" #include "config.h" #include "FunctionButton.h" static const uint32_t GPSBaud = 9600; const long gmtOffset_sec = 9 * 3600; //9時間の時差を入れる const int daylightOffset_sec = 0; //夏時間はないのでゼロ // The TinyGPS++ ob...
/***************************************************************************************** * * * OpenSpace * * ...
// Author: <NAME> // contact: <EMAIL> // Produced for licensing by the Owners of Developers of Automated Space Robotics Inc. // DASPR Inc. #include "ObjectClassification.h" namespace enc = sensor_msgs::image_encodings; // ATTENTION: // These values are given during the setup time for competition. const std::map...
// A simple employee database program. /*Tasks 11. Instead of having an array for the name, one for the phone number, one for the hours and one for the salary, it is better to create a structure for this information and make an array of structures. (This is covered in the study questions for step 3) a) Create a stru...
// ======================================================================== // // Copyright 2020-2021 <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.or...
#include <algorithm> #define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> #include <vector> #include <ctime> #include <iostream> #include <glm/vec3.hpp> #include <glm/mat4x4.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/string_cast.hpp> #include "cycleTimer.h" #include "refRenderer.h" #incl...
#include <gtest/gtest.h> #include <shogun/io/SGIO.h> #include <stdexcept> #include <spdlog/sinks/base_sink.h> #include <spdlog/version.h> #include <mutex> using namespace shogun; using namespace shogun::io; std::mutex& get_io_test_mutex() { static std::mutex test_mutex; return test_mutex; } TEST(SGIO, exception)...
#include <iostream> #include <iomanip> #include <ctime> #include <cstring> #include "input.h" #define MAX_STUDENT_NAME_LENGTH 20 #define MAX_GRADES 100 #define MAX_STUDENTS 100 #define MAX_SUBJECTS 5 #define MAX_SUBJECT_NAME_LENGTH 20 #define DATE_COLUMN_WIDTH 20 using namespace std; char subject_names[MAX_SUBJECTS]...
// // Copyright (C) 2019 Assured Information Security, Inc. // // 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,...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
/* The MIT License Copyright (c) 2015-2017 <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 "ExperimentFunctions.h" #include "VectorSortWithIndex.h" #include "PrettyPrinting.h" #include "Statistics.h" #include "DataGeneration.h" #include "sst/SortedSumTree.h" #include "sst/BruteForceSum.h" #include "sst/Timing.h" #include <cmath> #include <iostream> #include <numeric> #include <map> #include <set>...
// license MIT https://raw.githubusercontent.com/fromjavatohaskell/hexdump/master/LICENSE-MIT #include <iostream> #include <fstream> #include <memory> const int CHUNK_SIZE {16}; const int MAX_BYTE {256}; typedef struct HEXA_BYTE_ { uint8_t c[2]; } HEXA_BYTE; static const char hexadecimal[16] {'0','1','2','3','4','5...
// // skkserv.cc: SKKサーバとの接続を制御する。 // #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <memory.h> #include <ctype.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <local_types.h> #include <list.h> #include <skkserv.h> #define PORT_NUMBER 1178 #defin...
#include "gtest/gtest.h" #include "../src/base/lib_common2.hpp" #include "../src/base/lib_common3.hpp" #include "../src/base/useot.hpp" #include "../src/base/cmd.hpp" #include <typeinfo> //#include <condition_variable> //#include <atomic> //#include <chrono> using namespace nOT::nUtils; class cUseOtTest: public te...
// // Created by <NAME> on 5/7/18. // #include "DenseDTMC.h" #include <eigen/3.3.4/include/eigen3/Eigen/Dense> #include <random> #include <vector> using namespace Eigen; using namespace std; //// Constructors DenseDTMC::DenseDTMC(MatrixXd P) { VectorXd S = VectorXd::LinSpaced(P.rows(),0,P.rows()-1); setDense...
/* * Copyright (c) 2009 Jice * 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 conditions a...
#include "ofxBox2dCompoundBody.h" ofxBox2dCompoundBody::ofxBox2dCompoundBody() { std::cout << "Test"; } void ofxBox2dCompoundBody::setup(b2World * b2dworld, protoBody protoBody, float scaleFactor) { if (b2dworld == NULL) { ofLog(OF_LOG_NOTICE, "ofxBox2dCompoundBody :: setup : - must have a valid world -"); retu...
#include <BullsAndCowsGameEngine.h> BullsAndCowsGameEngine::BullsAndCowsGameEngine(Keypad& keyPad, LiquidCrystal& screen) : GameEngine(keyPad, screen), player(Player(keyPad)), computer(Computer()) { this->gameOver = false; this->tries = 0; this->triesLog = String(); this->screen->clear(); } void Bull...
#include <iostream> #include <vector> #include <deque> using namespace std; #define MaxN 250 int N, M, Start, Finish, NewRep; struct { int Prev, Ending; } Edge[MaxN * MaxN]; int Head[MaxN], Match[MaxN], Father[MaxN], Rep[MaxN]; bool In_Queue[MaxN], In_Path[MaxN], In_Tree[MaxN]; vector <int> Path, Tre...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: S57AttributeDecoder.cpp * Author: andreas * * Created on November 29, 2020, 6:14 PM */ #include <map> #include ...
/** mmap_compression_test.cc -*- C++ -*- <NAME>, 19 Dec 2012 Copyright (c) 2012 Datacratic. All rights reserved. Tests to see how well the mmap compresses various data sets. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include "mmap_test.h" #include "mmap/mmap...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <malloc.h> #include <iostream> extern const char* TestQueue(int& s); struct Queue { int* const elems; //elems申请内存用于存放队列的元素 int max; //elems申请的最大元素个数max int head, tail; //队列头head和尾tail,队空head=tail;初始head=tai...
#include <vector> #include <array> #include <bitset> #include <iostream> constexpr std::size_t get_cell(std::size_t row, std::size_t col) noexcept { return (row / 3) * 3 + col / 3; } constexpr std::size_t get_next_row(std::size_t row, std::size_t col) noexcept { return row + (col + 1) / 9; } constexpr std::s...
/* # <<BEGIN-copyright>> # Copyright 2019, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: MIT # <<END-copyright>> */ #include <stdio.h> #include <stdlib.h> #include <iostream> #include <set> #include <exception> #include <stdexcept> #include "G...
#include <bits/stdc++.h> #define ll long long int using namespace std; string ltrim(const string &); string rtrim(const string &); vector<string> split(const string &); /* * Complete the 'journeyToMoon' function below. * * The function is expected to return an INTEGER. * The function accepts following parameters:...
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #include <test_common.h> #include <sprokit/processes/adapters/embedded_pipeline.h> #include <sprokit/pipeline_util/lite...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
#include "App/utils.h" #include <boost/algorithm/hex.hpp> #include <boost/filesystem.hpp> using std::string; namespace tc { namespace utils { log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("utils.cpp")); } } // namespace tc using tc::utils::logger; /*! * \brief Initialize the enclave: * Step 1: tr...
#include "pch.h" #include "../Cheval/src/Headers/World.h" #include "../Cheval/src/Headers/DataStructures/Transforms.h" #include "../Cheval/src/Headers/Models/Shapes/Sphere.h" /* * Scenario: Creating a world Given w ← world() Then w contains no objects And w has no light source */ TEST(WorldTests, CreatingWorld) {...
/** \file pop_options.cpp * \brief Functions for parsing runtime options for popbam * \author <NAME> * \version 0.5 */ #include <iostream> #include <fstream> #include <string> #include <vector> #include "pop_global.h" #include "pop_options.h" #include "pop_sample.h" #include "pop_utils.h" #include "popbam.h" #in...
#include "Controller.h" #include "Debug.h" using namespace std; static int WacomFingerCallback(WacomMTFingerCollection *fingerPacket, void *userData); void ControlState::Initialize() { ZeroMemory(KeyboardCurrent, sizeof(char) * 256); ZeroMemory(KeyboardLast, sizeof(char) * 256); ZeroMemory(KeyboardTrigge...
/** * @author <NAME> (Kent) * @date 2009-01-30 */ #include <ProcessOptions.h> #include <net/message_framework.h> #include <IndexManager.h> #include <boost/smart_ptr.hpp> #include <boost/thread.hpp> #include <boost/bind.hpp> #include <vector> #include <string> #include <iostream> #include "boost/date_time/po...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
/* * WindowBase.cpp * * Created on: 26 Sep 2019 * Author: jkiesele */ #include "FWCore/Utilities/interface/Exception.h" #include "../interface/WindowBase.h" WindowBase::WindowBase(float centerEta, float centerPhi, float outerRegionDEta, float outerRegionDPhi, float innerRegionDEta, float inner...
/* Copyright 2020 <NAME> (aka DevilishSpirits) * * 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 l...
/* ***** BEGIN LICENSE BLOCK ***** * Version: RCSL 1.0/RPSL 1.0 * * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, are * subject to the current version of the RealNetworks Public Source License * Version ...
// // MIT License // // Copyright (c) <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, merg...
#pragma once #include "types.hpp" #include "move.hpp" #include "position.hpp" #include "hash.hpp" #include "move_order.hpp" #include <atomic> #include <memory> #include <thread> #include <vector> #include <mutex> #include <condition_variable> class Thread; namespace Search { constexpr int PV_LENG...
#include <iostream> #include <cmath> #include <glm/gtc/matrix_transform.hpp> #include "Scene.h" Scene::Scene() { quad = NULL; } Scene::~Scene() { if(quad != NULL) delete quad; for(int i=0; i<3; i++) if(texQuad[i] != NULL) delete texQuad[i]; } void Scene::init() { //size of the terrain glm::vec2 geom[2]...
#include "walker.h" #include <boost/graph/dijkstra_shortest_paths.hpp> #include "ParseSpaceDelimited.h" void cWalker::read( const std::string &fname) { std::ifstream inf(fname); if (!inf.is_open()) { std::cout << "cannot open " << fname << "\n"; exit(1); ...
#include <cstdio> #include <algorithm> #include <functional> #include <map> #include <vector> #include "chip.h" #include "dlx.h" #include "ilog.h" using namespace std; using Solution = pair<vector<int>, string>; int generate_covers(const vector<Shape> &chips, const Shape &weapon, vector<Solution> &sols){ ...
// // Copyright 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Tra...
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
#include <iostream> #include <filesystem> #include <fstream> #include <vector> #include <complex> std::vector<std::vector<int>> read_input_file(const std::string &file_path); int power_consumption(const std::vector<std::vector<int>> &report); int live_support(const std::vector<std::vector<int>> &report); std::vector...
#include "CommandMinigame.h" #include <boost/algorithm/string.hpp> #include <iostream> void CommandMinigame::sendWinMessage(vector<std::string> &players, vector<std::string> &spectators, std::string msg) { msg.append(" Type 'minigame exit' to leave this game \n"); for(const std::string &iter : spectators){ ...
// Copyright 2014, Beeri 15. All rights reserved. // Author: <NAME> (<EMAIL>) // #include <sys/stat.h> #include <leveldb/db.h> #include "base/googleinit.h" #include "file/list_file.h" #include "file/sstable/sstable.h" #include "file/proto_writer.h" #include "strings/escaping.h" #include "util/lmdb/disk_table.h" #inclu...
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdict...
#include "ellipsoid.hpp" #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/rotate_vector.hpp> glm::vec3 RotateAroundAxis(glm::vec3 vec, glm::vec3 axis, float theta) { float u = axis.x; float v = axis.y; float w = axis.z; float cosTheta = std::cos(theta); float sinTheta = std::sin(theta); ...
#include <string.h> #include <unistd.h> #include <minigui/common.h> #include <minigui/minigui.h> #include <minigui/gdi.h> #include <minigui/window.h> #include <minigui/control.h> #include <mdolphin/mdolphin.h> #include <mdolphin/mdolphin_errcode.h> static char buf[32]; #if ENABLE_NATIVEERROR #define MD_ERROR_404_...
#include "Fase3.hpp" #include "Principal.hpp" const int Fase3::AlturaChao (Principal::Altura * 0.925); const sf::Vector2f Fase3::SpawnJogador1 (250, AlturaChao * 0.9); const sf::Vector2f Fase3::SpawnJogador2 (280, AlturaChao * 0.9); Fase3::Fase3 (std::string jogador1, std::string jogador2, Janela* janela) : Fase (j...
/* * Algol - A RISC-V (RV32I) Processor Core. * * Copyright (C) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE...
#include <Wire.h> #include "SDL_Arduino_INA3221.h" #include <Arduino.h> // #include <WiFi.h> // #include <PubSubClient.h> // #include <ArduinoOTA.h> // #include <OneWire.h> // #include <DallasTemperature.h> // current sensor SDL_Arduino_INA3221 ina3221; // the three channels of the INA3221 #define TEST_CHANNEL 2 /* ...
#include "colorsay.h" #include "globals.h" #include "utils.h" #include "console.h" #include "chatcolor.h" #include "clientcommands.h" #include "servercommands.h" #include <tier1.h> #include <string> #include <sstream> using namespace std; colorsay::ColorSayPlugin g_pPlugin; EXPOSE_SINGLE_INTERFACE_GLOBALVAR(ColorSayP...
/* * Copyright 2021 The CFU-Playground Authors * * 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 l...
#include "FusionEKF.h" #include <iostream> #include "Eigen/Dense" #include "tools.h" using Eigen::MatrixXd; using Eigen::VectorXd; using std::cout; using std::endl; using std::vector; /** * Constructor. */ FusionEKF::FusionEKF() { is_initialized_ = false; previous_timestamp_ = 0; VectorXd x = VectorXd(4); ...
#pragma once #include <string> #include "lib/ip.hpp" class Interface; class Payload; struct State; /* * Packet state */ #define PS_TCP_INIT_1 0 // TCP 3-way handshake SYN #define PS_TCP_INIT_2 1 // TCP 3-way handshake SYN/ACK #define PS_TCP_INIT_3 2 // TCP 3-way handshake ACK #define PS_TCP...
/* Perform filtering on audio samples * - reads input from stdin and writes filtered samples to stdout * - two channels (front left, front right) * - samples in interleaved format (L R L R ...) * - samples are 16-bit signed integers (what the Rpi needs) * * Usage: * ./ffmpeg_decode cool_song.mp3 | ./filter | ...
#include "../Headers/Texture2D.h" #include <assert.h> #include "../Headers/ThirdParty/bmp_io.hpp" #include "../Headers/ThirdParty/lodepng.h" using namespace RT; namespace { template<typename T> T Clamp(T min, T max, T val) { return (val < min ? min : (val > max ? max : val)); } } Texture2D::Texture2D(cons...
//Implementación de librería #include "adivinum.h" //Prototipo de función void ConfigurarColor(int valor); using namespace std; void InstruccionesAdivinum() { //Nombre del juego cout << "ADIVINUM" << endl << endl; cout << "===============================================================" << "=====" << e...
#include "Csdl2.h" #include "TypeDef.h" CSDL2::CSDL2() { //ctor } CSDL2::CSDL2(int width, int height, const char* windowName) { screenWidth = width; screenHeight = height; // Initialize SDL's Video subsystem if (SDL_Init(SDL_INIT_VIDEO) < 0) Sdldie("Unable to initialize SDL"); //Or die on error ...
#pragma once #include <cstdio> #include <Windows.h> #include "Types.h" // ****************** // * Counter stuff. * // ****************** LARGE_INTEGER counterEpoch; LARGE_INTEGER counterFrequency; static FILE* logFile; float getElapsed() { LARGE_INTEGER t; QueryPerformanceCounter(&t); auto result = ...
// elevatortest.cc // Driver code to test the elevator device implementation. // We create a single rider thread and a single elevator thread; // in practice there will be multiple riders and multiple elevators, // each with its own thread. // // Copyright (c) 1996 The Regents of the University of California. // All r...
#include "transmissor.h" #include <numeric> #include "../bitHandler/bitHandler.h" std::vector<bool> Transmissor(int tipoDeControleDeErro){ return AplicacaoTransmissora(tipoDeControleDeErro); } std::vector<bool> AplicacaoTransmissora(int tipoDeControleDeErro) { std::string a; std::getline (std::cin, a)...
#include <iostream> #include "web_server.hpp" #include "json_rpc_service.hpp" #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <fmt/format.h> #include <rapidjson/document.h> #include <rapidjson/stringbuffer.h> #include <rapidjson/writer.h> class phkvs_web_test_app { public: enum { ...
#include "canfunc_chuangxin.h" // CAN #define DeviceType 4 //设备类型 CANalyst-II #define DeviceInd 0 //设备索引号 #define CANInd 0 //第0路CAN #define Reserved 0 //保留 #define ERROR_LOAD_DLL 0x1 //DLL加载失败 #define ERROR_LINK_DLL_FUNCS 0x2 //DLL函数链接失败 #define ERROR_OPENDEVICE 0x3 //打开设备失败 #define ERROR_Init...
// // Created by leander.behr on 10/14/19. // #include "../defines.h" #include "gtest/gtest.h" #include <hypro/algorithms/quickhull/Quickhull.h> using namespace hypro; using number_t = mpq_class; using qHull = Quickhull<number_t>; using qIntersection = QuickIntersection<number_t>; // bool checkContainment(qh::point...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
/**************************************************************** * File : DSAsmt02.cpp * Version : 1.0 * Date : February, 2014 * Author : <NAME> (<EMAIL>) * Subject : Main file for Expression assignment *****************************************************************/ #include "Expres...