text
stringlengths
3.08k
12.5k
#include "PCA.h" vector<double> aver(vector<vector<double>> M, int col, int line){ vector<double> Average(col); int k = 0; for (auto element : M){ for (auto el: element){ Average[k] += el; ++k;} k = 0; } for(int i = 0; i < Average.size(); ++i){ Average[i] /= line; } return Average...
/********************* */ /*! \file quant_split.cpp ** \verbatim ** Top contributors (to current version): ** <NAME>, <NAME> ** This file is part of the CVC4 project. ** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS ** in the top-level s...
#include "Output.h" OutputRouter::OutputRouter() { for (int i = 0; i < MAX_OUTPUTS; i++) { output[i] = OutputSettings(); peak[i] = 0; } for (int i = 0; i < MAX_OUTPUT_DEVICES; i++) { midi_output[i] = NULL; } ofxMidiOut::listPorts(); active_output = 0; }; OutputRouter::~...
//misaka will carry me to master #include <iostream> #include <cstdio> #include <cstring> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <array> #include <tuple> #include <set> #include <map> #define ll long long #define lb long double #define sz(vec) ((int)(vec.size())) #define...
/* This file is part of JapKatsuyou project; an application that provide Japanese verb conjugation Copyright (C) 2017 AnqaFalak group Authors: <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
/* * Copyright (c) 2018 syscl. All rights reserved. */ #include <Headers/kern_api.hpp> #include <Headers/kern_util.hpp> #include <Headers/plugin_start.hpp> #include <Headers/kern_iokit.hpp> #include "USBFixup.hpp" static const char *kextXHCIPCI[] { "/System/Library/Extensions/IOUSBHostFamily.kext/Contents/PlugIns...
#include <algorithm> #include <queue> #include <sstream> #include <string> #include <vector> #include "c_file.h" class LineFromRun { std::string line_; unsigned run_id_; public: LineFromRun(std::string line, int run_id): line_(line), run_id_(run_id) {} bool operator<(const Lin...
/* * Copyright (c) 2019 <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions an...
#include <list> #include <vector> #include <unordered_map> #include <iostream> #include <array> #include <string> #include <functional> #include <memory> #include <glad/glad.h> #include <SDL.h> #include <SDL_rwops.h> #include <SDL_net.h> #include <SDL_thread.h> #include <physfs.h> #include <scheme-pri...
#include "atk/toolkit.h" #include "atkui/framework.h" #include "atkui/skeleton_drawer.h" #include <algorithm> #include <string> using namespace glm; using namespace atk; using namespace atkui; class AZombieArms : public atkui::Framework { public: AZombieArms() : atkui::Framework(atkui::Perspective) {} virtual ~...
#include "Frustum.hpp" Frustum::Frustum(glm::mat4 m) { m = glm::transpose(m); m_planes[Left] = m[3] + m[0]; m_planes[Right] = m[3] - m[0]; m_planes[Bottom] = m[3] + m[1]; m_planes[Top] = m[3] - m[1]; m_planes[Near] = m[3] + m[2]; m_planes[Far] = m[3] - m[2]; glm::vec3 crosses[Combinations] = { glm::cross(gl...
/* Copyright (C) 1996-1997 Id Software, Inc. 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 th...
#include "render.h" #include "../features/features.h" #include "../core/interfaces.h" void render::setup(IDirect3DDevice9* pDevice) { ImGui::CreateContext(); ImGui_ImplWin32_Init(input::m_hwnd); ImGui_ImplDX9_Init(g_direct_device); m_draw_list = std::make_shared<ImDrawList>(ImGui::GetDrawListSharedData()); m_da...
 #include "../headers/Tile.h" #include "../headers/Board.h" #include <vector> #include <cmath> /** * @brief TileTypeToString * * Convert TileType to string * * @param tile - the TileType you want converted * @return The string version of given TileType */ std::string TileTypeToString(TileType tile){ int ty...
/* This is remake of the wonderful little thingy made by <NAME>. See: https://hackaday.com/2018/08/21/an-led-you-can-blow-out-with-no-added-sensor/ https://github.com/paulhdietz/LEDSensors/blob/master/_07_BlowOutLED/_07_BlowOutLED.ino From the hackaday article: "Turning the LED on warms it up and blowing on it cools ...
/* * Copyright 2016 <NAME> * * This file is part of Squirrel. * * Licensed under the Academic Free License 3.0 (the "License"). * You may not use this file except in compliance with the License. * You should have received a copy of the License along with Squirrel. * If not, see <https://opensource.org/licenses/...
// C++ program to insert, delete and search a node in AVL tree #include<bits/stdc++.h> using namespace std; // AVL tree node class Node { public: int key; Node *left; Node *right; int height; }; // function to get maximum of two integers int max(int a, int b) { return (a > b)? a : b; } // ...
// // implementation of class Fl_OpenGL_Display_Device for the Fast Light Tool Kit (FLTK). // // Copyright 2010-2017 by <NAME> and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or...
#include <gtest/gtest.h> #define TESTING #include "soln.c" // http://floating-point-gui.de/errors/comparison/ #include <stdlib.h> #include <float.h> #include <math.h> bool nearlyEqual(float a, float b, float epsilon) { float absA = fabsf(a); float absB = fabsf(b); float diff = fabsf(a - b); if (a ...
#include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define MC(n,m) memcpy((n),(m),sizeof(n)) #define F first #define S second #define MP make_pair #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()...
/** * Source file for the Display class. * This class is used to display images * from the game world. * Much of it has been refactored from * Prof. <NAME>'s * ping project which can be found at * http://www.ccs.neu.edu/home/kenb/17/spr/3520/sample/ping4/ * The player and enemy sprite images com...
// Copyright (c) 2019 - 2021, <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 conditio...
#include <ros/ros.h> #include <octomap/octomap.h> #include <octomap_msgs/conversions.h> #include <evaluation/start.h> #include <tf/transform_listener.h> #include <tf/transform_datatypes.h> #define INTERVAL 0.1 //init resolution class evaluation_octomap { public: evaluation_octomap(); ~evaluation_octomap(); private...
#include <dataLoader/dataloader_scannet.h> //#include "dataset_loader.h" #include <fstream> #include <iomanip> //#include "../ORUtils/Logging.h" using namespace PSLAM; bool isFileExist(const std::string& filename) { std::ifstream file_tmp(filename); if (!file_tmp.is_open()) { return false; } fi...
/* Checktestdata -- syntactically check testdata according to a specified grammar. For detailed information, see libchecktestdata. It's licensed under the 2-clause BSD license, see the file COPYING. */ #include <cstdlib> #include <iostream> #include <fstream> #include <getopt.h> #include "libchecktestdata....
#include "util.hpp" #include <Eigen/Geometry> #include <vector> #include <map> #include <fstream> #include <float.h> #include <cvx/util/math/rng.hpp> #include <cvx/util/geometry/kdtree.hpp> using namespace Eigen ; using namespace std ; using namespace cvx::util ; //////////////////////////////////////////////////...
#include "pch.h" #include "QuestHelper.h" #include "../[Lib]__EngineUI/Sources/BasicTextBox.h" #include "d3dfont.h" #include "GLQuestMan.h" #include "GLQuest.h" #include "GLQuestPlay.h" #include "GLGaeaClient.h" #include "GLItemMan.h" #include "UITextControl.h" #include "GameTextControl.h" #include "GLCrowData.h" #incl...
/* * Copyright 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 in...
/** * DeepDetect * Copyright (c) 2018 Jolibrain * Author: <NAME> * * This file is part of deepdetect. * * deepdetect 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 3 of the Lice...
#include "hedg/framework.h" struct vwap_strategy : public hedg::Base_Strategy { vwap_strategy() {} vwap_strategy* clone() { return new vwap_strategy(); } //parameters to be set only at the beginning of the strategy void init() { market_id = get_market_id(); spdlog::info("starting vwap strategy on " + mar...
#include <iostream> #include <cassert> #include <cmath> #include <tclap/CmdLine.h> #include <fitsio.h> #define fits_check(x) (x); if (status) { fits_report_error(stderr, status); exit(status); } #define fits_checkp(x) (x); if (*status) { fits_report_error(stderr, *status); exit(*status); } using namespace std; cons...
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 re...
#include "SDK.h" Menu::Variables Menu::Get; using CreateInterface_Fn = void* (__cdecl*)(const char*, int*); void* Interfaces::GetInterface(const char* ModuleName, const char* InterfaceName) { CreateInterface_Fn CreateInterface = (CreateInterface_Fn)GetProcAddress(GetModuleHandle(ModuleName), "CreateInterface"); ass...
/* Copyright (c) 2011-2014, <NAME> - IntRoLab - Universite de Sherbrooke 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,...
#include "../interface/JERReader.h" #include "TMath.h" #include "iostream" #include "fstream" JERReader::JERReader(TString sfPath, TString resPath) { // first load the sf file std::ifstream fSF; fSF.open(sfPath.Data()); float eta0=0, eta1=1, sfcent=1, sflo=1, sfhi=1; TString header = ""; while (!header.EndsWi...
// // 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 (c) 2020, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception. * *****************************************************************************/ #include "sct_assert.h" #include ...
#include <task_desc.h> #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/sinks/basic_file_sink.h> #include <spdlog/fmt/ostr.h> #include <http_utils/http_client.h> using namespace spiritsaway::http_mongo::task_desc; using namespace spiritsaway; namespace beast = boost::beast; // from <boost/beast.hp...
#include "lab_m1/lab1/lab1.h" // ON PRESSING C YOU CHANGE OBJECT. #include <vector> #include <iostream> #define GRAVITATIONAL_ACC 9.8 #define INITIAL_SPEED 10 using namespace std; using namespace m1; struct element { string name; float x, y, z; }; float rValue; int pos = 0; vector<element> options; bool isB...
#include "CXfb.h" // #include "mutex.h" #include "utility/minmax.h" #include <cstdlib> #include <cstring> #include "utility/misc.h" #define GRAPHICS Nspire::CXfb #define LCD_CONTROLLER 0xC0000000 volatile uint32_t *lcd_base = (uint32_t *) (LCD_CONTROLLER + 0x10); volatile uint32_t *lcd_ris = (uint32_t *) (LCD_CONTROL...
#include "muzaktracker.h" #include "instrument_editor.h" #include "instrument_list.h" #include "keyboard.h" #include "pattern_queue_editor.h" #include "pattern_view.h" #include "mtlib/config.h" #include "mtlib/project.h" #include "digg/action.h" #include "digg/event_processor.h" #include "digg/file_dialog.h" #include...
/* =========== */ /* Libraries */ /* =========== */ /* System Libraries */ #include <iostream> #include <string> #include <chrono> //#include <dirent.h> //#include <system_error> /* Eigen Libraries */ #include <eigen3/Eigen/Core> #include <eigen3/Eigen/Dense> /* OpenCV Libraries */ //#include <opencv2/core/core.hpp...
#include "RcppArmadillo.h" // [[Rcpp::depends(RcppArmadillo)]] #include <cmath> using namespace std; int sgn(double x) { if (x > 0) { return 1; } else if (x == 0) { return 0; } else { return -1; } } //' stagewise lasso //' //' @param X predictor matrix ...
// 704 / 1600 (could be wrong because of eof) # include "core.h" # include <map> # include <queue> # include <iostream> std :: map <char, int> mp; std :: map <char, std :: string > code; std :: priority_queue < std :: pair <int, int>, std :: vector< std :: pair <int, int> >, std :: greater < std :: pair <int, int> >...
// Copyright (C) 2020 <NAME> // All rights reserved. // // See LICENSE for terms of usage. // // Author: <NAME> (<EMAIL>) // // Tests unary and binary operators acing on arrays and views. #include "ndarray/nd_array.hpp" #include <iostream> #include "gtest/gtest.h" using namespace nd; TEST(NDArrayTest, Concepts) { ...
// This is the main file that generates the animation based on the input motion plan and mesh // The executable created is called bbw, which can be run after compiling the project. #include <igl/boundary_conditions.h> #include <igl/readMESH.h> #include <igl/opengl/glfw/Viewer.h> #include <igl/bbw.h> #include <igl/norm...
#include "src/process/ProcessManager.h" #include <time.h> #include "src/config/ConfigInterface.h" #include "src/process/processor/CountProcessor.h" #include "src/process/processor/LatencyProcessor.h" #include "src/process/processor/PerformanceProcessor.h" #include "src/process/processor/QueueProcessor.h" #include "sr...
// Copyright (c) 2020, The Monero Project // 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 // con...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <utility> #include <queue> using namespace std; vector<string> G; int M, N; bool done[51][51]; const int di[] = { -1, 0, 1, 0 }; const int d...
/************************************************************************************************** * INCLUDES *************************************************************************************************/ #include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include <math.h> #include <tuple> #include <v...
#include <chrono> #include <iostream> #include <string> #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace cv; using namespace std; typedef chrono::high_resolution_clock clock_; typedef chrono::duration<double, ratio<1>> second_; bool...
#define _USE_MATH_DEFINES #include<cmath> #include <frame/scene/object/builtin_objects.hpp> using namespace LE; sphere_t::sphere_t(glm::vec3 const& center, float radius, size_t detalisation) : center_(center), radius_(radius), detalisation_(detalisation) {} void sphere_t::set_shader_prog(shader_prog_ptr_t const & ...
/* * VORTRAC * Vortex Structure Position and Intensity from Doppler Radar * * Created by <NAME> on 6/17/05. * Copyright 2005 University Corporation for Atmospheric Research. * All rights reserved. * */ #include <QApplication> #include <QtCore> #include <QtXml> #include <iostream> #include <sys/resource.h...
/* * Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free S...
#include <string.h> #include <stdlib.h> #include <sstream> #include <string> #include "core/general.h" #include "core/error.h" #include "core/package/load.h" using namespace ink; using namespace std; inline void InkWarn_Unknown_Argument(Ink_InterpreteEngine *engine, const char *name) { InkErro_doPrintWarning(engine,...
/* * FILE: rdt_sender.cc * DESCRIPTION: Reliable data transfer sender. * NOTE: This implementation assumes there is no packet loss, corruption, or * reordering. You will need to enhance it to deal with all these * situations. In this implementation, the packet format is laid out as * the fo...
#include <iostream> #include <Eigen/Dense> #include <unsupported/Eigen/NonLinearOptimization> #include <unsupported/Eigen/NumericalDiff> /***********************************************************************************************/ // Generic functor // See http://eigen.tuxfamily.org/index.php?title=Functors // C...
/* * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * * 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 t...
// $Header: /nfs/slac/g/glast/ground/cvs/calibGenCAL/src/Optical/genMuonMPD.cxx,v 1.4 2008/05/19 17:37:28 fewtrell Exp $ /** @file Gen MevPerDAC calibrations from Muon event files using Cal Digi Hodoscope for track & hit information @author <NAME> */ // LOCAL INCLUDES #include "src/lib/Hists/MPDHists.h" #incl...
/* CODEWARS https://www.codewars.com/kata/56e3cd1d93c3d940e50006a4 "How Green Is My Valley?" * Input : an array of integers. * Output : this array, but sorted in such a way that there are two wings: * the left wing with numbers decreasing, * the right wing with numbers increasing. * the two wings ha...
#include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <iostream> #include <string> #include <strings.h> // for bzero #include <unistd.h> // for read and write #include <cstdlib> #include <cstdio> #include <vector> #include <cstring> #include <map> #include <sstream> #include...
//misaka will carry me to master #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <functional> #include <numeric> #include <set> #include <map> #include <complex> #define ll long long #define lb long double ...
// based on RazerChromaSampleApplication, license not assumed but this file is pretty trivial, // what's left here is "the only way you could really do this" anyways #include "razer/chroma.h" #include <map> #include <vector> #ifdef _WIN64 #define CHROMASDKDLL TEXT("RzChromaSDK64.dll") #else #ifdef _WIN32 ...
// graph-tool -- a general graph modification and manipulation thingy // // Copyright (C) 2006-2018 <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 ...
/* Copyright (c) 2019, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
// Copyright 2010-2020, 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) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version. */ #include "ListQuestsActions.h" #include "Event.h" #include "Playerbots.h" bool ListQuestsAction::Execute(...
/* Copyright (C) 2017 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
/* * MIT License * * Copyright (c) 2018 <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, ...
// This file is part of slideio project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://slideio.com/license.html. #include "slideio/core/cvscene.hpp" #include <numeric> #include "cvtools.hpp" using namespace slideio; std::string CVSc...
/* * @Description: * @Version: * @Author: CaoWanPing * @Date: 2021-04-09 18:57:21 * @LastEditTime: 2021-04-09 19:11:16 */ /* Given a string s, return the longest palindromic substring in s.   Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output:...
#include <cstdio> #include <cstdlib> #include <time.h> #include <sys/time.h> #include "spline.h" // tk #include "interpolation.h" // alglib #define RUN_BENCH(DESCR,ROUTINE,OPS) \ { \ printf("%s loops=%.0e,", DESCR, (doub...
#include "sdl_ttf_multifont.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <iostream> #include <vector> namespace { /* This function is incorrect as it only supports BMP but that's all SDL_ttf * supports anyway. */ std::vector<std::uint16_t> DecodeUtf8(const std::string &utf8) { std::vecto...
#include "PianoLayer.h" #include <imgui.h> static std::string A1_2 = "Piano.ff.C2"; // 1. static std::string A2_2 = "Piano.ff.D2"; // 2. static std::string A3_2 = "Piano.ff.E2"; // 3. static std::string A4_2 = "Piano.ff.F2"; // 4. static std::string A5_2 = "Piano.ff.G2"; // 5. static std::string A6_2 = "Piano.ff.A2"; ...
/******************************************************************************* ** Copyright <NAME> 2014 ** Interface to Voro++ *******************************************************************************/ #include "stdlib.h" #include "math.h" #include "filtering/voro_iface.h" #include "filtering/voro++/src/vo...
/* PROBLEM: The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property. Let d1 be the 1st digit, d2 be the 2nd digit, and so on. In this way, we note the following: d2d3d4=4...
#include "vfixnotebookdialog.h" #include <QtWidgets> #include "vconfigmanager.h" #include "vlineedit.h" #include "vnotebook.h" #include "utils/vutils.h" extern VConfigManager *g_config; VFixNotebookDialog::VFixNotebookDialog(const VNotebook *p_notebook, const QVector<VNotebook...
#include <stdio.h> #include <stdlib.h> #include <X11/X.h> #include <X11/Xlib.h> #include <GL/gl.h> #include <GL/glx.h> #include <GL/glu.h> #include <vector> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> Display *dpy; Window root; GLint att[] = { GLX_...
/* * * hdf5_funcs.hpp * Special functions for reading/writing to HDF5 * */ #pragma once #include "dist/matrix.hpp" #include "robin_hood.h" #include <highfive/H5File.hpp> // HighFive does have support for reading/writing Eigen::Matrix // (and std::vector<Eigen::Matrix>) which is turned on with a compile // flag....
#include "stdafx.h" #include "RawOutput.h" #include <windows.h> #include <stdio.h> int CalcPitch(int width, unsigned char bytePerPixel, int byteAlignment) { if(byteAlignment < 1) return 0; int pitch = width * (int)bytePerPixel; if(0 != pitch % byteAlignment) pitch = (1+(pitch / byteAlignm...
#include "c_normalise.h" #include "r_defs.h" #include <xmmintrin.h> #include <emmintrin.h> /* This is a tradeoff heuristic used in the SSE2 implementation. Checking more often (->lower number) will increase total cost for scan, but will exit (slightly) earlier, if possible. Assuming Normalise is only used if necessar...
/* Copyright (c) 2007 <NAME>. 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 require...
////////////////////////////////////////////////////////////////////////////// /// /// Kernel - K e r C o n s t a n t s /// /// Definica zakladnich konstant /// A: <NAME> /// /////////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "KerConstants.h" ...
// BSD 2-Clause License, see github.com/ma16/rpio #include "Dma.h" #include "Alarm.h" #include "Dump.h" #include "Layout.h" #include "Options.h" #include "Watch.h" #include <Posix/base.h> // nanosleep() #include <Posix/Signal.h> #include <Rpi/Timer.h> #include <iostream> #include <signal.h> // SIGINT struct Contro...
//---------------------------------------------------------------------------- // // License: See top level LICENSE.txt file. // // Author: <NAME> // // Description: Storage class for observations. //---------------------------------------------------------------------------- #include <iostream> #include <iomanip> #...
#include <ros/ros.h> #include <std_msgs/Empty.h> #include <std_srvs/Empty.h> #include <geometry_msgs/Twist.h> #include <gazebo_msgs/GetModelState.h> #include <gazebo_msgs/ModelState.h> #include <math.h> #include <geometry_msgs/PoseStamped.h> #include<stdio.h> #include <termios.h> #include <unistd.h> const char key_8 ...
// This file contains the linked implementation of class // UnsortedType. #include <iostream> #include <string> #include <cstdlib> #include "unsorted.h" using namespace std; struct NodeType { ItemType info; NodeType* next; }; UnsortedType::UnsortedType() // Class constructor { length = 0;...
#include "shim.h" #include<map> #include "logging.h" #include <string> #include <ctime> #include <stdio.h> #include <cstdlib> #include <math.h> #include <random> #include<openssl> #define OK "OK" #define NOT_FOUND "Bid not found" #define MAX_VALUE_SIZE 1024 int public_key = "-----<KEY>"; int private_key = "-----<KE...
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <cstdio> #include <iostream> #include <cstring> #include <unistd.h> #include <string> #include <netdb.h> #include <time.h> #include <sstream> #include <poll.h> #include <vector> #include <map> #include <fcntl.h> constexpr int BUFF_SIZE = 1...
#include <string> #include <system.hh> #include <urbite.hh> #include <process.hh> #include <strutils.hh> #include <session.hh> using namespace makemore; using namespace std; extern "C" void mainmore(Process *); Process *do_shell( Process *shell, bool use_input, const strvec *argsp ) { IO *out = shell->otab[0]...
/* Copyright (c) 2015, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license */ #include <math.h> #include <ctype.h> #include "parse_example.h" #include "hash.h" #include "cache.h" #include "unique_sort.h" using namespace std; ...
#include "Game.h" #include <iostream> #include <ctime> #include <cstdlib> #include "raylib.h" #include "enumUtils.h" // define a function that will initialize our static variable in game collisionMap setupCollisionChecks() { collisionMap map; map[(collisionPair)(shapeType::CIRCLE | shapeType::CIRCLE)] = checkCir...
#include <algorithm> #include <functional> #include <cctype> #include <locale> #include <new> #include <regex> #include <iomanip> #include <sstream> #include <iostream> #include <string> #include <cstring> // Needed for memset #include <netinet/in.h> #include <unistd.h> //write #include <stdio.h> #include <std...
#include <ios> #include <iostream> #include <fstream> #include <string> #if _WIN32 || _WIN64 # include <windows.h> # include <psapi.h> # elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) # include <unistd.h> # include <sys/resource.h> # if defined(__APPLE__) && ...
// #define USE_FILE_IO #define NDEBUG #define NAME "split" #include <cassert> #include <cstdio> #include <cstring> #include <climits> #include <set> #include <vector> #include <algorithm> using namespace std; #define WMAX 30 #define NMAX 900 #define EMAX 2000 struct Edge { Edge(int _u, int _v, int _c, int _w)...
#include "stdafx.h" #include "problem.hpp" #include <fstream> #include <vector> #include <array> #include <map> namespace { using reg_t = std::uintmax_t; using computer_t = std::array<reg_t, 6>; using operation_t = void(*)(computer_t& computer, std::uintmax_t a, std::uintmax_t b, std::uintmax_t c); struct inst...
/* * Copyright 2021, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. */ #include "Atom.h" #include <unordered_set> #include <unordered_map> #include <memory> #include <string> extern "C" { #include <X11/Xlib.h> #include <X11/Xatom.h> } struct AtomEntry { Atom id = -1; std::sha...
#include "parse.h" #include "util.h" #include <iostream> using namespace std; vector<string> tokenize(const string &in, const string &kar) { string::const_iterator cp = in.begin(); vector<string> oot; while(cp != in.end()) { while(cp != in.end() && count(kar.begin(), kar.end(), *cp)) cp++; if(c...
// October/2019, Auterion AG, <NAME>, <EMAIL> #include "thermal_soaring/thermal_soaring.h" using namespace Eigen; using namespace std; //Constructor ThermalSoaring::ThermalSoaring(const ros::NodeHandle& nh, const ros::NodeHandle& nh_private): nh_(nh), nh_private_(nh_private), thermal_estimator_(), thermal_de...