text stringlengths 3.08k 12.5k |
|---|
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <iostream>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
string LinuxParser::OperatingSystem() {
string line;
string key;
string value;
std::ifstrea... |
#include "texture.hpp"
//////////////
// Includes //
#include <iostream>
#include <fstream>
#include <png.h>
#include <tuple>
#include <cstdlib>
#include <cstdio>
//////////
// Code //
// Some configs.
const static int PNG_HEADER_SIZE = 8;
const static auto BAD_RETURN = std::make_tuple(0, -1, -1);
// Loading the h... |
//
// scanner.cpp
// Krim
//
// Created by <NAME> on 2021-03-22.
//
//> Scanning on Demand scanner-c
#include <string.h>
#include "common.h"
#include "scanner.h"
typedef struct {
const char* start;
const char* current;
int line;
} Scanner;
Scanner scanner;
//> init-scanner
void Token::initScanner(const ch... |
#include "../hpp/menuVeterinario.hpp"
/*Intância o menu por meio de lista de valores
Usa os dados do sistema PetShop*/
MenuVeterinario::MenuVeterinario(PetShop *petshop) : Menu(petshop) {}
MenuVeterinario::~MenuVeterinario() {}
Veterinario *MenuVeterinario::getVeterinario()
{
/*Pega o usuário veterinário l... |
#include "AppClass.h"
void Application::InitVariables(void)
{
//Define amount of meshes
meshAmount = 46;
//Loop through mesh list
for (uint i = 0; i < meshAmount; ++i)
{
//Initialize meshes
MyMesh* pMesh = new MyMesh();
meshes.push_back(pMesh);
meshes[i]->GenerateCube(1.0f, C_BLACK);
}
}
void Application... |
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "MPC.h"
#include "json.hpp"
// for convenience
using json = nlohmann::json;
using namespace std;
// Checks if the SocketIO event has JSON data.
// If there is data the JSON object in string format... |
#include "dblogger.h"
#include <getopt.h>
#include "config.h"
#include "log.h"
#include "sqlite_storage.h"
#include <wblib/signal_handling.h>
#include <wblib/wbmqtt.h>
#include <wblib/rpc.h>
// From LSB
#define EXIT_INVALIDARGUMENT 2 // Invalid or excess arguments
#define EXIT_NOTCONFIGURED 6 // The program is no... |
/* logger_spam_test.cc
<NAME>, 5 December 2011
Copyright (c) 2011 Datacratic. All rights reserved.
Tests to flush out any potential deadlocks with the log output threads.
Note that fo here is shorthand for FileOutput.
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include "soa/logger/logger.h"
... |
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... |
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <random>
#include <set>
#include <vector>
class gate_type
{
public:
std::string name;
std::function<bool(bool, bool)> fn;
int cost;
bool operator()(bool a, bool b) cons... |
#include "Matrix4.h"
#include "Vector3.h"
#include "Matrix3.h"
const Matrix4 Matrix4::ZERO(
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0 );
const Matrix4 Matrix4::IDENTITY(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1 );
const Matrix4 M... |
//
// g++ async_example.cpp -o async_example -I.. -lboost_program_options -lhiredis -lev
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <string>
#include <iostream>
#include <sys/types.h>
#if _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winso... |
//
// MIT License
//
// Copyright (c) 2017 MRSD Team D - LoCo
// The Robotics Institute, Carnegie Mellon University
// http://mrsdprojects.ri.cmu.edu/2016teamd/
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to ... |
#include <pybind11/pybind11.h>
// XTENSOR Python
#define FORCE_IMPORT_ARRAY // numpy C api loading
#include "xtensor-python/pyarray.hpp" // Numpy bindings
#include <xtensor/xarray.hpp>
#include <xtensor/xcontainer.hpp>
#include <xtensor/xadapt.hpp>
// Standard libs
#include <string>
#include <cstdio>... |
#include <chrono>
#include <cstdio>
#include <limits>
#include <memory>
#include "bufferedreader.h"
#include "itch.h"
#include "order_book.h"
template <itch_t __code>
class PROCESS
{
public:
static itch_message<__code> read_from(buf_t *__buf)
{
uint16_t const msglen = be16toh(*(uint16_t *)__buf->get(0));
... |
//
// Copyright 2012 <NAME> and <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
/****************************************************************************
MIT License
Copyright (c) 2021 <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 re... |
/**
* Copyright © <NAME>. (<EMAIL>) All rights reserved.
* Authors: <NAME>. (<EMAIL>)
* All rights reserved.
* Language: C++
* License: see LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARR... |
// --------------------------------------------------------------------
// HyptermOnly.cpp
// --------------------------------------------------------------------
#include <winstd.H>
#include <new>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
using std::ios;
using std::c... |
#include <SdFat.h>
#include "Cloud.h"
#include "SDCard.h"
void SDCard::setup() {
super::setup();
pinMode(SD_ENABLE_PIN, OUTPUT);
pinMode(SD_INT_PIN, INPUT);
PowerOn();
}
LoopStatus SDCard::loop() {
super::loop();
return FinishedSuccess;
}
String SDCard::getResult() {
return result;
}
void SDCard::... |
//
// Copyright (c) 2021 SLM Dev <https://slm-dev.com/quik-connector/>. All rights reserved.
//
#include "ConfigService.h"
ConfigService::ConfigService(const string& scriptPath) {
auto configPath = scriptPath + "\\config\\config.yml";
this->configYaml = YAML::LoadFile(configPath);
config.scriptPath = scri... |
/*---------------------------------------------------------------------
TinyDbgr.cpp - A tiny debugger for applications.
Software Debugging by <NAME>, All rights reserved.
---------------------------------------------------------------------*/
#include "stdafx.h"
#include <stdlib.h>
#define WINVER 0x0501
#include <... |
#include <emscripten.h>
#include <emscripten/bind.h>
#include <inttypes.h>
#include <string>
#include <vector>
using namespace emscripten;
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libavutil/imgutils.h>
};
const std::string c_avformat_vers... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
/*
Receive user interface events like the keyboard and mouse.
Uses ancient DOS-era PS/2 mouse input, because that's all that seems to work.
UEFI has two mouse protocols (Simple Pointer and Absolute Pointer).
For some reason, neither of them(!) work in either QEMU or VirtualBox.
https://forum.osdev.or... |
// ROS Libraries
#include <ros/ros.h>
#include <std_msgs/Float64.h>
// Misc Libraries
#include <termios.h>
#include <thread>
#define MOTOR_NUM 6
// defining publishers
ros::Publisher vel_state_pub[MOTOR_NUM];
// Control variables
std_msgs::Float64 set_vel[MOTOR_NUM];
float cur_vel[MOTOR_NUM];
float pre... |
/**************************************************************
*
* 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 yo... |
/*
* Copyright 2014 Google Inc. 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 applica... |
////////////////////////////////////////////////////////////////////////////
// Module : ai_hen_pursuit.cpp
// Created : 12.04.2002
// Modified : 12.04.2002
// Author : <NAME>
// Description : Hen mode "Pursuit"
////////////////////////////////////////////////////////////////////////////
#include "stdafx... |
#include "2019/day20/cpp/include/donut.hpp"
#include <iostream>
#include <queue>
#include <set>
#include "utils/cpp/include/utils.hpp"
// Data structure for the queue
struct queue_data {
int m_depth;
std::vector<int> m_pos;
int m_level;
queue_data(int n1, std::vector<int> n2, int n3)
: m_depth(n1), m_... |
#include <iomanip>
#include <climits>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <tuple>
#include <regex>
#include <filesystem>
#include "string.hpp"
using namespace std;
using namespace std::filesystem;
void usage(string program)
{
cerr << "pdb/pdbqt residue renumbering tool ... |
// Copyright 2018 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "Properties.h"
#include "utils.h"
Properties::_IPersistStorage::_IPersistStorage(Properties *pp) :
pParent(pp),
noScribb... |
/*
mrem.cpp
Metro Remove: Remove start button and "Metro" UI
|| Written by: <NAME>
|| <EMAIL>
|| Tested on: Windows 8.1 Preview Build 9431, Windows 8 RTM
|| You are free to use the code anywhere you want but this comment block must not be removed
*/
#pragma once
#include <stdio.h>
#include <tchar.h>
#... |
#include <pybind11/pybind11.h>
#include <numpy/ndarrayobject.h>
#include <numpy/npy_math.h>
#include <iostream>
#include "MatterSim.hpp"
namespace py = pybind11;
namespace mattersim {
class ViewPointPython {
public:
ViewPointPython(ViewpointPtr locptr) {
viewpointId = locptr->viewpointId;
... |
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... |
#include "eval.hpp"
#include "environment.hpp"
#include "row_lambda.hpp"
#include "../logger.hpp"
using namespace oqtopus;
ValuePtr reverse(ValuePtr to_reverse, ValuePtr reversed) {
if (nullptr == to_reverse) return reversed;
return reverse(to_reverse->cdr(),
std::make_shared<Cell>(to_reverse->... |
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include "geometry_msgs/Twist.h"
#define MIN_RANGE 1
#define FORWARD_SPEED_MPS .2
#define ROTATE_SPEED_RADPS M_PI/18
#define MIN_SCAN_ANGLE_RAD -40.0/180*M_PI
#define MAX_SCAN_ANGLE_RAD +40.0/180*M_PI
ros::Publisher commandPub;
// 0 = forward
// 1 = rotate
int ... |
#include <bits/stdc++.h>
namespace geometry2D {
// classes --------------------------------------------------------------------
template <typename T>
class PointVector {
public:
T x, y;
PointVector(const T &x, const T &y);
const PointVector<T> operator+(const PointVector<T> &other) const;
const PointVector<... |
/**
* Testea segmentos.
* @author <NAME>
* @date 19/04/2018
*/
// Importación de librerías
#include <iostream>
#include <cassert>
#include "../elem/segmento.h"
/**
* Testea el largo de un segmento.
*/
void testLargo() {
// Triángulo 3,4 -> 5
Punto<float> p1 = Punto<float>(0, 0);
Punto<float> p2 = Pu... |
#include <Mojagame.h>
RenderContext::RenderContext() {
}
RenderContext::~RenderContext() {
std::for_each(_textures.begin(), _textures.end(), [](std::pair<std::string, Texture*> val) {
delete val.second;
});
}
void RenderContext::init( ) {
// Set up the basics
glClearColor(0, 0, 0, 1);
_in... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* 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 ... |
#include <river/module-loader.hh>
#include <iostream>
using namespace v8;
const std::string& ReadFile(const std::string& path) {
std::ifstream it(path.c_str());
const std::string* contents = new std::string(
(std::istreambuf_iterator<char>(it)),
std::istreambuf_iterator<char>()
);
return *contents;
}
... |
// Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... |
///////////////////////////////////////////////////////////////////////
// main.cpp
///////////////////////////////////////////////////////////////////////
#include <iostream>
#include <list>
#include <cstdlib>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
///////////////////////////////////////////////////... |
#include "STLSceneLoader.h"
#include "SceneDrawables.h"
#include "SceneLoader.h"
#include "NullOut.h"
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <fmt/format.h>
#include <fstream>
#include "gettext.h"
using namespace std;
using namespace boost::algorithm;
using fmt::format;
using ... |
#include<SDL2/SDL.h>
#include<SDL2/SDL_image.h>
#include<SDL2/SDL_ttf.h>
#include<SDL2/SDL_mixer.h>
#include"SDL_extra.h"
#include<stdio.h>
#include<string>
#include<time.h>
#include"pianoKey.h"
//Screen Dimensions
const int SCREEN_WIDTH {1050};
const int SCREEN_HEIGHT {500};
//Default Functions
bool init();
bool loa... |
#include <errno.h>
#include <sstream>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include "core/File.h"
#include "core/IntervalStatLogger.h"
#include "core/MemoryMappedFileDeadlockResolver.h"
#include "core/MemoryUtils.h"
#include "core/ResourceMonitor.h"
#include "core/Timer.h... |
// This version works with one per chunk
#include "watermarking.hpp"
#include "parse_ppm.hpp"
#include <iostream>
#include <fstream>
#define COLS 25920
#define ROWS 12060
//for Journal of super
#define FRAMES 10
//#define FRAMES 1
//#define ROWS 256
//#define COLS 128
//#define ROWS 12060
//#define COLS 1920
vo... |
#define _CRT_SECURE_NO_WARNINGS
#define UPNP_DEBUG_C
#include "upnp/upnp.h"
#include "upnp/UpnpLog.h"
#include "upnp/upnptools.h"
#include "sqlite/sqlite3.h"
#include "matroska/matroska_export.h"
#include "matroska/FileKax.h"
#include "FLAC/all.h"
#include "net.h"
#include <windows.h>
#include <stdl... |
#include <stdio.h>
#include <string.h>
#include <SxError.h>
#include <SxList.h>
#include <SxString.h>
#include <SxFunction.h>
#include <SxCLI.h>
void foo (const SxString &i) { printf ("foo(%s)\n", i.ascii()); }
void fooIso (double val) { printf ("global iso: %g\n", val); }
class A
{
public:
A (int i_) : i(i_... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Traceur authors
*
* 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 u... |
/*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, provided tha... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "arith_uint256.h"
#... |
#include <signal.h>
// ROS
#include <ros/ros.h>
// ROS msgs
#include <geometry_msgs/PoseStamped.h>
#include <sensor_msgs/Joy.h>
#include "vive_bridge/TrackedDevicesStamped.h"
// Dynamic reconfigure
#include <dynamic_reconfigure/Config.h>
#include <dynamic_reconfigure/Reconfigure.h>
// tf2
#include <tf2_ros/transfo... |
/******************************************************************************
** Copyright (C) 2008 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 15/07/09
**
** File: mrs... |
/*
Copyright (c) 2021 - present Advanced Micro Devices, 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 without restriction, including without limitation the rights
to us... |
#include "CvTestbed.h"
#include "GlutViewer.h"
#include "Shared.h"
#include "FernImageDetector.h"
#include "FernPoseEstimator.h"
using namespace alvar;
using namespace std;
bool init = true;
std::stringstream calibrationFilename;
FernPoseEstimator fernEstimator;
FernImageDetector fernDetector(true);
Drawable d;
cv::M... |
#include <iostream>
#include "VisionManager.hpp"
#include "const.hpp"
using namespace std;
using namespace cv;
using namespace AL;
VisionManager::VisionManager(boost::shared_ptr<ALBroker> broker) :
mCameraIndex(TOP_CAM), mColorSpace(kBGRColorSpace), mNameBot("Challenge_Bot"), mNameTop("Challenge_Top")
{
mBotCamer... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestAMRReadWrite.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WIT... |
#include "Window.h"
#include "MMGui.h"
#include "IM_ShaderImporter.h"
#include "IM_FileSystem.h"
#include "MO_ResourceManager.h"
Window::Window() : active(false), name("Dev window"), scrollToBottom(false), txtName("")
{
txtEditor.SetLanguageDefinition(TextEditor::LanguageDefinition::GLSL());
txtEditor.SetText("");
}... |
// Copyright <NAME> 2018-2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <yaml-cpp/yaml.h>
#include <getopt.h>
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <s... |
#include "pch.h"
#include "AmberCraft/Chunk.h"
AmberCraft::Chunk::Chunk()
{
}
void AmberCraft::Chunk::FillChunk(BlockType p_blockType)
{
for (uint16_t i = 0; i < CHUNK_ELEMENTS_COUNT; ++i)
{
blocks[i].type = p_blockType;
}
}
void AmberCraft::Chunk::UpdateNeighBors()
{
if (m_chunksNeighbors.left)
m_chunksNei... |
#include <vector>
#include <iostream>
#include <ctime> // http://www.cplusplus.com/reference/ctime/time/
#include <iomanip>
#include <sstream>
#include <openssl/sha.h>
#include <climits> // http://www.cplusplus.com/reference/climits/
#define u8 unsigned char
#define u32 unsigned int
#define u64 unsigned long long
#de... |
/*
This file is part of kdepim.
Copyright (c) 2004 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your optio... |
// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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, inc... |
#include "nn.h"
NN::NN(int inputs, int outputs, int hidden_layers, int nodes_per_layer):
m_inputs(inputs), m_outputs(outputs), m_hidden_layers(hidden_layers), m_nodes(nodes_per_layer)
{
if(m_hidden_layers == 1){
m_layers.push_back(NN_Matrix(m_inputs, m_outputs));
}else{
for(int i = 0; i < m_hidden_layers; i++)
... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2012, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
/** main.cpp
* @author <NAME>
*
* @email <EMAIL>
*
* @desc The main firmware source code for the CAN-Arduino-ROS gateway.
*
*/
/** Note:
* - This Firmware and its library have set the ROS-Arduino Serial baudrate to be 500Kbps (500000 BPS).
* Double check the baudrate by following the instruction in the... |
#include "DataAnalyse.h"
void* DataAnalyse::currentPtr = nullptr;
bool DataAnalyse::isFirstMemory = false;
void DataAnalyse::process(TokenList& _tokenList) {
function = nullptr;
if (strcmp(_tokenList[0], ".word") == 0) function = word;
if (strcmp(_tokenList[0], ".byte") == 0) function = byte;
if (strcmp... |
/**
* @brief Main entry point for `system76-kbd-led`, the C++ version.
*
* @author <NAME>
* @license MIT
**/
#include "brightness.hpp"
#include "color.hpp"
#include "fs.hpp"
#include "keyboard.hpp"
#include "logging.hpp"
#include <boost/program_options.hpp>
#include <iostream>
#include <sys/stat.h>
using color::ce... |
#include "test_runner.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
#include <string>
#include <numeric>
#include <sstream>
#include <map>
#include <functional>
#include <memory>
using namespace std;
template <typename Iterator>
class IteratorRange {
public:
IteratorRange(Iterat... |
// The MIT License (MIT)
//
// Copyright (c) 2019 jh0x
//
// 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, modi... |
//
// Created by ki608 on 2021-11-27.
//
#include "config_watcher.hpp"
#include <spdlog/spdlog.h>
#include "../utils.hpp"
#include "perfkit/common/algorithm.hxx"
#include "perfkit/common/template_utils.hxx"
#include "perfkit/detail/base.hpp"
#define CPPH_LOGGER() detail::nglog()
using namespace perfkit::terminal::... |
/*
* guiTypeTextInput.cpp
* artvertiser
*
* Created by damian on 25/10/10.
* Copyright 2010 frey <EMAIL>. All rights reserved.
*
*/
#include "guiTypeTextInput.h"
//------------------------------------------------
void guiTypeTextInput::setup(string textInputName, string defaultVal)
{
valueText.setText( ... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
#include "CollidablePhysicsComponent.h"
#include "GameEngine/Util/CollisionManager.h"
#include "GameEngine/EntitySystem/Entity.h"
#include "GameEngine/Util/AABBUtil.h"
#include <iostream>
#include <vector>
using namespace GameEngine;
CollidablePhysicsComponent::CollidablePhysicsComponent()
{
}
CollidablePhysicsC... |
#include "core/print_string.h"
#include "core/class_db.h"
#include "core/color.h"
#include "core/image.h"
#include "core/os/os.h"
#include "core/io/resource_saver.h"
#include "geotiff_import.h"
#include <geotiff/xtiffio.h>
#include <vector>
#include <algorithm>
void GeotiffImportPlugin::_bind_methods() {
}
String Geo... |
char T[MAX_N]; // the input string, up to 100K characters
int n; // the length of input string
int RA[MAX_N], tempRA[MAX_N]; // rank array and temporary rank array
int SA[MAX_N], tempSA[MAX_N]; // suffix array and temporary suffix array
int c[MAX_N]; ... |
#include "cAngles.h"
#include <cmath>
cAngles::cAngles(size_t size)
: _size(size), _phi(0), _dim(0)
{
_init_phi_dim();
}
cRotationMatrix cAngles::ROTk(const size_t k) const
{
tPlane CurrentPlane(GetDim(k));
return cRotationMatrix(_size, CurrentPlane.first,
CurrentPlane.second, _phi[k]);
}
void cAngles::Rotate... |
#include <tests/Base.hh>
#include <aleph/geometry/RipsExpanderTopDown.hh>
#include <aleph/topology/MaximalCliques.hh>
#include <aleph/topology/Simplex.hh>
#include <aleph/topology/SimplicialComplex.hh>
#include <aleph/topology/filtrations/Data.hh>
#include <algorithm>
#include <vector>
using namespace aleph::topo... |
/*
* Trajectory.cpp
*
* Created on: May 17, 2019
* Author: nora
*/
#include "TrajectoryGenerator.h"
#include "Constants.h"
#include "helpers.h"
#include "CoordinateTransformation.h"
#include <iostream>
#include <vector>
#define DISTANCE_AHEAD 30.0
#define WAYPOINTS_DISTANCE 30.0
#define TIME_HORIZON 2... |
// Executables must have the following defined if the library contains
// doctest definitions. For builds with this disabled, e.g. code shipped to
// users, this can be left out.
#ifdef ENABLE_DOCTEST_IN_LIBRARY
#define DOCTEST_CONFIG_IMPLEMENT
#include "doctest.h"
#endif
#include <iostream>
#include <stdlib.h>
#inclu... |
/*
* lift_bed.cpp
*
* Lifting over genomic intervals in the BED format
*
* Author: <NAME>
* Dept. of Computer Science, Johns Hopkins University
*
* Distributed under the MIT license
* https://github.com/milkschen/leviosam2
*/
#include <ctime>
#include <getopt.h>
#include <iostream>
#include "leviosam_utils.hp... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
#include <thread>
#include <vector>
#include <meow/format/format_to_string.hpp>
#include <meow/unix/time.hpp>
#include <nanomsg/nn.h>
#include <nanomsg/pubsub.h>
#include <nanomsg/pipeline.h>
#include <unistd.h>
#include "pinba/globals.h"
////////////////////////////////////////////////////////////////////////////... |
#pragma once
#include "model.h"
void ExtractTexture(const aiMaterial *Material, std::string Path, texture_type TextureType, std::vector<texture> &Textures)
{
// Assimp Reference: http://assimp.sourceforge.net/lib_html/material_8h.html#a7dd415ff703a2cc53d1c22ddbbd7dde0
aiString Filename;
aiTextureType Ass... |
#include "Character.h"
#include "IMesh.h"
#include "IWorld.h"
#include "IPhysics.h"
#include "IInputProfile.h"
#include "IDynamicBody.h"
#include "ISphereCollisionGeometry.h"
#include "ICharacterController.h"
// Fixes needed:
// - PID controller to maintain orientation when on a slope? (created when keys not pressed)... |
/*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, instal... |
/*
* Title: SpiSerialDisplay
*
* Objective:
* This example demonstrates how to write data to an SPI device.
*
* Description:
* This example will set up SPI communications on COM-0 then write various
* data to the device.
*
* Requirements:
* ** A NHD-0420D3Z LCD display in SPI mode connected to COM-0... |
/*
* Copyright (c) 2005
* <NAME> and <NAME>. All rights reserved.
*
* See the COPYRIGHT_NOTICE file for terms.
*/
#include "qposition.h"
#include "parameters.h"
#include <stdio.h>
IDSTR("$Id: qposition.cpp,v 1.8 2014/12/12 21:20:21 bmiller Exp $");
/****/
// Is this how to have a global that is initiali... |
//
// 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, modify, ... |
#include "HTTPResponse.hpp"
std::string_view HTTPResponse::statusToString(HTTPResponse::StatusCode code)
{
switch (code)
{
case Continue:
return "Continue";
case SwitchingProtocols:
return "SwitchingProtocols";
case Processing:
return "Processing";
case EarlyHints:
... |
#include "GDebugMenuContainer.h"
#include "GLevelWidget.h"
#include "GDebugWidget.h"
#include "GHealthWidget.h"
#include "GGiveAllPowerUpsWidget.h"
#include "GLevelUpPlayer.h"
#include "GManaWidget.h"
#include "GItemWidget.h"
#include "GDebugButtonWidget.h"
#include "GGameState.h"
#include "Items.h"
static const TUint... |
#include<bits/stdc++.h>
#include<Eigen/Core>
#include<Eigen/Dense>
using namespace std;
typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> MatrixDD;
class Vertex{
public:
Vertex(Eigen::Vector3d v){
this->param_ = v;
}
Eigen::Vector3d param_;
};
class Edge{
public:
Edge(double x, doub... |
/**
@file netdev.cpp
@brief This file is part of Kalinka mediaserver.
@author <NAME> <<EMAIL>>
Copyright (c) 2007-2012 Kalinka 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 Sof... |
#include <lemon/syscall.h>
#include <Lemon/Graphics/Surface.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/Core/Keyboard.h>
#include <stdlib.h>
#include <list>
#include <unistd.h>
#define SNAKE_CELL_EMPTY 0
#define SNAKE_CELL_SNAKE 1
#define SNAKE_CELL_APPLE 2
#define SNAKE_CELL_... |
/*
* Copyright (c) 2006 - 2008
* Wandering Monster Studios Limited
*
* Any use of this program is governed by the terms of Wandering Monster
* Studios Limited's Licence Agreement included with this program, a copy
* of which can be obtained by contacting Wandering Monster Studios
* Limited at <EMAIL>.
*... |
/*
* Copyright (c) 2020 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
/*-
* Copyright (c) 2020-2021 <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 copyright
* notice, this list of condition... |
// Copyright 1996-2019 Cyberbotics Ltd.
//
// 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 agr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.