text
stringlengths
3.08k
22k
/* bookmarks.cpp - Network access manager implementation file of WildFox-Mimic. Revision 0 Features: - Notes: - 2012/02/21, <NAME> (c) Nyanko.ws */ #include "bookmarks.h" #include <QSqlQuery> #include <QAction> #include <QTreeWidgetItem> #include <QDesktopService...
/* * Copyright (c) 2020, 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...
/****************************************************************************** * $Id: ogrmemdatasource.cpp 26302 2013-08-11 16:24:14Z rouault $ * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implements OGRVTDataSource class. * Author: <NAME>, <EMAIL> * *****************************...
// ft2232spi.cpp : Defines the entry point for the console application. // #ifdef _WIN32 #include "stdafx.h" #endif /* Standard C libraries */ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<iostream> /* OS specific libraries */ #ifdef _WIN32 #include<windows.h> #pragma comment(lib, "F...
#include "UI.h" #include "Application.h" #include "Helpers/FileSystem.h" #include "Helpers/User.h" #include "Helpers/FileDialog.h" #include "Events/Event.h" #include <iostream> UI::UI(Application& app) : m_App(app) { Init(); m_App.GetWindow()->SetCallback(BIND_FUNCTION(UI::OnEvent)); std::vector<std::wstring> ...
/* Copyright (c) 2015, <NAME> <<EMAIL>> * Licensed under the MIT license. See the license file LICENSE. */ #pragma once #include <iostream> #include <stdint.h> #include <vector> #include <Eigen/Dense> #include <boost/shared_ptr.hpp> #include <dpMM/dpMM.hpp> #include <dpMM/cat.hpp> #include <dpMM/dir.hpp> #include <...
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <algorithm> #include <csignal> #include <ctime> #include <functional> #include <map> #include <set> #include <string> #include <utility> #include <vector> #include <iostream> #include "caffe/util/c...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.cpp * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2022 STMicroelectronics....
// // remapped_symbol_set.cpp // Parse // // Created by <NAME> on 26/04/2011. // // Copyright (c) 2011-2012 <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...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved. #include <librealsense2/rs.hpp> // Include RealSense Cross Platform API #include "example.hpp" // Include short list of convenience functions for rendering #include <algorithm> ...
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
#include "begin_room.h" #include "ui_begin_room.h" begin_room::begin_room(Player* player, QWidget *parent) : QDialog(parent), ui(new Ui::begin_room) { this->player = player; index = 0; index2 = 0; ui->setupUi(this); loadImages(); ui->minimapLabel->setPixmap(images[0][0]); ui->curren...
#include <vector> #include <bitset> #include <cmath> #include <iostream> #include "board.h" #include "move_generation.h" #include "database.h" /* * Bitboard Numbering: * RANK | LBIT - RBIT * 8 0 > 00000000 <7 * 7 8 > 00000000 <15 * 6 16> 00000000 <23 * 5 24> 00000000 <31 * ...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding valid commercial Qt...
#include "ba_tree.h" #include <algorithm> #include <array> #include <chrono> #include <cmath> #include <iostream> #include <numeric> #include <glm/ext.hpp> #include <glm/glm.hpp> #include <glm/gtx/string_cast.hpp> #include <tbb/task_group.h> #include "owned_array.h" #include "util.h" BATree::BATree(const Box &bounds, ...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain soft...
#include "RecoVertex/KinematicFit/interface/PointingKinematicConstraint.h" #include "RecoVertex/VertexPrimitives/interface/VertexException.h" std::pair<AlgebraicVector, AlgebraicVector> PointingKinematicConstraint::value(const AlgebraicVector& exPoint) const { if(exPoint.num_row() ==0 ) throw VertexException("Pointin...
/* ** PROGRAM: heat equation solve ** ** PURPOSE: This program will explore use of an explicit ** finite difference method to solve the heat ** equation under a method of manufactured solution (MMS) ** scheme. The solution has been set to be a simple ** function based on exponentia...
/*---------------------------------------------------------------------------* \ Copyright (C) 2011-2015 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it ...
/* * CDCIso.cpp * * Created: 23/04/2020 10:34:21 * Author: Gebruiker */ #include <arduino.h> #include "CDCIso.h" #include <USB/USBCore.h> #include <USB/PluggableUSB.h> #include <USB/CDC.h> CDCIso_::CDCIso_(void) : PluggableUSBModule(2,2,epIsoType) { epIsoType[0] = USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0);...
// MCMCoder.cpp #define NOMINMAX #include "CPP/7zip/Compress/StdAfx.h" #include "C/Alloc.h" #include "CPP/7zip/Common/CWrappers.h" #include "CPP/7zip/Common/StreamUtils.h" #include "MCMCoder.h" #include "PackjpgCoder.h" #include "X86Binary.hpp" #include "Wav16.hpp" CompressorFactories *CompressorFactories::instan...
// This software is released as part of the k8psh project. // Portions of this software are public domain or licensed under the MIT license. (See the license file for details.) #include "Configuration.hxx" #include <unordered_map> #include <utility> #include "Utilities.hxx" // Gets the remaining string in a line. s...
#include <shogun/io/SGIO.h> #include <shogun/base/init.h> #include <shogun/lib/common.h> #include <shogun/lib/Time.h> #include <shogun/mathematics/Math.h> #include <shogun/structure/PrimalMosekSOSVM.h> #include <shogun/structure/DualLibQPBMSOSVM.h> #include <shogun/structure/StochasticSOSVM.h> #include <shogun/structu...
/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * * * Primary Autho...
#include <unistd.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <X11/Xlib.h> #include <X11/extensions/XInput.h> #include <X11/Xutil.h> #define VALUATOR_ABSX 0 #define VALUATOR_ABSY 1 #define VALUATOR_PRESSURE 2 #define VALUATOR_TILTX 3 #define VALUATOR_TILTY 4 #define STR(x) #x ...
#include "precomp.h" #include "SceneManager.h" Scene * SceneManager::AnimationTest() { //Textures shared_ptr<ColorTexture> colorTexture = make_shared<ColorTexture>(Color(1, 1, 1)); shared_ptr<Mesh> dragonMesh = make_shared<Mesh>("res/dragon.obj"); shared_ptr<Mesh> bunnyMesh = make_shared<Mesh>("res/bunny.obj"); ...
// Author: <NAME> #include <FL/Fl_Shared_Image.H> #include "stage.hh" #include "config.h" // results of cmake's system configuration tests #include "file_manager.hh" using namespace Stg; // static member - a vector command line arguments std::vector<std::string> World::args; static bool init_called = false; const...
#include "LichtensteinUtils.h" #include <iostream> #include <glog/logging.h> // for htons/ntohl, etc. #include <arpa/inet.h> #include "lichtenstein_proto.h" #include "crc32/crc32.h" /** * Validates the given packet. If the packet cannot be verified, an error is * returned. This assumes that the packet is right o...
//============================================================================ // Name : ctm_c.cpp // Author : Edward // Version : // Copyright : GPL // Description : Implementation of CTM by C++ //============================================================================ #include <iostream> #inclu...
/* * Copyright (c) 2008-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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
// Copyright 2009 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 in...
/** * @file turbulence.cpp */ #include "forecast_time.h" #include "level.h" #include "logger.h" #include "plugin_factory.h" #include "turbulence.h" #include "util.h" using namespace std; using namespace himan::plugin; turbulence::turbulence() { itsLogger = logger("turbulence"); } void turbulence::Process(std::sha...
/* -------------------------------------------------------------------------- * * OpenMMMPID * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * *...
/*************************************************************************************** * Original Author: <NAME> * Created: 2020-08-03 * Copyright: <NAME> (https://github.com/GabrieleGiuseppini) ***************************************************************************************/ #include "CreditsPanel....
#include <iostream> #include <cassert> #include <cmath> #include <ctime> #include <algorithm> #include "../include/mcts.h" #define DEBUG using namespace std; /*** MCTS NODE ***/ MCTS_node::MCTS_node(MCTS_node *parent, MCTS_state *state, const MCTS_move *move) : parent(parent), state(state), move(move), sco...
/* * Copyright (c) 2016 Samsung Electronics 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 l...
#include "DCM_IMU_C.h" DCM_IMU_C::DCM_IMU_C(const double Gravity, const double *State, const double *Covariance, const double DCMVariance, const double BiasVariance, const double InitialDCMVariance, const double InitialBiasVariance, const double MeasurementVariance, const double MeasurementVarianceVariableGain) ...
#include <main.h> double readADC(int channel){ uint32_t total = 0UL; uint16_t sampleCount = 4096; for (uint16_t i = 0; i < sampleCount; i++) { total += analogRead(channel); } total = total >> 6; double proportional = (total * 1.0) / (0b00000001 << 6); return proportional; } void request...
/* Copyright 2017 <NAME> The WS2811 driver is taken from https://github.com/nkolban/esp32-snippets Copyright 2018 <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 restrict...
/* ============================================ navX MXP source code is placed under the MIT license Copyright (c) 2015 <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, ...
/** * \file * \copyright * Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "AddProcessDataToMesh.h" #inclu...
#include "stdafx.h" #include "WinUser.h" #include "VirtualKeys.h" VirtualKeys::VirtualKeys() { } VirtualKeys::~VirtualKeys() { } bool VirtualKeys::GetKeyPressName(DWORD dwCmdId, CString &zName) { int nVirtKey = ((dwCmdId & KEYBINDING_KEYPRESS) > 0) ? (int)(dwCmdId & KEYBINDING_KEYPRESS_MASK) : 0; bool bShift = ((d...
#include <fstream> #include <iostream> #include <string> #include <vector> // Takes a filepath and gets the wordlist from that file // (newline separated, '#' for comments) std::vector<std::string> wordlistFromFile(std::string filepath) { std::vector<std::string> wordlist; std::string tmpString; ...
#include "FIFOAcquisition.hpp" #include <Spcm_def.h> #include <chrono> #include <cstdlib> #include <exception> #include <stdexcept> #include <string> #include <thread> int ConfigureDeviceForFIFOAcquisition(short module) { short err; err = SPC_test_id(module); if (err < 0) { return err; } short model = err; ...
#include <map> #include <algorithm> #include <vector> #include <random> #include <ctime> #include <glbinding/gl/functions.h> #include <glbinding/gl/extension.h> #include <glbinding/gl/enum.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/random.hpp> #define GLFW_INCLUDE_NONE #include <GLF...
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> // SPDX-License-Identifier: BSD-2-Clause #include <limits> #include <list> #include <algorithm> #include "CScheduleAlgorithmReMinMin.h" #include "CTask.h" #include "CTaskCopy.h" #include "CEstimation.h" #include "CSchedule.h" #include "CLogger.h" using namespace sc...
// // //0:odom 1:imu 2:ndt 3:ekf //の結果を得られる // #include <stdio.h> #include <iostream> #include <sensor_msgs/PointCloud.h> #include <sensor_msgs/Imu.h> // #include <ceres_msgs/AMU_data.h> #include <nav_msgs/Odometry.h> #include <ros/ros.h> #include <tf/transform_datatypes.h> #include <tf/transform_broadcaster.h> #includ...
#include <cryptopp/cryptlib.h> #include <cryptopp/secblock.h> #include <cryptopp/hrtimer.h> #include <cryptopp/osrng.h> #include <cryptopp/modes.h> #include <cryptopp/aes.h> #include <cryptopp/lea.h> #include <iostream> #include <ctime> // benchmark Naive #include <ratio> // benchmark Naive #include...
/** * Copyright (c) JoeScan Inc. All Rights Reserved. * * Licensed under the BSD 3 Clause License. See LICENSE.txt in the project * root for license information. */ /** * @file scan_gui_example.cpp * @brief Example demonstrating how to read profile data from scan heads. * * This application shows the fundamen...
/* CompareArrays.cc -- compare two string arrays Copyright (C) 2020 <NAME> and <NAME> This file is part of nihtest, regression tests for command line utilities. The authors can be contacted at <<EMAIL>> Redistribution and use in source and binary forms, with or without modification, are permitted provided...
/* 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following discl...
// Copyright 2020 PayPal Inc. // // 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....
/******************************************************************************** * Copyright 2009 The Robotics Group, The <NAME>-<NAME> Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
/* * JBoss, Home of Professional Open Source * Copyright 2008, Red Hat, Inc., and others contributors as indicated * by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishin...
#include "Snake.h" Snake::Snake(int size_x, int size_y, int maxfood, int startlength){ int error = 0; error += !Screen.Initialize(); error += setsize_x(size_x); error += setsize_y(size_y); error += setmaxfood(maxfood); error += setstartlength(startlength); if (error) exit(error); }; bool Snake::...
// The MIT License (MIT) // // Copyright (c) 2016 <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, m...
#include "MD5.h" #include <cmath> #include <exception> #include <iostream> MD5::MD5() { if (sizeof(word) != 4 || sizeof(byte) != 1 || sizeof(size_t) != 8) { throw "can not run on this machine"; } word tempRotateShiftBits[64] = { 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 2...
#include <tkn/passes/blur.hpp> #include <tkn/util.hpp> #include <vpp/debug.hpp> #include <vpp/trackedDescriptor.hpp> #include <vpp/shader.hpp> #include <vpp/formats.hpp> #include <vpp/vk.hpp> #include <shaders/deferred.gblur.comp.h> // TODO: allow src and tmp images to have different sizes. // Requires a fix in the s...
#include <math.h> #include "ArduinoOTA.h" #include "updatehandler.h" #include "WiFi.h" #include "Wire.h" #include <AsyncTCP.h> #include <ESPAsyncWebServer.h> #include "SPIFFS.h" #include "MPU6050_light.h" #include "EEPROM.h" #include "operational_modes/operationalmode.h" #include "operational_modes/OpModeCharge.h" #in...
#include "nn/train.hpp" #include "nn/mlp.hpp" #include "nn/dataset.hpp" #include "generator.hpp" #include "nn/antisymmetric.hpp" #include "nn/hamiltonian.hpp" #include "nn/tcn.hpp" #include "nn/inoutwrapper.hpp" #include "nn/utils.hpp" #include "nn/nnmaker.hpp" #include "pendulumeval.hpp" #include <torch/torch.h> #inc...
/*******************************************************************/ /* */ /* ADOBE CONFIDENTIAL */ /* _ _ _ _ _ _ _ _ _ _ _ _ _ */ /* ...
/* * Copyright (c) 2018 Preferred Networks, Inc. All rights reserved. */ #include <fstream> #include <cuda_runtime_api.h> #include "chainer_trt/chainer_trt.hpp" #include "include/chainer_trt_impl.hpp" #include "include/cuda/cuda_kernels.hpp" #include "test_helper.hpp" using TestParams = std::tuple<int, std::str...
#include "../util/log.h" #include "xinput.h" #include "input.h" #include <Windows.h> #include <Xinput.h> #include <math.h> #include <climits> XInput::~XInput() { for (int i = 0; i < 4; i++) { Rumble(i, 0, 0); } } void XInput::RefreshDevices() { for (int i = 0; i < XUSER_MAX_COUNT; i++) { bool connected = _co...
//Includes--------------------------------------------------------------------- #include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include "Wire.h" #include <AzureIoTHub.h> #include <AzureIoTProtocol_MQTT.h> #include <AzureIoTUtility.h> #include "ApplicationConfiguration.h" #include "DeviceCredentials.h" #include...
#include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <omp.h> #include "mpi.h" #include "params.h" #include "mesh.h" #include "timer.hpp" #include "osu_multi_lat.h" #include "gslib.h" #include "ogs.hpp" #include "ogsKernels.hpp" #include "ogsInterface.h" static void gsStart(occa::mem...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include <mc_control/mc_global_controller.h> #include <franka/exception.h> #include <franka/robot.h> #include <franka/model.h> #include <iostream> namespace { template <class T, size_t N> std::ostream& operator<<(std::ostream& ostream, const std::array<T, N>& array) { ostream << "["; std::copy(array.cbegin(), ar...
/* Callisto Eurorack Module - Sample Playback Module * Copyright (c) 2014, <NAME>, <EMAIL> * Copyright (c) 2020 <NAME> * * Please support GHz Labs and open-source hardware by purchasing * products directly from GHz Labs, donating or becoming a Github Sponsor! * * MIT License * * Permission is hereby granted, ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during i...
#include "extdll.h" #include "util.h" #include "cbase.h" #include "Monsters.h" #include "Schedule.h" #include "CZombie.h" #include "entities/effects/CEnvExplosion.h" #include "CButano.h" LINK_ENTITY_TO_CLASS(monster_butano, CButano); // Sons butano const char *CButano::pAttackHitSounds[] = { "butano/gaas.wav", }; ...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2016. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
// from lib/THC/THCTensorMathTransformReduce.cu: #include "THClTensorMath.h" #include "THClGeneral.h" #include "THClBlas.h" #include "THClTensorCopy.h" //#include "THClTensorRandom.h" #include "THClApply.h" #include "THClReduce.h" #include "THClDeviceUtils.h" #include "THClKernels.h" #include <string> using namespace...
// // Created by tobias on 01.07.16. // #include "PropertyFactory.h" #include "toPPA/OnlyBlockingComm.h" #include "../optimizePPA/OptimizeMaster.h" #include "../optimizePPA/OptimizeSlave.h" #include "../optimizePPA/OptimizeOperations.h" #include "toPPA/CreateInitSection.h" //#include "OptimizeOperations.h" SCAM::...
/* Excited States software: KGS Contributors: See CONTRIBUTORS.txt Contact: <EMAIL> Copyright (C) 2009-2017 Stanford University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
/** * * Copyright (c) 2019-2020. The UMSE Authors. All Rights Reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * li...
#include <StdInc.h> #include "DeclsHelpers.h" #include "SprTypeTraits.h" #include "NodeCommonsCpp.h" #include "SparrowFrontendTypes.hpp" #include "Nest/Utils/PtrArray.h" #include "Mods.h" using namespace SprFrontend; using namespace Nest; namespace { void checkNodeAllowed(Node* child, bool insideClass) { // Check...
// GOST #include "stdafx.h" gtFileSystemWin32::gtFileSystemWin32( void ): m_dirScanBegin( false ), hFind( nullptr ), m_firstCall( false ) { TCHAR szFileName[MAX_PATH]; GetModuleFileName( NULL, szFileName, MAX_PATH ); m_exePath.assign( (char16_t*)szFileName ); util::stringFlipSlash<gtString>( ...
#pragma once #include <Interface/Manager/DirectXManager.hpp> #include <Internal/Mesh/MeshRenderData.hpp> #include <Internal/Texture/SpriteRenderData.hpp> #include <map> #include <vector> #define MAX_NUMBER_OF_INSTANCES 100 struct SDL_Window; namespace DoremiEngine { namespace Graphic { struct GraphicMo...
/* file: esp32_flashlogs.cpp ----------------------------------------------------------------------------------------------- This is a module for the ESP32 Wifi microcontroller that efficiently implements non-volatile FLASH memory storage of event logs. The logs are circular: when the log becomes full, addi...
/** * TDTCP server/client application. * * <NAME> <<EMAIL>> */ #include "icmp.h" #include <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #include <chrono> #include <cstdlib> #...
// // Created by sebas on 1/9/19. // #include "Juego.h" #include "../servicios/Locator.h" #include "ReceptorCliente.h" #include <algorithm> #include <SDL_image.h> #include <SDL_ttf.h> #include <string> #include "interpretes/InterpreteAutenticadorCli.h" #include "entradas/EntradaAutenticador.h" #include "modelos/MenuSe...
/* ** Copyright (C) 1998-2006 <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...
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2020, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the a...
// STL #include <map> #include <string> #include <fstream> // Internal #include "Ezm.hpp" #include "MeshImport.h" // 3rdParty #include "3rdParty/pugi_xml/pugixml.hpp" #include "3rdParty/pugi_xml/pugiconfig.hpp" NVSHARE::MeshSystemContainer *msc; NVSHARE::MeshImport *meshImportLibrary; std::string trim(const std::stri...
/*----------------------------------------------------------------------------- / / /----------------------------------------------------------------------------*/ #include <stdint.h> #include <stdio.h> #include "DebugPrintf.h" #include "OpenCV_util.h" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/hi...
#include <Algorithm/Algorithm.h> #include <Algorithm/Numeric.h> #include <Container/Vector.h> #include <Container/List.h> #include <iostream> #include <random> using MSTD::Vector; using MSTD::List; using std::cout; using std::endl; using std::default_random_engine; using std::uniform_int_distribution; template<typena...
#include "hardware/nand.h" #include "common/logger.h" #include "physicalmemory.h" #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> #include <cstring> void NANDBank::prepare(PhysicalMemory *physmem, uint8_t *slc, uint8_t *slccmpt) { this->physmem = physmem; this->slc = slc; this->slccmpt = slccmpt;...
//------------------------------------ // (c) Reliable Software, 2003 - 2008 //------------------------------------ #include "precompiled.h" #include "Model.h" #include "AckBox.h" #include "MailboxHelper.h" #include "FileList.h" #include "FileTrans.h" #include "ScriptHeader.h" #include "ScriptCommandList.h" #include ...
/* * Copyright (c) 2021-2021 Huawei Device 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...
#include <memory> #include <vector> #include <fcntl.h> #include "common/configuration.h" #include "common/constants.h" #include "common/offline_data_reader.h" #include "common/service_utils.h" #include "common/types.h" #include "connection/broker.h" #include "module/consensus.h" #include "module/forwarder.h" #include ...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
//#define DEBUG #include <time.h> #include <malloc.h> #include <string.h> #include <stdio.h> #include <android/log.h> #include <gif_lib.h> #include "Image.h" extern char *gLoadBuffer; extern long gLoadFileSize; extern int gLoadError; static int gLoadOffset; extern BUFFMNG *gBuffMng; extern long gBuffNum;...
/*****************************************************************************\ LJZxStream.cpp : Implementation for the LJZxStream class Copyright (c) 1996 - 2015, HP Co. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
// wsn: program to illustrate use of Eigen library to fit a plane to a collection of points #include<ros/ros.h> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include <Eigen/Eigen> #include <Eigen/Dense> #include <Eigen/Geometry> #include <Eigen/Eigenvalues> using nam...
//Pathinding Algorithms by <NAME> //A Star and Dijkstra's algorithms //<EMAIL> || <EMAIL> //test #include "iostream" #include <algorithm> //algorithm #include <string> //string header #include "cmath" //math header #include <queue> //queue header...
#pragma once #include <pch.hpp> #include <vulkan/entities/Entity.hpp> #include <vulkan/scene/Scene.hpp> #include <entities/Bus.hpp> #include <logic/MissionHandler.hpp> #include <overlay/InGame.hpp> const float C_PASSENGER_ENTER_DISTANCE = 1.5f; const int C_MAX_BUS_STOP_PASSENGERS = 3; class cGameLogicHandler { priva...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#pragma clang diagnostic ignored "-Wdeprecated-declarations" #include <GL/glew.h> #ifdef __APPLE__ // Headers richiesti da OSX #include <GLUT/glut.h> #else // headers richiesti da Windows e linux #include <GL/glut.h> #endif // Librerie matematiche // Si usano i radianti (gli angoli in decimale sono deprecati) #de...
#include "ModulePhysics.h" #include "Application.h" #include "ModuleTextures.h" #include "ModuleInput.h" #include "ModuleRender.h" #include "ModuleParticles.h" #include "ModuleAudio.h" #include "ModuleCollisions.h" #include "ModuleFadeToBlack.h" #include "ModuleFonts.h" #include "SceneLevel1.h" #include "...