text
stringlengths
7
961k
/* * asnper.cxx * * Abstract Syntax Notation 1 Encoding Rules * * Portable Windows Library * * $Revision$ * $Author$ * $Date$ */ /////////////////////////////////////////////////////////////////////// PBoolean PPER_Stream::NullDecode(PASN_Null &) { return true; } void PPER_Stream::NullEncode(const PASN_...
#pragma once #include "quickQmlRegister.hpp" #include <QQuickFramebufferObject> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkProp.h> class vtkGenericOpenGLRenderWindow; namespace quick { namespace Vtk { class Object; class FboRenderer; class Viewer : public QQuickFra...
// 273 Integer to English Words // https://leetcode.com/problems/integer-to-english-words // version: 1; create time: 2020-01-16 00:04:10; class Solution { public: string numberToWords(int num) { constexpr int billion = 1e9; constexpr int million = 1e6; constexpr int thousand = 1e3; ...
// 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 "android_webview/browser/aw_contents_io_thread_client.h" #include <map> #include <memory> #include <utility> #include "android_webview/brow...
//===- IntegerDivision.cpp - Unit tests for the integer division code -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright (c) 2020, Stephan Unverwerth <s.unverwerth@serenityos.org> * Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Debug.h> #include <AK/Function.h> #include <LibJS/AST.h> #include <LibJS/Bytecode/BasicBlock.h> #include <LibJS/Bytecode...
// AK Rifles - Don't inherit // AK-103 - Medium Barrel class CUP_arifle_AK103: CUP_arifle_AK74M { recoil = QCLASS(762R_MediumBarrel); }; class CUP_arifle_AK103_top_rail: CUP_arifle_AK103 { recoil = QCLASS(762R_MediumBarrel); }; // Foregrip class CUP_arifle_AK103_railed: CUP_arifle_AK103 { recoil = QCLASS(7...
// Copyright 2018 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 "src/developer/debug/zxdb/console/input_location_parser.h" #include "gtest/gtest.h" #include "src/developer/debug/zxdb/client/mock_frame.h" #incl...
#ifndef FIRST_BOSS_CONTROLLER_H #define FIRST_BOSS_CONTROLLER_H #include <Engine/GameObject.hpp> #include "Customs/FirstBossAttackScript.hpp" #include <Globals/EngineGlobals.hpp> #include <stdlib.h> #include <time.h> class FirstBossController { public: static FirstBossController *GetInstance(); void StartBossF...
// Copyright 2016 The Fuchsia Authors // Copyright (c) 2013 Google, Inc. // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <debug.h> #include <lib/console.h> #include <lib/version.h> #include <lib/version/vers...
/** *@file InputValidators.hpp * @author Fabio Rossini Sluzala () * @brief Fornece classes para validação de input de dados json * @todo Separar as sub-classes em arquivos próprios * @version 0.1 * @date 2021-07-20 * * @copyright Copyright (c) 2021 * */ #pragma once #ifndef INPUTVALIDATORS_HPP #define INPUTVA...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include "codec.h" #include <muduo/base/Logging.h> #include <muduo/base/Mutex.h> #include <muduo/net/EventLoopThread.h> #include <muduo/net/TcpClient.h> #include <iostream> #include <stdio.h> #include <unistd.h> using namespace muduo; using namespace muduo::net; class ChatClient : noncopyable { public: ChatClien...
#include <iostream> #include <algorithm> #include <cmath> using namespace std; struct radish_t { double len; double wei; int order; }; bool operator==(radish_t a, radish_t b) { return (a.wei > b.wei) ? (a.wei / b.wei * abs(a.len - b.len)) : (b.wei / a.wei * abs(a.len - b.len)); } radish_t radishes[10000...
/* Operators Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Author: Konstantin Lipnikov (lipnikov@lanl.gov) */ #include <cstdlib...
//------------------------------------------------------------------- #ifndef __PortPWMDirBrake_H__ #define __PortPWMDirBrake_H__ //------------------------------------------------------------------- #include "Port.hpp" /**This class describes a port for a motor driver like a LMD18200. Three pins will be used, for PW...
// Copyright 2014 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 "device/serial/test_serial_io_handler.h" #include "base/bind.h" #include "device/serial/serial.mojom.h" namespace device { TestSerialIoHandler...
#include "font.h" #include "CRenderer.h" #include "CVertexBuffer.h" #include "CTexture.h" /* array size information */ const int sdf_tex_width = 128; const int sdf_tex_height = 128; const int sdf_num_chars = 191; /* 'unsigned char sdf_data[]' is defined last */ /* The following array holds the spacing info for render...
// Copyright (c) 2021 Logos Foundation // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <hash.h> #include <pubkey.h> #include <script/script.h> #include <script/taproot.h> static const CHashWriter HASHER_TAPLEAF = Tagge...
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See t...
#include <Render/RenderEngine.h> #include <Resource/Font.h> #include <Resource/Texture.h> #include <freetype2/ft2build.h> #include FT_FREETYPE_H Font* RenderEngine::GenerateFont(const String& path, int size) { FT_Library ft; if (FT_Init_FreeType(&ft)) throw RuntimeException("Failed to initialize FreeType2"); ...
/// @file expression_unary.cpp /// @author Enrico Fraccaroli (enrico.fraccaroli@gmail.com) /// @copyright Copyright (c) 2021 sydelity.net (info@sydelity.com) /// Distributed under the MIT License (MIT) (See accompanying LICENSE file or /// copy at http://opensource.org/licenses/MIT) #include "structure/expression_u...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the BSD License. */ #ifndef TRITON_OPERANDINTERFACE_H #define TRITON_OPERANDINTERFACE_H #include <triton/dllexport.hpp> #include <triton/tritonTypes.hpp> //! The Triton namespace namespace triton { /*! * \addtogroup triton * @{ ...
// Copyright (c) 2013 Steinwurf ApS // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #include <cpuid/cpuinfo.hpp> #include <cstdint> #include <iostream> #include <gtest/gtest.h> #include "../commandline_arguments.hpp" TEST(cpuinfo_tests, check_instruction_sets...
TEST_CASE_TEMPLATE("read bool", D, kcv::Document, kcv::DocumentView<8>) { bool b{false}; SUBCASE("yes") { std::string data{u8"b:yes"}; D doc{data}; doc[u8"b"] >> b; REQUIRE(b == true); } SUBCASE("no") { b = true; std::string data{u8"b:no"}; D doc{data}; doc[u8"b"] >> b; REQUIRE(b == false); } ...
/* Copyright (c) 2018 PaddlePaddle Authors. 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 law or...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto #include "tensorflow/core/framework/step_stats.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lit...
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int fib[100]; fib[0]=0; fib[1]=1; fib[2]=1; for(int i=3;fib[i-1]<=1000;i++) { fib[i]=fib[i-1]+fib[i-2]; } int n; cin >> n; int counter=2; for(int i=1;i<=n;i++) { if(i==fib[counter]) { counter++; cout << "O"; } else { co...
// Copyright (c) 2017 Sony Corporation. 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 ...
//------------------------------------------------------------------------------ /* This file is part of brtd: https://github.com/BRTNetwork/brtd Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby gr...
#include "yaml.hpp" #include "yaml_preprocess.hpp" #include <dr_util/expand.hpp> #include <boost/filesystem.hpp> namespace dr { using namespace std::string_literals; namespace { namespace fs = boost::filesystem; struct PathInfo { fs::path dir; std::optional<fs::path> file; static PathInfo forFile(std::st...
/** * 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.0 (the * "License"); you...
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2013 Tatsuhiro Tsujikawa * * 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 Lice...
/*========================================================================= Program: Visualization Toolkit Module: TestOSConeCxx.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
// Copyright 2015 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 "core/events/PointerEventFactory.h" #include "core/frame/FrameView.h" #include "core/page/Page.h" #include "public/platform/WebPointerProperties...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2021 Baldur Karlsson * * 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...
#include <iostream> #include "windows.h" #include <vector> #include <ctime> using namespace std; // declare a vector container - charVector(empty) vector <char> charVector; void VectorInitialize() { // inserting to vector -> push_back for(int i=0; i<26; i++) { charVector.push_back(i+65); } } void DisplayVector...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The Pigeon Core developers // Copyright (c) 2018 The PerfectCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licen...
// Copyright (c) 2017-2018 SECI developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "httprpc.h" #include "base58.h" #include "chainparams.h" #include "httpserver.h" #include "rpc/protocol.h" #include "rpc/server...
#pragma once /** * \file weakly_connected_components.hpp * * Defines an algorithm for finding weakly connected components in a graph. */ #include <handlegraph/handle_graph.hpp> #include <handlegraph/util.hpp> #include "hash_map.hpp" #include <vector> #include <algorithm> namespace odgi { namespace algorithms { ...
#include "stdafx.h" #include "PropertyReplacer.h" #include "TargetMachine.h" #include <fstream> bool ShouldUpdateConfig(std::wstring const &inputConfig) { // If we find an API key entry in the yaml file, don't do anything std::wregex re(L"^api_key:(.*)"); std::match_results<std::wstring::const_iterator> re...
#include <stdio.h> #include <stdlib.h> #define abs(x) ((x)>0 ? (x):-(x)) #define max(x,y) (x>y ? x:y) #define min(x,y) (x<y ? x:y) int main(){ int t,tt,n,m; int p,q; long long a[1000],b[1000],c[1000],x[1000],y[1000]; int i,j; long long ukupno=0,temp; int poredak[1002]; int trajanje[1002]; int bio[1000]; int ko...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_CLANG_HPP_INCLUDED #define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_CLANG_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // detail/sp_counted_base_clang.hpp - __c11 clang intrinsics // // Cop...
#pragma once #include "Tool.hpp" #include <Core/Core.hpp> #include <imgui.h> /* * Password Generator Tool Collapsing Header View To be drawn in ToolsScene */ NS_ENIGMA_BEGIN class PasswordGeneratorTool : public Tool { public: PasswordGeneratorTool() = default; ~PasswordGeneratorTool() = default; public: /* Tool Lif...
#include <qtcomponents.h> #ifdef QT_OPENGL_LIB N::ProgressButton:: ProgressButton ( QObject * parent , Plan * p ) : SceneWidget ( parent , p ) , reporter ( NULL ) { WidgetClass ; Configure ( ) ; } N::ProgressButton:: ProgressB...
// ================================================================================================= // Copyright Adobe // Copyright 2010 Adobe // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe license agreement accompanying it. ...
#ifndef PERFTHREAD_HPP_319B828C_E001_4BB5_93EE_3A505C9A5ABF #define PERFTHREAD_HPP_319B828C_E001_4BB5_93EE_3A505C9A5ABF #pragma once #include <functional> #include <string> constexpr inline auto NCOUNTERS = 22; constexpr inline auto MAX_USERNAME_LENGTH = 128; extern const struct counters { const wchar_t* Name; D...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2018 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/kms/model/ScheduleKeyDeletionResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/...
// // Copyright (c) 2016 Krzysztof Jusiak (krzysztof at jusiak dot net) // // 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) // #pragma once #include <vector> #include "model/board.hpp" namespace match3 { struct...
#include <algorithm> #include <iostream> #include <vector> struct N { int n, x; bool operator()(int a, int b) const { return a < b; } }; int main () { unsigned long long int c = 0; std::vector <N> l; int n, t; std::cin >> n; for (int a = 0; a < n; a ++) { std::cin >> t; l.push_back ({t, a}); } std...
#include "../../valve/buf.h" #include "../../leychan.h" #include "net_setconvar.h" bool net_setconvar::Register(leychan* chan) { void* voidedfn = static_cast<void*>(&net_setconvar::ParseMessage); leychan::netcallbackfn fn = static_cast<leychan::netcallbackfn>(voidedfn); return chan->RegisterMessageHandler(this->...
class Solution { public: int removeStones(vector<vector<int>>& stones) { const int n = stones.size(); count_ = n; for(int i = 0; i < n; ++i) { for(int j = i + 1; j < n; ++j) { if (stones[i][0] == stones[j][0] || stones[i][1] == stones[j][1]) { ...
#include "ace/Guard_T.h" #include "JAWS/FILE.h" JAWS_FILE::JAWS_FILE (void) : map_ (0) { } JAWS_FILE::~JAWS_FILE (void) { delete this->map_; this->map_ = 0; } ACE_Mem_Map * JAWS_FILE::mem_map (int length, int prot, int share, void *addr, ...
/** * @file Benchmark.cpp * * @brief Benchmarking tests for Zerocoin. * * @author Ian Miers, Christina Garman and Matthew Green * @date June 2013 * * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green * @license This project is released under the MIT license. **/ ...
/* * This source code file is licensed under the GNU General Public License Version 3. * For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package. * Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. */ #include "UI/Src/UIReg/CommonUIR...
class Solution { public: vector<int> v; Solution(vector<int>& nums) { this->v = nums; } int pick(int t) { int n = 0; int ans = -1; for(int i=0;i<v.size();i++) { if(v[i]==t) { n++; if(!(rand()%n)) ans = i; } } return ans; } }; /** * Your Solution...
// 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 "base/message_loop.h" #include "base/string16.h" #include "base/string_util.h" #include "base/time.h" #include "base/utf_...
#include "crypto/CCCrypto.h" extern "C" { #include "crypto/base64/libb64.h" #include "crypto/md5/md5.h" #include "crypto/sha1/sha1.h" } #if CC_LUA_ENGINE_ENABLED > 0 #include "CCLuaEngine.h" extern "C" { #include "lua.h" #include "tolua_fix.h" } #endif NS_CC_EXTRA_BEGIN int CCCrypto::encodeBase64(const void* input...
// This file is made available under Elastic License 2.0. // This file is based on code available under the Apache license here: // https://github.com/apache/incubator-doris/blob/master/be/src/olap/fs/file_block_manager.cpp // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license ...
/** * Copyright 2021 Robert MacGregor * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish,...
/* Copyright (c) 2007 Cyrus Daboo. 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 re...
// Copyright (c) 2012-2013 The PPCoin developers // Copyright (c) 2015-2018 Bean Core wwww.beancash.org // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "kernel.h" #include "txdb....
#include "CalcTime.h" #include <future> #include <vector> namespace CppNative { using std::vector; using std::pair; double CalcTime::Get(eVALUE val) const { double ret(0.0); switch (val) { case eVALUE::DIST: ret = m_dist; break; case eVALUE::ACC: ret = m_acc; break; case eVALUE::RET: ret = m_ret;...
#include<iostream> #include <fstream> #include <string.h> using namespace std; struct login_details { char username[15]; char password[20]; }us; char tmp_username[15]; char tmp_password[20]; void registration_form() { cout<<"\tRegistration Form"; cout<<"\nUSERNAME : "; cin>>us.username; cout<<"PASSWORD : "; ci...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2007 Marco Bianchetti Copyright (C) 2007 Cristina Duminuco This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is fre...
// // Created by salamander on 3/1/19. // #include "Network.h" #include "poker.h" #include "game.h" #include "gui_engine_defs.h" #include "asset_manager.h" #include "PlayerContainer.h" #include <iostream> #include <thread> void NetWorkThread() { Network Node("Client"); std::cout<<"Waiting For Server To connect...
#pragma once #ifndef _GLWindowUtils_HPP_ #define _GLWindowUtils_HPP_ #include <GL/glew.h> namespace engine { /// \class GLWindowUtils /// \brief Utility class for updating OpenGL state (such as alpha blending, depth testing, etc.). class GLWindowUtils { private: bool m_cullingBackFace = f...
#include "lua/nodes/inject.h" #include <lua/datatypes/context.h> #include <lua/datatypes/state.h> #include <possumwood_sdk/node_implementation.h> #include <lua/datatypes/variable.inl> #include <luabind/operator.hpp> #include "lua/module.h" #include "lua/opencv_image.h" #include "opencv/frame.h" namespace possumwood...
// ParticleData.cc is a part of the PYTHIA event generator. // Copyright (C) 2012 Torbjorn Sjostrand. // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // Function definitions (not found in the header) for the // DecayChannel...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Atom/RHI/RHISystemInterface.h> #include <Atom/RHI.Reflect/PlatformLimitsDescriptor.h> #i...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Small, fast version of the strider. Goes where striders cannot, such // as into buildings. Best killed with physics objects and explosives. // //============================================================================= #include "cba...
//---------------------------------------------------------------------------- // ObjectWindows // Copyright (c) 1995, 1996 by Borland International, All Rights Reserved // // Sample illustrating the TTabControl class //---------------------------------------------------------------------------- #include "pch.h" #incl...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018-2018 The Jiyo developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-li...
#include <stdint.h> #include <stddef.h> #include <kernel/init.h> #include <kernel/memory.h> #include <kernel/panic.h> #include <kernel/interrupts.h> void init_modules(struct multiboot_info* mbt) { if (!(mbt->flags & 1)) { early_boot_failure("Memory information not provided by bootloader"); } init_...
#include <memory> #include <opencv2/core/mat.hpp> #include <opencv2/imgcodecs.hpp> #include <string> #include <iostream> #include "options.h" #include "Video.h" #include <opencv2/highgui/highgui.hpp> #include <fstream> #include <fnmatch.h> #include "algs/raw_to_video_alg.h" #include "algs/video_to_gif_alg.h" #inclu...
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // NOTE: libsecp256k1 verification methods presently not working, // so here, we include both openssl libs and libsecp...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcconsole.h" #include "ui_rpcconsole.h" #include "clientmodel.h" #include "bitcoinrpc.h" #include "guiutil.h" #in...
#ifndef GUI_TREE_HH #define GUI_TREE_HH #include <memory> #include <variant> #include <vector> #include <SDL2/SDL_events.h> #include "Rectangle.hh" namespace gui { class Tree : public Rectangle, public std::enable_shared_from_this<Tree> { public: using branch_t = std::shared_ptr<Tree>; u...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
/* * Software License Agreement (BSD License) * * Copyright (c) 2011-2014, Willow Garage, Inc. * Copyright (c) 2014-2015, Open Source Robotics Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
#include "Common.h" #include <Windows.h> namespace babylon { std::filesystem::path GetModulePath() { char buffer[1024]; ::GetModuleFileNameA(nullptr, buffer, ARRAYSIZE(buffer)); return std::filesystem::path{ buffer }; } std::string GetUrlFromPath(const std::filesystem::path& pa...
/** @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...
/* * gpio-server.hpp * * Created on: 7 Nov 2018 * Author: dwd */ #pragma once #include <functional> #include "gpiocommon.hpp" #include <netinet/in.h> class GpioServer : public GpioCommon { int fd, client_socket[2], max_clients = 2; struct sockaddr_in address; const char *port; volatile bool stop; R...
// https://www.hackerrank.com/challenges/polar-angles #include "common/geometry/d2/angle_int.h" #include "common/geometry/d2/vector_io.h" #include "common/stl/base.h" #include "common/vector/read.h" int main_polar_angles() { struct S { public: I2Vector v; I2Angle a; int64_t d; S(const I2Vector& ...
/* Copyright 2019 The TensorFlow Authors. 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 law or a...
//------------------------------------------------------------------------------ // Copyright (c) 2016 by contributors. 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 a...
/* Copyright 2020, RespiraWorks 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 writing, software d...
/** * NDPluginTimeSeries.cpp * * Plugin that creates time-series arrays from callback data. * * @author Mark Rivers * @date February 2016 */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <math.h> #include <epicsTypes.h> #include <epicsMessageQueue.h> #include <epicsThread.h> #include <epi...
/** Those who cannot acknowledge themselves will eventually fail. */ #include <bits/stdc++.h> #define forn(i, l, r) for(int i=l;i<=r;i++) #define all(v) v.begin(),v.end() #define pb push_back #define nd second #define st first #define debug(x) cout<<#x<<" -> "<<x<< endl #define rsa(x, y) memset(x, y, sizeof x)...
//------------------------------------------------------------------------------ // inputtimesource.cc // (C) 2007 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "basegametiming/i...
#include "controls/devices/joystick.h" #include <cstddef> #include "controls/controller_motion.h" #include "utils/log.hpp" #include "utils/stubs.h" namespace devilution { // Defined in SourceX/controls/plctrls.cpp extern bool sgbControllerActive; std::vector<Joystick> *const Joystick::joysticks_ = new std::vector<...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_...
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::AskPassphraseDialog), ...
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #ifndef SGE_CAMERA_SPHERICAL_ACTION_MAPPING_FWD_HPP_INCLUDED #define SGE_CAMERA_SPHERICAL_ACTION_MA...
// 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 "jingle/notifier/communicator/single_login_attempt.h" #include <cstddef> #include "base/compiler_specific.h" #include "base/memory/scoped_p...
/* * Copyright (c) 2021, Krisna Pranav, evilbat831, nuke123-sudo * * SPDX-License-Identifier: BSD-2-Clause */ // includes #include <AK/Assertions.h> #include <LibC/bits/pthread_forward.h> static PthreadFunctions s_pthread_functions; void __init_pthread_forward(PthreadFunctions funcs) { s_pthread_functions = f...
// Copyright 2019 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 "src/media/audio/audio_core/test/hardware/audio_core_hardware_test.h" #include <lib/sys/cpp/service_directory.h> #include <lib/syslog/cpp/macros.h> ...