text
stringlengths
5.71k
33.7k
/* Copyright (C) 2018-2019 <NAME>, TKJ Electronics. All rights reserved. * * This program is free software: you can redistribute it and/or modify it * under the terms of the MIT License * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warrant...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99: * * 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/. */ #i...
#include "MSCHAP.h" #include <iostream> #include <stdint.h> #include <string.h> #include <Arduino.h> #include "sha1.h" #include "md4.h" #include "des.h" #include "DebugMsg.h" int ChallengeHash( uint8_t PeerChallenge[16], uint8_t AuthenticatorChallenge[16], char *UserName, uint8_t Challenge[8]); int NtPasswordHash(...
#include "slam.hpp" std::ostream &operator<<(std::ostream &out, const RotationMatrix &r) { out.setf(std::ios::fixed); Eigen::Matrix3d matrix = r.matrix; out << '='; out << "[" << std::setprecision(2) << matrix(0, 0) << "," << matrix(0, 1) << "," << matrix(0, 2) << "]," << "[" << matrix(1, 0) <<...
#include "DriveControl.h" #include "CommonIncludes.hpp" #include <fstream> ofstream positionlogger("positionlog.log"); DriveControl::DriveControl(RobotState* robot, CSVReader* csvReader) { m_robot = robot; m_csvReader = csvReader; // set up acceleration profile filtering classes m_straightFilter = new ContinuousA...
/*Version 0.1 Designed by <NAME> at 06/04/2012 */ #include <iostream> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include "CL_transistor.h" #include "CL_cells.h" #define _VERSION_ 0.1 using namespace std; int cmd_help(){ cout << "Available commands:" << endl << endl; cout << "Dis...
#include "mbed.h" #include "N5110.h" #include <array> // overloaded constructor includes power pin - LCD Vcc connected to GPIO pin // this constructor works fine with LPC1768 - enough current sourced from GPIO // to power LCD. Doesn't work well with K64F. N5110::N5110(PinName const pwrPin, PinName...
/* Excited States software: KGS Contributors: See CONTRIBUTORS.txt Contact: <EMAIL> Copyright (C) 2009-2017 Stanford University 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 restrictio...
/* Copyright 2001 to 2004. The Battle Grounds Team and Contributors This file is part of the Battle Grounds Modification for Half-Life. The Battle Grounds Modification for Half-Life is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License ...
#include <ql/quantlib.hpp> #include <boost/assign/std/vector.hpp> #include <iostream> #include <fstream> using namespace QuantLib; using namespace boost::assign; void bdkSmile() { std::ofstream out; out.open("bdk.dat"); Real forward = 0.03; Real expiryTime = 20.0; std::vector<Real> sabrPara...
// ============================================================================ // SeqAn - The Library for Sequence Analysis // ============================================================================ // // Copyright (c) 2006-2018, <NAME> & Freie Universitaet Berlin // Copyright (c) 2016-2018, <NAME...
#include "CWorld.h" #include "CVegetationSystem.h" #include "CTerrainSystem.h" #include "CCameraManager.h" #include "CNatureManager.h" #include "Structures.h" #include "IPhysicsStrategy.h" #include "CGameObject.h" #include "CGameManager.h" #include "CPhysicsManager.h" #include "IO/CoreLogging.h" // PagedGeometry #incl...
/* * Test cases for matrix singular value decomposition (SVD). * Written by <NAME> and <NAME>. */ #include <iostream> #include <gtest/gtest.h> #include "math/matrix_tools.h" #include "math/matrix_qr.h" TEST(MatrixQRTest, MatrixApplyGivensRotation) { // create simple enumeration matrices double mat[5 * 4];...
/* * elvinmsg.cpp * A set of functions to dispatch and receive PDMR events. * This is basically an interface between the rest of the program * and the elvin procedures - keeping them separate * * <NAME> 27/08/2006 */ #include <stdio.h> #include <stdlib.h> #include "text.h" #include "Puck.h" #include "Playe...
/**************************************************************************** * Copyright (c) 2021, CEA * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retai...
#include "TileEngine/TileAnimation.h" #include <stdexcept> #include "Editor/Smooth.h" #include "SGP/Debug.h" #include "SGP/MemMan.h" #include "Tactical/Bullets.h" #include "Tactical/Keys.h" #include "Tactical/Overhead.h" #include "Tactical/RottingCorpses.h" #include "Tactical/SoldierFind.h" #include "Tactical/Weapons...
// // LICENSE: // // Copyright (c) 2016 -- 2017 <NAME> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and th...
/* Simbicon 1.5 Controller Editor Framework, Copyright 2009 <NAME>, <NAME> and <NAME>. All rights reserved. Web: www.cs.ubc.ca/~van/simbicon_cef This file is part of the Simbicon 1.5 Controller Editor Framework. Simbicon 1.5 Controller Editor Framework is free software: you can redistribute it and/or modify ...
/******************************************************* Lightwave Object Loader for OSG Copyright (C) 2004 <NAME> <<EMAIL>> OpenSceneGraph is (C) 2004 <NAME> ********************************************************/ #include "Surface.h" #include <osg/Material> #include <osg/CullFace> #include <osg/Texture...
#include <setup_occ.h> #include <config.h> #include <common.h> #include <set> #include <small_bank.h> #include <fstream> #include <setup_workload.h> #include <unistd.h> extern uint32_t GLOBAL_RECORD_SIZE; Table** setup_occ_lock_tables(int start_cpu, int end_cpu, uint32_t table_sz) { assert(READ_COMMITTED); ...
/* * Created by <NAME> on 2018/4/3. * * 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 ...
#include <Arduino.h> #include <stdint.h> #include <avr/pgmspace.h> #include <avr/power.h> #include <avr/sleep.h> #include "EEPROMex.h" #include "SparkFunBME280.h" #include "Wire.h" #include "SPI.h" #include "VCNL4040.h" #include "TimerOne.h" #include "CmdMessenger.h" #include "SoftReset.h" #include "LED.h" #define APP...
#include "DynamicConstant.h" #include "LayoutCodex.h" #include "Vertex.h" #include "Graphics.h" #include "Window.h" #include <cstring> #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "Material.h" #include "Mesh.h" #include "Testing.h" #include "SherbertEngine_XM.h" #inc...
#include "nodeio.ioio.h" #include "Arduino.h" #include "sd_handler.h" #include "radio_comms.h" #define NODE_GROUND //copied from RocketCAN enum BOARD_STATUS { E_NOMINAL = 0, E_BUS_OVER_CURRENT, E_BUS_UNDER_VOLTAGE, E_BUS_OVER_VOLTAGE, E_BATT_UNDER_VOLTAGE, E_BATT_OVER_VOLTAGE, E_BOARD_FEARE...
#include "Elaboration.h" #include "Segment.h" #include "Neuron.h" #include "Func.h" //#include "stdafx.h" using namespace std; ; Func * Dim::getPreFunc(){ return this;} int Dim::countSegment(Segment *t) { // int tmp=1; // if(t->getNext1()!=NULL) // tmp= tmp+countSegment(t->getNext1()); //...
#include "gltf_material.h" static const char* pbrMetalicRoughnessVS = R"( attribute vec4 a_Position; #ifdef HAS_NORMALS attribute vec4 a_Normal; #endif #ifdef HAS_TANGENTS attribute vec4 a_Tangent; #endif #ifdef HAS_UV attribute vec2 a_UV; #endif #ifdef HAS_VERTEX_COLOR attribute vec4 a_Color; varying vec4 v_Color;...
#include "keyframe.h" #include "keypoints.h" // View Class : Start View::View(TimeCamId tcid, std::string imgPath, int nfeatures, bool rotateFeatures) : mTimeCamId(tcid), parentKF(nullptr) { mKeypoints = Keypoints(imgPath, nfeatures, rotateFeatures); } TimeCamId View::id() const { return mTimeCamId;...
// ObjectTalk Scripting Language // Copyright (c) 1993-2022 <NAME>. All rights reserved. // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. // // Include files // #include <algorithm> #include <sstream> #include <string> #include <vector> #inclu...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "internal.h" #include "couch_btree.h" #include "reduces.h" #include "bitfield.h" #include "arena.h" #include "tree_writer.h" #include "node_types.h" #include "util.h" #include "couch_latency_internal.h" #includ...
// Copyright 2020 Makani Technologies LLC // // 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 ...
#include "Operations.hpp" #include <iostream> #include <algorithm> #include <array> #include <cassert> #include <cmath> #include <cstdlib> #include <cstdio> class Pos { public: Pos(std::size_t xe, std::size_t ye, std::size_t w, std::size_t h) : x{xe}, y{ye}, pos{y*w+x}, width{w}, height{h...
/* * This file is part of FSA, a sequence alignment algorithm. * Source code in this file was written by <NAME>. */ #include "fsa/fsa.h" #include <errno.h> #if defined(HAVE_CONDOR) #include "MW.h" #include "MWSystem.h" #endif #define END_DATA 0 #define SPARSE_DATA 1 #define HEAP_DATA 2 using namespace fs...
#include <iostream> #include <fstream> #include <map> #include <stdio.h> #include <assert.h> #include "ozz/animation/offline/raw_skeleton.h" #include "ozz/animation/offline/skeleton_builder.h" #include "ozz/animation/offline/raw_animation.h" #include "ozz/animation/offline/animation_optimizer.h" #include "ozz/animat...
#include "robot-config.h" /*+++++++++++++++++++++++++++++++++++++++++++++| Notes |++++++++++++++++++++++++++++++++++++++++++++++ Tank Control This program instructs your robot to use remote control values to move the robot. Robot Configuration: [Smart Port] [Name] [Type] [Description] ...
/*! * \file simplification.cc * * \author <NAME> * * Copyright (c) 2018, University of Arizona <br> * All rights reserved. <br> * See ./LICENSE for details. <br> * * This file is one of the drivers for reproducing the result for the paper titled: "Sparse Computation Data Dependence Simplification for Effic...
#include <vector> #include <cameraserver/CameraServer.h> #include <frc/SmartDashboard/SmartDashboard.h> #include <frc/Timer.h> #include "opencv2/highgui.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" // #include "ApproxMath.h" // #include "BallFinder.h" //#include "../../include/Subsystems/Lidar...
/* * papertrading.cpp * * Created on: 16. 1. 2022 * Author: ondra */ #include "papertrading.h" #include <chrono> #include <random> #include <imtjson/binary.h> #include "../imtjson/src/imtjson/object.h" PaperTrading::PaperTrading(PStockApi source) :state{source} { std::random_device x; std::uniform_in...
#include "Validation/MuonME0Validation/interface/ME0DigisValidation.h" #include <TMath.h> ME0DigisValidation::ME0DigisValidation(const edm::ParameterSet &cfg) : ME0BaseValidation(cfg) { InputTagToken_ = consumes<edm::PSimHitContainer>(cfg.getParameter<edm::InputTag>("simInputLabel")); InputTagToken_Digi = consumes...
#include <limits> #include <cmath> #include <iostream> #include <sstream> #include <stack> using namespace std; #include "MedJoinNet.h" #include "Vertex.h" #include "Edge.h" #include "NetworkError.h" #include <QTime> MedJoinNet::MedJoinNet(const std::vector<Sequence *> & seqs, const vector<bool> & mask, unsigned eps...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; ...
\ // Copyright (c) 2017 <NAME> // Unlike the rest of Bitcoin Core, this file is // distributed under the Affero General Public License (AGPL v3) #include <rpc/server.h> #include <rpc/protocol.h> #include <rpc/util.h> #include <hash.h> #include <util/strencodings.h> #include <udpapi.h> #include <netbase.h> #include <...
#include <society.h> N::NationLists:: NationLists (QWidget * parent,Plan * p) : TreeDock ( parent, p) { Configure ( ) ; } N::NationLists::~NationLists (void) { } void N::NationLists::Configure(void) { setAccessibleName ( "N::NationLists" ) ; setObject...
#include <wx/wx.h> #include <wx/aboutdlg.h> #include <wx/textfile.h> #include <wx/fileconf.h> #include <wx/stdpaths.h> #ifndef __WXMSW__ #include <sys/resource.h> #endif #include "simplego-frame.h" #include "simplego-panel.h" #include "simplego-settings.h" #include "simplego-statusbar.h" // Frame constructor - read se...
#include "ncer.h" #include "lodepng.h" #include "little_endian.h" #include <fstream> #include <sstream> #define SSTR( x ) dynamic_cast< std::ostringstream & >( \ ( std::ostringstream() << std::dec << x ) ).str() using namespace std; NCER::NCER() {} void NCER::insert_cells(std::string& ncer_file, NCGR& ncgr...
/* Copyright (c) 2017, <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 code must retain the above copyright notice, this list of conditions and the following disclai...
// Copyright <NAME> #include "GHFontRenderer.h" #include "GHVBFactory.h" #include "GHFont.h" #include "GHPlatform/GHDebugMessage.h" #include "GHVBBlitter.h" #include "GHVBDescription.h" #include "GHVertexBuffer.h" #include "GHIndexBufferUtil.h" #include "GHVertexBufferUtil.h" #include "GHMath/GHColor.h" GHFontRendere...
// Copyright 2021 BotanicFields, Inc. // PCF8563 RTC for M5 Series #include <Arduino.h> #include "BF_Pcf8563.h" int Pcf8563::Begin(TwoWire &wire) { m_wire = &wire; // clear registers external_clock_test_mode = false; source_clock_stoped = false; power_on_reset_override = true; if (WriteControl() !=...
// Copyright <NAME> 2020. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <bounded/integer.hpp> #include <numeric_traits/min_max_value.hpp> #include <cstdint> namespace technicalmachine...
#include "OscProbMatterUniform.hh" #include <Eigen/Dense> #include "OscillationVariables.hh" #include "PMNSVariables.hh" #include "ParametricLazy.hpp" #include "TMath.h" #include "TypesFunctions.hh" OscProbMatter::OscProbMatter(Neutrino from, Neutrino to, const std::string& baseline, const std::string& rho) : OscP...
#include <math.h> #include <iostream> #include "rocketcalc.hpp" #include "figureslib.hpp" #include "metrics.hpp" //void setnozzleforce (double fnozzle); is in charge of setting the nozzle force attribute void nozzle::setnozzleforce(double fnozzle) { nozzleforce = fnozzle; return; } /* double calcnozzl...
/************************************************************************* * PLEASE SEE THE FILE "license.txt" (INCLUDED WITH THIS SOFTWARE PACKAGE) * FOR LICENSE AND COPYRIGHT INFORMATION. *************************************************************************/ /* ================================================...
#include <iostream> #include <string> #include <iomanip> #include "test_framework.h" #include "trie.h" int TrieHelper(void *data) { Trie testTrie; testTrie.InsertWord(std::string("Test")); testTrie.InsertWord(std::string("Ten")); testTrie.InsertWord(std::string("Sharat")); if (testTrie.SearchWord...
#include "SerialHandler.h" extern bool LOG; extern bool DEBUG; SerialHandler ::SerialHandler(Util *u) { util = u; } void SerialHandler::setFSstate( bool fsState) { isFS = fsState; } void SerialHandler::showFile(char answ[]) { String fName = answ; fName = fName.substring(2, fName.length()); File file = SP...
#include <vector> #include <unordered_map> #include <tuple> #include <utility> #include <algorithm> #include <iostream> #include "region.hpp" // Create hits from matching minimizers on query and target // Args: fwd - list of minimizer hits with same relative strand origin // rev - list of mini...
// Volumetric3D_EMC.cpp // created by Kuangdai on 16-May-2017 // genetral Volumetric3D model with IRIS-EMC format #include "Volumetric3D_EMC.h" #include <sstream> #include "XMPI.h" #include "XMath.h" #include "Geodesy.h" #include "Parameters.h" #include "NetCDF_Reader.h" #include "NetCDF_ReaderAscii.h" #include <dir...
#include <cmath> #include <vector> #include <iostream> #include <algorithm> #include <chrono> #include <thread> float max(std::vector<float> x); float min(std::vector<float> x); class Vector { public: float x; float y; float z; Vector(float _x, float _y, float _z){ x = _x; y = _y...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <fstream> #include <utilities/string_utilities.h> #include <utilities/math_utilities.h> #include "flame_params.h" static double NormalizeComposition(const size_t num_elements, double composition[]); FlameParams::Fl...
// ots_udp_hw_emulator.cpp // by rrivera at fnal dot gov // created Feb 2016 // // This is a simple emulator of a "data gen" front-end (hardware) interface // using the otsdaq UDP protocol. // // compile with: // g++ ots_udp_hw_emulator.cpp -o hw.o // // if developing, consider appending -D_GLIBCXX_DEBUG to get mo...
/* * Automatic Addison * Date: May 28, 2021 * ROS Version: ROS 1 - Melodic * Website: https://automaticaddison.com * This ROS node uses the A* path planning algorithm to find * the least-cost path from a starting location to a goal location. * Subscribe: ROS node that subscribes to the following topics: * /c...
/* Copyright (c) <2003-2019> <<NAME>, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, *...
#include "AliAnalysisTaskdStar.h" // ROOT includes #include <TChain.h> #include <TClonesArray.h> #include <TH2F.h> #include <TList.h> // ALIROOT includes #include "AliPDG.h" #include "AliVTrack.h" #include "AliVVertex.h" #include "AliVEvent.h" #include "AliAODTrack.h" #include "AliAODMCParticle.h" #include "AliAODVe...
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details #include "meshoptimizer.h" #include <assert.h> #include <math.h> #include <string.h> // This work is based on: // <NAME>. Linear-Speed Vertex Cache Optimisation. 2006 // <NAME>, <NAME> and <NAME>. Fast Triangle Reordering f...
/* SFE_BMP180.cpp Bosch BMP180 pressure sensor library for the Arduino microcontroller <NAME>, SparkFun Electronics Uses floating-point equations from the Weather Station Data Logger project http://wmrx00.sourceforge.net/ http://wmrx00.sourceforge.net/Arduino/BMP085-Calcs.pdf Forked from BMP085 library ...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
#include "stdafx.h" #include "laser_output.h" #include "trace.h" // DEBUG TRACE -> Generates "trace.txt" file #define LASEROUTPUT_DEFAULT_SCAN_SPEED 12000 // DEBUG int mid_point = 0; CLaserOutput::CLaserOutput() { // Clear out the name memset(m_szName, 0, 256); // Allocate some memory for our point stream m_p...
/*************************************************************************** * Copyright (C) by <NAME> * * * * You can redistribute and/or modify this program under the * * terms of the...
#include "md5.h" /** * \author <NAME> * \date 20/01/2008 * \version 1.0.0 * * \fn MD5::MD5() * \brief Default Constructor * * **/ MD5::MD5() { init(); } /** * \author <NAME> * \date 20/01/2008 * \version 1.0.0 * * \fn MD5::MD5(char* path) * \brief Constructor for files * * **/ MD5::MD5(cha...
//===-- StringPrinter.cpp ----------------------------------------*- C++ //-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------------------...
#define _WINSOCK_DEPRECATED_NO_WARNINGS #ifndef _EVENT_HAVE_PTHREADS #define _EVENT_HAVE_PTHREADS #endif #ifdef _WIN32 #ifndef WIN32 #define WIN32 #endif #define _WIN32_WINNT 0x0600 #include <winsock2.h> #include <windows.h> #include <WS2tcpip.h> #endif #include "ZNetworkKCP.h" #include "../../../../Core/Template/TA...
// Copyright 2013 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 "net/websockets/websocket_stream.h" #include <utility> #include "base/logging.h" #include "base/metrics/histogram_functions.h" #include "base/t...
// // Created by chen on 2021/5/2. // #include "trajectory.h" Trajectory::Trajectory() : time_start_(0.0), duration_s_(0.0), duration_d_(0.0), target_velocity_(0.0), start_state_(Eigen::VectorXd::Zero(6)), target_state_(Eigen::VectorXd::Zero(6)), S_coeffs_(Eigen::VectorXd::Zero...
/******************************************************************** * * Software License Agreement (BSD License) * * Copyright (c) 2012, Max-Planck-Gesellschaft * Copyright (c) 2012-2015, Inria * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; ei...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
#include <thread> #include <atomic> #include "mmap_alloc.hpp" #include "bit_index.hpp" #define GB (1024LL*1014LL*1024LL) #define MB (1024LL*1024LL) #define LOG2(X) ((unsigned) (8*sizeof (unsigned long long) - __builtin_clzll((X)) - 1)) class basic_page { public: basic_page():_next_page(nullptr){} virtual ~...
// // LODManager.cpp // interface/src/LODManager.h // // Created by Clement on 1/16/15. // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "LODManager.h" #include <Sett...
/***************************************************************************** * Dwarf Mine - The 13-11 Benchmark * * Copyright (c) 2013 <NAME>; <NAME>; Kusber, * Michael; Lohse, Henning; <NAME>; Xylander, Oliver; <NAME>; * Zimmermann, Florian * * Permission is hereby granted, free of charge, to any person obtaining * ...
// Copyright 2022 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. // // This implements management of EFI boot entries for systems where we manage // those entries (UEFI systems not running Chrome OS firmware). // // T...
#include <iostream> #include <fstream> #include "GfxConfiguration.h" #include "AssetLoader.hpp" #include "OpenGLGraphicsManager.hpp" #include "IApplication.hpp" #include "SceneManager.hpp" const char VS_SHADER_SOURCE_FILE[] = "Shaders/basic.vs"; const char PS_SHADER_SOURCE_FILE[] = "Shaders/basic.ps"; using namespace...
/** * Copyright (c) 2007-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 code must retain the above copyright notice, this * list of conditi...
#include "items.hpp" #include <cstdint> #include <iostream> #include <filesystem> #include <fstream> #include <vector> #include <array> #include <iterator> auto validate = false; struct file { std::filesystem::path directory; std::string filename; std::uint16_t min_id; std::uint16_t max_id; std::streamoff strin...
// LCM example program for interacting with PCL data // In this case it pushes the data back out to LCM in // a different message type for which the "collections" // renderer can view it in the LCM viewer // mfallon aug 2012 #include <stdio.h> #include <inttypes.h> #include <lcm/lcm.h> #include <iostream> //#include ...
/**************************************************************************** * This file is part of PPMd project * * Written and distributed to public domain by <NAME> 1997, * * 1999-2000 * * Contents: mo...
// Copyright (c) 2010 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 "views/controls/menu/native_menu_gtk.h" #include <algorithm> #include <map> #include <string> #include "app/keyboard_code_conversion_gtk.h"...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2003, 2004 <NAME> Copyright (C) 2005, 2007 StatPro Italia srl Copyright (C) 2006 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://q...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <std_msgs/String.h> #include <sensor_msgs/PointCloud2.h> #include <nav_msgs/Odometry.h> #include <iostream> #include <std_msgs/Float64.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/registration/ndt.h> #include <pcl/filters/...
/* src/example1.cpp -- C++ version of an example application that shows how to use the various widget classes. For a Python implementation, see '../python/example1.py'. NanoGUI was developed by <NAME> <<EMAIL>>. The widget drawing code is based on the NanoVG demo application by <NAME>. All...
// Copyright 2014 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 <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <string.h> #include <vector> #include "ppapi/c/pp_errors.h" #include "ppapi/c/ppb_opengles2.h"...
// Copyright 2019 Autodesk, 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 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAutoMalloc.h" #include "SkColorSpace_Base.h" #include "SkColorSpace_XYZ.h" #include "SkColorSpacePriv.h" #include "SkColorSpaceXformPriv.h" #include "SkEndian.h" #...
#include "Engine/Core/Image.hpp" #include "Engine/Core/ErrorWarningAssert.hpp" #include "Engine/Core/FileUtils.hpp" #include "Engine/Core/StringUtils.hpp" #include "Engine/Platform/Win.hpp" #include "Engine/Math/MathUtils.hpp" #include "Engine/Renderer/DirectX/DX11.hpp" #include "Engine/Renderer/Renderer.hpp" #include...
// Copyright 2018 <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #define _SCRIPT_JSON_CPP #include "JSON.h" #include "main.h" #include <stdexcept> #include "lexer.h" #include <modules/util/str.h> #include <modules/util/to_s...
/* Copyright 2016 Google Inc. All Rights Reserved. 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 wri...
#include <string.h> #include <stdlib.h> #include "sokol_fetch.h" #include "sokol_gfx.h" #include "sokol_debugtext.h" #include "stb_image.h" #include "tk_sprite.h" #define TKSPRITE_INITIAL_VERTBUFFSIZE (1024 * 64) #define TKSPRITE_INITIAL_INDEXBUFFSIZE (1024 * 12) // TODO make growable #define TKSPRITE_MAX_BATCHE...
#include "stdafx.h" /* TRY3 - This acutally works The model: vin-->X---->+--->ADC | | k2 k1 DAC--->*--->+----> vout | | k4 k3 The problem: solve for k1, k2, k3, k4 1) ground input, measure R0 = ADC reading 0-->X---->+--->ADC:R0 | | k2 k1 ->k1 = r0 2) ...
 #include "vgui_controls/Utilities.h" #include "vgui_controls/tokenchannels.h" #include "vgui_editor_platform.h" #define MAX_OPERATION_C 1024 #define ISCHAR_OPERATOR_STEP1(x) ( x == '*' ||\ x == '/' ) #define ISCHAR_OPERATOR_STEP2(x) ( x == '+' ||\ x ...
//This is the implementation of variants of the 5term and slice-update scheme in which //a vector of Gaussian PDFs is used instead of just one. #include <vector> #include <deque> #include <algorithm> #include <math.h> #include "ehvi_hvol.h" #include "ehvi_multi.h" #include <iostream> #include "helper.h" #include "ehvi_...
#include "scurve.h" scurve::scurve() { } std::vector<scurve::point> scurve::create_point_for_every_ms_path(double velmax, double accmax, double vo, double ve, std::vector<scurve::point> pathvec){ // Current problem, the scurve does only calculate one line at the moment. // // Empty previous calculated tasks...
#include "FTLabel.h" #include "GLUtils.h" #include "FontAtlas.h" #include <stdio.h> #include <vector> #include <fstream> #include <sstream> #include <algorithm> // GLM #include "External Libraries/glm/gtc/type_ptr.hpp" #include "External Libraries/glm/gtx/transform.hpp" using namespace std; FTLabel::FTLabel(shared_...
/* Copyright (c) 2011 <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 rights to use, copy, modify, me...