text
stringlengths
3.08k
12.5k
// // SimplePhoneBook.cpp // Homework03 // // Created by <NAME> on 13.12.2018. // Copyright © 2018 <NAME>. All rights reserved. // #include "SimplePhoneBook.h" #include <iostream> // for converting a string to the lower case #include <algorithm> using namespace std; // Default Constructor PhoneBook::PhoneBook(){ ...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
#include "socket.hpp" #include <duktape.h> #include <capstone.h> #include <vector> #include "apecore.hpp" #include "helpers.hpp" #include "logger.hpp" #include "redirect.hpp" ClientSocket* clientSocket = nullptr; duk_context* initialCtx; char apiPath[256] = { 0 }; char* apiOverride = nullptr; bool h...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include "imgui/imgui.h" #include "imgui/imgui_impl_glfw.h" #include "imgui/imgui_impl_opengl3.h" #include "CustomGLCallback.h" #include "Renderer.h" #include "tests/TestMenu.h" #include "tests/Test1.h" #include "tests/Test2.h" #include "tests/Test...
/** * Copyright (c) 2022 nicegraf contributors * * 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, mer...
#include "Parser.h" /// <summary> /// The function that converts Tokens into node trees /// </summary> /// <param name="Tokens">The vector of Tokens to convert</param> /// <returns>A vector of Nodes</returns> std::vector<Node> Parser::parse(std::vector<Token> Tokens) { // Loop through every token in the vector of Tok...
#include "od_validation_rule.hpp" #include <numeric> #include <random> #include "hyrise.hpp" #include "operators/get_table.hpp" #include "operators/sort.hpp" #include "resolve_type.hpp" #include "storage/segment_iterate.hpp" namespace { template <typename T, typename Compare> std::vector<std::size_t> sort_permutati...
/** * @file GameManager.cpp * @author <NAME> (<EMAIL>), <NAME> * (<EMAIL>) * @brief Implementation of class GameManager. * @version 0.1 * @date 2021-07-23 * * @copyright Copyright (c) 2021 * */ #include <string> #include <vector> #include "GameBoard.h" #include "GameManager.h" using namespace std; GameM...
#include <memory> #include <iostream> template <class T> class AVLTree{ private: class NodeAVL{ public: int fe; T data; NodeAVL* izq,*der; public: NodeAVL(T dat){ data = dat; izq = der = 0; fe = 0; } ~NodeAVL(){ if(izq) delete(izq); if(der) del...
// Copyright 2011-2016 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 appli...
#include "StdAfx.h" #include "VideoInfoBuilder.h" CVideoInfoBuilder::CVideoInfoBuilder(void) { } CVideoInfoBuilder::~CVideoInfoBuilder(void) { } CAdvancedVideoInfo CVideoInfoBuilder::Create(const CString source) { vector<CString> lines; CString key, value; Split(source, _T("\n"), lines); CAdvancedVideoInfo in...
/* * * * */ #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cs...
#include "Game.h" #if defined(WIN32) || defined(_WIN32) || \ defined(__WIN32) && !defined(__CYGWIN__) #define SHOW_COLORS #include <windows.h> #endif using namespace std; ostream& operator<<(ostream& os, const Player& p) { switch (p) { case Player::X: os << "X"; break; case Player::O: os << "O"; bre...
// -*- C++ -*- // // Package: SiStripDetId // Class : SiStripSubStructure // // Implementation: // <Notes on implementation> // // Original Author: dkcira // Created: Wed Jan 25 07:19:38 CET 2006 // #include "DataFormats/SiStripDetId/interface/StripSubdetector.h" #include "DataFormats/SiStripDe...
#include <entt/entity/fwd.hpp> #include <entt/entity/registry.hpp> #include <entt/entity/organizer.hpp> #include <fireworks_lib.hpp> #include <taskflow/taskflow.hpp> #include <iostream> #include <random> #include <vector> namespace entt { // inject, i dont remember if this is necessary // graphviz dot export stat...
/* Proto language runtime Printer Copyright 1997-1999 <NAME> Licensed under the MIT License. See LICENSE file in project root. */ #include "config.h" #include "objects-private.h" #include "interpreter.h" #include "predefined.h" #include "native.h" #include "objhash.h" #include <stdio.h> DECLARE_PSYM...
/** * @file ExampleBicycle.cpp * * \brief Simulation of cycling using task space control of the gear rotation. * * @author <NAME> <<EMAIL>> * * @see <a href="https://simtk.org/projects/task-space">[SimTK Project]</a>, <a * href="http://ieeexplore.ieee.org/document/8074739/">[Publication]</a> */ #include <OpenS...
/* * Copyright (C) 2004-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ /*! @file * This file contains a "real time" tool for showing the currently hostest routines */ #include <map> #include <iostream> #include <iomanip> #include <fstream> #include <algorithm> // for sort #include <vector> #include ...
/** \class PileUpJetID * * CMS PileUp Jet ID Variables, based on http://cds.cern.ch/record/1581583 * * \author <NAME>, December 2013 * * */ #include "modules/PileUpJetID.h" #include "classes/DelphesClasses.h" #include "classes/DelphesFactory.h" #include "classes/DelphesFormula.h" #include "ExRootAnalysis/Ex...
#include <iostream> #include "../../lib/Tabelas/TabAtributos.hpp" #include "../../lib/Tabelas/TabCampos.hpp" #include "../../lib/Tabelas/TabMetodos.hpp" #include "../../lib/Tabelas/TabSimbolos.hpp" #include "../../lib/Tabelas/TabInterfaces.hpp" #include "../../lib/Tipos/ArqClass.hpp" #include "../../lib/Uteis/Arquivos....
///This file implements the Class responsible for automically moving the robot, ///it uses the api rather than the plugin interface #include "pluginchip8.h" #include "robotplayer.h" #include "iitem.h" // In this module we use the RoboDK API instead of the Plugin Interface // The naming of the RoboDK API/interface is ...
/* * Copyright (C) 2019 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
#include "compute_forces.h" #include "CppInterface.hh" #include "ComputeGCM.hh" #include "ModelSimuIndex.hh" #include "SimuIndex.hh" #include "SimuOptions.h" #include "user_model.h" #include "user_IO.h" #include "contact_interface.h" /*! \brief compute the external ground reactions related to one ext force sensor * ...
/* * Copyright (c) 2009, 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, merg...
#include <fstream> #define MAX_VARDO_ILGIS 20+1 // +1 reikalingas saugoti \0 nematoma simboli pazyminti vardo pabaiga, atmintyje. #define MAX_BEGIKU_SKAICIUS 50 #define MAX_TAKELIU_SKAICIUS 8 // Naudojamas duomenu iraso tipas, kurio reikalauja uzduoties salygos struct Begikas { char vardas[MAX_VARDO_ILGIS]; /...
// https://www.fluentcpp.com/2017/09/25/expressive-cpp17-coding-challenge/ // http://www.bfilipek.com/2017/09/the-expressive-cpp17-challenge.html // The task proposed in the challenge is to write a command line tool that: // 1 - takes in a CSV file // 2 - overwrites all the data of a given column by a given value // 3...
#include "zmq_daemon.hpp" #include "zmq.hpp" #include <thread> #include <chrono> #include <iostream> #include "loguru.hpp" #include "maple_board_comm_emu.h" // we might need to hold dma data here as well, so make it a bit larger // the buffer will hold during the whole lifetime of the program const size_t req_buffe...
#include <unistd.h> #include <iomanip> #include <utility> #include <torch/data/datasets/base.h> #include <torch/data/example.h> #include <torch/types.h> #include <torch/script.h> #include <torch/torch.h> #include <ATen/ATen.h> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <fstream> #include <ss...
#include <libcouchbase/couchbase.h> #include <libcouchbase/api3.h> #include <stdio.h> // Low-level durability static void durability_callback(lcb_t, int, const lcb_RESPBASE *rb) { const lcb_RESPENDURE *resp = reinterpret_cast< const lcb_RESPENDURE * >(rb); if (resp->rc != LCB_SUCCESS) { printf("Durabil...
/* * Hetero-mark * * Copyright (c) 2015 Northeastern University * All rights reserved. * * Developed by: * Northeastern University Computer Architecture Research (NUCAR) Group * Northeastern University * http://www.ece.neu.edu/groups/nucar/ * * * Permission is hereby granted, free of charge, to any pe...
/** * @file DataLogger_HDF5_Vector.cpp * @brief Implementation of the Vector functions for the DataLogger_HDF5 class * @author <NAME> * @date 08/12/2017 */ #include "DataLogger_HDF5.h" //************************************************************************************************************ /** * \brief R...
// Copyright (c) 2010 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. // Clang plugin which prints the names and sizes of all the top-level // structs, enums, and typedefs in the input file. #include <cstdio> #include <...
// // Copyright 2014, 2015 Razer 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...
#include <iostream> #include <string> #include<ctime> #include<vector> #include <fstream> struct student { std::string imie; std::string nazwisko; std::string plec; long long pesel; long long numer_albumu; }; struct base_students { int liczba_studentow=100; std::vector<student>students=std:...
#include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <opencv2/core/utils/filesystem.hpp> using namespace cv; //----------------------------------------------------------------------------- // 模糊 class AppImread { public: AppImread() {} ~AppImread() {} void Run(const String &filename); privat...
//===-- UseAutoMatchers.cpp - Matchers for use-auto transform -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#define VERILATE_TESTBENCH #include <stdlib.h> #include <iostream> #include <vector> #include <bitset> // Include common routines #include <assert.h> #include <verilated.h> #include <sys/stat.h> // mkdir #include <fstream> // Include model header, generated from Verilating "top.v" #include "Vmapper_mover.h" #incl...
#include <stdint.h> #include <iostream> #include <cstring> #include <fstream> #include <chrono> #include <thread> #include <math.h> #include "headers/MLX90640_API.h" #include "lib/fb.h" #define MLX_I2C_ADDR 0x33 #define IMAGE_SCALE 5 // Valid frame rates are 1, 2, 4, 8, 16, 32 and 64 // The i2c baudrate is set to 1m...
#include "stdafx.h" #include "Puck.h" #include <iostream> #include <tuple> // Constructor Puck::Puck(double radius, double unitsPerCm, double widthCm, double heightCm) { Vec_double initAcl; initAcl.x = 0.0; initAcl.y = 0.0; setRadius(radius); setUnitsPerCm(unitsPerCm); setRinkWidthCm(widthCm); setRinkHeightCm(...
//===-- AArch64Subtarget.cpp - AArch64 Subtarget Information ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* FRAME MANAGER.cpp * by Lut99 * * Created: * 08/09/2021, 23:33:43 * Last edited: * 9/20/2021, 9:24:06 PM * Auto updated? * Yes * * Description: * Contains the FrameManager class, which is in charge of retrieving a * conceptual frame from the swapchain. **/ #include "tools/Logger.hpp" #include...
/* * Copyright (C) 2016 The Android Open Source Project * * 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 app...
// Copyright 2021 gRPC authors. // // 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 i...
#include <unistd.h> #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <vector> #include <sys/time.h> #include "tengine_operations.h" #include "tengine_c_api.h" #include <math.h> const char* model_name = "../models/instancenorm.tmfile"; const std::vector<float> test_data...
/****************************************************************************** ** Copyright (C) 1997 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 3.1 ** ** Author: <NAME> ** ** Date: 97/08/22 ** ** File: im_closi...
// https://github.com/elima/gpu-playground/tree/master/gl-image-loader #include <GLES2/gl2.h> #include <GLFW/glfw3.h> #include <cassert> #include <cstdint> #include <cstdio> #include <cstdlib> #include <png++/png.hpp> #include <string> #include <vector> bool gl_utils_print_shader_log(GLuint shader) { GLint length;...
/* * Copyright (c) 2004-2005 The Regents of The University of Michigan * 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 * not...
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
#include "splinewire.h" #include "wirepoint.h" #include <QPainter> #include <QPainterPathStroker> #include <QtMath> const int LINE_WIDTH = 2; const qreal HANDLE_SIZE = 3.0; const qreal CTRL_POINT_RATIO = 0.3; const QColor COLOR = QColor("#000000"); const QColor COLOR_HIGHLIGH...
/* <NAME> CS 222: Computer Architecture Pipeline Simulation Project dataStructures.cpp Contains the implemenation of the data structures used in the project */ #include <fstream> #include <iostream> #include <stdlib.h> #include <vector> #include "dataStructures.hpp" #include "globals.hpp" // PipelineStatusArra...
/** * Copyright (c) 2017, Daniel "Dadie" Korner * 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 li...
/* * Copyright 2015 Applied Research Center for Computer Networks * * 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 b...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2012 <NAME> // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //////////////...
#include "SLSMapRelay.hpp" #include <errno.h> #include <string.h> #include "SLSPullerManager.hpp" #include "SLSPusherManager.hpp" #include "SLSLog.hpp" /** * CSLSMapRelay class implementation */ CSLSMapRelay::CSLSMapRelay() { } CSLSMapRelay::~CSLSMapRelay() { clear(); } CSLSRelayManager * CSLSMapRelay::add...
#include "lidar.h" #include <thread> #include <mutex> #include <chrono> // time #include <math.h> // https://rafalcieslak.wordpress.com/2014/05/16/c11-stdthreads-managed-by-a-designated-class/ using std::string; using std::cout; using std::endl; using std::lock_guard; using std::thread; using std::mutex; std::thr...
/** * @file detTrack.cpp * @authors Phase 1 - <NAME> (Driver), <NAME> (Navigator) * @brief This file has all function definitions for DetTrack class * @copyright <NAME>, <NAME>, 2020 */ #include <bits/stdc++.h> #include <cstring> #include <ctime> #include <typeinfo> #include "opencv2/opencv.hpp" #include <opencv2/track...
#include "mmas.h" #include "usm/usm.h" #define _MACOSX_ #ifdef _MACOSX_ // extern "C" void u_fpu_setup(void); #else #include <fenv.h> #endif // _MACOSX_ bool error_occurred = false; void is_file(char *fn) { ifstream fin(fn, ifstream::in); fin.close(); if (fin.fail() != 0) { cerr << "File \"" << fn << "\" ...
#include "huffman_tree.h" #include <iostream> #include <fstream> #include <unordered_map> #include <queue> #include <vector> node::node() {} node::node(size_t value) : value(value) {} huffman_node::huffman_node() : left(nullptr), right(nullptr) {} huffman_node::huffman_node(size_t value) : node(value) {} huffm...
/* * * Copyright (c) 2020 Project CHIP 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...
/* The MIT License (MIT) Copyright (c) <NAME> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
#include <../../nrnconf.h> #include <inttypes.h> #include <nrnran123.h> #include <hocdec.h> #include <stdlib.h> #include <math.h> #include <Random123/philox.h> static const double SHIFT32 = 1.0 / 4294967297.0; /* 1/(2^32 + 1) */ static philox4x32_key_t k={{0}}; struct nrnran123_State { philox4x32_ctr_t c; phi...
#include "applicationglwidget.h" #include <GL/glu.h> #include <GL/glut.h> HIC::ApplicationGLWidget::ApplicationGLWidget(QWidget *parent) : QGLWidget(parent), _pose(), _glutArgc(1), _glutArgv({}), _robot(NULL), _glMatrix(new GLdouble[16]), _angleX(0.0), _angleY(0.0), _angleZ(0.0), _posX(0.0), _posY(0....
#include "aux_tree.hpp" void Aux_node::set_alias(const std::string &v, Index_ID n) { auxtab[v] = n; fmt::print("set alias {} <-> {}\n", v,n ); } void Aux_node::set_pending(const std::string &v, Index_ID n) { pendtab[v] = n; fmt::print("set pending {} <-> {}\n", v,n ); } //Aux_tree member_functions //std::vec...
#include "oshpincombobox.h" #include "ui_oshpincombobox.h" oshpincombobox::oshpincombobox(QWidget *parent) : QWidget(parent), ui(new Ui::oshpincombobox) { ui->setupUi(this); QStringList list=(QStringList()<<"Not Used"<<"Analog No Smoothing"<<"Analog Low Smoothing" <<"An...
/* libember -- C++ 03 implementation of the Ember+ Protocol Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com). Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include <iostream> #include <sstre...
#include <iostream> #include "SDL2/SDL.h" #include "sdl/error.h" #include "sdl/window.h" #include "sdl/renderer.h" #include "sdl/texture.h" #include "sdl/sdl_init.h" #include "sdl/color.h" #include "sdl/timer.h" #include "phys/system.h" #include "phys/basic_material.h" #include "phys/detector.h" #include "phys/fuel...
#include "main.h" vector<float> readSpatialData(string fileName, rTreePlanes* rTree) { ifstream file; file.open("./data/raw/" + fileName + "_spatial"); int node; cout << "Read Spatial data" << endl; coordinates xMin = INT_MAX, xMax = INT_MIN, yMin = INT_MAX, yMax = INT_MIN; coordinates xPos, yP...
/* * GeneticAlgorithm.cpp * * Modified on: Dec 18, 2018 * Author: blue */ #include "GeneticAlgorithm.h" #include <iostream> #include <random> #include <fstream> #include <cstdlib> #include <ctime> #include <math.h> using namespace std; // -RATE should be beween 0 to 1 #define MUATATION_RATE ...
#include <string> #include "behaviorviewer.h" #include <algorithm> #include "imgui/imgui.h" #include "imgui/imgui_impl_glfw.h" #include "imgui/imgui_impl_opengl3.h" using namespace glm; using namespace atk; ABehaviorViewer::ABehaviorViewer() : atkui::Framework(atkui::Perspective), _world(), _target(100,0,100),...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
// Utilities for loading data sets and calib parameters from YAML files via ROS #include "rct_ros_tools/data_set.h" #include "rct_ros_tools/parameter_loaders.h" #include "rct_ros_tools/target_loaders.h" #include "rct_ros_tools/print_utils.h" // To find 2D observations from images #include <rct_image_tools/modified_cir...
#include "saber/core/context.h" #include "saber/funcs/im2sequence.h" #include "saber/core/tensor_op.h" #include "saber/saber_types.h" #include "test_saber_func.h" #include "test_saber_base.h" #include <vector> using namespace anakin::saber; /** * @brief Extract image patches from input tensor to a tensor with the sh...
//- // ========================================================================== // Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompanies th...
/** * Implementation of the PenaltyKickTactic */ #include "software/ai/hl/stp/tactic/penalty_kick_tactic.h" #include <g3log/g3log.hpp> #include "shared/constants.h" #include "software/ai/evaluation/calc_best_shot.h" #include "software/ai/hl/stp/action/dribble_action.h" #include "software/ai/hl/stp/action/kick_actio...
/* * @author TPOC: <EMAIL> * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * 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 m...
#include "headers/Utilities.hpp" #include <iostream> #include <string> #include <unistd.h> #include "headers/Node.hpp" using namespace std; using namespace Utilities; void Node::send_message(vector<string> userinput) { // here we handle sending message // in general we break it into send directly or send via ...
/* 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#include "EDPhysics.h" #include <xmmintrin.h> #include <map> namespace { std::map< EDPhysics::MaterialId, EDPhysics::PhysicsMaterial > physicsMaterialMap; } namespace EDPhysics { PhysicsMaterial::PhysicsMaterial(void) : frictionDirection2(0.0f, 0.0f, 0.0f) { friction = 0.75f; friction2 = 0.0f; bounciness = 0...
/* Orignal skeleton is: Pre: SKELETON: With the array index wrappers api_out,Annon And (fromvars) [] Under dimensions [interface_len = N (=) ] With conversion function IdentityConversion >(new binding): With the array index wrappers dir And (fromvars) [Constant(1)] Under dimensions [] With conversion function Iden...
//- // ========================================================================== // Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompan...
#include "realm.h" #include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <csignal> #include <cmath> #include <time.h> #include <unistd.h> using namespace Realm; Logger log_app("app"); // Task IDs, some IDs are reserved so start at first available number enum { TOP_LEVEL_TASK = Proce...
/* Copyright 2017-2019 Siemens AG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
/* This is a basic skeleton file we can use to start any project. */ #include <iostream> #include <string> #include <map> #include <cmath> #define PV(X) \ std::cout << #X << ":" << X << std::endl; /* Represent a real number, ie, double + NaN indicator */ struct Real { // Data members double value; ...
#include "IRremoteInt.h" // MagiQuest added by <NAME> // Based off the Magiquest fork of Arduino-IRremote by mpflaga // https://github.com/mpflaga/Arduino-IRremote/ //============================================================================== // // // M A G I Q U E S T // // //===========...
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // <NAME>, June 2011 #include "helmsman/rudder_controller.h" #include <math.h> #include <stdio.h> #include "common/convert.h" #include "common/no...
#include <SDL.h> #include <SDL_ttf.h> #include <math.h> #include <stdlib.h> #include "renderer.h" const int WINDOW_WIDTH = 800; const int WINDOW_HEIGHT = 800; SDL_Window *gWindow = NULL; SDL_Renderer *gRenderer = NULL; SDL_Surface *gScreenSurface = NULL; TTF_Font *font = NULL; Vector3 camera = Vector3{-2, -2, -2}; ...
#include <ruby.h> #include <unordered_set> #include <functional> using ll = long long int; using data_t = std::pair<void *, ll>; class MyHash { public: size_t operator()(const data_t &d) const { return d.second; } }; using set_t = std::unordered_set<data_t, MyHash>; struct KumaSet : public set_t {...
#ifndef LOCAL #pragma GCC optimize("O3","unroll-loops","omit-frame-pointer","inline") #pragma GCC option("arch=native","tune=native","no-zero-upper") #pragma GCC target("avx2") #endif #if !defined(LOCAL) && !defined(ONLINE_JUDGE) //oj.uz #include "wombats.h" #endif #include <bits/stdc++.h> #define all(x) ...
// // main.cc // // Created by <NAME> on 1/16/19. // Copyright (c) 2019 <NAME>. All rights reserved. // #include <iostream> #include <string> #include <cstdlib> #include <stdint.h> #include "delivery.h" #include "overnight.h" #include "ground.h" #include "twoday.h" #include "object.h" // A helper function that pa...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <ksync/ksync_index.h> #include "vrouter/ksync/mirror_ksync.h" #include "vrouter/ksync/nexthop_ksync.h" #include "vrouter/ksync/ksync_init.h" #include <ksync/ksync_sock.h> #include "vr_mirror.h" MirrorKSyncEntry::MirrorKSyncEntry(MirrorK...
/* * Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/> * By Asardial * * Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/> * * 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...
/* * Description * =========== * * A Ducci sequence is a sequence of n-tuples of integers, sometimes known as * "the Diffy game", because it is based on sequences. Given an n-tuple of * integers (a_1, a_2, ... a_n) the next n-tuple in the sequence is formed by * taking the absolute differences of neighboring int...
/* Copyright (c) 2012-2017 <NAME> <<EMAIL>> This file is part of SimpleScreenRecorder. SimpleScreenRecorder 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 3 of the License, or (at your option) an...
#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <random> #include <ctime> #include <algorithm> auto toLowerCase(std::string inString) -> std::string { std::transform(inString.begin(), inString.end(), inString.begin(), [](unsigned char const c) -> unsigned char ...
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <cmath> #include <set> #include <map> #include <cctype> #include <vector> #include <queue> #include <string> #include <iostream> using namespace std; typedef long long ll; typedef unsigned long long ull; #define foR for #define for9 f...
//============================================================================= // FILE: // RIV.cpp // // DESCRIPTION: // The (R)eachable (I)nteger (V)alues pass. For each basic block it creates // a list of integer values reachable from that block. It uses the results // of the 'dominator trees' pass. // /...
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; #define MAXN 30000 #define MAXK 10 #define Clr(m) memset(m, 0, sizeof(m)) typedef unsigned int u32; typedef long long i64; struct Reader { int b; Reader() { read(); } void read() { b = getchar_unlocked(); } void skip() { while (0 <...
#include <bits/stdc++.h> using namespace std; // Macros #ifdef D3BUG #define cerrd if (D3BUG) cerr #else #define cerrd if (false) cerr #endif // Types template <typename T> using vector1D = vector<T>; template <typename T> using vector2D = vector<vector1D<T>>; template <typename T> using vector3D = vector<ve...
/* https://practice.geeksforgeeks.org/problems/implementing-floyd-warshall2042/1 https://www.geeksforgeeks.org/floyd-warshall-algorithm-dp-16/ Floyd Warshall Medium Accuracy: 44.25% Submissions: 17604 Points: 4 The problem is to find shortest distances between every pair of vertices in a given edge weighted directed ...