text
stringlengths
3.08k
12.5k
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
/* * DEBUG: section 28 Access Control * AUTHOR: <NAME> * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTORS file for full * ...
// Copyright 2016 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // We want to use assert in production environment #undef NDEBUG #include <cassert> #include <cstring> #include "userspace_touchpad/touch_emulator.h"...
#include "types.h" #include "midi_machine.h" #include "uart_machine.h" #include "neopixels.h" #include "interpreter.h" // NewPing Source // http://bit.ly/2EjVV4D // #include "NewPing.h" #define PIN_CHECK_INTERVAL 50 #define MAX_SONARS 3 #define MAX_SONAR_DISTANCE 200 #define SERIAL0_SPEED 115200 // Define if I want...
#include <bits/stdc++.h> using namespace std; const int MAXN = 131072; struct SuffixArray { int sa[MAXN], h[MAXN], n; int w[MAXN], ta[MAXN], tb[MAXN]; char str[MAXN]; void sort(int *x, int *y, int m) { for (int i = 0; i < m; i++) w[i] = 0; for (int i = 0; i < n; i++) w[x[y[i]]]++; ...
/** * * Solution to homework assignment 3 * Introduction to programming course * Faculty of Mathematics and Informatics of Sofia University * Winter semester 2018/2019 * * @author <NAME> * @idnumber 62360 * @task 1 * @compiler VC * */ #include <iostream> #include <thread> #include <chrono> const i...
#include "qlsyntax.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "referdata.h" #include "stroper.h" #if defined(_DEBUG) && defined(DEBUG_NEW) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //////////////////////////////////////////////////...
/* This file is part of Nori, a simple educational ray tracer Copyright (c) 2015 by <NAME> Nori is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation. Nori is distributed in the hope ...
#include "maptel.h" #include <iostream> #include <string> #include <vector> #include <unordered_map> #include <memory> #include <algorithm> #include <cctype> #include <cassert> #include <unordered_set> using std::endl; typedef std::unordered_map<std::string, std::string> telephone_map_type; typedef std::unique_ptr<te...
#include "mujoco.h" #include "glfw3.h" #include <stdio.h> #include <string.h> #include <iostream> #include <cstdlib> #include <vector> #include <fstream> #include <sstream> using namespace std; // MuJoCo data structures mjModel* m = NULL; // MuJoCo model mjData* d = NULL; // MuJoCo ...
/* * Created by <NAME> on 2020/1/11. * * 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...
//----------------------------------------------------------------------------- // MIT License // // Copyright (c) 2017 <NAME> // Copyright (c) 2017 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to dea...
// Copyright 2012 Cloudera 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 wr...
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
//===-- CppModuleConfiguration.cpp ----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* ============================================================================== channelImplementation.cpp Created: 30 Jan 2014 4:21:26pm Author: yvan ============================================================================== */ #include "../internalHeaders.h" YSE::CHANNEL::implementationObje...
#include<iostream> #include<windows.h> using namespace std; const unsigned int rows = 8; const unsigned int cols = 8; bool treasure_map[rows][cols] = { {1,0,0,0,0,1,1,1}, {0,0,0,0,0,1,0,1}, {1,1,0,0,0,0,0,0}, {1,0,1,0,0,1,0,1}, {1,0,0,1,0,1,1,0}, {1,0,0,1,0,0,0,1}, {0,0,0,1,0,0,0,1}, {0,...
/* * Copyright (c) 2015 DeNA Co., Ltd., <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, mer...
/* mandelzoom.cpp MIT License Copyright (c) 2019 <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 ri...
//---------------------------------------------------------------------- // // File: "globalSettings.cpp" // Created: 15-9-2013 // Author: 津田伸秀 // Description: // //---------------------------------------------------------------------- #include "globalSettings.h" #include "charEncoding.h" #include <QSett...
/*--------------------------------------------------------------------- main.cpp - example09 - using float point and math functions newlib */ #include "api/ArduinoAPI.h" #include "main.h" #include <stdlib.h> //volatile unsigned tickcnt; /*--------------------------------------------------------------------- Reset...
// Copyright 2010-2018, 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: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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. Redistri...
/** * Copyright 2018 VMware * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright (c) 2014-2022 The Voxie Authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <vector> #include <utility> #include <map> #include <queue> #include <set> #include <stack> #define pb push_back #define f first #define s second #define fr front #define bk back #define mp make_pair #define SZ(x) ((int)(x).size()) #de...
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- /* * DecodeHintType.cpp * zxing * * Copyright 2010 ZXing 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 obtai...
#include <grend/audioMixer.hpp> #include <grend/sdlContext.hpp> #include <grend/utility.hpp> #include <stdint.h> using namespace grendx; // non-pure virtual destructors for rtti audioChannel::~audioChannel() {}; stereoAudioChannel::~stereoAudioChannel() {}; spatialAudioChannel::~spatialAudioChannel() {}; void audioC...
#include <hxcpp.h> #include <hx/OS.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #ifdef HX_WINDOWS # include <windows.h> # include <process.h> #elif defined(EPPC) || defined(KORE_CONSOLE) # include <time.h> #else # include <sys/time.h> # include <sys/types.h> ...
//#define USE_OPENGL2 #ifdef USE_OPENGL2 #include "OpenGLWindow/SimpleOpenGL2App.h" typedef SimpleOpenGL2App SimpleOpenGLApp ; #else #include "OpenGLWindow/SimpleOpenGL3App.h" typedef SimpleOpenGL3App SimpleOpenGLApp ; #endif //USE_OPENGL2 #include "Bullet3Common/b3Quaternion.h" #include "Bullet3Common/b3Comma...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cstddef> #include <omp.h> #include "CycleTimer.h" #include "bfs.h" #include "graph.h" #define ROOT_NODE_ID 0 #define NOT_VISITED_MARKER -1 #define BOTTOMUP_NOT_VISITED_MARKER 0 #define NUM_THREADS ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
#include "Module.h" Module::Module(int cs, int int0, int int1, SPIClass& spi) { // save pins numbers to private global variables _cs = cs; _int0 = int0; _int1 = int1; _spi = &spi; } void Module::init(uint8_t interface, uint8_t gpio) { // select interface switch(interface) { case RADIOLIB_USE_SPI: ...
#include "scan.h" #include "helpers.h" #include <gtest/gtest.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/iterator/transform_iterator.h> #include <thrust/iterator/reverse_iterator.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/sequence.h> #include <thrust/tuple.h> #include <vector> ...
/*** * * Optimized Sieve of Eratosthenes * * Sieves all numbers from 1 to MAX and stores all the primes in primes[] array * The small primes are generated first using a simpler sieve * The numbers are chunked into blocks of fixed sizes * Each block is processed separately to make it cache-friendly * The is_comp...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
/* SlimeVR Code is placed under the 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 restriction, including without limitation the ...
/* GUIDO Library Copyright (C) 2002 <NAME>, <NAME>, <NAME> Copyright (C) 2002-2013 Grame This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Grame Research Labora...
/*========================== begin_copyright_notice ============================ Copyright (C) 2020-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #pragma once #include <vector> #include <ZEELFObjectBuilder.hpp> #include "sp_g8.h...
#include <GLUT/glut.h> #include <vector> #include "riff.h" float cur_width; float cur_height; uint32_t time_ptr; std::vector<float> samples; #define SUBDIVS 1000 void bitmapString( const char *s ) { while( *s ) { glutBitmapCharacter( GLUT_BITMAP_8_BY_13, *s ); ++s; } } void display(void) {...
/* * Copyright (c) 2014, Oculus VR, Inc. * Copyright (c) 2016-2018, TES3MP Team * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATEN...
/* * NearestPoints.cpp */ #include <limits> #include <thread> #include <algorithm> #include <cmath> #include "NearestPoints.h" #include "Point.h" const double MAX_DOUBLE = std::numeric_limits<double>::max(); Result::Result(double dmin, Point p1, Point p2) { this->dmin = dmin; this->p1 = p1; this->p2 = p2; } Re...
#include "mpeg-ps.h" #include "mpeg-ts.h" #include "mpeg-ts-proto.h" #include "mov-reader.h" #include "mov-format.h" #include "mpeg4-aac.h" #include "mpeg4-avc.h" #include "mpeg4-hevc.h" #include <assert.h> #include <string.h> #include <stdio.h> #include <map> extern "C" const struct mov_buffer_t* mov_fil...
#include "fix_dot_net_ep.h" #include <peconv.h> #include <string> #include <map> class ListImportNames : public peconv::ImportThunksCallback { public: ListImportNames(BYTE* _modulePtr, size_t _moduleSize, std::map<std::string, DWORD> &name_to_addr) : ImportThunksCallback(_modulePtr, _moduleSize), nameToAd...
#include <sstream> #include "sm.h" #include "stopwatch.h" #include "sm_options.h" #include "log_core.h" #include "vol.h" #include "alloc_cache.h" #include "stnode_page.h" #include "bf_tree.h" #include "bf_tree_cleaner.h" #include "base/command.h" #include "btree_logrec.h" #include <chrono> #include <random> #include <t...
#include "statusindicator.h" #include "toolbar/toolbardefines.h" #include "defaultvalues.h" #include "gamedatacontainer.h" StatusIndicator::StatusIndicator(QObject *parent) : QObject(parent) { gameDataContainer = GameDataContainer::Instance(); } QLabel *StatusIndicator::playerStatusLabel(const char* oName, cons...
/**************************************************************************************************************************************************** * Copyright 2018 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
// Purpose: TF2 specific CBaseCombatCharacter code. #include "cbase.h" #include "basecombatcharacter.h" #include "engine/IEngineSound.h" #include "tf_player.h" #include "tf_stats.h" extern char *g_pszEMPPulseStart; bool CBaseCombatCharacter::HasPowerup( int iPowerup ) { Assert( iPowerup >= 0 && iPowerup < MAX_POWE...
//HEADER_GOES_HERE #include "../types.h" int mainmenu_cpp_init_value; // weak char chr_name_str[16]; const int mainmenu_inf = 0x7F800000; // weak /* data */ int menu_music_track_id = 5; // idb struct mainmenu_cpp_init { mainmenu_cpp_init() { mainmenu_cpp_init_value = mainmenu_inf; } } _mai...
#include <iostream> #include <vector> #include <string> #include <thread> #include <chrono> #include <mutex> #include <iomanip> #include <cstdlib> #include <tuple> std::mutex g_stdio_mutex; struct Foo { double x, y; }; struct Surface { int width; int height; // mapping onto the surface's dimensions struct M...
/* * 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...
// Copyright 2018 The Fuchsia 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 <dirent.h> #include <fcntl.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <fuchsia/developer/tiles/cpp/fidl.h> #incl...
// Copyright 2020 Open Source Robotics Foundation, 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 appli...
#include "params.h" #include <assert.h> #include <iostream> #include <fstream> #include <sstream> DCExpParams params; /* Read parameters from a config file */ void read_experiment_parameters(std::string conf_filename, uint32_t exp_type) { std::ifstream input(conf_filename); std::string line; std::string ...
// Copyright (C) Point One Navigation - All Rights Reserved // Written by <NAME> <<EMAIL>>, March 2019 #include <iomanip> #include <iostream> #include <boost/algorithm/string/predicate.hpp> #include <boost/asio.hpp> #include <gflags/gflags.h> #include <point_one/polaris_asio_client.h> #include "simple_asio_serial_p...
/************************************************************** * * 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...
//------------------------------------------------------------------------------ // © 2021. Triad National Security, LLC. All rights reserved. This // program was produced under U.S. Government contract 89233218CNA000001 // for Los Alamos National Laboratory (LANL), which is operated by Triad // National Security, LLC...
#include <openssl/sha.h> #include <iostream> #include <string.h> #include <arpa/inet.h> #include "mptcp_connection.h" #include "parser_utility.h" using namespace std; MPTCPConnection::MPTCPConnection(FourTuple st, double timestamp, uint8_t ver){ source_tuple = st; src_key = 0; dst_key = 0; src_token = 0; ds...
// // G3MVectorialDemoScene.cpp // G3MApp // // Created by <NAME> on 11/16/13. // #include "G3MVectorialDemoScene.hpp" #include "G3MDemoModel.hpp" #include <G3M/LayerSet.hpp> #include <G3M/BingMapsLayer.hpp> #include <G3M/GEORenderer.hpp> #include <G3M/GEOSymbolizer.hpp> #include <G3M/GEOPolygonRasterSymbol.hpp> ...
/* Copyright (c) 2018, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
#include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #define FASTLED_ESP8266_NODEMCU_PIN_ORDER #include "../lib/FastLED/FastLED.h" #include "../lib/cJSON/cJSON.h" // Define SPI #define DATA_PIN 7 #define CLOCK_PIN 5 // Define LED values #define NUM_LEDS 4 CRGB leds[NUM_LEDS]; #define MAX_L...
/* * * 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 you under the Apache License, Version 2.0 (the * "License"); y...
#include "stdafx.h" #include "GraphicsProcessor.h" #include "GraphicComponent.h" #include "IRender.h" #include "IImage.h" #include "Vars.h" UseIntVar GRAPH_CAPS_TRAIL("GRAPH_CAPS_TRAIL"); // Updates animation frames and other states void GraphicsProcessor::Update( float dt, GraphicComponent & comp ) { ...
/////////////////////////////////////////////////////////////////////////////// // // @@@ START COPYRIGHT @@@ // // (C) Copyright 2012-2015 Hewlett Packard Enterprise Development LP // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License...
// Copyright 2011 <NAME>. // // 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 h...
#include "cgroup_limits.h" #include <fstream> #include "cgroup_list_counter.h" #include "sinsp.h" namespace { // to prevent 32-bit number of kilobytes from overflowing, ignore values larger than 4 TiB. // This reports extremely large values (e.g. almost-but-not-quite 9EiB as set by k8s) as unlimited. // Note: we use ...
/*------------------------------------------------------------------------- You may wonder why you might want to have multiple viewports for a single render window. Consider a car racing game where you want to display the rear view mirror in the top portion of your render window. One way to accomplish, this would be to...
#include "../headers/HelloTriangle.h" const char* vertexShaderSource = "#version 330 core\n" "layout (location = 0) in vec3 aPos;\n" "void main()\n" "{\n" " gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n" "}\0"; const char* fragmentShaderSource = "#version 330 core\n" "out vec4 ...
#include "opg3_4.h" RNG rng(12345); void doThings (Mat gray_image, Mat frame) { // Het tonen van grijswaarde beeld imshow("Gray Image", gray_image); Mat tresholdImage; Mat binaryImage; const int tresh_value = 100; threshold(gray_image, tresholdImage, tresh_value, 255, THRESH_BINARY); threshold(...
// Copyright(c) 2018, Intel Corporation // // 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 ...
#include "selfdrive/camerad/cameras/camera_mipi.h" #include <assert.h> #include <string.h> #include <unistd.h> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wundefined-inline" #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/opencv.hpp> #include <opencv2/videoio.hpp> #pr...
/* solve the Hamilton-Jacobi equation to smooth a raster field Persson, PO. Engineering with Computers (2006) 22: 95. https://doi.org/10.1007/s00366-006-0014-1 kjr, usp, 2019 */ #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <algorithm> #include <array> #include <assert.h> #include <cmath> #in...
/** * Copyright (C) 2016-2017 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Advent of Code 2021 Day 3 #include "input.hpp" #include<iostream> #include<vector> // MARK: Shared /// Computes the value of a binary string, e.g. "10101" -> 21. unsigned int decodeBinaryString(std::string const &string) { unsigned int result = 0; unsigned int index = 0; for (auto rit = string.rbegin...
#include <limits.h> #include "task.h" #include "state/task_table.h" #include "global_scheduler_algorithm.h" GlobalSchedulerPolicyState *GlobalSchedulerPolicyState_init(void) { GlobalSchedulerPolicyState *policy_state = new GlobalSchedulerPolicyState(); policy_state->round_robin_index = 0; return policy_state; ...
#include <bits/stdc++.h> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define se second #define pb push_back #define mp make_pair #define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it) #define _ ios_base::sync_with_stdi...
#include "payload.h" #include <cmath> static double round_to_decimals(double value); Payload::Payload() { ring_buffer_init(&this->ring_buffer); this->pulses = 0; this->pulses_avg = 0; this->avg = 0; this->rms = 0; this->min = INT32_MAX; this->max = INT32_MIN; this->data_length = 0; ...
#include "kitchensound/snapcast_controller.h" #include <cstdlib> #include <csignal> #include <unistd.h> #include <sys/epoll.h> #include <vector> #include <spdlog/spdlog.h> #include <spdlog/fmt/ostr.h> #include "kitchensound/song.h" #include "kitchensound/fd_registry.h" #include "kitchensound/mpd_controller.h" #defi...
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/stat.h> #include <deque> #include "eventloop.hpp" #include "services/command.hpp" #include "utils/io.hpp" #include "utils/macros.hpp" EventLoop::EventLoop(std::string input_pipe) : bar(get_bar()), registry(std::make_shar...
#include "engine.hpp" #include "util.hpp" #include "stl.hpp" #include <CASE/timer.hpp> SFML & init_sfml() { static SFML sfml; if (sfml.window.isOpen() == false) { sfml.window.create(sf::VideoMode{config::winw, config::winh}, "Bullet"); sfml.window.setKeyRepeatEnabled(false); sfml.window...
//----------------------------------------------------------------------------- // Torque Game Engine // Copyright (C) <EMAIL>, Inc. //----------------------------------------------------------------------------- #include "dgl/gBitmap.h" #include "dgl/gPalette.h" #include "core/stream.h" #include "platform/platform.h"...
#include <stdexcept> #include <string> #include "OnlineDB/Oracle/interface/Oracle.h" #include "OnlineDB/EcalCondDB/interface/ODWeightsSamplesDat.h" using namespace std; using namespace oracle::occi; ODWeightsSamplesDat::ODWeightsSamplesDat() { m_env = NULL; m_conn = NULL; m_writeStmt = NULL; m_readStmt = NUL...
/************************************************************************* * * * Vega FEM Simulation Library Version 2.2 * * * * "matrix" library ...
/******************************************************************** * 2014 - * open source under Apache License Version 2.0 ********************************************************************/ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOT...
/*----------------------------------------------------------------------* * M5Stack Bettery/Power Control Library v1.0 * * * * This work is licensed under the GNU Lesser General Public * * License v2.1 ...
#include "stdafx.h" // stdafx.h must be first #include "main.h" // atomic types const char *typeNames[atomicTypes]; namespace { struct init { init() { typeNames[(si)type::Bool] = "$o"; typeNames[(si)type::Individual] = "$i"; typeNames[(si)type::Int] = "$int"; typeNames[(si)type::Rat] = "$rat"; t...
/* * Copyright (C) 2018 Monument-Software GmbH * * 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 la...
/* * Copyright 2019 Carnegie Technologies * * 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 l...
/******************************* // Author : <NAME> // IPG-3rd yr // Institute : ABV-IIITM,Gwalior *********************************/ //header files #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <climits> #include <cassert> #include <iomanip> #include <vector> ...
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <queue> #include <deque> #include <bitset> #include <iterator> #include <list> #include <stack> #include <map> #include <set> #include <functional> #include <numeric> #include <utility> #include <limits> #include <t...
/* * Copyright (C) 2008 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...
// MPark.Patterns // // Copyright <NAME>, 2017 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://boost.org/LICENSE_1_0.txt) #include <gtest/gtest.h> #include <cstddef> #include <memory> #include <mpark/patterns.hpp> #include <ostream> #include <...
// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "OgreSkeletonAsset.h" #include "OgreRenderingModule.h" #include "Framework.h" #include "AssetAPI.h" #include "AssetCache.h" #include "LoggingFunctions.h" #include <QFile> #inc...
#include "Physics_Framework.h" // plane ---------------- Plane::Plane(glm::vec3 normal, float distance) { this->normal = glm::normalize(normal); this->distance = distance; shapeID = PLANE; } void Plane::createGizmo() { float lineSegLength = 100; glm::vec3 center = normal * distance; glm::vec3 parallel = glm::v...
#include "DbParser.h" #include "DriverDb.h" #include "Driver.h" #include "DeviceMatch.h" #include "Log.h" #include <toml++/toml.h> /** * Reads the given TOML file and parses it, extracting the objects under the `drivers` key and * constructing a driver object from them. The detected drivers are then added to the dr...
#include "parser.h" Parser::Parser(std::string_view filename): lexer_stack{}, ir_builder{} { lexer_stack.push_back(find_and_read_file(filename)); } bytecode_module Parser::parse() { parse_top_level(); // ir_builder.pretty_print_buffer(); return ir_builder.get_bytecode(); } void Parser::parse_top_leve...
#include <iostream> #include <algorithm> #include "super_stochastic_tau.h" Super_Stochastic_Tau::Super_Stochastic_Tau(const std::shared_ptr<Movec_Parser> basis) : Tau(basis) { set_pdf_cdf(hole_pdf, hole_cdf, iocc1, iocc2); set_pdf_cdf(particle_pdf, particle_cdf, ivir1, ivir2); } size_t Super_Stochastic_Tau::get_n_...
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * * 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 ve...