text
stringlengths
3.08k
12.5k
/** \class TKStatus * * * \author <NAME>/UC Riverside * <NAME>/FNAL * */ // C++ #include <array> #include <fstream> #include <string> // CMS #include "DataFormats/OnlineMetaData/interface/DCSRecord.h" #include "DataFormats/OnlineMetaData/interface/OnlineLuminosityRecord.h" #include "DataFormats/Scale...
/* <NAME> IIIT Bangalore */ #include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.end() #define pr(v) { for(int i=0;i<v.size();i+...
/* * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include "ros/ros.h" #include "geometry_msgs/Point.h" #include <geometry_msgs/PoseStamped.h> #include "geometry_msgs/Transform.h" #include "geometry_msgs/Twist.h" #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <tf/transform_datatypes.h> #include <tf/transform_listener.h> #...
/* * (C) Copyright 2012, 2013 ThankyouSoft (http://ThankyouSoft.com/) and Nanolat(http://Nanolat.com). * Writen by <NAME> ( <EMAIL> ) * * ================= * Apache v2 License * ================= * http://www.apache.org/licenses/LICENSE-2.0.html * * Contribu...
// Copyright (C) 2017 <NAME> // For more license info refer to the the bottom of this file. #include <cstdio> #include <iostream> #include <fstream> #include <cstring> #include <codecvt> #include "buklivm.h" #include "utf8buffer.h" #include "util.h" #if defined(WIN32) || defined(_WIN32) #include <windows...
// // Created by cyx on 2021/7/31. // #include <opencv2/core.hpp> #include "GMM.h" GMM::GMM(int component) { // RGB 3 通道对应每一个高斯模型能的得到 1 个权重 this->gmm_component = component; this->weight = Mat::zeros(gmm_component, 1, CV_64F); // RGB 3 通道对应每一个高斯模型能的得到 3x3 个协方差 int sizes[] = {gmm_component, 3, 3}; ...
/***************************************************************************** * ctrl_radialslider.cpp ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id: e06673a4957b75568bd55d6fb79c655d53bb74a9 $ * * Authors: <NAME> <<EMAIL>> * ...
#include <QPainter> #include <QMouseEvent> #include "imagepad.h" #define MARGIN 80 ImagePad::ImagePad(QWidget *parent) : QWidget(parent), m_pen{ Qt::black, 15, Qt::SolidLine, Qt::RoundCap }, m_bStart(true) { setMinimumSize(256, 256); clearWidget(); /* 캡처할 카메라를 지정한다. */ m_capture = cv::VideoCa...
#include "Game.h" #include <iostream> #include <ctime> #include <cstdlib> #include <string> enum DIFFICULTY { EASY, NORMAL, HARD, BRUTAL }; void Game::Init() { //Get ai difficulty std::string useAI = ""; std::cout << "Do you want to play with two people? (Y or N): "; std::cin >> useAI; ...
#include "pam.h" #include <iostream> #include <algorithm> using namespace std; void check(bool test, string message) { if (!test) { cout << "Failed test: " << message << endl; exit(1); } } struct pp { int u; int v; float dist; pp(): u(-1), v(-1), dist(-1){}; pp(int uu, int vv, float distt): u(uu...
#include <bits/stdc++.h> using namespace std; const int offset = 3e6 + 1; #define TPoint pair<int, int> #define x first #define y second struct TSegment{ int x, l, r, typ; bool operator < (const TSegment &other) { return x < other.x; } }; struct TNode{ int val, cntCover; } st[offset << 4]; vec...
#include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include <csignal> #include <cstring> #include "threadpool.h" #include "util.h" #include "useEpoll.h" #include "httpData.h" #include "Lock.h" #include "Timer.h" const int MAXEVENTS = 4096; // epoll_event数组大小 int epollFd = -1; // EPOLL实例描述符 c...
// // Created by <NAME> on 5/8/20. // #include <cmath> #include <random> #include "AmpDetector.h" #include "IncrementalLPF.h" #include "buffer.h" #include "Timing.h" float ExpAvg(float sample, float avg, float w) { return w*sample + (1-w) * avg; } void AmpDetector::updateComparators(float sample, uint64_t index){ ...
/* swc_removal_plugin.cpp * This is a test plugin, you can use it as a demo. * 2016-5-16 : by YourName */ #include "v3d_message.h" #include <vector> #include "swc_removal_plugin.h" #include <iostream> #include "../AllenNeuron_postprocessing/sort_swc_IVSCC.h" #include "../IVSCC_sort_swc/openSWCDialog.h" using n...
#include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <set> #include <map> #include <cctype> #include <vector> #include <queue> #include <string> #include <iostream> using namespace std; //时间复杂度O(NM); typedef long long ll; typedef unsigned long long ull; const int inf = 1e10; const ll INF ...
// // CmdLineMgr.cpp // // Created by <NAME> on 3/16/21. // #include "CmdLineMgr.hpp" #include "CmdLineHelp.hpp" #include <iostream> #include <regex> #include <sstream> #include <iostream> #include <iomanip> #include "Utils.hpp" #include <netinet/in.h> #include <arpa/inet.h> #include "TCPServer.hpp" #include "Cm...
/* * Softpixel MemCheckDeluxe v1.0.2 * 2002 cwright <<EMAIL>> */ /* Copyright (C) 2002 softpixel (http://softpixel.com/) * This file is covered by a BSD-Style License, available in * the LICENSE file in the root directory of this package, as well as at * http://prj.softpixel.com/licenses/#bsd */ #ifdef _MCD_...
// SPDX-License-Identifier: BSD-2-Clause #include "RandomSet.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <assert.h> #include <sys/time.h> // Number of nodes and edges uint32_t numNodes; uint32_t numEdges; // Mapping from node id to array of neighbouring node ids // Firs...
#include <iostream> #include <cstring> using namespace std; class NBAPlayer{ protected: char *ime; char tim[40]; double poeni; double asistencii; double skokovi; void copi(const NBAPlayer & n){ this->ime = new char[strlen(n.ime)+1]; strcpy(this->ime,n.ime); strcpy(this-...
#pragma once #include <memory> #include <vector> #include "beast-compact.hpp" #include "context.hpp" #include "plain_websocket_session.hpp" #include "ssl_websocket_session.hpp" #include "tracy/tracy.hpp" #include "session.hpp" auto make_websocket_session( session_handler_t* session_handler, beast::tcp_str...
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: <NAME> and <NAME> // // Th...
#include <Arduino.h> #include <stdio.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ESP8266WebServer.h> #include <FS.h> #include <PID_v1.h> #include <WebSocketsServer.h> #include <OneWire.h> #include <DallasTemperature.h> #include "credentials.h" #include "reflowProfiles.h" #define SSR 5 #define DQ 0 ...
#include "stdh.h" #include <Engine/Base/IFeel.h> #include <Engine/Base/FileName.h> #include <Engine/Base/Stream.h> #include <Engine/Base/Console.h> #include <Engine/Base/Shell.h> //Imm_GetProductName HINSTANCE _hLib = NULL; BOOL (*immCreateDevice)(HINSTANCE &hInstance, HWND &hWnd) = NULL; void (*immDeleteDevice)(void)...
/* This file is part of PyMesh. Copyright (c) 2015 by <NAME> */ #include "EdgeSplitter.h" #include <iostream> #include <list> #include <sstream> #include <Core/Exception.h> #include <Math/MatrixUtils.h> #include <Misc/Triplet.h> #include <MeshUtils/IndexHeap.h> using namespace PyMesh; namespace EdgeSplitterHelper {...
#include "json.hpp" #include <iostream> nlohmann::json Jsigfigs(double value, unsigned int sig_figs=3){ if(!std::isfinite(value)) { return nlohmann::json("nan"); } if(value==0) { return nlohmann::json(0); } // Find exponent int X = (int)floor(log10(value)); unsigned int maxchar = sig_figs + 7; char* buf...
// //----------------------------------------------------------------- // // This code is a implementation of G4 example GB01 // //----------------------------------------------------------------- // #include "ChangeCrossSection.hh" #include "G4BiasingProcessInterface.hh" #include "G4BOptnChangeCrossSection.hh" #incl...
#include "rtos.h" #include "devices/tsip.h" #include "devices/com.h" RTOS::RTOS(uint64_t timer) :Task("RTOS", HIGH_PRIORITY, timer) { // Create a new Scheduler by default (delfault pointer) _stateless = true; _scheduler = make_shared<Scheduler>(10); } RTOS::~RTOS(){ // Dispose the memory allocated...
/* Copyright 1995 - 1997 by Abacus Research and * Development, Inc. All rights reserved. */ #include <base/common.h> #include <vdriver/vdriver.h> #include <vdriver/dirtyrect.h> #include <quickdraw/quick.h> #include <quickdraw/cquick.h> #include <prefs/prefs.h> #include <commandline/flags.h> #include <vdriver/autore...
#include "SQLiteManager.h" #include<conio.h> #include<iostream> #include <fstream> #include <memory> #include "Simulation.h" #include "DataProcessor.h" #include "TestVehicle.h" #include "SituationGraph.h" #include <time.h> #include "Winuser.h" using std::string; using std::endl; using std::cout; using std::cin; using ...
#include <iostream> #include <string> using namespace std; enum ProdType {NORMAL, FAST_SALE = 100, DISCOUNT = 200}; class Product { public: const int id; private: string name = ""; int* salesVolume = nullptr; int noMonths = 0; ProdType type = ProdType::NORMAL; public: Product(int Id, string Name, ProdType Type)...
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int _abs(int x){return x<0 ? -x : x;} int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;} int sub(int x,int y){x-=y; return x<0 ? ...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <fstream> #include <functional> #include <stdarg.h> #include <wiringPi.h> #include "../rover_util/delayed_execution.h" #include "../rover_util/utils.h" #include "../rover_util/serial_command.h" #include "../rover_util/logging.h" #include "closing_sequen...
#include "interface2.h" #include "BmpDataArray.h" #include "freetype.h" static CtlRoot* pRoot; static Image* pBg; static Keyboard* pKeyboard; static Text* pText; static FreeType2* pFreeType2; static int keyboardCallback(Event* pEvent) { Any_Event *pany_event = NULL; printf("keyboardCallback\n"); ...
#include "NeuralNetwork.hpp" #include <cstdio> #include <cstdlib> NeuralNetwork::NeuralNetwork(){ } NeuralNetwork::NeuralNetwork(float *data){ initFromData(data); score = 0.0f; } NeuralNetwork::NeuralNetwork( int newInputSize, int newLayersCount, int *layer_sizes) { inputSize = newIn...
// This version works blocks #include "mandelbrot.hpp" #include <iostream> #include <fstream> // Randomly generate a floating-point number between -10 and 10. //float rand_float() { // return float(rand()) / float(RAND_MAX) * 20.0f - 10.0f; // } void Mandelbrot::init_matrix() { } string Mandelbrot::get_kernel_s...
#include "Application.h" #include <iostream> #include <sstream> #include "FreeCamera.h" //GLOBAL APPLICATION REFERENCE Application *app; //GLOBAL CALLBACKS FOR GLFW void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { app->keyCallback(key, scancode, action, mods); } vo...
// package.cpp // Copyright (C) 2019 <NAME> #include "package.h" #include <algorithm> #include <cmath> #include <QJsonArray> bool Pad::exist(int x_, int y_) { int dx = width / 2; int dy = height / 2; if (dx > 0 && dy > 0) if (x_ >= (x - dx) && x_ <= (x + dx) && y_ >= (y - dy) && y_ <=...
// // Copied from https://gist.github.com/Bumrang/557358f710a0efa76f3a // #include "AnimationLoader.h" #include "Utils.h" bool AnimationLoader::loadAnimation(const aiScene *scene, Animator *m) { Assimp::Importer importer; // used to import the model if (!scene) { MyLOGE("Error scene is null"); ...
#include "stdafx.h" #include "FireBall.h" #include "FireBallStart.h" #include "FireBallEnd.h" #include "Player.h" #include "Pipeline.h" #include "CamMgr.h" #include "ObjMgr.h" #include "ObjFactory.h" CFireBall::CFireBall() : m_bInit(false) , m_bLeft(true) , m_iScreenMode(0) { } CFireBall::~CFireBall() { Release(); }...
/* * Copyright 2009-2017 Alibaba Cloud 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...
#include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "driver/uart.h" #include "sdkconfig.h" #include "esp_log.h" #include "string.h" #include "uart_frame.h" #include "esp32-hal-psram.h" #include "Arduino.h" #define UART_NUM UART_NUM_1 #define BAUD_RATE 1500000 ...
// Copyright 2019-2020 Alpha Cephei 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 ...
/* ****************************************************************************** * * * Copyright (C) 1999-2003, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** * * file name: cmaps.cpp * * ...
// Copyright by Potato Engine contributors. See accompanying License.txt for copyright details. #include "potato/shell/ui/menu.h" #include "potato/editor/imgui_ext.h" #include "potato/shell/ui/action.h" #include "potato/spud/enumerate.h" #include "potato/spud/erase.h" #include "potato/spud/find.h" #include "potato/sp...
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include <carla/Memory.h> #include <carla/PythonUtil.h> #include <carla/Time.h> #include <ostr...
/* * Copyright (C) 2016 Intel Corporation. All Rights Reserved. * * 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, ...
#include "PhysicsTools/SelectorUtils/interface/CutApplicatorWithEventContentBase.h" #include "DataFormats/EgammaCandidates/interface/Photon.h" #include "RecoEgamma/EgammaTools/interface/EffectiveAreas.h" class PhoAnyPFIsoWithEAAndQuadScalingCut : public CutApplicatorWithEventContentBase { public: PhoAnyPFIsoWithEAAn...
#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <tiramisu/debug.h> #include <tiramisu/core.h> #include <string.h> #include <Halide.h> #include "halide_image_io.h" using namespace tiramisu; conste...
#include "utilities.h" #include <cinttypes> #include <Rcpp.h> using namespace std; void insert_node(NODE **node, const vector<std::string> &tax_hierarchy, unsigned int depth) { NODE *n; if (*node == nullptr) { *node = new NODE; (*node)->name = tax_hierarchy[depth]; } if (tax_hierarchy.s...
/** @file Plugin init @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...
// // Created by <NAME> on 2020/3/18. // #include <iostream> #include <vector> #include <opencv2/opencv.hpp> #include <gtk/gtk.h> #include <gdk/gdk.h> #include <logger.h> #include <thread> #include <atomic> #if defined(LINUX) || defined(linux) #include <X11/Xlib.h> #endif #define LOGGER_PRINT_FUNC_NAME() logger::i...
/* ** ClanLib SDK ** Copyright (c) 1997-2010 The ClanLib Team ** ** 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 softwa...
//============================================================== // Copyright Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= #include <CL/sycl.hpp> #include <CL/sycl/INTEL/fpga_extensions.hpp> #include <array> #include <iomanip> #include <iostream> ...
// Copyright(c) Microsoft Corporation.All rights reserved. // Licensed under the MIT License. // // ndadapterinfo.cpp - NetworkDirect AdapterInfo Test // // This test checks that the input IP address is a valid NetworkDirect // address, and that all addresses returned by QueryAddressList are // valid NetworkDirect addr...
#include <Arduino.h> #include "BluetoothSerial.h" #include "esp_camera.h" #include "soc/soc.h" // Disable brownour problems #include "soc/rtc_cntl_reg.h" // Disable brownour problems #include <Base64.h> #include <elapsedMillis.h> #define PIR_PIN 13 #define LED_BUILTIN 2 // Should short on pin 4 (bright LED)...
#include "Segmentation.hpp" swSim::Segmentation::Segmentation() { xIndex0 = 0; // includes halo slices xDelta = 0; // includes halo slices neighborRight = MPI_PROC_NULL; neighborLeft = MPI_PROC_NULL; processVoxels = 0; // includes halo voxels globalIndex0 = 0; // includes halo voxels ...
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: <NAME> and <NAME> // // ...
// -*- C++ -*- // // Package: LogErrorFilter // Class: LogErrorFilter // /**\class LogErrorFilter LogErrorFilter.cc FWCore/LogErrorFilter/src/LogErrorFilter.cc Description: [one line class summary] Implementation: [Notes on implementation] */ // // Original Author: <NAME> // Created: Thu Nov ...
#include "AI.h" #include "Dependencies/include/bullet/btBulletDynamicsCommon.h" void AI::tick() { spawn_timer -= _world->dt; fire_timer -= _world->dt; difficulty_setting += _world->dt; //spawn an enemy to chase you down and beat you down if (_world->scene()->objects->at(_world->scene()->player_id)->state == Bumb...
// $Id: Structured_Supplier.cpp 91825 2010-09-17 09:10:22Z johnnyw $ // ****************************************************************** // Include Section // ****************************************************************** #include "ace/Get_Opt.h" #include "ace/Auto_Ptr.h" #include "tao/ORB_Core.h" #include "o...
/* * LoRa Sender which transmits the altitude measured by a BMP085 via the Hope RFM95 LoRa * Module. * It expects a feedback signal from the receiver containing a checksum. * * Copyright <2017> <<NAME>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include "openvino/core/type.hpp" #include "openvino/opsets/opset.hpp" #include "openvino/util/common_util.hpp" TEST(type_info, compare_old_type) { ov::DiscreteTypeInfo type1("type1", 0); ov::Discr...
/**************************************************************************** ** CUBE http://www.scalasca.org/ ** ***************************************************************************** ** Copyright (c) 1998-2016 ** ** Fors...
#include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; #define MAX_M 4096 #define MAX_m 12 /** * Print first n bit of a code */ void print_codeword(char *code, int n) { for (int i = 0; i < n; ++i) { putchar(code[i]); } putchar('\n'); } int main(int argc, c...
#include "TkPixelMeasurementDet.h" #include "TrackingTools/TransientTrackingRecHit/interface/InvalidTransientRecHit.h" #include "Geometry/CommonTopologies/interface/PixelTopology.h" #include "TrackingTools/MeasurementDet/interface/MeasurementDetException.h" #include "TrackingTools/PatternTools/interface/TrajectoryMeasu...
/* * 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 "SkParse.h" #include "SkParsePath.h" static inline bool is_between(int c, int min, int max) { return (unsigned)(c - min) <= (unsigned)(max - min); } static inli...
/* * Copyright (c) 2017-2019 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
/* * File: map_strings.cpp * * Reports exact matches of kmers to sequences * */ #include "map_strings.hpp" void call_strings(const std::vector<std::string>& assembly_list, const std::vector<std::string>& assembly_names, const std::vector<std::string>& query_list, ...
#include <Common/ext.h> #include <conio.h> #include <iostream> #include <stdio.h> #include <string> #include <array> #include <filesystem> #include <vector> #include <thread> #include <windows.h> #include <tlhelp32.h> #include <Common/settings.h> bool dev_mode = false; bool shutting_down = false; std::ostream& log...
// File originates from the supercop project // Authors: <NAME> and <NAME> // // File contains modifications by: The Gulden developers // All modifications: // Copyright (c) 2019 The Gulden developers // Authored by: <NAME> (<EMAIL>) // Distributed under the GULDEN software license, see the accompanying // file COPYING...
/* * @Descripttion: * @Version: 1.0 * @Author: hwdy * @Date: 2021-03-04 19:31:52 * @LastEditors: hwdy * @LastEditTime: 2021-03-31 09:22:32 */ /* * Copyright 2020 Huawei Technologies Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2006-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge, MA 02139 USA 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; eithe...
// 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 // distributed...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef map<int,int> mii; typedef map<ll,ll> ...
#include <iostream> #include "TextRenderer.h" #include "freetype/ftparams.h" TextRenderer::TextRenderer(GLfloat defaultScale) { // Load and configure shader this->defaultScale = defaultScale; textShader = new Shader("textVertexShader.glsl", "textFragmentShader.glsl"); textShader->setProjection(glm::ortho(0.0f, st...
/*---------------------------------------------------------------------------- ChucK Simple Decaying Exponential Envelope Unit Generator Simple single time constant exponential decay, applied to any signal passed through it. Obeys: value, T60, radius, and keyOn Especially useful for Modal synthesis. One of thes...
// 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 may...
#include <cstdio> #define MAX_HEAP_SIZE 10000 #define MAXREAL 999999.0 using namespace std; class HeapItem{ public: int data; //actual data that is stored float key; //key value of the data, heap is constructed based on key }; //MinHeap class, minimum item stored at the root of heap tree class MinHeap{ publi...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
// Copyright 2020 <NAME> #include <mpi.h> #include <string> #include <random> #include <ctime> #include <algorithm> #include <iostream> #include <utility> #include <vector> #include <cstring> #include "../../../modules/task_3/kamskov_e_grackham_hull/kamskov_e_grackham_hull.h" Point first; struct Comparator { bool...
//===--- TypeUtils.cpp - Type helper functions ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* Copyright (c) 2005-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 la...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <cstdio> #include <iostream> // Uncomment this line to use long range mode. This // increases the sensitivity of the sensor and extends its // potential range, but increases the likelihood of getting // an inaccurate reading because of reflections from objec...
#include "bc26.h" static String bc26_buff; static char bc26_host[40], bc26_user[40], bc26_key[50]; static int bc26_port; static SoftwareSerial bc26(8, 9); subscribe_t sub_arr[LIMIT_OF_SUBS]; static bool _BC26SendCmdReply(const char *cmd, const char *reply, unsigned long timeout)...
#include "pch.h" #include "ChunSnesInstr.h" #include "SNESDSP.h" // **************** // ChunSnesInstrSet // **************** ChunSnesInstrSet::ChunSnesInstrSet(RawFile *file, ChunSnesVersion ver, uint16_t addrInstrSet, ...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
/* Copyright (c) 2019, Xilinx 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 fol...
// // Copyright (c) 2008-2020 the Urho3D project. // // 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, m...
//sending frame approach #include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <tf/transform_listener.h> #include <sensor_msgs/JointState.h> #include <vector> #include <iostream> #include <iterator> #include <fstream> #include <string> #include <cmath> #include "headers/spline.h" #include <algorithm> #inc...
//===-- PPCTargetMachine.cpp - Define TargetMachine for PowerPC -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#pragma once #include <ipmid/types.hpp> #include <string> // IPMI commands for Transport net functions. enum ipmi_netfn_storage_cmds { // Get capability bits IPMI_CMD_SET_LAN = 0x01, IPMI_CMD_GET_LAN = 0x02, }; // Command specific completion codes enum ipmi_transport_return_codes { IPMI_CC_PARM_NOT_SU...
#include <station.h> #include <wind.h> Station *Station::_windSelf; bool Station::_setupWind() { if (wind) { pinMode(WIND_SPEED_PIN, INPUT_PULLUP); attachInterrupt(WIND_SPEED_PIN, _handleWindIRQ, FALLING); _windSelf = this; } return true; } void Station::_handleWindIRQ() { Station::_windSelf->_wind...
/* =============================================== || Ré-édition :: <NAME> || =============================================== || Dernière modification :: 28/04/2020 || =============================================== */ #include <iostream> #include <signal.h> #include <stddef.h> #include <s...
// 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/ui/window_sizer/window_sizer.h" #include "chrome/browser/chromeos/profiles/profile_helper.h" #include "chrome/browser/ui/ash...
#include "vcl/vcl.hpp" #include <iostream> #include <list> using namespace vcl; struct gui_parameters { bool display_frame = true; bool wireframe = false; }; struct user_interaction_parameters { vec2 mouse_prev; timer_fps fps_record; mesh_drawable global_frame; gui_parameters gui; bool cursor_on_gui; }; user...
/*========================================================================= * * Copyright <NAME>, <NAME>, <NAME>. 2011. * * 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.o...
#include "stdafx.h" #include "RegDataSerializer.h" #include "RegistryKey.h" #include <memory> #include <strutil.h> #include <memutil.h> #include <atlenc.h> #include <stdlib.h> #define WI_MULTISTRING_NULL L"[~]" #define WI_MULTISTRING_NULL_SIZE 3 CRegDataSerializer::CRegDataSerializer() :_bytes( NULL) ...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Co., Ltd. Copyright (c) 2020 c4games.com. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
#include "UserGeant4Geometry.h" UserGeant4Geometry::UserGeant4Geometry(string filePath, bool drawable_) { drawable = drawable_; geometryFilePath = filePath; reader = new GeometryReadIn (this, filePath); nav = NULL; safety = 0.000000001; } void UserGeant4Geometry::construct () { std::cout << ...