text stringlengths 3.08k 22k |
|---|
// Copyright (c) 2020 The Vadercoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Based on https://github.com/mjosaarinen/tiny_sha3/blob/master/sha3.c
// by <NAME> <<EMAIL>>
#include <crypto/sha3.h>
#includ... |
//===- utils/TableGen/X86EVEX2VEXTablesEmitter.cpp - X86 backend-*- C++ -*-===//
//
// 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
//
//===---------------------------... |
#include "ofxMtlMapping2DGrid.h"
#include "ofxMtlMapping2DControls.h"
//--------------------------------------------------------------
//--------------------------------------------------------------
ofxMtlMapping2DGrid::ofxMtlMapping2DGrid()
{
internalMesh.setMode(OF_PRIMITIVE_TRIANGLES);
}
//---------------------... |
/**
* Advent of code 2019
* @author : <NAME>
*/
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include <algorithm>
#include <vector>
#include <sstream>
#include <fstream>
#include <map>
#include <set>
#include <unordered_map>
#include <optional>
#include <numeric>
#include <assert.h>
#in... |
#include "export.h"
#include "nativeCaller.h"
#include "natives.h"
#include <d3d11.h>
#include <cassert>
#include <wrl/client.h>
#include <system_error>
#include <memory>
#include <vector>
#include <mutex>
#include <chrono>
#include <condition_variable>
#include <Eigen/Core>
using Microsoft::WRL::ComPtr;
using std::uni... |
// Copyright (C) 2017 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University... |
#pragma once
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "opencv2/opencv.hpp"
#ifndef LOG
#define LOG(msg) std::cout << msg
#endif
#ifndef LOGLN
#define LOGLN(msg) std::cout << msg << std::endl
#endif
#ifndef ERRLN
#define ERRLN(msg) std::cerr << msg << std::endl
#endif
template <... |
#include "BoundVolume.h"
#define GLM_ENABLE_EXPERIMENTAL
#include <algorithm>
#include <array>
#include <glm/gtx/norm.hpp>
Rect::Rect(): BoundVolume(glm::vec2(0, 0), volume_type::RECT), _w(0), _h(0) {}
Rect::Rect(glm::vec2 o, float w, float h):
BoundVolume(o, volume_type::RECT),
_w(w),
_h(h) {}
Circ::Cir... |
#include "Game.h"
#include "Vertex.h"
#include "Input.h"
// Needed for a helper function to read compiled shader files from the hard drive
#pragma comment(lib, "d3dcompiler.lib")
#include <d3dcompiler.h>
// For the DirectX Math library
using namespace DirectX;
// -----------------------------------------------------... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Server_Connection.h"
#include "ConfigCacheIni.h"
#include "TCPReceiverThread.h"
#include "Engine/World.h"
#include "ThePortalSeekersGameMode.h"
Server_Connection::Server_Connection(UWorld* _World)
{
Inbox = new TQueue<FString*, ... |
#include "corsika-reader/CorsikaClient.h"
#include <boost/asio.hpp>
#include <boost/process.hpp>
#include <iostream>
using boost::asio::ip::tcp;
namespace fs = boost::filesystem;
namespace process = boost::process;
class CorsikaClientImpl {
public:
CorsikaClientImpl() : acceptor_(io_, tcp::endpoint(tcp::v4(), 0))... |
// Copyright (c) 2022, ETH Zurich and UNC Chapel Hill.
// 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
// notic... |
#include <math.h>
#include "AutoWhiteBalance.h"
void ColorTemperatureCurve( short ** BayerPattern, int imageHeight, int imageWidth, double * RCoefficient, double * BCoefficient, char LargeBlockEnable )
{
double GRRatio = 0;
double GBRatio = 0;
if( LargeBlockEnable == true )
{
double RightSumB = 0;
double R... |
//
// Copyright 2012-2016 <NAME>
// Copyright 2012-2016 Advanced Micro Devices, Inc.
// Copyright 2014-2016 <NAME>
// Copyright 2014-2015 <NAME>
// Copyright 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Softwa... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "SS_Player.h"
#include "SS_GameMode.h"
#include "Kismet/GameplayStatics.h"
// Sets default values
ASS_Player::ASS_Player()
{
// Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't... |
/*-------------------------------------------------------------------------
*
* ts_selfuncs.c
* Selectivity estimation functions for text search operators.
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/tsearch/ts_selfuncs.c
*
*---------------... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/process_proxy/process_proxy.h"
#include <fcntl.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include "base/bind.h"
#include "bas... |
#include "cps.h"
// CPS Scroll (Background Layers)
// Base = 0x4000 long tile map
// sx=Scroll X value, sy=Scroll Y value,
INT32 Ghouls=0;
INT32 Ssf2t=0;
INT32 Xmcota=0;
INT32 Scroll1TileMask = 0;
INT32 Scroll2TileMask = 0;
INT32 Scroll3TileMask = 0;
INT32 Cps1Scr1Draw(UINT8 *Base,INT32 sx,INT32 sy)
{
INT32 x,y;
... |
//===----------------ONNXShapeHelper.cpp - help for shapes----------------=== //
//
// Copyright 2020 The IBM Research Authors.
//
// =============================================================================
//
// This file has the computations to compute the shapes using the new index expr
// approach.
//
//===---... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/portability/GFlags.h>
#include <folly/SocketAddress.h>
#include <folly/io/SocketOpti... |
//
// BandwidthMeter.cpp
// interface/src/ui
//
// Created by <NAME> on 6/20/13.
// Copyright 2013 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 <cstdio>
#include "BandwidthMeter.h"... |
#include "ofApp.h"
/*
This app lets you select all section of an image that you want the system to train on.
Everytime you hit the key n the image name and the list of rectangles gets safed.
Once done, go to boxFile.xml. Here you find all the stored data.
Inside the image folder you will find testing.xml and train... |
////////////////////////////////////////////////////////////////////////////////
///
/// Peak detection routine.
///
/// The routine detects highest value on an array of values and calculates the
/// precise peak location as a mass-center of the 'hump' around the peak value.
///
/// Author : Copyright (c) <NAM... |
/**
* @author github.com/luncliff (<EMAIL>)
* @copyright CC BY 4.0
*/
#include <cassert>
#include <cerrno>
#include <cstdlib>
#include <thread>
#include <coroutine/net.h>
#include <coroutine/return.h>
#include <socket.hpp>
#if defined(__APPLE__)
#include <latch_darwin.h>
#else
#include <latch.h>
#endif
using name... |
/***************************************************************************
qgsalgorithmextractbyattribute.cpp
----------------------------------
begin : April 2017
copyright : (C) 2017 by <NAME>
email : <EMAIL>
***... |
/*
* Copyright (C) 2012-2014 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... |
/*
Copyright 2021, <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, modify, merge, publish, distribute, s... |
// jhcTalkFcn.cpp : string and semantic net language output for ALIA system
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2018-2020 IBM Corporation
// Copyright 2020-2021 Etaoin Systems
//
// Licensed under the Apache License, Version 2.0... |
/*
* TriangleMeshRenderer.cpp
* Copyright (C) 2006-2016 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "TriangleMeshRenderer.h"
#include "stdafx.h"
#define SHADER_BASED
using namespace megamol;
using namespace megamol::molecularmaps;
/*
* TriangleMeshRenderer::TriangleMeshRenderer
*/
TriangleMeshRende... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
#define EPS 0.00001
using nam... |
/*
* pre-commit.cc
* git-analyze
* author: Force.Charlie
* Date: 2016.12
* Copyright (C) 2018. GITEE.COM. All Rights Reserved.
*/
/// pre-commit limit file
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <functional>
... |
#include <ros/ros.h>
#include <actionlib/server/simple_action_server.h>
#include <actionlib/client/simple_action_client.h>
#include <panel_intake_controller/PanelIntakeSrv.h>
#include <behaviors/PlaceAction.h>
#include <behaviors/ElevatorAction.h>
#include <behaviors/ElevatorAction.h>
#include <thread>
#include <geomet... |
#include <cmath>
#include <iomanip>
#include <iostream>
#include "landing.h"
int ruined, l2v45z, msgarg;
bool verbose;
void landMsg(int msg, std::ostream &cout)
{
switch (msg) {
case 0:
cout << "I UNDERSTOOD IT AS NIL.\n";
break;
case 1:
cout << "MISSION CONTROL OUT.\n";
br... |
/*
* Copyright 2014-present IVK JSC. 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... |
/******************************************************************************
** Copyright (C) 2000 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 03/02/00
**
** File: ridgelet... |
/*
Copyright (c) 2016, <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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the followin... |
/**************************************************************************
***
*** Copyright (c) 2000-2006 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME>
*** and <NAME>
***
*** Contact author(s): <EMAIL>, <EMAIL>
*** Original Affiliation: University of Michigan, EECS ... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
/**********************************************************************
Audacity: A Digital Audio Editor
LegacyBlockFile.cpp
<NAME>
******************************************************************//**
\class LegacyBlockFile
\brief Audacity 1.1.0 block file format:
- Header tag: 20 bytes "AudacityBlockFi... |
#include <Windows.h>
#include <fstream>
#include <string>
#include "Config.hpp"
#include "GUI.hpp"
#include "Hooks.hpp"
#include "Json/json.hpp"
#include "Offsets.hpp"
#include "fnv_hash.hpp"
#include "game_classes.hpp"
#include "imgui/imgui.h"
#include "skin_database.hpp"
static void TextCenter(const std::string tex... |
#include "task_impl.h"
#include <assert.h>
#include <fmt/format.h>
#include <mach/mach.h>
#include <boost/exception/diagnostic_information.hpp>
#include <ctime>
#include <prettyprint.hpp>
#include <sstream>
#include <vector>
#include "errors.h"
#include "system_helpers.h"
#include "utils.h"
inline timeval to_timeval( ... |
////////////////////////////////////////////////////////////////////////////////
// Company: Instituto Nacional de Astrofísica, Óptica y Electrónica
// Engineer: <NAME>.
//
// Create Date: 05.03.2021
// File Name: fwht_tb.cpp
// Project Name: Fast Walsh-Haddamard Transform
// Description: Verilator Testbench of the com... |
// script hook
#include "script.hpp"
#include "natives.h"
#include "keyboard.hpp"
#include <redhook2.h>
#include <string>
// console
#include <io.h>
#include <string.h>
#include <fcntl.h>
#include <Psapi.h>
#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 4996)
#define OUT(...) (fpri... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#pragma once
#include "J3DData.hpp"
#include "GX/GXStruct.hpp"
#include "glm/mat4x4.hpp"
#include "glm/vec3.hpp"
#include <GXGeometryEnums.hpp>
#include <GXVertexData.hpp>
#include <cstdint>
#include <vector>
namespace bStream { class CStream; }
class GXAttributeData;
enum class EJ3DBlockType : uint32_t {
ANF1 = ... |
#include "kalloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* In kalloc, a *core* is a large chunk of contiguous memory. Each core is
* associated with a master header, which keeps the size of the current core
* and the pointer to next core. Kalloc allocates small *blocks* of memory from
* the c... |
// 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.
// A small example application showing the use of the C++ Headless Chrome
// library. It navigates to a web site given on the command line, waits for it
/... |
/*
The MIT License (MIT)
Copyright (c) 2017 <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
to use, copy, modify, merge, ... |
/*
* PdfSignatureGenerator.cpp
* SignPoDoFo
*
* Created by svp on 26/05/12.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#include "PdfSignatureGenerator.h"
#include "PdfVerifier.h"
#include "UUCLogger.h"
#define SINGNATURE_SIZE 10000
#ifdef CreateFont
#undef CreateFont
#e... |
//===-- ARMSubtarget.cpp - ARM Subtarget Information ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**********
Copyright (c) 2018, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
#include "ParseHandler.h"
#include <iostream>
#include "helpers/Helper.h"
#include <stack>
using namespace handlers;
std::vector<Element> ParseHandler::parse(std::string expr, bool cleanNegatives) {
std::vector<Element> elems = std::vector<Element>();
bool isInNum = false;
bool isInStr = false;
std::stringstream ... |
#include "tootlwren.hpp"
#include "wren.h"
#include <stdio.h>
#include <Resource.hpp>
#include <ResourceLoader.hpp>
using namespace godot;
TootlWren* global_this;
Node* global_game_manager;
void TootlWren::_register_methods() {
register_method("parse_wren_snippet", &TootlWren::parse_wren_snippet);
register_sign... |
//=====================================================================//
/*! @file
@brief RX65N/RX72N Envision Kit デジタル・ストレージ・オシロスコープ @n
マイコン内臓12ビットA/D変換を使って、波形を観測するガジェット
@author 平松邦仁 (<EMAIL>)
@copyright Copyright (C) 2018, 2020 <NAME> @n
Released under the MIT license @n
https://github.com/hirak... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
//=============================================================================
/**
* @file client.cpp
*
* $Id: client.cpp 91825 2010-09-17 09:10:22Z johnnyw $
*
* A client which uses the AMI callback model.
*
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
//==============================... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <GL/glut.h>
#define SCRSIZE 7 // screen size factor
#define NUMP 20 // number of balls points
#define NUMS (NUMP+1) // number of springs
#define MASS 1.0f // default point mass
#define BALLRADIUS 0.516f ... |
// Copyright 2016 The Streamer 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 ... |
// SPDX-FileCopyrightText: 2022 CERN
// SPDX-License-Identifier: Apache-2.0
#include "AdeptIntegration.h"
#include <VecGeom/management/BVHManager.h>
#include "VecGeom/management/GeoManager.h"
#include <G4RunManager.hh>
#include <G4Threading.hh>
#include <G4Proton.hh>
#include <G4Region.hh>
#include <G4SDManager.hh>
... |
/*
* GCodeParser_Task.cpp
*
* Created on: Sep 5, 2019
* Author: <NAME>
*/
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include <vector>
#include <cstring>
#include <string>
#include <cstdio>
#include "Globals.h"
#include "ITM_write.h"
/**
* void GCodeParserTask (void *pvParameters)
* @b... |
#include <algorithm>
#include <iostream>
#include <vector>
#include "Conv2DSelect.h"
#include "TensorData.h"
#include "PDBClient.h"
#include "PDBVector.h"
#include "ScanUserSet.h"
#include "WriteUserSet.h"
using namespace std;
void load_rnd_img(int x, int y, int z, int size, pdb::PDBClient &pdbClient,
... |
#include "../includes/Tree.h"
#include "../includes/Skybox.h"
#include "../includes/Renderer.h"
#include "../includes/WaterRenderer.h"
#include "../includes/Water.h"
#include "../includes/GUI.h"
#include "../includes/PointLight.h"
#include <time.h>
#define WIDTH 1080
#define HEIGHT 900
#define MESH_MATERI... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/window_sizer/window_sizer.h"
#include "ash/shell.h"
#include "ash/wm/window_cycle_controller.h"
#include "ash/wm/window_u... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* DirPartFilter.cpp
*
* Copyright (C) 2009 by Universitaet Stuttgart (VISUS).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/moldyn/DirPartFilter.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/param/StringParam.h"
//#include "vislib/ColourParser.h"
#include <climits>
using names... |
// File: splash.cpp
#include "precomp.h"
#include "resource.h"
#include "conf.h"
#include "GenWindow.h"
#include "GenContainers.h"
#include "GenControls.h"
static const int DXP_LOGO_LEFT = 182;
static const int DYP_LOGO_COPYRIGHT = 24;
static const int LogoBorder = 10;
CFrame *g_pSplashSc... |
#include <FastSerial.h>
#include "ArduCam_Max7456.h"
// Get the common arduino functions
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "wiring.h"
#endif
#include "Spi.h"
#include <EEPROM.h>
#include "OSD_Config.h"
volatile int x;
volatile int font_count;
volatile byte character_bitmap[... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, LAAS-CNRS
* 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 ... |
/*
* Copyright 2018 <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 wri... |
#include "GaussianQuadrature.h"
/*////////////////////////////////////////////////////////////////////////////
GaussianQuadratures.h
Generates Gaussian quadratures.
Copyright 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (... |
#pragma once
#include <vector>
#include "simulation/ant/ant_mode.hpp"
#include "common/utils.hpp"
#include "common/grid.hpp"
constexpr uint8_t max_colonies_count = 2;
constexpr float min_intensity = 0.1f;
struct AntRef
{
bool active = false;
uint8_t col_id;
uint16_t ant_id;
};
struct ColonyCell
{
// Sto... |
#include <math.h>
#include <iostream>
#include <vector>
#include "hybrid_a_star.h"
#include <queue>
#include <fstream>
// Initializes HBF
ASTAR::ASTAR() {}
ASTAR::~ASTAR() {}
int ASTAR::theta_to_stack_number(double theta){
// Takes an angle (in radians) and returns which "stack" in the 3D
// configuration spa... |
// Copyright 2014 <NAME>. 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 applicable law... |
#include <mem/alloc.hpp>
#include <mem/virt.hpp>
#include <mem/libc.hpp>
// Durand's Amazing Super Duper Memory functions.
#define LIBALLOC_MAGIC 0xC001C0DE // Liballoc magic number.
#define LIBALLOC_DEAD 0xDEADDEAD // Liballoc dead number?
#define VERSION "1.1" // Liballoc version.
#define ALIGNME... |
/* NeuronPopulator_plugin.cpp
* Use this plugin to simulate a group of neurons with desired density. This simulator also counts the contacts between axons and dendrites.
* 2015-8-5 : by <NAME>
*/
#include "v3d_message.h"
#include <vector>
#include "NeuronPopulator_plugin.h"
#include "populate_neurons.h"
#include <... |
/**
Copyright 2009-2017 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... |
/*
* File: CNS.cpp
* Author: kolatat
*
* Created on March 29, 2015, 11:31 AM
*/
#include "CNS.h"
#include <time.h>
#include "PID.h"
#include <math.h>
#include <bitset>
#define RUNRATE 40
CNS::CNS(State* rov, Serial* ardee, IMU* imu) : rov(rov), ardee(ardee), imu(imu) {
}
float scaleFloat(float value, floa... |
// Copyright(c) 2021, Intel Corporation
//
// 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 conditions and the ... |
/*==========================================================================
SeqAn - The Library for Sequence Analysis
http://www.seqan.de
============================================================================
Copyright (C) 2007
This library is free software; you can... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<locale.h>
#include<wchar.h>
#include<stdbool.h>
#include<ctype.h>
struct registro{
char apellidoYNombre[60],usuario[10],contrasenia[32],telefono[25];
bool recepcionista,borrado;
int idProfesional,dni;
}reg;
void registrarProfesional(FILE *ar... |
/*
* Copyright (c) 2020, NVIDIA 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 ... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/>
*
* This program is free software; you c... |
//===- LowerToRTL.cpp - Lower FIRRTL -> RTL dialect -----------------------===//
//
//===----------------------------------------------------------------------===//
#include "circt/Dialect/FIRRTL/Ops.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Dialect/FIRRTL/Visitors.h"
#include "circt/Dialect/RTL/Ops.... |
/*
test_SpriteDX.cpp
DxLib
veiled functions https://densanken.com/wiki/index.php?dx%A5%E9%A5%A4%A5%D6%A5%E9%A5%EA%B1%A3%A4%B7%B4%D8%BF%F4%A4%CE%A5%DA%A1%BC%A5%B8
https://dxlib.xsrv.jp/dxfunc.html
64 bit OK (sequence sensitive)
g++ -o dist/test_SpriteDX_64.exe src/test_SpriteDX.cpp -DDX_GCC_COMPILE -DDX_NO... |
/**
* \file PnlWzskLivSysmon.cpp
* job handler for job PnlWzskLivSysmon (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#ifdef WZSKCMBD
#include <Wzskcmbd.h>
#else
#include <Wzskd.h>
#endif
#include "Pn... |
/* NAME:
TransformGeometry.cpp
DESCRIPTION:
Quesa utility source.
AUTHORSHIP:
Initial version written by <NAME>.
COPYRIGHT:
Copyright (c) 2008-2021, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwa... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
///\file
/// Declares function templates to calculate the Ricci tensor
#pragma once
#include <cstddef>
#include "DataStructures/DataBox/Tag.hpp"
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "PointwiseFunctions/GeneralRelativity/Index... |
#include <Eigen/Core>
#include <Eigen/Dense>
#include <opencv2/opencv.hpp>
#include <opencv2/core/eigen.hpp>
#include <boost/filesystem.hpp>
#include <Open3D/Open3D.h>
#include <glog/logging.h>
#include "FileSystemTools.h"
#include "YamlFileIO.h"
// fitness threshold
double min_fitness_thresh = 0.05;
struct Registr... |
// Author: Jieying(<NAME>
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <sys/time.h>
#include <vector>
#include <sstream>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
using namespace std;
// X11 structures
Display* display;
Window window;
// fixed frames per second animation
int FPS = 60;
int ... |
/*************************************************************************
>>> Author: WindCry1
>>> Mail: <EMAIL>
>>> Website: https://windcry1.com
>>> Date: 9/14/2019 1:25:46 PM
*************************************************************************/
#include <cstring>
#include <cmath>
#include <cstdio>
#include <cc... |
#include "DetectNetController.h"
DetectNetController::DetectNetController(int defaultCamPort1,
int camPort2,
std::string model){
//Run the DetectNet Program
m_model = model;
SetCameraPorts(defaultCamPort1, camPort2);
... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <viewer/shader.hpp>
#include <viewer/camera.hpp>
#include <viewer/model.hpp>
#include <orion/rtc_parser.hpp>
#include <orion/raytracer.hpp>
#include <iostream>
voi... |
#include <iostream>
#include <string>
#include <vector>
#include <pthread.h>
#include <stdint.h>
#include <math.h>
//contains value of each octet of the broadcast address
//contains value of each octet of the network address
struct info
{
//initial string containing read ip
std::string ip;
//initial string ... |
/*******************************************************************************
* Copyright (c) 2017-2020
* School of Electrical, Computer and Energy Engineering, Arizona State University
* PI: Prof. <NAME>
* All rights reserved.
*
* This source code is part of NeuroSim - a device-circuit-algorithm framework to ... |
#include "drawing.h"
#include <cstdlib>
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace Pineapple;
int circle_precision = 24;
/* Low-level drawing stuffles */
void Drawing::drawBegin(GLenum mode) {
glBegin(mode);
}
void Drawing::drawEnd(void) {
glEnd();
}
void Drawing::drawVertex(GL... |
#include "GNSSMTi.h"
#include "common/TextController.h"
#include "Module/serialport/SerialHandler.h"
#include <unistd.h>
#include <sys/stat.h>
#include <string>
GNSSMTi::GNSSMTi()
{
_connected = false;
_recorded = false;
_serialHandler = new SerialHandler();
}
GNSSMTi::~GNSSMTi()
{
}
bool GNSSMTi::setAddress(st... |
/*
Transform single data point or entire point cloud from camera frame to robot base frame using Hand-Eye calibration
matrix.
This example shows how to utilize the result of Hand-Eye calibration to transform either (picking) point coordinates
or the entire point cloud from the camera frame to the robot base frame.
Fo... |
#include <Arduino.h>
#include <ClickEncoder.h>
#include <TimerOne.h>
#include "MCP4921.h"
#include "SSD1306.h"
#include "Font5x7.h"
#include "Font11x15.h"
#include "Button.h"
#include "Output.h"
#include "AnalogInput.h"
#include "definitions.h"
#include "bitmaps.h"
SSD1306 display;
Font5x7 smallFont;
Font11x15 bigFo... |
// Copyright 2017 The Crashpad 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.