text stringlengths 3.08k 22k |
|---|
/*****************************************************************************
* | File : EPD_2in9bc.c
* | Author : <NAME>
* | Function : 2.9inch e-paper b&c
* | Info :
*----------------
* | This version: V3.0
* | Date : 2019-06-12
* | Info :
* ------------------------------... |
// Class for controlling capacitive touch (center LED bar) dimmer (MOES, Geeni) and other Tuya dimmers
#include "Tuya.h"
#include <TimeLib.h>
#include <UdpTime.h>
#include "eeMem.h"
// Only uncomment one
//#define GEENI // https://mygeeni.com/products/tap-dim-smart-wi-fi-dimmer-switch-white (Mine has no blue and gre... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 <NAME>, Paris, France.
// Copyright (c) 2009-2012 <NAME>, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL),... |
/***************************************************************************
* File Name: PWFusion_TMD3700.cpp
* Processor/Platform: Arduino Uno R3 (tested)
* Development Environment: Arduino 1.8.3
*
* Designed for use with with Playing With Fusion TMD3700 RGB Color, Proximity
* and Ambient Light Sensor Breakout... |
#include "src/http2/parser.h"
#include "src/utils/testutil.h"
class ParserTest {};
// ping, settings, headers, data, rst_stream
TEST(ParserTest, FramePing) {
uint8_t buff[] = {0x00, 0x00, 0x08, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
http2_fram... |
// Copyright (c) 2022 amish
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Pu... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
#include "Graphics/Renderer.h"
#include <GL/GLU.h>
#include "Core/Benchine.h"
#include "Debugging/Logger.hpp"
#include "Graphics/GLTextureWrapper.h"
#include "ImGui/imgui_impl_opengl2.h"
#include "ImGui/imgui_impl_sdl.h"
#include "ImNodes/imnodes.h"
Renderer::~Renderer()
{
Cleanup();
}
void Renderer::Initialize... |
#include "Sim.h"
#include "Concentration.h"
#include "Solution.h"
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <time.h>
Sim::Sim(int gridWidth, int gridHeight)
{
GRID_WIDTH = gridWidth;
GRID_HEIGHT = gridHeight;
GRID_LENGTH = gridWidth * gridHeight;
SCREEN_WIDTH = 1024 + 512;
SCREEN_HEIGH... |
/*
* test_main.cpp
* cufflinks
*
* Created by <NAME> on 3/23/10.
* Copyright 2010 <NAME>. All rights reserved.
*
*/
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppun... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using namespace std;
usi... |
/*
Copyright (C) 2016 <NAME>. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
This file is part of Kung Foo Barracuda.
Kung Foo Barracuda 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... |
#include "ut.hpp"
namespace pad {
struct u8 : med::value<uint8_t> {};
struct u16 : med::value<uint16_t> {};
struct u24 : med::value<med::bytes<3>> {};
struct u32 : med::value<uint32_t> {};
template <class T>
using CASE = M< med::value<med::fixed<T::id, uint8_t>>, T>;
struct flag : med::sequence<
med::placeholder:... |
#include <qtree/vector_qtree.hpp>
#include <qtree/naive_qtree.hpp>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <timer.hpp>
using namespace std;
// Performance evaluation for a QuadTree implementation
//
template <class QTreeType>
void performance_qtree(const std::string & name, Q... |
/* @flow */
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2015-2017 The PIVX Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "kernel.h"
#include <primitives/transaction.h>
#include <... |
#include <iostream>
#include <memory>
#include <vector>
#include <string>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <aff3ct.hpp>
#include "Module/Py_Module/Py_Module.hpp"
using namespace aff3ct;
using namespace aff3ct::module;
namespace py = pybind11;
using namespace py::literals;
namespace... |
/**
* A simple kmeans algorithm implementation. The only input is a filename 's',
* where the data points are stored. An example input file is shown below. Note
* that there are no blank lines (can be easily changed to make more flexible).
*
* number of dimensions
* point 1 id
* point 1 dimension 1
* point 1... |
#include <algorithm>
#include <stdlib.h>
#include <unistd.h>
#include "pfb.h"
#include "utility.h"
// ----------------------------------------------------------------------------
// Constructor
// ----------------------------------------------------------------------------
PFB::PFB( unsigned int uNumThreads, unsig... |
/*
The MIT License (MIT)
Copyright (c) 2016 British Broadcasting Corporation.
This software is provided by Lancaster University by arrangement with the BBC.
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... |
/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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.... |
#include "Screen.h"
#include <ButtonInfoBar.h>
#include <StatusBar.h>
#include <Button.h>
#include <WidgetMosaic.h>
#include <string>
#include <time.h>
#include <sys/time.h>
#include <AppScreen.h>
#include <UpDownButton.h>
#include <WiFi.h>
#include <limits.h>
#include "mqtt.h"
#include "config.h"
#include "buffer.h"... |
#include <memory>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include... |
#include "Camera.hpp"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <SDL2/SDL.h>
#include <glm/gtc/constants.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include "Shay/PlainNode.hpp"
#include "Shay/Shay.hpp"
#include "Stonk/Engine.hpp"
#include "Stonk/OpenGl.hpp"
using glm::vec2;
using ... |
/* Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved */
#include "SigmaGenerator.h"
void BasicSigmaGenerator::GenerateSigmaByRegression(vector<float> &prediction, vector<int> &test_flow, vector<float> &sigma_estimate){
// use latent variable to predict sigma by predicted signal
for (unsigned ... |
#include <string>
#include <pthread.h>
#include <boost/thread.hpp>
#include <boost/thread/mutex.hpp>
// #include <unitree_legged_msgs/LowCmd.h>
// #include <unitree_legged_msgs/LowState.h>
#include "unitree_legged_msgs/msg/low_cmd.hpp"
#include "unitree_legged_msgs/msg/low_state.hpp"
// #include "convert.h"
#include... |
/*
* VGMTrans (c) 2002-2019
* Licensed under the zlib license,
* refer to the included LICENSE.txt file
*/
#include <fstream>
#include "Root.h"
#include "VGMColl.h"
#include "VGMFile.h"
#include "Format.h"
#include "Scanner.h"
#include "components/FileLoader.h"
#include "loaders/LoaderManager.h"
VGMRoot *pRoot;... |
/************************************************************************
Copyright 2021, eBay, 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
https://www.apache.org/licenses/LICENSE-2.0
... |
//
// Created by akhvorov on 01.07.18.
//
#include <iostream>
#include <algorithm>
#include <numeric>
#include "stat_dict_p.h"
#include "int_dict_p.h"
#include "fast_random.h"
#include "vector_hash.h"
StatDictImpl::StatDictImpl(double min_probability) {
dict_ = std::shared_ptr<IntDict>(new IntDictImpl()); // Sani... |
#include <cmath>
#include <algorithm>
#include "BuildCaptions.h"
namespace {
// Debugging method
void printLine(std::vector<TextWord *> line, const char *header) {
printf("%s:", header);
for (size_t i = 0; i < line.size(); ++i) {
printf("%s ", line.at(i)->getText()->getCString());
}
printf("\n");
}
// G... |
#include <cstdio>
#include <cstring>
#include <vector>
#include <map>
using namespace std;
#define IPS_ADDRESS_EXTERN 0x01
#define IPS_ADDRESS_GLOBAL 0x02
/*
* TODO: Change this program to create RLE expressions.
* It now can _read_ them, but..
*/
namespace
{
vector<unsigned char> ROM;
vector<bool> Touche... |
/*
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
*
* 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... |
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <sstream>
#include <cstring>
#include "Texture.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
bool CheckWin(glm::mat4 *side, glm::mat4 *shapeMVPS)
{
bool winCases[8] = {
side[0] == shapeMVPS[0] && side[1] =... |
//===- OptimizerDriver.cpp - Allow BugPoint to run passes safely ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/****************************************************************************
* ==> Rasterizer ----------------------------------------------------------*
****************************************************************************
* Description : This module provides a simple rasterizer *
* Devel... |
//------------------------------------------------------------------------------
//
// Based on https://www.boost.org/doc/libs/develop/libs/beast/example/websocket/server/async/websocket_server_async.cpp
//
//------------------------------------------------------------------------------
#include <boost/beast/core.hpp>... |
/* mbed UniGraphic library - Device specific class
* Copyright (c) 2015 <NAME>
* Released under the MIT License: http://mbed.org/license/mit
*/
#include "Protocols.h"
#include "ILI9341V.h"
#include <chrono>
using namespace std::chrono;
// The number of pixels (320-240) to shif start of page in TFT frame memory ... |
#include<opencv2/opencv.hpp>
#include<vector>
// Class to represent a lane on the road
class Lane {
private:
const int NUM_WINDOWS = 10;
const int WINDOW_MARGIN = 100;
const int MIN_NUMBER_PIXELS = 200;
std::vector<cv::Point> sliding_window(cv::Mat& image, std::vector<cv::Point> nonzero, cv::Point current_base) ... |
/**************************************************************************
* File: xmlmap.c Part of World of Pain *
* Usage: Generate XML MMP format map of the world for mappers *
* *
* All rights re... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
bankp.cpp
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/bank... |
#include <System.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include "Camera.h"
#include "Converter.h"
#include "inuitive.hpp"
#include "common.h"
#include <PangolinViewer.h>
#include <opencv2/opencv.hpp>
//-----------------
#include <fcntl.h>
#include <stdio.h>
#include <string.h>... |
/**
* Copyright (c) 2013 <NAME>. 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
* to use, copy, mod... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight 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 Found... |
// "Christmas game" ..
// When switched on, a random XYZ-vector will be calculated
// Jingle Bells start playing the intro in a loop
// Volume = 1/distance between Accel reading and XYZ vector (above)
// When within range, the device plays the full song
// Touch area does: ?
// LED does: ?
// TODO:
// * ... |
// ================================================================================================
// -*- C++ -*-
// File: cxx_demangle.cpp
// Author: <NAME>
// Created on: 11/11/15
// Brief: MSFT Visual C++ name demangling. Uses a hand-rolled implementation for Unix-based systems.
//
// Source code licensed under th... |
//
// Created by <NAME> on 2/17/19.
//
#include <nlohmann/json.hpp>
// for convenience
using json = nlohmann::json;
#include "tiltBridge.h"
#include "wifi_setup.h"
#include "http_server.h"
#include "tilt/tiltScanner.h"
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include... |
// (c) <NAME> e-mail : <EMAIL>
#include "stdafx.h"
#include "FileSystem/ConfigurationFile_v.h"
#include "Graphics/2D/Image_.h"
#include "GUI/Cursor_.h"
#include "GUI/Panels/PanelMap.h"
#include "Scene/SceneC.h"
#include "Scene/Cameras/Camera_.h"
#include "Scene/Terrain/Level_.h"
#ifdef WIN32
#include <d3d9types.h>
#en... |
// @file pre-buffer.cpp - Example of Proxy Re-Encryption on a packed vector.
// @author TPOC: <EMAIL>
//
// @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT))
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that... |
/*
ISC License (ISC)
Copyright 2018-2019 <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 ... |
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <chrono>
#include "../include/munchar.hpp"
#include "../include/munchar_tokens.hpp"
using namespace std;
using namespace Munchar;
using namespace Munchar::Tokens;
constexpr auto import_kwd = "@import"_lit ^ !id_body;
constexpr aut... |
#include "scenes/Dialogue.h"
extern Audio audio;
extern SceneManager scenes;
extern ResourceManager resources;
extern SDL_Renderer *renderer;
extern SDL_Window *window;
Dialogue::Dialogue(std::string filename, int pos) {
audio.stopMusic();
audio.stopSound();
script = Script(filename, pos);
processScript();
delta... |
//
// ItemTorus.cpp
// OpenGL-Cpp-Mac
//
// Created by <NAME> on 21/02/2018.
// Copyright © 2018 AivanF. All rights reserved.
//
/*
AivanF. License:
This code is provided 'as-is', without any express or implied warranty.
You may not hold the author liable.
Permission is granted to anyone to use this softwa... |
/****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2012-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... |
#include "stdafx.h"
#include "SyoboiCalUtil.h"
#include <winhttp.h>
#include <wincrypt.h>
#include "../../Common/CommonDef.h"
#include "../../Common/PathUtil.h"
#include "../../Common/StringUtil.h"
#include "../../Common/TimeUtil.h"
#include "../../Common/ParseTextInstances.h"
#define SYOBOI_UP_URL L"ht... |
/*
* Copyright 2009-2011 <NAME>
* <EMAIL>
* http://www.maartenbaert.be/
*
* This file is part of ExtremePhysics.
*
* ExtremePhysics 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 vers... |
#include<bits/stdc++.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
template<typename A, typena... |
//
// Created by kellerberrin on 10/5/20.
//
#include "kgl_variant_factory_vcf_parse_info.h"
#include "kel_utility.h"
#include <string_view>
namespace kgl = kellerberrin::genome;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Efficient par... |
/* Portions copyright (c) 2009-2018 Stanford University and Simbios.
* Contributors: <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 l... |
//===- unittests/core/test_indirect_string.cpp ----------------------------===//
//* _ _ _ _ _ _ *
//* (_)_ __ __| (_)_ __ ___ ___| |_ ___| |_ _ __(_)_ __ __ _ *
//* | | '_ \ / _` | | '__/ _ \/ __| __| / __| __| '__| | '_ \ / _` | *
//* | | | | | (_| | | | | ... |
//
// Created by <NAME> on 21/12/2019.
//
#include "Dynamic_Graph.h"
void Dynamic_Graph::Delete_Node(Graph_Node *node) {
if(node == NULL){
return;
}
// if has incoming/outgoing edges - do nothing
if(node->has_incoming_outgoing_edges()){
return;
}
this->_num_of_nodes_in_grap... |
/*
* #%L
* %%
* Copyright (C) 2020 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
//<NAME>
#include "parser.cpp"
#include "memory.cpp"
#include "main.cpp"
#include <iostream>
#include <cstring>
#define TEST_FILE "test.txt" // used for debugging
#define NUM_PAGES 32 // number of pages in memory
#define PAGE_CAPACITY 128 // number of addresses per page
#define STARTING_ADDRESS 128 // where progra... |
// $Header: /nfs/slac/g/glast/ground/cvs/CalXtalResponse/src/test/TestCfg.cxx,v 1.2 2008/02/27 20:22:09 fewtrell Exp $
/** @file
@author Z.Fewtrell
*/
// LOCAL
#include "TestCfg.h"
#include "test_util.h"
#include "CalXtalResponse/ICalCalibSvc.h"
// GLAST
// EXTLIB
#include "CLHEP/Random/RandFlat.h"
// STD
#inc... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... |
#include "bluegin/resourcemanager.h"
#include "flx/flxG.h"
#include "Hall.h"
#include "Player.h"
#include "Sequence.h"
using namespace ci;
using namespace bluegin;
using namespace flx;
extern FlxGlobal FlxG;
static const char* ImgWall1Left = "wall1-left";
static const char* ImgWall2Left = "wall2-left";
static const... |
#include "CVC_cluster.h"
bool compare_cluster(std::pair<int,int> a,std::pair<int,int> b){
return a.second>b.second;
}//upper sort
float Polar_angle_cal(float x, float y){
float temp_tangle = 0;
if(x== 0 && y ==0){
temp_tangle = 0;
}else if(y>=0){
temp_tangle = (float)atan2(y,x);
}else if(y<0){
... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 <NAME> <<EMAIL>>
* For conditions of distribution and use, see LICENSE file
*/
#include <ananas/util/algorithm.h>
#include <machine/param.h>
#include <ananas/types.h>
#include "kernel/device.h"
#include "kernel/irq.h"
#include "kernel/kdb.h"
#include ... |
/*
MIT License
Copyright (c) 2011 <NAME>
This file is part of gmath.
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, mo... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modify
it under... |
/*
Audio File Library
Copyright (C) 2000, Silicon Graphics, Inc.
Copyright (C) 2010, <NAME> <<EMAIL>>
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, ... |
#include "Address.h"
#include "Buffer.h"
#include "Log.h"
#include "TcpServer.h"
#include "Scheduler.h"
#include <algorithm>
#include <vector>
#include <assert.h>
#include <string.h>
#include <string>
#include <stdio.h>
struct Node;
typedef Node Column;
struct Node
{
Node* left;
Node* right;
Node* up;
... |
/*
***Pthreads Implementation***
Compile: g++ -std=c++11 -o code_pthreads code_pthreads.cpp -lpthread
Run: ./code_pthreads <Matrix Size> <No. of Threads>
*/
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cmath>
#include<ctime>
#include<chrono>
#include<pthread.h>
using ... |
#include "ecs/animation_system.h"
#include <iostream>
#include <thread>
#include "services.h"
#include "ecs/transform.h"
#include "ecs/animator.h"
#include "ecs/skinned_renderable.h"
#include "io/mdl.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp>
AnimationSystem::AnimationSystem(System... |
// *************************************************************************
// FILE NAME: p0.cpp *
// CREATED : 01/30/2002 *
// UPDATED : 02/25/2002 *
// *****... |
/*
* Copyright (c) 2012 The Native Client 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 <cstdio>
#include "snes9x.h"
#include "controls.h"
#include "blit.h"
#include "ppu.h"
#include "nacl.h"
struct GUIData {
uin... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using... |
/*
* Copyright (c) 2017-2019 [Ribose Inc](https://www.ribose.com).
* 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 not... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <queue>
#include <regex>
#include <string>
#include <tuple>
#include <vector>
// positive double roots
auto solve_quadratic_eq_pd(long a, long b, long c)
{
std::vector<double> roots;
if (a == 0) {
if (b != 0) {
... |
#include <iostream>
#include <common.hpp>
#include <fstream>
#include <sstream>
#define HIT_DIST 0.003f
#define CAMERA_FOV 1.0f
float dot_p(vec2 vector) { return dot(vector, vector); }
float dot_p(vec3 vector) { return dot(vector, vector); }
float dot_p(vec4 vector) { return dot(vector, vector); }
float map(vec3 ... |
/*
* 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 USE OF... |
/*
___ __ __ ___
| \ \ \ / / | __|
| |) | \ \/\/ / | _| a Waveforms-WebAPI server
|___/ \_/\_/___|_|_ version 0.1.0
|"""""| |"""""""""""""| https://github.com/alchemcat/Waveforms-WebAPI
_| |_| Web API |
"`-0-0-'"`-0-0-----0-0-'
Licensed under the MIT License <http://open... |
#include <stdio.h>
#include <string.h>
#include <iostream>
#include "snoptProblem.hpp"
using namespace std;
void toyusrf(int *Status, int *n, double x[],
int *needF, int *neF, double F[],
int *needG, int *neG, double G[],
char *cu, int *lencu,
int iu[], int *leniu,... |
#include "openglwindow.hpp"
#include <fmt/core.h>
#include <imgui.h>
#include <cppitertools/itertools.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "abcg.hpp"
void OpenGLWindow::initializeGL() {
// Clear window
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
// Create shader pro... |
//===--------- MachO_x86_64.cpp - Tests for JITLink MachO/x86-64 ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Copyright © 2019 <NAME>. All rights reserved.
* Contacts: <<EMAIL>>
*
* 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
*
* Unles... |
#include <vector>
/*
region_multibox.cc - A plugin for MUSIC -
a code to generate multi-scale initial conditions
for cosmological simulations
Copyright (C) 2015 <NAME>
*/
#include <iostream>
#include <cmath>
#include <cassert>
#include <fstream>
#include <sstream>
#include <cctype>
#include <algorithm>
#... |
/**
* Copyright (c) <NAME>, 2010-2012
* See LICENSE for license.
*/
#include <cassert>
#include <iostream>
#include <sstream>
// libircclient.h needs cstdlib, don't remove the inclusion
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <libircclient.h>
#include "server.h"
// #define DEBUG
#define... |
/*
* DynDSAlg.cpp
*
* Created on: Oct 15, 2014
* Author: aepasto
*/
#include "DynGraphUtils.h"
#include <stack>
#include <cmath>
#include <iostream>
#include "DynDSAlgAddRem.h"
DynDSAddRem::DynDSAddRem(const double epsilon) :
EPS_ERR(0.01), epsilon_original_(epsilon), epsilon_(
2 * epsilon + epsilon... |
#include "treemapgraphicsview.h"
#include <QTreeWidget>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QTimer>
#include <QDebug>
#include <algorithm>
#include <cmath>
// TreeMap
void TreeMap::Tessellate(QVector<qulonglong>& values, QRectF rect, QVector<QRectF>& rects) {
double total = 0;... |
/* image_stacking_plugin.cpp
* Stack two images
* 2014-01-08 : by <NAME>
*/
#include "v3d_message.h"
#include <vector>
#include "image_stacking_plugin.h"
#include "basic_surf_objs.h"
using namespace std;
Q_EXPORT_PLUGIN2(image_stacking, image_stacking);
void stack_pair(V3DPluginCallback2 &callback, QWidget *parent... |
/* Copyright (c) 2009-2010 Tyrell Corporation & <NAME>.
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mozilla.org/MPL/
Software distribu... |
#include "other.h"
#include <string>
#include <codecvt>
#include <filesystem>
std::wstring char2wstring(const char* str)
{
//setup converter
typedef std::codecvt_utf8<wchar_t> convert_type;
std::wstring_convert<convert_type,wchar_t> converter;
return converter.from_bytes(str);
}
// convert wstring t... |
//
// FEvaluate.cpp
// BChess
//
// Created by <NAME> on 12/3/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "ChessEvaluater.hpp"
#include "ChessMoveGenerator.hpp"
#include "ChessBoard.hpp"
#include "GameHistory.hpp"
#include "magicmoves.h"
#include <iostream>
bool ChessEvaluater::positionalAn... |
#include "Chunk.h"
#include "net/ServerConnection.h"
#include <world/block/BlockIds.h>
#include <world/chunk/Chunk.h>
#include <world/chunk/ChunkSlice.h>
#include <world/WorldSource.h>
#include <net/PacketTypes.h>
#include <net/EPChunk.h>
#include <util/LZ4.h>
#include <Logging.h>
#include <io/Format.h>
#include <mu... |
#include <unordered_map>
#include <queue>
#include <set>
#include <igl/readOBJ.h>
#define GRID_RESOLUTION 1000
#define ANGLE_THRES 5.0
typedef std::pair<int, std::pair<int, int> > VertexHash;
void ComputeSurfaceNormals(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F, Eigen::MatrixXd* pFN) {
*pFN = Eigen::MatrixX... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Utils.h"
#include "EditorViewportClient.h"
#if PLATFORM_WINDOWS
#include "WindowsHWrapper.h"
// Needed for showing balloon messages
#include "AllowWindowsPlatformTypes.h"
#include <ShellAPI.h>
#include "HideWindowsPlatformTypes.h"
#endif
DEFIN... |
/* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... |
//
// Created by <NAME> on 27/10/20.
//
#include "OSMeshMN.h"
#include <assert.h>
#include "utility.h"
//By the default the three ports values will be set as one single data size
OSMeshMN::OSMeshMN(id_t id, std::string name, Config stonne_cfg) : MultiplierNetwork(id, name) {
//Extracting the input parameters
... |
#include <functional>
#include <type_traits>
#include <gtest/gtest.h>
#include <entt/core/type_traits.hpp>
#include <entt/poly/poly.hpp>
struct Deduced
: entt::type_list<> {
template<typename Base>
struct type: Base {
void incr() {
entt::poly_call<0>(*this);
}
void set(... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.