text
stringlengths
3.08k
22k
/** * \file SubtractIndexApplication.cpp * \brief Iterative PSM meta-search via Cascade protocol ************************************************************/ #include "SubtractIndexApplication.h" #include "io/OutputFiles.h" #include "AssignConfidenceApplication.h" #include "TideSearchApplication.h" #include "TideIn...
//----------------------------------------------------------------------------- // File: lightprobe.cpp // // Copyright (c) Microsoft Corporation. // Licensed under the MIT License (MIT). //----------------------------------------------------------------------------- #include "dxut.h" #include "SDKmisc.h" #incl...
#include "Entity.h" Entity::Entity() { friction_x = 5.0f; friction_y = 0.0f; velocity_x = 0.0f; velocity_y = 0.0f; acceleration_x = 0.0f; gravity_y = -4.0f; enableCollisions = true; collidedBottom = false; collidedRight = false; collidedLeft = false; collidedTop = false; isStatic = true; textureID = NULL;...
#ifndef _REENTRANT #define _REENTRANT #endif #include <thread> #include <pthread.h> #include <erl_interface.h> #include <ei.h> #include <napi.h> #include <cstdlib> #include <string> #include <arpa/inet.h> #include <utility> #include "./custom-types.h" #include "./erlang-node.h" #include "./encoder.h" using std::string...
#include "player.h" #include <cmath> #include <utility> #include "../../../../../common/src/main/ids/gun_ids.h" #include "../../../../../common/src/main/ids/images_ids.h" #include "../../../../../common/src/main/ids/map_ids.h" #include "../guns/chain_cannon.h" #include "../guns/knife.h" #include "../guns/machine_gun....
#include <util/system/maxlen.h> #include "multitokenutil.h" namespace { inline void GlueTokens(TCharSpan* desttok, const TCharSpan* srctok) { Y_ASSERT(srctok->PrefixLen == 0); desttok->Len += srctok->Len; desttok->SuffixLen = srctok->SuffixLen; desttok->Hyphen = srctok->Hyphen; // t...
/* * * Copyright 2015 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...
#include "raytracing.h" #include <ChiMesh/MeshContinuum/chi_meshcontinuum.h> #include <ChiMesh/Cell/cell_slab.h> #include <ChiMesh/Cell/cell_polygon.h> #include <ChiMesh/Cell/cell_polyhedron.h> #include <chi_log.h> extern ChiLog& chi_log; //################################################################### /**Perf...
// // Created by <NAME> on 2019-02-18. // #include <iostream> #include <sstream> #include <fstream> #include <cmath> #include <cstdlib> #include <ctime> #include <string> #include <memory> #include <vector> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <deque> #include <queue...
#include "browser.h" #include "http.h" #include "storage.h" #include "smdh.h" #include "string.h" #include "filedownloadqueue.h" #include "drawing.h" #include "ui.h" #include "debug.h" #include "util.h" #include "font.h" #include <map> #include <algorithm> #include "no_icon_bin.h" using std::string; namespace hbb...
// license:BSD-3-Clause // copyright-holders:Robbbert #include "emu.h" #include "includes/kaypro.h" /*********************************************************** PIO Port B is unused on both PIOs ************************************************************/ WRITE_LINE_MEMBER( kaypro_state::write_centro...
// Copyright (c) 2013, The Toft Authors. // All rights reserved. // // Author: <NAME> <<EMAIL>> #include "toft/base/string/algorithm.h" #include <iostream> #include <set> #include <string> #include <vector> #include "thirdparty/gtest/gtest.h" using namespace std; const char* kTestStringLiteral = "\\.*?wangyu"; na...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Red Hat (C) 2014, 2015 Red Hat <<EMAIL>> * * Author: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the ...
// Transform template: // for(int b = 1; b < n; b <<= 1) { // Bit // for(int u = 0; u < n; u += 2 * b) { // Upper // for(int l = 0; l < b; l++) { // Lower // } // } // } // Basic SOS DP in case I ever forget: // for(int b = 1; b < n; b <<= 1) { // Bi...
/* Student Name: <NAME> Date: oct 30th 2018 ======================= ECE 2035 Project 2-1: ======================= This file provides definition for the structs and functions declared in the header file. It also contains helper functions that are not accessible from outside of the file. FOR FULL CREDIT, B...
/* * Bumble Bots Re-Pair, a Gamebuino game * * Copyright 2020, <NAME> */ #include "Game.h" #include "Bot.h" #include "GridCursor.h" #include "Images.h" #include "Levels.h" #include "Lights.h" #include "Lives.h" #include "MainMenu.h" #include "Music.h" #include "Palettes.h" #include "ProgressTracker.h" #include "S...
/*========================================================================= Program: Visualization Toolkit Module: TestPRMATGraphSource.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is di...
#include <zeep/http/rest-controller.hpp> #include <zeep/exception.hpp> #define BOOST_TEST_MODULE REST_Test #include <boost/test/included/unit_test.hpp> using namespace std; namespace z = zeep; namespace zx = zeep::xml; namespace zh = zeep::http; struct Opname { string id; map<string,float> standen; template<...
#include <cmath> #include <cstdio> #include <iostream> #include "EBProto.H" #include "Chombo_EBLevelBoxData.H" #include "Chombo_LevelData.H" #include "Chombo_BaseFab.H" #include "Chombo_ParmParse.H" #include "Chombo_LoadBalance.H" #include "Chombo_ProtoInterface.H" #include "Chombo_BRMeshRefine.H" #include "Chombo_G...
#include <memory> #include "plugin.hpp" #include "components.hpp" #include "tfdsp/noise.hpp" // Like TfSlop but with 4 outputs and a common drift on top of the idiosyncratic drifts struct TfSlop4 : Module { enum ParamIds { TRACK_SCALING1, TRACK_SCALING2, TRACK_SCALING3, TRACK_SCALING4, HUM_LEVEL, COMMON_...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
//------- Ignore this ---------- #include <filesystem> namespace fs = std::filesystem; //------------------------------ #include <math.h> #include "Model.h" const unsigned int width = 800; const unsigned int height = 800; float skyboxVertices[] = { // Coordinates -1.0f, -1.0f, 1.0f, // 7--------6...
/*! * @file rt_sbus.cpp * @brief Communication with RC controller receiver */ #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <string> #ifdef linux #define termios asmtermios #i...
#include "kindyn/robot.hpp" #include <thread> #include <std_msgs/Float32.h> #include <roboy_middleware_msgs/MotorCommand.h> #include <roboy_middleware_msgs/MotorConfig.h> #include <roboy_middleware_msgs/MotorConfigService.h> #include <roboy_middleware_msgs/MotorStatus.h> #include <roboy_middleware_msgs/ControlMode.h> #...
//-- HelloRenderer.cpp ---------------------------------------------------------- // // Copyright (C) 2015 // University Corporation for Atmospheric Research // All Rights Reserved // //---------------------------------------------------------------------------- // // File:...
#include <iostream> #include "AudioManager.h" AudioManager::AudioManager() { queue.clear(); cfgs.clear(); current_song_idx = -1; current_cfg_idx = 0; current_status = MusicStatus::Stopped; current_volume = des_volume = 100; start_moment = sf::microseconds(0); start_stopping_moment = start_changing_volu...
#include "stdafx.h" #pragma warning( push ) #pragma warning( disable: 4127 )//条件式が定数です #pragma warning( disable: 4100 )//引数は関数の本体部で 1 度も参照されません。 #include "sstypes.h" //--------------------------------------------------------------- //相互変換 SsPartType SsString __EnumToString_( SsPartType::_enum n ) { if ( SsPartType...
#include <string.h> #ifdef WIN32 #include <winsock.h> #else #include <arpa/inet.h> #endif #include <openssl/err.h> #include <openssl/hmac.h> #include <openssl/evp.h> #include <openssl/sha.h> #include <openssl/rand.h> #include <SymEncDec/SymEncDecImpl.h> using EVP_CIPHER_CTX_free_ptr = std::unique_ptr<EVP_CIPHER_CTX...
#include <iostream> #include <fstream> #include <memory> #include "stack.h" #include "int.h" #include "string.h" #include "function.h" #include "function_node.h" #include "stdlib_functions.h" #include "node_pool.h" #include "function_pool.h" #include "parse.h" #include "utilities.h" #include "errors.h" #include "json...
/* Copyright 2012. All rights reserved. Institute of Measurement and Control Systems Karlsruhe Institute of Technology, Germany This file is part of libviso2. Authors: <NAME> libviso2 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 ...
#include <stdlib.h> #include <stdio.h> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <memory> #include "stock.h" #include "seispp.h" #include "ensemble.h" #include "AttributeCrossReference.h" #include "dbpp.h" #include "StreamObjectReader.h" #include "StreamObjectWriter.h" using n...
#include "tpce_worker.h" #include "db/txs/dbrad.h" #include "db/txs/dbtx.h" #include "db/txs/dbsi.h" #include "db/txs/db_farm.h" extern size_t current_partition; extern __thread RemoteHelper *remote_helper; namespace nocc { namespace oltp { namespace tpce { extern std::map<std::string,uint64_t> SecurityToComp...
/* WhetStone, version 2.0 Release name: naka-to. Copyright 2010-2012 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: <NAME> (<EMAIL>) The...
// Copyright 2020 The Google Research 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...
/* * Copyright (c) 2016, The Regents of the University of California (Regents). * 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 a...
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "gpu/surface.hpp" #include "gpu/testing.hpp" #include "backend/common/core/types.hpp" #include "common/fakeReader.hpp" #include "common/ptv.hpp" #include "core/geoTransform.hpp" #include "core1/bounds.hpp" #include "core1/imageMappin...
#include <arduino.h> #include <Wire.h> #include "SAATunes.h" //Volume (Velocity) variables #define DO_VOLUME 1 // generate volume-modulating code? Needs -v on Miditones. // pcf8575 i2c addr #define PCF_7585_ADRESS 0x20 byte WR; byte AO; byte prevOctaves[] = {0, 0, 0, 0, 0, 0}; //Array for storing t...
/* * Thanks to <NAME> for letting us use some code from his * EQU-Plugin (http://equ.sourceforge.net/) for our Equalizer. */ #include <math.h> #include <string.h> #include <stdlib.h> #include <glib.h> #include "equalizer.h" // Fixed Point Fractional bits #define FP_FRBITS 28 // Conversions #define EQ_REAL(x) ...
/* * Copyright (c) 2009, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list o...
/* Copyright by zyt 2016.2 | All rights reserved */ #include "stdafx.h" #include<iostream> #include<fstream> #include<string> #include<vector> #include"Matrix.h" using namespace std; struct edge { int id; double pre_height; double after_height; string frompoint; string topoint; double length; }; struct point { ...
/* Copyright (c) 2014 Quanta Research Cambridge, Inc * * 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...
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #include "event_adapter.h" #include <cmath> #include <sstream> #include <vul/vul_awk.h> #include <track_oracle/aries...
/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <stdlib.h> #include <cmath> #include <fstream> #include <iomanip> #include <string> #includ...
// // Created by dominik on 29.06.21. // #include "types.hpp" #include "utils.hpp" #include "structure_utils.hpp" #include <cmath> #include <cassert> #include <stdexcept> #include <fstream> #include <filesystem> #include <boost/multi_array.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <gtest/gtest.h> using n...
#include "matchtemplate.h" #include <QDebug> using namespace cv; using namespace std; MatchTemplate::MatchTemplate() { } int MatchTemplate::twoImgsCalcNonzero(cv::Mat binaryImg1,cv::Mat binaryImg2,int &n) { //两幅相同尺寸大小、类型相同的二值图像进行相减,统计非零像素的个数 cv::Mat diffBinaryImg; MatchTemplate::matrixMinus(binaryImg1,bin...
/*========================================================================= * * 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...
/* ============================================================================ * Copyright (c) 2009-2019 BlueQuartz Software, LLC * * 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...
/* * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. */ #include <cstdlib> #include <utility> #include <algorithm> #include <tbb/mutex.h> #include <tbb/atomic.h> #include <boost/bind.hpp> #include <boost/assert.hpp> #include <base/time_util.h> #include <base/timer.h> #include <base/logging.h> #inc...
#pragma once #include "element.hpp" #include "element_id.hpp" #include "element_register.hpp" #include "element_size.hpp" #include "typedefs.hpp" #include <algorithm> #include <stdexcept> #include <vector> namespace ebml { class Stream; class Searcher; /** * A range of bytes inside the stream. This is intended for...
// // main.cpp // xctest // // Created by <NAME> on 8/23/17. // Copyright © 2017 <NAME>. All rights reserved. // #include <iostream> #include <vector> #include <string> #include <sstream> #include <map> #include "core_tree.hpp" #include "xctest_options.hpp" namespace xctest { namespace result { s...
#include "TROOT.h" #include <TMath.h> #include <TH1.h> #include <TH1F.h> #include <TH3.h> #include <TH3F.h> #include <TH3D.h> #include <TH1D.h> #include <TH2D.h> #include <TTree.h> #include <TFile.h> #include <TF1.h> #include <TStyle.h> #include <TCanvas.h> #include <TLatex.h> #include <TLegend.h> #include <TPaveLabel....
// Copyright (c) 2018 <NAME>. All Rights Reserved. #include "Tasks/NavmeshCoverPointGeneratorTask.h" #include "LandscapeProxy.h" #include "NavMesh/RecastNavMesh.h" #include "Detour/DetourNavMesh.h" #if DEBUG_RENDERING #include "DrawDebugHelpers.h" #endif FNavmeshCoverPointGeneratorTask::FNavmeshCoverPointGeneratorTa...
#include "src/probe/publisher/publisher.h" #include <unistd.h> #include <sys/un.h> #include <string> #include <iostream> #include <zmq.h> #include <regex> #include "tuples.h" #include <dirent.h> #include "src/probe/publisher/defination.h" #include "src/probe/converter/sysdig_converter.h" using namespace std; using nam...
#include <cstdlib> #include <cassert> #include <iostream> #include <iomanip> #include <fstream> #include <algorithm> #include "ukkonen.h" #include "debug.h" void uk(std::string); const size_t fixed_overhead = 5; const size_t complex_overhead = 9; void uk(std::string str) { // srand(1231231); // std::cin >> st...
#pragma once #include <string> #include <map> #include <unordered_set> #include "EnumHelpers.hpp" #include "CompiledGame.hpp" #include "PSLogger.hpp" #include "PSUtils.hpp" #define PS_LOG(p_log_msg){\ if(m_config.log_verbosity <= PSLogger::LogType::Log)\ {\ m_logger->log(PSLogger::LogType::Log, m_en...
/* * File: AIC_controller.cpp * Author: <NAME>, TU Delft, DCSC * * Created on April 14th, 2019 * * This node allows to control the 7DOF Franka Emika Panda robot arm through * the new promisin theory called Active Inference proposed by <NAME>. * * The robot moves to the desired position specified in desiredPo...
/************************************************************************** * * Copyright 2013-2014 RAD Game Tools and Valve Software * 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 d...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
// // upb - a minimalist implementation of protocol buffers. // // Copyright (c) 2011-2012 Google Inc. See LICENSE for details. // Author: <NAME> <<EMAIL>> // // IMPORTANT NOTE! Inside Google, This file is compiled TWICE, once with // UPB_GOOGLE3 defined and once without! This allows us to provide // functionality a...
#include <cstdio> #include <cstdlib> #include <map> #include <random> #include <sstream> #include <stdexcept> #include <string> #include "core/Analysis.h" #include "core/AncestralChromosomes.h" #include "core/AncestralRecombinationGraph.h" #include "core/Chromosome.h" #include "core/Parser.h" #include "core/PopulationS...
// // Created by jg on 10/6/20. // #include "GVictoryPlayfield.h" #include "GAnchorSprite.h" const TInt16 WALK_SPEED = 10 * FACTOR; static TBool sunHitTop = EFalse; ANIMSCRIPT walkAnimation[] = { ABITMAP(PLAYER_SLOT), ALABEL, ADELTA(1, 0), ASTEP(WALK_SPEED, IMG_WALK_RIGHT + 0), ADELTA(-1, 0), ASTEP(WALK...
/*============================================================================= TexGen: Geometric textile modeller. Copyright (C) 2010 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ve...
// Implementation of the Socket class. #include "Socket.h" #include "string.h" #include <string.h> #include <fcntl.h> #include <assert.h> #define min(x,y) ((x<y)?x:y) Socket::Socket() : m_sock ( -1 ) { memset ( &m_addr, 0, sizeof ( m_addr ) ); } Socket::~Socket() { if ( is_valid() ) ::close ( ...
/* GRAPHITE2 LICENSING Copyright 2010, SIL International All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of License, or (at yo...
#include "GUI.h" /////////////////////////////////////////////////////////////////////////// MyFrame1::MyFrame1(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(parent, id, title, pos, size, style) { this->SetSizeHints(wxDefaultSize, wxDefa...
#include <chrono> #include <derecho/sst/multicast_sst.hpp> #include <iostream> #include <memory> #include <thread> #include <vector> #include "aggregate_bandwidth.hpp" #include "initialize.h" #include "log_results.hpp" using namespace std; using namespace sst; volatile bool done = false; struct exp_results { ui...
/** * Copyright (c) JoeScan Inc. All Rights Reserved. * * Licensed under the BSD 3 Clause License. See LICENSE.txt in the project * root for license information. */ /** * @file advanced_scanning.cpp * @brief Example demonstrating how to read profile data from scan heads in a * performant manner suitable for re...
// // UserInputMapper.cpp // input-plugins/src/input-plugins // // Created by <NAME> on 4/27/15. // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "UserInputMapper.h" ...
#include "PELoader.h" BYTE* MemoryMapPE(BYTE* peFileBytes){ // Parse the DOS Header. Use this to find the start of the nt headders IMAGE_DOS_HEADER* lpDOSHeader = (IMAGE_DOS_HEADER*) peFileBytes; IMAGE_NT_HEADERS* ntImageHeaders = (IMAGE_NT_HEADERS*) (((UINT_PTR) lpDOSHeader) + (UINT_PTR) lpDOSHeader->e...
#include "order_manager.h" #include "exception/file_exception.h" OrderManager::OrderManager(ProductManager* pm, ClientManager* cm, WorkerManager* wm, LocationManager* lm) : _productManager(pm), _clientManager(cm), _workerManager(wm), _locationManager(lm), _orders{}{ } bool OrderManager::has(Order *order) con...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 <NAME>, Paris, France. // Copyright (c) 2009-2012 <NAME>, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (geol...
/************************************************************************** * * Copyright 2015 <NAME> * 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 r...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
/* * Copyright (C) 2014-2015 Open Source Robotics Foundation * * 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...
#pragma once #include "option_structure.hpp" #include "config_structure.hpp" #include "element_structure.hpp" // Forward declaration to avoid compiler problems. class CGeometryZone; class CGeometryElement; class CGeometry { public: // Constructor. CGeometry(CConfig *config_container, CElement...
#include "../common/util.h" #include "../common/shader.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> const char* VERTEX_SRC = "#version 330 core\n" "layout(location=0) in vec3 position;" "layout(location=1) in vec3 ...
/*************************************************************************** file : raceline.cpp created : Tue Sep 4 09:54:50 CEST 2012 copyright : (C) 2012 by <NAME>, <NAME> email : <EMAIL> version : $Id: raceline.cpp,v 1.1....
/* $Id: main.cpp,v 1.25 2011-05-02 10:38:23 matuzaki Exp $ * * Copyright (c) 1997, <NAME> * * You may distribute this file under the terms of the Artistic License. * */ #include <liblilfes/lilfes.h> #include <liblilfes/builtin.h> #include <liblilfes/option.h> #include <liblilfes/rl_stream.h> #include <libl...
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofBackground(200, 200, 200); ofSetVerticalSync(false); ofSetFrameRate(90); ofSetDataPathRoot("../Resources/data/"); //Connect to Port // myTuio.start(7001); // myTuio.start(7001); // ...
#include "testApp.h" /* _____ ___ / / / / flatShadedMeshExample / __/ * / /__ (c) ponies & light, 2012. /__/ /_____/ poniesandlight.co.uk/notes/flat_shading_on_osx/ Created by <NAME> 2012. Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
/* * Copyright (c) 2016, Wind River Systems, 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...
/** * @brief SHA-1 Hash key computation * * 100% free public domain implementation of the SHA-1 * algorithm by <NAME> <<EMAIL>> * * * === Test Vectors (from FIPS PUB 180-1) === * * "abc" * A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D * * "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" * 84983E...
/*========================================================================= Program: Visualization Toolkit Module: TestImageDataInterpolation.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "mkldnn_matmul_node.h" #include <string> #include <vector> #include <memory> #include <algorithm> #include <cmath> #include <mkldnn_types.h> #include <mkldnn_extension_utils.h> #include "ie_parallel.hpp" #include "common/cp...
// Upscales an image using Bilinear EDI./* /* Copyright 2016 <NAME> <<EMAIL>> 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 Unle...
/* Copyright (C) 2018 Fx Bricks Inc. This file is part of the pfxbrick python module. 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 ...
#include "calibration/camera_config_test.h" //Marker's publisher ros::Publisher ballCentroidCam_pub; ros::Publisher ballCentroidCamPnP_pub; ros::Publisher markers_pub; image_transport::Publisher image_pub; StereoBM sbm; StereoSGBM sgbm; Mat CameraMatrix1, CameraMatrix2, disCoeffs1, disCoeffs2, R1, R2, P1, P2, Q, T; ...
/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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...
// Copyright 2017 <NAME> #include "Watchtower.h" #include "VoxelPlayerController.h" #include "OnlineTestGameMode.h" #include "VoxelPlayer.h" #include "VoxelPlayerState.h" #include "VoxelGameState.h" #include "Chunk.h" #include "Blueprint/UserWidget.h" void AVoxelPlayerController::BeginPlay() { Super::BeginPlay(); ...
/** ImageUtils.cpp: Handy utility functions for dealing with images in OpenCV. by <NAME>, 21/9/09. **/ #include <stdio.h> #include <tchar.h> #include <vector> // Used for C++ vectors //#include <cstdio> // Used for "printf" #include <string> // Used for C++ strings //#include <cmath> // Used to calculate square-roo...
#include "geneticallamarckianalgorithm.h" GeneticalLamarckianAlgorithm::GeneticalLamarckianAlgorithm(Data data, bool generational, bool position) { // Initialize 50 poblation poblation.resize(50); // Random solution for(unsigned int i = 0; i < poblation.size(); i++){ poblation[i].solution.res...
/*************************** Student Number : 040100411 Student Name : <NAME> Course : BLG252E CRN : 11694 Term : 2015-Fall Homework : #3 ***************************/ #include <iostream> #include <iomanip> #include <sstream> #include <fstream> #include <vector> #include <map> #incl...
/////////// // This file is a part of the ATools project // Some parts of code are the property of Microsoft, Qt or Aeonsoft // The rest is released without license and without any warranty /////////// #include <stdafx.h> #include "Object.h" #include "Project.h" #include "ModelMng.h" #include "Model.h" #include "World...
#include "timers.h" #include "headers.h" #include "powermgm.h" #include "eventmgm.h" #include "config.h" #include "gui.h" int ctr_pressing = 0; int ctr_pressed_repeat = 0; int secret_mode = 0; int swipe_still_pressed = 0; int swipe_action = 0; void event_cb( lv_obj_t * obj, lv_event_t event ) { // Serial.println...
/* * BSD 2-Clause License * * Copyright (c) 2012-2019, CNRS-UM LIRMM, CNRS-AIST JRL * 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 a...
/* -------------------------------------------------------------------------- * * File GameSprite.cpp * * Ported By <NAME> * Contact <EMAIL> * * Created By <NAME> on 03/05/2011 * * -------------------------------------------------------------------------- * *...
#include "Commander.h" using std::vector; using std::get; using std::max; using std::shared_ptr; std::ostream& operator<<(std::ostream &out, const QString& s) { out << (const char*)s.toLatin1(); return out; } namespace Commander { using namespace function_signature; CommandAliasList::CommandAlias...
#include "xl_to_json_converter_thread_v1.h" using namespace xl; #include <QDir> #include <QFile> #include <QRect> #include <thread> #include <QJsonArray> #include <xl_table.h> #include <xl_reader.h> #include <QJsonDocument> #include <QCoreApplication> #include <pfactory/pfactory.h> #include "get_template_by_name.h" #i...
/** @audio_rec_play.cpp @brief Record input into an ogg file; Playback recorded data. @author APercy - adapted code from <NAME> http://www.softsynth.com */ /* * $Id$ * * This program uses the PortAudio Portable Audio Library. * For more information see: http://www.portaudio.com * Copyright (c) 1999-2000 <...
// opencv utility functions //paired header #include "cv_util.h" //local headers #include "exception_assert.h" //third party headers #include <opencv2/opencv.hpp> //for video manipulation (mainly) //standard headers #include <vector> struct BorderedChunk { /// x-coord of chunk within original 2-d matrix int cor...