text stringlengths 3.08k 22k |
|---|
#include "ZZC.hpp"
namespace rack_plugin_ZZC {
enum ModeIds {
MUSICAL_MODE,
DECIMAL_MODE,
FREE_MODE,
NUM_MODES
};
void writeMusicalNotation(char *output, float voltage) {
char notes[20][20] = {"c", "ic", "d", "id", "e", "f", "if", "g", "ig", "a", "ia", "b"};
int noteIdx = (int)(eucmod(voltage, 1.0f) / (... |
/* Copyright (c) 2021 M.A.X. Port Team
*
* 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, ... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <vector>
extern "C" {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wzero-length-array"
#pragma GCC diagnostic ignored "-Wpedantic"
#include <libusb.h>
#pragma GCC diagnostic pop
}
#include <ass... |
// 626 native driver stuff
#include "s626drv.h"
#include "App626.h"
#include "s626mod.h"
#include "s626core.h"
#include "s626api.h"
#include "cc.h"
#include "daq.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <pthread.h>
using namespace std;
#include <s... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
// Copyright 2021 <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 writ... |
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <cassert>
#include <ctime>
#include "omp.h"
#include "mpi.h"
#include "Strategy.hpp"
#include "Game.hpp"
#include <caravan.hpp>
std::vector<ActionRule> ActionRuleCandidates(const ReputationDynamics&... |
#pragma once
class UI;
class UIBar;
class Camera2D;
class Image2DView;
class ImmediateRenderer2D;
class RenderTarget2D;
class Texture2D;
#include "D3D.h"
// union that represents either a 32bit float or a 32bit unsigned int
union FU {
float Float;
unsigned int Uint;
};
// define vectors containing four, nine, or ... |
/*
* This file is an example implementation of the menu system.
*/
#include "script.h"
#include <NativeWheel.hpp>
// You can ignore these includes as they're only used to resolve
// paths, log things to a file or to provide nice wrappers for natives.
#include "Util/Paths.h"
#include "Util/Util.hpp"
#include "Util/Lo... |
#include "ace/Event_Handler.h"
#include "ace/Reactor.h"
#include "Algorithms/Controller.h"
#include "IO/MessageManager.h"
#include "IO/Stream.h"
#include "Logger/Log.h"
#include "Messages/Extraction.h"
#include "Messages/TSPI.h"
#include "UnitTest/UnitTest.h"
#include "Utils/Utils.h"
#include "ABTracker.h"
using nam... |
// Copyright (c) 2021 PaddlePaddle 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 requir... |
////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... |
#include <eosio/check.hpp>
#include <eosio/crypto.hpp>
#include <eosio/fixed_bytes.hpp>
#include <eosio/r1_key.hpp>
#include <memory>
std::string format_error_message(std::string_view msg, const char *file,
int line) {
return std::string(msg) + " " + file + ":" + std::to_string(line)... |
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
#include "src/s3_cmds/zgw_s3_object.h"
#include <algorithm>
#include "slash/include/env.h"
#include "slash/include/slash_string.h"
#include "src/zgwstore/zgw_define.h"
#include "src/s3_cmds/zgw_s3_xml.h"
bool UploadPartCopyPartialCmd::DoInitial() {
DLOG(INFO) << "UploadPartCopyPartial(DoInitial) - " <<
req_hea... |
#include "MMU.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "LowLevel.h"
#include "Utility.h"
#include "KernalLib.h"
struct PageDirectoryPointerEntry
{
uint64_t Present : 1;
uint64_t Reserved : 2;
uint64_t Write_Through : 1;
uint64_t Cache_Disabled : 1;
uint64_t Reserved2 : 4;
uint64_t ... |
//
// MirrorState.cpp
// Somatopia2
//
// Created by <NAME> on 1/27/15.
//
//
#include "MirrorState.h"
#define WIDTH 320
#define HEIGHT 240
void MirrorState::setup() {
type = MIRROR_KALEIDOSCOPE;
buffer = NULL;
timeOfLastStar = -100;
star = 2;
offset = 0.5;
slitScanPos = 0;
// ... |
//landlord.cpp
//models the finances for an apartment building
#include "landlord.h" //for class declarations, etc.
//////////////////////global functions////////////////////////
void getaLine(string& inStr) // get line of text
{
char temp[21];
cin.get(temp, 20, '\n');
cin.ignore(20, '\n');
... |
// Typedefs for convenience.
typedef SO3partA_CGproduct_cop SO3part_CGproduct;
typedef SO3partA_CGproduct_back0_cop SO3part_CGproduct_back0;
typedef SO3partA_CGproduct_back1_cop SO3part_CGproduct_back1;
// Routines for torch / GElib interface.
SO3partArray SO3partArrayFromTensor(const torch::Tensor& x_real, const torc... |
int n,r7d,u
,c4, tmwWL
,
MSx
,
n6,
PZab , ytM
,V, xUD1//ne
,WTp ,ALPj, n02, T7b ,
//dThM
w9h
,GPQ , PQ, A2 ,TVK, p2Xt5,pUj7S9
, im
, MLP/*E*/,p
,
KQ7
;
void f_f0
(){//HBQ
return ;
{ ;{
;//1I
return
; { volatile int rdQ, QXt , Qq0C//4
,Jj5;/*sHN*/ if
(true)for(int i=1
; /*v3C*/i<1 ;++i )KQ7= Jj5
/... |
/*
* Knowledge.cpp
*
* Created on: Apr 4, 2016
* Author: goldman
*/
#include "Knowledge.h"
#include <cassert>
using std::endl;
unordered_set<size_t> Knowledge::add(const size_t variable, const bool value) {
auto rewrite_it = rewrites.find(variable);
// If "variable" is currently being rewriten to somet... |
#include "rTarcom.h"
#include "de/hackcraft/psi3d/ctrl.h"
#include "de/hackcraft/psi3d/GLS.h"
#include "de/hackcraft/psi3d/math3d.h"
#include "de/hackcraft/psi3d/Primitive.h"
#include "de/hackcraft/world/Entity.h"
#include "de/hackcraft/world/World.h"
#include <cassert>
std::string rTarcom::cname = "TARCOM";
unsig... |
// Ref: https://cp-algorithms.com/data_structures/fenwick.html
// https://github.com/kartikkukreja/blog-codes/blob/master/src/BIT%20or%20Fenwick%20Tree%20Data%20Structure.cpp
/*********************************************************************************************************************/
#include<bits/stdc+... |
#include "ArcballHelper.hpp"
#include "resource_context/include/ResourceTypes.hpp"
#include "vpr/PipelineLayout.hpp"
#include "vpr/ShaderModule.hpp"
#include "vpr/GraphicsPipeline.hpp"
#include "vpr/LogicalDevice.hpp"
#include "vpr/PhysicalDevice.hpp"
#include "vpr/Swapchain.hpp"
#include "vpr/PipelineCache.hpp"
#inclu... |
// #include <Arduino.h>
#ifdef ESP32
#include <AsyncTCP.h>
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#endif
#include <ESPAsyncWebServer.h>
#include <WebSocketsServer.h>
#include "config.h"
// gzipped html content
#include "camera/camera_index.h"
#include "camera/camera... |
#include "cell.h"
#include <string>
using namespace std;
// #define DEBUG
/* Local helper: Given two Info objects, determine the direction */
Direction getDir(Info cur, Info src) {
int rDiff = cur.row - src.row;
int cDiff = cur.col - src.col;
switch (rDiff) {
case -1: // cur one row above src
... |
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by <NAME> & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License... |
//
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mod... |
/*++
Module Name
bgdebug.cpp
Description
Implements functions used for debugging
Note
Revised based on msplog.cpp which is not available to bridge test app
--*/
#include "stdafx.h"
#include <stdio.h>
#define MAXDEBUGSTRINGLENGTH 512
static DWORD sg_dwTraceID = INVALID_TRACEI... |
/**
* @author <NAME> <<EMAIL>>
* @date Thu Jun 5 17:47:55 CEST 2014
*
* @brief The C++ implementations of the Gabor jet similarities and disparity computation
*
* Copyright (C) 2011-2014 Idiap Research Institute, Martigny, Switzerland
*/
#include <bob.ip.gabor/Similarity.h>
#include <boost/assign.hpp>
static... |
/*
* Copyright (c) 2020 <NAME> All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
#include "SHIFactory.h"
#include <iostream>
#include <string>
#include <utility>
#include "ArduinoJson.h"
#include "SHICommunicator.h"
#include "SHIHardware... |
//-----------------------------------------------------------------------------------
//
// SAFECASS: Safety Architecture For Engineering Computer-Assisted Surgical Systems
//
// Copyright (C) 2012-2015 <NAME> and <NAME>
//
//-----------------------------------------------------------------------------------
//
// Crea... |
#include "CKalmanPosition.h"
CKalmanPosition::CKalmanPosition()
{
}
CKalmanPosition::~CKalmanPosition()
{
}
void CKalmanPosition::Init( float dtIn )
{
m_dt = dtIn; // 0.030 sec
// Measurement matrix (0,0,z,vx,vy,vz)
for( int i = 0; i < 4; i++ )
{
for( int j = 0; j < 6; j++ )
{
m_H[i][j] = 0;
}
}
... |
#include "LSHReservoirSampler.h"
#include "indexing.h"
#include "misc.h"
#include "LSHReservoirSampler_config.h"
void LSHReservoirSampler::kernelBandWidth(const std::string& kernelName, float br, float bw, float time) {
float actual = ((br + bw) / 1000000000) / (time / 1000);
std::cout << "[Bandwidth] " << kernelNa... |
/* GNU/Linux/x86-64 specific low level interface, for the in-process
agent library for GDB.
Copyright (C) 2010-2021 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
#include "Drawable.h"
#include "Debug.h"
#include "TextureLoader.h"
#include "lodepng/lodepng.h"
#include <cstdlib>
#include <cassert>
#define LOG_TAG "Drawable"
static GLuint LoadPngFromAsset(AAssetManager *manager, const char *imageFilename) {
const unsigned int bitDepth = 8;
GLuint texture_id = 0;
AA... |
/*
* MemScanChainTest.cpp
*
* Created on: Apr 27, 2016
* Author: jcassidy
*/
#include <BDPIDevice/Device.hpp>
#include <BDPIDevice/ReadPortPipeWrapper.hpp>
#include <BDPIDevice/WritePortWrapper.hpp>
#include <BDPIDevice/BitPacking/Types/FixedInt.hpp>
#include <BDPIDevice/BitPacking/Types/std_bool.hpp>
#inc... |
/*
* Copyright (C) 2015 LINK/2012 <<EMAIL>>
* Licensed under the MIT License, see LICENSE at top level directory.
*
*/
#include <stdinc.hpp>
enum class Type
{
Ogg = 0,
StreamPak = 1, // StrmPak.dat
StreamLookUp = 2, // StrmLkUp.dat
PakFiles = 3, // ...
Max ... |
#include <glad/glad.h>
#include "objLoader.h"
#include <glm/vec3.hpp>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <iostream>
// Read triangle mesh from Wavefront OBJ file format
bool readTriangleMesh(
const std::string &filename,
std::vector<glm::vec3> &positions,
std::vector<glm::... |
/*
* Created by mbenlioglu on Oct 03, 2020.
*/
#pragma once
#include <iostream>
#include "graph.hpp"
/**
* @brief Constructor to create Graph object from a file
* @tparam alg which algorithm to be used in MST calculation
* @param filename File that contains the adjacency list representation of graph
*/
t... |
/******************************************************************************\
* SOUBOR: hevc_compress.cc
* AUTOR: <NAME> (xdlaba02)
\******************************************************************************/
#include "file_mask.h"
#include <ppm.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <li... |
#include "LWEGeometry2D.h"
#include <algorithm>
bool LWEGeometry2D::RayRayIntersect(const LWVector2f &aRayStart, const LWVector2f &aRayEnd, const LWVector2f &bRayStart, const LWVector2f &bRayEnd, LWVector2f *IntersectPoint){
const float e = std::numeric_limits<float>::epsilon();
LWVector2f ADir = aRayEnd - aRay... |
static int context = 0;
class BiDirValueContext
{
protected:
using forwardEntryValue = void*;
using backwardEntryValue = void*;
using forwardExitValue = void*;
using backwardExitValue = void*;
using contextId = int;
std::map<std::tuple<Function*, forwardEntryValue, backwardEntryValue>, std::tupl... |
//
// Drivers code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2018 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// ... |
/***************************************************************************
Konami 005289 - SCC sound as used in Bubblesystem
This file is pieced together by <NAME> from a combination of
Namco Sound, Amuse by Cab, Nemesis schematics and whoever first
figured out SCC!
The 005289 is a 2 channel sound gen... |
//
// Created by yzqlwt on 2020/11/30.
//
#include "FlatBuffersSerialize.h"
#include "NodeReaderProtocol.h"
#include "ObjectFactory.h"
#include "reader/ProjectNodeReader.h"
#include "reader/ComAudioReader.h"
#include "reader/NodeReader.h"
#include "reader/WidgetReader.h"
#include "reader/ImageViewReader.h"
#include "r... |
#include <algorithm>
#include <array>
#include <cassert>
#include <ctime>
#include <iostream>
#include <random>
enum class CardSuit
{
SUIT_CLUB,
SUIT_DIAMOND,
SUIT_HEART,
SUIT_SPADE,
MAX_SUITS
};
enum class CardRank
{
RANK_2,
RANK_3,
RANK_4,
RANK_5,
RANK_6,
RANK_7,
RANK_8,
RANK_9,
RANK... |
// cfcode v1.6
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <functional> // greater<int>()
#include <vector>
#include <string>
#include <queue>
#include <stack>
#include <list>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime... |
//
// SavGolFilter.cpp
// ImageProcessing
//
// Created by <NAME> on 22/02/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "SavGolFilter.hpp"
#include "SavGolKernel.hpp"
#include <stdexcept>
#include <climits>
class Kernel : public SavGolKernel
{
public:
Kernel(Point const& size, Point cons... |
//-----------------------------------------------------------------------------
// File : XmlVariables.cpp
// Author : <NAME> <<EMAIL>>
// Created : 06/05/2012
// Project : General Purpose
//-----------------------------------------------------------------------------
// Description :
// Ex... |
//============================================================================
// Name : 2020.cpp
// Author : <NAME>
// Version :
// Copyright : Your copyright notice
//============================================================================
// I am deeply sorry for my combined usage of camelCase... |
#include "tests.h"
///\brief ///Tests class constructor
///\details /// This constructor takes a hwlib::i2c_bus_bit_banged_scl_sda i2c wich represnts the i2c bus,
/// const uint8_t chipaddres wich represents the RTC addres,
///unsigned char Date[] witch represents the buffer for the date,
... |
// Copyright (C) <NAME> 2017. All Rights Reserved.
// This is basically a carbon copy of the engines CharacterMovement timestamp verification, minus support for time dilation.
#include "NTGame.h"
#include "NTGame_MovementTypes.h"
#include "NTGame_MovementComponent.h"
#include "GameFramework/GameNetworkManager.h"
///... |
/*
* Copyright (c) 2015 - 2022, 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 condition... |
#include <string>
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Instructions.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Constants.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/CallSite.h"
using namespace std;
using namespace llvm;
n... |
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_system.h>
#include <nvs_flash.h>
#include <nvs.h>
#include <driver/gpio.h>
#include <driver/uart.h>
#include <esp_intr_alloc.h>
#include <esp_log.h>
#include <esp_timer.h>
#include <AtoMatrix.h>
#include "Calibration.h"
#include "MadgwickAHRS.h... |
#include "glob.h"
const string Glob::GLOB_ANIM_UP = "up";
const string Glob::GLOB_ANIM_DOWN = "down";
const string Glob::GLOB_ANIM_LEFT = "left";
const string Glob::GLOB_ANIM_RIGHT = "right";
const string Glob::GLOB_ANIM_IDLE_UP = "idleUp";
const string Glob::GLOB_ANIM_IDLE_DOWN = "idleDown";
const string Glob::GLOB_A... |
/* This file contains the code that is presented in the Tutorial.md
* file in the main folder of this project. The tutorial can also
* be viewed in the main page of the doxygen documentation.
*
* This code implements a problem where a tiger needs to plan
* in order to catch an antelope in a NxN toroidal grid world... |
/*
* Copyright (c) 2018, <NAME>, KEBA Corp
* 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 c... |
//
// main.cpp
// ololo1
//
// Created by <NAME> on 7/24/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#include <iostream>
#include <vector>
#include <fstream>
#include <cstring>
#include <map>
#include "common.h"
#include "inverted_index.h"
#include "wrap.h"
using namespace std;
InvertedIndex inv... |
/*
Copyright 2013 KLab 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 wri... |
#include <string>
#include <stack>
#include <set>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <memory>
#include <thread>
#include <sstream>
#include <iostream>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include "EasyBMP.h"
#include "ppix.h"
#include "triops.h"
#i... |
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... |
/*
File: CppPotpourri.cpp
Author: <NAME>
Date: 2020.09.10
Copyright 2016 Manuvr, 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 requ... |
/*
* StaircaseCode.cpp
*
* Created on: Nov 26, 2017
* Author: leizhang
*/
#include <algorithm>
#include <cassert>
#include "StaircaseCode.h"
using namespace StaircaseCodeNS;
StaircaseCode::StaircaseCode() :
ber(0.0),
bker(0.0) {
}
StaircaseCode::~StaircaseCode() {
}
void StaircaseCode::init(const Dat... |
/*
Draw3DSamples.cpp
<NAME>
09/09/2007
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <vector>
using namespace std;
#include <GL/glew.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <math.h>
#include "Exception.hpp"
#include "SFT.hpp"
#include "FrameBuffer.hpp"
... |
// Copyright (c) 2020 PaddlePaddle 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 requir... |
/*
* Copyright 2019 SiFive, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You should have received a copy of LICENSE.Apache2 along with
* this software. If not, you may obtain a copy at
*
* https://www.apache.org/... |
/* Copyright (c) <2009> <<NAME>>
*
* 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 (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include "AtlasPacker.h"
#include "MaxRects.h"
#include <iostream>
#include <sstream>
#include <chrono>
#include <numeric>
void AtlasPacker::WriteAtlasImageData(ImageData& images, int width, int height)
{
int channels = 4;
int atlas_pitch = width * channels;
unsigned char* pixels = new unsigned char[(size_t)heig... |
#include "CXBitMap.h"
void FillUCharInUCharArray( unsigned char*, unsigned char, int, int );
void SetIntInUCharArray( unsigned char*, int, int );
CXBitMap::CXBitMap( int width, int height ) :
_width( width ), _height( height ), _colors( width* height ) {}
CXColor CXBitMap::GetColor( int x, int y ) const
{
//x offs... |
#include "ros/ros.h"
#include "ros/time.h"
#include <dynamic_reconfigure/server.h>
#include <pos_cmd_generator/pos_cmd_generator_paramsConfig.h>
#include <iostream>
#include "mavlink_message/PositionCommand.h"
#include "quadrotor_msgs/PositionCommand.h"
#include "mavlink_message/quad_state.h"
#i... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Flying_Enemy.h"
#include "j1Textures.h"
#include "j1Scene.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Collision.h"
#include "j1Entity.h"
#include "j1Map.h"
#include "j1Player.h"
#include "j1Pathfinding.h"
#include ... |
/*
<NAME>
IIIT Bangalore
*/
#include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-5
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define pr(v) { for(int ... |
//-----------------------------------------------------------------------------
// File: D3DUtil.cpp
//
// Desc: Shortcut macros and functions for using DX objects
//
//
// Copyright (c) 1997-1999 Microsoft Corporation. All rights reserved
//-----------------------------------------------------------------------------
... |
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using std::vector;
void ParticleFilter::init(double x, double y, double theta, double ... |
/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... |
#include "item.h"
#ifndef CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG
#define CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG 0
#endif
BOOL FormatNames(DWORD cNames, PCERT_NAME_BLOB rgNames, HWND hwnd, DWORD idc)
{
DWORD cb;
BOOL f;
DWORD i;
... |
#include "../include/puzzle.hpp"
Puzzle::Puzzle(const int game_size, const int tile_width, const std::string &font)
:m_size { game_size },
m_tile_width { tile_width },
m_font { TTF_OpenFont(font.c_str(), tile_width / 2) },
m_base_path { SDL_GetBasePath() },
m_rng { std::mt19937(time(nullptr)) }... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2017 CCSL IME-USP
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is dist... |
#include <bits/stdc++.h>
// string split like in Python, nearly identical to https://stackoverflow.com/a/46931770/997151
std::vector<std::string> split(const std::string& s, const std::string& delimiter) {
size_t pos_start = 0;
size_t pos_end{};
std::vector<std::string> res;
while ((pos_end = s.find(d... |
/*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020... |
#include <cannon/plot/axes.hpp>
#include <cmath>
#include <sstream>
#include <imgui.h>
#include <cannon/graphics/texture.hpp>
#include <cannon/graphics/character.hpp>
#include <cannon/graphics/vertex_array_object.hpp>
#include <cannon/graphics/vertex_shader.hpp>
#include <cannon/graphics/fragment_shader.hpp>
#includ... |
/*
Copyright (c) 2002, <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 following discla... |
#include "jsonSaveManager.h"
using std::string;
using std::cout;
using std::endl;
using vision::Vision;
void jsonSaveManager::save_robots() {
for (Robot2* robot : interface->robots) {
json &robot_config = configs["Robots"][robot->get_role_name()];
robot_config["ID"] = string(1, robot->ID);
robot_config["tag"]... |
/**
* Author: Terence-Lee 'Zinglish' Davis
* License: MIT
* Email: zinglish[at]gmail.com
* Twitter: @zingatsu
*/
#include "events.h"
#include "hook.h"
#include "callables.h"
#include "../globals.h"
#include "../ipc/ipc_event.h"
#include "../ipc/ipc_server_man.h"
#include "player.h"
#include "../ipc/limbo.h"
... |
#include <stdio.h> /* printf */
#include <stdlib.h> /* getenv */
#include <iostream>
#include <string>
#include <stdexcept>
#include <time.h> //for randomizing
#include <assert.h>
using namespace std;
//ready
class cOTP {
public:
static string ProgramName;
static string ProgramVersion;
void menu (); // ... |
/*
BT_set.cpp
*/
#include <Arduino.h>
#include "BT_set.h"
BT_set::BT_set() {
//_pin = 1;
//pinMode(_pin, OUTPUT);
}
void BT_set::bt_connect() {
SerialBT.begin(set_data_buf.SBTDN); // bluetoothスタート
SerialBT.setTimeout(100); // タイムアウトまでの時間を設定
}
void BT_set::bt_disconnect() {
SerialBT.b... |
#include "shader.h"
#include <string>
#include <fstream>
#include <sstream>
#include "glm/gtc/type_ptr.hpp"
#include <vector>
#include <iostream>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
MyShader::MyShader(std::string vertName, std::string geoName, std::string fragName) : usingGeom(true){
setShade... |
/*
* 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 "hermes/BCGen/HBC/HBC.h"
#include "hermes/BCGen/BCOpt.h"
#include "hermes/BCGen/HBC/BytecodeGenerator.h"
#include "hermes... |
#include "daScript/daScript.h"
#include "daScript/simulate/fs_file_info.h"
using namespace das;
void require_project_specific_modules();//link time resolved dependencies
das::FileAccessPtr get_file_access( char * pak );//link time resolved dependencies
#if !defined(DAS_GLOBAL_NEW) && defined(_MSC_VER) && !defined(_W... |
/* Copyright (c) 2010-2017, <NAME>
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QtCore>
#include <QHostAddress>
#include <QSet>
#include <TActionContext>
#include <TWebApplication>
#inc... |
/*******************************************************************************
*
* Copyright (c) 2010-2015 <NAME>
*
* This file is part of MASA-CUDAlign.
*
* MASA-CUDAlign is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... |
#include "audio_importer.h"
#include "halley/tools/assets/import_assets_database.h"
#include "halley/bytes/byte_serializer.h"
#include "halley/resources/metadata.h"
#include "halley/audio/vorbis_dec.h"
#include "halley/audio/resampler.h"
#include "ogg/ogg.h"
#include "vorbis/codec.h"
#include "vorbis/vorbisenc.h"
#inc... |
// https://github.com/microsoft/onnxruntime/blob/rel-1.6.0/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Capi/CXX_Api_Sample.cpp
// https://github.com/microsoft/onnxruntime/blob/rel-1.6.0/include/onnxruntime/core/session/onnxruntime_cxx_api.h
#include <cuda_provider_factory.h>
#include <onnxruntime_cxx_api.h>
#i... |
#include <stdlib.h>
#include <string>
#include <sys/types.h>
#include <dirent.h>
#include <ecl/ecl.h>
#if ANDROID
#include <android/log.h>
#endif
#if ANDROID
#define ECL_TAG "example_tag"
#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, ECL_TAG, __VA_ARGS__))
#define LOGW(...) ((void)__android_log_prin... |
/*************************************************************************/
/* editor_plugin_settings.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// myapp.hpp
// MIT License
// See LICENSE.txt file in root of project
// Copyright(c) 2018 <NAME>
#pragma once
#include "../../include/common_stl_hdrs.hpp"
#include <globalutils.hpp>
#include <application.hpp>
#include <window.hpp>
#include <glslprogram.hpp>
#include <vertexarrayobject.hpp>
#include <vertexbuf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.