text
stringlengths
3.08k
22k
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTexture.h" #include "GrContext.h" #include "GrDrawTargetCaps.h" #include "GrGpu.h" #include "GrRenderTarget.h" #include "GrResourceCache.h" GrTexture::~GrTextu...
/* * Copyright (c) 2006-2007 <NAME> http://www.gphysics.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...
#include <math.h> #include <Arduino.h> #include <Wire.h> #include "IMU.h" //i2c读写函数说明: //读函数 //I2C_Read_NBytes(uint8_t driver_Addr, uint8_t start_Addr, uint8_t number_Bytes, uint8_t *read_Buffer) ///** // * @brief I2C读函数,可以读取单个或者多个连续的字节。 // * @param driver_Addr(I2c器件的Slave地址,注意实际I2C驱动中7位地址和8位地址的区分) // * @param ...
#include <iostream> #include <opencv2/opencv.hpp> #include <opencv2/imgproc/imgproc.hpp> #define RADIUS 20 using namespace cv; using namespace std; // troca os quadrantes da imagem da DFT void deslocaDFT(Mat& image ){ Mat tmp, A, B, C, D; // se a imagem tiver tamanho impar, recorta a regiao para // evitar có...
// Scintilla source code edit control /** @file LexPOV.cxx ** Lexer for POV-Ray SDL (Persistance of Vision Raytracer, Scene Description Language). ** Written by <NAME> but this is mostly a derivative of LexCPP... **/ // Copyright 1998-2005 by <NAME> <<EMAIL>> // The License.txt file describes the conditions un...
/* * Copyright 2019 Xilinx, 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...
#include "staggered_dslash_test_utils.h" using namespace quda; StaggeredDslashTestWrapper dslash_test_wrapper; bool gauge_loaded = false; const char *prec_str[] = {"quarter", "half", "single", "double"}; const char *recon_str[] = {"r18", "r13", "r9"}; void display_test_info(int precision, QudaReconstructType link_...
// 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 "chrome/browser/bookmarks/bookmark_utils.h" #include <utility> #include "base/basictypes.h" #include "base/files/file_path.h" #include "bas...
#include "Graphics/graph.h" #include <cstring> #include <cstdio> #include <cstdlib> #include <ctime> // Resolution of Window int const WWIDTH = 800; int const WHEIGHT = 600; // Resolution of game-field int const WIDTH = WWIDTH - WWIDTH / 3 + WWIDTH / 10; int const HEIGHT = WHEIGHT; // Size of square i...
/** @file @section license License 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, Versi...
/**************************************************************************** * * Copyright (c) 2012-2019 PX4 Development Team. 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. Red...
#include "ofApp.h" #ifdef TARGET_WIN32 #include <regex> #include <sapi.h> #include <atlcomcli.h> #include <iostream> #include <cstring> #include <string> #include <algorithm> #include <cctype> #endif /* TARGET_WIN32 */ #include "tvppSpeech.h" #include "tvppLap.h" #include "tvppPilot.h" #include "tvppChannel.h" ext...
/* PCA9685 driver code is placed under the BSD license. Written by <NAME> (<EMAIL>) Copyright (c) 2014, Emlid Limited, www.emlid.com 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 ...
#include "CTriangle.h" int CTriangle::TriCnt = 0; CTriangle::CTriangle(Point P1, Point P2, Point P3, GfxInfo FigureGfxInfo) :CFigure(FigureGfxInfo) { Corner1 = P1; Corner2 = P2; Corner3 = P3; FigGfxInfo.Resize_Factor = 1; TriCnt++; } CTriangle::CTriangle(){} void CTriangle::Draw(Output *pOut) const { //Call Out...
#include <boost/test/auto_unit_test.hpp> #include <test/testsuite.hh> #include <typelib/utilmm/configset.hh> #include <typelib/pluginmanager.hh> #include <typelib/importer.hh> #include <typelib/typemodel.hh> #include <typelib/registry.hh> #include <typelib/value.hh> #include <typelib/value_ops.hh> #include <test/test...
/* * Copyright (c) 2017 <NAME> https://github.com/louis-langholtz/Box2D * * 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...
/* VTC Blockindexer - A utility to build additional indexes to the Vertcoin blockchain by scanning and indexing the blockfiles downloaded by Vertcoin Core. Copyright (C) 2017 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Pu...
/* * (C) Crown Copyright 2021 Met Office * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #include <algorithm> #include <numeric> #include "atlas/array/MakeView.h" #include "atlas/field.h" #include "atlas/fie...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...
// Copyright 2011 the V8 project 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: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
#include <pybind11/embed.h> #include "opengl.h" #include "default_term_window.h" #include "term_ui.h" #include "term_buffer.h" #include "term_context.h" #include "term_network.h" #include "color_theme.h" #include "task.h" #include "char_width.h" #include <iostream> #include <iterator> #include <functional> #includ...
/* * Copyright (c) 2019-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 above copyright notice, this * list ...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and <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 obta...
// // RenderSystem.cpp // TinyEngine // // Created by <NAME> on 11/4/19. // Copyright © 2019 0xfede. All rights reserved. // #include "RenderSystem.hpp" #include "../World.hpp" #include "../../Core/Utils.hpp" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <stdio.h> #include <regex> #include <fstream> #incl...
//===- PdbYAML.cpp -------------------------------------------- *- C++ --*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <cmath> #include <climits> #include <iostream> #include <sstream> #include <stdexcept> #include <stdlib.h> #include "GnuplotLogger.h" void GnuplotLogger::Init(int saveDigits, int iSize, int jSize, int kSize, std::string filename, int kmin = 0, int kmax = 0, int numRowPlots = 2, int numColumnPlots = ...
//===--- ParseGeneric.cpp - Swift Language Parser for Generics ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//===- Predicate.cpp - Predicate class ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * * Copyright 2019 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
#include "Tesselator.h" #include <algorithm> namespace { // Вершина с трёхмерной позицией, нормалью и 2D координатами текстуры. struct SVertexP3NT2 { glm::vec3 position; glm::vec2 texCoord; glm::vec3 normal; }; using SGeometyDataP3NT2 = SGeometryData<SVertexP3NT2, uint32_t>; struct CSphereTesselator : S...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/* * SPDX-FileCopyrightText: 2015 <NAME> * * SPDX-License-Identifier: Apache-2.0 */ #include <gmock/gmock-matchers.h> #include <gtest/gtest.h> #include <pistache/http.h> #include <pistache/mime.h> #include <locale> using namespace Pistache::Http; using namespace Pistache::Http::Mime; using testing::ThrowsMessag...
#include <string> #include <vector> #include <map> #include "OptionParser.h" #include "Utility.h" #include <sstream> #include <fstream> #include <iomanip> using namespace std; OptionParser::OptionParser() : helpRequested( false ) { addOption("configFile", OPT_STRING, "", "specify configuration fil...
/*---------------------------------------------------------------------- This is a generic main that can be used with any plugin and a PSet script. See notes in EventProcessor.cpp for details about it. ----------------------------------------------------------------------*/ #include "FWCore/Framework/interface/Event...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include <array> #include <cmath> #include <vector> #include "gtest/gtest.h" #include "sysid/analysis/AnalysisManager.h...
/* // Sample demonstrating interoperability of OpenCV UMat with Direct X surface // At first, the data obtained from video file or camera and // placed onto Direct X surface, // following mapping of this Direct X surface to OpenCV UMat and call cv::Blur // function. The result is mapped back to Direct X surface and ren...
//===--- JSONAggregation.cpp - Index data aggregation in JSON format ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <Arduino.h> #include <ArduinoJson.h> #include <PubSubClient.h> #include <WiFi.h> #include <WiFiMulti.h> #include <WiFiClient.h> #include <BH1750.h> #include <DHT.h> #include <Adafruit_BME280.h> #include <esp32fota.h> #include "device_id.h" #include "mqtt.h" #define VERSION 0 #define DEBUG 0 const String MOD...
#include "portalio.h" //Port usleep to windows #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> int Sleep(int sleepMs) { return usleep(sleepMs * 1000); } #endif /* Number of possible configurations: 1 Device Class: 0 VendorID: 1430 ProductID: 0150 Total interface number: 1 ||| Number of alternate ...
/* * Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/> * By Asardial * * Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/> * * 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...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ngraph/op/avg_pool.hpp" #include "itt.hpp" #include "ngraph/attribute_visitor.hpp" #include "ngraph/graph_util.hpp" #include "ngraph/validation_util.hpp" using namespace std; using namespace ngraph; // *** AvgPool OP SE...
#include <Arduino.h> #include <TFT_eSPI.h> #include "Free_Fonts.h" #define SERIAL_DEBUG_ENABLED 1 #define COUNTER_STATE_RESET 0 #define COUNTER_STATE_DISABLED 1 #define COUNTER_STATE_START 2 #define COUNTER_STATE_COUNTING 3 #define COUNTER_STATE_STOP 4 #define DISPLAY_CLEAR_TRUE true #define DISPLAY_CLEAR_FALSE fal...
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
/* -*- coding: utf-8-unix -*- * * File: src/rastersymbolmanager.cpp * * Copyright (C) 2021 <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 License, or *...
#include <string> #include <stdexcept> #include <vector> #include <cassert> #include <cstdio> #include <cstring> #include <cstdlib> #include <sys/stat.h> #include <sys/types.h> using namespace std; typedef unsigned char byte; // 8 bit typedef unsigned short word; // 16 bit static const unsigned int TRACK_LENGTH = ...
// ********************************************************************** // @@@ START COPYRIGHT @@@ // // 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....
// Copyright 2016 <NAME>) // SPDX-License-Identifier: Apache-2.0 /* * Yocto3DModule.cpp * * Created on: 16 feb. 2016 * Author: <NAME> */ #include <exception> #include <iostream> #include <cmath> #include <string> #include "int/IMU/Yocto3DModule.hpp" #include "tf/LinearMath/Vector3.h" #include "yocto_acce...
/* Copyright (c) 2019 - <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 disclai...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkThreadedBMPDevice.h" #include "SkPath.h" #include "SkTaskGroup.h" #include "SkVertices.h" #include <mutex> #include <vector> constexpr int MAX_CACHE_LINE = 64; ...
#include "blocks.h" static const unsigned int rom[64][2] = { { 0x361, 0x74688127 }, { 0x161, 0xd4688127 }, { 0x9a1, 0xc4688127 }, { 0x0e0, 0xf0a050a4 }, { 0x0fb, 0x610316e8 }, { 0x161, 0x64c9c1a6 }, { 0x7a1, 0x34c9c1a6 }, { 0x463, 0xf3cb546c }, { 0x161, 0xc4e940a3 }, { 0xb61, 0x806191a6 }, { 0xa6...
/* * Copyright (c) 2016, 2018, 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...
// //////////////////////////////////////////////////////// // # Title // Golomb's self-describing sequence // // # URL // https://projecteuler.net/problem=341 // http://euler.stephan-brumme.com/341/ // // # Problem // The Golomb's self-describing sequence `G(n)` is the only nondecreasing sequence of natural numbers su...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. 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. Redistri...
#include "Globals.h" #include "GameObject.h" #include "ComponentTransform.h" #include "QuadTree.h" #include "mmgr/mmgr.h" // --- All child indexes --- #define NET 0 #define SET 1 #define SWT 2 #define NWT 3 #define NEB 4 #define SEB 5 #define SWB 6 #define NWB 7 // --- Max items before subdividing --- #define QUADTR...
#include "CreateProjectFileForm.h" #include "ui_CreateProjectFileForm.h" #include <QFile> #include <QFileInfo> #include <QDir> #include <QDateTime> #define CUR_DATETIME QDateTime::currentDateTime ().toString ("yyyy-MM-dd hh:mm:ss") #include <QDebug> CreateProjectFileForm::CreateProjectFileForm(QWidget *parent) ...
/** * \file * \brief Laser Scanner Entry Point * * Copyright (C) 2020, 2019,2018,2017, Ing.-Buero Dr. <NAME>, Hildesheim * Copyright (C) 2020, 2019,2018,2017, SICK AG, Waldkirch * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
// // 8bitDetokeniser.cpp // Phantasma // // Created by <NAME> on 15/12/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // /* This has been implemented based on John Elliott's 2001 reverse engineering of Driller; see http://www.seasip.demon.co.uk/ZX/Driller/ */ #include "8bitDetokeniser.h" #include <ss...
#include "gluon/widgets/widget.h" #include <beard/containers/hash_map.h> #include <beard/misc/hash.h> #include <filesystem> #include <loguru.hpp> #include "gluon/widgets/hashes.h" namespace utils { glm::vec4 ExtractColor(const beard::array<Token>& tokens) { glm::vec4 color = {}; if (!tokens.is_empty()) { T...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
// bdldfp_uint128.t.cpp -*-C++-*- #include <bdldfp_uint128.h> #include <bsls_assert.h> #include <bsls_asserttest.h> #include <bsls_platform.h> #include <bsl_cstdlib.h> // 'atoi' #include <bsl_iostream.h> using namespace BloombergLP; using namespace bsl; using namesp...
// Copyright (c) 2019 fortiss GmbH, <NAME>, <NAME>, <NAME>, <NAME> // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include <vector> #include "geometry.hpp" #include "modules/geometry/geometry.hpp" namespace py = pybind11; // using namespace ...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //============================================================================= #include "audio_pch.h" #include "tier0/platform.h" #include "MPAFile.h" // also includes vbrheader.h #include "tier0/dbg.h" #ifndef MAKEFOURCC...
/* ----------------------------------------------------------------------- * Copyright (c) 2003-2004 <NAME>, <EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restrict...
// =============================================================================== // NVIDIA PHYSX SDK TRAINING PROGRAMS // LESSON 503: CORE DUMP // // Written by <NAME>, 5-1-06 // =============================================================================== #inc...
/** * \file QryBrlyLegMNLocation.cpp * job handler for job QryBrlyLegMNLocation (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifdef BRLYCMBD #include <Brlycmbd.h> #else #include <Brlyd.h> #endif #in...
#include "Gamepad.h" #include <SFML/Graphics.hpp> #include <string> #include <fstream> #include <iostream> /// XInput #include "Windows.h" #include "Xinput.h" #pragma comment(lib,"XInput.lib") // include libraries #pragma comment(lib,"Xinput9_1_0.lib") // include libraries Gamepad::Gamepad(int number, bool XInput) :...
#include "col2im.h" #include <map> #include "dali/array/op/spatial_utils.h" #include "dali/array/jit/jit.h" #include "dali/array/jit/jit_utils.h" #include "dali/array/op/elementwise_operation.h" #include "dali/utils/make_message.h" namespace { inline int get_channel_dim(const std::vector<int>& image_shape, ...
#include <bits/stdc++.h> #include <chrono> #include "combo.h" using namespace std; using namespace std::chrono; #define pii pair<int, int> pii nil = {-1, -1}; struct Node{ int path_cost; // accumulated cost int color; // visited = 1, else 0 int score; // score generated by heuristic bool visited; ...
// This is a simple tool to convert a series of jpeg files // to an Ogg Theora video. // Usage: // jpeg2theora framesPerSec outputfile inputpattern // Example: // jpeg2theora 25 movie.ogv pic%04d.jpg //~ Copyright (c) 2020 <NAME> //~ Permission is hereby granted, free of charge, to any person obtaining a copy //~...
/*~--------------------------------------------------------------------------~* * @@@@@@@@ @@ @@@@@@ @@@@@@@@ @@ * /@@///// /@@ @@////@@ @@////// /@@ * /@@ /@@ @@@@@ @@ // /@@ /@@ * /@@@@@@@ /@@ @@///@@/@@ /@@@@@@@@@/@@ * /@@//// /@@/@@@@@@@/@@ ////////@@/@@ ...
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/keygen_handler.h" #include <Security/SecAsn1Coder.h> #include <Security/SecAsn1Templates.h> #include <Security/Security.h> #inclu...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> /* 저수준(Low level) I/O를 위해 사용 */ #include <errno.h> #include <unistd.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <linux/fb.h> #include <linux/videodev2.h> /* Video4Linux2를 위한 헤더 파일 */ #define VIDEODEV "/dev/video0" /* Pi C...
// Copyright 2011 The Kyua 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: // // * Redistributions of source code must retain the above copyright // notice, this list of conditio...
// MIT License // // Copyright (c) 2016 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mo...
/* * 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 ...
/*{ Copyright © 2016-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH <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 ...
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- /* * Copyright 2010-2011 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
/* * Copyright 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
//============================================================================= // This program is a modification of // $(find hector_quadrotor_teleop)/src/quadrotor_teleop.cpp // Editor : <NAME> // E-mail : <EMAIL> // Updated : 25 Mar.2018 //=========================================================...
#include "modules/mpd/mpd.hpp" #include <fmt/chrono.h> #include <spdlog/spdlog.h> #include <glibmm/ustring.h> #include "modules/mpd/state.hpp" #if defined(MPD_NOINLINE) namespace waybar::modules { #include "modules/mpd/state.inl.hpp" } // namespace waybar::modules #endif waybar::modules::MPD::MPD(const std::string& ...
/* * Copyright (c) 2020-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...
#pragma warning(disable:4244) #pragma warning(disable:4018) #define NOMINMAX #include <cstdlib> #include <iostream> #include <fstream> #include <thread> #include <SFML/Graphics.hpp> #include <SFML/Network.hpp> #include "Main.hpp" #include "LogSystem.hpp" #include "App.hpp" using namespace std; void threadRenderi...
#include "qlabelmousetracker.hpp" #include "sme/logger.hpp" #include <QPainter> QLabelMouseTracker::QLabelMouseTracker(QWidget *parent) : QLabel(parent) { setMouseTracking(true); setAlignment(Qt::AlignmentFlag::AlignTop | Qt::AlignmentFlag::AlignLeft); setMinimumSize(1, 1); setWordWrap(true); } void QLabelMou...
/*************************************************************************** // // DEVICE.CPP // // TAPI Service provider for TSP++ version 3.00 // Handles raw device events and the physical connection to the hardware. // // Copyright (C) 1999 Test // All rights reserved // // Generated by the TSPWizard (C) JulMar Tech...
///////////////////////////////////////////////////////////////////// // CodePublisher.h - Publish code files // // Version 1.0 // // Author: <NAME> // // Resources from <NAME>, CSE687 Spring 2017...
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cstring> #include "CL/opencl.h" #include "AOCLUtils/aocl_utils.h" using namespace aocl_utils; #define STRING_BUFFER_LEN 1024 static size_t m = 200; static size_t n = 400; static size_t p = 600; // OpenCL runtime configuration sta...
#include "stdafx.h" #include "RetrieveTokenDlg.h" #include "token_retrieve.h" #include "nlohmann/json.hpp" #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <fstream> #include <curl/curl.h> using namespace std; HANDLE mitm_start_alt() { DeleteFile(L"token.txt"); // we create an empty ...
/**************************************************************************** * * Copyright (c) 2020 PX4 Development Team. 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. Redistri...
/* tcpblockio.c - a set of functions that define a block i/o interface to TCP. * These functions encapsulate all the steps needed to: * - read and write blocks of a specified size * - open clients and listeners * must be linked with -lnsl and -lsocket on solaris */ #define _POSIX_C_SOURCE 2008...
#include "StdAfx.h" // #include "../../../../C/Alloc.h" #include <stdio.h> #include <time.h> #include <locale.h> #include "Common/MyWindows.h" #include "Common/MyTypes.h" typedef long LONG_PTR; // FIXME 64 bits ? typedef LONG_PTR LRESULT; // typedef long DWORD_PTR; // FIXME 64 bits ? #include "C...
#include <algorithm> #include <climits> #include <ctime> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; // Grid deltas sorted in reading order const int DELTAS[][2] = {{0,-1}, {-1,0}, {+1,0}, {0,+1}}; enum...
/** @file A brief file description @section license License 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 und...
/* File: StandardIO.cpp Author: <NAME> Date: 2016.07.23 Copyright 2016 Manuvr, 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 requir...
/* * Copyright (c) 2013-2016, The University of Oxford * 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 ...
/************************ * $ID$ * File: CS19B021_midsem.cpp - create a class Refrigerator with a few data members, define a comparison operator on it, * perform a O(nlogn) sort on a Refrigerator array and find the "newVariance" of the sorted * refrigerator ar...
/** * @file artnetnodehandlepoll.cpp * */ /** * Art-Net Designed by and Copyright Artistic Licence Holdings Ltd. */ /* Copyright (C) 2021 by <NAME> mailto:<EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
/* $Header: /u/drspeech/repos/pfile_utils/pfile_select.cc,v 1.1.1.1 2002/11/08 19:47:08 bdecker Exp $ This program selects an arbitrary subset set of features from each frame of a pfile and creates a new pfile with that subset in each frame. <NAME> <<EMAIL>> */ #include <stdlib.h> #include <stdi...