text
stringlengths
5.71k
33.7k
#include "Arduino.h" // #define IMU_SERIAL // #define MAG_CAL // IMU definitions #define MAG_BIAS1 257.82 #define MAG_BIAS2 274.11 #define MAG_BIAS3 634.31 #define MAG_SCALE1 0.79 #define MAG_SCALE2 1.17 #define MAG_SCALE3 1.13 #define MPU9250_ADDRESS MPU9250_ADDRESS_AD0 #define MAGNETIC_DECLINATION 1.33 #define IMU_...
// // Copyright (c) 2013, Ford Motor Company // 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 o...
/** * DictionaryTrieAccent.cpp */ #include "DictionaryTrieAccent.h" #include "Dictionary.h" /** * Constructor of DictionaryTrieAccent */ DictionaryTrieAccent::DictionaryTrieAccent(Dictionary* _dic, string dictionaryFile) : DictionaryTrieWordFormByFeatures(_dic, dictionaryFile) { /* try { readAllModelFromFile...
 #include "cbase.h" #include "vSheets.h" __customCtrlEntry::__customCtrlEntry() { pName = NULL; pType = NULL; pDel = NULL; } void __customCtrlEntry::Delete(bool killChildren) { if (killChildren) { if (pName != NULL) { pName->SetParent((Panel *) NULL); pName->MarkForDel...
/* * Copyright 2013 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 applica...
#include "CLTephraTransportModel.hpp" // constructeur de la classe OpenCL CLTephraTransportModel::CLTephraTransportModel(int width, int height, int nbPoint, int density, int speed) { // instancier une matrice pour l'image de taille cv::Size(width,height) // de type CV_8UC3 : 3 canaux pour RGB de la taille d'un octet...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. #include "GA.h" //#include "Engine.h" #include "GA_UI_Area.h" #include "GameFramework/HUD.h" #include "GA_HUD.h" #include "GAAudioManager.h" AGA_HUD::AGA_HUD(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP) { IsInit = false; ...
// Copyright 2009-2019 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2019, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
// Copyright (c) 2009 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. // // The audio stream implementation is made difficult because different methods // are available for calling depending on what state the stream is. ...
// Wriggle implementation. #include "wriggle.hpp" #include "behavior.hpp" // Network morphgenesis parameters. const int Wriggle:: POPULATION_SIZE = 500; const int Wriggle:: NUM_OFFSPRING = 250; const int Wriggle:: NUM_GENERATIONS = 250; const float Wriggle::CROSSOV...
#include "llvm/MC/MCAssembler.h" #include "llvm/MC/MCAsmBackend.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCCodeEmitter.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCFixupKindInfo.h" #include "llvm/MC/MCInstPrinter.h" #include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCObj...
#include <integrator.h> #include <geometry.h> #include <chrono> #include <cstdint> #include <cstdio> std::string getPath(const std::string& target, int depth = 5) { std::string path = target; for (int i = 0; i < depth; ++i) { FILE* file = fopen(path.c_str(), "r"); if (file) { fclo...
// Programa de prueba de la clase ModbusServe #define TITULO "ModbusTCP: Lectura registros de entrada (funciones 02 y 04)" #include <iostream> #include <iomanip> #include <vector> #include <thread> #include <chrono> #include <cstring> // std::strerror() #include "Mensaje.hpp" #include "ModbusTCP.hpp" #include ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
#include <ChanVeseLSM.hpp> #include <algorithm> #include <queue> #include <unordered_set> //! Calculate square function template<typename T> inline T sqr(T x) { return x * x; } // End of 'sqr' function //! Calculate delta function value inline double delta(double t) { return 1 / (3.1415926535...
/** * Copyright (C) 2021 <NAME> * * 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, including commercial * ...
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2016 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining a copy...
// This function is used to extensively simulate the result from the four failure metric #include "RobotInfo.h" #include "CommonHeader.h" #include <ode/ode.h> #include "Control/PathController.h" #include "Control/JointTrackingController.h" static Vector3 ImpulForceGene(double & Fx_t, double & Fy_t, double & Fz_t) { ...
#include <iostream> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <cerrno> #include <arpa/inet.h> #include <fcntl.h> #include <signal.h> #include <deque> #include <cerrno> #include <boost/filesystem/operations.hpp> #include ...
#include <drawing.h> #include <GL/glut.h> #include <GL/freeglut.h> #include <iostream> #include <sstream> #include <math.h> #include <boost/graph/graph_traits.hpp> #include <boost/graph/adjacency_list.hpp> //MENU #define STOP (100) #define FORCE_BASED (101) #define FUTURE_TIME (102) #define CLUSTER_BASED (103) #define...
/* FLUIDS v.1 - SPH Fluid Simulator for CPU and GPU Copyright (C) 2008. <NAME>, http://www.rchoetzlein.com ZLib license 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. Permissi...
/* MIT License Copyright (c) 2020 <NAME> (Terminal29) 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, pub...
int EQ(double d) { if ( fabs(d) < EPS ) return 0; return d > EPS ? 1 : -1 ; } inline double sqr(double x) { return x*x; } struct point { double x,y; point() {} point(double _x,double _y): x(_x),y(_y) {}; void input() { scanf("%lf%lf",&x,&y); } void output() { ...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
#include "graphicitemblock.h" #include <QBrush> #include <QColor> #include <QFontMetrics> #include <QDebug> #include <QAction> #include <blockparameterint.h> #include <blockinput.h> #include <blockoutput.h> #include <dialogeditheader.h> #include <dialogeditinput.h> #include <dialogeditoutput.h> #include <dialogeditpa...
#include <iostream> #include <regex> #include <stdio.h> using namespace std; #define ANDROID_64 "64" #define ANDROID_32 "32" #ifdef __linux__ #define DIRECTORY_SEPARATOR "/" #elif __APPLE__ #define DIRECTORY_SEPARATOR "/" #else #define DIRECTORY_SEPARATOR "\\" #endif typedef unsigned char byte; static string app_d...
constexpr int MOD = 998244353; struct Z { int val; Z(long long v = 0) { if (v < 0) v = v % MOD + MOD; if (v >= MOD) v %= MOD; val = v; } static int mod_inv(int a, int m = MOD) { // https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm#Example int g = m, r = a...
#include "DXFColorChooser.h" ////////////////////////////////////////////////////////////////////////// // Chooser dialog uint32 DXF_COLOR_TABLE[] = { 0x000000, 0x0000FF, 0x00FFFF, 0x00FF00, 0xFFFF00, 0xFF0000, 0xFF00FF, 0xFFFFFF, 0x414141, 0x808080, 0x0000FF, 0xAAAAFF, 0x0000BD, 0x7E7EBD, 0x000081, 0x56568...
//#include "../../libcpp.hpp" #include <cmath> #include <random> #include "../../no_rt_util.h" #include "../../tbl.hpp" #include "../LavaFlow.hpp" #include "../shared/math/affinespace.h" #include "../shared/math/linearspace3.h" enum Slots { IN_RAYS = 0, // the rays that have been trac...
#include <eosio.amend.hpp> #include <eosio/symbol.hpp> #include <eosio/print.hpp> ratifyamend::ratifyamend(name self, name code, datastream<const char*> ds) : contract(self, code, ds), configs(self, self.value) { if (!configs.exists()) { configs_struct = config{ _self, //publisher u...
/* Experiment cbp_flash */ /* for nc script retsim.cc */ #include <stdio.h> #include <string.h> #include <math.h> #include "ncfuncs.h" #include "retsim.h" #include "retsim_var.h" int conearr; int scone_id; int elnode; double temp_freq; double ntrials; double dstim; double sdia; double stimtime; double inten; double...
// OpenCVApplication.cpp : Defines the entry point for the console application. // #include <iostream> #include <stdio.h> #include "opencv2/core.hpp" #include <opencv2/imgcodecs.hpp> #include <opencv2/videoio.hpp> #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/opencv.hpp" #include <mat...
// Copyright 2016-2019 <NAME> // Licensed under the Apache License, version 2.0 // See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0 #include <iostream> #include <cmath> #include <cstdlib> #include <chrono> #include <openvdb/openvdb.h> #include <openvdb/tools/VolumeToMesh.h> #include <glm/ge...
/* TinyGPS++ - a small GPS library for Arduino providing universal NMEA parsing Based on work by and "distanceBetween" and "courseTo" courtesy of <NAME>. Suggestion to add satellites, courseTo(), and cardinal() by <NAME>. Location precision improvements suggested by <NAME>. Copyright (C) 2008-2013 <NAME> All rights res...
/* ** PROGRAM: heat equation solve ** ** PURPOSE: This program will explore use of an explicit ** finite difference method to solve the heat ** equation under a method of manufactured solution (MMS) ** scheme. The solution has been set to be a simple ** function based on exponential...
/* * Copyright 2003-2009, IM Kit Team. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <app/Roster.h> #ifdef __HAIKU__ # include <interface/GroupLayout.h> # include <interface/GroupLayoutBuilder.h> # include <interface/GridLayoutBuilder.h> # inc...
// Scintilla source code edit control /** @file LexFortran.cxx ** Lexer for Fortran. ** Writen by <NAME>, Last changed Sep. 2003 **/ // Copyright 1998-2001 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. /**************************************...
#include "Settings.h" Settings::Settings() { macSt = (uint8_t*)malloc(6); macAP = (uint8_t*)malloc(6); } void Settings::load() { DynamicJsonBuffer jsonBuffer(4000); // check & read file String json = getJsonStr(); checkFile(FILE_PATH, json); JsonObject& data = parseJSONFile(FILE_PATH, js...
//=========================================================================== /* This file is part of the CHAI 3D visualization and haptics libraries. Copyright (C) 2003-2010 by CHAI 3D. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms o...
//============================================================================= // Copyright (c) 2020 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 //...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
#include "DFRobot_Gesture.h" #include <math.h> DFRobot_Gesture::eGesture_t DFRobot_Gesture::fingers(uint8_t release,uint8_t number){ uint8_t t = 0; uint8_t i = 0; uint8_t num1 = 0; uint8_t record = 0; if(release == 0){ for(t=0;t<number;t++){ if(tpDev.x[t]>touchge[t].pointx[point-1] + 30) record = 1; if...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "Exporter.h" #include <atomic> #include <ctime> #include <future> #include <map> #include <memory> #include <s...
// $Id: treeUtil.cpp 10477 2012-03-18 07:58:05Z itaymay $ #include "definitions.h" #include "treeUtil.h" #include "treeIt.h" #include "someUtil.h" #include <fstream> #include <iostream> #include <cassert> #include <map> using namespace std; vector<tree> getStartingTreeVecFromFile(string fileName) { vector<tree> vecT...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "chainparams.h" #i...
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
// c2cs.cpp : Defines the entry point for the console application. // #include "stdafx.h" #define _SCL_SECURE_NO_WARNINGS #define OUTPUT_CS_FILE "F:\\Projects\\LLVM#\\LLVM.NET\\NativeMethods.cs" #define LLVM_INCLUDE_DIR "f:\\llvm-install\\include" #define MINGW_INCLUDE_DIR "F:\\MinGW\\include" #define GCC_INCLUDE_DIR...
#include "Andersen.h" #include "CycleDetector.h" #include "SparseBitVectorGraph.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SparseBitVector.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/ToolOutputFile.h" #include "llvm/Suppo...
/* * Copyright (C) 2002-2010 The DOSBox Team * * 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 later version. * * This p...
/** \file prune_main.cpp * * Defines the "vg prune" subcommand, which prunes the complex regions of the * graph for GCSA2 indexing. * * By default, pruning removes the nodes touched by paths of length * --kmer-length crossing more than --edge-max non-trivial edges. Graph * regions shorter than --subgraph_min are...
/** * \file QryWdbeBnkList.cpp * job handler for job QryWdbeBnkList (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WDBECMBD #include <Wdbecmbd.h> #else #include <Wdbed.h> #endif #include "QryWd...
//++ // // Copyright (c) Microsoft Corporation // // Module Name: // // blpxe.cpp // // Abstract: // // This module implements PXE support for the boot loader. // //-- #include "bl.h" #pragma pack(1) typedef struct _IP_ADDRESS { union { UINT32 Value; UINT8 Array[4]; ...
#include "gtest/gtest.h" #include "testutils.h" #include <QTemporaryDir> #include <vector> #include "Util.h" using namespace dispar; TEST(Util, formatSize) { auto str = Util::formatSize(0); EXPECT_EQ("0.0 B", str) << str; str = Util::formatSize(0, 0); EXPECT_EQ("0 B", str) << str; str = Util::formatSize(...
/* Copyright (c) <2003-2016> <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, * includi...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #include "db/db_iter.h" #include "db/dbformat.h" #include...
/* Author: bitluni 2019 License: Creative Commons Attribution ShareAlike 4.0 https://creativecommons.org/licenses/by-sa/4.0/ For further details check out: https://youtube.com/bitlunislab https://github.com/bitluni http://bitluni.net */ #include "VGA.h" //hfront hsync hback pixels vfront vsync vback lin...
/* * Copyright 2014 <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 ...
// Copyright 2017 PDFium 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 "core/fpdfdoc/cpdf_nametree.h" #include "core/fpdfapi/parser/cpdf_array.h" #include "core/fpdfapi/parser/cpdf_dictionary.h" #include "core/fpdfapi/pars...
//===- AffineScalarReplacement.cpp - Affine scalar replacement pass -------===// // // 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 // //===---------------------------...
/*This source code copyrighted by <NAME> (2004-2015) and may not be redistributed without written permission.*/ // System support #include <stdio.h> #include <string> #include <vector> // Standard SDL #include <SDL.h> // OpenGL support (order matters - glew must be first) #include <glew.h> #include <SDL_opengl.h> #in...
#include "planet_generic.h" #include "unit_factory.h" #include "gfx/mesh.h" #include "galaxy_xml.h" #include <sys/types.h> #include <sys/stat.h> #include "universe_util.h" #include "lin_time.h" char * getnoslash( char *inp ) { char *tmp = inp; for (unsigned int i = 0; inp[i] != '\0'; i++) if (inp[i] ==...
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <exception> #include <ios> #include <iostream> #include <iterator> #include <limits> #include <memory> #include <stdexcept> #include <string> #include <vector> #include "voro++/voro++.hh" extern "C" const char * hyperion_voropp_wrap(...
// CorrelationTool.cpp /* * Copyright (c) 2009, <NAME>, <NAME> * This program is released under the BSD license. See the file COPYING for * details. */ #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <string> #include <set> #include <map> #...
#include "CCharter.h" #include "CFonts.h" #include <cstdint> auto CCharter::songTimePassBPMBased(const BPM_t &BPMContainer, double pass, bool forward) -> double { return 0.0; } void CCharter::prepareDemoGamePlay(CGamePlay &gp) { workingNote = nullptr; processNewNote = ...
//=========================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2012, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
#include <iostream> #include "SetupHelpers.h" #include "USBHelpers.h" #include "TReadoutBoardDAQ.h" #include "TReadoutBoardMOSAIC.h" #include <string.h> #define NEWALPIDEVERSION "1.0" // ----- Global variables (deprecated but ) - int VerboseLevel = 0; char ConfigurationFileName[1024] = "Config.cfg"; // -------------...
#include <algorithm> #include <fstream> #include <iostream> #include <random> #include <vector> #include "cli.h" class Maze { public: using Node = unsigned char; enum class Directions { North = 0, East, South, West }; enum class WallFlags { North = 0b0001, East = 0b0010, South = 0b0100, West = 0b1000 }; ...
/* * kmp_environment.cpp -- Handle environment variables OS-independently. */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licen...
#include <iostream> #include <vector> #include <regex> #include <fstream> #include <unordered_set> using namespace std; #define ERR_INVALID_ARG 1 #define ERR_NO_INPUT 2 #define ERR_INPUT_READ 4 #define ERR_OUTUPT_WRITE 8 #define IC_INDENT 0 #define IC_NULL 0 #define IC_FUNCTION 1 #define IC_STRING 2 #define IC_SINGLE...
/************************************************************************* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors a...
int Fl, nBuU9/*t*/,//YDT5 C ,OBKy2q,//XU Ru ,yO8z2, Hm , gyr ,Xas ,d08 ,cUl/*Dko*/,cVw,rUzw , /*G3*/k ,Vjga,R6eAQ //Mni ,ZD1ely ,Wtc, mq,Nlb/*GP*/,tB /*bC*/ //GkU , Pnt/*As*/, hsG /*av*/,//m ndDC , /*BAqZ*/Tms ,/*G*/ kM ,DAqn//33Gf , M2 , qcK ,UC ,Sh ; void f_f0()/*Tp*/ { int syn; volatile int qhpnD,...
#include <gtest/gtest.h> #include <opencv2/opencv.hpp> #include <condition_variable> #include <iostream> #include <memory> #include <mutex> #include <string> #include "../../src/easycodec/format_info.h" #include "device/mlu_context.h" #include "easycodec/easy_encode.h" #include "test_base.h" using edk::CodecType; us...
/*************************************************************************** ** ** Copyright (C) 2019 MaMinJie <<EMAIL>> ** Contact: https://github.com/canpool ** Reference: http://www.qtcn.org ** ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU Genera...
/************************************************************************* * Copyright (C) 2021 by Cambricon, Inc. All rights reserved. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULA...
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Axom Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) /** * \file convert_sidre_protocol.cpp * \brief This file contains a utility to convert a Sidre datastore * fro...
#include <pthread.h> #include <string> #include <regex> #include <map> #include <iostream> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <regex> #include <string.h> #include <unistd.h> #include <errno.h> #define BUFFER_SIZE 10240 using namespace std; struct user { ...
#define SOKOL_TRACE_HOOKS #include "sokol_app.h" #include "sokol_gfx.h" #include "sokol_glue.h" #include "sokol_time.h" #include "imgui.h" #include "sokol_imgui.h" #include "sokol_gfx_imgui.h" #include "lab_imgui_ext.hpp" #include "LabSoundInterface.h" #include "lab_noodle.h" #include "MidiNode.hpp" #include "OSCNode...
#include "chains.h" #include <iomanip> /******************************************************************************* * adag_node *******************************************************************************/ adag_node::adag_node(coeff_t cc, bool is_targ, reg_t rreg) : c(cc), reg(rreg), is_target(is_targ) { ...
/* Copyright (c) 2018, NVIDIA CORPORATION. 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 condi...
/* * Copyright 2017-2018 the DCSS authors * * 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 the followi...
#include "game.h" #include "player.h" #include "playerstate.h" void Player::Init(Game& g) { } void Player::SetConsoleColor(Game& g) const { if(g.GetCurrentPlayer() != this) { CLI::setColor(fcolor,bcolor); } else { SetConsoleColorBlink(); } } void Player::SetConsoleColorBlink() const { if((platform_upTimeMS()...
#include "testApp.h" #include "ofxXmlSettings.h" #include "AudioSystem.h" // // // NOTE FROM MAREK - // // I made a new project called "WailWall" which is for the visualization. // // This project is just for the kinect reading, and will have OSC going out // to the "WailWall" app. // float damp = 0; float roomSiz...
// // Translation of BTag MCJetFlavour tool to identify real flavour of a jet // work with CaloJet objects // Store Infos by Values in JetFlavour.h // Author: Attilio // Date: 05.10.2007 // // // \class JetFlavourIdentifier // // \brief Interface to pull out the proper flavour identifier from a // jet->parton ma...
// // evluaserver.cpp // // This sample demonstrates the HTTPServer and HTMLForm classes. // // Copyright (c) 2018-2019, Tekenlight Solutions Pvt Ltd. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/evnet/EVHTTPServer.h" #include "Poco/evnet/EVLHTTPRequestHandler.h" #include "Poco/evnet/...
/* * MIT License * Copyright (c) 2019 <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...
#include <string> #include <string.h> #include <memory> #include <cstdlib> #include "rocks-and-diamonds.hpp" using namespace blit; #define PLAYER_TOP (player.position.y) #define PLAYER_BOTTOM (player.position.y + player.size.y) #define PLAYER_RIGHT (player.position.x + player.size.x) #define PLAYER_LEFT (player.posi...
int ujZ, nYi3x,Z, stFuF ,Ip ,zNX , oR,L5 ,HLG,AY6d/*9od*/,F9MX,GyQ /*KIt*/, W,DNvNOK,Th , GRL ,U /**/ , HD,TQF ,XYK ,md , iuUV/*0b*/,o9 ,J , M9, Z6Lo/*7fpN*/, Sw , fIv /*Tm*/, r3 , NH ,IpI ; void f_f0//5x3 (){ volatile int xtbo/*b*/, INU , AIu, vb ,JUP , h2 ; {volatile int qnoa ,Rw , SU, VsnXw ,AA, ...
/* * 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 You under the Apache License, Version 2.0 * (the "License"); you...
#include <SFML/Graphics.hpp> #include "Character.h" #include "Animation.h" #include <iostream> int randint(int low, int high); int randint(int low, int high, int seed); int distance(float speed, float time); using namespace sf; int FLOOR = 663; //1,134,000,000 different characters! Character::Character(std::string ...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * obje...
#include "signals.hpp" #include <string> #include <cstdarg> #include <cassert> static std::string string_printf(const char *format, ...) __attribute__((__format__(__printf__, 1, 2))); static std::string string_printf(const char *format, ...) { std::string result; char *str = nullptr; va_list args; v...
/*************************************************************************** * $Id: FTPV1P0_ZS_SR.cxx,v 1.12 2014/06/25 15:33:16 jeromel Exp $ * Author: <NAME>, H.Huemmler *************************************************************************** * Description: FTPC V1.0 Zero Suppressed Reader * * * -----...
#include <chrono> #include "ntheory.h" #include "integer.h" #include "add.h" #include "mul.h" #include "dict.h" using CSymPy::Integer; using CSymPy::print_stack_on_segfault; using CSymPy::RCP; using CSymPy::fibonacci; using CSymPy::lucas; using CSymPy::factorial; using CSymPy::integer; using CSymPy::is_a; using CSymP...
#include <fstream> #include <regex> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wexpansion-to-defined" #include "rapidjson/reader.h" #include "rapidjson/filereadstream.h" #include "rapidjson/error/en.h" #pragma clang diagnostic pop #include "identity-service-file-json.h" #include "utilstring.h" ...
#include "optical_tracker.h" #include <iostream> #include <fstream> #include <vector> //#include "opencv/cv.h" //#include "opencv/ml.h" //#include "opencv/highgui.h" #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "util.cpp" using namespace std; usin...
#include "Constants.hpp" // Constants namespace SPRITES { const uint8_t SCALE = 2; const uint8_t TEXT_SCALE = 4; const uint8_t SIZE = 16; const uint8_t SIZE_HALF = SIZE / 2; const uint8_t SPACE_WIDTH = 1; const uint8_t TEXT_OFFSET_X = SIZE * 4;// 5 or 6 work too, but text looks too wide when beziering con...
/* * Copyright 2016 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. */ #define FUSE_USE_VERSION 26 #include <base/logging.h> #include <base/strings/string_split.h> #include <base/strings/stringprintf.h> #include <d...
#include "simulation_code/simudrive.h" #include "simulation_code/rows_and_sections.h" #include "pid/pid.h" #include "pid/pid.cpp" #include <vector> #include <fstream> #include <iostream> // #include "matplotlib-cpp/matplotlibcpp.h" SimulationDrive::SimulationDrive() : nh_priv_("~") { //Init gazebo ros turtlebot3 n...
#include <cstring> #include "Renderer.h" static float _w, _h;/* 窗口的宽与高 */ static int _oldx, _oldy;/* 鼠标移动之前的位置 */ static float _angleX, _angleY, _moveX, _moveY, _moveZ;/* 绕x,y轴转动的角度,沿x,y,z轴移动的距离 */ static bool _buttonleft;/* 鼠标左键是否点击 */ static GLfloat _texture_coordinate[8];/* 纹理的4个点的坐标 */ static GLfloat _imag...