text
stringlengths
3.08k
12.5k
//Illustration of non-linear lense distortion // <NAME>, 2017-2022 //This code is licensed under the 3-Clause BSD License. See LICENSE file for details. #include <iostream> #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <opencv2/calib3d.hpp> #include "combine.hpp" ...
// // ct_http_msg_server.cpp // ct_http_msg_server // // #include "WebSocketServConn.h" #include "netlib.h" #include "ConfigFileReader.h" #include "RouteServConn.h" #include "DBServConn.h" #include "version.h" #include "ServInfo.h" #include "HttpConn.h" #import "WebSocketConn.h" #include "HttpQuery.h" #include "util...
#include <iostream> #include <string> #include <fstream> #include <vector> #include <algorithm> #include "Employee.h" #include "Filter.h" using namespace std; void getUserInput(vector <vector<Employee *> *> &sortedByDataFieldVector); int main(int argc, char *argv[]) { if (argc != 5) { // We print argv[0...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <array> #include <cstddef> #include <ostream> #include "DataStructures/Variables.hpp" #include "ErrorHandling/Assert.hpp" #include "Utilities/DereferenceWrapper.hpp" #include "Utilities/Gsl.hpp" /// \cond template <size_t Di...
//===== record.hpp ===================================================================================================== // // Author: <NAME> <<EMAIL>> // // Licence: // Copyright 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in co...
// 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 "crypto/cssm_init.h" #include <Security/SecBase.h> #include <stdint.h> #include "base/logging.h" #include "base/mac/scoped_cftyperef.h" #in...
// v8 #include <v8.h> // node #include <node.h> #include <nan.h> #include <node_version.h> // stl #include <sstream> #include <iostream> #include <stdio.h> #include <stdlib.h> // osr #include "ogr_spatialref.h" #include "cpl_error.h" // CPLE_AppDefined #include "cpl_conv.h" // CPLFree #include "cpl_string.h" // CPLS...
// // Created by <NAME> on 14.02.18. // #include "rule_base.h" #include <cassert> #include <sstream> #include <string> #include <vector> #include <sb/filters/mem.h> #include <sb/filters/types.h> #include <sb/meta-filters/types.h> #include <sb/operations/types.h> #include <scheme_interpreter/scheme-private.h> #inclu...
/// \file NSSolver.cpp /// \brief Defines the (fractional) steps to solve the incompressible Navier-Stokes equations /// \date Dec 2, 2016 /// \author Severt /// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights reserved. #include <iostream> #include "NSSolver.h" #include "../pressure/VCycleMG...
#include "AnimationManager.h" #include "../TinyXML/tinyxml.h" #include "TimeStamp.h" #include "Game.h" #define Alocation string("resource/Graphics/") AnimationManager::AnimationManager() { } AnimationManager::~AnimationManager() { } AnimationManager* AnimationManager::GetInstance(void) { static AnimationManager s_...
#include <Teuchos_YamlParameterListHelpers.hpp> #include <apf.h> #include <apfMesh2.h> #include <apfNumbering.h> #include <ma.h> #include <parma.h> #include <PCU.h> #include <spr.h> #include "goal_control.hpp" #include "goal_disc.hpp" #include "goal_functional.hpp" #include "goal_mechanics.hpp" #include "goal_output....
/****************************************************************************** * Copyright (c) 2020, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception. * *****************************************************************************/ #include "sct_assert.h" #include ...
/* convert_cds_alignments_to_haplotypes Add intron reference seqeunces to cds allele alignments and write the resulting genomic haplotype sequences as fasta. */ #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <regex> #include <assert.h> #include "SeqLib/FastqRe...
#include <string> #include <vector> #include "Eigen/Eigen" #include "pcl/common/common.h" #include "pcl/filters/crop_box.h" #include "pcl_conversions/pcl_conversions.h" #include "ros/ros.h" #include "sensor_msgs/PointCloud2.h" #include "surface_perception/segmentation.h" #include "surface_perception/surface_objects.h"...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* * md5.cpp * Implementation from wikipedia * * Author: <NAME> */ #include <cstdio> #include <cstdlib> #include <cstring> #include "../core/md5.h" using namespace std; // leftrotate function definition #define LEFTROTATE(x, c) (((x) << (c)) | ((x) >> (32 - (c)))) // Note: All variables are unsigned 32 bit and...
// MIT License // // Copyright (c) 2017 sylt // // 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,...
/* High-Precision Arithmetic implemented with Arrays of Digits. Adapted from the book "Programming Challenges" by <NAME> and <NAME>, 2003, Springer. (c) 2015 <NAME> */ #include "stdio.h" #include "iostream" #define MAXDIGITS 100 /* maximum length bignum */ #define PLUS 1 /* positive sign bit */ #d...
#include <assert.h> #include <intrin.h> #include <memory.h> #include <chrono> #include <iomanip> #include <iostream> #include <vector> #include "common/image.h" #include "common/scene.h" #include "render_baseline.h" #include "render_sequential.h" #include "render_sse.h" const unsigned kFrameCount = 10; static inlin...
#include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> #include <syslog.h> #include <fcntl.h> #include <sys/resource.h> #include <mysql/mysql.h> #include <sys/wait.h> #include <stdio.h> #include <json/json.h> #include "judge.h" #include <map> #include <fstream> #include <algorithm> using na...
#include "WriterCompareTriangle.h" #include <assert.h> WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode) { cutscene(nbVertices, geode.getBoundingBox()); } bool WriterCompareTriangle::operator()(const std::pair<Triangle, int> & t1, ...
#include <iostream> #include <stdio.h> #include <string> #include <vector> #include "version.h" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include "scene.h" void framebuffer_size_callback(GLFWwindow* window, int width, int height); void mouse_callback(GLFWwindow* window, double xpos, dou...
/** @defgroup MleParts Magic Lantern Parts */ /** * @file br3dammd.cxx * @ingroup MleParts * * This file implements a 3D Annotation Role * targeting the BRender platform. * * @author <NAME> * @date May 1, 2003 */ // COPYRIGHT_BEGIN // // Copyright (C) 2000-2007 Wizzer Works // // Wizzer Works makes availa...
#include "../include/DFT.h" double inner(std::vector<double>a, std::vector<double>b) { int n = a.size(); double sum = 0; for(int i = 0;i < n;i ++) { sum += a[i] * b[i]; } return sum; } std::vector<double> proj(std::vector<double> u, std::vector<double> v) { double delta = 0; delta = inner(u,...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
#include "HexSelector.h" #include <iostream> #include "W_ResourceLoader.h" HexSelector::HexSelector(float tileWidth) { //Set the Selectors width m_tWidth = tileWidth; GenerateVerts(); // set up rendering m_dProgram = wolf::ProgramManager::CreateProgram(wolf::ResourceLoader::Instance().getShaders("cube")); m_pVB...
/*************************************************************************** * * @license * Copyright (C) Codeplay Software Limited * 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 *...
// All content Copyright (C) 2018 Genomics plc #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "variant/type/breakpoint.hpp" #include "utils/exceptions.hpp" #include "caller/region.hpp" using wecall::utils::BasePairSequence; using wecall::variant::Breakpoint; using wecall::variant::Variant; ...
/* This file is part of MADNESS. Copyright (C) 2007,2010 Oak Ridge National Laboratory 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 your option...
#include <bits/stdc++.h> #define VI vector<int> #define VII vector<pair<int,int>> #define QI queue<int> #define ms(a,v) memset( a, v, sizeof( a ) ) #define FOR(i,a,b) for(int i = a; i <= b; ++i) #define ROF(i,a,b) for(int i = a; i >= b; i--) #define foreach(v, c) for( typeof( (c).begin() ) v = (c).begin(); v != (c).e...
/* * Copyright 2013 <NAME> <<EMAIL>> * * 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 your option) any later version. * * This program is distr...
#include "CLPathFinder.h" #define CHECK_OPENCL_STATUS(ret, string) \ do { \ cl_int clRet = ret; \ if (clRet != CL_SUCCESS) { ...
// needs c++11 #include <chrono> #include <iostream> #include <cstdlib> #include "cholesky.hpp" using namespace linalg; namespace cn = std::chrono; cn::time_point<cn::high_resolution_clock> startTimer() { return cn::high_resolution_clock::now(); } double endTimer(cn::time_point<cn::high_resolution_clock> t1) { aut...
#include "chemgraph.hpp" #include <string> #include <cstring> #include <cstdlib> #include <iostream> #include <map> using namespace std; #define MAX_NODE 75 map<string, int> chemgraph::ele; int chemgraph::ele_cnt = 0; int chemgraph::match_ele(const char atom[]) { string tmp = atom; auto it = ele.find(tmp); ...
// Copyright 2016 Strength in Numbers Foundation #include "paperwallet.h" #include <QBuffer> #include <QFile> #include <QDir> #include <QTextStream> #include <QPixmap> #include <QUrl> #include <qrencode.h> #include <boost/filesystem.hpp> #include <curl/curl.h> //extern const boost::filesystem::path &GetDataDir(bo...
#include "player.hpp" cMonster::cMonster() { mHealth = 0; mArmor = 0; mGold = 0; mAttack = 0; mAP = 0; gNumOfMonsters += 1; monsterCanRun = false; // mostly only prey can run... } cMonster::cMonster(sint iHealth, sint iArmor, sint iGold, sint iAttack, sint iAP, sint iXP, bool iCanRun) { // use functions ...
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second typedef long long ll; typedef long double ld; typedef pair<int, int> pi; const int MOD = 1000000007; const ll INF = 1000000000000000000LL; const int MAX_N = 1e5 + 5; const int MAX_LOG = 25; class SegmentTree { public:...
/** * @file ut_array_dims.cpp * @brief Unit test for NDArrayDims * @ingroup core * * @author <NAME> * @date 15.02.18 * Copyright © 2018 <NAME>. All rights reserved. */ #include <type_traits> #include "gtest/gtest.h" #include "nd_array_dims.pb.h" #include "facekit/core/nd_array_dims.hpp" TEST(NDAr...
#include <algorithm> #include "interpreter.h" #include "interpreter/test_stdlib.h" #include <opencv2/opencv.hpp> namespace { using namespace Asampl::Interpreter; //int convert_index(int index, size_t size) { //if (size == 0) { //throw InterpreterException("Cannot index empty array"); ...
// // Created by mcochrane on 5/04/17. // #define __STDC_LIMIT_MACROS #include <stdint.h> #if !defined(TESTING) #include <min/min_transmit_cmds.h> #endif #include <exception/ExceptionValues.h> #include "Period.h" Period::Period() : field_count_(0) {} Period Period::Decompile(uint8_t *data, uint8_t* bytes_c...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkColorFilter.h" #include "SkColorSpaceXformer.h" #include "SkColorSpaceXform_Base.h" #include "SkDrawLooper.h" #include "SkGradientShader.h" #include "SkImage_Base....
#include "sdl2pp/texture.hpp" #include "sdl2pp/renderer.hpp" #include <SDL2/SDL_image.h> using namespace sdl2; texture::texture(renderer& r, pixel_format_enum const format, texture_access const access, wh<int> const wh) noexcept : texture_{SDL_CreateTexture(r.native_handle(), static_cast<std::uint32_t>(format),...
// Fill out your copyright notice in the Description page of Project Settings. #include "GenerateSoundBanksCommandlet.h" #if WITH_EDITOR #include "AssetRegistryModule.h" #include "Editor.h" #include "AkAudioBank.h" #include "AkAudioEvent.h" #include "AkAudioBankGenerationHelpers.h" #define LOCTEXT_NAMESPACE "AkAudio...
/* Copyright (c) 2017, <NAME> <<EMAIL>> * Licensed under the MIT license. See the license file LICENSE. */ #pragma once #include <random> #include <cmath> #include <iostream> #include <Eigen/Dense> #define LOG_2 0.69314718055994529 #define LOG_PI 1.1447298858494002 #define LOG_2PI 1.8378770664093453 #define LOG_4PI...
/** * @author <NAME> <<EMAIL>> * @license Simplified BSD License */ #include "serial_message.h" using namespace tuw::serial; Time Time::OFFSET ( 0,0 ); bool Time::CLOCK_SYNC ( false ); uint32_t Message::tx_count = 0; uint32_t Message::rx_count = 0; uint16_t Message::sync_count = 0; Time::Time() { set ( 0,0 ...
#include "point_cloud.h" #include <QtDebug> #include <ctime> #include <math.h> PointCloud::PointCloud(): _is_ready(false), _max_num_pts(1000000), _point_size(2.0f) { } void PointCloud::loadPoints(std::vector<float> &positions, bool build_octree) { _positions.swap(positions); // give data ownership ...
#include <iostream> #include <cstring> #include <cmath> #include <cassert> #include <vector> /* This program has a memory complexity of O(n) and an algorithmic efficiency of O(n) as well. */ //global definitions: constexpr float LOW_NUM = -21269; constexpr float HIGH_NUM = 21269; const char* EXP_CHARS[] = { /...
//////////////////////////////////////////////////////////////////////////// // Module : UIInvUpgradeInfo.cpp // Created : 21.11.2007 // Modified : 27.11.2007 // Author : <NAME> // Description : inventory upgrade UI info window class implementation //////////////////////////////////////////////////////////...
#include "StaticData.h" #include <cstdint> #include <cstdlib> #include "llvm/IR/Module.h" #include "llvm/Pass.h" #include "llvm/Passes/PassBuilder.h" #include "llvm/Passes/PassPlugin.h" #include "llvm/Support/raw_ostream.h" #include "Statement.h" #include "StatementDetection.h" #include "StatementRepository.h" usin...
#include "headers/plaintextedit.h" #include <QTextBlock> #include <QRegularExpression> #include <QTextDocumentFragment> #include "src/libs/include/helpers.h" #include "QDebug" PlainTextEdit::PlainTextEdit(QWidget *parent) : QPlainTextEdit(parent) { } QTextCursor PlainTextEdit::getModifiedTextCursor(QString text) { ...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX Developers // Copyright (c) 2017-2020 The DIVI Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or htt...
#include "Lexer.h" #ifdef Q_DEBUG #include <iostream> #endif // Q_DEBUG //parses the tag data out void ParseTags(vector<Tag>& tags, const string& source) { bool isInComment = false; bool isInQuotes = false; bool isPreprocesser = false; bool isInDiv = false; bool isInTag = false; string word = ""; Tag tagDat...
#include <application.h> //#include "utilities/builders.h" //#include "utilities/widgets.h" // //#include <imgui_node_editor.h> // //#define IMGUI_DEFINE_MATH_OPERATORS //#include <imgui_internal.h> // //#include <string> //#include <vector> //#include <map> //#include <algorithm> //#include <utility> #include "models...
/* * Copyright (c) 2020 Intel 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 or...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef int8_t i8; typedef int16_t i16; typedef int32_t i32; u8* mem; // Main memory u8* wm; // Additional memory that we use to store wordmark bits u8* in...
#include "TraceEventClick.h" #include "ClickGraphScene.h" #include <QColor> static_assert(sizeof(CEventCommon) == 8, "CEventCommon has inconsistent size"); static_assert(sizeof(CEventDumpHeader) == 48, "CEventDumpHeader has inconsistent size"); static_assert(offsetof(CEventDumpHeader, eindex) == 16, "CEventDumpHeader...
#include <iostream> #include <string> #include <sstream> #include <vector> #include <map> using namespace std; map<int, vector<vector<char>>> tiles; vector<int> all_id; vector<vector<int>> grid_id; vector<vector<char>> final_grid; vector<vector<char>> flip_tile(vector<vector<char>> tile) { vector<vector<char>> res;...
// ########################################################## // # This file is part of OpenADFortTk. # // # The full COPYRIGHT notice can be found in the top # // # level directory of the OpenADFortTk source tree. # // # For more information visit # // # http:...
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #include "glslSymbol.h" #include <float.h> #include <cstring> // Check against names that are keywords in GLSL, but not HLSL static bool...
#include <iostream> #include <TFile.h> #include <TTree.h> #include <TTreeReader.h> #include <HOAnalysis/HOL1/interface/DataReader.h> #include <HOAnalysis/HOL1/interface/HoProduct.h> #include <HOAnalysis/HOL1/interface/HoHistogramCollection.h> #include <HOAnalysis/HOL1/interface/Producer/BaseProducer.h> #include <HOAn...
/* Created by: Inohime @ 9/26/2021 */ #include <SDL.h> #include <SDL_syswm.h> #include <dwmapi.h> #include <iostream> #pragma comment (lib, "dwmapi.lib") constexpr int W = 1024; constexpr int H = 768; struct _position { SDL_Rect dragRect {W / 4, H / 4, W / 2, H / 2}; SDL_Rect client {0, 0, W, H}; SDL_Rect topLef...
#include "adjlist.h" #include "prjutil.h" #include "regspec.h" AdjList::AdjList( ) { _nints = 0; _color = INT_MIN; _disp = INT_MIN; _spcost = FLT_MAX; _spill = false; }; /** * Destroys the adjlist */ AdjList::~AdjList () { } /** * returns true, if the regs are equal */ bool AdjList::isRegEqual( const...
#include <complex> #include <cstring> #include <cmath> #include <fstream> #include <future> #include <iostream> #include <string> #include <thread> #include <vector> // Declare global varibles int imgWidth; int imgHeight; int iterations = 200; int bailout = 16; std::string threadMode; double widthChange = -1.5; doubl...
/* http://acm.math.spbu.ru/~sk1/mm/lections/mipt2016-sqrt/mipt-2016-burunduk1-sqrt.en.pdf 1. ins(i, x) – insert 𝑥 on 𝑖-th position. 2. del(i) – erase 𝑖-th element of the array. 3. sumGreater(l,r,x) – calculate sum of elements greater than 𝑥 on the range [𝑙, 𝑟]. 4. rev(l,r) – reverse the range [𝑙, 𝑟]. - to...
// // Created by kuhlwein on 7/16/20. // #include <Shader.h> #include <imgui/imgui.h> #include "Hillshade.h" #include "Project.h" Hillshade::Hillshade() : Appearance("Hillshade") { hillshade_texture = new Texture(100, 1, GL_RGBA, "gradient_hillshade_"+sid, GL_LINEAR); gradient = new GradientMenu("Hillshade gradient...
#include <cstdio> #include <algorithm> #include <cstring> #define lson l, mid, rt << 1 #define rson mid + 1, r, rt << 1 | 1 using namespace std; typedef long long ll; const int N = 2e5 + 10; int n, q, s; int fa[N], dep[N], siz[N], son[N], top[N], w[N]; int num, cnt, head[N]; inline int read() { int x = 0; bool f =...
/** * BSD 3-Clause License * * Copyright (c) 2020, <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, th...
#include <iostream> #include <cmath> using namespace std; class Polynomial { protected: class Term { public: int exponent; int coefficient; Term* next; Term(int exp, int coeff, Term* n) { exponent = exp; coefficient = coeff; next = n; } friend class Polynomial; }; public: Polynomial() { ter...
/* Copyright (C) 2020 <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, publish, distri...
/* * Copyright (c) 2016-20017 <NAME> <<EMAIL>> * this code can be found at https://github.com/maxcong001/translib_on_top_of_0mq * 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 ...
/* * TestCase.cpp * * Created on: Apr 13, 2017 * Author: broihier */ #include "TestCase.h" #include <iostream> #include <stdio.h> TestCase::TestCase(std::string id, std::string category, TestDatabase& database) { std::cout << "inside of test case constructor" << std::endl; DOMizedTemplate = new DOMizeTe...
#include "common.h" #include "hexutil/basics/error.h" #include "hexutil/basics/hexgrid.h" #include "hexutil/basics/noise.h" #include "hexutil/messaging/builtin_messages.h" #include "hexav/graphics/font.h" #include "hexav/graphics/graphics.h" #include "hexav/resources/resource_loader.h" #include "hexav/resources/resou...
#include <openssl/ossl_typ.h> #include <openssl/ossl_typ.h> #include <openssl/ossl_typ.h> #include <openssl/ossl_typ.h> #include <openssl/bio.h> #include <openssl/pem.h> #include <iostream> #include <sstream> #include "wp-push.h" #include <ece.h> #include <ece/keys.h> #include <curl/curl.h> #include "utiljson.h" #in...
#include <nds.h> #include "gl2d.h" #include "FontGraphic.h" #include "graphics.h" #include "fontHandler.h" #include "../logos.h" #include "../mainmenu.h" #include "../level.h" extern bool fadeType; extern bool fadeSpeed; extern bool fadeColor; int fadeDelay = 0; extern int screenMode; static int screenBrightness = 2...
#include <cassert> #include <chrono> #include "../module/stool/include/io.hpp" #include "../module/stool/include/sa_bwt_lcp.hpp" #include "../module/stool/include/print.hpp" #include "../module/stool/include/cmdline.h" #include "../module/stool/include/debug.hpp" #include "../module/libdivsufsort/sa.hpp" //#include "...
/**************************************************************************** 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...
#pragma once #include "CommonRely.hpp" #include <string_view> #include <initializer_list> #include <boost/preprocessor/seq/for_each.hpp> #include <boost/preprocessor/tuple/elem.hpp> #include <boost/preprocessor/variadic/to_seq.hpp> namespace common::enumex { namespace detail { template<typename T, size_t Lo, size...
#include "OpenGL.h" #include <fstream> #include <stdexcept> #include <sstream> VertexArray::VertexArray() { glGenVertexArrays(1, &object); } VertexArray::VertexArray(VertexArray &&rhs) noexcept { this->object = rhs.object; rhs.object = 0; } VertexArray::~VertexArray() { glDeleteVertexArrays(1, &objec...
/* * Copyight 2017 <NAME>, <EMAIL> * All rights reserved. Distributed under the terms of the MIT License. */ #include "DayView.h" #include <time.h> #include <Alert.h> #include <Catalog.h> #include <LayoutBuilder.h> #include <List.h> #include <ScrollView.h> #include "Event.h" #include "EventListItem.h" #include "...
/* * 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...
/* g++ --std=c++11 -o sample3 Room.cpp World.cpp playableWorld.cpp sensor.cpp actions.cpp playGround.cpp main.cpp -lncurses */ #include "IntelligentAgent/agent/IntelligentAgent/IA.h" #include "IntelligentAgent/components/Actuator/Actuator.h" #include "Game/playGround.h" #include <iostream> #include <curses.h> #include...
#include "Geometry/Boundaries/Boundary.h" #include "ConfigurationSpace/Cfg.h" #include "Geometry/GMSPolyhedron.h" #include "Geometry/Bodies/MultiBody.h" #include "Geometry/Boundaries/CSpaceBoundingBox.h" #include "Geometry/Boundaries/CSpaceBoundingSphere.h" #include "Geometry/Boundaries/WorkspaceBoundingBox.h" #includ...
/****************************** LICENSE ******************************* * (C) Copyright 1996-2017 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the pr...
#include <iostream> #include <cstdio> #include <windows.h> #include <conio.h> #include <ctime> #include <cstring> #define CELLCOLOR 4 #define DEATHCOLOR 1 using namespace std; const char UP= 72; const char DOWN= 80; const char LEFT= 75; const char RIGHT= 77; const char MOVE= ' '; const char LIVE= '0'; ...
/* * Copyright [2021] JD.com, 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...
// suppose that you have 4 arbitrary points on a 2d plane // coordinates are integers, abs(Xi, Yi) <= 1000000 // question: do they form a square? /*! @brief is_square - Proprietary and confidential @author <NAME> All Rights Reserved Unauthorized copying of this file via any medium is strictly prohibite...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; template<class T> vector<T> tokenize(string s, const string &delim=" ") { v...
//////////////////////////////////////////////////////////////////////////////// // // Filename: mpy_tb.cpp // {{{ // Project: A General Purpose Pipelined FFT Implementation // // Purpose: A test-bench for the shift and add shiftaddmpy.v subfile of // the double clocked FFT. This file may be run autonomously. // If...
/* * * HorizonOperationParser.cpp * ledger-core * * Created by <NAME> on 09/07/2019. * * The MIT License (MIT) * * Copyright (c) 2019 Ledger * * 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 ...
//============================================================================ // Name : A2.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <iostr...
#include <iostream> #include <string> #include <random> #include <glad/glad.h> #include <GLFW/glfw3.h> #include "engine/scene.h" #include "engine/pipeline.h" #include "engine/mesh.h" #include "engine/material.h" #include "engine/input.h" #include "engine/ui.h" #define STB_IMAGE_IMPLEMENTATION #include "engine/dep/st...
#include "WeightedBlendedPass.hpp" #include "fg/FrameGraph.hpp" #include "fg/Blackboard.hpp" #include "../FrameGraphHelper.hpp" #include "../FrameGraphTexture.hpp" #include "../FrameGraphBuffer.hpp" #include "../BRDF.hpp" #include "../GlobalLightProbeData.hpp" #include "../LightsData.hpp" #include "../LightCullingDat...
#include "colorspaces.hpp" #include <stdlib.h> #include <math.h> #include <stdio.h> #include <string> #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) namespace HEBI{ namespace Colors{ std::ostream &operator<<(std::ostream &out, const Color &c){ out << c.values[0] << " " << c.values[1...
/*========================== begin_copyright_notice ============================ Copyright (C) 2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "vc/Utils/General/InstRebuilder.h" #include "vc/Utils/General/Types.h" #includ...
#include "kmods.h" using namespace std; const char* short_options = "hlfsp:g:m:c:o:"; const struct option long_options[] = { {"help", no_argument, NULL, 'h'}, {"lib", no_argument, NULL, 'l'}, {"package", required_argument, NULL, 'p'}, {"fast", no_argument, NULL, 'f'}, {"script"...
/*https://github.com/jikagq/rift-rover*/ #include <stdio.h> #include <stdlib.h> #include "Robot_Fonction.h" #include "WifibotClient.h" bool flag = false; //permets de savoir si on vient d'éviter un obstacle //long x_test = 0; int SharpLUT[] = { 150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,15...
/* // 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 "Filter/Filters.h" #include "Image.h" #include "Sampler.h" #include "Time.h" #include "info.h" #include <float.h> #include <iomanip> #include <iostream> #include <string> using namespace std; static int assignment = 5; inline float cosfunction(float x, float y) { return cos((x*x+y*y)*500*M_PI)*0.5+0.5; } ...
#include "imu_serial.h" using namespace std; using namespace imu_sensor; // namespace imu_sensor // { /** * */ IMUSerial::IMUSerial(const char *port, int baud) : port_(port), baud_(baud), serial_(nullptr), state_(State::WaitHeader), n_csum_miss_(0), n...