text
stringlengths
3.08k
22k
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and ...
#include "memory.h" c_mem::c_mem(){ fileName = NULL; romBuffer = new u8[0x8000]; memset(romBuffer, 0xff, 0x8000); saveExists = false; biosLoaded = false; hdmaActivated = true; } c_mem::~c_mem(){ if(romBuffer){ delete romBuffer; } } void c_mem::getComponents(c_cpu* cpuPtr, c_in...
//Language: GNU C++ #include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <queue> #define INFINITE 1000000000 #define OPPOSITE(x) ((((x) - 1) ^ 1) + 1) #define MIN(a,b)((a)<(b)?(a):(b)) #define MAXM 1000000 #define MAXN 500 using namespace std; typedef long long ll; int g[MAXN] , c...
#include "StdAfx.h" #pragma hdrstop #include "PHNetState.h" //////////////////////////////////////8///////////////////////////////////////////////////// static void w_vec_q8(NET_Packet& P, const Fvector& vec, const Fvector& min, const Fvector& max) { P.w_float_q8(vec.x, min.x, max.x); P.w_float_q8(vec.y, min...
// Copyright 2017-2019 The Verible 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 o...
#include <stdint.h> #include "demo.pb.h" #include "netmessages.pb.h" #include "bitstream.h" #include "debug.h" #include "demo.h" #include "entity.h" #include "state.h" #include "visitor.h" #define INSTANCE_BASELINE_TABLE "instancebaseline" #define KEY_HISTORY_SIZE 32 #define MAX_EDICTS 0x800 #define MAX_KEY_SIZE 0x4...
// crypto.cpp: basic crypto functions // 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 t...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
// 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 "chrome_frame/simple_resource_loader.h" #include <atlbase.h> #include <algorithm> #include "base/base_paths.h" #include "base/file_path.h"...
// // Camera.cpp // interface/src // // Copyright 2013 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 <glm/gtx/quaternion.hpp> #include <SharedUtil.h> #include <VoxelConstants.h> #inc...
/* -------------------------------------------------------------------------- * * OpenSim: OptimizationExample.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "id.h" #include "persistence/accountdb.h" #include "main.h" #include "vm/wasm/ty...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#pragma once /** ellipse_intersect_circle.hh ----------------------------- Numerical intersection of an ellipse and a circle returning 0,1,2,3 or 4 intersection points. Developed within opticks/ana, see:: ana/ellipse_intersect_circle.hh ana/ellipse_intersect_circle.cc ana/shape.py analytic/gdml.py ...
// // Created by <NAME> on 2019-07-11. // #include "SCommCommon.h" #include <comm/ObjectComm.h> #include <comp/EventRecorder.h> #include <Config.h> namespace { std::string getSendKey(int dest, int tag, size_t count) { std::stringstream ss_key; ss_key << "SComm send dest=" << dest << "_size=" << count; return ss...
// Boost.Geometry // Unit Test // Copyright (c) 2017-2018, Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #include <geometry_test_common.hpp> #include <boo...
#include "util/latency.h" #include <gflags/gflags.h> #include <signal.h> #include <cstring> #include "../apps_common.h" #include "rpc.h" #include "util/autorun_helpers.h" #include "util/numautils.h" #include "util/pmem.h" #define USE_PMEM false #if USE_PMEM == true #include <libpmem.h> #endif static constexpr size_t...
/* Emon.cpp - Library for openenergymonitor Created by <NAME>, April 27 2010 GNU GPL modified to use up to 12 bits ADC resolution (ex. Arduino Due) by <EMAIL> 26.12.2013 Low Pass filter for offset removal replaces HP filter 1/1/2015 - RW */ /* <NAME> (<EMAIL>) Measuring Irms using the two endp...
#include <iostream> #include <string> #include <vector> #include <stdlib.h> #include <signal.h> #include <thread> #include <atomic> #include <http/http.hpp> #include "common/uuid.hpp" #include "common/optional.hpp" #include <readline/readline.h> #include <readline/history.h> #include <unistd.h> #include <fcntl.h> #inc...
////////////////////////////////////////////////////////////////////////////////////// // // WinA1314 Apple Wireless Keyboard driver for Windows. // // Copyright (c) <NAME> <<EMAIL>>. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation fil...
// // "$Id: cube.cxx 5519 2006-10-11 03:12:15Z mike $" // // Another forms test program for the Fast Light Tool Kit (FLTK). // // Modified to have 2 cubes to test multiple OpenGL contexts // // Copyright 1998-2005 by <NAME> and others. // // This library is free software; you can redistribute it and/or // mod...
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // Copyright (c) 2018, FZI Forschungszentrum Informatik // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided t...
/* ** Copyright 2014-2016 Centreon ** ** 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...
// -*- C++ -*- // // Package: HcalTestBeam // Class : PHcalTB04Info // // Implementation: // <Notes on implementation> // // Original Author: <NAME> // Created: Sun May 14 10:25:44 CEST 2006 // // system include files // user include files #include "SimDataFormats/HcalTestBeam/interface/PHcalTB...
/* Copyright (c) 2011, The Mineserver Project 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 condition...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
#include <examples/wordfreq/wordfreq.pb.h> #include <muduo/base/BlockingQueue.h> #include <muduo/base/CountDownLatch.h> #include <muduo/base/Logging.h> #include <muduo/base/Thread.h> #include <muduo/net/EventLoop.h> #include <muduo/net/TcpClient.h> #include <muduo/net/TcpServer.h> #include <muduo/protorpc2/RpcServer....
/* * Copyright (c) 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
/** KCMC_INSTANCE_HANDLING.cpp * Implementation of non-payload services of the KCMC instance object headers * <NAME> */ // STDLib dependencies #include <sstream> // ostringstream #include <random> // mt19937, uniform_real_distribution #include <algorithm> // std::find // Dependencies from this package #in...
/**************************************************************************** ** SCALASCA http://www.scalasca.org/ ** ** KOJAK http://www.fz-juelich.de/jsc/kojak/ ** ***************************************************************************** ** Copy...
#include <igl/avg_edge_length.h> #include <igl/barycenter.h> #include <igl/comb_cross_field.h> #include <igl/comb_frame_field.h> #include <igl/compute_frame_field_bisectors.h> #include <igl/cross_field_missmatch.h> #include <igl/cut_mesh_from_singularities.h> #include <igl/find_cross_field_singularities.h> #inc...
// // Copyright (c) 2016, Intel 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 conditi...
/* 52 cards total 1 means ace, 2 means 2, 3 means 3... 11 means jack,12 means queen and 13 means king kings, queens and jacks are 10 points, ace is special it can be 1 or 11 depending on the hand*/ #include "gamble.h" #include <iostream> #include <unistd.h> #include <vector> #include <cmath> using std::vector; using ...
#include "maths.h" #include <cmath> using namespace lg; float pi = 3.14159265f; // --- Mat3 --- // Mat3 *Mat3::create_tsr(float x, float y, float width, float height, float rot) { Mat3 *m = new Mat3(); GLfloat i = sinf(rot); GLfloat j = cosf(rot); m->data[0] = width * j; m->data[3] = -height * i; ...
//===- CSE.cpp - Common Sub-expression Elimination ------------------------===// // // 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 // //===---------------------------...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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 <png.h> #include <cstdio> #include <iostream> #include "FractalGenerator.h" #include "math_utils.h" /* * Public member functions */ FractalGenerator::FractalGenerator(fractalId id, v8::Isolate *isolate, void (*doneCallback)(v8::Isolate *isolate, std::string path, GenerationState state, void *doneCall...
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +---------...
//===----------------------------------------------------------------------===// // // Author: <NAME> <<EMAIL>> // Copyright (c) 2018 Secure Systems Group, Aalto University <ssg.aalto.fi> // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------...
#ifdef USE_cplex #include "cplex_interface.h" #endif #ifdef USE_gurobi #include "gurobi_interface.h" #endif #ifdef USE_xpress #include "xpress_interface.h" #endif #include <list> #include <algorithm> #include <map> #include <set> #include <string> #include <sstream> #include <regex> #include <iostream> #include "ampls/...
/* * Copyright (c) 2017 rxi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distri...
/** * @file * This file is part of SeisSol. * * @author <NAME> (sebastian.rettenberger AT tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger) * * @section LICENSE * Copyright (c) 2014-2015, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
/******************************************************/ // THIS IS A GENERATED FILE - DO NOT EDIT // /******************************************************/ #include "Particle.h" #line 1 "/home/faraday/git_repos/ParticleRemote-PhotonCode/src/Particle_Remote.ino" //#include "DHT22_test/PietteTech_DHT.h" ...
// The wopt part of ZDL implementation. // Copyright (C) 2011 Simplight Nanoelectronics, Inc. All Rights Reserved. // Open64 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 Licen...
#include <dirent.h> #include <unistd.h> #include <sstream> #include <string> #include <vector> #include <iostream> #include <unordered_map> #include <regex> #include "linux_parser.h" using std::cout; using std::stof; using std::string; using std::to_string; using std::vector; using std::unordered_map; using std::reg...
/** * \file test_quantity_io.cpp * * \brief lest tests for quantity library. * \author <NAME> * \date 19 September 2013 * \since 1.0 * * Copyright 2013 Universiteit Leiden. All rights reserved. * This code is provided as-is, with no warrantee of correctness. * * Distributed under the Boost Software L...
//============================================================================= // Sample Application: Lighting (Per Fragment Phong) //============================================================================= #include <GL/glew.h> #include <GL/freeglut.h> #include "glApplication.h" #include "glutWindow.h" #include ...
//============================================================================= /** * @file snmp.cpp * * $Id$ * * The basic SNMPv1 API - blocking version using UDP/IPv4 transport * and addressing. * * * @author <NAME> class design/orig code<NAME> <EMAIL> / rework API * @author use ACE facilities */ ...
/* named_endpoint_test.cc -*- C++ -*- <NAME>, 24 September 2012 Copyright (c) 2012 Datacratic Inc. All rights reserved. Test for named endpoint. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <boost/make_shared.hp...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/** * ravg.cpp * * 2021 <NAME> * * https://github.com/gabmoreira/maks * * This software and the related documents are provided as is, with no express * or implied warranties, other than those that are expressly stated in the * License. * * Copyright © 2021 <NAME>. All rights reserved. */ #include ...
#include "CEModelLoader.h" #include <fstream> using namespace ConceptEngineFramework::Graphics::DirectX12::Resources; bool CEModelLoader::LoadM3D(const std::string& fileName, std::vector<Vertex>& vertices, std::vector<USHORT>& indices, std::vector<Subset> subsets, std::vector<Material>& m...
#include "common/test.hpp" #include "utils/color.hpp" using namespace polybar; TEST(String, rgb) { unsigned int color{0x123456}; EXPECT_EQ(0, color_util::alpha_channel<unsigned char>(color)); EXPECT_EQ(0x12, color_util::red_channel<unsigned char>(color)); EXPECT_EQ(0x34, color_util::green_channel<unsigned cha...
#include <bits/stdc++.h> using namespace std; namespace basic_geo { typedef double ftype; double DEG_to_RAD(double d) { return d * M_PI / 180.0; } double RAD_to_DEG(double r) { return r * 180.0 / M_PI; } struct point2d { ftype x, y; point2d() {} point2d(ftype x, ftype y) : x(x), y(y) {} point2d& oper...
// Copyright 2015, 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 agreed to i...
/* Usage: g++ -O3 -msse2 -o HFE-test HFE-test.cpp */ /* ============= size.h ================== */ /// 4 HFE #define SHORTPLAINTEXT_BYTES 64 #define ENCRYPTION_BYTES 68 #define SECRETKEY_BYTES 8480 #define PUBLICKEY_BYTES 23040 /* ============= size.h ================== */ #include <cstdio> #include <cstdlib> #inclu...
#include "lbp.hpp" using namespace cv; template <typename _Tp> void lbp::OLBP_(const Mat& src, Mat& dst) { dst = Mat::zeros(src.rows-2, src.cols-2, CV_8UC1); for(int i=1;i<src.rows-1;i++) { for(int j=1;j<src.cols-1;j++) { _Tp center = src.at<_Tp>(i,j); unsigned char code = 0; code |= (src.at<_Tp>(i-1,j-1...
#include <dirent.h> #include <unistd.h> #include <string> #include <vector> #include <map> #include <unistd.h> #include <iomanip> #include <sstream> #include "linux_parser.h" #define SECOND_TOKEN 2 #define UTIME_TOKEN 14 #define STIME_TOKEN 15 #define CUTIME_TOKEN 16 #define CSTIME_TOKEN 17 #define STARTTIME_TOKEN 22...
// // Created by amourao on 11-09-2019. // #include <unistd.h> #include "../utils/logger.h" #include <ctime> #include <iostream> #include <stdlib.h> #include <string> #include <thread> #include <opencv2/imgproc.hpp> #include <yaml-cpp/yaml.h> //#include <opencv2/imgproc.hpp> #include "nv_encoder.h" NvEncoder::Nv...
// // " $Id: file_chooser.cxx 5036 2006-04-27 16:08:06Z fabien $" // // File chooser test program for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2006 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // Lice...
/* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compiler: g++ * * Author: <NAME> <EMAIL> * * * ====...
/** * @file * @brief function realizing an embedded Runge-Kutta-Fehlberg explicit * single-step method * @author <NAME> * @date April 2021 * @copyright Developed at ETH Zurich */ #include <Eigen/Dense> #include <cassert> #include <cmath> #include <iostream> #include <vector> namespace EmbeddedRKSSM { /** *...
/* * SEGS - Super Entity Game Server * http://www.segs.dev/ * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ /*! * @addtogroup NetStructures Projects/CoX/Common/NetStructures * @{ */ #include "Charact...
#include <bits/stdc++.h> using namespace std; const int MOD = 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -MOD <= _r && _r...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <switch.h> #include <EGL/egl.h> // EGL library #include <EGL/eglext.h> // EGL extensions #include <glad/glad.h> // glad library (OpenGL loader) // GLM headers #define GLM_FORCE_PURE #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm/ma...
using namespace std; #include "vec.hpp" // lewenstein() needs dipole elements. One solution would be to pass a function // pointer, but as the calculation needs additional data, this would require // global variables. // A better solution is to pass a class instance. This instance can contain the // needed da...
#include <../../nrnconf.h> #if defined(carbon) #include <Carbon/Carbon.h> #else #include <CodeFragments.h> #endif #include <stdio.h> #include "apwindow.h" #include "ivoc.h" #include "rubband.h" #include "symdir.h" #include "oc2iv.h" #include "graph.h" #include <InterViews/window.h> #include <IV-Mac/window.h> #includ...
/* This file deals with */ #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <memory> #include <vector> #include <SDL2/SDL.h> #include "action.hpp" #include "utils.hpp" #include "world.hpp" static bool activateKey( SDL_Scancode scancode, const Uint8 *keyboardState, co...
#include <windows.h> #include <errno.h> #include <sys/stat.h> #include "utils.h" char* wchar_to_utf8(const wchar_t* str) { if (str==NULL) return NULL; //Determine required length int ln=WideCharToMultiByte(CP_UTF8,0,str,-1,NULL,0,NULL,NULL); char *res=(char *)malloc(sizeof(char)*ln); //Convert to Unicode Wid...
/*********************************************************************************/ /*! @file Song.cpp @brief xxxxx. @author <NAME> Copyright (c) 2008-2020, <NAME> and others, all rights reserved This file is part of the PianoBooster application PianoBooster is free softwar...
/** * @Copyright 2015 seancode * * The main window for terrafirma */ #include <QMessageBox> #include <QStandardPaths> #include <QDir> #include <QDirIterator> #include <QFileDialog> #include <QSettings> #include <QDebug> #include <QLabel> #include "./mainwindow.h" #include "./ui_mainwindow.h" #include "./handle.h" ...
#include "cbase.h" #include "../tf_bot.h" #include "tf_gamerules.h" #include "tf_obj.h" #include "nav_mesh/tf_nav_mesh.h" #include "tf_bot_get_ammo.h" ConVar tf_bot_ammo_search_range( "tf_bot_ammo_search_range", "5000", FCVAR_CHEAT, "How far bots will search to find ammo around them" ); ConVar tf_bot_debug_ammo_scava...
#include "externals.h" #include "Mesh.h" #include "MayaException.h" #include "Arguments.h" #include "MayaUtils.h" #include "MeshBlendShapeWeights.h" #include "DagHelper.h" #include "ExportableScene.h" Mesh::Mesh(ExportableScene& scene, MDagPath dagPath, const ExportableNode& node) { MStatus status = dagPat...
#include <bits/stdc++.h> const int MAXN = 300000; const double pi2 = 2 * acos(-1.0); struct Complex { double r, i; Complex(double r = 0, double i = 0) : r(r), i(i) {} inline Complex operator+(const Complex &x) { return Complex(r + x.r, i + x.i); } inline Complex operator-(const Complex &x) {...
/******************************************************************************* * Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved. *******************************************************************************/ #include <zendnn_private.hpp> #include <time.h> #include <sys/time.h> #include "...
/*============== SD Engine License ============== MIT License Copyright(c) 2019 Kuan - <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this softwareand associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the ...
// // Created by debauer on 16.11.21. // #include "sim808.h" void SIM808::power_on() const{ Serial.println(F("SIM808 power_on start")); digitalWrite(_pin_power, LOW); delay(2000); digitalWrite(_pin_power, HIGH); Serial.println(F("SIM808 power_on end")); } void SIM808::reset(bool soft){ Serial...
#include "forwardrenderer.h" #include "miscsettings.h" #include "ecs/scene.h" #include "ecs/camera.h" #include "resources/material.h" #include "resources/mesh.h" #include "resources/texture.h" #include "resources/shaderprogram.h" #include "resources/resourcemanager.h" #include "framebufferobject.h" #include "gl.h" #inc...
// Moons.cpp // OpenGL SuperBible, 3rd Edition // <NAME>. // <EMAIL> #include "../../shared/gltools.h" // OpenGL toolkit #include <string.h> /////////////////////////////// // Define object names #define EARTH 1 #define MARS 2 #define MOON1 3 #define MOON2 4 ///////////////////////////////////////////////////////...
#include "LSystemScene.h" #include "../imgui/imgui.h" /* See the file "LICENSE" for the full license governing this code. */ LSystemScene::LSystemScene(string sceneName) : Scene(sceneName) { colourShader = nullptr; for (int i = 0; i < NUMBER_LSYSTEMS; i++) { lSystem[i] = nullptr; } textureShader = nullptr; ...
/* * Software License Agreement (GPLv2 License) * * Copyright (c) 2012 Thecorpora, Inc. * * 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 you...
// // SndFileInstrument.cpp -- Sound file player instrument class // See the copyright notice and acknowledgment of authors in the file COPYRIGHT // #include "SndFileInstrument.h" using namespace csl; using namespace std; // The constructor initializes the DSP graph's UGens SndFileInstrument::SndFileInstrument(str...
/** * @file SQLExec.cpp - implementation of SQLExec class * @author <NAME> * @authors Luan (Remi) Ta, <NAME> * @see "Seattle University, CPSC5300, Spring 2022" */ #include "SQLExecutor.h" #include "ParseTreeToString.h" #include <vector> using namespace std; using namespace hsql; // define static data Tables* SQL...
/* * Copyright (c) 2016 Shanghai Jiao Tong University. * 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....
// DuEngine: Real-time Rendering Engine and Shader Testbed // <NAME> | http://www.duruofei.com // // Creative Commons Attribution-ShareAlike 3.0 License with 996 ICU clause: // // The above license is only granted to entities that act in concordance with // local labor laws. In addition, the following requirements must...
/* * Copyright (c) 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribut...
/** Assignment 1: Processes Name: <NAME> StudentID: 1572498 Course: CMPUT 379 Fall 2021 */ #include <iostream> #include <string> #include <vector> #include <unistd.h> #include <sys/wait.h> #include <boost/algorithm/string.hpp> #include <algorithm> #include "cmdexecuter.h" #include <sys/resource.h> #include <iom...
// // CLApplication.cpp // VisualKit // // Created by <NAME> on 18/05/2017. // Copyright © 2017 Unlimited Development. All rights reserved. // #include <assert.h> #include <chrono> #include <iostream> // temp debug #include <GroundBase.hpp> #include "CLApplication.hpp" #include "CLApplicationDelegate.hpp" #inclu...
#include "DataFormats/PatCandidates/interface/CovarianceParameterization.h" #include "DataFormats/Math/interface/liblogintpack.h" #include "DataFormats/Math/interface/libminifloat.h" #include "FWCore/ParameterSet/interface/FileInPath.h" #include <boost/format.hpp> #include <iostream> #include <TParameter.h> #include <T...
#include <stdio.h> #include <fstream> #include "LineDetection3D.h" #include "PlaneDetection.h" #include "nanoflann.hpp" #include "utils.h" #include "Timer.h" using namespace cv; using namespace std; using namespace nanoflann; void readDataFromTXTFile( std::string filepath, pcl::PointCloud<PointT>::Ptr...
// // CStList.cpp // Stsys // // Created by _nEgATron on 17/05/31. // Copyright © 2017年 _nEgATron. All rights reserved. // #include <String> #include <iostream> #include <fstream> #include <sstream> using std::string; using std::cin;using std::cout;using std::endl; #include "CStList.h" /*------------------------...
/* Copyright (c) <2012>, <Georgia Institute of Technology> 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...
// ---------------------------------------------------------------------------- // // tagGame - Example code from the book: // // Artficial Intelligence for Computer Games: An Introduction // by <NAME> // // www.ai4games.org // // Source code distributed under the Copyright (c) 2003-2007, ...
#include <cassert> #include <cmath> #include <functional> #include <iterator> #include <limits> #include <map> #include <memory> #include <stdexcept> #include <string> #include <type_traits> #include <vector> extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" } #ifdef EMBED_LUA extern char...
/** * This is an example of using EntityX. * * It is an SFML2 application that spawns 100 random circles on a 2D plane * moving in random directions. If two circles collide they will explode and * emit particles. * * This illustrates a bunch of EC/EntityX concepts: * * - Separation of data via components. * -...
/*****************************************************************/ /* 09/17/2015 Manually modified by <NAME> (<EMAIL>) */ /* Manually fix generated code to have correct array subscript. */ /* Serve as input code for MPI code generation. */ /************************************************************...
#include <fstream> #include <iostream> #include <string.h> #include "logger.h" #include "dbconnector.h" #include "producerstatetable.h" #include "tokenize.h" #include "ipprefix.h" #include "buffermgr.h" #include "exec.h" #include "shellcmd.h" using namespace std; using namespace swss; BufferMgr::BufferMgr(DBConnector...