text
stringlengths
3.08k
12.5k
#include <unistd.h> #include <fcntl.h> #include <cstring> // #include <iostream> #include <sys/ioctl.h> #include <linux/i2c-dev.h> #include <wiringPiI2C.h> #include <cmath> #include <cse_actuator_driver/PCA9685.h> #include <cse_actuator_driver/Constants.h> PCA9685::PCA9685(const std::string &device, int address) { i...
/** Copyright (c) 2016, <NAME>, <NAME>, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * 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...
#include <iostream> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/lexical_cast.hpp> #include "succinct/mapper.hpp" #include "types.hpp" #include "queries.hpp" #include "util.hpp" using namespace pvb; static const uint64_t num_runs = 3; template <t...
#include "frustum.h" #include <cmath> void Frustum::get_frustum(float proj[16], float modl[16], float frustum[6][4]) { float clip[16]; clip[ 0] = modl[ 0] * proj[ 0] + modl[ 1] * proj[ 4] + modl[ 2] * proj[ 8] + modl[ 3] * proj[12]; clip[ 1] = modl[ 0] * proj[ 1] + modl[ 1] * proj[ 5] + modl[ 2] * proj[ 9] +...
#include "Date.hpp" #include <sstream> #include <cctype> #include <iomanip> Date::Date() : m_year(0), m_month(0), m_day(0), m_hour(0), m_minute(0) { } Date::Date(int t_year, int t_month, int t_day, int t_hour, int t_minute) { m_year = t_year; m_month = t_month; m_day = t_day; m_hour = t_hour; m_minute = t_minute...
#include "PID.h" using namespace std; PID::PID() { Kp =0; Ki =0; Kd=0; p_error =0; i_error=0; d_error =0; IsInitialized =0; IsOptimized =false; Reset_Sim =0; icnt =0; Cnt =0; icnt=0; Phase =0; dp[0] =0.06; dp[1]= 0.001; dp[2]=0.1; Total_Cnts =400; tol =0.12; } PID::~PID() {} void PID::Init(double Kp, double Ki, d...
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Geographical_coordinates_traits_2.h> #include <CGAL/Delaunay_triangulation_on_sphere_traits_2.h> #include <CGAL/Projection_on_sphere_traits_3.h> #include <CGAL/Delaunay_triangulation_on_sphere_2.h> #include <CGAL/enum.h> #include <CGAL/poi...
/* Copyright (c) 2015-2018 <NAME>, <NAME>, Naudit HPCN * * 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,...
/** * Copyright (C) 2015 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "Interpreter.h" #include "Error.h" Interpreter::Interpreter(const shared_ptr<Node> ast, QObject * parent) : QObject(parent) , ast(ast) ...
#include "g_local.h" #include "g_functions.h" extern void G_MoverTouchTeleportTriggers( gentity_t *ent, vec3_t oldOrg ); void G_StopObjectMoving( gentity_t *object ); /* ================ G_RunObject ================ */ void G_RunObject( gentity_t *ent ) { vec3_t origin, oldOrg; trace_t tr; ent->nextthink = lev...
/* * 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"); you ...
#include <event2/bufferevent.h> #include <event2/util.h> #include <functional> #include <netinet/in.h> #include <sys/socket.h> #include <string.h> #include <string> #include "bytes.hpp" #include "error-code.hpp" #include "poller.hpp" #include "net.hpp" relight::ErrorCode relight_connect(bufferevent *bufev, int family,...
#include "mimalloc-new-delete.h" // // only 64bit.. #include "simdclaujson.h" class Parse { public: simdjson::dom::parser* parser; void operator()(bool x, int64_t y, int64_t z, int no, simdjson::dom::element* output) { try { *output = parser->parse(x, y, z, no); } catch (simdjson::simdj...
#include "QueueWorker.hpp" #include "../utils/LogDefines.hpp" #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> auto job::QueueWorker::fork_process() -> pid_t { if (forkToHandle) { return getProcessHelper()->fork(); } return 0; } auto job::QueueWorker::allocateJobOutputStream( ...
#include "../header/BitsetHash.h" #include "../header/VectorState.h" #include "../header/searches.h" #include <algorithm> #include <cstdint> #include <fstream> #include <iostream> #include <iterator> #include <sstream> #include <stdio.h> #include <string.h> #include <unordered_map> #include <vector> // finds answer in...
#include <QFontDatabase> #include <QGroupBox> #include <QLabel> #include <QScrollBar> #include <QVBoxLayout> #include <ctime> #include <gui/qt/console.h> #include <utility/helpers/log.h> console *console::m_instance = nullptr; console &console::instance() { if (m_instance == nullptr) m_instance = new console();...
/// @file WeatherSimpleConnectorSpark.cpp /// @brief Receives sentenes over the IFlow<char*> link (e.g. from Rebecca) and publish the contained command tags to all the subscribers linked by IFlow<Json::Value*>. //#include "stdAfx.h" #include <iostream> #include <string> #include <queue> #include <cstdlib> #include <ct...
/* ============================================================================ Name : TIFFToObj.cpp Author : <NAME> Version : Copyright : GPL Description : Hello World in C++, ============================================================================ */ #include <string> #include <iostream...
// Author : <NAME> - CED18I039 // g++ CED18I039.cpp -o ced -lGL -lGLU -lglut -lGLEW #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <GL/glew.h> #include <GL/freeglut.h> #include <GL/glut.h> #include <math.h> #include <time.h> using namespace std; float precision = 1; // de...
#include "geometrycentral/spectral_conformal.h" #include<Eigen/SparseCholesky> using namespace geometrycentral; SpectralConformal::SpectralConformal(HalfedgeMesh* m, Geometry<Euclidean>* g) : mesh(m), geom(g), vertexIndices(mesh), uvCoords(mesh) {} Eigen::SparseMatrix<std::complex<double>> SpectralConformal::createE...
//Record, monitor, and display plant data. #include "PlantData.h" #include <Arduino.h> #include "SDCRW.h" #include <SoftwareSerial.h> SoftwareSerial link(2, 3); SDCRW sdcrw;// SDcard data r/w class const long day = 86400000; // 86400000 milliseconds in a day const long hour = 3600000; // 3600000 millise...
/* fm_transmitter - use Raspberry Pi as FM transmitter Copyright (c) 2015, <NAME> All rights reserved. See https://github.com/markondej/fm_transmitter Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:...
/*============================================================================= Copyright (c) 2001-2007 <NAME> Copyright (c) 2001-2009 <NAME> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============...
#include "Setup.h" /********************************************* * Definition of constants for the system **********************************************/ //*** Hardware constants (see Setup.h for declaration) *** //RTC Pins const unsigned char interruptPin = 2; //SQW pin connected to interrupt0 on pin D...
/*RenDev#2616 File Selector Tool Copyright (C) 2021 RenDev Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. Permission is also granted to not credit the author in any way as long as you do not take credit for this piece of software....
#include "gtest/gtest.h" #include <aliLuaCore.hpp> #include <aliLuaExt.hpp> #include <aliLuaTest_util.hpp> #include <aliSystem.hpp> namespace { using Exec = aliLuaCore::Exec; using ExecEngine = aliLuaExt::ExecEngine; using Future = aliLuaCore::Future; using InfoMap = aliLuaCore::InfoMap; using L...
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "system_info/system_info_storage.h" #include <mntent.h> #include <stdlib.h> #include <sys/statvfs.h> #include "common/picojson.h" namespace {...
#include "JsonConverter.hpp" #include <QDebug> // A static class of filter functions class DataFilter { private: using floatType = float; public: // Head static floatType filterHeadAngle(floatType headAngleParam) { return f_thirty(headAngleParam); } // Eye static floatType filterEyeOpen(floatType eyeOpenParam) {...
#define _CRT_NO_TIME_T #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <assert.h> #include <direct.h> #include <fstream> #include <random> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <vector> typedef int8_t i8; typedef int16_t i16; typedef int32_t i32; typedef int64_t i64; typedef ...
/*------------------------------------------------------------------------------ * Copyright 2016 Sensirion AG, Switzerland. All rights reserved. * * Software source code and Compensation Algorithms are Sensirion Confidential * Information and trade secrets. Licensee shall protect confidentiality of * Software sou...
#include "dhe-modules.h" #include "display/controls.h" #include "display/panel.h" #include "util/duration.h" #include "util/phase-accumulator.h" #include "util/rotation.h" #include "util/stage-components.h" namespace DHE { class Hostage : public rack::Module { public: Hostage() : Module{PARAMETER_COUNT, INPUT_COUNT...
/* Test Case: insertAtHead 1 insertAtTail 2 insertAtTail 3 insertAtTail 4 insertAtTail 5 show insertAt 1 9 show insertAtHead 0 show deletePos 2 show deleteHead show deleteTail show deleteTail show deleteHead deleteHead show deleteTail show exit This is a command line Tool Command Are:- Command-Name ...
/* * FileProcess.cpp * * Created on: 2012-3-27 * Author: root * Copyright (C) 2009 Aisino Corporation Inc. * * No.18A, Xingshikou street, Haidian District,Beijing * All rights reserved. * * This software is the confidential and proprietary information of * Aisino Corporation Inc. ("Confidential Informa...
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
#include "StdAfx.h" #include ".\foodchain3d.h" #include <math.h> #include "../Graph/graph.h" ////////////////////////////// BASE //////////////////////////////////////// double FoodChain3DBase::a = 0; double FoodChain3DBase::b = 0; double FoodChain3DBase::c = 0; double FoodChain3DBase::d = 0; double inline FoodCha...
// AirMap Platform SDK // Copyright © 2018 AirMap, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the License); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless requir...
//---------------------------------------------------- // file: SObject2Editor.cpp //---------------------------------------------------- #include "Pch.h" #pragma hdrstop #include "NetDeviceLog.h" #include "SObject2Editor.h" #include "SObject2.h" #include "SceneClassList.h" #include "MenuTemplate.rh" //...
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2021, <NAME> <<EMAIL>> // Copyri...
#define S_FUNCTION_NAME megaultra_init #include <math.h> #include "ttkernel.cpp" #include "defines.h" #include "../network.h" // Obstacle avoidance constants #define NBR_OBS 1 #define Y_MAX 100 #define Y_MIN -100 #define PI 3.14159265 // Defines an obstacle struct vertex { double x; double y; double rad; }; ...
/* Copyright (c) 2003-2007 <NAME> <<EMAIL>> Modified by <NAME> <<EMAIL>> Copyright (c) 2015-2018 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 cod...
// // main.cpp // vector // // Created by SteveLin on 2019/7/14. // Copyright © 2019 unixlin. All rights reserved. // #include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; void print(const string& name) { cout << "c_value detected:" << name << endl; } void print(st...
#include "ConsoleBuffer.h" #include "Colours.h" #include <assert.h> #include <stdio.h> #include <malloc.h> ConsoleBuffer::ConsoleBuffer(HANDLE stdoutHandle) { m_stdoutHandle = stdoutHandle; m_width = 0; m_height = 0; m_buffer = 0; m_backBuffer = 0; } ConsoleBuffer::~ConsoleBuffer() { delete[] ...
/*-------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2016 Great Hill 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 Soft...
/************************************************************** * * 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...
/* * This file is part of the libopeninv project. * * Copyright (C) 2012 <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your...
#include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/F...
/* * oper_matrix.cpp * * Created on: 2017. 6. 6. * Author: cho */ #include <random> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/lu.hpp> #include <boost/numeric/ublas/triangular.hpp> #include...
#include "icosphere.hpp" #include <QDebug> #include "morton.hpp" #include <QtOpenGL> Icosphere::Icosphere() { } // add vertex to mesh, fix position to be on unit sphere, return index int Icosphere::addVertex(glm::vec3 p) { double length = glm::sqrt(p.x * p.x + p.y * p.y + p.z * p.z); geometry_positions.push_ba...
#include <iostream> #include <gtest/gtest.h> #include "field.hpp" #include "util/display.hpp" using namespace fb; void displayManualTestMessage() { std::cout << "The following test must be checked manually:" << std::endl; std::cout << "Ask yourself whether things display as they should on screen." << std::e...
#include "GrainCloud.h" pdsp::GrainCloud::MultiGrainTrigger::MultiGrainTrigger(int outputs){ this->outputs = outputs; addInput("jitter", in_jitter_ms ); addInput("distance", in_distance_ms ); outs.resize(outputs); for(int i=0; i<outputs; ++i){ addOutput( std::to_string(i)....
#define GL_GLEXT_PROTOTYPES #include <GLFW/glfw3.h> #include <math.h> #include "aids.hpp" using namespace aids; const int WINDOW_WIDTH = 800; const int WINDOW_HEIGHT = 600; const char *vertex_shader_source = "#version 130\n" "void main(void)\n" "{\n" " int gray = gl_VertexID ^ (gl_VertexID >> 1);...
/* Copyright 2015 Nervana Systems 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 writin...
#include "lambdapure/Dialect.h" #include "lambdapure/Passes.h" #include "mlir/IR/Matchers.h" #include "mlir/IR/PatternMatch.h" #include <iostream> #include <map> #include <set> #include "mlir/Support/LLVM.h" #include "mlir/Support/LogicalResult.h" #include "mlir/IR/BlockAndValueMapping.h" #include "mlir/Pass/Pass.h" ...
// Copyright (c) 2020 <NAME> / <NAME>. MIT License. #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <cstring> #include "defs.h" int Globals[10]; byte Dp; int Ds[SS]; // Data stack & stack pointer byte Rp; int Rs[SS]; // Return stack & stack pointer int Pc; byte Bp; byte Buf[BS]; // Inp...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as foll...
#include "MadgwickAHRS.h" #include <math.h> //--------------------------------------------------------------------------------------------------- // Fast inverse square-root // See: http://en.wikipedia.org/wiki/Fast_inverse_square_root //================================================================================...
/* 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, distribute, sublice...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "osunitstd.hxx" #include <tchar.h> #include "os.hxx" // ================================================================ // Exhastive and paranoid tests for CompEndianLowSpLos16b // ===============================================...
/* Problema del Arbol ALV La entrada consta de un arbol. Se trata de averiguar si este arbol es del tipo ALV o no. Se dice que un Arbol es ALV si es un arbol binario de busqueda y, ademas, es equlibrado (Mirar problema del Arbol Equilibrado) Se dice que un arbol binario es de busqueda si se cumple que la raiz es es...
#include<iostream> #include <stdio.h> #include "Cacher.hpp" #include<exception> #include <sstream> #include <iostream> #include <fstream> using namespace std; namespace fs = boost::filesystem; Cacher::Cacher(){ } void Cacher::setWatchFolder(string &folder){ watchFolder = folder; } void Cacher::setCacheFolder(string ...
// 7/7 #include <iostream> #include <algorithm> #include <cstdio> #include <math.h> #include <iomanip> #define abs(x) ((x) < 0? -(x) : (x)) #define next(x) (((x) + 1) % 3) #define sqr(x) ((x) * (x)) typedef double maxa; const maxa eps = 1e-9; struct Point { maxa x, y; Point(const maxa x = 0, const maxa y = ...
/* Copyright 2011-2021 <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 i...
/***************************************************************************** * theme.cpp ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id: 710047ed00c3668aa472b345cbe495243d5cf74c $ * * Authors: <NAME> <<EMAIL>> * <NAME> <<E...
/* *************************************************************************** Copyright: 2013 Hericus Software, LLC License: The MIT License (MIT) Authors: <NAME> *************************************************************************** */ #include <AnException.h> #include <Log.h> #include <xmlinc.h> #includ...
#include <stack> #include <algorithm> #include <random> #include "maze.h" using namespace std; Maze::Maze() { nrows = 19; ncols = 31; level = -1; start[0] = 1; start[1] = 1; finish[0] = 1; finish[1] = 1; grid = new bool[nrows * ncols]; } /** Get an element from the maze array. ...
//greedy #include <fstream> #include <string.h> #include <stdlib.h> using namespace std; long ct1[10],ct2[10],cta[10]; ifstream f("2numere.in"); ofstream fout("2numere.out"); long n,cif,g,primcif,i,j,k,difmin,n1,n2,nsol1,nsol2,k1,w,ww,q2; long dif,cif1,cif2,nc,min=2000000000l; char a1[100],a2[100],a1sol[100],a2sol[10...
/** * * \section COPYRIGHT * * Copyright 2013-2017 Software Radio Systems Limited * * \section LICENSE * * This file is part of srsLTE. * * srsUE 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 Foundati...
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
// MfiaHysteresis.cpp -- Hysteresis simulations // <NAME> (<EMAIL>,<EMAIL>) // #include"MC_Hysteresis.hpp" #include"MC_Walker.hpp" #include"Meas_Trace.hpp" #include"Mfia_Hamiltonian.hpp" #include"Random.hpp" #include"ProgramOptions.hpp" #include<stdio.h> void DoIt(int& argc, char* argv[]) { int iproc = 0; int...
/****************************************************************************** NAME QSIFILTER DESCRIPTION Utility program to control/name filters COPYRIGHT (C) Quantum Scientific Imaging, Inc. as a contribution from <NAME> ******************************************************************************/ #incl...
#include "../include/imports.h" unsigned int(*sceKernelSleep)(unsigned int seconds); int(*sceKernelUsleep)(unsigned int microseconds); //threads int(*scePthreadCreate)(ScePthread *thread, const ScePthreadAttr *attr, void *(*entry) (void *), void *arg, const char *name); void(*scePthreadExit)(void *value); int(*scePt...
////////////////////////////////////////////////////////////////////// // CSE241 Object Oriented Programming // // Autor:<NAME> Date: Due Date>> October 13 // // Student Number:121044072 2014 // // HW02_121044072 // // ...
#include <map> #include <algorithm> #include <functional> #include <regex> #include <fstream> #include <sstream> #include "load_standard.h" #include "method_text.h" #include "create_integration_rule.h" #include "create_spectrum.h" #include "create_wavelength_boundary.h" #include "create_wavelength_set.h" std::string...
/* * Copyright (c) 2019, The Robot Studio * 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 cond...
// 𝑵𝒐𝒕𝒆: 𝑻𝒉𝒆 𝒄𝒐𝒅𝒆 𝒘𝒐𝒓𝒌𝒔 𝒘𝒆𝒍𝒍 𝒇𝒐𝒓 𝒏 𝒖𝒑𝒕𝒐 𝒕𝒉𝒆 𝒐𝒓𝒅𝒆𝒓 𝒐𝒇 10^7. 𝑩𝒆𝒚𝒐𝒏𝒅 𝒕𝒉𝒊𝒔 𝒘𝒆 𝒘𝒊𝒍𝒍 𝒇𝒂𝒄𝒆 𝒎𝒆𝒎𝒐𝒓𝒚 // 𝒊𝒔𝒔𝒖𝒆𝒔. // So for numbers greater than 10^7 find out prime factors from a method mentioned in // "Prime Factorization.cpp" and the calclate the #di...
#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <time.h> #include <iostream> #include <iomanip> #include <vector> #include <random> #include <Poco/NumberParser.h> #include <Poco/NumberFormatter.h> #include <Poco/Exception.h> #include <DB/Common/Exception.h> #include <DB/Common/ThreadPool.h> #inc...
/** * @file * * Unless noted otherwise, the portions of Isis written by the USGS are public * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, ex...
/*! \file load_balancing.cpp \author zafaco GmbH <<EMAIL>> \date Last update: 2019-11-13 Copyright (C) 2016 - 2019 zafaco GmbH This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Fre...
#pragma execution_character_set("utf-8") #include "buttondefence.h" #include "qpainter.h" #include "qevent.h" #include "qtimer.h" #include "qdebug.h" ButtonDefence::ButtonDefence(QWidget *parent) : QWidget(parent) { canMove = false; text = "1"; buttonStyle = ButtonStyle_Police; buttonStatus = ButtonS...
/* * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
#include "noughtsandcrosses.h" int Player::getMark() const { return mark; } int Player::getScore() const { return score; } int Player::getIndex() const { return index; } void Player::wonGame() { score++; emit scoreChanged(score); } Player::Player(Player::PlayerMark playersMark, int setIndex) : mark(playersMa...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/download/download_started_animation.h" #include "content/public/browser/notification_details.h" #include "content/public/bro...
/* ShutIt *///////////////////////////////////////////////////////////////////////////// #include "pvc.hpp" #include "dsp/digital.hpp" namespace rack_plugin_PvC { #define CHANCOUNT 8 struct ShutIt : Module { enum ParamIds { A_MUTE, SHUT_ALL = A_MUTE + CHANCOUNT, OPEN_ALL, FLIP_ALL, NUM_PARAMS }; enum ...
#include <stdio.h> #include <string.h> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; //#define DEBUG(...) fprintf(stderr, __VA_ARGS__); #define DEBUG(...) {}; typedef long long int64; int T; int N, SCCID[500001]; vector<int> ADJ[500001], RADJ[500001]; int X, IDX[500001], L...
#include "MicroBit.h" #include "MicroBitUARTService.h" //Deklaration von Variablen MicroBit uBit; MicroBitUARTService *uart; int lightCount = 3; static bool connected = false; int oldLightValue = 0; ManagedString msg_light = ""; ManagedString msg = ""; ManagedString msg_micro = ""; ManagedString msg_temp = ""; ...
// Implementation of the sieve of Eratosthenes to find primes. // // Uses an array of native ints to sieve primes. // // Complier: Visual Studio 2013 (v120) #include <iostream> #include <bitset> #include <limits> #include <vector> #include <string> #include <iostream> #include <sstream> #include <algorithm> using nam...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
/********************************************************************** Audacity: A Digital Audio Editor TimeTrackView.cpp <NAME> split from TrackPanel.cpp **********************************************************************/ #include "TimeTrackView.h" #include "../../../TimeTrack.h" #include "../../../Experime...
/* <NAME> Computer Graphics Laboratory Stanford University --------------------------------------------------------------------- Copyright (1997) The Board of Trustees of the Leland Stanford Junior University. Except for commercial resale, lease, license or other commercial transactions, permission is hereby given ...
#include "socket.hpp" #include "utils.hpp" #include <chrono> #include <csignal> #include <cstdlib> #include <fstream> #include <iostream> #include <mutex> #include <netdb.h> #include <thread> using namespace std; string nickname; bool running = true; void handleCtrlC(int signum) { cout << "\nPlease, use the /quit c...
#pragma once #include <options/cf_options.h> #include <rocksdb/env.h> #include <rocksdb/options.h> #include <table/block_based_table_builder.h> #include <table/format.h> #include <table/get_context.h> #include <table/meta_blocks.h> #include <table/plain_table_builder.h> #include <table/table_builder.h> #include <table...
#include "api/farage.h" #include <iostream> using namespace Farage; #define REGSUBEX #include "common_func.h" #define VERSION "v0.0.6" extern "C" Info Module { "You Just Came!", "Madison", "Upload images to justca.me", VERSION, "http://farage.justca.me/", FARAGE_API_VERSION }; std::string de...
// featbin/process-pitch-feats.cc // Copyright 2013 <NAME> // Johns Hopkins University (author: <NAME>) // // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with th...
/****************************************************************************** * Copyright (c) 2012-2013, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyrigh...
#include "parsing.hh" #include <map> #include <regex> namespace { template <typename T=void> [[nodiscard]] T throw_syntax_error(char const *message="Invalid Syntax") { throw std::runtime_error(message); } void check_syntax(bool condition, char const *message="Invalid Syntax") { if (!condition) { thr...
#include "rsw_math.h" #define MANGLE_TYPES #define PORTABLEGL_IMPLEMENTATION #include "GLObjects.h" #include <iostream> #include <stdio.h> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #define WIDTH 640 #define HEIGHT 480 using namespace std; using rsw::vec4; using rsw::mat4; vec4 Red(1.0f, 0.0f, 0.0f, 0.0f)...
#include <iostream> // Includes common necessary includes for development using depthai library #include "depthai/depthai.hpp" // MobilenetSSD label texts static const std::vector<std::string> labelMap = {"background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", ...
/* * Copyright (C) 2019 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...