text stringlengths 5.71k 33.7k |
|---|
#include <iostream>
#include <string>
#include <fstream>
#include <stdio.h>
#include "itkImage.h"
#include "itkExceptionObject.h"
#include "itkBrains2MaskImageIOFactory.h"
#include "ThirionRegistration.h"
#include <metaCommand.h>
//This function prints the valid pixel types.
void PrintDataTypeStrings(void)
{
//Pr... |
#include "inc/graphics/scene/BoardRenderable.hpp"
#include "src/game/board/Board_template.cpp"
#include "src/graphics/scene/CheckerRenderable_template.cpp"
rl::Model BoardRenderable::rlModel = { 0 };
int BoardRenderable::shaderHlFromLoc[SHADER_MAX_HIGHLIGHTS];
int BoardRenderable::shaderHlToLoc[SHADER_MAX_HIGHLIGHTS];... |
#include "interface.h"
#include "MeshParser.hpp"
using namespace nd;
#include "nd_header.h"
namespace nd{
#include "Detour/DetourCommon.h"
#include "Detour/DetourNavMesh.h"
#include "Detour/DetourNavMeshBuilder.cpp"
template<class T> inline T rcMin(T a, T b) { return a < b ? a : b; }
inline unsigned in... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#define TMAX 8 // maximum number of threads
#if 1
#include <omp.h>
#else
static inline int omp_get_num_threads(){return 1;}
static inline int omp_get_thread_num() {return 0;}
#endif
#define PROFILE
#ifdef PROFILE
#include <sys/time.h>
static dou... |
/*
* Copyright (c) 2004, Laminar Research.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, ... |
/*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... |
/*-------------------------------------------------------------------------------
BARONY
File: game.hpp
Desc: header file for the game
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
-------------------------------------------------------------------------------*/
#prag... |
#include "../utilities/csgo.hpp"
#include "../../hack/features/visuals/esp.h"
bool math::GetBoundingBox(BaseEntity* entity, bbox_t& box)
{
const auto collideable = entity->Collideables();
if (collideable == nullptr)
return false;
vec3_t top, down, air, s[2];
vec3_t adjust = vec3_t(0, 0, -15) * entity->DuckAmo... |
#include <iostream>
#include <list>
#include <algorithm>
#include <codecvt>
#include "ciphers.hpp"
#include "utf8.h"
#define ALPH_ENG 26
#define ALPH_RUS 32
#define SPACE_WC L' '
#define LEAST_FR L'X'
#define MX_S_ENG 5
#define MX_S_RUS 6
extern std::locale loc;
//std::wstring_convert< std::codecvt_utf8<wchar_t> > ... |
#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace std;
using namespace cv;
void createQuaternionImage(InputArray _img, OutputArray _qimg)
{
int type = _img.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
CV_Assert((depth == CV_8U || depth == CV_32F || depth == CV_64F) && ... |
/*
NXGallery for Nintendo Switch
Made with love by <NAME> (<EMAIL>)
MIT License
Copyright (c) 2020-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... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//*****************************************************************************
// Callback.cpp
//
// Implements the profiling callbacks and does the right thing for icecap.
//
//***************************************... |
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "stereo.hpp"
#include "matching_cost.hpp"
#include "stereo_common.hpp"
#include "dsi.hpp"
#include "cost_aggregation.hpp"
#ifdef __GNUG__
#include <chrono>
#include <iostream>
/*
static std::chrono::time_point<std::chrono::system_clock> start;
sta... |
using namespace RSLib;
//-------------------------------------------------------------------------------------------------
// class rsGraphicsRenderer2D (the abstract baseclass):
// construction/destruction:
rsGraphicsRenderer2D::rsGraphicsRenderer2D()
{
}
rsGraphicsRenderer2D::~rsGraphicsRenderer2D()
{
}
// set... |
/**************************************************************
*
* 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 y... |
#include <Engine/MeshEdit/Paramaterize.h>
#include <Engine/MeshEdit/CParameterize.h>
#include <Engine/MeshEdit/MinSurf.h>
#include <Engine/Primitive/TriMesh.h>
#include <Engine/Scene/CmptGeometry.h>
#include <Engine/Scene/CmptMaterial.h>
#include <Engine/Material/BSDF_Frostbite.h>
#include <Engine/Scene/SObj.h>
#incl... |
#include "Trace.h"
#pragma warning(disable:4996)
bool TraceObject::ReadFromFeatureTracksFileForKymograph(char *filename,int type_offset=0)
{
FILE * fp = fopen(filename,"r");
if(fp == NULL)
{
printf("Could not open %s for reading\n",filename);
return false;
}
int curr_track = -1;
TraceLine* curr_line = NULL;
... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <string>
struct ModelInput
{
double start_army_size; // > 0 Tamanho inicial do exército
double start_enemy_size; // > 0 Tamanho inicial do exército inimigo
double loose_battle_fract... |
// VRM4U Copyright (c) 2019 <NAME>. This software is released under the MIT License.
#pragma once
#include "VrmUtil.h"
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
void FImportOptionData::init() {
}
const TArray<VRMUtil::VRMBoneTable> VRMUtil::table_ue4_vrm = {
{"Root",""},
{"Pelvis","hips"},
... |
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
/*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... |
#include <cmath>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "../common/Type.hpp"
#include "../common/Result.hpp"
#include "../Core.hpp"
#include "Model.hpp"
static astro::Mat<4,4, float> aiMat2Astro(const aiMatrix4x4 &mat){
astro::Mat<4,4, float>... |
/* *****************************************************************************
* Created by <NAME> 12/19/2020
*
* Copyright 2019 <NAME> <https://github.com/abathur8bit>
*
* You may use and modify at will. Please credit me in the source.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
class square
{ int c_x,c_y;
int col;
public: void fill();
void plot();
void play(int game=3);
void draw_circle(int ,int , int );
int check_YELLOW();
int check(int, int, int, int);
int check_chance(int ,int );
int load_game(char *);
void load_fill();
void save_game(int... |
#include <iostream>
#include <fstream>
#include "state_logic.h"
int piece_list_data[48][11] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{2, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0},
{2, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0},
{2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{2, 0, 0, 1, 0, 0, 0, 0,... |
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
//#include "Arduino.h"
#include <WiFi.h>
#include <WiFiType.h>
#include "Esp.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "esp_task_wdt.h"
#include "time... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2014-2015 Dash Developers
// Copyright (c) 2017-2018 The Stipend developers
// Copyright (c) 2017-2018 The Interzone developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://ww... |
// Copyright (c) 2014 Quanta Research Cambridge, 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... |
// Copyright 2015, <NAME>.
// Licensed under The MIT License
//
#include "kinect.h"
#include <math.h>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <vector>
#inclu... |
// This file is part of CRAAM, a C++ library for solving plain
// and robust Markov decision processes.
//
// 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 restric... |
/**
* llvm three-address code generator -- variables
* @author <NAME> <<EMAIL>>
* @date apr/may-2020
* @license GPLv3, see 'LICENSE' file
* @desc Forked on 18/July/2020 from my privately developed "matrix_calc" project (https://github.com/t-weber/matrix_calc).
*
* References:
* - https://llvm.org/docs/LangRef... |
/**
* @file cli.cpp
* @author <NAME>
*
* Implementation of the CLI module for parsing parameters.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not, see
*... |
/*
*
* Copyright (c) 2014, <NAME> (Delft University of Technology)
* 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
* ... |
#include <iostream>
#include <fstream>
#include <string>
#include <zlib.h>
#include "vector_tile.pb.h"
#define XMAX 4096
#define YMAX 4096
extern "C" {
#include "graphics.h"
#include "clip.h"
}
struct line {
int x0;
int y0;
int x1;
int y1;
};
struct point {
int x;
int y;
};
#define MAX_POINTS 10000
struct ... |
#include "MainWindow.h"
#include "CrcCheck.h"
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QStandardPaths>
#include <QMessageBox>
#include <QSettings>
#include <QFileInfo>
#include <QDebug>
#include <QTimer>
#include <QDir>
#include <QDomDocument>
#include <QDateTime>
#include <QStandardItemModel>
#incl... |
/*
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, pr... |
/// Linear transformation of the wave-functions.
/** The transformation matrix is expected in the CPU memory. */
template <typename T>
inline void transform(device_t pu__,
int ispn__,
double alpha__,
... |
#include "CurvesEditor.h"
#define WIDTH 800
#define HEIGHT 600
#define CURVE_SIZE 20.0
//Atributos janela
int RESIZED_WIDTH = WIDTH;
int RESIZED_HEIGHT = HEIGHT;
bool keys[1024];
GLuint pointsVAO, centralCurveVAO, internalCurveVAO, externalCurveVAO;
GLuint pointsVBO, centralCurveVBO, internalCurveVBO, externalCurve... |
#include "clientData.hpp"
#include "Logger.hpp"
#include "task_force_radio.hpp"
#include "antennaManager.h"
#include <iomanip>
#define logParam(x) str << #x << " " << (x) << "\n"
#define logParamN(n,x) str << #n << " " << (x) << "\n"
void LISTED_INFO::operator<<(std::ostream& str) const {
logParamN(over, static_... |
#include <fs/Formats/FAT/FAT32/FATPartition.h>
#include <fs/Formats/FAT/FAT32/Directory.h>
#include <fs/Formats/FAT/FAT32/FAT.h>
using namespace UnifiedOS;
using namespace UnifiedOS::FileSystem;
using namespace UnifiedOS::FileSystem::FAT32;
#include <common/cstring.h> //Needed for path interaction
Fat32Partition::Fa... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include <nvs.h>
#include <nvs_flash.h>
#include "aws_iot_config.h"
#include "aws_iot_log.h"
#include "aws_iot_version.h"
#include "aws_iot_mqtt_client_int... |
/* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
#include "riptide_teleop/ps3_controller.h"
#define GRAVITY 9.81 // [m/s^2]
#define WATER_DENSITY 1000 // [kg/m^3]
bool IS_ATTITUDE_RESET = false;
bool IS_DEPTH_RESET = false;
int main(int argc, char **argv)
{
ros::init(argc, argv, "ps3_controller");
PS3Controller ps3;
ps3.Loop();
}
PS3Controller::PS3Con... |
#include <cstring>
#include <ios>
#include <iostream>
#include <list>
#include <map>
#include <sstream>
#include "hxhim/hxhim.hpp"
#include "print_results.h"
#include "utils/Blob.hpp" // private header
#include "utils/memory.hpp"
enum HXHIM_OP {
PUT,
GET,
GETOP,
DEL,
BPUT,
BGET,
BGETOP,
... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
#include <cstdlib>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <assert.h>
using namespace std;
#include <math.h>
#include <TStyle.h>
#include "TImage.h"
#include "TAttImage.h"
#include "MECanvasHolder.hh"
ClassImp(MECanvasHolder);
MECanvasHolder::MECanvasHolder()
: fCanvas(0), fWelcomePav... |
/******************************************************************************
* 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, includi... |
#include <fstream>
#include <iostream>
#include <stack>
#include <unordered_set>
#include "EquivCollection.hpp"
#include "Optimizer.hpp"
#include "csv.h"
#include "eigen3/Eigen/Dense"
#include "filesystem/path.h"
#include "popl.hpp"
#include "sparsepp.h"
#include "spdlog/spdlog.h"
#include "spdlog/fmt/ostr.h"
struct ... |
//FileName: ViewModel.cpp
//Programmer: <NAME>, <NAME>
//Date: 11/15/2015
//Purpose: Define the methods for the World ViewModel class.
//The Init() method needs to set up OpenGL and GLEW and prepare all objects (and their shaders) to be rendered.
//The Draw() method positions and renders all objects in the scene an... |
#include "fractal_demo.hpp"
#include <cassert>
#include <cmath>
#include <future>
#include <thread>
#include <utility>
#include <vector>
#include <termox/termox.hpp>
#include "float_t.hpp"
#include "julia.hpp"
#include "mandelbrot.hpp"
namespace {
using fractal::Float_t;
auto constexpr zoom_scale = 0.05;
auto co... |
// =============================================================================
// Name : nflat_surfaces_node.cpp
// Author : <NAME>
// Description :
// =============================================================================
#include <franka_polishing/spacenav.h>
#include <visualization_msgs/Marker.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.