text
stringlengths
3.08k
12.5k
/* MIT License Copyright (c) the authors (listed in global LICENSE file) 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,...
/* The MIT License (MIT) Copyright (c) 2013-2014 winlin 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, p...
#include "LTV_LQR.h" using namespace Eigen; using namespace std; LTV_LQR::LTV_LQR() { mQf << 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f; mQ = 20*mQf; mR << 100.0f, 0.0f, 0.0f, 100.0f; m_pDynamics = new ManipulatorDy...
#include "../../!includes/Shunting_Yard/shunting_yard.h" #include <iostream> #include <string> #include "../../!includes/Queue/queue.h" #include "../../!includes/Shunting_Yard/Token/left_paren.h" #include "../../!includes/Shunting_Yard/Token/number.h" #include "../../!includes/Shunting_Yard/Token/operator.h" #include...
#include "hDraw.h" /* Just our drawing functions, no need to look at this any further */ int DrawString(char* String, int x, int y, int r, int g, int b, ID3DXFont* ifont) { RECT ShadowPos; ShadowPos.left = x + 1; ShadowPos.top = y + 1; RECT FontPos; FontPos.left = x; FontPos.top = y; ifont->DrawTextA(0, String...
/* * * 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...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Co., Ltd. http://www.cocos2d-x.org 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 Softw...
#include <iostream> // Headers void HeaderFunction(); // Variables void Variables(); // Functions void Function(); void Function(int); // Conditions void Conditions(); // Loops void Loop1(int); void Loop2(int); void Loop3(int); // Pointers void Pointers(); // Classes, Structs #include "Classes_Structs\Classes_St...
#include "OneWireManager.h" #include "Ds18b20.h" #include "Ds2413.h" #include "Ds2438.h" #include "print.h" OneWireManager::OneWireManager() : _readIndex(0) { } void OneWireManager::addBus(OneWireBus* bus) { _busses.push_back(bus); } int OneWireManager::init() { int err = 0; for (unsigned int i = 0; ...
// DialogProp.cpp : Implementation of CDialogProp #include "stdafx.h" #include "DialogProp.h" #include "Downloaddata.h" #include "RegisterSave.h" #include "MSystemConfig.h" #include "commctrl.h" #include "MServerComponent.h" extern CMServerComponent *_MServerComponent; ///////////////////////////////////...
/* Minimum spanning tree or minimum weight spanning tree for a weighted, connected and undirected graph is a spanning tree with weight less than or equal to the weight of every other spanning tree. The weight of a spanning tree is the sum of weights given to each edge of the spanning tree. A minimum spanning ...
/** * Copyright 2016 <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 applicable law or agreed to in writ...
#include <iostream> #include <fstream> #include <map> #include <sstream> #include <vector> #include <algorithm> using namespace std; struct Node { string vert; int weight; Node *next; }; struct List { struct Node *head; }; // Edge struct to hold edge data for finding MST struct Edge { string sou...
/* * ISC License * * Copyright (C) 2000-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * 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 appea...
#include "custom_vmexit.h" #include "lib/cr3_guard.h" #include "lib/mp.h" #include "lib/log.h" void custom_vmexit_handler::setup(vcpu_t& vp) noexcept { vmexit_base_handler::setup(vp); #if 0 // // Turn on VM-exit on everything we support. // auto procbased_ctls = vp.processor_based_controls(); // // S...
#include <cassert> #include "ProgramReader.h" #include "../utils/Formatting.h" #include "../execution/Globals.h" const std::string ProgramReader::EXPECTED_MAGIC = "THING\xCC"; ProgramInfo ProgramReader::process() { /** * Process a compile thinglang program */ prepare_stream(); read_header(); ...
/* * Copyright (C) 2021 Event-driven Perception for Robotics * Author: <EMAIL> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your...
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
/* * Copyright 2019, Offchain Labs, 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 ag...
// -*-c++-*- /* *Copyright: Copyright (C) <NAME> This code 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, or (at your option) any later version. This code is distributed in the hope t...
#include "classifier.h" #include <math.h> #include <string> #include <vector> using Eigen::ArrayXd; using std::string; using std::vector; // Initializes GNB GNB::GNB(int num_features) { /** * TODO: Initialize GNB, if necessary. May depend on your implementation. */ num_features_ = num_features; left...
// Copyright 2020-present Open Networking Foundation // SPDX-License-Identifier: Apache-2.0 #include <string> #include "absl/strings/str_cat.h" #include "gflags/gflags.h" #include "nlohmann/json.hpp" #include "p4/config/v1/p4info.pb.h" #include "stratum/glue/init_google.h" #include "stratum/glue/logging.h" #include "...
// Sunsoft FME-7 mapper // Nes_Emu 0.7.0. http://www.slack.net/~ant/libs/ #include "Nes_Mapper.h" #include "blargg_endian.h" #include "Nes_Fme7_Apu.h" /* Copyright (C) 2005 <NAME> */ /* Copyright (C) 2005-2006 <NAME>. This module is free software; you can redistribute it and/or modify it under the term...
// Copyright (c) 2010, <NAME> All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this // list of conditions and ...
/*************************************************************************** qgsalgorithmmeancoordinates.cpp --------------------- begin : April 2017 copyright : (C) 2017 by <NAME> email : <EMAIL> *******************...
#include "stdlib.hpp" #include "expressions/stdlib.hpp" #include "expression.hpp" template<typename T> inline void swap(T *vs, int i, int j) { auto tmp = vs[i]; vs[i] = vs[j]; vs[j] = tmp; } /** * Attempts to sort the array using the mergesort technique. * @param vs The values to sort * @param i The l...
// Copyright (C) 2019 <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 i...
#include <cstdio> #include "Utility.h" #include "gl_core_4_4.h" bool LoadShaderType(char* filename, GLenum shader_type, unsigned int* output) { //we want to be able to return if we succeded bool succeeded = true; //open the shader file FILE* shader_file; fopen_s(&shader_file, filename, "r"); ...
/* * Copyright (C) 2015 LINK/2012 <<EMAIL>> * Licensed under the MIT License, see LICENSE at top level directory. * */ #include <stdinc.hpp> #include "../data_traits.hpp" using namespace modloader; using std::tuple; using std::vector; // struct carcols_traits : public data_traits { static const bool has_sect...
/* The Well Equidistributed Long-period Linear (WELL) is a pseudorandom number generator developed in 2006 by <NAME>, <NAME>, and <NAME> [1] that is based on linear recurrences modulo 2 over a finite binary field F2. c++ functions based on a c++ version of mersenne twister everything in public domain */ #inc...
/// Program: IconShuffle - Shuffle Desktop icons randomly /// Author: <NAME> /// License: MIT License #include "IconShuffle.h" void ErrorExit(LPTSTR lpszFunction) { LPVOID lpMsgBuf; LPVOID lpDisplayBuf; DWORD dw = GetLastError(); FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_...
#include "mex.h" #include <iostream> #include <vector> #include <set> #include <algorithm> #include <functional> /* This files is part of the RepLAB library. It provides a faster implementation of the algorithm contained in burning.m. For optimal efficiency, the edges are not checked for redundency. ...
// The Modified BSD License // // Copyright (c) 2015, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this...
#include "stdafx.h" #include "Window.h" bool Window::glewIsSetup = false; Node * Window::AddChild(Node * newNode) { View* view = dynamic_cast<View*>(newNode); if (view) { views.Push(view); return Node::AddChild(newNode); } return NULL; } bool Window::Finished() { return glfwWindowShouldClose(glfwWindow); }...
/* * Copyright (c) 2011-2012 <NAME> <<EMAIL>> * * BSD Simplified License. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. * * See https://github.com/danomatika/ofxAppUtils for documentation * */ #include "ofxQuadWarper....
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
#include<iostream> //header file used for cin and cout #include<string.h> //header file for string class using namespace std; //refer cin and cout #define max 100; class per_info //student is friend class of per_info { string lic, dob, bldgrp; //personal info variables public: per_info(); ...
// // Created by krab1k on 4.2.19. // #include <fmt/format.h> #include <fmt/ostream.h> #include <boost/program_options.hpp> #include "chargefw2.h" #include "config.h" #include "method.h" namespace config { std::string mode; std::string input_file; std::string par_file; std::string ref_chg_file; ...
/// @file /// @brief The kernel's system call table and a couple of generic system calls. //#define ENABLE_TRACING #include "user_interfaces/syscall.h" #include "syscall/syscall_kernel.h" #include "syscall/syscall_kernel-int.h" #include "klib/klib.h" #include "system_tree/system_tree.h" #include "system_tree/fs/fs_fi...
#include "otc/otcli.h" #include "otc/util.h" using namespace otc; typedef otc::RootedTreeNode<RTSplits> Node_t; typedef RTreeOttIDMapping<RTSplits> RootedTreeForNodeType; typedef otc::RootedTree<RTSplits, RootedTreeForNodeType> Tree_t; bool processNextTree(OTCLI & otCLI, std::unique_ptr<Tree_t> tree); extern const char...
// future example #include <chrono> // std::chrono::milliseconds #include <cmath> #include <future> // std::async, std::future #include <iostream> // std::cout std::chrono::steady_clock::time_point now() { return std::chrono::steady_clock::now(); } long long sub(std::chrono::steady_clock::time_point begin, std:...
/*************************************************************************** qgspainteffectregistry.cpp ------------------------ begin : January 2015 copyright : (C) 2015 <NAME> email : <EMAIL> ***************...
/* * Copyright (C) 2021 HERE Europe B.V. * Licensed under MIT, see full license in LICENSE * SPDX-License-Identifier: MIT * License-Filename: LICENSE */ #include <charconv> #include <iostream> #include <hf/flexpolyline.h> std::string_view remove_decoration(std::string_view x, std::string_view prefix, ...
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
// =============================== // AUTHOR : <NAME> (<EMAIL>lo12 AT vt DOT edu) // CREATE DATE : 2018-07-19 // =============================== //Headers #include "geometry.h" #include <limits> #include <math.h> //-------------------------------AABOX------------------------------------// void AABox::buildAAB...
/** * \file WznmMQuerycol_vecs.cpp * database access for table TblWznmMQuerycol (implementation of vectors) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE using namespace std; using namespace Sbecore; using namespace Xml...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/time.h> #include "utilold.h" //#include <bsd/stdlib.h> typedef enum { L_ORDERKEY = 0, L_PARTKEY, L_SUPPKEY, L_LINENUMBER, L_QUANTITY, L_EXTENDEDPRICE, L_DISCOUNT, L_TAX, L_RETURNFLAG, L_LINESTATUS, L_...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
// // ctlTest.cpp // DevEng // // Created by <NAME> on 2/15/16. // Copyright (c) 2016 Simviu Technology Inc. // All rights reserved. // http://www.simviu.com/dev // #include "ctl.h" using namespace std; using namespace ctl; #define CTL_UT_CHK(val, expVal, bFlag) \ { if(val!=expVal) \ { ctl::logErr(std::string...
#include "grammar.h" #include <algorithm> #include <utility> #include <map> #include "rule_lexer.h" #include "filelib.h" #include "tdict.h" using namespace std; const vector<TRulePtr> Grammar::NO_RULES; RuleBin::~RuleBin() {} GrammarIter::~GrammarIter() {} Grammar::~Grammar() {} bool Grammar::HasRuleForSpan(int i...
#pragma once #include <iostream> #include <map> #include "Constants.h" #include "VirtualInputManager.hpp" struct Scripts { std::list<std::string> names; }; class ScriptsSystem : public System { lua_State* state; std::list<std::string> uniqueScripts; Window* ou...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
#include "maindev.h" #include "config.h" #include <FastLED.h> #include "mpr121.h" #include "mpr121-config.h" #include "serial.h" static MPR121 capl, capr; static bool auto_scan = false; static void slider_set_led(); static void slider_scan_start(); static void slider_scan_stop(); static void slider_reset(); static ...
/******************************************************************************** * * Copyright (c) 2018 ROCm Developer Tools * * MIT LICENSE: * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the So...
#include "mounter.hpp" #include <iostream> #include <fstream> // Mounter Class // : Mount files needed for accelerators // : Context has information of container (rootfs, UID, GID) Mounter::Mounter(Context* _cont) : cont(_cont) {} // Mount files for all devices contained in given list bool Mounter::mountDevices(list<...
/* Copyright 2014 - 2016 <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 applicable law or agreed to ...
#include "Player.h" #include <cstdlib> Player::Player(const std::string name, std::string startLoc, int health, int gold): m_name(name), m_currentMap(startLoc), m_health(health), m_gold(gold) {} bool Player::movePlayer(std::vector<std::string>& cMap, int x, int y) { int* pPos = this->getPos(); static int num ...
#include <gfcc_lexer.h> const char* TOKEN_NAME_ARRAY[] = { "IDENTIFIER", "CONSTANT", "STRING_LITERAL", "SIZEOF", "FILE_OBJ", "PTR_OP", "INC_OP", "DEC_OP", "LEFT_OP", "RIGHT_OP", "LE_OP", "GE_OP", "EQ_OP", "NE_OP", "AND_OP", "OR_OP", "MUL_ASSIGN", "DIV_ASSIGN", "MOD_ASSIGN", "ADD_ASSIGN", "SUB_ASSIGN", "LEFT_ASSIGN"...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <fstream> #include <vector> #include <arc/Logger.h> #include <arc/StringConv.h> #include <arc/message/MCCLoader.h> #include "SimpleMap.h" #include "IdentityMap.h" static Arc::Plugin* get_sechandler(Arc::PluginArgument* arg) { ArcSec::SecHandlerPluginArgume...
#include "structure.h" #define MinClusterSize 1000000000 extern "C" { int bwa_idx_build(const char *fa, const char *prefix); } pthread_mutex_t Lock; map<int, int64_t> ClusterSizeMap; static int ClusterSize, ClusterID; vector<pair<string, int64_t> > ClusterSeqPathVec; bool CompByClusterSize(const pair<string, in...
#include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <std_msgs/Float32.h> #include <geometry_msgs/Twist.h> #include <geometry_msgs/Vector3Stamped.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hp...
/** * * k-d tree implementation file * * author: <NAME> * license: GNU * * */ #include "kdtree.h" #include <iostream> // implementation of Node Class Node::Node(int _n) { left = 0; right = 0; } Node::Node(int _n, vecType _data) : data(_data) { left = 0; right = 0; } Node::~Node() {} bool Node::is_leaf() { if (this...
/* The MIT License (MIT) Copyright (c) 2019 Techno Road Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <algorithm> #include <array> #include <stdexcept> #include <utility> // OZKS #include "oZKS/utilities.h" #include "oZKS/vrf.h" using namespace std; using namespace ozks; namespace { template <typename...
/* This file is part of VoltDB. * Copyright (C) 2008-2020 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
#include "TrackThaisIm.h" TrackThaisIm::TrackThaisIm() { } TrackThaisIm::~TrackThaisIm() { } Mat TrackThaisIm::TrackingImg(Mat imgOriginal) { int i = 0, x = 0, y = 0; Mat imgThresholded, imgHSV; TrackingObj(0, imgOriginal); TrackingObj(1, imgOriginal); TrackingObj(2, imgOriginal); return imgOriginal; } S...
/* ----------------------------------------------------------------------------- Copyright (c) 2006 <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...
/* Copyright (c) 2016, <NAME> 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 ALL WARRANTIES WITH...
#pragma once #include <cassert> #include <cstring> #include <ostream> #include <string> #include <string_view> #include <vector> #include "preproc.hh" namespace mimosa { class StringRef { public: typedef size_t size_type; static const size_type npos = -1; constexpr StringRef() noexcept = de...
#include "float_math.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> /*---------------------------------------------------------------------- Copyright (c) 2004 Open Dynamics Framework Group www.physicstools.org All rights reserved. Redistribution and us...
/* * Copyright (c) 2014 empirer <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, modify, merge, ...
#include <bits/stdc++.h> #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<cstdlib> #include<string> #include<algorithm> #include<vector> #include<stack> #include<queue> #include<map> #include<sstream> using namespace std; #define open freopen("input.txt","r",stdin) #define close freope...
/* tests/test_stl_binders.cpp -- Usage of stl_binders functions Copyright (c) 2016 <NAME> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "pybind11_tests.h" #include <deque> #include <map> #include <pybind11/numpy.h> ...
// Copyright (c) 2017-2020 The PIVX developers // Copyright (c) 2020 The MiracleCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "stakeinput.h" #include "chain.h" #include "main.h" #include "txdb.h" #inc...
/* * Textures.cpp * * Created on: 26.01.2013 */ #include "graphics/render/Textures.h" #include "graphics/render/Atlas.h" #include "graphics/render/GLTextures.h" #include "debug.h" #include "scripts/LuaConfig.h" #include "safestring.h" #include "hacks.h" namespace Textures { /////////////////////////////////...
#include "../BlockLocalPositionEstimator.hpp" #include <systemlib/mavlink_log.h> #include <matrix/math.hpp> extern orb_advert_t mavlink_log_pub; // required number of samples for sensor // to initialize static const int REQ_SONAR_INIT_COUNT = 10; static const uint32_t SONAR_TIMEOUT = 5000000; // 2.0 s static const fl...
/* * Copyright 2014, Pythia authors (see AUTHORS file). * 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,...
/**************************************************************************** * * Copyright (c) 2017 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...
#include <chrono> #include <cassert> #include <fstream> #include <iostream> #include <DynPDT.hpp> using namespace dynpdt; namespace { class StopWatch { public: enum Times { SEC, MILLI, MICRO }; StopWatch() : tp_(std::chrono::high_resolution_clock::now()) {} ~StopWatch() {} double operator()(Times ty...
#include <usb_keyboard.h> #include "../KeyDefines.h" #include "WireHandler.h" #include "USBMIDIHandler.h" struct KeyNote { int scancode; uint8_t note; }; #define NUM_SONOME_NOTES 47 struct KeyNote sonome[NUM_SONOME_NOTES] = { { KC_1, 24}, { KC_2, 31}, { KC_3, 38}, { KC_4, 45}, ...
#include <iostream> #include <sstream> #include <cstdlib> #include "sys/timeb.h" #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #endif #include <boost/regex.hpp> #include <boost/format.hpp> #include "Utils.h" // get_time () // get current time downto miliseconds (as double) since epoch // inspired b...
#include "frame_keyboard.h" uint16_t textsize = 26; void key_textclear_cb(epdgui_args_vector_t &args) { ((EPDGUI_Textbox *) (args[0]))->SetText(""); } void key_textsize_plus_cb(epdgui_args_vector_t &args) { textsize += 4; if (textsize > 96) { textsize = 96; } char buf[10]; sprintf(buf...
#include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <ArduinoOTA.h> #include "definitions.h" #include "constants.h" #include "config_utils.h" IPAddress AP_IP = IPAddress(10, 1, 1, 1); IPAddress AP_subnet = IPAddress(255, 255, 255, 0); WifiConf wifiConf; bool cold_start = false; // Web server for editing c...
// Copyright (c) 2014-2020 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, d...
#include "connectioninitiator.h" #include "controlplane/controlplaneclient.h" #include "controlplane/controlplaneserver.h" #include "controlplane/controlplaneconnection.h" #include "dataplane/dataplaneserver.h" #include "dataplane/dataplaneclient.h" #include "dataplane/dataplaneconnection.h" #include "databasehandler....
/* example/example2.cpp2 -- singleton design pattern, static functions and variables, passing and interacting with Python types Copyright (c) 2016 <NAME> <<EMAIL>> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "e...
#include "M5FontRender.h" M5FontRender::M5FontRender() { #if defined (ARDUINO_M5Stack_Core_ESP32) _font_cache_size = 32; #elif defined (ARDUINO_M5STACK_FIRE) || defined(ARDUINO_M5STACK_Core2) _font_cache_size = 256; #else _font_cache_size = 64; #endif _font_size = ...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. #include <librealsense/rs.hpp> #include "example.hpp" #include <sstream> #include <iostream> #include <iomanip> #include <thread> #include <algorithm> #include <map> #include <memory> texture_buff...
/* * SPDX-FileCopyrightText: 2020 <NAME>, Imperial College London * SPDX-FileCopyrightText: 2020 <NAME>, Imperial College London * SPDX-License-Identifier: BSD-3-Clause */ #include "reader_newercollege.hpp" #include <cassert> #include <cctype> #include <cmath> #include <cstring> #include <iomanip> #include <iostr...
using fp::_; using fp::match; using fp::with; using fp::guarded; using fp::view; using fp::varg; using fp::_1; using fp::_2; void pattern_match_syntax() { data_type_1 data_value_1; data_type_2 data_value_2; // fp::match is a variadic template function which takes zero or more data // values, and returns an ...
/* * This file is part of the statismo library. * * Author: <NAME> (<EMAIL>) * * Copyright (c) 2011 University of Basel * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribu...
#include "sim_remote_control.h" void readInput(void){ char input; while (g_do_not_quit) { input = getch(); switch (input) { case 'X': g_vec6.state_.is_traversing_ = false; g_vec6.allThrustersStop(); g_do_not_quit = false; break; case 'Z': displayH...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
#include "ModuleYellowPages.h" #include "ModuleNetworkManager.h" #include "Application.h" #include "Packets.h" #include "Log.h" #include "imgui/imgui.h" #include "ModuleWindow.h" enum State { STOPPED, STARTING, RUNNING, STOPPING }; bool ModuleYellowPages::init() { state = STOPPED; return true; } bool ModuleYe...
#include "collector.h" #include <stdio.h> #include <memory.h> #include <map> #include <vector> #include <algorithm> #include <cxxabi.h> #include <sstream> #include "procutil.h" #include "elfutil.h" #include "constants.h" static Collector* _instance = nullptr; Collector::~Collector() { dumpOne(); } Collector *C...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <assert.h> #include <deque> #include <forward_list> #include <functional> #include <list> #include <map> #include <memory> #include <regex> #include <set> #include <stddef.h> #include <stdlib.h> #i...
#include "stdafx.h" #include "graphics/GpuMemory.h" #ifndef VORB_USING_PCH #include <GL/glew.h> #endif // !VORB_USING_PCH #include "graphics/ImageIO.h" #include "graphics/SamplerState.h" #include "graphics/ImageIO.h" #include "utils.h" #define RGBA_BYTES 4 ui32 vg::GpuMemory::m_totalVramUsage = 0; ui32 vg::GpuMemor...
#include "Bitunz.h" #include "IPlug_include_in_plug_src.h" #include "IControl.h" #include "resource.h" const int kNumPrograms = 1; template <typename T> int sgn(T val) { return (T(0) < val) - (val < T(0)); } enum EParams { kBit1 = 0, kBit2, kBit3, kBit4, kBit5, kBit6, kBit7, kBit8, kDownsample, kDry, k...
/* * File: RadauWrapper.cpp * Author: vinod (<EMAIL>) * * Copyright (C) 2009 <NAME>. * * File purpose: * This is a wrapper class for Radau C++ solver * Licence: * This file is part of "Camflow". * * Camflow is free software; you can redistribute it and/or * modify it under the terms of the GNU General...
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fpdfapi/page/cpdf_allstates.h" #include <algorithm> #include <...