text
stringlengths
3.08k
22k
#include "HIN_Graph.h" #include "DataReader.h" #include "TopKCalculator.h" #include "Utils.h" #include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <cstring> #include <cctype> #include <ctime> #include <vector> using namespace std; void output(vector<pair<vector<double>, vector<int>>>...
#include <fstream> #include "Renderer.h" #include "particle_system/DgParticleData.h" #include "DgR3Matrix.h" #include "DgMakeGrid.h" #include "imgui/imgui.h" #include "Types.h" #include "UI.h" bool Renderer::Init(Dg::ParticleData<float> * a_parData) { if (a_parData == nullptr) { return false; } int coun...
#include "SpcHal.hpp" #include "Arduino.h" #define PORT_0_PIN 8 #define PORT_1_PIN 9 #define READ_PIN 10 #define WRITE_PIN 11 #define DATA_0_PIN 12 #define DATA_1_PIN 13 #define DATA_2_PIN 2 #define DATA_3_PIN 3 #define DATA_4_PIN 4 #define DATA_5_PIN 5 #define DATA_6_PIN 6 #define DATA_7_PIN 7 #define RESET_PIN A0...
/* ID: ivan.bu1 PROG: fence4 LANG: C++ */ #include <iostream> #include <iterator> #include <fstream> #include <string> #include <vector> #include <algorithm> #include <cstdio> #include <cctype> #include <cstring> #include <cassert> #include <cmath> using namespace std; int n; struct point { l...
#include "burnint.h" #include "z80_intf.h" #include "flt_rc.h" #include "driver.h" extern "C" { #include "ay8910.h" } static UINT8 soundlatch; static UINT8 *z80rom; static UINT8 *z80ram; static INT32 z80_select = 0; static void filter_write(INT32 num, UINT8 d) { INT32 C = 0; if (d & 1) C += 220000; ...
/* * Copyright (c) 2020 Arm Limited * SPDX-License-Identifier: Apache-2.0 */ #include "mbed.h" #include "rtos/ThisThread.h" #include "NTPClient.h" #include "certs.h" #include "iothub.h" #include "iothub_client_options.h" #include "iothub_device_client.h" #include "iothub_message.h" #include "azure_c_shared_utility...
#include "Enemy.h" Enemy::Enemy(EnemyType type, float x, float y, is::GameDisplay *scene): MainObject(x, y), GroundDetection(), Type(type), m_scene(scene), m_awakeTime(0.f), m_timeCancelCollision(0.f), m_timeHurt(0.f), m_isBeated(false), m_isTouched(false), m_isKicked(false) { ...
#include "pickle.h" namespace py = pybind11; using namespace std; using namespace pybind11::literals; py::str run_length_dict(const py::dict &d) { if (d.empty()) return py::str("0#", 2); auto extra_ = d.cast<py::str>(); extra_ = "{}#{}"_s.format(py::len(extra_), extra_); return extra_; } py::...
/********************************************************************************** * Copyright (c) 2012 by Virginia Polytechnic Institute and State University. * * The local realignment portion of the code is derived from the Indel Realigner * code of the GATK project, and the I/O of bam files is extended from the *...
#include <FlightSimOutputs.h> /* * Data outputs for Midwest737Simulations Multi Output card * * (c) <NAME> */ MultiOutputBoard *MultiOutputBoard::firstOutputBoard = nullptr; #ifdef FLIGHTSIM_INTERFACE FlightSimOutputElement *FlightSimOutputElement::firstOrphan = nullptr; FlightSimOutputElement *FlightSimOutputEl...
#include "version/version.hpp" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <imgui.h> #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> #include <string> #include <vector> #include <chrono> #include <stdio.h> #include <csignal> #include "version.hpp" #include "simWindow.hpp" #include "image.hpp" ...
// Copyright 2016-2021 <NAME> and Stratify Labs, Inc; see LICENSE.md #include <printer/Printer.hpp> #include <var.hpp> #include "ux/sgfx/Palette.hpp" printer::Printer &printer::operator<<( printer::Printer &printer, const ux::sgfx::Palette &palette) { for (size_t i = 0; i < palette.colors().count(); i++) { ...
//***************************************************************** // Copyright 2015 MIT Lincoln Laboratory // Project: SPAR // Authors: OMD // Description: Test of THRunScriptCommand and THRunScriptHandler. // // Modifications: // Date Name Modification // ---- ...
#include "solver/pardiso_solver.h" #include "common/common.h" #ifdef PARDISO_AVAILABLE // The following C-style code is required by Pardiso so we do not change it. #include <stdio.h> #include <stdlib.h> #include <math.h> extern "C" void pardisoinit (void*, int*, int*, int*, double*, int*); extern "C" void pardiso(void...
#include <cstdio> #include <cstring> #include <cstdlib> #include <vector> #include <map> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netinet/tcp.h> #include "helpers.h" using namespace std; void usage(char *file) { fprintf(stderr, "Us...
/* * Copyright (c) 2008-2015 Freescale Semiconductor, Inc. * Copyright 2016-2018 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "stdafx.h" #include <iostream> #include <fstream> #include <sstream> #include <stdlib.h> #include <stdexcept> #include <stdio.h> #include "options.h" #...
#include <sys/time.h> #include <opencv2/imgproc/imgproc.hpp> #include "Video.h" #include "HiResTimer.h" #include "utils.h" VideoInput::VideoInput(): frameCount(1), frameRate(0), captureFromVideo(false), resolutionParameter(0), _capture(cv::VideoCapture(0)) { timeval time; gettimeofday(&time, NULL); _lastFrame...
/* FFT libray Copyright (C) 2010 <NAME> Copyright (C) 2014 <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 version 3 of the License, or (at your option) any later version. Thi...
#include <G4SystemOfUnits.hh> #include <G4LogicalVolume.hh> #include <G4PVPlacement.hh> #include <G4NistManager.hh> #include <G4SystemOfUnits.hh> #include <G4VisAttributes.hh> #include <G4SDManager.hh> #include <G4LogicalVolumeStore.hh> #include <G4UniformMagField.hh> #include <G4FieldManager.hh> #include <G4Transporta...
// Copyright (c) 1997-1999 Microsoft Corporation #include "precomp.h" #include "chklist.h" #include "Principal.h" #include "CHString1.h" //------------------------------------------------------------- CPrincipal::CPrincipal(CWbemClassObject &userInst, SecurityStyle secStyle) : m_secStyle(secStyle), ...
// // Disk.cpp // Clock Signal // // Created by <NAME> on 13/09/2016. // Copyright 2016 <NAME>. All rights reserved. // #include "Disk.hpp" #include "../../../Storage/Disk/Controller/DiskController.hpp" #include "../../../Storage/Disk/Encodings/CommodoreGCR.hpp" #include "../../../Storage/Data/Commodore.hpp" #inc...
/* Copyright 2011 <NAME>, <NAME> * Copyright 2011 SRI International * See LICENSE for other credits and copying information */ #include <event2/buffer.h> #include <event2/event.h> #include <string> #include "util.h" #include "connections.h" #include "protocol.h" namespace { struct null_config_t : config_t {...
// Copyright 2017 AUV-IITK #include "lib.hpp" #include <task_buoy/buoyConfig.h> namespace pre_processing{ cv::Mat balance_white(cv::Mat src, float parameter){ // same for all the tasks float discard_ratio = parameter; cv::Mat mat = src; int hists[3][256]; memset(hists, 0, 3*256*sizeof(int)); ...
#include "serverconnection.h" #include "ftpserver.h" // Destructor, clean up all the mess serverconnection::~serverconnection() { std::cout << "Connection terminated to client (connection id " << this->connectionId << ")" << std::endl; delete this->fo; close(this->fd); this->directories.clear(); t...
/* ************************************************************************ * Copyright 2018-2021 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "rocblas.h" #include "rocblas_arguments.hpp" // ----------------------------------------...
#include <cstdlib> #include <ctime> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include "disk.hpp" using namespace std; struct record { int id; char fn[16]; char ln[16]; char ssn[16]; char un[16]; char pw[32]; }; const int RECORDS_PER_BLOCK =...
#include <iostream> #include <iomanip> #include "ZWaveNetwork.hpp" #include "FibaroFgr222.hpp" // DiscoverNodesRequest ZWaveNetwork::DiscoverNodesRequest::~DiscoverNodesRequest() { } int ZWaveNetwork::DiscoverNodesRequest::getRequest(uint8_t * data) { return 0; } void ZWaveNetwork::DiscoverNodesRequest::onRespons...
#include <iostream> #include <vector> #include <climits> #include <set> #include <algorithm> using namespace std; struct Ligacao { int destino; int custo; }; vector< vector<Ligacao> > grafo; vector<int> filiais; vector<int> pesos_h; vector<int> caminhos; vector<int> perda; int n_localidades; int n_filiais; int n_lig...
#include "model.h" #include "iostream" using namespace::std; CModel::CModel() { // quark masses set by user! top=Particle("top"); top.set_charge(2.0/3.0); top.set_Y(1.0); top.set_width(0.0); // bottom=Particle("bottom"); bottom.set_charge(-1.0/3.0); bottom.set_Y(1.0); b...
#include "stdafx.hxx" #include "mws-tex-atlas.hxx" #include "mws/mws-camera.hxx" #include "mws/mws-com.hxx" #include "gfx.hxx" #include "gfx-quad-2d.hxx" #include "gfx-tex.hxx" #include <array> mws_sp<mws_tex_atlas> mws_tex_atlas::nwi(uint32_t i_width, uint32_t i_height, uint32_t i_depth) { mws_sp<mws_tex_atlas> ...
/****************************************************************************/ /** * @file GridBase.cpp * @author <NAME> */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualization Laboratory, Kyoto University. * All rights reserved. * See http://www.v...
/* * GameRenderer.cpp * * Created on: Aug 16, 2015 * Author: axel */ #include <stddef.h> #include <SDL2/SDL_blendmode.h> #include <SDL2/SDL_pixels.h> #include <SDL2/SDL_rect.h> #include <SDL2/SDL_render.h> #include <SDL2/SDL_timer.h> #include <cstdint> #include <iomanip> #include <sstream> #include <utility...
#include <iostream> #include <cmath> #include <stdexcept> #include <vector> #include <utility> #include <algorithm> #include <memory> #include <functional> typedef std::pair<double,double> Tacka; class Trougao{ std::vector<Tacka> v= std::vector<Tacka>(3); public: Trougao(const Tacka &t1, co...
#include "pch.h" #include "Application.h" #include "UserInterface.h" #include "Updater.h" #include "NavigatorLayer.h" #include "../resource/resource.h" App::App() : Battery::Application(0, 0, APPLICATION_NAME) { SetWindowFlag(WindowFlags::FRAMELESS); SetWindowFlag(WindowFlags::NO_TASKBAR); SetWindowFlag(WindowFlag...
#include <algorithm> #include <cassert> #include <filesystem> #include <fstream> #include <iostream> #include <random> #include <string> #include <system_error> #include <unordered_set> #include <vector> namespace type_ratio { namespace fs = std::filesystem; using std::ifstream; using std::ofstream; using std::pair; ...
/*-----------------------------------------------------------| | Copyright (C) 2016 <NAME>, <NAME>, | | <NAME> | | | | This file is distributed under the terms of the BSD | | Berkeley Software Dist...
#ifdef _WIN32 #include <GL/glut.h> #define FRAME_MS 16.666*2 #else #include <GLUT/glut.h> #define FRAME_MS 16.666 #endif #include <iostream> #include "GLWater.h" #include "Water.h" #include "Ground.h" #include "Skybox.h" /** * Simulates a water's surface using OpenGL. Loosely follows a few of the * principles in t...
/** * (c) Copyright 2019 locha.io project developers * Licensed under a MIT license, see LICENSE file in the root folder * for a full text. */ #include <stdint.h> #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <algorithm> #include <random> #include <chrono> #include <fstream> ...
#include "../headers/compositor.h" // Compositor setup Compositor::Compositor():QWaylandCompositor() { // Start compositor create(); // Set the screen resolution setScreenResolution(QGuiApplication::primaryScreen()->size()); // Event when wayland surface is created connect(this, &QWaylandCo...
#pragma once #include <windows.h> #include <d3d9.h> #include <cstdint> #include "PatchMan.hpp" struct VC9String { enum { _BUF_SIZE = 16 }; void* alloc; union { char buf[16]; char* ptr; } body; size_t size; size_t bufsize; operator char* () { return bufsize >= _BUF_SIZE ? body.ptr : body.buf; } operat...
/* ** Haaf's Game Engine 1.7 ** Copyright (C) 2003-2007, Relish Games ** hge.relishgames.com ** ** hgeFont helper class implementation */ #include "../../include/hgefont.h" #include <stdio.h> const char fnt_header_tag[] = "[HGEFONT]"; const char fnt_bitmap_tag[] = "Bitmap"; const char fnt_char_tag[] = "Char"; HGE*...
#include <bits/stdc++.h> using namespace std; // Common Utilities //______________________________________________________________________________ // Macros #ifdef D3BUG #define cerrd if (D3BUG) cerr #else #define cerrd if (false) cerr #endif // Types template <typename T> using vector1D = vector<T>; templa...
/* ================================================================================== Copyright (c) 2018-2019 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
/* * Display.cpp * * Created: 8/9/2021 9:59:25 AM * Author: ASUS */ #include "Display.h" #include "keypad.h" #include "RGBled.h" #include <util/_delay_ms.h> Display::Display(){ //define the data direction DDRD = DDRD | 0b00111111; initLCD(); // initializing the LCD display }// end of the initializing ...
/*============================================================================ Copyright (C) 2017 <NAME> https://github.com/akitsu-sanae/adtpp Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================...
/* Neighand: Neighborhood Handling library The goal of this project is to find 3D neighbors efficiently. Read the documentation contained in the article "Query Sphere Indexing for Neighborhood Requests" for details. This program checks that the library works as intended <NAME>, 2006/7 Cod...
#include "common.hpp" #include "immintrin.h" #define M_BLOCK 72 #define N_BLOCK 4080 #define K_BLOCK 256 #define M_UNROLL 6 #define N_UNROLL 8 /* * Compute C += A*B for some really tiny subblocks of A, B, and C */ template <typename MatrixC> void my_dgemm_micro_kernel(int k, const double* A, const double* B, Matr...
/*************************************************************************** "Kabuki" Z80 encryption The "Kabuki" is a custom Z80 module which runs encrypted code. The encryption key is stored in some battery-backed RAM, therefore the chip has the annoying habit of stopping working every few years, when the b...
// Copyright 2020 The MACE Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
/* * ==================================================================== * 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 license...
// // Font.cpp // Engine2D // // Created by <NAME> on 9/25/11. // Copyright 2011 The Saints. All rights reserved. // #include <iostream> #include <stdio.h> #include <stdarg.h> #include <string.h> #include "Font.h" #include "Constants.h" Font::Font(const Texture2D &texture, char* name) : Sprite2D() { this->l...
#include <cstring> #include <getopt.h> #include "graph.h" #include "dist_edge_list.h" #include "hybrid_bfs.h" #include "lcg.h" #include "git_sha1.h" const struct option long_options[] = { {"graph_filename" , required_argument}, {"distributed_load" , no_argument}, {"heavy_threshold" , required_argument}...
#include <stdio.h> #include <iostream> #include <vector> #include <iostream> #include "gcp/util/Directives.h" #include "gcp/util/FitsBinTableReader.h" #include "gcp/pgutil/PgUtil.h" #include "gcp/program/Program.h" #include "gcp/fftutil/Image.h" #include "gcp/fftutil/Dft2d.h" #include "gcp/util/Coordinates.h" #inc...
/*********************************************************************** * ==================================================================== * -------------------------------- * IMU 6050 * -------------------------------- * * Author : <NAME> * Date : 02.01.2019 * * Revis...
#include <mapping_utils/obstacle_grid.h> ObstacleGrid::ObstacleGrid(Vec3f origin, Vec3f dim, float res) { val_unknown = -1; val_occ = 100; val_free = 0; val_even = 50; origin_ = Vec3i::Zero(); origin_d_ = Vec3f::Zero(); dim_ = Vec3i::Zero(); res_ = res; allocate(dim, origin); } void ObstacleGrid::...
/* Copyright (C) 2003-2013 by <NAME> <<EMAIL>> 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 software for any purpose, including commercia...
// Copyright 2017 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 "ui/events/ozone/evdev/gamepad_event_converter_evdev.h" #include <errno.h> #include <linux/input.h> #include <stddef.h> #include <stdint.h> #inc...
#include <numeric> #include <mkldnn_test_common.hpp> #include <gtest/gtest.h> #include <ideep.hpp> #include "test_ideep_common.hpp" using namespace ideep; template <typename data_t> class relu_tests: public ::testing::TestWithParam<relu_test_params<data_t>> { private: tensor src_; tensor grady_; protected: v...
#include "StdAfx.h" #include "Outline.h" #include "Miscs\NumericalSolver.h" #include <list> COutline::COutline(void) { } COutline::~COutline(void) { } void COutline::Add( int v0, int v1 ) { m_vecVertex[ v0 ].next = v1; m_vecVertex[ v1 ].prev = v0; } void COutline::ComputeDirection( int nNeighbor ) { double e[2]...
#include "player.h" #include <rtools\keys.h> #include <game\engine.h> Player::Player(){ arwing = new Arwing(); x = 0; y = 0; vx = 0; vy = 0; cvx = 0; cvy = 0; freeHW = 4; freeHH = 3; tilt = 0; tiltV = 0; cursorQuad = new GLO_Quad(Textures::get("../res/images/reticle.bmp")); } void Player::init(){ a...
#include "SANCtable.h" int SANCtable::ns1=0,SANCtable::ns2=0,SANCtable::ns3=0,SANCtable::ncos=0; double SANCtable::smin1=0,SANCtable::smax1=0; double SANCtable::smin2=0,SANCtable::smax2=0; double SANCtable::smin3=0,SANCtable::smax3=0; int SANCtable::iqed=0,SANCtable::iew=0,SANCtable::iborn=0; int SANCtable::g...
#include <include/FIFO.h> #include <interface/Circuit.h> #include <include/Component.h> #include <include/Ports.h> #include <ctime> #include <deque> #include <algorithm> #include <iostream> #include <boost/filesystem.hpp> #include <fstream> #include <stdint.h> #include <memory> #include <random> #include <limits> #incl...
#include "MeshOptimizer.h" #include "MyMesh.h" #include <algorithm> #include "vcg/complex/algorithms/clean.h" #include "vcg/complex/algorithms/crease_cut.h" #include <vcg/complex/algorithms/clustering.h> #include<vcg/complex/algorithms/isotropic_remeshing.h> #include<vcg/complex/algorithms/create/ball_pivoting.h> #incl...
/* * start rewrite from: * https://github.com/adafruit/Adafruit-GFX-Library.git */ #include "Arduino_ILI9331.h" #include "SPI.h" Arduino_ILI9331::Arduino_ILI9331(Arduino_DataBus *bus, int8_t rst, uint8_t r, bool ips) : Arduino_TFT(bus, rst, r, ips, ILI9331_TFTWIDTH, ILI9331_TFTHEIGHT, 0, 0, 0, 0) { } void Ardu...
#include "RubikCubeControl.h" #include <iostream> #include <fstream> #include <string> #include <sstream> #include <algorithm> RubikCubeControl::RubikCubeControl(const std::shared_ptr<RubikCube>& rubikCube) : m_rubikCube(rubikCube), m_running(true) { m_thread = std::thread([this]() { std::cout << "Welcome to the...
// Copyright 2021 <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 // // Unless required by applicable law or agreed to...
#include "mesh/surface_tet_mesh.h" #include "core/container/hash_map.h" float sliver_threshold = 0.0001; void SurfaceTriMesh::link_edge(edge_handle edge, edge_handle neigh) { //edge_handle prev_edge = out.edges[neigh]; //prev_edge -------> neigh //stable_edge_handle stable = get_stable(prev_edge); //map_s...
/**************************************************************************** Copyright (C) 2002-2006 <NAME> (<EMAIL>) This file is part of the QGLViewer library. Version 2.2.6-1, released on July 4, 2007. http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer libQGLViewer is free software; you can redistribute ...
/* * Online handwriting recognition * * Author: <NAME> * Github: PHANzgz * * Description: * With an accelerometer as a pen cap, data is sampled continuously and * filtered. The data is fed to the convolutional neural network which * also runs continously with the latest 2 seconds of accelerometer da...
#include "io.hpp" #include "json.hpp" #include "serialization.hpp" #include "util.hpp" #include <algorithm> #include <cctype> #include <fstream> #include <iostream> #include <string> #include <vector> namespace ogh = ogamehelpers; using json = nlohmann::json; std::vector<std::string> split(const std::string& str, ch...
/* * Copyright (c) <NAME> and contributors. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for details. */ // // Created by Tim on 19/06/2017. // #include "renderer.h" renderer::~renderer() { glfwDestroyWindow(window); delete window; } void renderer::drawLine(c...
// // Created by dragos on 01.07.2019. // #include "CommandParser.h" #include <lib/log.h> cstring analysis::ActionCall::EMPTY = "EMPTY"; namespace analysis { class print_t : public boost::static_visitor<std::ostream &> { std::ostream &os; public: bool print_args = false; print_t(std::ostream &os) : os(os) {} ...
// // Created by ss on 18-3-8. // #include <thundersvm/cmdparser.h> #include "gtest/gtest.h" class CMDTest : public testing::Test { protected: CMDParser cmdParser; SvmParam &param = cmdParser.param_cmd; static const int max_args = 64; const string traing_file_name = "train_dataset"; const string t...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
/* This file is part of the Automon Project (OBD Diagnostics) - http://www.automon.io/ Source Repository: https://github.com/donaloconnor/automon/ Copyright (c) 2015, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitte...
/* * VGMTrans (c) 2002-2019 * Licensed under the zlib license, * refer to the included LICENSE.txt file */ #include "NDSSeq.h" #include "NDSInstrSet.h" #include <fmt/format.h> #include <algorithm> #include <functional> constexpr int SRCH_BUF_SIZE = 0x20000; void NDSScanner::Scan(RawFile *file, void *info) { ...
// // Created by miroslav on 3/31/17. // #include "ClassNode.h" #include <codegen/FunctionType.h> #include <llvm/IR/Module.h> #include <ast/expressions/CallExprNode.h> #include <ast/expressions/NameExprNode.h> using namespace llvm; ClassNode::ClassNode(const std::string &name, const std::vector<StatementNode *> &st...
/*************************************************************************** qgsalgorithmsplitwithlines.cpp --------------------- begin : April 2017 copyright : (C) 2017 by <NAME> email : <EMAIL> ********************...
/*! * @file Adafruit_TCS34725.cpp * * @mainpage Driver for the TCS34725 digital color sensors. * * @section intro_sec Introduction * * Adafruit invests time and resources providing this open source code, * please support Adafruit and open-source hardware by purchasing * products from Adafruit! * * @se...
#include <stdio.h> #include "Matrix3x3.h" Matrix3x3 Matrix3x3::RGBTOXYZ = Matrix3x3(Vector3(0.5149, 0.2654, 0.0248), Vector3(0.3244, 0.6704, 0.1248), Vector3(0.1607, 0.0642, 0.8504)); Matrix3x3 Matrix3x3::XYZTORGB = Matrix3x3(Vector3(2.5623, -1.0215, 0.0752), Vector3(-1.1661,...
#include "curve.h" #include "extra.h" #ifdef WIN32 #include <windows.h> #endif #include <GL/gl.h> using namespace std; using namespace FW; namespace { // Approximately equal to. We don't want to use == because of // precision issues with floating point. inline bool approx(const Vec3f& lhs, const Vec3f& rhs) { const...
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*- // vi:set ts=4 sts=4 sw=4 noet : // Copyright 2008, The TPIE development team // // This file is part of TPIE. // // TPIE is free software: you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public ...
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Freescale Semiconductor, Inc. All rights reserved. // // Freescale Semiconductor, Inc. // Proprietary & Confidential // // This source code and the algorithms implemented therein constitute // confidential informat...
/*************************************************************************** qgsalgorithmextractbylocation.cpp --------------------- begin : April 2017 copyright : (C) 2017 by <NAME> email : <EMAIL> *****************...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#include <kernel.h> #include <kernel/module.h> #include <kernel/symbol.h> #include <lib/string.h> #include <proc/binfmt/elf.h> namespace { libcxx::list<module, &module::node> modules; // A ghetto version of strtok that accepts \0 const char* next_token(const char* string, const char* end) { const char* p = string...
#include "mesh.h" #include "boundary_conditions.h" #include <../include/stationary_study.h> using namespace M2DO_FEA ; StationaryStudy :: StationaryStudy (Mesh & mesh) : mesh (mesh) { element_matrices_computed = false ; } void StationaryStudy :: Print () { cout << "Stationary Study" ; } void StationaryStudy :...
#include "Helpers.h" #include <GL/gl.h> #include <GL/glu.h> #include <fviewer.h> #include <fivermain.h> #include <geom.h> void Helpers::drawCube( double P[], double VX[], double VY[], double VZ[] ) { glBegin(GL_QUADS); glNormal3f(VZ[0], VZ[1], VZ[2] ); glVertex3f(P[0] -VX[0]+VY[0]+VZ[0], P[1] -...
/// @file #include "hwlib.hpp" #include "A24C256.hpp" /// \brief /// Constuctor /// \details /// This constructor has one mandatory parameter; the I2C bus. The Address defaults to 0x50. /// The memorysize defaults to 256Kb. Changing this makes the use of other 24CXXXX chips possible. If /// an illegal amount of memo...
/** * This is a driver library for VS1053 MP3 Codec Breakout * (Ogg Vorbis / MP3 / AAC / WMA / FLAC / MIDI Audio Codec Chip). * Adapted for Espressif ESP8266 and ESP32 boards. * * version 1.0.1 * * Licensed under GNU GPLv3 <http://gplv3.fsf.org/> * Copyright © 2018 * * @authors baldram, edzelf, MagicCube, man...
/* * Whiteboard.cc * * Created by <NAME> on 21/12/11. * Copyright (c) 2011-2014, 2018 <NAME>. * 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 co...
/* *************************************************************************************** MJM -2021- zpl ======================================================================================= File: zpl.hpp Notes: Minimal ZPL Lib http://labelary.com/viewer.html =============...
// Copyright <NAME> 2017 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <iomanip> #include <set> #include <mqtt_server_cpp.hpp> #include <boost/lexical_cast.hpp> #include <boos...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. #include <librealsense2/hpp/rs_sensor.hpp> #include <librealsense2/hpp/rs_processing.hpp> #include <librealsense2-gl/rs_processing_gl.hpp> #include "../proc/synthetic-stream.h" #include "align-gl.h...
// // G3MHUDDemoScene.cpp // G3MApp // // Created by <NAME> on 12/2/14. // #include "G3MHUDDemoScene.hpp" #include <G3M/BingMapsLayer.hpp> #include <G3M/LayerSet.hpp> #include <G3M/CanvasImageBuilder.hpp> #include <G3M/ICanvas.hpp> #include <G3M/Color.hpp> #include <G3M/IStringUtils.hpp> #include <G3M/GFont.hpp> #...
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. #include "gtest/gtest.h" #include <mpi.h> #include "faodel-common/Common.hh" #include "lunasa/Lunasa.hh" #includ...
// -*- C++ -*- // // Package: EcalURecHitHists // Class: EcalURecHitHists // /**\class EcalURecHitHists EcalURecHitHists.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Created: Th Nov 22 5:46:22 CEST 2007 // // #include "C...
// deprecated_test program --------------------------------------------------// // Copyright <NAME> 2002 // Copyright <NAME> 2002 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt // Library home page: http://www.boost.org/libs/filesystem // T...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the terms found in...
#include <math.h> #include <uWS/uWS.h> #include <iostream> #include <string> #include "json.hpp" #include "PID.h" // for convenience using nlohmann::json; using std::string; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(double x) { return x * pi() ...