text
stringlengths
7
961k
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> #include <QRegExp> #include <QRegExpValidator> OptionsDialog::OptionsDi...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
/** * @file * @copyright defined in seat/LICENSE.txt */ #pragma once #include <cubetrainlib/asset.hpp> #include <cubetrainlib/cubetrain.hpp> #include <string> namespace cubetrainsystem { class system_contract; } namespace cubetrain { using std::string; class token : public contract { public: ...
/* Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke 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 ...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2020 Fetch.AI 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 Licen...
// Copyright (c) 2012-2015 The Icocoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet/wallet.h" #include "wallet/walletdb.h" #include "test/test_icocoin.h" #include <stdint.h> #include <boost...
/* * Copyright © 2012 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copy...
#ifndef __TILE_H__ #define __TILE_H__ #pragma once #include <algorithm> #include <cstdint> class Tile { public: uint8_t tileData[64]; Tile(); Tile(uint8_t *tileAddr); // Returns the tile row colors in the provided dest array; The array must contain 8 uint8_t // elements void getTileRow(uin...
#include <iostream> #include <random> #include "libbr/br.hpp" #define ENABLE_LONGDIV_TEST 0 void test_br32() { std::cout << "Testing BR32.\n"; std::random_device rd; std::mt19937 gen(rd()); for (uint32_t bitlen = 1; bitlen <= 31; ++bitlen) { const uint32_t min_n = (1U << bitlen) + 1; ...
/************************************************************************* * * Copyright 2016 Realm 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/lice...
//Copyright (C) 2010 by Glenn Hickey // //Released under the MIT license, see LICENSE.txt #include <iostream> #include <string> #include <cmath> #include "transitionmodel.h" #include "ftagstates.h" #include "ftagparams.h" using namespace std; using namespace FTAGStates; static double sumToOne(const TransitionModel&...
#include "stdafx.h" #include "EoDlgSetAngle.h" IMPLEMENT_DYNAMIC(EoDlgSetAngle, CDialog) BEGIN_MESSAGE_MAP(EoDlgSetAngle, CDialog) END_MESSAGE_MAP() EoDlgSetAngle::EoDlgSetAngle(CWnd* parent) : CDialog(IDD, parent) {} void EoDlgSetAngle::DoDataExchange(CDataExchange* dataExchange) { CDialog::DoDataExchange(dataExc...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018-2020 Intel Corporation #ifndef OPENCV_GAPI_IMGPROC_PERF_TESTS_INL_HPP #define OPENCV_GAPI_IMGPROC_P...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
#ifdef __ANDROID__ //#include <EGL/egl.h> #define EGL_CONTEXT_LOST 0x300E #define EGL_BAD_SURFACE 0x300D #define EGL_BAD_CONTEXT 0x3006 #elif _WIN32 #define ION_STAT_SECONDS static_cast<ui64>(buffer.st_mtime) #ifdef _USE_32BIT_TIME_T #define _fstat _fstat32 #def...
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, Leoni...
#include<bits/stdc++.h> #define ll long long #define mod 1000000007; using namespace std; int c=0; int column[100]={0},d1[100]={0},d2[100]={0}; void solve(int i,int n) { if(i==n) { c++; return ; } for(int j=0;j<n;j++) { if(column[j]==0&&d1[i-j+n-1]==0&&d2[i+j]==0) { ...
// // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) // // 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) // // Official repository: https://github.com/CPPAlliance/url // #ifndef BOOST_URL_QUERY_PARAM_HPP #...
#include <stdio.h> #include "graphics.h" #include "constants.h" #include "drawBoard.h" #include "getUserTurn.h" #include "getArea.h" #include "getDirection.h" #include "rotateArea.h" #include "gameLogic.h" int main() { char board[BOARD_SIZE][BOARD_SIZE] = { 0 }; // initialize the window initwindow(1000, 530, "...
/* * Copyright (c) 2017 Mellanox Technologies * This software was developed by Konstantin Belousov <konstantinb@mellanox.com> * * 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 ...
#pragma once #include <eosiolib/serialize.hpp> #include <eosiolib/print.hpp> #include <eosiolib/system.h> #include <eosiolib/symbol.hpp> #include <tuple> #include <limits> namespace eosio { /** * @defgroup assetapi Asset API * @brief Defines API for managing assets * @ingroup contractdev */ /** ...
// Copyright (c) 2011-2019 The Zortcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <policy/policy.h> #include <test/util/setup_common.h> #include <txmempool.h> static void...
#include <iostream> #include <map> #include <string> using namespace std; typedef map<int,int>::const_iterator Iterador; int main (int argc, char *argv[]) { map<int,int> m; m[0] = 1; m[1] = 0; m[2] = 2; m[3] = 7; for(Iterador i = m.begin(); i != m.end(); i++) { cout << i->first << " : " << i->second...
#pragma once #include <filesystem> #include <fstream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include <string> #include <vector> #include "tris.hpp" namespace Tracer::Components { class Mesh { private: std::vector<Math::Tris>...
#include <QDebug> #include "WHMeasureWidget.h" #include "ui_WHMeasureWidget.h" #include <QMessageBox> #include "FWWHMeasureLabel.h" #include "xmlInitGlobal.h" #include "LinkDataGlobal.h" #include "HardwareConfig.h" WHMeasureWidget::WHMeasureWidget(QWidget *parent) : QWidget(parent), ui(new Ui::WHMeasureWidget)...
/*========================================================================= * * Copyright UMC Utrecht and contributors * * 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 * * h...
#include "Camera.h" Camera::Camera() { SetLookAt(glm::vec3(0, 0, 5), glm::vec3(0, 0, 0), glm::vec3(0, 1, 0)); } Camera::~Camera() { } void Camera::Update(float delta) { } void Camera::SetOrtho(float left, float right, float bottom, float top) { projection_transform_ = glm::ortho(left, right, bottom, top); ...
/*********************************** Copyright 2020 Ravishankar Mathur 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 requi...
/* Copyright 2016 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 ag...
/* * libjingle * Copyright 2004--2005, Google Inc. * * 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...
// Copyright (c) 2014-2020 The Askalcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <chainparams.h> #include <consensus/params.h> #include <deploymentstatus.h> #include <test/util...
// This file was automatically generated on Mon Dec 09 09:47:38 2019 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/L...
/* * --- Day 2: Report Repair --- * Build with : g++ --std=c++17 -Wall -o day2 day2.cpp -lfmt */ #include <algorithm> #include <fstream> #include <regex> #include <string> #include <vector> #include <fmt/core.h> auto check_valid(const std::string &line) -> std::pair<bool, bool> { /*Pattern and Grouping */ /*...
/* * Copyright 2012-present Facebook, 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 a...
/* * * Copyright 2016 gRPC 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...
// // 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 and the following disclaimer. // * Redistributions in bin...
//Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window. // //Example: // //Input: nums = [1,3,-1,-3,5,3,6,7], and k...
// Copyright 2015 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. #include <stdio.h> #include <stdlib.h> #include <pthread.h> #incl...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors // Licensed under the MIT License: // // 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, inc...
// This program generates a Sierpinski gasket with 10000 points. #ifdef __APPLE_CC__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <cstdlib> // A simple two-dimensional point class to make life easy. It allows you to // reference points with x and y coordinates instead of array indices) and // en...
// 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8IDBVersionChangeEvent.h" #include "bindings...
// 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 "third_party/blink/renderer/core/html/parser/compact_html_token.h" #include "testing/gtest/include/gtest/gtest.h" namespace blink { TEST(Compa...
/* * 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...
/**************************************************************************** Copyright 2015 Ricardo Quesada 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/LICEN...
//#define WIN32_LEAN_AND_MEAN //#define WIN32_EXTRA_LEAN #include <windows.h> #include <winuser.h> #include <stdio.h> #include "../piStr.h" #include "../piTypes.h" namespace piLibs { int piSystemInfo_getIntegratedMultitouch( ) { #if _MSC_VER < 1700 return 0; #else // test for touch int value = GetSystemMetric...
class Solution { public: int atMostKGet(vector<int>& nums, int k){ int ans = 0; unordered_map<int, int>m; int i = 0; for(int j=0;j<nums.size();j++){ m[nums[j]]++; while(i<=j && m.size()>k){ m[nums[i]]--; if(m[nums[i]]==0) ...
// Copyright 2018 The Simons Foundation, Inc. - All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
/* * 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 ...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef void **PHUSKEY; END_ATF_NAMESPACE
// ***************************************************************************** // ***************************************************************************** // Copyright 2013 - 2015, Cadence Design Systems // // This file is part of the Cadence LEF/DEF Open Source // Distribution, Product Version 5.8. /...
// so slow #include <iostream> #include <queue> #include <bitset> #include <string> using namespace std; int dx[4] = {1, -1, 0, 0}; int dy[4] = {0, 0, 1, -1}; string str; bitset<25> turn(int x, int y, bitset<25> map) { int pos = 5*x + y; map[pos] = !map[pos]; for(int i=0; i<4; i++) { int nx = x + dx[i]; int ...
// generated from rosidl_typesupport_introspection_cpp/resource/idl__type_support.cpp.em // with input from rmf_building_map_msgs:msg/Param.idl // generated code does not contain a copyright notice #include "array" #include "cstddef" #include "string" #include "vector" #include "rosidl_runtime_c/message_type_support_s...
/* * Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. * * (c) Copyright 1996 - 2001 Gary Henderson (gary.henderson@ntlworld.com) and * Jerremy Koot (jkoot@snes9x.com) * * Super FX C emulator code * (c) Copyright 1997 - 1999 Ivar (ivar@snes9x.com) and * ...
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus, Rajesh Gandham 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 w...
/* // Copyright (c) 2019 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
//===-test_concat_3d_axis_1_eigen.cc-----------------------------------------------------------===// // // Copyright (C) 2019-2020 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 ...
//这里我们假定:用头顶做中转站的功能,使用一次头顶则需要移动额外两次。 //事实上,头顶的功能不仅限于此,头顶应该是相当于缺少翻转功能的手,比方说一叠饼的大小原先是:5,6,3,4,1,2;先将5,6移到头顶, //再将3,4移到头顶,再将1,2移到头顶,最后将饼移回手中,则一共只移动了4次,比翻转用的5次要少。模拟头顶需要一个栈。 #include"stdafx.h" #include <iostream> #include<random> #include <cassert> #include <cstdio> #include<cstdlib> #include<ctime> #define random(x) (rand(...
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include "Gwen/Gwen.h" #include "Gwen/Controls/TextBox.h" #include "Gwen/Skin.h" #include "Gwen/Anim.h" #include "Gwen/Utility.h" #include "Gwen/Platform.h" #include <math.h> using namespace Gwen; using namespace Gwen::Controls; #ifndef GWEN_...
//============================================================================================================= /** * @file realtimeevokedsetwidget.cpp * @author Gabriel B Motta <gabrielbenmotta@gmail.com>; * Lorenz Esch <lesch@mgh.harvard.edu> * @version dev * @date July, 2018 * * @section ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2021 The Danxome Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> #include <key_io.h> #include <rpc/server.h> #include <rpc/util.h>...
//------------------------------------------------------------------------------------- // DirectXTexConvert.cpp // // DirectX Texture Library - Image conversion // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLI...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include <stdint.h> #include <sstream> #include <iomanip> #include <limits> #include <cma...
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fxfa/parser/cxfa_equate.h" #include "fxjs/xfa/cjx_node.h" #incl...
#pragma once #include <memory> namespace OpenSim { class Component; class Model; } namespace osc { class AddComponentPopup final { public: AddComponentPopup(std::unique_ptr<OpenSim::Component> prototype); AddComponentPopup(AddComponentPopup const&) = delete; AddComponentPopup(...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "json.hpp" #include "planner.h" //#include "matplotlibcpp.h" using namespace std; // for convenience using json = nlohmann::json; int main() { uWS::Hub h; // Load up map v...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2017 The SDC developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // Wraps dumb protocol buffer paymentRequest // with some extra methods // #include "...
/* https://open.kattis.com/problems/fizzbuzz */ #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> using namespace std; int main() { int X, Y, N; cin >> X >> Y >> N; int n; string s; for (int i = 0; i < N; ++i) { n = i + 1; s = ""; if (n % X == 0) s.append("Fizz")...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "hud.h" #include "hl2mpclientscoreboard.h" #include "c_team.h" #include "c_playerresource.h" #i...
/* * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com. * Copyright 2012, Alex Smith, alex@alex-smith.me.uk. * Distributed under the terms of the MIT License. */ #include "x86_syscalls.h" #include <KernelExport.h> #ifdef _COMPAT_MODE # include <commpage_compat.h> #endif #include <cpu.h> #ifdef _COMPAT_MODE #...
#include <iostream> namespace edu { template <typename T> class vector { private: T* m_data; unsigned int m_maxSize; unsigned int m_size; public: vector(); ~vector(); public: T& operator[]( unsigned int size ); T* begin(); T* end(); public: void push_back( const T& elem ); ...
#include "ply_writer.h" template <typename T> struct PlyVertex { T x,y,z; T nx,ny,nz; unsigned char red, green, blue, alpha; }; struct PlyFace { unsigned char nverts; int *verts; }; template <typename T> struct ply_traits {}; template <> struct ply_traits<unsigned char> { static const int type = Uint8;...
#include <opencv/cv.h> #include <opencv/highgui.h> #include <opencv/cvaux.h> #include <opencv/cxcore.h> #include <opencv/ml.h> #include <stdlib.h> #include <stdio.h> using namespace cv; using namespace std; int main(){ int x,y; Mat image=imread("/Users/wellcome/Desktop/PDI_LISTA/figura.jpg",0); Mat grow(im...
/* * Copyright (c) 2017-2018, Intel Corporation * * 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, p...
// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <vector> #include "prevector.h" #include "serialize.h" #include "streams.h" #include "test/test_community.h" #include "...
#include "MessageManager.h" #include "CompanyManager.h" #include "Config.h" #include "Date.h" #include "Entities/EntityManager.h" #include "GameState.h" #include "IndustryManager.h" #include "Interop/Interop.hpp" #include "Localisation/FormatArguments.hpp" #include "Objects/CargoObject.h" #include "Objects/IndustryObje...
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s struct PR10757 { bool operator~() = delete; // expected-note {{explicitly deleted}} bool operator==(const PR10757&) = delete; // expected-note {{explicitly deleted}} operator float(); }; int PR10757f() { PR10757 a1; // FIXME: We get a ridiculous number o...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2021 Couchbase, 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 * * ht...
#include "voltage_multiplier.h" VoltageMultiplier::VoltageMultiplier(uint16_t R1, uint16_t R2, String config_path) : NumericTransform(config_path), R1_{R1}, R2_{R2} {} void VoltageMultiplier::set_input(float input, uint8_t inputChannel) { // Ohms Law at work! this->emit(in...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo...
#include "stdafx.h" #include "ZCanvas.h" void ZCanvas::OnDraw(MDrawContext* pDC) { if (m_pOnDrawFunc) { m_pOnDrawFunc(this, pDC); } } ZCanvas::ZCanvas(const char* szName, MWidget* pParent, MListener* pListener) : MWidget(szName, pParent, pListener) { m_pOnDrawFunc = NULL; } ZCanvas::~ZCanvas() { }
//---------------------------------------------------------------------------- // electron-vibrancy // Copyright 2016 arkenthera // // MIT License // 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 So...
/****************************************************************************** Copyright (C) 2014 by Hugh Bailey <obs.jim@gmail.com> 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, e...
/** Copyright (c) 2016, Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <memory> #include <optional> #include <pup.h> #include <string> #include <type_traits> #include "DataStructures/DataBox/Prefixes.hpp" #include "DataStructures/DataVector.hpp" #include "DataStructures/Tensor/Tensor.hpp" #inclu...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDebug> #include <QMessageBox> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); connect(ui->startNewGame, &QPushButton::clicked, this, &MainWindow::startNewGame); conne...
#include<stdio.h> #define R 100 void selection_sort(int sh[],int sm[],int eh[],int em[],int n); void main() { int i,day=0,sch, sh[R],sm[R],eh[R],em[R], dm,dh,lm,mm, apph,appm; char app[300]; // start hour,minutes, end hour,minutes; appointment hour,minutes; //freopen("in3.txt","r",stdin); while(scanf("%d",&sch)...
// // Created by Guglielmo Menchetti on 14/11/2018. // #include "LinkedList.h" #include <iostream> LinkedList::LinkedList() { head = nullptr; size = 0; } LinkedList::~LinkedList() { Node* current = head; while(current != nullptr){ Node* next = current->next; delete current; cu...
#include <Nephilim/UI/UxWorldViewport.h> #include <Nephilim/World/World.h> #include <Nephilim/World/Systems/RenderSystem.h> NEPHILIM_NS_BEGIN UxWorldViewport::UxWorldViewport(World* worldPtr) : _world(worldPtr) { } void UxWorldViewport::render(GraphicsDevice* gdi) { if (_world) { _world->_renderSystem->render()...
#include "Fuji.h" #include "src/fj_scene_interface.h" #include "../mtfu_common/mtfu_mayaScene.h" #include "utilities/tools.h" #include "utilities/attrTools.h" #include "utilities/logging.h" #include <maya/MFnDependencyNode.h> using namespace FujiRender; void FujiRenderer::defineSettings() { SiSetProperty2(renderer, ...
// 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/orc/tree/main/c++/src/wrap/orc-proto-wrapper.hh /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
/* * gliamodels.cpp * glia * * Created by Deniz Kural on 12/26/11. * Copyright 2011 __MyCompanyName__. All rights reserved. * */ #include "gliamodels.h" std::ostream& operator<<(std::ostream& o, const sn* s) { if (s) { o << (void*)s << ";" << s->name << "," << s->position <<...
#include "Resource.h" Resource::Resource() { name = ""; isDirectory = false; } Resource::Resource(const char* _name, bool _isDirectory) { name = _name; isDirectory = _isDirectory; } Resource::~Resource() { name = ""; isDirectory = false; children.clear(); }
#include "Wait_Build.h" #include "Controller.h" using namespace AISCRIPT; Wait_Build wait_build_impl(AISCRIPT::Enum::WAIT_BUILD); Wait_Build wait_buildstart_impl(AISCRIPT::Enum::WAIT_BUILDSTART); bool Wait_Build::execute(aithread &thread) const { // Parameters BYTE bCount; WORD wType; thread.readTuple( std::...
// Copyright 2006. Peter Gottschling, Matthias Troyer, Rolf Bonderer #ifndef LA_ETS_CONCEPTS_INCLUDE #define LA_ETS_CONCEPTS_INCLUDE #include <boost/numeric/linear_algebra/concepts.hpp> #ifdef __GXX_CONCEPTS__ //"Namespace ETS = Expression Templates Support": // This file contains concepts that support the concept...
/* Copyright 2018 Streampunk Media Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...