text stringlengths 3.08k 22k |
|---|
#pragma once
#include "cvglCues.hpp"
MapOSC cue_nothing(cueArgs args);
MapOSC cue_black_silent(cueArgs args);
MapOSC cue_cam1_silent(cueArgs args);
MapOSC cue_cam1_silent(cueArgs args);
MapOSC cue_cam2_silent(cueArgs args);
MapOSC cue_black_click(cueArgs args);
MapOSC cue_cam1_click(cueArgs args);
MapOSC cue_wi... |
/***************************************************************************
Copyright (c) 2019, Xilinx, 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 reta... |
#include <asgl/Frame.hpp>
#include <asgl/ImageWidget.hpp>
#include <asgl/TextArea.hpp>
#include <asgl/TextButton.hpp>
#include <asgl/OptionsSlider.hpp>
#include <asgl/BookFrame.hpp>
#include <asgl/sfml/SfmlEngine.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/System/Sle... |
// character skills & gain tables
#include "Pch.h"
#include "GameCore.h"
#include "Skill.h"
//-----------------------------------------------------------------------------
struct StatGain
{
float value; // skill gain per 5 levels
int weight; // weight for level calculation
};
//-------------------------------------... |
/*
* This file is deemed to be ugly
* Consider refactor it in the future
* But not recently for it's not the main module
* <NAME> Feb 27, 2020
*/
#include "serialization.h"
#include <vector>
#include <map>
#include <utility>
#include <fstream>
#include <string>
#include "components.h"
#include <typeindex>
#include... |
/*
Implementation of Axydot using FBLAS host API.
It computes:
z = w - alpha*v
beta = z**T*u
The routines are invoked on FPGA. FPGA code must be generated using
the host-generator and the fblas_axpydot.json description file.
CPU computation is enabled by... |
#include "synthesis.h"
#include<Eigen/SparseQR>
#include "geo_calculator.h"
bool CMeshSynthesizer::synthesize()
{
// MAX ITER FOR THE GLOBAL LOOP
const int MAX_ITER = 50;
// PARAMETERS FOR SYNTHESIS
int verbose = 0;
int stepX = 0.0;
int stepW = 0.0;
int epsilon = 1.0;
int frequency = 0;
int max_newton_iter... |
#include "include/vcf_primitives.h"
#include <string>
#include <algorithm>
namespace {
using std::string;
using std::to_string;
using std::transform;
using std::invalid_argument;
using std::vector;
using std::size_t;
}
namespace vcf {
Position::Position(Chromosome chr, int pos) : chr(chr... |
/**
* state.cc
*
* Copyright 2020. All Rights Reserved.
*
* Created: April 23, 2020
* Authors: <NAME>
*/
#include "symbolic/state.h"
#include <algorithm> // std::lower_bound, std::sort
#include <cassert> // assert
#include "symbolic/pddl.h"
#include "symbolic/utils/unique_vector.h"
namespace {
using ::s... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: ZAIC_Viewer.cpp */
/* DATE: June 2nd, 2015 ... |
#include "pnml_parser.h"
#include "json.hpp"
#include "tinyxml2/tinyxml2.h"
#include <iostream>
using namespace tinyxml2;
using namespace symmetri;
// Function to print the
// index of an element
int getIndex(std::vector<std::string> v, const std::string &K) {
auto it = find(v.begin(), v.end(), K);
// If element ... |
/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
pclxlcmd.cpp
Abstract:
PCL-XL command definition
Environment:
Windows Whistler
Revision History:
08/23/99
Created it.
Note:
Please refer to PCL XL Feature Reference Protocol Class 2.0
--*/
... |
//
// item_set.cpp
// TameParse
//
// Created by <NAME> on 27/09/2011.
//
// Copyright (c) 2011-2012 <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 restri... |
//////////////////////////////////
//
// == A reuse distance based GPU cache model
// This file is part of a cache model for GPUs. The cache model is based on
// reuse distance theory extended to work with GPUs. The cache model primarly
// focusses on modelling NVIDIA's Fermi architecture.
//
// == More information on ... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
// Name: <NAME>
// File Name: NPDA.cpp
// Date: 20 November, 2019
// This is the source file for the header file "NPDA.h".
#include <iostream>
#include <iomanip>
#include "NPDA.h"
using namespace std;
NPDA::NPDA()
{
// Set the initial stack top symbol.
mainStack.push('z');
}
NPDA::~NPDA()
{
}
// This fun... |
#include <plot.h>
#define SHARK_CV_VERBOSE 1
#include <shark/Algorithms/KMeans.h>
#include <shark/Algorithms/NearestNeighbors/TreeNearestNeighbors.h>
#include <shark/Algorithms/Trainers/CSvmTrainer.h>
#include <shark/Algorithms/Trainers/LogisticRegression.h>
#include <shark/Data/Csv.h>
#include <shark/Data/Dataset.h>
... |
//===========================================================================//
// File: linmtrx.cc //
// Contents: Implementation details for the linear matrices //
//---------------------------------------------------------------------------//
// ... |
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <future>
#include <memory>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <o3d3xx_camera.h>
#include <o3d3xx_framegrabber.h>
#include <o3d3xx_image.h>
#include <o3d3xx_oem.h>
TEST(OEM, BasicFramegrabbing)
{
auto cam = std::make_... |
#include "extdll.h"
#include "enginecallback.h"
#include "util.h"
#include "cbase.h"
#include "entity_state.h"
#include "soundent.h"
#include "studio.h"
#include "bot.h"
#include "avdll.h"
#include "sadll.h"
#include "avrecord.h"
extern GETENTITYAPI other_GetEntityAPI;
extern enginefuncs_t g_engfuncs;
extern globalv... |
/*
*
* Copyright (C) 1993-2009, OFFIS
*
* This software and supporting documentation were developed by
*
* Kuratorium OFFIS e.V.
* Healthcare Information and Communication Systems
* Escherweg 2
* D-26121 Oldenburg, Germany
*
* THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRA... |
#include <iostream>
using namespace std;
#include <SDL2/SDL.h>
#include "sdlViewport.h"
#include "vec3.h"
#include "mesh.h"
#include "unit_shapes.h"
#ifdef __ANDROID__
#define DIR_CUR "/sdcard/"
#define DIR_SEP "/"
#else //UNIX
#define DIR_CUR ""
#define DIR_SEP "/"
#endif
//#define WIDTH 640
//#define HEIGHT 48... |
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
// Goal of... |
#include <SDL2/SDL_opengl.h>
#include "Draw3D.h"
#include "Solids.h"
#include "MultiFight3DWorld.h" // THE HEADER
void MultiFight3DWorld::fireProjectile( SomeWarrior3D * w ){
Projectile3D * p = new Projectile3D();
p->vel.set_mul( w->gun_rot, 10.0 );
//RigidBody *b = w->asRigidBody();
p->vel.add( w->v... |
//
//
//
#include "PulsePort.h"
PulsePort::PulsePort(const char* pName, int pPin, int pPulsesPerKWh, unsigned long pMinPulseLength, int pAverageOverMinutes, int pEepromAddress)
{
Name = pName;
gPin = pPin;
gMinPulseLength = pMinPulseLength;
gPulsesPerKWh = pPulsesPerKWh;
gAverageOverMinutes = pAverageOver... |
#include<cstdio>
#include<iomanip>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<cctype>
#include<algorithm>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<sstream>
#include<stack>
#include<list>
#include<iostream>
#include<assert.h>
/**Define file I/O **/
#define... |
/**
* @file Main
* @brief
* @author <NAME>
*/
#include <stdio.h>
#include <time.h>
#include <fstream>
#include <iterator>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <map>
#include <eigen3/Eigen/Dense>
#include <sqlite3.h>
#include "opencv2/core/core.hpp"
#include <ope... |
#include <memory>
#include <vector>
#include <optional>
#include <cassert>
// in dtr, every node has to keep track of its parent and children.
// will this become a problem?
// if we support nesting of call tree, maybe this will be harder.
// should we allow multiple eviction function to a single object?
// in this c... |
#include <limits>
#include "base.h"
#include "cords.h"
#include "align_bands.h"
struct LineSegment
{
uint64_t str_x;
uint64_t str_y;
uint64_t end_x;
uint64_t end_y;
LineSegment(uint64_t x1, uint64_t y1, uint64_t x2, uint64_t y2)
{
str_x = x1;
str_y = y1;
end_x = x2;
... |
#include <Elastos.SDK.Contact.hpp>
#include <Elastos.SDK.Keypair.C/Elastos.Wallet.Utility.h>
#include <fstream>
#include <iostream>
#include <thread>
#include <signal.h>
#include <DateTime.hpp>
#include <Platform.hpp>
#include <Log.hpp>
#include <MD5.hpp>
#include "ContactTestCmd.hpp"
#include "ContactTestListener.hp... |
/*
* Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
*
* 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... |
// Copyright 2020 Autoware Foundation
//
// 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... |
#include "Etterna/Globals/global.h"
#include "Etterna/Actor/Base/ActorUtil.h"
#include "Etterna/Models/Misc/AdjustSync.h"
#include "Etterna/Models/Misc/GamePreferences.h"
#include "Etterna/Singletons/GameState.h"
#include "Etterna/Models/Misc/InputEventPlus.h"
#include "Etterna/Models/Misc/LocalizedString.h"
#include "... |
/*
* report.cpp
*
* Created on: 17. 5. 2019
* Author: ondra
*/
#include "report.h"
#include <imtjson/value.h>
#include <imtjson/object.h>
#include <imtjson/array.h>
#include <chrono>
#include <numeric>
#include "../shared/linear_map.h"
#include "../shared/logOutput.h"
#include "../shared/range.h"
#include... |
//*****************************************************************************
// Copyright 2017-2021 Intel Corporation
//
// 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://w... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "inc/Helper/SimpleIniReader.h"
#include "inc/Helper/CommonHelper.h"
#include "inc/Core/Common.h"
#include "inc/Core/MetadataSet.h"
#include "inc/Core/VectorIndex.h"
#include "inc/Core/SearchQuery.h"
#include "inc/C... |
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distri... |
#include <noa/utils/common.hh>
#include <noa/pms/constants.hh>
#include <noa/pms/dcs.hh>
#include <noa/ghmc.hh>
#include <torch/extension.h>
using namespace noa::ghmc;
using namespace noa::pms;
using namespace noa::utils;
inline const auto PI = 2.f * torch::acos(torch::tensor(0.f));
inline Tensor mix_density(const ... |
//
// AvatarActionHold.cpp
// interface/src/avatar/
//
// Created by <NAME> 2015-6-9
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AvatarActionHold.h"
#include <Q... |
// Copyright (c) 2006, Google Inc.
// All rights reserved.
//
// Author: <NAME>
//
// 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 <stdint.h>
#include <immintrin.h>
#include "BitmaskDistribute.h"
#include "Queue.h"
void basicDistribute(const uint32_t* bitArray, size_t bitArraySize, Queue** queues) {
for (size_t i = 0; i < bitArraySize; i++) {
uint32_t mask = bitArray[i];
while (mask) {
unsigned long queueId = __builtin_f... |
/*
* Copyright (C) 2016 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... |
/*
This file is part of the VRender library.
Copyright (C) 2005 <NAME> (<EMAIL>)
Version 1.0.0, released on June 27, 2005.
http://artis.imag.fr/Members/Cyril.Soler/VRender
VRender is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fr... |
//====================================================
// STM32 OPEN SOURCE MULTIMETER
// embedblog.eu/dmm
// some code of this LCD driver comes from Adafruit Industries, I've only rewriten it for STM32
// ===================================================
#ifndef _BV
#define _BV(x) (1 << (x))
#endif
#include <std... |
// Algorithms.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <memory>
#include <stdlib.h>
#include <stack>
#ifdef _DEBUG
#include <vld.h>
#endif
#include "BinarySearchTree.h"
#include "ComputePrimes.h"
#include "MergeSort.h"
#include "Timer.h"
#include "J... |
//===- FuzzerSHA1.h - Private copy of the SHA1 implementation ---*- C++ -* ===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (c) <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
// Copyright 2019 ETH Zürich, <NAME>
//
// 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 following dis... |
//
// OctreeStatsProvider.cpp
// interface/src/ui
//
// Created by <NAME> on 3/12/17.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Application.h"
#include "../oc... |
//===-- ShellCommand.cpp --------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.t... |
/* shadowvol.c - by <NAME>, SGI */
/* Shadows: Shadow maps */
#include <GL/glut.h>
#include <stdlib.h>
/* Demonstrate shadow volumes */
/* Create a single component texture map */
GLfloat *
make_texture(int maxs, int maxt)
{
int s, t;
static GLfloat *texture;
texture = (GLfloat *) malloc(maxs * maxt * sizeo... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2015 The Ruxcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "primitives/block.... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
/*
Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
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 co... |
#include "ChallengeRandomizer.h"
#include <iostream>
// Modify an opcode to use RNG2 instead of main RNG
void ChallengeRandomizer::AdjustRng(int offset) {
int currentRng = _memory->ReadData<int>({offset}, 0x1)[0];
_memory->WriteData<int>({offset}, {currentRng + 0x20});
}
// Overwrite the pointer for ... |
#include "course_map.h"
#include <cslibs_path_planning/geometry/intersector.h>
#include <ros/console.h>
#include <visualization_msgs/MarkerArray.h>
#include <XmlRpcValue.h>
using namespace Eigen;
CourseMap::CourseMap(ros::NodeHandle &nh)
: pnh_("~")
{
pub_viz_ = nh.advertise<visualization_msgs::MarkerArray>("... |
#include <export_libwsjcppcli_java_android.h>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <websocketserver.h>
#include <employees.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <memory>
#include <iostream>
#include <fstream>
#include <iomanip> // put_time
#include <ctime>
#include <f... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2013 <NAME>, Lodz, Poland.
// This file was modified by Oracle on 2014.
// Modifications copyright (c) 2014 Oracle and/or its affiliates.
// Use, modification and distribution... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <math.h>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using ... |
#include <stdio.h>
#include <queue>
#include <map>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <ros/ros.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/opencv.hpp>
#include "estimator.h"
#include "parameters.h"
#include "utility/visualization.h"
Estimator estimator;
std::conditio... |
//
// "$Id: mandelbrot.cxx 5519 2006-10-11 03:12:15Z mike $"
//
// Mandelbrot set demo for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 by <NAME> and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as publ... |
#include "CalibFormats/CastorObjects/interface/CastorCalibrations.h"
#include "CalibFormats/CastorObjects/interface/CastorCoderDb.h"
#include "CalibFormats/CastorObjects/interface/CastorDbRecord.h"
#include "CalibFormats/CastorObjects/interface/CastorDbService.h"
#include "DataFormats/Common/interface/Handle.h"
#includ... |
#include "GridLoader.hpp"
#include "data_path.hpp"
#include "read_write_chunk.hpp"
#include <fstream>
#include <iostream>
#include "Tree.hpp"
#include "Player.hpp"
#include "Barrel.hpp"
#include "Tree.hpp"
#include "Railing.hpp"
#include "Rock.hpp"
#include "Bridge.hpp"
#include "Button.hpp"
#include "Disposal.hpp"
#... |
/*
* patReadNetworkFromOSM.cc
*
* Created on: May 3, 2012
* Author: jchen
*/
#include "patReadNetworkFromOSM.h"
#include <xmlwrapp/xmlwrapp.h>
#include <sstream>
#include "patException.h"
patReadNetworkFromOSM::patReadNetworkFromOSM() {
// TODO Auto-generated constructor stub
}
patReadNetworkFromOSM::~p... |
/*
Copyright (c) 2016 - 2019 Regents of the University of Minnesota and Bolder Flight Systems Inc.
MIT License; See LICENSE.md for complete details
Author: <NAME>, <NAME>
*/
#include "excitation.h"
// Excitation Definitions
void ExcitationSystem::Configure(const rapidjson::Value& Config) {
// Get the time signal
... |
/*
* Fan control main file
* This app is a wrapper to control for hwmon fans and sensors driver
* It controls fan speeds based on preconfigured temperatures ranges
*
* File: main.cpp
* Author: b4fThrive
* Copyright (c) 2020 <EMAIL>
*
* This software is released under the MIT License.
* https://opensou... |
/*
Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
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 co... |
/*
* MIT License
*
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
/*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>, <NAME>.... |
#include "testsMain.h"
#include <vector>
#include <iostream>
#include <cstring>
#include <stdio.h>
#include <string>
#include <fstream>
#include "stdarg.h"
#include <chrono>
#include "../util/terminalColor.h"
#include "../util/parseCPUIDArgs.h"
#include "../util/cmdParser.h"
#if defined(WIN32) || defined(_WIN32) |... |
/*
===========================================================================
GWEN
Copyright (c) 2010 Facepunch Studios
Copyright (c) 2017-2018 <NAME>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... |
/**
* (C) Copyright 2020, 2021 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivati... |
#include <clocks.h>
#include <gpio.h>
#include <tasks.h>
#include <exti.h>
#include <string.h>
#include <usb/usb.h>
#include <board.h>
typedef SYSCLK_T<> SYSCLK;
typedef BOARD_T::BOARD<BOARD_T::LED1 | BOARD_T::LED2 | BOARD_T::BUTTON> BOARD;
typedef EXTI_T<BUTTON> EXT_INTERRUPT;
typedef SYSTICK_T<SYSCLK> SYSTICK;
typ... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
// Copyright 2019-20 <NAME>
//
// 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 following disclaimer.
//
... |
#include <wayfire/plugin.hpp>
#include <wayfire/view.hpp>
#include <wayfire/output.hpp>
#include <wayfire/view-transform.hpp>
#include <wayfire/workspace-stream.hpp>
#include <wayfire/workspace-manager.hpp>
#include <wayfire/signal-definitions.hpp>
#include "blur.hpp"
using blur_algorithm_provider = std::function<non... |
/**************************************************************************************************************
* Brainfuck Evolved *
* Written by <NAME> (http://kurtisdinelle.com) ... |
/*
@copyright Copyright 2021 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
PURPOSE:
(Classes for the GUNNS Fluid Hatch link model.)
REQUIREMENTS:
()
REFERENCE:
()
ASSUMPTIONS AND LIMITATIONS:
(
(Con... |
#include "writer.hpp"
#include <Eigen/Sparse>
#include <Eigen/SparseCholesky>
#include <array>
#include <cmath>
#include <iostream>
#include <iostream>
#include <stdexcept>
#include <tuple>
//! Sparse Matrix type. Makes using this type easier.
typedef Eigen::SparseMatrix<double> SparseMatrix;
//! Used for filling the... |
// Author: <NAME>, 13. September 2020
#include <toppra/algorithm/toppra.hpp>
#include <toppra/constraint/linear_joint_acceleration.hpp>
#include <toppra/constraint/linear_joint_velocity.hpp>
#include <toppra/geometric_path/piecewise_poly_path.hpp>
#include <toppra/parametrizer/const_accel.hpp>
#include <toppra/toppra.h... |
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
expr2subpaving.cpp
Abstract:
Translator from Z3 expressions into generic subpaving data-structure.
Author:
Leonardo (leonardo) 2012-08-08
Notes:
--*/
#include "math/subpaving/tactic/expr2subpaving.h"
#include "ast/expr2var.h"
#include "util... |
// ////////////////////////////////////////////////////////
// # Title
// Uphill paths
//
// # URL
// https://projecteuler.net/problem=411
// http://euler.stephan-brumme.com/411/
//
// # Problem
// Let `n` be a positive integer. Suppose there are stations at the coordinates `(x, y) = (2^i mod n, 3^i mod n)` for `0 <= i... |
/*
MIT License
Copyright(c) 2020 Futurewei Cloud
Permission is hereby granted,
free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p... |
//===-- LanguageRuntime.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <iostream>
using namespace std;
// This code was written for didactic purposes;
// it is feature-poor in order to be as simple as possible.
// For a more realistic implementation of Sequitur, please use
// http://sequitur.info/latest/sequitur.tgz
class symbols;
class rules;
// This finds a matching digram i... |
/* -*- Mode: c; c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t; -*- */
/*
* Copyright © 2009 Mozilla Corporation
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in ... |
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include <pch.h>
#include <jet/fdm_mg_linear_system3.h>
using namespace jet;
//
void FdmMgLinearSystem3... |
/** \file curveFitting_test.cpp
\brief Test case for curve fitting and its solvers
\author <NAME>
*/
#include "ImageIOAnalyze.h"
#include "GadgetronTimer.h"
#include "hoNDHarrWavelet.h"
#include "hoNDRedundantWavelet.h"
#include "hoNDArray_math.h"
#include "simplexLagariaSolver.h"
#include "two... |
#include "scheduler.h"
Scheduler* SCHEDULER = 0;
string months[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
Scheduler::Scheduler(){
this->time = Time;
this->hour = (int)T_START % 24;
this->day = (int)T_START / 24;
this->month = ... |
#include "src/s3_cmds/zgw_s3_bucket.h"
#include <algorithm>
#include "slash/include/env.h"
#include "slash/include/slash_hash.h"
#include "src/s3_cmds/zgw_s3_xml.h"
#include "src/zgw_utils.h"
bool ListObjectsCmd::DoInitial() {
all_objects_name_.clear();
http_response_xml_.clear();
if (!TryAuth()) {
DLOG(I... |
// Copyright (c) 2010 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.
#ifdef _WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include <map>
#include "base/compiler_specific.h"
#include "base/logging.h"... |
/* Generic hash table
**
** Copyright 2001, <NAME>. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include "hash.h"
#include <stdlib.h>
#include "fssh_errors.h"
#include "fssh_kernel_export.h"
#undef TRACE
#define TRACE_HASH 0
#if TRACE_HASH
# define TRACE(x) fssh_dprintf x
#else
# d... |
#include "Tactical/Bullets.h"
#include "Directories.h"
#include "GameSettings.h"
#include "SGP/Debug.h"
#include "SGP/FileMan.h"
#include "SGP/Random.h"
#include "Tactical/Faces.h"
#include "Tactical/LOS.h"
#include "Tactical/LoadSaveBullet.h"
#include "Tactical/Overhead.h"
#include "Tactical/SoldierProfile.h"
#includ... |
/*
* See header file for a description of this class.
*
*/
#include "DTResidualCalibration.h"
// Framework
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "F... |
// A string-based simulated cloth template
// written by <NAME>
#include "Cloth.h"
// default cloth
Cloth::Cloth() {
length = 30;
width = 30;
gravity = -9.8f;
restlen = 5.0f;
mass = 5.0f;
k = 1000;
kv = 100;
init();
}
// customized cloth
Cloth::Cloth(int l, int w, float g, float len, floa... |
#include <FWPlatform.h>
#include <CurlClient.h>
#include <Logger.h>
#include <ContextCairo.h>
#include <SDLSoundCanvas.h>
#include <Command.h>
#include <FWApplication.h>
#include <OpenGLInitEvent.h>
#include <TouchEvent.h>
#include <DrawEvent.h>
#include <SysEvent.h>
#include <UpdateEvent.h>
#include <ResizeEvent.h>
#... |
#include "bomb.h"
#include "main.h"
Bomb::Bomb(float x, float y, float z, float rx, float ry, float rz, int flag, float sp)
{
this->position = glm::vec3(x, y, z);
this->rotationx = rx;
this->rotationy = ry;
this->rotationz = rz;
this->bm = flag;
this->speed = 0.5*bm + sp;
float phi = M_PI ... |
/*
Copyright 2019 <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 writing, software
distr... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
/*
// open an outgoing connection to HOST:PORT
sender.setup(HOST, PORT);
/*
volet1.setup(8001);
volet2.setup(8002);
volet3.setup(8003);
volet4.setup(8004);
*/
/*
// we ad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.