text
stringlengths
3.08k
22k
//#include <Windows.h> #include <string> #include <iostream> #include <fstream> #include <vector> #include <winsock2.h> #include <time.h> #include <queue> #include <unordered_set> #pragma comment(lib, "ws2_32.lib") using namespace std; #define DEFAULT_PAGE_BUF_SIZE 1048576 queue<string> hrefUrl; unorde...
/* Utilities primarily of use in clients. However the build_json_value () functions may also be useful in server code that needs to construct a JSON value for a response to its client. */ #include "../include/ClientUtils.h" #include <algorithm> #include <cassert> #include <string> #include <utility> #inclu...
/** * TextField.cpp * * Created by <NAME> on 14/10/2013. */ #include "TextField.h" #include "xmlgui/framework/Container.h" map<int, char> xmlgui::TextField::shiftMap; xmlgui::ofxTextInput::FontRenderer* xmlgui::TextField::fontRef = NULL; xmlgui::TextField::TextField(): LabeledControl() { editable = true; ...
// Copyright (C) 2018 Xilinx Inc. // All rights reserved. #include "utils.hpp" #include "task.hpp" #include "xaddone_hw_64.h" // driver includes #include "ert.h" #include "xclhal2.h" #include "xclbin.h" #include "xma_profile.h" #include <fstream> #include <list> #include <getopt.h> const size_t ELEMENTS = 16; const...
//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <Gravity/GurobiProgram.h> GurobiProgram::GurobiProgram(){ // model = m; grb_env = new GRBEnv(); // grb_env->set(GRB_IntParam_Presolve,0); //grb_env->set(GRB_DoubleParam_NodeLimit,1); grb_env->set(GRB_DoubleParam_TimeLimit,7200); grb_env->set(GRB_DoubleParam_MIPGap,0.01); // grb_env->s...
/** * @file * This file is part of SeisSol. * * @author <NAME> (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.) * * @section LICENSE * Copyright (c) 2015, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificatio...
#include "sparse.h" #include "mmio.h" #include <algorithm> #include <sstream> #include <cmath> #include <cassert> //////////////////////////////////////////////////////////////////////////////// // ReadSparseMatrix bool ReadSparse2(FILE* f, SparseMatrix<double>& sparse, std::string& err) { MM_typecode matcode; in...
#include <omp.h> #include <stdlib.h> #include <iostream> #include <mutex> #include <thread> #include <queue> #include <condition_variable> using namespace std; const int SCALE = 400; const int W = SCALE*2; const int H = SCALE; const int T = SCALE*2; double field[H][W]; double field1[H][W]; const int OBS_N = 19; d...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" unsigned char *cop01_videoram; ...
#include "PgfPlotsGroupPlot.hpp" #include <stdexcept> #include <vector> PgfPlotsGroupPlot::PgfPlotsGroupPlot(unsigned int rows, unsigned int columns, std::string options) : PgfPlotsAxis(options), globalAxisLimits_({false}) { options_["group style"] = "{rows=" + std::to_string(rows) + ", colu...
//Copyright (c) 2014 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: //license.txt (http://opensource.org/licenses/MIT) /* * Individual.cpp * * Created on: 3 Sep, 2014 * Author: <NAME> <<EMAIL>> */ #include <database/entity/Individua...
//This program use the Monte Carlo Method to simulate two process: 1) Free expansion. 2) Network growth //The first simualtion is fast, the second will take a while. //It's not good to put them together... //// //Compiler: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) //Compile command: $ g++ -std=c++11 main...
/* Name - <NAME> Roll No. - 20CS60R64 To compile this code - g++ client.cpp -o -client To run this code provide two parameters- argv[1]- LocalAddress (eg 127.0.0.1) argv[2]- Port Number in the range in 1024 to 65535 ./client <ip address> <port no.> To end connection, give command "exit". ...
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-FileCopyrightText: 2020 <NAME> #include "Container.h" #include "CrossUO.h" #include "GameWindow.h" #include "Sprite.h" #include "Managers/ConfigManager.h" std::vector<ContainerDefinition> g_Container; static ContainerPosition s_ContainerPos; static ContainerPosit...
/* The MIT License (MIT) Copyright (c) 2017 Lancaster University. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
/* * * Copyright 2015, Google Inc. * 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...
// nnet2/nnet-precondition-online-test.cc // Copyright 2012 Johns Hopkins University (author: <NAME>) // See ../../COPYING for clarification regarding multiple 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...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
/**************************************************************************** * ==> QR_AABBTree ---------------------------------------------------------* **************************************************************************** * Description : Aligned-axis bounding box tree * * Devel...
// Copyright (c) 2021 ICHIRO ITS // // 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, di...
/* ========================================================================= Copyright (c) 2010-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. Portions of this software are copyright by UChicago Argonne, LLC. ...
/* Copyright 2018 Streampunk Media 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 t...
// TEST=NGLM2Test om-t #include "NGLM.hpp" #include "NGLMExt.hpp" #include "GLMFormat.hpp" #include <glm/gtx/matrix_interpolation.hpp> #include "OPTICKS_LOG.hh" /* PBRT 2nd Edition, p97 Next we’d like to extract the pure rotation component of M. We’ll use a technique called polar decomposition to do this. It can b...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PA...
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT AN...
#include "IP.h" using namespace IP; enum FILTERS { BOX, TRIANGLE, CUBIC_CONV, LANCZOS, HANN, HAMMING }; double boxFilter (double, double); double triFilter (double, double); double cubicConv (double, double); double lanczos (double, double); double hann (double, double); double hamming (double, double); // ~~~~~...
#include <math.h> #include <fstream> #include <string> #include <conio.h> #include <iostream> #include <iomanip> #include <time.h> using namespace std; #include "math_parameters.h" #include "io_grunts.h" #include "io_diag.h" #include "math_grunts.h" #include "NlinSolvers.h" #include "Fmin.h" #includ...
/* * This program takes a bunch of test-logs and outputs the results in JUnit's XML format. * * A documentation of the XML format can be found here: * https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #i...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/* * Copyright 2021 OmniSci, 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 t...
// // menubar.c: メニューバーウィジェット // #include <stdio.h> #include <ctype.h> #include <malloc.h> #include <string.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <local_types.h> #include <list.h> #include <xfontpair.h> #include <widget.h> #include <menubar.h> #define BW WIDGET_BORDER_WIDTH #def...
/****************************************************************************//* * 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, includ...
/* Aliquot prime power trial factoring program. * * This program verifies the divisibility and abundance of a set of divisors in * relation to a given prime base and exponent pair. * * (C) <NAME>, 2021. My own code is under the MIT License, which is * included in this repository. * * Adapted from code by <NAME>...
#include "../Headers/Network.hpp" Network::Network(std::vector<int> neuronCounts) { if (neuronCounts.size() < 2) { std::cerr << "Network must have at least 2 layers given in constructor" << std::endl; exit(1); } srand(time(NULL)); // Cannot randomize network here because it depends on child class's getWeight...
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2013 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the Licens...
/** * @brief * * RFC. when the table becomes full, older events are automatically deleted * to make room for newer events. The table index dot3OamEventLogIndex * increments for each new entry, and when the maximum value is reached, * the value restarts at zero. * * NOTE. add/remove in timestamp ordr, but getn...
//////////////////////////////////////////////////////////////////////// // Copyright (c) 2010-2015, University of Washington and Battelle // Memorial Institute. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following cond...
#include "console.h" #include <stdio.h> #include <unistd.h> #include <algorithm> #include <sstream> #include <fstream> #include "mode/mode.h" #include "command/help_print/man_behavior.h" #include "command/param_comple/external_script.h" #include "command/param_comple/tool/directory.h" using namespace clidevt; class ...
/* * Moondust, a free game engine for platform game making * Copyright (c) 2014-2021 <NAME> <<EMAIL>> * * This software is licensed under a dual license system (MIT or GPL version 3 or later). * This means you are free to choose with which of both licenses (MIT or GPL version 3 or later) * you want to use this so...
// Copyright (c) <NAME> (<EMAIL>) // For other contributors see Contributors.txt // // 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 ...
#include <iostream> #include <fstream> #include "XercesUtils.hpp" #include "LoadOSM.hpp" #include "OSMDatabase.hpp" #include "BasicRelationFeatureFactory.hpp" #include "BasicWayFeatureFactory.hpp" #include <boost/archive/binary_oarchive.hpp> #include <cairomm/context.h> #include <cairomm/surface.h> #include <array...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. // // Purpose: Defines a symbol table. #include "tier1/utlsymbol.h" #include "tier0/include/threadtools.h" #include "tier1/keyvalues.h" #include "tier1/stringpool.h" #include "tier0/include/memdbgon.h" #define INVALID_STRING_INDEX CStringPoolIndex(0x...
// <EMAIL> // hw12 #include <iostream> #include <cassert> #include <vector> using namespace std; //DISPLAY 11.9 Program Using an Array of the Money Object //This is the definition for the class Money. //Values of this type are amounts of money in U.S. currency. // Class declaration is from Savitch source code avail...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. // Modified version of Recast/Detour's source file // // Copyright (c) 2009-2010 <NAME> <EMAIL> // // 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 ...
#include "Fear.h" #include "Font.h" #include "OpenGL.h" #pragma warning( disable : 4244 ) // conversion from 'double' to 'float', possible loss of data void Font::Close() { if (!mCreatedDC) return; DeleteObject(mFont); DeleteObject(mDib); DeleteDC(mDC); mDC = (NULL); mFont = (NULL); mDib = (NULL); mLoaded ...
#include <iostream> #include <memory> #include <vector> #include <string> #include <ctime> #include <limits> #include <algorithm> #include <cstdint> // #include "include/table_printer.h" #include "include/Client.hpp" #include "include/Server.hpp" #define FIELD_SIZE 10 #define SHIP_COUNT 10 using namespace bs; struc...
#include "pch.h" #include "7zAlloc.h" #include "7zMyAlloc.h" #include "7zFile.h" #include "LzmaEnc.h" #include "LzmaDec.h" #include "Types.h" ZString GetAppDir() { char szPathName[MAX_PATH+48] = ""; GetModuleFileNameA(NULL, szPathName, MAX_PATH); char* p = strrchr(szPathName, '\\'); p = (!p) ? szPathName : p+1; ...
/* * Copyright 2008-2009 NVIDIA Corporation * * 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 a...
#include "FlowScene.hpp" #include "ConnectionGraphicsObject.hpp" #include "FlowSceneModel.hpp" #include "NodeGraphicsObject.hpp" #include "NodeIndex.hpp" #include "ConnectionID.hpp" #include <algorithm> using QtNodes::FlowScene; using QtNodes::FlowSceneModel; using QtNodes::NodeGraphicsObject; using QtNodes::NodeInde...
/* * Copyright (c) 2012 <NAME> <<EMAIL>> * * BSD Simplified License. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. * * See https://github.com/libpd/libpd for documentation * * This file was adapted from the ofxPd open...
//functor, set, map, multimap, priority_queue #include <iostream> #include <set> #include <map> #include <functional>//to use the key word function #include <queue> //priority_queue -- heap #include <string> #include <vector> #include <list> #include <algorithm> using namespace std; class ThreeD { public: int ht;...
/* * Copyright (c) 2018 https://www.thecoderscorner.com (Nutricherry LTD). * This product is licensed under an Apache license, see the LICENSE file in the top-level directory. */ /** * @file tcMenuStChromaArt.h * * This renderer works with the ChromaART classes provided on many ST boards, it assumes you have a o...
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: jd_misc.cpp Abstract: variety of assisting functions - command line parameters parsing - displaying the error messages - creating the random file - creating the unique identifier based on thread and process Author: ...
/** * \file VecWdbeVStub.cpp * vector VecWdbeVStub (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #include "VecWdbeVStub.h" using namespace std; using namespace Sbecore; using namespace Xmlio; /******...
#include "ros/ros.h" #include <ros/spinner.h> #include "common_mav.h" #include <visualization_msgs/Marker.h> #include "airsim_ros_pkgs/get_trajectory.h" #include <airsim_ros_pkgs/MultiDOF.h> #include <airsim_ros_pkgs/MultiDOFarray.h> #include <airsim_ros_pkgs/BoolPlusHeader.h> #include <airsim_ros_pkgs/follow_trajector...
/** * Copyright (c) 2008-2010 <NAME> and the contributors. 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...
////////////////////////////////////////////////////////////////////////////////// // // This implements the SPM_Combiner module that combines the raw spike counts from // a bunch of separate spike sources (such as separate acquisition boxes into one // spike count sample that is sent out. The raw counts can be more f...
/******************************************************************************* * * * PrimeSense NITE 1.3 - Players Sample * * Copyright (C) 2010 PrimeSense Ltd. ...
#include <iostream> #include <vector> #include <fstream> #include <sstream> #include <string> #include <algorithm> #include <cmath> #include <random> void read_csv(std::string file_names, std::vector<std::vector<double>> &group_a, std::vector<std::vector<double>> &group_b){ std::ifstream filestream(file_names); ...
#include <iostream> #include "Matrix.h" #include <cmath> #include <ctime> #include "lConv.h" using namespace std; double measurespeed(int insize, int wsize, int iterations); void numgrad(Matrix in, Matrix w, float bias, Matrix target, float step); float getCost(Matrix out, Matrix target, Matrix & delta); M...
#include "matcher.hh" #include <cassert> #include "../utils/digraph.hh" #include <logia/program.hh> #include <utils/cli/err.hh> #include <utils/str/format-string.hh> #include <utils/str/str.hh> namespace { constexpr std::size_t DEF_IDX_NONE = -1; std::size_t get_def_idx(const isa::Ins &ins) { for (std::size_t i ...
/* ** Copyright (C) 1998-2010 <NAME> <<EMAIL>> ** ** 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 program...
/* * Copyright (c) 2018 https://www.thecoderscorner.com (Nutricherry LTD). * This product is licensed under an Apache license, see the LICENSE file in the top-level directory. */ #include <inttypes.h> #include <Arduino.h> #include "IoAbstraction.h" #include "TaskManager.h" TaskManager taskManager; TimerTask::Time...
#include <arc/ArcConfigIni.h> #include <arc/StringConv.h> #include "Config.h" static Arc::Logger logger(Arc::Logger::getRootLogger(),"JURA.Config"); namespace ArcJura { char const * const Config::default_logfile = "/var/log/arc/jura.log"; Arc::LogLevel const Config::default_loglevel = Arc::INFO; char const * ...
#include "test_collision.h" #include "../pal/palCollision.h" FACTORY_CLASS_IMPLEMENTATION(Test_Collision); /* void MakeConvexCone(Float *pVerts) { int i; for (i=0;i<36;i++) { pVerts[i*3+0] = sin(i*10*DEG2RAD); pVerts[i*3+1] = cos(i*10*DEG2RAD); pVerts[i*3+2] = 0; } for (i=36;i<36+36;i++) { pVerts[i*3+0] = ...
#include "pch.h" #include "GliImage.h" #include "compress_interface.h" #include "interface.h" #include <stdexcept> bool is_grayscale(gli::format f); // mofified copy of gli convert template <typename texture_type> inline texture_type convert_mod(texture_type const& Texture, gli::format Format) { typedef ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <Noctis.h> #include "imgui.h" class ExampleLayer : public Noctis::Layer { public: ExampleLayer() :Layer("Example"), m_Camera(-1.60f, 1.60f, -0.90f, 0.90f) , m_CameraPosition(0.0f) { //----------OPENGL RENDERING TRIANGLE m_VertexArray.reset(Noctis::VertexArray::Create()); std::shared_ptr<Noctis::Ver...
#include "skse/skse.h" //#include <boost/iostreams/stream.hpp> //#include <ShlObj.h> //#include "skse/PluginAPI.h" #include "skse/skse_version.h" #include "skse/GameData.h" //#include "skse/PapyrusVM.h" #include "skse/GameForms.h" #include "skse/GameData.h" #include "skse/InternalSerialization.h" #include "skse/Plug...
#include <cstdint> #include <cstdlib> #include <exception> #include <iostream> #include <string> #include <boost/program_options.hpp> #include <gdalcpp.hpp> #include <osmium/area/assembler.hpp> #include <osmium/area/multipolygon_manager.hpp> #include <osmium/geom/factory.hpp> #include <osmium/geom/ogr.hpp> #include...
#include <CoinMinter.h> #include <wallet.h> #include <utiltime.h> #include <chain.h> #include <chainparams.h> #include <PeerNotificationOfMintService.h> #include <masternode-sync.h> #include <utilmoneystr.h> #include <timedata.h> #include <boost/thread.hpp> #include <I_BlockFactory.h> #include <BlockTemplate.h> #inclu...
/* # # UFFBAPS - Unified Force Field for Binding And Protein Stability # Copyright (C) 2010 <NAME> & <NAME> # # 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 3 of the Licen...
#pragma once #include <bits/stdc++.h> using LL = long long; namespace NTTS { int M = 998244353, g = 3; std::vector<int> rev, roots{0, 1}; int powMod(int x, int n) { int r(1); while (n) { if (n&1) r = 1LL * r * x % M; n >>= 1; x = 1LL * x * x % M; } return r; } void dft(std::vector<int> &a) { int n = a.size();...
// ------------------------------------------------------------------------------ // File and Version Information: // $Id: KalConstraint.cc,v 1.26 2005/10/04 19:34:09 brownd Exp $ // // Description: // Class to describe a kalman filter constraint site. This puts measurement information // into the fit // // Co...
// Copyright (C) 2020 Intel Corporation // apt-get install libfcgi-dev // gcc fcgitest.c -lfcgi #include <inference_engine.hpp> #include <stdlib.h> #include <string.h> #include <alloca.h> #include <string> #include <stdio.h> #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #inc...
 #include "stdafx.h" #include "RhRdkPerlinMarbleTexture.h" #include "RhRdkTextureUtilities.h" class CRhRdkPerlinMarbleTexture::Evaluator : public CRhRdkTwoColorEvaluator { public: Evaluator(const CRhRdkPerlinMarbleTexture& texture, CEvalFlags ef); virtual CRhRdkColor GetColorSample(const ON_3dPoint& uvw, const ON_...
#include <advanced_robotics_franka_controllers/robot_model.h> #include <vector> using namespace std; RobotModel::RobotModel() { // model_ = new Model(); // model_->gravity = Eigen::Vector3d(0., 0., -9.81); q_rbdl_.resize(dof); qdot_rbdl_.resize(dof); q_rbdl_.setZero(); qdot_rbdl_.setZero(); qddot_rbdl_.resiz...
#include "AsyncMbus.h" #define TX_OFF LOW #define TX_ON HIGH static AsyncMBus *_aMbus = 0; static void _asyncMBusTimerISR(); static void _asyncMBusPinChangeISR(); static inline int bits(const uint32_t msg); AsyncMBus::AsyncMBus(int rxPin, int txPin, t_onMessageCb onMessageCb, t_onTxCb onTxCb, t_onFaultCb onFaultCb)...
// StoreInfo.cpp : Implementation of CStoreInfo #include "stdafx.h" #include "UpdateDB.h" #include "ResStr.h" #include "StoreInfo.h" #include "Err.hpp" #include "ARExt_i.c" //#import "\bin\mcsvarsetmin.tlb" no_namespace //#import "\bin\DBManager.tlb" no_namespace #import "VarSet.tlb" no_namespace rename("pro...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <time.h> #include <e-hal.h> #include <IL/il.h> #include "shared_data.h" #define IMAGE_OFFSET 0x00000000 #define IMAGE_SIZE 0x00100000 #define RESULT_OFFSET 0x00100000 #define RESULT_SIZE 0x00040000 #defin...
/** * @file WiFiSettingServer.cpp * @brief WiFi 설정 서버 * @date 2019-08-27 * @author <NAME> (<EMAIL>) */ #include <WiFiSettingServer.h> AsyncWebServer _server(80); /** * @fn WiFiSettingServer::WiFiSettingServer(char *ap_name) * @brief WiFiSettingServer 생성자 * @param ap_name WiFi 설정 서버 AP명 * @return WiFi 설정 서버 ...
// // Created by <NAME> on 3/17/17. // #include "ScanlineFill.h" #include "../item.h" #include <deque> enum class SourceDirection { None, ZMinus, ZPlus, YMinus, YPlus }; class LightDecay { }; class Scanline { public: int startX; int startY; int startZ; short light; Source...
#include "solver/solver.hpp" #include <cmath> #include "advection/batchtracking.hpp" #include "advection/batchtrackingstate.hpp" #include "solver/discretizer/enthalpy.hpp" #include "solver/discretizer/internalenergy.hpp" #include "solver/governingequationsolver.hpp" #include "utilities/errors.hpp" #include "utilities...
/*! \file ScotchSplitter.cpp \brief to call grpah decomposer : SCOTCH \author <NAME>, ONERA \date Jul. 2nd 2012 \date Nov. 30th 2016 */ // This file is part of Dissection // // Dissection is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public Li...
#include <vector> #include <string> #include <fstream> #include <iostream> // Add linker section here // Length of the DIGITS set const int DIGITS_LENGTH = 10; // Lentgh of the SYMBOLS set const int SYMBOLS_LENGTH = 6; // Length of the PERIOD set const int PERIOD_LENGTH = 1; // Length of the AMPERSAND set const in...
#include <TooN/TooN.h> #include <utility> #include <vector> #if !defined(WIN32) && !defined(NEWCPPSTD) #include <tr1/tuple> #include <tr1/array> #else #include <tuple> #include <array> #endif #include "polynomial.h" using namespace TooN; using namespace std; #ifdef WIN32 inline bool signbit( const double & d ){ re...
/* * Copyright 2021 Collabora, Ltd. * * SPDX-License-Identifier: MIT */ #include "title_screen.h" #include "font.h" #include "hiscore.h" #include "math_helpers.h" #include "model.h" #include "render.h" #include "render_helpers.h" #include <atari-controllers> #include <SDL.h> #include <GL/gl.h> #include <cmath> #inc...
#include <bits/stdc++.h> #ifdef _WIN32 #include <windows.h> #include <GL/glut.h> #include <gl/Gl.h> #endif //#ifdef linux #include "GL/freeglut.h" #include "GL/gl.h" //#endif #define pi (2*acos(0.0)) using namespace std; double angle=0; class P{ public: double x,y,z; // P(){ x=0; y=0; z=0; } P(do...
// to fix min max windows macros #define NOMINMAX // SDL //#include "../external/SDL2-2.0.4/include/SDL_syswm.h" #include "../external/SDL2-2.0.4/include/SDL.h" // This #include "shadersDemoContext.h" // Stubs for unsupported renderers //#if PLATFORM_LINUX #ifdef __linux__ DemoContext* CreateDemoContextD3D11() { ass...
/*eLiSe06/05/99 Copyright (C) 1999 <NAME> eLiSe : Elements of a Linux Image Software Environment 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 yo...
/* hash.h/hash.cpp - Source Code for ElephantEye, Part V ElephantEye - a Chinese Chess Program (UCCI Engine) Designed by <NAME>, Version: 3.31, Last Modified: May 2012 Copyright (C) 2004-2012 www.xqbase.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Less...
// Copyright (c) 2010, <NAME> <<EMAIL>>, // All rights reserved. // // Redistribution and use of this code or any derivative works are // permitted provided that the following conditions are met: // // * Redistributions may not be sold, nor may they be used in a // commercial product or activity. // // * Redistribu...
// // Created by Aidan on 2019-09-14. // // Virtual machine for LC-3 // LC-3 is an educational assembly language #include "Virtualization.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <signal.h> #include <unistd.h> #include <fcntl.h> #include <sys/time.h> #include <sys/ty...
#include <iostream> #include <curses.h> #include <random> #include "position.h" #include "dino.h" using namespace std; Dino::Dino() { init(); isRunning = false; dinoCanJump = 0; feetPos = 1; velocity = 5; jumpPause = 0; runPause = 0; cactiPause = 0; cactiGenPause = 0; dinoP...
/* *Author:GeneralSandman *Code:https://github.com/GeneralSandman/TinyWeb *E-mail:<EMAIL> *Web:www.dissigil.cn */ /*---XXX--- * **************************************** * */ #include <TinyWebConfig.h> #include <tiny_base/api.h> #include <tiny_base/configer.h> #include <tiny_core/processpool.h> #include <tiny...
#include "Market.h" void Market::market_buildup(){ catalogue_of_Items[0]=new Weapon("<=======|==o The Screaming Eagle",450,1,24,1); catalogue_of_Items[1]=new Weapon("(|) Limbsplit",500,1,44,2); catalogue_of_Items[2]=new Weapon("<=======|==o Lakishu's Blade",550,3,45,1); catalogue_of_Items[3]=new We...
#include "HasseLiftExt.h" #include "Util.h" #include "BaseChange.h" #include "MultipointEval.h" #include "FrobComp.h" #include "MultiComposeMod.h" #include "BalancedMul.h" #include "HasseLift.h" #include <NTL/matrix.h> #include <cmath> #include <NTL/ZZX.h> HasseLiftExt::HasseLiftExt(const ZZ_pX &g, ...
#include "Tutorial_2.h" #include "Gizmos.h" #include "Utilities.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/ext.hpp> #define DEFAULT_SCREENWIDTH 1280 #define DEFAULT_SCREENHEIGHT 720 Tutorial_2::Tutorial_2() { } Tutorial_2::~Tutorial_2() { } bool Tutorial_2::onCreate(int a_argc, char* a_argv[]) ...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2010 Interactive Visualization and Data Analysis Group. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwar...