text
stringlengths
3.08k
22k
/* * ParticleTranslateRotateScaleScale.h * * Copyright (C) 2018 MegaMol Team * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "ParticleTranslateRotateScale.h" #include <glm/gtc/quaternion.hpp> #include <glm/gtx/quaternion.hpp> #include "mmcore/param/FloatParam.h" #include "mmcore/param/Vector3fParam.h...
/* OLED screen Example For other examples please check: https://github.com/espressif/esp-iot-solution/tree/master/examples This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" ...
/* * Copyright (c) 2016, https://github.com/zhatalk * 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 * * Unl...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a ...
/* * Copyright 2016-2019 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and th...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * <NAME> */ #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> #include <cstdlib> #include <fstream> #include "all-interval-omgg.h" using namespace Gecode; /** * \brief %Example: All-interval series * * An ...
#include "../fft/number-theoretic-transform-friendly-mod-int.cpp" /** * @brief Formal-Power-Series-Friendly-NTT(NTTmod用形式的冪級数) * @docs docs/formal-power-series-friendly-ntt.md */ template< typename T > struct FormalPowerSeriesFriendlyNTT : vector< T > { using vector< T >::vector; using P = FormalPowerSeriesFrie...
/**************************************************************************** * * Copyright (C) 2016, 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Re...
#include "pnc/draco_pnc/draco_tci_container.hpp" #include "pnc/draco_pnc/draco_task/draco_angular_momentum_task.hpp" #include "pnc/draco_pnc/draco_task/draco_com_task.hpp" DracoTCIContainer::DracoTCIContainer(RobotSystem *_robot) : TCIContainer(_robot) { util::PrettyConstructor(2, "DracoTCIContainer"); YAML:...
#include "L1Trigger/Phase2L1ParticleFlow/interface/LinearizedPuppiAlgo.h" #include "DataFormats/L1TParticleFlow/interface/PFCandidate.h" #include "FWCore/Utilities/interface/Exception.h" #include "DataFormats/Math/interface/deltaR.h" #include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h" #include "Math/ProbFunc.h" ...
 #include "MyGLWidget.hpp" #ifdef __linux__ #include <sys/time.h> struct vrtx { GLint x; GLint y; GLubyte r; GLubyte g; GLubyte b; }__attribute__((packed)) line_geo[] = { // x, y, r, g, b { 1, 1, 255, 0, 0 }, { 1, 2, 0, 255, 0 }, { 1, 2, 0, 255, 0 }, { 2, 2, 255, 0, 0 }, { 2, 2, 255, 0, 0 }, { 2,...
/* * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include <random> #include <algorithm> #include <iostream> #include <numeric> #include "particle_filter.h" #define NUMBER_OF_PARTICLES 101 using namespace std; void ParticleFilter::init(double x, double y, double theta, double std...
#include <iostream> #include <fstream> #include <algorithm> #include <string> #include <vector> extern "C" { #include <bsp.h> #include <stdlib.h> #include <math.h> } using namespace std; class objeto { public: char tipo; double cord1[2]; double cord2[2]; int orden[2]; double distancia; objeto() { ti...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.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; either version 2 of the License, or * (at your option) any later version....
#include "CalibTracker/SiStripESProducers/plugins/fake/SiStripFedCablingFakeESSource.h" #include "CalibFormats/SiStripObjects/interface/SiStripFecCabling.h" #include "CalibFormats/SiStripObjects/interface/SiStripModule.h" #include "CalibTracker/Records/interface/SiStripHashedDetIdRcd.h" #include "CalibTracker/SiStripCo...
/* retype_swc_plugin.cpp * This is a test plugin, you can use it as a demo. * 2014-03-13 : by <NAME> */ #include "v3d_message.h" #include <vector> #include "retype_swc_plugin.h" #include "basic_surf_objs.h" #include <iostream> #include "../../../released_plugins/v3d_plugins/istitch/y_imglib.h" #include "../../../...
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <fcntl.h> #include <unistd.h> #include <limits.h> #include <errno.h...
/**------------------------------------------------------------------------- @example flash_memory_demo.cpp @brief Example code using SPI Flash memory @author <NAME> @date Mars 8, 2019 @license Copyright (c) 2019, I-SYST, all rights reserved Permission to use, copy, modify, and distribute this software...
#include "StaticEvaluator.h" #include "GameState.h" #include "Move.h" #include "Piece.h" #include <cassert> namespace { float constexpr KING_PROPERTY_VALUE = 4.0f; float constexpr QUEEN_PROPERTY_VALUE = 9.0f; float constexpr BISHOP_PROPERTY_VALUE = 3.0f; float constexpr KNIGHT_PROPERTY_VALUE = 3.0f; float con...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
#include "ar_track_alvar/MultiMarker.h" #include "highgui.h" using namespace std; using namespace alvar; struct State { IplImage *img; stringstream filename; double minx, miny, maxx, maxy; // top-left and bottom-right in pixel units MultiMarker multi_marker; // General options bool prompt; ...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "attributematchfeature.h" #include "utils.h" #include "valuefeature.h" #include <vespa/searchlib/fef/featurenamebuilder.h> #include <vespa/searchlib/fef/fieldinfo.h> #include <vespa/searchlib/fef/propertie...
#include "GLSLProgram.h" #include <fstream> using std::ifstream; using std::ios; using std::string; #include <sstream> #include <sys/stat.h> namespace GLSLShaderInfo { struct shader_file_extension { const char *ext; GLSLShader::GLSLShaderType type; }; struct shader_file_extension extens...
/* * Copyright 2010-2017, Haiku, Inc. All Rights Reserved. * Copyright 2009, <NAME>. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <EMAIL> */ #include <stdio.h> #include <stdlib.h> #include <vector> #include <Alert.h> #include <Box.h> #include <Button.h> #includ...
#include <Arduino.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <I2CKeyPad.h> #include <OneWire.h> #include <DallasTemperature.h> // ================ machine states ================ #define stateA0 300 #define stateA1 301 #define stateA2 302 #define stateB0 200 #define stateB1 201 #define stateB2 202 #...
/* Scape.cc Copyright 2004-13 <NAME> <<EMAIL>> http://quitte.de/dsp/ */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later ve...
#include "SDL.h" #include "SDL_ttf.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <vector> // window params const int WIDTH = 640, HEIGHT = 480; float ROUNDS = 1; bool IS_RUNNING = true; // ``ball params'' const int BALL_SIZE = 20; float BALL_X = (WIDTH / 2) - (BALL_SIZE / 2); ...
#include <stdlib.h> #include <ctype.h> #include <stdio.h> #include "agg_basics.h" #include "agg_rendering_buffer.h" #include "agg_rasterizer_scanline_aa.h" #include "agg_scanline_u.h" #include "agg_renderer_scanline.h" #include "agg_path_storage.h" #include "agg_conv_transform.h" #include "agg_trans_affine.h" #include ...
constexpr int ntt_mod = 998244353, ntt_root = 3; // 1012924417 -> 5, 924844033 -> 5 // 998244353 -> 3, 897581057 -> 3 // 645922817 -> 3; template <u32 M> struct modint { u32 val; public: static modint raw(int v) { modint x; x.val = v; return x; } modint() : val(0) {} template <class T> modint(T v)...
#include "ide.h" int ReadTemplateType(CParser& p) { static const char *nm[] = { "id", "filename", "option", "select", "text" }; for(int i = 0; i < __countof(nm); i++) if(p.Id(nm[i])) return i; p.ThrowError("Unknown type"); return 0; } PackageTemplate ReadTemplate(const char *filename) { PackageTemplate pt; ...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2009, Anima Vitae Ltd. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
#include <future> #include <iostream> #include <regex> #include <string> #include <json.hpp> #include "automaton/core/network/tcp_implementation.h" #include "automaton/core/cli/cli.h" #include "automaton/core/data/factory.h" #include "automaton/core/data/protobuf/protobuf_factory.h" #include "automaton/core/data/prot...
// Copyright 2013 <NAME>. // // Author: <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mo...
//===- Builders.cpp - MLIR Declarative Linalg Builders --------------------===// // // 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 // //===---------------------------...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 <NAME> mark a borgerding net // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at ht...
#include "../pch.h" #include <unordered_set> #include "MapParser.h" MapParser* MapParser::instance = nullptr; MapParser::~MapParser() { std::map <std::string, GameMap*>::iterator it; for (it = gameMaps.begin(); it != gameMaps.end(); it++) { delete it->second; it->second = nullptr; } gameMaps.clear(); } bool...
/* Copyright 2020 Fixstars 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 agreed to in writing, softwa...
/***************************************************** * Arduino example for MD25 and LCD03 * * MD25 is controlled using I2C and the LCD03 * * is controlled using serial * * * * By <NAME> 2012 ...
// Author: <NAME> - <EMAIL> // Got inspiration from: https://github.com/BirchJD/RPi_433MHz #include <Arduino.h> #include <ESP8266WiFi.h> // Pin variables #define BUTTON_D0 16 #define RX_D3 0 #define TX_D1 5 //Communication variables // Digital level to switch transmitter off. #define TX_OFF_LEVEL 0 // Digital lev...
#include <Siv3D.hpp> #include "wm4s3d.hpp" using namespace std; void DrawIR(Wii& wii); void Main() { Wii wii[4]; Font guiFont(12), font(18); Window::Resize(960, 480); // 左上 GUI guiControlloer(GUIStyle::Default); guiControlloer.addln(L"Controller", GUIRadioButton::Create( { L"1P", L"2P", L"3P", L"4P" }, 0u)...
#include "IconGenerator.hpp" int IconGenerator::generate_icon_file(const String & destination){ File font_file; u32 max_icon_width = 0; u32 max_icon_height = 0; u32 area; bool is_destination_valid = destination.is_empty() == false; String output_name = destination; if( FileInfo::suffix(destination).is_empty(...
#include <cstdlib> #include <iostream> #include <vector> #include <omp.h> #include <cmath> #include <trng/yarn2.hpp> #include <trng/uniform01_dist.hpp> #include <trng/normal_dist.hpp> #include <algorithm> #include <fstream> double lLikelihood(double t1, double t2); double lprior(double t1, double t2); using namespace...
// textureslime.cpp // // This program uses the libnoise library to generate texture maps consisting // of shiny green slime. // // Copyright (C) 2004 <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 Fre...
#include "../priority_deque.hpp" #include "priority_deque_verify.hpp" #include <vector> #include <queue> #include <iostream> #include <stdint.h> #include <time.h> #include <algorithm> int main(); //! @todo More tests! #define BENCHMARK #define VERIFY_HEAP template <typename pq_t> void benchmark_priority_queue (uns...
/* Copyright (c) 2020-2021 Skyward Experimental Rocketry * Author: <NAME> * * 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 (C) 2008-2010 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software ...
#include "peglib.h" #include <iostream> #include <string> #include <sstream> #include <fstream> #include <streambuf> using namespace peg; using namespace std; // helper for repeating output struct repeat{ repeat(const char* s_, std::size_t num_):s(s_), num(num_){} const char* s; std::size_t num; }...
/** * @Author: <NAME> * @Date: 2016-07-18T00:24:20+08:00 * @Email: <EMAIL> * @Last modified by: <NAME> * @Last modified time: 2016-07-18T00:41:24+08:00 * @Inc: Microsoft, Google, Airbnb * @Difficulty: Hard * @Tag: Backtracking, Trie */ /* Given a 2D board and a list of words from the dictionary, find all words in...
/* * Copyright (c) 2018-2019 Confetti Interactive Inc. * * This file is part of The-Forge * (see https://github.com/ConfettiFX/The-Forge). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional inf...
/***************************************************************************** bamToBed.cpp (c) 2009 - <NAME> Hall Laboratory Department of Biochemistry and Molecular Genetics University of Virginia <EMAIL> Licenced under the GNU General Public License 2.0 license. **************************************...
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define SZ(x) ((int)x.size()) #define lowbit(x) x&-x #define pb push_back #define ls (u<<1) #define rs (u<<1|1) #define ALL(x) (x).begin(),(x).end() #define UNI(x) sort(ALL(x)),x.resize(unique(ALL(x))-x.begin()) #define GETPOS(c,x) (lower_b...
/** * \file SocketTCP.cpp * \details Linux SocketTCP Class - Definitions * \author <NAME> * \author <NAME> * \author <NAME> * \date May 4, 2019 */ /* Standard C++ Library headers */ #include <string> #include <sstream> #include <iostream> #include <exception> #include <random> /* Standard C Library Headers */ #includ...
#include "action_cart.h" #include <kdl/frames.hpp> #include "cc2.h" using namespace KDL; using namespace std; MoveAbsAction::MoveAbsAction(std::vector<double> despos,CartesianController* ptr,int tt) { for (int i=0;i<3;i++) des[i]=despos[i]; //std::cout<<rel[3]<<"---"<<std::endl; t_end=tt; //calibration=fal...
#include <QCoreApplication> #include <QCommandLineParser> #include <QFile> #include <QStringList> #include <QString> #include <QTextStream> #include <QDomDocument> #include <QDebug> #include <QDateTime> #include <filesystem> #include <optional> #include <string> using namespace std; using path = std::filesystem::path;...
// testing out arrays and multidimensional arrays in C++ /** * @ref : cf. 3.5. Arrays of Lippman, Lajoie, Moo, C++ Primer 5th ed. * */ #include <iostream> // std::cout, std::fixed #include <iomanip> // std::setprecision #include <cmath> // expf, tanhf #include <string> float add_arr1d( const int N_i...
#include "SimpleObjLoader.h" #include <fstream> #include <sstream> #include <chrono> using namespace sunty; typedef struct { glm::vec3 v; glm::vec2 vt; glm::vec3 vn; glm::vec3 vg; } AlignedVertex; typedef struct { uint32_t i[3]; } Face; SimpleObjLoader::SimpleObjLoader() { } SimpleObjLoader::~Simpl...
/* The following code was based on code from the following location: http://www.graphics.cornell.edu/online/formats/rgbe/ It includes the following information : "This file contains code to read and write four byte rgbe file format developed by <NAME>. It handles the conversions between rgbe and p...
// Copyright (c) 2016 <NAME> // 2020 <NAME> // SPDX-License-Identifier: BSL-1.0 #include <Poco/Error.h> #ifndef _MSC_VER #include <poll.h> #else #include <winsock2.h> #endif #include <algorithm> #include <memory> #include <string> #include <cstring> #include <vector> #include "IIOSupport.hpp" #include <...
#include "allocore/graphics/al_Font.hpp" #include <vector> #if defined (__APPLE__) || defined (OSX) #include "ft2build.h" #include FT_FREETYPE_H #include FT_OUTLINE_H #include FT_GLYPH_H #define FONT_OSX 1 #define FONT_SYSTEM_FONTS 1 #elif defined(__linux__) #include <ft2build.h> #include FT_FREETYPE_H #...
#include <iostream> #include <string> #include <fstream> #include <cstdint> #include <vector> #include <iterator> #include <sstream> #include <ctime> #include <iomanip> #define ERROR_BASE (9000) #define OVER_SECTOR_ERROR (ERROR_BASE + 1) #define OPEN_VHD_ERROR (ERROR_BASE + 2) #define OPEN_BIN_ERROR (ERROR_BASE + 3) ...
#include <set> #include <string> #include <cassert> #include <cstdlib> #include <cstdio> #include <cstring> #include <cctype> #ifndef HAVE_LLVM #error "This code needs LLVM enabled" #endif #include <llvm/Config/llvm-config.h> #if (LLVM_VERSION_MAJOR < 3) #error "Unsupported version of LLVM" #endif #include <dg/too...
#include <LibrePTC.h> // Sets up the clocks needed for the PTC module. // The clock setup is described in the touch.c implementation in the ASF examples // I've replaced the ASF calls with their low-level equivilents // Funny enough, the Generic Clock Generator 3 is not actually used by arduinio core // although it ...
/* * DataAbstractor.cpp * * Created on: Jun 19, 2014 * Author: vineet */ #include "DataAbstractor.h" #include "voxels.h" #include "voxel_data.h" DataAbstractor::DataAbstractor() { // TODO Auto-generated constructor stub } DataAbstractor::~DataAbstractor() { // TODO Auto-generated des...
/* ************************************************************************ * Copyright 2018-2021 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "bytes.hpp" #include "cblas_interface.hpp" #include "flops.hpp" #include "near.hpp" #incl...
/* * Copyright (c) <2017> Side Effects Software 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, mer...
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT AN...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
/* * Copyright (c) 2016 RISC-V Foundation * Copyright (c) 2016 The University of Virginia * 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 ab...
#include "postalt/workflow.h" #include "postalt/threadpool.h" #include "postalt/timer.h" #include <thread> #include <chrono> #include <functional> #include <iostream> #include <spdlog/spdlog.h> using namespace postalt; AccessBufferStatus::AccessBufferStatus() { } AccessBufferStatus::AccessBufferStatus(int num) : ...
/* testutils.cc: Xapian-specific test helper functions. * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2003,2004,2007,2008,2009 <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 Fo...
// Holds training samples for SVM training / testing // Author: <NAME> <<EMAIL>> #include "sample_db.h" #include <yaml-cpp/yaml.h> #include <opencv2/highgui/highgui.hpp> namespace fs = boost::filesystem; // FIXME: Can we get rid of these? constexpr int NUM_PROPOSALS = 1000; constexpr int NUM_FEATURES = 4096; const...
/* * Copyright 2017-2019 Baidu 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...
/* * File: SDFLoader.cpp * Author: <NAME> * * Created on 8. Juli 2014, 18:52 */ #include <algorithm> #include "SDFloader.hpp" #include "Camera.hpp" #include "Box.hpp" #include "Sphere.hpp" #include <iostream> #include <fstream> #include <string> #include <sstream> #include "Material.hpp" #include "LightPoint....
/* ### * IP: GHIDRA * * 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 writin...
#pragma once #include <iostream> #include <set> #include <deque> #include <unordered_map> #include <async/result.hpp> #include <boost/intrusive/rbtree.hpp> #include <frg/container_of.hpp> #include <hel.h> #include <fcntl.h> #include "file.hpp" using DeviceId = std::pair<int, int>; enum class VfsType { // null me...
#include "AssimpModelLoader.hpp" #include <cassert> #include <stdexcept> #include "fmt/core.h" #include "assimp/Importer.hpp" #include "assimp/scene.h" #include "assimp/postprocess.h" void assimpLoadModel(char const *model_path, std::vector<Vertex> &vertex_list, std::vector<uint32_t>...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "MFRemapper.H" #include "MFAliasFactory.H" #include "EBPWLFineInterp...
// To build this test, type: // make Platform=gcc Mode=Debug Project=pizzachili LDFlags="-lpizzachili -Lprojects/library/lib/" #include <iostream> #include <iomanip> #include <string> #include <vector> #include <fstream> #define SEQAN_DEBUG #define SEQAN_TEST #include <seqan/sequence.h> #include <seqan/ind...
//------------------------------------------------------------------------------------------------------------- // PURPOSE --------- This program determines both the longest word and frequencies of different english words. // AUTHOR ---------- <NAME> // DATE ------------ 27 october 2016 thursday // SOURCES --------- no...
#include <_gadget/gadget.fileobject.h> #include <_gadget/gadget.fileview.h> #include <_gadget/gadget.image.h> #include <_type/type.mime.h> #include <_type/type.winds.h> #include <_type/type.direntry.shortcut.h> #include <_type/type.gadget.helpers.h> #include <_controller/controller.font.h> #include <_controller...
#include <csignal> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <sstream> #include <thread> #include <chrono> #include <fcntl.h> #include <errno.h> #include <termios.h> #include <unistd.h> #include "byte_stream.h" int serial = -1; struct ...
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "common/virtual_fs.h" #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include <pkgmgr-info.h> #include <tzplatform_config.h>...
#include "CameraMessageInterface.hpp" using namespace std; //gets today's date in YYYY-MM-DD format string getDate() { time_t now = time(nullptr); tm *ltm = localtime(&now); string year = to_string(1900 + ltm -> tm_year); string month = to_string(1 + ltm -> tm_mon); string day = to_string(ltm -> tm_mday); ...
/* -------------------------------------------------------------------------- * * OpenSim: CoupledBushingForce.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. ...
/* * OTOplug1200.cpp - FSK 1200bps Arduino(TM) software sound modem library * * Copyright 2010-2011 REINFORCE lab. * Copyright 2012 WA-FU-U, LLC. * * Licensed under The MIT license. (http://www.opensource.org/licenses/mit-license.php) */ #include "OTOplug1200.h" #include <avr/io.h> #include <avr/interrupt....
#include "r_fakey/r_fake_camera.h" #include "r_utils/r_file.h" #include "r_utils/r_string_utils.h" #include "r_utils/r_exception.h" #ifdef IS_WINDOWS #include <Windows.h> #endif #ifdef IS_LINUX #include <signal.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #endif using namespace r_fakey;...
// // DrawStatus.cpp // render/src/render // // Created by <NAME> on 6/29/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 "DrawStatus.h" #include <algorithm> #in...
/** * @file ShapeTransformer_.cpp * @brief mex interface for cv::ShapeTransformer * @ingroup shape * @author Amro * @date 2017 */ #include "mexopencv.hpp" #include "mexopencv_shape.hpp" using namespace std; using namespace cv; namespace { // Persistent objects /// Last object id to allocate int last_id = 0; /// ...
#include <iostream> #include <fstream> #include <string> #include <conio.h> #include <windows.h> using namespace std; //Structure defining //For students struct student { string fname;//for student first name string lname;//for student last name string Registration;//for Registration No number st...
// Copyright 2019 Bloomberg Finance L.P // // 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...
#include <assert.h> #include "asserts.h" #include "Analyzer.h" #include "AudioMath.h" #include "FFT.h" #include "FFTData.h" #include "SinOscillator.h" #include "AudioMath.h" int Analyzer::getMax(const FFTDataCpx& data) { return getMaxExcluding(data, std::set<int>()); } int Analyzer::getMaxExcluding(const FFTDat...
#include <iostream> #include <thread> #include <winsock2.h> #include <ws2tcpip.h> #define DEFAULT_BUFLEN 512 using namespace std; void clientTask(string clientId, int ownPort, int receiverPort, int prevPor, bool token, bool connectionType); void clientSocketTCP(string myId, int myPort, int receiverPort, string msg)...
// // Created by auyar on 3.02.2021. // #include "cudf/cudf_all_to_all.hpp" #include <glog/logging.h> #include <chrono> #include <thread> #include <net/mpi/mpi_communicator.hpp> #include <cudf/strings/strings_column_view.hpp> #include <cudf/table/table.hpp> #include <cudf/io/csv.hpp> //#include <cuda_runtime.h> us...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <map> #include <string> #include "yyerror.h" // // // // // // // // // // // // // // // // // // // // // // Error message printing // // Must make messages look nice. For example: // msg = "syntax error, unexpected ',', expecting BOOL or CHAR or ...
#include "stdafx.h" #include "xrface.h" //#include "build.h" #include "xrdeflector.h" #include "xrLC_globaldata.h" #include "serialize.h" #include "lightmap.h" volatile u32 dwInvalidFaces; //= 0; u32 InvalideFaces() { return dwInvalidFaces; } const Shader_xrLC& base_Face::Shader() const { VERIFY(inlc_global_data(...
// gaClass.cpp, city3114_proc2, <NAME>, 2020 #include "gaClass.h" gaClass::gaClass() { // init cout << "[I] Initialising ga object . . . done" << "\n"; cout << "\n"; } gaClass::~gaClass() { // bye cout << "[I] Deleting ga object . . . done" << "\n"; cout << "[I] Program quitting . . . done" << "\n"; } int gaCl...
// Copyright (C) 2013-2018 Altera Corporation, San Jose, California, USA. 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 limita...
/* * ImgProcess.cpp * * Author: ROBOTIS * */ #include <string.h> #include "sensor/vision/imgprocess.h" using namespace Thor; void ImgProcess::YUVtoRGB(FrameBuffer *buf) { unsigned char *yuyv, *rgb; int z = 0; yuyv = buf->m_YUVFrame->m_ImageData; rgb = buf->m_RGBFrame->m_...
/** * Copyright (c) 2020 Leedehai. All rights reserved. * Use of this source code is governed under the MIT LICENSE.txt file. * ----- * The implementation of ctimer (see README.md for more info). * Most could be in C, but I like C++'s grammar sugars like r-strings. */ #include <stdio.h> #include <string.h> #inc...