text
stringlengths
3.08k
12.5k
#include "setup_board.h" #include "serial_link.h" SerialLink::SerialLink() { } SerialLink::~SerialLink() { } void SerialLink::checksum( uint8_t id, uint8_t len_lo, uint8_t len_hi, uint8_t *buf, uint16_t buf_size, uint8_t *cksum0, uint8_t *cksum1 ) { uint8_t c...
/* -*- mode: C++; indent-tabs-mode: nil; -*- */ /** \file * \brief IO utility functions for Chaiscript. * * This file is part of the openBuildNet simulation framework * (OBN-Sim) developed at EPFL. * * \author <NAME> (<EMAIL>) */ #include <csvparser/csvparser.h> #include <Eigen/Dense> #include "nodechai.h" #in...
// Copyright 2010-2013 RethinkDB, all rights reserved. #include "serializer/log/static_header.hpp" #include <functional> #include <vector> #include "arch/arch.hpp" #include "arch/runtime/coroutines.hpp" #include "containers/scoped.hpp" #include "config/args.hpp" #include "logger.hpp" #include "utils.hpp" // The CURR...
// ----------------------------------------------------------------------------- // Copyright : (C) 2014 <NAME> // License : MIT (see the file LICENSE) // Maintainer : <NAME> <<EMAIL>> // Stability : experimental // // utils // ----------------------------------------------------------------------------- #include...
#include "sim/jobs/utils.hh" #include <gtest/gtest.h> using namespace sim::jobs; // NOLINT using std::string; // NOLINTNEXTLINE TEST(jobs, append_dumped_int) { string buff; append_dumped(buff, static_cast<uint32_t>(0x1ad35af6)); ASSERT_EQ(buff, "\x1a\xd3\x5a\xf6"); append_dumped(buff, static_cast<u...
#pragma once #include "../../JObject.hpp" class JByteArray; class JFloatArray; class JShortArray; namespace android::media { class AudioAttributes; } namespace android::media { class AudioDeviceInfo; } namespace android::media { class AudioFormat; } namespace android::media { class AudioPresentation; } namespace ...
// https://github.com/ethz-asl/libpointmatcher/blob/master/examples/icp.cpp // In order to work with pointmatcher library, you need to install first. // libpointmatcher is another point cloud processing tool like PCL. // for my opinion, It has great filter and documentation is awesome, but integratin with ROS is challa...
/* * Copyright (c) 2003-2021 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #include "Report.h" #include "Util.h...
#include <iostream> #include "dynsys.hpp" #include "wrappers.hpp" bool DuffDomain(const Vec& p) { // Check that the dimension is actually 3 return true; } Vec DuffFunction(const Vec& p) { Vec v(3); v[0] = 1.0; v[1] = p[2]; v[2] = p[1] - p[1]*p[1]*p[1]; return v; } int main() { // Vec...
// Copyright 2019 Google LLC & <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
#pragma once using Real = long double; using Point = complex<Real>; using Points = vector<Point>; constexpr Real EPS = 1e-8; // 問題によって変える! constexpr Real pi = 3.141592653589793238462643383279L; istream &operator>>(istream &is, Point &p) { Real a, b; is >> a >> b; p = Point(a, b); return is; } ostream &opera...
// $Id: dict.cpp 3677 2010-10-13 09:06:51Z bertoldi $ #include <iostream> #include "cmd.h" #include "util.h" #include "mfstream.h" #include "mempool.h" #include "dictionary.h" using namespace std; void print_help(int TypeFlag=0){ std::cerr << std::endl << "dict - extracts a dictionary" << std::endl; std::cerr <...
#include "3DSLoader.h" static int num_tex = -1; void LoadTexture(char* tex_filename, int& texID) { int i, j=0; FILE *l_file; unsigned char *l_texture; BITMAPFILEHEADER fileheader; BITMAPINFOHEADER infoheader; RGBTRIPLE rgb; num_tex++; if( (l_file = fopen(tex_filename, "rb"))==NULL...
#include <stdlib.h> #include <string> #include <unistd.h> #include "debug.h" #include "http.h" using std::to_string; void RequestPacket::init() { char* cur = data; // 初始化Header header = data; headerlen = strstr(cur, "\r\n\r\n") - header; // 初始化内容 content = header + headerlen + 4; co...
#include <iostream> #include <string> #include "expression/Expression.h" #include "equation/Equation.h" #define string std::string #define cout std::cout #define cin std::cin #define endl std::endl // TODO /* Write function that translates conventional mathematical notation into expressions that this librar...
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) #define WINDOWS_LEAN_AND_MEAN #define NOMINMAX #include <windows.h> #pragma warning(disable : 4819) #endif #include <Exceptions.h> #include <ImageIO.h> #include <ImagesCPU.h> #include <ImagesNPP.h> #include <string.h> #include <fstream> #inclu...
// Copyright (c) 2020 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "phylanx/plugins/algorithms/lda_trainer.hpp" #include <cstdint> ///////////////////////////////////////////////////////...
#include "source.h" #include <lak/main.cpp> //https://gist.github.com/ocornut/7e9b3ec566a333d725d4 void draw(lak::loopData_t* loop_data) { assert(loop_data != nullptr && loop_data->userData != nullptr); lak::loopData_t &ld = *loop_data; userData_t &ud = *ld.userData; glViewport(0, 0, ld.screen.w, ld....
#include "play_set.h" #include "play_game.h" #include "player_random.h" #include "player_simple.h" #include "player_mcts.h" #include "player_ui.h" #include "external_source_ui.h" #include "printing.h" #include "util.h" #include "rng.h" #include <math.h> #include <iostream> template <typename T> std::pair<double, doubl...
#include "imgui.h" #include "imgui_sdl_common.h" #include <SDL.h> #ifdef _WIN32 #include <SDL_syswm.h> #endif #include <algorithm> #undef max #undef min namespace { const char* _GetClipboardText() { return SDL_GetClipboardText(); } void _SetClipboardText(const char* text) { SDL_SetClipboardText(text); } st...
//////////////////////////////////////////////////////////////////////////// // Created : 06.05.2010 // Author : <NAME> // Copyright (C) GSC Game World - 2010 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include "solid_visual_exporter.h" #include "solid_visua...
/**************************************************************************** ** ** 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 "Graphics.h" f32 Graphics::frameTime = 0; void* Graphics::xfb[2] = {NULL, NULL}; u32 Graphics::fbi = 0; GXRModeObj* Graphics::rmode = NULL; bool Graphics::first_frame = FALSE; void* Graphics::gpfifo = NULL; f32 Graphics::aspectRatio; Mtx44 Graphics::orthographicMatrix; void Graphics::Init() { VIDEO_Init();...
/******************************************************************************\ * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik * Copyright (c) 2001 * * Author(s): * <NAME> * * Description: * MSC audio/data demultiplexer * * * - (6.2.3.1) Multiplex frames (DRM standard): * The multipl...
/* * Copyright (c) 2017-2021, Alibaba Group Holding Limited * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * This file is part of https://github.com/martinruenz/maskfusion * * 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 License, or * (at your option) any later versi...
// $Id: Foo_B_ClientEngine.cpp 91731 2010-09-13 09:33:32Z johnnyw $ #include "Foo_B_ClientEngine.h" #include "Callback_i.h" #include "Foo_B_Statistics.h" #include "TestAppExceptionC.h" #include "AppHelper.h" #include "ace/Log_Msg.h" const char* ONEWAY_ARG_TEST_STR = "TEST"; Foo_B_ClientEngine::Foo_B_ClientEngine(Foo_...
// // Created by eele on 9-6-2015. // #include "ServerHandler.h" void ServerHandler::start() { retry: std::cout << "Web Socket trying to connect..." << std::endl; try{ updateThread = std::thread(&ServerHandler::sendValues, this, std::ref(server)); server.run(9005); } catch(const std::...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
/********************************************************************************** * DIGRAPHGEN * * Generator losowych grafów SKIEROWANYCH. * Tworzony jest graf o zadanej liczbie 'V' wierzchołków i 'E' krawędzi. * Stopnie wejściowe i wyjściowe wszystkich wierzchołków maja wartości ...
#include "stdafx.h" #include "TableData.h" #include <atlpath.h> #include <Utils/DirectXErrors/DirectXErrors.h> #include <EASTL/sort.h> void TableData::clear() { measures.clear(); mapColumns.RemoveAll(); mapEffects.RemoveAll(); names.clear(); } TableData::TableData() : mapEffects( 41, 0.75f, 0.25f, 1.25f, 64 ), ...
/* * 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 ...
#include <Wire.h> #include <LiquidCrystal_I2C.h> #include <Time.h> #include <TimeLib.h> #include <Wifi.h> #include <NTPClient.h> #include <WiFiUdp.h> #include <consts.h> int start_hour = 8; int start_minute = 30; int start_second = 0; int stop_hour = 23; int stop_minute = 59; int stop_second = 59; int total_seconds...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
#include "ServosLeg.hpp" #include <ESP32Servo.h> // https://aprendiendoarduino.wordpress.com/tag/servomotor/ ServosLeg::ServosLeg(){ } bool ServosLeg::attachPins(const int pinLeft, const int pinRight, Adafruit_PWMServoDriver* servoI2C){ bool allOk = true; _isI2CServo = (servoI2C != nullptr); ...
#include <bits/stdc++.h> using namespace std; //Filename: Leetcode0440.cpp // //Author: dezhonger - <EMAIL> //Create: 2021-05-06 00:49:12 //Last modified: 2021-05-06 01:16:36 #define rep(i, a, b) for(int i = (a); i < (b); i++) #define reps(i, a, b) for(int i = (a); i < (b); i++) #define pb push_back #define...
/* Copyright 2005-2007 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) */ /*************************************************************************************************/ #include <adobe/config.hpp>...
#include "pch.h" #include "Fireball.h" #include "AbilityManager.h" Fireball::Fireball(UINT id, std::string tag, std::string name, Ability::AbilityDescription* desc) : Ability(id, tag, name, desc) { // fireball is a multistage spell, it effectively is two seperate abilities defined in one class. // but inste...
/** @file @author <NAME> Generate ULD threshold histograms for each crystal face from best-range-first LPA data. Histograms are in non pedestal subtracted adc units. Histograms are filled from first readout only */ // LOCAL INCLUDES #include "src/lib/Util/CfgMgr.h" #include "src/lib/Util/RootFileAnaly...
#include "Persona.h" #include "Estudiante.h" #include "Empresa.h" #include "Pasante.h" #include "Empleado.h" #include<iostream> using namespace std; void cmicro();//crear micro void empresa(); void estudiante(); void menuempresa(int,int,bool); void registro(); //para probar sin tener que hacerlo 1 por 1... de nada vo...
// Copyright (c) 2012 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 <stdio.h> #include <stdlib.h> #include <deque> #include <ostream> #include "base/at_exit.h" #include "base/bind.h" #include "base/command_li...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "bdd.h" int N; // Number of cyclers bdd normvar; // Current state variables bdd primvar; // Next state variables bddPair *renamepair; // Variable pairs for renaming /* Build a BDD expressing that all...
// Copyright 2021 SAMURAI TEAM. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #pragma once #include <samurai/samurai.hpp> #include <samurai/mr/mesh.hpp> #include "criteria.hpp" template <class Config> double max_detail(samurai::Field<Conf...
/* * Copyright (c) 1999-2010 <NAME> (<EMAIL>) * * This source code is free software; you can redistribute it * and/or modify it in source code form 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) ...
#include "CalibTracker/SiStripLorentzAngle/interface/LA_Filler_Fitter.h" #include "CalibTracker/SiStripCommon/interface/TTREE_FOREACH_ENTRY.hh" #include "DataFormats/SiStripDetId/interface/StripSubdetector.h" #include <cmath> #include <boost/lexical_cast.hpp> void LA_Filler_Fitter::fill(TTree* tree, Book& book) const...
/// @file calimport.cc /// /// @copyright (c) 2011 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// <EMAIL> /// /// This file is part of the ASKAP software distribution. /// /// The ASKAP softwar...
/* * swap_broker.cpp * * Created on: 4. 8. 2020 * Author: ondra */ #include "swap_broker.h" #include <cmath> #include "sgn.h" SwapBroker::SwapBroker(PStockApi target):target(target) { // TODO Auto-generated constructor stub } std::vector<std::string> SwapBroker::getAllPairs() { return target->getAll...
#include "stdafx.h" #include "Model.h" #include "AssImp.h" #include "Pipeline.h" #include "WinUtil.h" #include "System.h" #include "EventData.h" #include "Camera.h" void Model::LoadToGpu(VulkanSystem& system, const std::string& modelFilename, const std::vector<Attribs::Attrib>& attribs) { attribsUsed = attribs; if ...
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #include "utility.h" #include <openenclave/attestation/attester.h> #include <openenclave/attestation/sgx/evidence.h> #include <openenclave/attestation/sgx/report.h> #include <stdio.h> #include <string.h> // SGX Remote Attestation UUID....
#include"../../include/platform.h" #include <microhttpd.h> #include<cstring> #define resource_id_size 16 using namespace intercepts; void test_func(host_task* t){ std::cerr<<"called into interceptor\n"; t->success = 1; t->ret_len = 0; } //<HTTP TEMPORARY SOLUTION> //I WANT TO REPLACE THIS WITH A NIHILO GENERIC C...
/* Copyright (c) 2013, 2015, 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 as published by the Free Software Foundation; version 2 of the License. This program i...
#include "Utils.h" #include <fstream> #include <array> #include <glm/glm.hpp> #ifndef _UNICODE #define _UNICODE #include <IL/il.h> #undef _UNICODE #endif #pragma comment(lib, "DevIL.lib") namespace { const auto VERTEX_RESERVE_COUNT = 1024u; } void Utils::LoadObjFile(const std::string& filepath, std::vector<GLflo...
// PylonSample_.cpp /* Note: Before getting started, Basler recommends reading the Programmer's Guide topic in the pylon C++ API documentation that gets installed with pylon. If you are upgrading to a higher major version of pylon, Basler also strongly recommends reading the Migration topic in the pylon C++ API documen...
#include<iostream> #include<bits/stdc++.h> using namespace std; namespace skylarkgit{ #define ST_left(x) ((x)<<1) #define ST_right(x) (((x)<<1)|1) #define ST_leftRangeLeft(x,y) (x) #define ST_leftRangeRight(x,y) (x+((y-x)>>1)) #define ST_rightRangeLeft(x,y) (x+((y-x)>>1)+1) #define ST_rightRangeRight(x,y) (y) ...
#include <Arduino.h> #include "NanoBLEFlashPrefs.h" // See https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_fstorage.html #define FILE_ID 0x0001 /* The ID of the file to write the records into. */ #define RECORD_KEY 0x1111 /* A key for the preferences record. */ /* Ar...
#include <iostream> #include <fstream> #include <future> #include <string> #include <thread> #include <vector> #include <map> typedef std::pair<int,int> point; typedef std::vector<std::vector<int> > intVec2D; typedef std::vector<std::vector<std::vector<int> > > intVec3D; intVec2D readFile(const char path[]) { std...
/* Copyright (c) 2017, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* * * Author: <NAME> <<EMAIL>>, (C) 2005-2006 * * 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 is dis...
/* * Copyright (c) 2019 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "delfem2/geo_plane.h" #include <cmath> #include <stack> #ifndef M_PI # define M_PI 3.14159265358979323846 #endif // =========================...
// SPDX-License-Identifier: BSD-2-Clause /* Copyright (C) 2020 - 2021 Intel Corporation. */ #include <math.h> #include <memkind.h> #include <numa.h> #include <numaif.h> #include <string> #include <unistd.h> #include "TestPrereq.hpp" #include "proc_stat.h" #include "sys/sysinfo.h" #include "sys/types.h" #include "com...
#include "log.h" #include <QString> #include <QMutex> #include <QFile> #include <QTextStream> #include <QDate> #include <QDir> #include <QThread> #include <QDebug> //#ifdef Q_OS_WIN //#else #include <iostream> #include <QTextCodec> #include <QDir> #include <src/base/utils/ThreadWroker.h> #include <base/utils/AppPath.h...
#include "stdafx.h" #include "PackageOueue.h" #include "BufferManager.h" #pragma push_macro("new") #undef new _IMPLEMENT_FREELIST(BaseBuffer); #pragma pop_macro("new") BaseBuffer::BaseBuffer(BYTE* pBuf, int size) { m_nSize = size; //m_pBuf = new BYTE[m_nSize]; m_pBuf = (BYTE*) GetMemMgr()->Alloc(size);...
//----------------------------------*-C++-*-----------------------------------// /** * @file test_UserBasis.cc * @brief Test of UserBasis class * @note Copyright (C) 2013 <NAME> */ //----------------------------------------------------------------------------// // LIST OF TEST FUNCTIONS #define TEST_LIST ...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include <libp2p/protocol/kademlia/impl/peer_routing_table_impl.hpp> #include <numeric> OUTCOME_CPP_DEFINE_CATEGORY(libp2p::protocol::kademlia, PeerRoutingTableImpl::Error, e) { using E ...
#include "Context.h" #include <iostream> #include <stdexcept> using namespace Dyld; Context::Context(fs::path sharedCachePath) { // Open files std::optional<fs::path> cachePath; if (!fs::exists(sharedCachePath)) { throw std::invalid_argument("Shared cache path does not exist."); } else if (!f...
// SPDX-License-Identifier: Apache-2.0 // // Copyright 2000-2014 <NAME> // Copyright 2004-2013 Gigablast, Inc. // Copyright 2013 Web Research Properties, LLC // // 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...
#include "ide.h" struct Custom : public WithCustomLayout<TopWindow> { LineEdit output; LineEdit command; DropList package; EditString when; EditString extension; void InsertCmd(String s); void InsertOut(String s); void DoMenu(Button& b, Callback1<String> cb, bool cmd); void OutMenu(); void CmdMenu();...
#include "HookService.h" #include <iostream> BYTE* HookCreator::getBufferWithOriginFun(LPVOID pOriginFun) { LPVOID pNewFun = m_mapOriginFunToNewFun[pOriginFun]; return m_mapNewFunToOriginFunPrologBuf[pNewFun].data(); } bool HookCreator::restoreOriginFun(LPVOID pOriginFun, BYTE jmpBuffer[16]) { //set read write perm...
#include "StGammaEEmcLeakage.h" ClassImp(StGammaEEmcLeakage); #include "StEEmcUtil/EEmcGeom/EEmcGeomSimple.h" #include "StGammaTower.h" #include <TVector2.h> #include <TFile.h> #include <TH2F.h> #include <TMarker.h> #include <iostream> #include <cassert> StGammaEEmcLeakage *StGammaEEmcLeakage::sInstance = 0; StGam...
#include <iostream> #include <fstream> #include <cstdio> #include <cstring> #include <cassert> #include "sudoku.h" using namespace std; /* You are pre-supplied with the functions below. Add your own function definitions to the end of this file. */ /* pre-supplied function to load a Sudoku board from a file */ vo...
/* Copyright (c) 2011-2013, <NAME>. All rights reserved. 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 ...
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; static_assert(sizeof(int) == 4 && sizeof(long) == 8); template <typename T, int NDIMS> struct tensor { static_assert(NDIMS >= 0, "NDIMS must be nonnegative"); protected: array<i...
/* * Created by prabushitha on 5/6/18. * Copyright [2018] <ScoreLab Organization> */ #include <sstream> #include <vector> #include <cryptopp/keccak.h> #include <cstdio> constexpr char hexmap[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; // Returns ...
#include "./TestGame.h" #include "./Engine/Components/TransformComponent.h" #include "./Engine/Components/SpriteComponent.h" #include "./Engine/Components/SpriteAnimationComponent.h" #include "./Engine/Components/BoxColliderComponent.h" #include "./Engine/Components/TextComponent.h" #include "./Engine/Components/Proje...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class TrueSpace { public: long long calculateSpace(vector <int> sizes, int clusterSize) { long long sol = 0; for (int ...
#include "pythonhighlighter.h" ///// // Syntax styles that can be shared by all languages typedef QMap<QString, QTextCharFormat> FormatMap; //static FormatMap STYLES; static const FormatMap STYLES = { { "keyword", PythonHighlighter::format("blue") }, { "operator", PythonHighlighter::format("red") }, { "br...
/* Copyright (C) 2005-2011, <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: - Redistributions of source code must retain the above copyright notice, this list of co...
#include "stdafx.h" #include "SubdivMesh.h" // -------------------------------------------------------------------------- void CSubdivMesh::subdivide() { CSubdivMesh dst; int nverts = mVerts.size(); int nhedges = mHEdges.size(); int nfaces = mFaces.size(); int i; int resNumVerts = nverts + nhe...
/* * Copyright 2016 Gigatribe * * 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...
/* * See header file for a description of this class. * * $Date: 2008/09/29 13:12:53 $ * $Revision: 1.2 $ * \author <NAME> INFN Padova * */ //----------------------- // This Class' Header -- //----------------------- #include "CondTools/DT/test/validate/DTStatusFlagValidateHandler.h" //--------------------...
/**************************************************************************\ * 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...
// $Header: /nfs/slac/g/glast/ground/cvs/FluxSvc/test_FluxSvc/src/FluxTestAlg.cxx,v 1.1.1.1 2006/03/04 22:25:35 burnett Exp $ // Include files #include "FluxSvc/IFluxSvc.h" #include "FluxSvc/IFlux.h" #include "FluxSvc/ISpectrumFactory.h" // Event for creating the McEvent stuff //#include "Event/TopLevel/Event.h" #inc...
// Chemfiles, a modern library for chemistry file reading and writing // Copyright (C) <NAME> and contributors -- BSD license #include <cassert> #include <cstdint> #include <cstdio> #include <string> #include <vector> #include <limits> #include <lzma.h> #include "chemfiles/File.hpp" #include "chemfiles/error_fmt.hpp...
//Copyright(c) 2015 <NAME> //http://martacamps.weebly.com/ // //This software is provided 'as-is', without any express or implied //warranty.In no event will the authors be held liable for any damages //arising from the use of this software. // //Permission is granted to anyone to use this software for any purpose, //i...
#include <emscripten/bind.h> #include <emscripten/val.h> #include <stdlib.h> #include <inttypes.h> #include <stdio.h> #include <setjmp.h> #include <string.h> #include "jconfig.h" #include "jpeglib.h" #include "cdjpeg.h" using namespace emscripten; struct MozJPEGOptions { int quality; bool baseline; bool arithme...
#include "mbed.h" #include "SpwfSAInterface.h" #include "BlockExecuter.h" #include "MQTTmbed.h" #include "MQTTClientMbedOs.h" WiFiInterface *wifi; const char *sec2str(nsapi_security_t sec) { switch (sec) { case NSAPI_SECURITY_NONE: return "None"; case NSAPI_SECURITY_WEP: re...
/************************************************************************/ /* */ /* DCout.cpp */ /* */ /* DC output func...
// (C) 2017-2021 by <NAME>, released under Apache License v2.0 #include "config.h" #include <errno.h> #include <signal.h> #include <cstring> #include <unistd.h> #include "target_extpipe.h" #include "error.h" #include "exec.h" #include "log.h" #include "picio.h" #include "utils.h" #include "filter.h" #include "source.h...
#include <nekrs.hpp> #include <nekInterfaceAdapter.hpp> #include "RANSktau.hpp" // private members namespace { static ins_t *ins; int kFieldIndex; dfloat rho; dfloat mueLam; static occa::memory o_mut; static occa::memory o_k; static occa::memory o_tau; static occa::kernel computeKernel; static ...
// Copyright 2020 The Fuchsia 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 "tests/common/path_sink.h" #include <math.h> #include <string.h> #include "tests/common/arc_parameters.h" // // // void PathSink::addArcTo(dou...
// Copyright (c) Facebook, Inc. and its affiliates. // // 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 applicabl...
/* ************************************************************************** */ /* */ /* */ /* Skeleton.cpp oooooo oooooo ...
#include<bits/stdc++.h> using namespace std; const int N = 3e5 + 9, mod = 1e9 + 97; template <const int32_t MOD> struct modint { int32_t value; modint() = default; modint(int32_t value_) : value(value_) {} inline modint<MOD> operator + (modint<MOD> other) const { int32_t c = this->value + other.value;...
#include "dialogs/EditVisgroups.h" #include <QColorDialog> #include <QGridLayout> #include <QGroupBox> #include <QHBoxLayout> #include <QHeaderView> #include <QLabel> #include <QPushButton> using namespace ui; CEditVisgroups::CEditVisgroups( QWidget *pParent ) : QDialog( pParent ) { this->setWindowTitle( tr( "Edit...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth 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; e...
/*************************************************************************/ /* timer2.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "ros/ros.h" #include "bartolo.h" #include <iostream> using namespace cv; pcl::PointCloud<pcl::PointXYZRGB>::Ptr depth2PointCloud(const cv::Mat &depth_img, const cv::Mat &rgb_img, const Eigen::Matrix3f &camera_matrix, float min_depth = 0.01f, float ...
#define _CRT_SECURE_NO_WARNINGS #include <windows.h> #include <vector> #define STRUSE_IMPLEMENTATION #include "struse.h" void* load( const char* filename, size_t* size_ret ) { FILE* f = fopen( filename, "rb" ); if( f ) { fseek( f, 0, SEEK_END ); size_t size = ftell( f ); fseek( f, 0, SEEK_SET ); void* buf...
/* * Copyright 2014, Pythia authors (see AUTHORS file). * 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,...
#include "Pch.h" #include "Quest_Secret.h" #include "AIController.h" #include "Arena.h" #include "BaseObject.h" #include "Game.h" #include "GameFile.h" #include "GameGui.h" #include "GameMessages.h" #include "GroundItem.h" #include "Language.h" #include "Location.h" #include "OutsideLocation.h" #include "QuestManager....