text
stringlengths
8.71k
38.4k
/* * MeshUp - A visualization tool for multi-body systems based on skeletal * animation and magic. * * Copyright (c) 2011-2018 <NAME> <<EMAIL>> * * Licensed under the MIT license. See LICENSE for more details. */ #include "GL/glew.h" #include <QtGui> #include "MeshupApp.h" #ifdef __APPLE__ #include <QtOpenGL/...
#include "GLViewer.hpp" #include <random> #if defined(_DEBUG) && defined(_WIN32) #error "This sample should not be built in Debug mode, use RelWithDebInfo if you want to do step by step." #endif GLchar* VERTEX_SHADER = "#version 330 core\n" "layout(location = 0) in vec3 in_Vertex;\n" ...
/*----------------------------------------------------------------------------- World.cpp This controls the loading, populating, and rendering of levels. Good Robot (c) 2013 <NAME> -----------------------------------------------------------------------------*/ #include "master.h" #include "audio.h" #inc...
#include <iostream> #include <fstream> #include <string> #include <list> #include <iomanip> #include <sstream> #include <map> #include <cmath> using namespace std; /* EE = 2 * CONST * (E-GE) E = (EE/2*CONST) + GE */ void fZ(double& ZZ, double& dRZ) { const double RZN = 109737.31534; const double RZD = 548.697...
/* * 3D Puppetry Interface * * Created: 2011/2012 * Author: <NAME> */ #define GLH_EXT_SINGLE_FILE #include "Model.h" #include "GLManager.h" #include "BlockTracker.h" #include <time.h> #include <math.h> #include <unistd.h> // needed to sleep #include <stdio.h> #include <stdlib.h> #include <fstream>...
/* Copyright (c) 2007-2014 Massachusetts Institute of Technology * * 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, ...
/* * BP-GoogleScraper.cc * ----------------------------------------------- * This file holds the routines responsible for extracting and storing results from google searches. It * only uses libcurl and libxml for making requests/scraping data. See src/libtest/google/ for usage * information. * */ #include "....
/* OMNIS TOOLS (IMPLEMENTATION) * * This is a colleciton of tools for creating omnis components * * NOTE: All headers for external components must have the .he extension instead of the standard .h * To enable code-highliting in Visual Studio 2008 go to Tools->Options-Text Editor-File Extension * ...
// bdlma_managedallocator.t.cpp -*-C++-*- #include <bdlma_managedallocator.h> #include <bslim_testutil.h> #include <bslma_default.h> #include <bslma_defaultallocatorguard.h> #include <bslma_testallocator.h> #include <bslma_usesbslmaallocator.h> #include <bslmf_nestedtraitdeclara...
Obj Pause, Highscore, Score, UpBar, BtBar, ballcount, arrow, reset, backmenu, audioing; SDL_Rect rect_game; bool reseting = false; bool reply = false; bool ifpause = false; bool akbar = false; bool audplaying = false; bool brick_add=false; bool downward=false; int downnumber=0; int count_marhale=1; double avaliye; bool...
/* Copyright (C) 2016-2019 INRA * * 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, * ...
/******************************************************************************** * Copyright 2009 The Robotics Group, The <NAME>-<NAME>ler Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on * the source. */ /* * $Logfile: /Freespace2/code/fonttool/FontCreate.cpp $ * $Revision: 296 ...
#include <algorithm> #include <filesystem> #include <functional> #include <iostream> #include <memory> #include <vector> #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/constants....
/* * cart-pole-sim.cpp * * Simulates a basic cart-pole system balanced with a number of controllers, using MuJoCo. * * */ #include "mujoco.h" #include "glfw3.h" #include "stdio.h" #include "string.h" /**************************** FORWARD DECLARATION ****************************/ // Utils void autoscale(GLFWwindow*...
#include "StdAfx.h" #include "Polygon.h" #include "ReDraw.h" #include "Sutherlandhodgman.h" struct HorLine { int XStart; /* X coordinate of leftmost pixel in line */ int XEnd; /* X coordinate of rightmost pixel in line */ }; struct HorLineList { int Length; /* # of horizontal lines */ int...
//////////////////////////////////////////////////////////////////////////////// // // MIT License // // Copyright (c) 2018-2019 <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...
/* * AnalyticGrid.cpp * VORTRAC * * Created by <NAME> on 2/11/06. * Copyright 2006 University Corporation for Atmospheric Research. * All rights reserved. * */ #include "AnalyticGrid.h" #include "Message.h" #include <math.h> #include <QTextStream> #include <QFile> #include <QDir> AnalyticGrid::AnalyticGr...
#pragma once #include "FreeRTOSConfig.h" #include "stm32f1xx_hal.h" #include "stm32f1xx_hal_cortex.h" #include "stm32f1xx_hal_gpio.h" #include "stm32f1xx_ll_adc.h" #include "stm32f1xx_ll_dma.h" #include "stm32f1xx_ll_utils.h" #include <algorithm> #include <array> #include <cassert> #include <algorithm> using PinDef...
/* * Copyright (c) 2018, <NAME> University. * 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 ...
// Copyright (c) 2021 Intel Corporation // // 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, publ...
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
/* * Copyright 2009 Rensselaer Polytechnic Institute * 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. * * Thi...
#include "stdafx.h" #include "AlembicXform.h" #include "AttributesReading.h" #include "MetaData.h" #include <maya/MAnimUtil.h> #include <maya/MDistance.h> void AlembicXform::testAnimatedVisibility(AlembicObject *aobj, bool animTS, bool flatHierarchy) { MStatus ...
//Copyright (c) 2014 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: // license.txt (http://opensource.org/licenses/MIT) /** * \file main_impl.cpp * A first approximation of the basic pseudo-code in C++. The main file loads several * pr...
#include "stdafx.h" #include "protocol.h" #include "DamageExtension.h" #include "AntiHack.h" #include "ReconnectSystem.h" #include "offsets.h" #include "packetsend_hooks.h" #include "HookManager.h" #include "EncDec.h" #include "giocp.h" #include "ItemManagement.h" #include "GensExt.h" #include "Interface.h" #include "S...
#include <string.h> #include <hal.h> #include "esp_system.h" #include "esp_spi_flash.h" #include "esp_task_wdt.h" #include "freertos/ringbuf.h" #include "tftspi.h" #include "tft.h" #include "esp_err.h" #include "esp_log.h" #include "esp_spiffs.h" #include "nvs_flash.h" #include "nvs.h" // ============================...
/* Functions The MAX30101 is highly configurable, and there are a large number of functions exposed in the library to the user. Checkout the MAX30105.h file for all the functions, but here are the major ones. Read the MAX30101 datasheet for more information. The library supports the following functions: .begin(wir...
#include <iostream> #include <string> #include <H5Cpp.h> #include <H5File.h> #include <H5DataSet.h> #include "cp-neural.h" //#include <unsupported/Eigen/CXX11/Tensor> using Eigen::Tensor; typedef struct { int index; // index of the current object } cp_cifar10_iter_info; herr_t cp_cifar10_get_all_g...
#include "RenderStreamViewportClient.h" #include "Camera/CameraActor.h" #include "RenderStreamChannelDefinition.h" #include "RenderStreamProjectionPolicy.h" #include "Render/Device/IDisplayClusterRenderDevice.h" #include "IDisplayCluster.h" #include "Render/IDisplayClusterRenderManager.h" #include "RenderStreamProject...
#include <algorithm> #include <cassert> #include <fstream> #include <iostream> #include <set> #include "errorvisitor.hpp" #include "functionexpander.hpp" #include "functioninliner.hpp" #include "kineticrewriter.hpp" #include "module.hpp" #include "parser.hpp" #include "solvers.hpp" #include "symdiff.hpp" #include "vis...
#include "TileMap.h" #include "Material.h" #include <fstream> #include <cassert> #include <memory> #include "Filesystem.h" #include <boost/lexical_cast.hpp> #include <glm/glm.hpp> #include <boost/algorithm/string.hpp> #include <boost/tokenizer.hpp> #include <map> #include <algorithm> #include "kit/log/log.h" using nam...
#include <iostream> #include <sstream> #include <cfloat> #include <armadillo> #include <cpp-argparse/OptionParser.h> #include <besiq/io/covariates.hpp> #include <besiq/stats/snp_count.hpp> #include <plink/plink_file.hpp> #include <dcdflib/libdcdf.hpp> #include "gene_environment.hpp" using namespace arma; using nam...
/////////////////////////////////////////////////////////////////////////////// //FILE: 'aerodynamics.cpp' // //Contains 'aerodynamics' module of class 'Missile' // //030601 Created by <NAME> /////////////////////////////////////////////////////////////////////////////// #include "class_hierarchy.hpp" using namespace...
#include "Precomp.h" #include "UClass.h" #include "UTextBuffer.h" #include "UProperty.h" #include "VM/Bytecode.h" #include "VM/NativeFunc.h" #include "Package/PackageManager.h" void UField::Load(ObjectStream* stream) { UObject::Load(stream); BaseField = stream->ReadObject<UField>(); Next = stream->ReadObject<UFiel...
// Copyright 2014 The Cockroach 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 ag...
#include "rs-format/time.hpp" #include "rs-unit-test.hpp" #include <chrono> #include <cstdlib> #include <stdexcept> #include <string> using namespace RS::Format; using namespace std::chrono; using Dseconds = duration<double>; void test_rs_format_make_date() { system_clock::time_point tp; int64_t n1 = 0, n2 ...
#include "toonzqt/planeviewer.h" // TnzQt includes #include "toonzqt/imageutils.h" #include "toonzqt/menubarcommand.h" #include "toonzqt/viewcommandids.h" #include "../toonz/menubarcommandids.h" // TnzLib includes #include "toonz/stage.h" // TnzCore includes #include "trasterimage.h" #include "ttoonzimage.h" #inc...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
/************************************************************** * * 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...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2018, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are ...
#include "legacy_object_client.hpp" #include "legacy_protocol.hpp" #include <fibre/simple_serdes.hpp> #include "logging.hpp" #include "print_utils.hpp" #include "crc.hpp" #include <variant> #include <algorithm> DEFINE_LOG_TOPIC(LEGACY_OBJ); USE_LOG_TOPIC(LEGACY_OBJ); using namespace fibre; struct json_error { c...
#pragma once /** Third Party */ #include <boost/archive/binary_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/serialization/serialization.hpp> #include <boost/serialization/unordered_map.hpp> #include <boost/serialization/unordered_set.hpp> #include <boost/serialization/utility.hpp> #include...
#include "labyrinth/include/main/application.h" #include "labyrinth/include/component/collider.h" #include "labyrinth/include/component/grid_collider.h" #include "labyrinth/include/component/hit_points.h" #include "labyrinth/include/component/light.h" #include "labyrinth/include/component/player.h" #include "labyrinth...
/*************************************************************************** * * 26.template.indirect.array.cpp - tests exercising class template * indirect_array * * $Id$ * *************************************************************************** * * Licensed to the Apache S...
#include <iostream> #include <sstream> #include <cstdlib> #include <cstring> #include <chrono> #include <fstream> #include <numeric> #include <limits> #include <SDL2/SDL.h> #include "build.h" #include "load_obj.h" #include "mem_manager.h" #include "traverse.h" using namespace hagrid; struct Camera { vec3 eye; ...
/******************************************************************************* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include "openvino_image_inference.h" #include "config.h" #include "inferenc...
/* ------------------------------------------------------------------------- * * ginfast.cpp * Fast insert routines for the Postgres inverted index access method. * Pending entries are stored in linear list of pages. Later on * (typically during VACUUM), ginInsertCleanup() will be invoked to * transfer p...
#include "Uprising.h" #include <iostream> #include "hardware/adc.h" #define TRIANGLES 0 #define TRIANGLE_FAN 1 #define TRI_3D 2 #define TRIFAN_3D 3 int16_t vectorArt::SHEILD[] = { TRIANGLE_FAN, 255,255,0, 8, 0,0,3,2,4,6,2,5,0,6,-2,5,-4,6,-3,2 }; int16_t vectorArt::CASTLE_TURRET[] = { TRIFAN_3D, 80,80,80, 2, -10,...
#include "mjolnir/restrictionbuilder.h" #include "mjolnir/complexrestrictionbuilder.h" #include "mjolnir/dataquality.h" #include "mjolnir/graphtilebuilder.h" #include "mjolnir/osmrestriction.h" #include <future> #include <queue> #include <set> #include <thread> #include "baldr/datetime.h" #include "baldr/graphconstan...
// Chemfiles, a modern library for chemistry file reading and writing // Copyright (C) <NAME> and contributors -- BSD license #include <fmt/format.h> #include <fmt/ostream.h> #include "chemfiles/formats/PDB.hpp" #include "chemfiles/ErrorFmt.hpp" #include "chemfiles/File.hpp" #include "chemfiles/Frame.hpp" #include "...
#define _STDC_FORMAT_MACROS #include <inttypes.h> #include <assert.h> #include <sys/time.h> #include "Filesystem.hh" #include "Strings.hh" #include "UnitTest.hh" using namespace std; void print_data_test_case(const string& expected_output, const string& data, uint64_t address = 0, const string& prev = "", u...
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file Terrain.cpp * @brief Manages terrain-related logic. */ #include "StableHeaders.h" #include "Terrain.h" #include "TerrainDecoder.h" #include "EnvironmentModule.h" #include "EC_OgrePlaceable.h" #include "Renderer.h" ...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017, Carnegie Mellon University and University of Cambridge, // all rights reserved. // // ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY // // BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO...
// Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // // Thi...
#include "prefix.h" #include "programwindow.h" #include "float3.h" #include "math.h" using namespace std; GLint width = 800; GLint height = 800; struct Spider { struct { float3 curr = {1.0f, 1.0f, 1.0f}; float3 target = {1.0f, 1.0f, 1.0f}; int flag = 0; }pos; float3 scale = {1, 1,...
/**************************************************************************** * Test position for pattern * Author: <NAME> * License: MIT license. Full text of license is in associated file LICENSE * Copyright 2010-2016, <NAME> <<EMAIL> at <EMAIL> dot <EMAIL>> **************************************************...
#include "Cheats.h" cVisuals* g_pVisuals = new cVisuals; /*D3D Mode Visuals For Alternative League Supported Visuals*/ void cVisuals::Direct3D(IDirect3DDevice9* pDevice) { for (auto i = 0; i <= ClientEntList->GetHighestEntityIndex(); i++) { if (this->ESPINFO.topx[i] == -1 || this->ESPINFO.topy[i] == -1 |...
/*** * Software License Agreement: BSD 3-Clause License * * Copyright (c) 2022, NMMI * 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 ab...
/* * Copyright (c) 2013 <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, di...
/* * Copyright (C) 2009 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 requir...
/** * @file * This file is part of SWE. * * @author <NAME> (bader AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Univ.-Prof._Dr._Michael_Bader) * <NAME> (breuera AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Dipl.-Math._Alexander_Breuer) * @author <NAME> (rettenbs AT in.tum.de, http://www5.in.tum...
#include <vector> #include <tuple> #include <functional> #include "PAChatAI.h" //random question, random comment after answer received, random adders, is this an possible answer? if yes how to process answer, false = next chat using qp = std::tuple< QStringList, // 0 - questions QStringList, // 1 - reactions to ans...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
/** * Author: <NAME> * Origin: E&E Engineering - Stellenbosch University * For: Supertools, Coldflux Project - IARPA * Created: 2019-03-30 * Modified: * license: * Description: Class for storing .def * File: ParserDef.cpp */ #include "die2sim/ParserDef.hpp" /** * DEF file class functions */ ...
#include <cstdio> #include <whycon/circle_detector.h> using namespace std; #define min(a,b) ((a) < (b) ? (a) : (b)) #define max(a,b) ((a) > (b) ? (a) : (b)) #define ENABLE_RANDOMIZED_THRESHOLD #define MAX_SEGMENTS 10000 // TODO: necessary? whycon::CircleDetector::CircleDetector(int _width, int _height, Context* _con...
#include "bprw.h" void unique_max_heap::clear() { R.clear(); heap.clear(); sum = 0; } bool unique_max_heap::empty() const { return heap.empty(); } const heap_data &unique_max_heap::top() { return heap.top(); } heap_data unique_max_heap::pop() { heap_data top_element = top(); // the top eleme...
int i , xOiXGP , fHOYD , vhL, ld , Vw9 , bzHI, eKy,LNbsc , /*yfJ*/mYN ,/*dK*/ l2, l ,ytM,oLgG,//MVGF QZ , iwI, djs , PQ, xy ,Ucb,X,k69O,wt , W1fp ,EAK/*EqO*/ , /*0L*/EQB,bNfz/**/,/*cX*/H ,ungu , SO , U,kfJ//3 ,zA9,aQ , ZK5 , t4 ,WyCkJ ,/*xk*/U2 , GNGE//wsFX , XX, jA , uqwk,IE ,T4y,B...
#include "org.h" #include <fstream> #include <string> #include <vector> #include <memory> #include <cmath> #include <cstdlib> #include <cstdio> #include <cstring> #include <sys/stat.h> #include <SDL_rwops.h> #include <SDL_video.h> #include "pxt.h" #include "sound.h" #include "filesystem.h" #include "mathUtils.h" #inc...
#include "model.h" #include "utils.h" #include <gtest/gtest.h> #include <algorithm> #include <cmath> #include <functional> #include <sstream> #include <string> #include "qrisp/proto/parameters.pb.h" #include "structure.h" #include "third_party/googleflags/include/gflags/gflags.h" namespace qrisp { namespace { conste...
/* ============================================================================== GroovRenderer.cpp Created: 2 Nov 2018 2:56:15pm Author: ClintonK ============================================================================== */ #include "../JuceLibraryCode/JuceHeader.h" #include "GroovRenderer.h" #include "...
/****************************************************************************** ** Copyright (C) 1999 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 13.08.99 ** ** File: MR_HaarP...
/** * @file * @copyright defined in eos/LICENSE */ #pragma once #include <eosio/chain/controller.hpp> #include <eosio/chain/transaction.hpp> #include <eosio/chain/contract_table_objects.hpp> #include <fc/utility.hpp> #include <sstream> #include <algorithm> #include <set> namespace chainbase { class database; } n...
#include <stdlib.h> #include <functional> #include "gpio.h" #include "odrive_main.h" #include "utils.hpp" #include "gpio_utils.hpp" #include "communication/interface_can.hpp" Axis::Axis(int axis_num, const AxisHardwareConfig_t& hw_config, Config_t& config, Encoder& encoder, ...
/* * RSA implementation for PuTTY. */ #include "global.h" #include "RageUtil.h" #include "CryptRSA.h" #include "CryptSHA.h" #include "CryptSH512.h" #include "CryptMD5.h" #include "CryptRand.h" #include "CryptPrime.h" #define GET_32BIT(cp) \ (((unsigned long)(unsigned char)(cp)[0] << 24) | \ ((unsigned long...
#include <Maestro.H> #include <Maestro_F.H> using namespace amrex; // read in C++/F90 parameters // define global C++/F90 variables and initialize network // set up boundary conditions // initialize base state geometry parameters // set istep, t_new, t_old // allocate MultiFabs and base state arrays void Maestro::Se...
/* * Copyright © 2011 Intel Corporation * * 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, pub...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
#include <bits/stdc++.h> using namespace std; inline namespace lib { struct P { using T = int32_t; // points, vectors, coefs, manh -- integer or frac using L = int64_t; // cross, dot, dist2, norm2 -- integer or frac using H = __int128_t; // huge: delaunay. if L=int128, just use (long) double here ...
// license:LGPL-2.1+ // copyright-holders:<NAME> /************************************************************************* Hard disk emulation: Format implementation ------------------------------------------ This is the format implementation for MFM hard disks, similar to the modular format concept ...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, Autonomous Systems Laboratory, Stanford University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
/* linenoise.c -- guerrilla line editing library against the idea that a * line editing lib needs to be 20,000 lines of C code. * * You can find the latest source code at: * * http://github.com/antirez/linenoise * * Does a number of crazy assumptions that happen to be true in 99.9999% of * the 2010 UNIX comp...
/* * 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 ...
/* Copyright (c) <NAME>, 1994. */ /** * (c) Copyright 1993, 1994, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both t...
#include "main.h" int yyerror(SyntaxNode*& root, char* s) { column -= yyleng; std::cout << "Error: " << s << " on line " << lineno << ", column " << column << std::endl; doArrowErrThing(); return 1; } int main(int argc, char** argv) { SyntaxNode* root = nullptr; system(""); // DON'T REMOVE THIS - SUPER IMPORTA...
/** @file @brief GUNNS Selective Membrane Model implementation @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. LIBRARY DEPENDENCY: ((core/GunnsFluidLink.o) (core/GunnsFluidUtils.o)) ...
#include "version.h" #include "mem.h" #include "cdrom.h" #include "disk.h" #include "osutils.h" #include "heuristics.h" #include "sysfs.h" #include <glob.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <unistd.h> #include <dirent.h> #include <stdio.h> #include <stdlib....
#pragma once #include <iostream> #include <iomanip> #include <string> #include <vector> #include <cassert> #include <fstream> #include "NPU.hh" /** NP === This is developed in https://github.com/simoncblyth/np/ but given the header-only nature is often just incorporated into other projects together with NPU.hh N...
/*############################################################################ # Copyright 2017 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...
/***************************************************************** * * This file is part of the Botmark benchmark. * * Copyright (c) 2019 <NAME>, <NAME>, * and <NAME>. * * This work is licensed under the "Creative Commons * (Attribution-NonCommercial-ShareAlike 4.0 International) * License" and is copyrighted ...
/********************************************************************************* * * Copyright (C) 2019 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are ...
#include "stdafx.h" #include "Utils.h" #include <fstream> #include "Log.h" long long milliseconds_now() { static LARGE_INTEGER s_frequency; static BOOL s_use_qpc = QueryPerformanceFrequency(&s_frequency); if (s_use_qpc) { LARGE_INTEGER now; QueryPerformanceCounter(&now); return (1000LL * now.QuadPa...
/*----------------------------------------------------------------------------- Sprite.cpp Good Robot (c) 2013 <NAME> Used for keeping track of UV positions of individual sprites in a sprite bank. -----------------------------------------------------------------------------*/ #include "master.h" #includ...
#include "HiggsSoapyDriver.hpp" #include "HiggsDriverSharedInclude.hpp" #include "feedback_bus.h" #include "common/convert.hpp" #include "driver/EventDsp.hpp" #include <ctime> #include <chrono> using namespace std; // void HiggsDriver::isZmq() { // cout << "isZmq() yes" << endl; // } void HiggsDriver::patchDis...
/* Pooyan arcade machine emulator Copyright (c) 2004 <NAME> */ #include "pooyan.h" // Output flip-flops enum { FlipScreen = 0x01, CoinMeter1 = 0x02, CoinMeter2 = 0x04, InterruptEnabled = 0x08, SoundInterrupt = 0x10, HaveSoundInterrupt =...
#include "Demo.h" Demo::Demo() { } Demo::~Demo() { if (Mix_Playing(sfx_channel) == 0) { Mix_FreeChunk(sound); } if (music != NULL) { Mix_FreeMusic(music); } Mix_CloseAudio(); } void Demo::Init() { InitText(6); this->program = BuildShader("shader.vert", "shader.frag"); this->program3 = BuildShader("...
//reference: ttbot - map_gen.cpp and rl_map.cpp #include <iostream> #include <stdio.h> #include <algorithm> #include <fstream> //#include <chrono> #include <string> #include <signal.h> #include <math.h> #include "deque" #include <ros/ros.h> #include <ros/package.h> #include <cv_bridge/cv_bridge.h> #inc...
#include <string> #include <iostream> #include <vector> #include <algorithm> // must include windows.h before GL on win32 #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif // GL and related includes #include <GL/gl.h> #ifdef WIN32 #include <GL/glaux.h> #endif #include <GL/glu.h> #i...
/* Copyright (c) 2004, 2017, 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...
/* * Copyright 2011 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 applicable law or agr...