text
stringlengths
3.08k
12.5k
// Task 7 - Dynamically generate objects in a 3D scene // - Implement a particle system where particles have position and speed // - Any object can be a generator and can add objects to the scene // - Create dynamic effect such as fireworks, rain etc. // - Encapsulate camera in a class #inc...
/* Copyright (c) 2015 <NAME> <<EMAIL>> * Copyright (c) 2014 ToolsOnAir Broadcast Engineering GmbH * * 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...
// infoware - C++ System information Library // // Written in 2016-2020 by nabijaczleweli <<EMAIL>> and ThePhD <<EMAIL>> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distribut...
//manual control node //this node handles manual control of the robot when autonomous control is disabled #include <errno.h> #include <math.h> #include <ros/ros.h> #include <avc_msgs/ChangeControlMode.h> #include <avc_msgs/Control.h> #include <avc_msgs/ESC.h> #include <avc_msgs/SteeringServo.h> #include <sensor_msgs/Jo...
/* LVGL Example project * * Basic project to test LVGL on ESP32 based projects. * * This example code is in the Public Domain (or CC0 licensed, at your option.) * * Unless required by applicable law or agreed to in writing, this * software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS O...
/** * Find the Fibonacci(n)%m - when 'n' is represented in Decimal - Divide by 10 * * n is read from file: input_1.txt * * Code written by: Chellapriyadharshini.M. (MT2016041) **/ #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <string> #include <vector> long long int fibonacci_mod...
/* * 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 may...
#include "newpwmleds.h" #include "Arduino.h" #include "config.h" #include <algorithm> #include <helpers.h> extern "C" { #include "pwm.h" } #define PWM_PERIOD 2500 // Ranges on which we maximum set each PWM channel // This can be used as a cheap calibration (curveless) // or to reduce power output to each LED #ifndef ...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
/* * File : virtual_popc_security_manager.cc * Author : <NAME> (clementval) * Description : Implementation file of the virtual security manager for POP-C++ runtime. This implementtation is used only in * the Virtual version * Creation date : 2010/12/06 * * Modification : * Author Date ...
/* 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 writing, software di...
#include "config_eeprom.h" #include <hardware/flash.h> #include <hardware/sync.h> #include <stdio.h> #include "acquisition/analyzer.h" #include "misc/CRC32.h" #include "misc/elapsed.h" #include "pico/stdlib.h" // TODO: Revisit the address choice. constexpr uint32_t kFlashBaseAddress = 0x1009F000; constexpr uint32_t ...
// routing table demo #include <signal.h> #include <iostream> #include <thread> // NOLINT #include "xpbase/base/top_config.h" #include "xpbase/base/top_log.h" #include "xpbase/base/kad_key/platform_kadmlia_key.h" #include "xpbase/base/kad_key/get_kadmlia_key.h" #include "xtransport/transport.h" #include "xtransport/...
/* Copyright 2017 <NAME> <<EMAIL>>. 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 appl...
#include "stdafx.h" #include "Problem.h" Problem::Problem() {} Problem::~Problem() {} std::vector<Node*> Problem::solve(Node* root) { // If the root node is the solution then add the node to the solution sequence and return the sequence if (is_goal(root)) { std::cout << "Root is solution!" << std::e...
/* * Copyright 2009-2020 The VOTCA Development Team * (http://www.votca.org) * * 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 * * h...
/* * sequence.cpp * SetSequence project * * Copyright (c) 2013 <NAME> * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #include "sequence.h" /* * Utitlity methods * */ inline bool DataCompare( const BYTE* pData, const BYTE* bSig, const char* szMask ) { for( ; *szMask;...
#include <signal.h> #include <thread> #include <termios.h> #include "ros.hpp" #include "yac.hpp" namespace yac { struct calib_mono_nbv_t { enum CALIB_STATE { INITIALIZE = 0, NBV = 1, DONE = 2 }; // ROS const std::string node_name; ros::NodeHandle ros_nh; ros::Subscriber cam0_sub; // State...
#include "Texture.hpp" Texture::Texture():surface(nullptr),texid(0){} Texture::Texture(SDL_Surface* surface):Texture(){ Load(surface); } Texture::Texture(const Texture& t):Texture(){ *this = t; } Texture::Texture(string filename):Texture(){ Load(filename); } void Texture::Load(SDL_Surface* surf){ i...
/****************************************************************************** @File PVRTBackground.cpp @Title PVRTBackground @Version @Copyright Copyright (c) Imagination Technologies Limited. @Platform ANSI compatible @Description Function to draw a background tex...
// Copyright 2021 The Pigweed 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
/* Copyright 2022 <NAME> * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #include "BoundaryScrapingDiagnostics.H" #include "ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Diagnostics/Diagnostics.H" #include "Diagnostics/FlushFormats/FlushFormat.H" #include "Particles/ParticleBoundaryBuffer....
/**************************************************************************** ** ** Year : 2017-04-04 ** Author : KevinLi ** E-Mail : <EMAIL> ** QQ : 2313828706 ** Version : V1.0 ** Description : 超炫动画启动效果 ** 来源:CSDN liujunpen/ 本人加以修改 ** If you have any questions , please contact me *...
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* ============================================================================== SimpleString.cpp Created: 12 Feb 2021 1:10:03pm Author: <NAME> ============================================================================== */ #include <JuceHeader.h> #include "SimpleString.h" //=======...
/***************************************************************************\ PosBuildList.cpp <NAME> April 8, 1998 Provides build time services for sharing positions among all polygons in an object. \***************************************************************************/ #include "PosBuildList.h" ...
#include "MsgServer.h" #include "LoginClient.h" #include "DBProxyClient.h" #include "RouteClient.h" #include "FileClient.h" #include "slite/Logger.h" #include "slite/Logging.h" #include "base/ConfigFileReader.h" #include <random> #include <getopt.h> #include <unistd.h> using namespace slite; uint32_t g_downMsgMissC...
/** * @file doc_sim.cpp * @author <NAME> * @date Mar 11, 2011 * @brief Document Similarity Test */ #include <iostream> #include <ctime> using namespace std; #include <boost/shared_ptr.hpp> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <la/LA.h> //#define DOC_SIM_TEST #include <i...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/******************************************************************************* * * Filename : SampleTableMgr.cc * Description : Implementations of SampleTableMgr class * Author : Yi-Mu "Enoch" Chen [ <EMAIL> ] * * Main objective: store the total error in weighting errors * ********************************...
#include "kampf.hpp" #if defined(KF_WIN) #include <windows.h> #include <Shlwapi.h> #endif Kampf::Kampf(enumInitType initType, enumWindowType windowType, enumRenderType renderType) : windowContext(nullptr), messenger(Messenger::getInstance()), ruleMachine(new RuleMachine()), lua(new LuaScr...
// AirMap Platform SDK // Copyright © 2018 AirMap, 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 requir...
/* * 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...
/* * Copyright (C) 2014 Google 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 agree...
/** \Author: Trasier \Date: 2019.11.18 */ #include "metric.h" double ShortestPath::distance(vertex *a, vertex *b) { double d1 = a->x - b->x; double d2 = a->y - b->y; return sqrt(d1 * d1 + d2 * d2); } ShortestPath::ShortestPath(string vertexFileName, string edgeFileName, string pathLabelFileName, string orderF...
/****************************************************************************** * * Copyright (C) 2014 Google, 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://ww...
#include "CameraFilter.h" #include "PlaneDetectorOptions.h" #include "Logging.h" #include <vector> #include <opencv2/stitching.hpp> // Construct a filtering object. CameraFilter::CameraFilter(unsigned int cameraNumber)//cv::Mat startingData, unsigned int cameraNumber) { //data=startingData; Logging::log << "Loadin...
#include <fstream> #include <iostream> #include <string> #include <rapidjson/document.h> #include <rapidjson/stringbuffer.h> #include <rapidjson/writer.h> #include <json/json.h> #include <msgpack.hpp> #include "msgpack/type/rapidjson.hpp" #include "msgpack/type/jsoncpp.hpp" using namespace rapidjson; using namespa...
#include <stdio.h> #include <opencv2/opencv.hpp> #define HEIGHT_FRACTION 0.70 #define WIDTH_FRACTION 0.50 using std::vector; static bool comp_func(cv::Rect i, cv::Rect j) { return i.tl().x < j.tl().x; } /* * RETURN VALUES: * 0 : SUCCESS * 1 : BAD ARGUMENTS * 2 : INVALID IMAGE DATA * * */ int main(int ...
#include <iostream> #include <cmath> #include <stdexcept> #include <limits> #include <sstream> #define eps 1E-10 class Razlomak { long long int brojnik, nazivnik; static long long int NZD(long long int a, long long int b) { if(b==0) return a; return NZD(b, a%b); } static long long int Sabiranje(long long ...
#include "Pkt_Def.h" /***************************** CONSTRUCTORS ******************************/ PktDef::PktDef() { comPkt.header.pktCount = 0; comPkt.header.Drive = 0; comPkt.header.Status = 0; comPkt.header.Sleep = 0; comPkt.header.Arm = 0; comPkt.header.Claw = 0; comPkt.header.Ack = 0; comPkt...
/* Copyright (c) 2019, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include "Internal.hpp" #include "../Ethereal.hpp" static vo...
/** * Neural network function computation unit test * * \date 2015/09/05 * \author <NAME> <<EMAIL>> * * * LEGAL NOTICE * * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
#include <iostream> #include <GL/glew.h> #include <GL/glut.h> #include <cstring> #include <Magick++.h> #include "image.h" using namespace std; using namespace Magick; string image_path; bool info = false; bool grab = false; bool novis = false; Direction direction = FRONT; Mesh* mesh; //---- inform user about the usa...
#include "GfxHeader.h" #include "SceneHeader.h" #include "ResourceLoader.h" static bool InternalLoadDraw(TiXmlNode* pNode, const CGfxMeshPtr ptrMesh, CSceneNode* pCurrentSceneNode, int vertexBinding, int instanceBinding, int baseLevel, int numLevels) { int err = 0; if (TiXmlNode* pDrawNode = pNode->FirstChild("Dra...
#include "statsLib.h" /** * @file dmultinom.cpp * @brief Multinomial distribution * * This file contains the multinomial distribution functions * \ingroup STATLIB * @author <NAME>, <NAME> * * @date 12/13/2011 * @remarks */ dvariable dmultinom(const dvector& x, const dvar_vector& p) { if(x.indexmin() != p.indexmin(...
#include "Cubemap.h" // Std. Includes #include <cstdio> #include <cstdlib> #include <iostream> using std::cout; using std::cerr; using std::endl; //Glorex Includes #include "esutil.h" #include "loader/stbloader.h" //GLM Includes #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include <glm/...
#include <iostream> #include <cassert> #include "rk.hpp" #include <mpi.h> using namespace std; rk_type::rk_type(const int order) { // constructor to initialize coefficients based on order int rc; rkorder = order; // determine number of RK stages switch (rkorder) { case 1: nstages = 1; break...
/* * Copyright (c) 2021 <NAME>, SURF * * 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, publis...
#include <algorithm> #include <sstream> #include "FuzzySystem.h" #include "LinguisticVariable.h" #include "RuleStack.h" #include "Clause.h" #include "LinguisticVariable.h" #include "FuzzyMemberFunctions.h" FuzzySystem::FuzzySystem(void) : m_defuzzficationInterval( 1000 ) { } FuzzySystem::~FuzzySystem(void) { ...
#include <QApplication> #include <QDateTime> #include <QDesktopWidget> #include <QImage> #include <QPainter> #include <QPixmap> #include <QPoint> #include <cerrno> #include <cstdio> #include <cstdlib> #include <string> #include <fcntl.h> #include <stdint.h> #include <time.h> #include <unistd.h> #include "CapsLockSta...
#include "cctalk_protocol.h" cctalk_code_protocol::cctalk_code_protocol() : m_cash_received(0) { this->com_port = new serial_port(200); } int cctalk_code_protocol::connect_validator(std::string port_path) { try { if(this->com_port->start(port_path.c_str(), 9600)) { this->m_is_connected = t...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ /** * Binary for comparing output of ASG implementations. Use the `generate` * command to create random inputs, `baseline` ...
/******************************************************************************** * 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...
#include "jetson_v4l2_capturer.h" // Linux #include <sys/ioctl.h> // WebRTC #include <modules/video_capture/video_capture_factory.h> #include <rtc_base/logging.h> #include "jetson_buffer.h" #define MJPEG_EOS_SEARCH_SIZE 4096 rtc::scoped_refptr<V4L2VideoCapturer> JetsonV4L2Capturer::Create( V4L2VideoCapturerCon...
#include <game.h> class RandomTileData { public: enum Type { CHECK_NONE = 0, CHECK_HORZ = 1, CHECK_VERT = 2, CHECK_BOTH = 3 }; enum Special { SP_NONE = 0, SP_VDOUBLE_TOP = 1, SP_VDOUBLE_BOTTOM = 2 }; class NameList { public: u32 count; u32 offsets[1]; // variable size ...
#include "FontProgram.hpp" #include "gl_compile_program.hpp" #include "gl_errors.hpp" #include <glm/gtc/type_ptr.hpp> Load<FontProgram> font_program(LoadTagEarly); FontProgram::FontProgram() { //Compile vertex and fragment shaders using the convenient 'gl_compile_program' helper function: program = gl_compile_pro...
/*B 16/17, Zadaća 2, Zadatak 3 NAPOMENA: i javni ATo-vi su dio postavke Autotestovi by <NAME>. Sva pitanja, sugestije i prijave gresaka saljite na mail: <EMAIL> */ #include <iostream> #include <vector> #include <deque> #include <string> #include <algorithm> #include <type_traits> #include <ioma...
// Copyright 2019 The Dawn 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 law or agreed t...
/* Copyright 2017 The TensorFlow Authors. 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 a...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright(C) 2015, <NAME>, Ph.D. (<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...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
/* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, free of charge, to...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2020 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #include "TextureArraysWindow3.h" #include <Applicati...
/* large prime sample for 64-bit arch make MCL_USE_LLVM=1 MCL_MAX_BIT_SIZE=768 */ #include <mcl/fp.hpp> #include <cybozu/benchmark.hpp> #include <iostream> #include "../src/low_func.hpp" typedef mcl::FpT<> Fp; using namespace mcl::fp; const size_t N = 12; void testMul() { Unit ux[N], uy[N], a[N * 2], b[N * 2]; f...
#include <tkn/audio.hpp> #include <tkn/sound.hpp> #include <tkn/ringbuffer.hpp> #include <dlg/dlg.hpp> #include <stdexcept> #include <iostream> #include <charconv> #include <chrono> #include <tsf.h> #include <tml.h> class SoundFontAudio : public tkn::AudioSource { public: static constexpr auto msgBufSize = 10; struc...
/*************************************************************************/ /* editor_scene_importer_mmd_pmx.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include <agile_grasp2/antipodal.h> const int Antipodal::NO_GRASP = 0; // normals point not toward any finger const int Antipodal::HALF_GRASP = 1; // normals point towards one finger const int Antipodal::FULL_GRASP = 2; // normals point towards both fingers int Antipodal::evaluateGrasp(const Eigen::Matrix3Xd& pts, c...
#include "StatisticsReads.h" #include "LinePlot.h" #include "Helper.h" StatisticsReads::StatisticsReads() : c_forward_(0) , c_reverse_(0) , read_lengths_() , bases_sequenced_(0) , c_read_q20_(0.0) , c_base_q30_(0.0) , pileups_() , qualities1_() , qualities2_() { } void StatisticsReads::update(const FastqE...
/** * Based on original work by Densaugeo * Original library located at https://github.com/Densaugeo/base64_arduino */ /** * Base64 encoding and decoding of strings. Uses '+' for 62, '\' for 63, '=' for padding * This has been modified to use '-' for 62, '_' for 63 as per the JWT specification */ #include "base...
// // Texture class definition // #include <utils/Texture.h> #include <utils/Utils.h> // utils namespace // image loading #ifndef STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #endif // !STB_IMAGE_IMPLEMENTATION #include <stb_image.h> ////////////////////// // // Create and destroy the texture data // /...
using namespace std; char ch_cap ( char ch ); bool ch_eqi ( char ch1, char ch2 ); int ch_to_digit ( char ch ); double *cluster_energy_compute ( int dim_num, int point_num, int cluster_num, double point[], int cluster[], double cluster_center[] ); double *cluster_initialize_1 ( int dim_num, int point_num, int cluster...
// SPDX-License-Identifier: MIT #include "ScreenSpaceAo.hh" #include <random> #include <glow/common/scoped_gl.hh> #include <glow/objects/Framebuffer.hh> #include <glow/objects/Program.hh> #include <glow/objects/Texture1D.hh> #include <glow/objects/Texture2D.hh> #include <glow/objects/TextureRectangle.hh> #include <glo...
#include "pf/basic/util.h" #include "pf/basic/time_manager.h" #include "pf/sys/thread.h" #include "pf/basic/logger.h" std::unique_ptr< pf_basic::Logger > g_logger{nullptr}; namespace pf_basic { std::mutex g_log_mutex; template<> Logger *Singleton< Logger >::singleton_ = nullptr; Logger *Logger::getsingleton_pointe...
/* * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <stdarg.h> #include "We...
#include <math.h> #include "barnes_hut.h" #include <stdio.h> #include <stdlib.h> #include <Python.h> #include <numpy/arrayobject.h> #include <iostream> void getRepulsiveObjGradi(int id, double *pos, QuadTree* tree, double farness_factor, int nArgOut, double *pqsum, double *grad) { double dist2, dist, diff, decoef,...
/* * Software License Agreement (BSD License) * * Copyright (c) 2020, Clearpath Robotics * 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 mus...
// $Id: dict.cpp 3677 2010-10-13 09:06:51Z bertoldi $ using namespace std; #include "mfstream.h" #include "mempool.h" #include "dictionary.h" #include "cmd.h" #define YES 1 #define NO 0 #define END_ENUM { (const char*)0, 0 } static Enum_T BooleanEnum [] = { { (char*)"Yes", YES }, { (char...
#include <string> #include <sstream> #include <assert.h> #include "func_instr.h" using namespace std; struct InstrTableEntry { const char* name; uint8 opcode; uint8 func; FuncInstr::FormatType format; FuncInstr::Type type; bool uses_func; bool uses_imm; bool uses_shimm; bool u...
#include <bits/stdc++.h> #define N 100020 #define lch o << 1 #define rch o << 1 | 1 #define mid ((l + r) >> 1) using namespace std; inline int read(){ int x=0,f=1;char ch=getchar(); while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar()); while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar(); return f?x:-x; } int c, r...
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
/** * \file ipfixprobe_stats.hpp * \brief Exporter live stats reading utility * \author <NAME> <<EMAIL>> * \date 2021 */ /* * Copyright (C) 2021 CESNET * * LICENSE TERMS * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#include <graphics.h> #include <fstream.h> #include <conio.h> #include <dos.h> #include <alloc.h> #include "keyboard.h" #include "tclass.h" #include "tconst.h" #include "bclass.h" #include "tscreen.h" #include <ctype.h> const int true = 1; const int false = 0; void PlayTank(); void MoveTank(tankclas...
/* * Copyright (c) 2013, <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 ...
/* * Copyright (c) 2016 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <QString> #include <QTcpSocket> #in...
#include "bot_section.h" #include <string> #include <string_view> #include "cbl/log.h" #include "cbl/unittest.h" using std::string; using std::string_view; namespace mwc { class BotSectionTest : public cbl::Test { private: CBL_TEST_CASE(readBotSection) { CBL_ASSERT_EQ(readBotSection("<!--BEGIN BOT SECTION-->123...
#include "DNSServer.h" #include <lwip/def.h> #include <Arduino.h> // #define DEBUG_ESP_DNS #ifdef DEBUG_ESP_PORT #define DEBUG_OUTPUT DEBUG_ESP_PORT #else #define DEBUG_OUTPUT Serial #endif DNSServer::DNSServer() { _ttl = htonl(DNS_DEFAULT_TTL); _errorReplyCode = DNSReplyCode::NonExistentDomain; _dnsHeader =...
/* * Copyright 2015 Delft University of Technology * * 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 appli...
/* Copyright (c) 2011-2014 Stanford University * * Permission to use, copy, modify, and 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 SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(...
#include "CFpsVehicle.h" #include <algorithm> using namespace Core; using namespace Core::AI; int CFpsVehicle::SerialNumberCounter = 0; CFpsVehicle::CFpsVehicle (CPlayer* Player) : m_Player(Player) { // set inital state Reset(); // maintain unique serial numbers SerialNumber = SerialNumberCounter++;...
#define __gmp_const const #include <CGAL/Gmpq.h> #include <CGAL/Lazy_exact_nt.h> #include <igl/copyleft/cgal/extract_cells.h> #include <spdlog/spdlog.h> #include <mtao/geometry/bounding_box_mesh.hpp> #include <set> #include "cutmesh_validation.hpp" using namespace mandoline; bool equal_region_check(const mandoline::C...
/* this is an implementation of binary tree in c++ */ #include <iostream> #include <queue> // TODO: implement level designed print functions // example output: // 3 // 1 5 // 0 2 4 6 // so on. class BinarySearchTree{ private: typedef struct node{ int value; int layer; node* left; node* right; node...
#include "CFont.h" #include "Core/GameProject/CResourceStore.h" #include "Core/Render/CDrawUtil.h" #include "Core/Render/CRenderer.h" std::optional<CDynamicVertexBuffer> CFont::smGlyphVertices; CIndexBuffer CFont::smGlyphIndices; bool CFont::smBuffersInitialized = false; CFont::CFont(CResource...
// // Created by <NAME> on 2/28/19. // MIT License // // Copyright (c) 2019-2019 Robotic Systems Lab, ETH Zurich // // 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, inc...
/****************************************** * OpenCV Tutorial: Mouse Cursor Tracking * * using Kalman Filter * Author: <NAME> * Date: 18-04-2018 ******************************************/ // MIT LICENSE // Copyright <2018> <<NAME>> // Permission is hereby granted, free of charge, to any person obtaining a copy ...
/*! * @copyright * Copyright (c) 2015-2019 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-...
// stuff to define the mesh #include <vcg/simplex/vertex/base.h> #include <vcg/simplex/face/base.h> #include <vcg/simplex/edge/base.h> #include <osg/ArgumentParser> #include <vcg/math/quadric.h> #include <vcg/complex/algorithms/clean.h> // io #include <wrap/io_trimesh/import.h> #include <wrap/io_trimesh/export_ply.h...
#include "connection.h" #include <sys/poll.h> #include <vector> #include <string> #include <map> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string.hpp> enum class OpCode : unsigned int { Enter, Leave, Chat }; typedef std::pair...