text stringlengths 5.71k 33.7k |
|---|
#define TRACKBALLMAX 32767 // Pasos de movimiento de trackball = 100%
#define TRACKBALLSTEP 8192
#define TRACKBALLDAMP 0.8
#include <Arduino.h>
//#include <Joystick->h>
//#include "Joystick2/Joystick2.h"
#include "controls/controls.h"
#include "joy_v1.h"
//#define TESTBTN
#define UPDATEMILLIS 10 // Milisegundos en... |
#include <iostream>
#include <functional>
#include <string>
#include <thread>
#include <future>
#include <chrono>
namespace chain_simple
{
/*
* 这里采用3种形式定义模板类Task, 其本质是一样的. 而在理解 Task<R(Args...)>时花了很长时间,经过反复验证,这些都没有关系.
* Demo1: (常见样式, 主要好处在于Args...有多个类型时比较容易区分, 如: Task<int(int, int)> t2)
* template<typename R... |
#include "backgroundRemoval.hpp"
//TODO: remove initial values of surface_params_ and set surface_params_found_ to false when ready
BackgroundRemovalNode::BackgroundRemovalNode(float max_depth, float surf_thresh, bool recalculate_surface_params, std::string clustering_type, CropInfo crop_info, bool crop_for_table_dete... |
// LIC// ====================================================================
// LIC// This file forms part of oomph-lib, the object-oriented,
// LIC// multi-physics finite-element library, available
// LIC// at http://www.oomph-lib.org.
// LIC//
// LIC// Version 0.85. June 9, 2008.
// LIC//
// LIC// C... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services 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:
* Redistributions of source code must retain the above copyright notice, this list of condit... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... |
#include <iostream>
using namespace std;
#include <cmath>
#include "util.h"
#include "FGObject.h"
#include "opencv2/highgui/highgui.hpp"
RNG rng(54321);
// wrapper of the routines to show an image in the window
void showImage(const string& winname, Mat img, int autosize, int delay)
{
namedWindow(winname,... |
#include "Example.hpp"
#include <filesystem>
ComputeApp::ComputeApp(
char const* shaderFile,
uint32_t const bufferSize,
uint32_t* bufferData,
uint32_t* dims, // [x,y,z],
uint32_t const* dimLengths // [local_size_x, local_size_y, local_size_z]
) {
// Initialize vulkan:
Utility::createInstan... |
/* ***** BEGIN LICENSE BLOCK *****
*
* THIS FILE IS PART OF THE MOZILLA NPAPI SDK BASIC PLUGIN SAMPLE
* SOURCE CODE. USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE
* IS GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS
* SOURCE IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.
*
* THE MOZILL... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/parser/cpdf_crypto_handler.h"
#include <time.h>
#incl... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <algorithm>
#include <assert.h>
#include <functional>
#include <iterator>
#include <list>
#include <regex>
#include <sstream>
#include <stdio.h>
#include <string>
using namespace std;
using namesp... |
// -----------------------------------------------------------------------
// maingloop.cpp
// -----------------------------------------------------------------------
// Main Game Loop
// Based on the generic game machine
// -----------------------------------------------------------------------
// Copyright (c) 2007, ... |
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
The Fraunhofer FDK AAC Codec Lib... |
/*
*
* 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... |
/******************************************************************************
*
* Project: Generic common data format
* Purpose: Packages PNG into a NetCDF file
* Author: <NAME> (KNMI)
* Date: 2017-08-08
*
******************************************************************************
*
* Copyright 20... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrAtlasTextContext.h"
#include "GrDrawContext.h"
#include "GrDrawTarget.h"
#include "GrTextBlobCache.h"
#include "GrTextUtils.h"
#include "SkDraw.h"
#include "SkDra... |
// Copyright The asap Project Authors 2018.
// Distributed under the 3-Clause BSD License.
// (See accompanying file LICENSE or copy at
// https://opensource.org/licenses/BSD-3-Clause)
#include <chrono> // for sleep timeout
#include <csignal> // for signal handling
#include <thread> // for access to th... |
// -*- C++ -*-
//
// <NAME> <<EMAIL>>
// (c) 2013-2021 parasim inc
// all rights reserved
//
// externals
#include <cmath>
#include <limits>
#include <array>
#include <stdexcept>
#include <gsl/gsl_matrix.h>
// declarations
#include "cdm.h"
namespace altar {
namespace models {
namespace cdm {
... |
#include "flt2int_encode.h"
void BbaseDigits(vector<long>& out, long in, long base)
{
if(base<=0 || in<0)
{
cerr << "Invalid base or input" << endl;
exit(0);
}
long x = in;
while(x > 0)
{
BINT_REP(x,base);
out.push_back(x);
in -= x;
in /= base;
x = in;
}
return;
}
/* On input a double value '... |
/**
* @file
* @copyright defined in enumivo/LICENSE
*/
#include <enulib/memory.hpp>
void verify_mem(const void* const ptr, const uint32_t val, const uint32_t size)
{
const char* char_ptr = (const char*)ptr;
for (uint32_t i = 0; i < size; ++i)
{
enumivo_assert(static_cast<uint32_t>(static_cast<uns... |
// Scintilla source code edit control
/** @file LexVHDL.cxx
** Lexer for VHDL
** Written by <NAME>,
** Based on:
** - The Verilog Lexer by <NAME>
** - The Fortran Lexer by <NAME>
** - The C++ lexer by <NAME>
**/
// Copyright 1998-2002 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions unde... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/xfa_utils.h"
#include <algorithm>
#include <vector>... |
/*
* librdkafka - Apache Kafka C/C++ library
*
* Copyright (c) 2014 <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 code must retain the above copy... |
//===- ICF.cpp ------------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
/**
* Copyright (C) 2013-2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/runtime/reference/experimental_detectron_proposal_single_image.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstring>
#include <utility>
#include "ngraph/op/experimental_detectron_generat... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <quic/state/QuicStreamFunctions.h>
#include <quic/QuicException.h>
#include <quic/flowcontrol/QuicFlowController.h>
#in... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Domain/Creators/Cylinder.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <memory>
#include <unordered_map>
#include <variant>
#include <vector>
#include "Domain/BoundaryConditions/None.hpp"
#include "Domain/BoundaryC... |
//===--- SemanticARCOpts.cpp ----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
* BoardRenderer.cpp
*
* Created on: Aug 16, 2015
* Author: axel
*/
#include "BoardRenderer.h"
#include <math.h>
#include <string>
#include <stddef.h>
#include <SDL2/SDL_blendmode.h>
#include <SDL2/SDL_pixels.h>
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_render.h>
#include <cstdint>
#include "../Game... |
#include "global.h"
#include "NotesWriterDWI.h"
#include "NoteTypes.h"
#include "NoteData.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "RageFileManager.h"
#include "RageFile.h"
#include "NoteDataUtil.h"
#include "RageFile.h"
#include "Song.h"
#include "Steps.h"
using std::vector;
std::string OptimizeDWIStri... |
#include <htslib/vcf.h>
#include "Normaliser.hh"
//#define DEBUG
Normaliser::Normaliser(const string &ref_fname, bool ignore_non_matching_ref) {
_lg = spdlog::get("gg_logger");
_norm_args = init_vcfnorm(nullptr, (char *) ref_fname.c_str());
_symbolic_allele[0] = 'X';
_symbolic_allele[1] = '\0';
_i... |
#include "EigenSolver.h"
using namespace Ode;
using namespace Ogre;
void EigenSolver::DecrSortEigenStuff3 ()
{
Tridiagonal3();
QLAlgorithm();
DecreasingSort();
GuaranteeRotation();
}
void EigenSolver::Tridiagonal3 ()
{
const float fM00 = m_kMat[0][0];
float fM01 = m_kMat[0][1];
Real fM02 = m_kMat[0][2];
c... |
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/*
This is an example showing how you might use dlib to create a reasonably
functional command line tool for object detection. This example assumes
you are familiar with the contents of at least the following exa... |
/*
* Copyright 2017-2020 AVSystem <<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 o... |
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
#include "AnalysisGraph.hpp"
#include <range/v3/all.hpp>
#include <sqlite3.h>
#include <limits.h>
using namespace std;
using namespace delphi::utils;
/*
============================================================================
Private: Initializing model parameters
=================================================... |
#include "SingletonLogger.hpp"
#include "MixedFEM.hpp"
#include "constants.hpp"
#include "SymmetricBlockMatrix.hpp" // for saddle point matrix
#include "ProjectionSolvers.hpp" // for outer solver
// for physics-based preconditioner
#include "Multigrid.hpp"
#include "DivGradFEM.hpp"
// Taylor–Hood
#include "Triangle_P2... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
/*
* Copyright (c) 2016-2019 <NAME> https://irlanrobson.github.io
*
* 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... |
// COCOA class implementation file
//Id: OptOSensor2D.cc
//CAT: Model
//
// History: v1.0
// <NAME>
#include "Alignment/CocoaModel/interface/OptOSensor2D.h"
#include "Alignment/CocoaModel/interface/LightRay.h"
#include "Alignment/CocoaModel/interface/ALIPlane.h"
#include "Alignment/CocoaModel/interface/Measurem... |
//
// Terrain.cpp
// Gaia
//
// Created by <NAME> on 4/25/20.
// Copyright © 2020 SphereEnix. All rights reserved.
//
#include "Terrain.hpp"
#define BOUNDING_BOX_STEP 20
Terrain::Terrain(){
}
Terrain::Terrain(int width, int depth, float step) : width(width), depth(depth), step(step){
height.resize(width... |
/*
* Developed by <NAME>
* Copy Right by Prism Research Group, HKUST and State Key Lab for Novel Software Tech., Nanjing University.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <map>
#include <vector>
#include <set>
#include ... |
/* ************************************************************************
* Copyright 2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "norm.hpp"
#include "rocsolver_test.hpp"
#include "rocsolver_arguments.hpp"
#include "rocsolver.hpp"
#includ... |
#include "CondTools/Ecal/interface/EcalLaserHandler.h"
#include "CondTools/Ecal/interface/EcalTPGWeightIdMapHandler.h"
#include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
#include "OnlineDB/EcalCondDB/interface/RunTPGConfigDat.h"
#include "OnlineDB/EcalCondDB/interface/FEConfigMainInfo.h"
#include "OnlineDB/EcalCon... |
#include "altruct/structure/math/with_infinity.h"
#include "altruct/structure/math/complex.h"
#include "altruct/structure/math/modulo.h"
#include "structure_test_util.h"
#include "gtest/gtest.h"
using namespace std;
using namespace altruct::math;
using namespace altruct::test_util;
typedef modulo<int, 10... |
/*
* Copyright (C) 2012-2013 The Android Open Source Project
*
* 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 b... |
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
#include "BulletCollision/CollisionShapes/btCollisionShape.h"
#include "BulletCollision/CollisionShapes/btConvexPolyhedron.h"
#include "BulletCollision/CollisionShapes/btShapeHull.h"
#include "LinearMath/btVector3.h"
#include "btBulletDynamicsCommon.h... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// ---------------------------------------------------------------------------
// PSG Sound Implementation
// Copyright (C) cisc 1997, 1999.
// ---------------------------------------------------------------------------
// $Id: psg.cpp,v 1.10 2002/05/15 21:38:01 cisc Exp $
#include "fmgen_headers.h"
#include "f... |
#include "tinylang/CodeGen/CGProcedure.h"
#include "llvm/IR/CFG.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
using namespace tinylang;
void CGProcedure::writeLocalVariable(llvm::BasicBlock *BB,
Decl *Decl,
llvm::Value *V... |
/*
Copyright (c) 2015 ANON authors, see AUTHORS file.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
// Copyright 2015 <NAME>
// Licensed under the Apache License version 2.0
// You may not use this file except in compliance with this License
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
// Simple test application to grab from multiple camera's in parallel to measure the
// cam... |
// This code is in the public domain -- <EMAIL>
/** @file Raster.cpp
* @brief Triangle rasterization library using affine interpolation. Not
* specially optimized, but enough for my purposes.
**/
/*#include <nvcore/nvcore.h> // swap
#include <nvcore/Containers.h> // min, max
#include <math.h> // round
#in... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <sched.h>
#include <sys/time.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include <netinet/in.h>
#inclu... |
#include <assert.h>
#include <math.h>
#define PROTECTED_THINGS_DISABLE
#include "tier1/utlstring.h"
#include "vgui/Cursor.h"
#include "vgui/MouseCode.h"
#include "vgui/IBorder.h"
#include "vgui/IInput.h"
#include "vgui/ILocalize.h"
#include "vgui/IPanel.h"
#include "vgui/ISurface.h"
#include "vgui/IScheme.h"
#inclu... |
/*
Copyright 2020 <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 copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... |
#include "dyld_decache.h"
using namespace dyld_decache;
bool streq(const char x[16], const char* y) {
return strncmp(x, y, 16) == 0;
}
long write_uleb128(FILE* f, unsigned u) {
uint8_t buf[16];
int byte_count = 0;
while (u) {
buf[byte_count++] = u | 0x80;
u >>= 7;
}
buf[byte_c... |
#include <coro_eyes_sdk.h>
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/PointField.h>
#include <sensor_msgs/point_cloud2_iterator.h>
#include <thread>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <openc... |
#include <algorithm>
#include <assert.h>
#include <fcntl.h>
#include <functional>
#include <gd.h>
#include <gdfonts.h>
#include <iostream>
#include <math.h>
#include <string>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <vector>
#include "Address.h"
#include "Log.h"
#include "http/HttpConnection... |
int E8
,
LN2,V9M ,A5, kR
,F7C
,OZ, /*9*/O,//w9r
ncr2G,//v1
CoxR ,TfX ,iYY,
VwnX
, Z
, KzC,Jv,
FmB,XL4
,rnsI6,e/*R*/, ABT1 ,
xDy ,h1/*u*/,q,
QVb/*2m*/ , m2
//
; void f_f0(){
/*7k*/{
volatile int TRH ,j
, CZhs, /*ihT*/
v
, H
;
{int ZjQ//IR
;
volatile int ug, G2xo9
, /*ZvY*/L3By ,t,h7XlQ0,
//3
l,... |
#include <stdio.h>
#include <string>
#include <assert.h>
#include <iostream>
#include <stdint.h>
#include <algorithm>
#include <unordered_map>
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
#include <cmath>
#include <numeric>
#include "zlib.h"
#define NUM_ARGS 2
#define CL_SIZE 64
#define CL_SH... |
#include "leaper.h"
SDL_Window* window = NULL;
SDL_Renderer* renderer = NULL;
Texture level_map;
Texture actor_map;
Timer frame_timer;
Timer movement_timer;
Timer fps_timer;
std::stringstream scoreText;
std::stringstream statusText;
std::stringstream fpsText;
Texture t_score;
Texture t_status;
Texture t_fps;
Tilemap t... |
// Copyright (c) 2021 SolarWinds, LLC.
// All rights reserved.
#include "profiling.h"
#include <ruby/debug.h>
#include <signal.h>
#include <time.h>
#include <atomic>
#include <unordered_map>
#include <vector>
#include "frames.h"
#include "logging.h"
#include "oboe_api.hpp"
#define TIMER_SIG SIGRTMAX // the... |
#include <stdlib.h>
#include <bits/stdc++.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <pthread.h>
#include <csig... |
/* Copyright 2017 The TensorFlow Authors.
Modifications copyright 2021 <NAME>.
Portions copyright 2019 clouwdwise consulting.
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 Li... |
#include <cmath>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <list>
#include "launcher.hpp"
#include "assets.hpp"
#include "engine/api_private.hpp"
#include "graphics/color.hpp"
#include "executable.hpp"
#include "metadata.hpp"
#include "dialog.hpp"
Dialog dialog;
struct Persist {
unsigned... |
int PIoN, Ovl,cGY5Rz,
l2a ,
SQaR,OEY ,Ci3
,
mcLI//h
,
T,g4X
, /*5T*/VrLsuEk , CO
,cMk ,
q3Zn,
//FN3
cp1
,/*PG*/Wcc ,
Zm, Rpu , WhV ,
MgoU,
//f2Bg
r5nR
,
xR;/*1*/void
f_f0
()
/*zm*/{ ;
if (/*9BUI*/ true//41
) ;
else
return ; { /*Hw*/ int
o7yM
;volatile int tb ,nN , XtUpT , CXb ,Lb
,
O , //O5
Zt ,Uqes... |
//#include <openacc.h>
#include <cstdlib>
#include <iostream>
#include <iostream>
#include <fstream>
#include <random>
#include "Neuron.h"
#include "time.h"
using namespace std;
const unsigned int neuron_number = 1440;
const unsigned int neurons_in_group = 40;
const unsigned int synapses_number = 10;
// Init the neur... |
// Copyright (c) <NAME>
// Licensed under the MIT License.
#include <cstring>
#include <openssl/evp.h>
#ifdef OTHER_CRYPTO
#include <cryptopp/hex.h>
#include <cryptopp/filters.h>
#include <cryptopp/aes.h>
#include <cryptopp/gcm.h>
#include <OTAESGCM_OTAESGCM.h>
#endif
#include <json.hpp>
using json = nlohmann::jso... |
/********************************************************
File: mesh_test.cc
Abstract: Test file for Mesh. Computes surface of sphere
and write to Geomview file.
Created: 11/17/2000
Author: <NAME>
Last Revision ($Revision: 1.1.1.1 $)
by $Author: hongli $
on $Date: 2002/12/06 21:49:27 $
*******************... |
/*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... |
#include <stdlib.h>
#include <string.h>
#include <kernel.h>
#include <libpad.h>
#include "types.h"
#include "fileio.h"
#include "font.h"
#include "poly.h"
#include "uiNetwork.h"
extern "C" {
#include "ps2ip.h"
#include "netplay_ee.h"
};
#define MAINLOOP_NETPORT (6113)
CNetworkScreen::CNetworkScreen(... |
#include "em_gmm.h"
#include <cassert>
#include <iostream>
#include <vector>
#include <random>
//< Uncomment the line below to utilize Math Kernel Library
//#define EIGEN_USE_MKL_ALL
#include <Eigen/Eigen>
namespace {
//< Constant for numerical stability
const float eps_covariance = 1e-10;
const float ep... |
#include "testApp.h"
using namespace cv;
using namespace ofxCv;
//--------------------------------------------------------------
void testApp::setup(){
ofEnableSmoothing();
settings.open(ofToDataPath("settings.txt"), ofFile::ReadWrite, false);
ofBuffer settingsBuff = settings.readToBuffer();
... |
//======---------------------------------------------------------------======//
// //
// Copyright 2021-2022 <NAME> <<EMAIL>>. All rights reserved. //
// //
// Use of this ... |
#include <algorithm> // to use .remove_if
#include <cmath> // round()
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "constants.h"
#include "eigen.h"
#include "exceptions.h"
#include "periodic_table.h"
#include "phonopy_input_parser.h"
#include "points.h"
#include "utilities.h"... |
#define __OS_LINUX_CPP_H__
#include "platform_def.h"
#include "os_linux.h"
#include "os_linux.h"
#include "download.h"
#include "quectel_common.h"
#include "quectel_log.h"
#define MAX_TRACE_LENGTH (256)
#define MAX_PATH 260
const char PORT_NAME_PREFIX[] = "/dev/ttyUSB";
static char log_trace[MAX_... |
#include "ShorFastSimulator.hpp"
#include <iostream>
#include <random>
#include <cmath>
#include <chrono>
#include <limits>
std::map<std::string, unsigned int> ShorFastSimulator::Simulate(unsigned int shots) {
if (verbose) {
std::clog << "Simulate Shor's algorithm for n=" << n;
}
root_edge = dd->m... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
#ifdef FAKE_WIRING
#include "fakeWiringPi.h"
#else
#include <wiringPi.h>
#endif // ifdef FAKE_WIRING
#include <string>
#include "LPD8806.h"
#include "commonTypes.h"
#include "ledStripTypes.h"
#include "ledStripInternal.h"
#include "commonUtils.h"
#include "timerTick.h"
// Local types
class LedStripInternalInfo {
pu... |
#ifdef WIN32
#include <windows.h>
#endif
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <time.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <vector>
#include <thread>
#include <utility>
#include <func... |
/*------------------------------------------------------------------------------
Example code that shows the use of the 'cam2world" and 'world2cam" functions
Shows also how to undistort images into perspective or panoramic images
Copyright (C) 2008 <NAME>, ETH Zurich
Author: <NAME> - email: <EMAIL>
--------... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
//
// SICKHEAD GAMES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement
// or nondisclosure agreement with Sickhead Games. It may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
// Copyright (c) 2005 Sickhead Games, LLC
// ... |
/******************************************************************************
* $Id: tif_overview.cpp 10645 2007-01-18 02:22:39Z warmerdam $
*
* Project: TIFF Overview Builder
* Purpose: Library function for building overviews in a TIFF file.
* Author: <NAME>, <EMAIL>
*
* Notes:
* o This module uses the ... |
/*
* libptbdrawtext_ftgl.cpp: Source of libptbdrawtext_ftgl dynamic shared library plugin
* for Screen('DrawText') text rendering via external engine.
*
* This works on OS/X but is mostly intended for GNU/Linux.
*
* Features:
*
* - Texture mapped renderer, like on OS/X with ATSU Drawtext.
* - Fast due to textu... |
#include "WorldMap.h"
#include "gslib/Hw/GraphicsEngine.h"
#include "gslib/Hw/BackgroundLayer.h"
#include "gslib/Math/MathEx.h"
#include "gslib/Physics/BoundingBox.h"
#include "gslib/Anim/AnimAssetManager.h"
#include "gslib/Anim/AnimControl.h"
#include "gslib/Stream/BinaryFileStream.h"
#include "ScrollingMgr.h"
#includ... |
/*
* SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
* Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 wi... |
// The MIT License (MIT)
//
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including wit... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkTSort.h"
#include "src/pathops/SkOpSegment.h"
#include "src/pathops/SkOpSpan.h"
#include "src/pathops/SkPathOpsPoint.h"
#include "src/pathops/SkPathWriter.... |
/*++
Copyright (c) Microsoft Corporation
Module Name:
- IInputEvent.hpp
Abstract:
- Internal representation of public INPUT_RECORD struct.
Author:
- <NAME> (AustDi) 18-Aug-2017
--*/
#pragma once
#include <wil/common.h>
#include <wil/resource.h>
#ifndef ALTNUMPAD_BIT
// from winconp.h
#define A... |
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
#include <boost/tokenizer.hpp>
#include <spotfinder/core_toolbox/distl.h>
#include <scitbx/vec3.h>
namespace af = scitbx::af;
namespace di = spotfinder::distltbx;
//this function was developed but never used; deprecate soon
Distl::spot::... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "elab_scanner.hpp"
#include <ctype.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cctype>
#include <iostream>
#include <limits>
#include <string>
#include "iassert.hpp"
... |
#include "gui.hpp"
#include <math.h>
#include <functional>
static float menuTimer = 0.0F;
Gui::Gui() {
this->framebuffer = gfxGetFramebuffer(&Gui::g_framebuffer_width, &Gui::g_framebuffer_height);
Gui::g_currSnackbar = nullptr;
Gui::g_currListSelector = nullptr;
Gui::g_currMessageBox = nullptr;
m_fontLib... |
/***************************************************
This is a library for the 0.96" 16-bit Color OLED with SSD13xx driver chip
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/684
These displays use SPI to communicate, 4 or 5 pins are required to
interface
Adafruit invests... |
/*
Copyright 2015 Nervana Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include "Shader/Shader.h"
#include "Camera/Camera.h"
int _width = 800;
int _height = 600;
float _deltaTime = 0.0f;
float _lastFrame = 0.0f;
Camera _camera;
void InputHandle(GLFWwindo... |
/*
microbit_Screen.cpp - LED Screen library for micro:bit
(for "Arduino Core for Nordic Semiconductor nRF5 based boards")
Copyright (c) 2017 <NAME>. 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 a... |
#define _USE_MATH_DEFINES
#include <cmath>
#include "SPH_2D.h"
SPH_main* SPH_particle::main_data;
void SPH_particle::init_particle()
{
/*Initialize the parameters of a particle. */
rho = rho_0;
P = B * (pow((rho / rho_0), ga) - 1);
v[0] = 0;
v[1] = 0;
if_topped = 0;
}
void SPH_particle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.