text stringlengths 5.71k 33.7k |
|---|
/**
* @file
* @author <NAME>, based on code by <NAME> <<EMAIL>>
* @version 1.0
*
* @section LICENSE
*
* Copyright [2012] [Carnegie Mellon University]
*
* 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 co... |
/**
*
* Data structures for quadtree terrain storage.
* This code may be freely modified and redistributed. I make no
* warrantees about it; use at your own risk. If you do incorporate
* this code into a project, I'd appreciate a mention in the credits.
* <NAME> <<EMAIL>>
*
* Rewritten and adapted to Vegastri... |
//////////////////////////////////////////////////////////////////////
// Quant.cpp - Quantize color images to MaxColors colors for saving
//
// Copyright <NAME>, Mar. 1999 and June 2007
#include "Image/Quant.h"
#include "Math/Random.h"
#include "Util/Assert.h"
#include <algorithm>
#include <functional>
#include <io... |
/**
* @file mus-mus-dmx.cpp
* @brief Support for id Software MIDI (.mus) format.
*
* Copyright (C) 2010-2015 <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 ve... |
// imgui-gui.cpp
//// For reference:
//// https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html
//// Very helpful for checking how widgets are used
#define IMGUIGUICPP
#include <cassert>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <sstream>
#include <string>
#inc... |
#include <cstdlib>
#include <immintrin.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <vector>
#include "helpers.h"
#include "fast_akima.h"
#include "lib/AlignmentAllocator.h"
const __m256d zero = _mm256_setzero_pd();
const __m256i intTrue = _mm256_set1_epi32(0xFFFFFFFF)... |
//
// Created by dragos on 08.07.2019.
//
#include "Context.h"
#include <analysis/vTypeChecker.h>
#include <p4/typeChecking/typeChecker.h>
namespace analysis {
class RelinkReferences : public Transform {
const IR::P4Program *program; // input: TBD is it necessary?
analysis::Context *ctx; // input/output: w... |
#include "command.h"
#include "kits_cmd.h"
#include "genarchive.h"
#include "mergeruns.h"
#include "agglog.h"
#include "logcat.h"
#include "verifylog.h"
#include "truncatelog.h"
#include "logstats.h"
#include "propstats.h"
#include "logpagestats.h"
#include "dbinspect.h"
#include "loganalysis.h"
#include "dbscan.h"
#i... |
#define INITGUID
#define DEFINE_STRCONST
#include <windows.h>
#include <ole2.h>
#include <initguid.h>
#include <mimeole.h>
#include "encode.h"
#define CORg(command) \
if (FAILED(command)) { \
goto Error; \
}
#define CPRg(command) \
if (! (command)) { \... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... |
#include "kart.hpp"
#include "engine/api.hpp"
#include "engine/engine.hpp"
#include "math/constants.hpp"
#include "types/mat4.hpp"
#include "race-state.hpp"
#include "save.hpp"
#include "track.hpp"
using namespace blit;
static const float kart_radius = 9.5f;
static const float kart_mass = 30.0f;
static const float... |
#include <SFML/Audio.hpp>
#include <cmath>
#include <random>
#include <iomanip>
#include <iostream>
#include "graphics.h"
#include <SFML/System.hpp>
#include <list>
#include <filesystem>
#include <fstream>
#include <stdio.h>
#include <thread>
#include <chrono>
#include <vector>
#include <ctime>
class Synth {
private... |
/**
\defgroup stage The Stage standalone robot simulator.
Here is where I describe the Stage standalone program.
*/
#include <getopt.h>
extern "C" {
#include <avon.h>
}
#include "stage.hh"
#include "config.h"
const char *AVONSTAGE_VERSION = "1.0.0";
const char *USAGE = "USAGE: stage [options] <worldfile1> [... |
/**********************************************************
Chi-Square Probability Function and Kolmogorv-Smirnov
**********************************************************/
#include <iostream>
#include <cstdio>
#include <cmath>
#include "util.h"
#if __GNUC__ > 3
#include <string.h>
#endif
#ifdef SPRNG_MPI
#in... |
#include <qmath.h>
#include <QPainter>
#include <QPen>
#include <QVector>
#include <QListWidget>
#include <QDebug>
#include "ponto.h"
#include "poligono.h"
#ifndef SINAL
#define SINAL(x) ((x) < 0 ? (-1) : (1))
#endif
#ifndef ABSOLUTO
#define ABSOLUTO(x) ((x) < 0 ? (-x) : (x))
#endif
Poligono::Poligono(){ }
void Pol... |
// Recommended Compilation Command:
// g++ -O3 -march=native
#include <algorithm>
#include <array>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iostream>
#include <random>
#include <set>
#include <windows.h>
using namespace std;
const int FLOAT_OUTPUT_PRECISION = 5;
const int LATTI... |
//
// Created by Ciaran on 20/04/2021.
//
#include <utility>
#include "MockRDF.h"
#include "SBMLFactory.h"
#include "include/redland/Query.h"
#include "omexmeta/Options.h"
#include "omexmeta/PurgeRDFBag.h"
#include "omexmeta/RDF.h"
#include "gtest/gtest.h"
#include "redland/RedlandAPI.h"
using namespace omexmeta;
us... |
/*****************************************************************
Author: <NAME>
Date: 2020-12-22
Description: GroundFilter
*****************************************************************/
#include "Global.h"
#include "GroundFilter.h"
using namespace std;
using namespace... |
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#ifdef TIME_IT
#include <sys/time.h>
#endif
#include "../common.hpp"
#ifdef RD_WG_SIZE_0_0
#define BLOCK_SIZE RD_W... |
#include <mpi.h>
#include "lammps.h"
#include "atom.h"
#include "error.h"
#include "output.h"
#include "random_park.h"
#include "fix_colvars.h"
#include "colvarmodule.h"
#include "colvar.h"
#include "colvarbias.h"
#include "colvaratoms.h"
#include "colvarproxy.h"
#include "colvarproxy_lammps.h"
#include <sys/types.... |
#include <algorithm>
#include <cassert>
#include <clocale>
#include <cstring>
#include <curses.h>
#include <sstream>
#include <string>
#include <vector>
#include "repl/cmd.h"
#include "repl/parsing.h"
#include "repl/token.h"
#include "repl/trie.h"
struct Node {
enum class Type {
kConnective,
kKeyword,
k... |
/*
Multivariate Regression and Classification Using an Adaptive Neuro-Fuzzy
Inference System (Takagi-Sugeno) and Particle Swarm Optimization.
Copyright (c) 2021 <NAME>
=== Arguments ===
func Function to minimize
LB Lower boundaries of the search space
UB Upper boundaries of the s... |
#include <iostream>
#include "main.hpp"
#include "pathfinder.hpp"
#include <cmath>
#include <algorithm>
#include <random>
// Default constructor
Pathfinder::Pathfinder() {}
Mcmc::Mcmc() {}
Mcmc_single::Mcmc_single() {}
Pathfinder_tauij::Pathfinder_tauij() {}
// Overloaded constructor
Pathfinder::Pathfinder(const Tran... |
#include<allegro5/allegro.h>
#include<allegro5/allegro_image.h>
#include<allegro5/allegro_primitives.h>
#include<windows.h>
#include<iostream>
#include<allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_font.h>
#include<allegro5/allegro_audio.h>
#include<allegro5/allegro_acodec.h>
#include <allegro5/... |
#include "Matrix4.h"
#include "Quaternion.h"
#include <sstream>
namespace
{
/// \brief Returns \p euler angles converted from degrees to radians.
inline Vector3 euler_degrees_to_radians(const Vector3& euler)
{
return Vector3(
degrees_to_radians(euler.x()),
degrees_to_radians(euler.y()),
degrees_to_radi... |
#include <cv.h>
#include <highgui.h>
#include <algorithm>
#include <cmath>
#include <ctime>
// #include "detmpb.h"
#include "otherheaders.h"
using namespace cv;
using namespace std;
void make_filters(std::vector<std::vector<Mat> > &filters, const std::vector<int> &radii,
const std::vector<double> &g... |
/**********
Copyright (c) 2017, 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 retain the above copyright notice,
this list of conditions and the fol... |
/* =====================================
=== FIMREG - Fast Image Registration ===
========================================
Written by <NAME>, Berg Solutions (<EMAIL>) with support from
<NAME>, Fraunhofer MEVIS (<EMAIL>) <NAME>, Fraunhofer
MEVIS (<EMAIL>).
THIS IS A LIMITED RESEARCH PROTOTYPE. Documentation: w... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/bookmarks/bookmark_html_writer.h"
#include "base/base64.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "b... |
//===- Operator.cpp - Operator class --------------------------------------===//
//
// 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 "Terminal/WindowsTerminal/WindowsTerminal.hpp"
#include <string.h>
using namespace AppCUI::Internal;
WindowsTerminal::WindowsTerminal()
{
ConsoleBufferCount = 0;
}
WindowsTerminal::~WindowsTerminal()
{
ConsoleBufferCount = 0;
}
bool WindowsTerminal::ResizeConsoleBuffer(unsigned int width, unsigned in... |
/*
* Copyright (C) 2007 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... |
//******************************************************************************************************************//
// Copyright (c) 2020, Lawrence Livermore National Security, LLC.
// and Federal University of Minas Gerais
// SPDX-License-Identifier: (BSD-3-Clause)
//************************************************... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
/*
* File: IMU.cpp
* Author: TheBeast
*
* Created on 12. März 2016, 14:28
*/
#include <cmath>
#include "IMU.hpp"
#include "Logger.hpp"
IMU::IMU() {
offset[0] = 0.0;
offset[1] = 0.0;
offset[2] = 0.0;
offset[3] = 0.0;
offset[4] = 0.0;
offset[5] = 0.0;
offset[6] = 0.0;
offset[7] =... |
/*
* Copyright (c) 2017 <NAME>
* This file is a part of Libecpint.
*
* 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... |
// Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/async_base... |
/* Copyright 2020 Stanford
*
* 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 wri... |
// Copyright (c) 2012 <NAME>
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addrman.h"
#include "hash.h"
#include "serialize.h"
using namespace std;
int CAddrInfo::GetTriedBucket(const vector<unsigned char> &nK... |
/* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKmath *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/gn/operators.h"
#include "base/strings/string_number_conversions.h"
#include "tools/gn/err.h"
#include "tools/gn/parse_tree.h"
#inclu... |
#include <stdlib.h>
#include <bits/stdc++.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <pthr... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
//===- torch_to_mlir_utils.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
// Also available under a BSD-style... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
/*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*/
#include "DQM/DTMonitorModule/interface/DTCalibValidationFromMuons.h"
// Framework
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Eve... |
////////////////////////////////////////////////////////////////////////////////////////////////
// Our main ARVRInterface code for our OpenXR GDNative module
#include "ARVRInterface.h"
#include "openxr/extensions/xr_ext_hand_tracking_extension_wrapper.h"
#include "openxr/extensions/xr_ext_performance_settings_extensi... |
/*
* An example program that takes a GloVe
* (http://nlp.stanford.edu/projects/glove/) dataset and builds a cross-polytope
* LSH table with the following goal in mind: for a random subset of NUM_QUERIES
* points, we would like to find a nearest neighbor (w.r.t. cosine similarity)
* with probability at least 0.9.
... |
// ESP8266 Driver for Apache Mynewt. Functions for creating the driver instance and performing ESP8266 functions.
// More about Mynewt Drivers: https://mynewt.apache.org/latest/os/modules/drivers/driver.html
// Note that we are using a patched version of apps/my_sensor_app/src/vsscanf.c that
// fixes ESP8266 respo... |
// chainbin/nnet3-chain-get-egs.cc
// Copyright 2015 Johns Hopkins University (author: <NAME>)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
#include "pch.h"
#include <iostream>
#include<stdio.h>
#include<malloc.h>
struct Student {
int cod; //cheie
char* nume;
int nrNote;
int*note;
};
struct nodArb {
Student inf;
nodArb* left, *right;
int BF; //pt AVL
};
//ABC Arbori
//Arbore= graf complex +aciclic
//Arbore binar= abore care are cel mult 2 fii (are ... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
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 modif... |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
typedef enum{UP='U',DOWN='D',LEFT='L',RIGHT='R',INTELLIGENT='I',SHUFFLE='S',EXIT='Q',NONE='.'}Event;
typedef enum{QUIT,UNSOLVED,SOLVED}State;
typedef struct
{
int *cur_puzzle; // current puzzle
int *goal_puzzle;
int size;
int blank_x,bla... |
#ifdef _MSC_VER
#pragma warning ( disable : 4820 4365 4668 5039 4710 4702 4711 )
#endif
#include "glfont.h"
#include <cstdint>
#include <cstring>
#include <cstdlib>
#include <cstddef>
#include <algorithm>
#include <fontstash.h>
#include <GL/glew.h>
#include "typedefs.h"
#define GL_CHECKPOINT_ALWAYS_() ... |
/*
Distributed Under the MIT license
Uses the Bellman-Ford/Dijkstra Algorithm to find shortest path distances
Programs by <NAME> (UConn)
*/
#include <cstdio>
#include <cstdlib>
#include <pthread.h>
//#include "carbon_user.h" /*For the Graphite Simulator*/
#include <time.h>
#include <sys/timeb.h>
#defin... |
#include<GL\glut.h>
#include<iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <sapi.h>
#include <map>
#include <vector>
#include <IL\config.h>
#include <IL\devil_cpp_wrapper.hpp>
#include <IL\devil_internal_exports.h>
#include <IL\il.h>
#include <IL\ilu.h>
#include <IL\ilu_region.h>
#include <IL\ilut.h>... |
/*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* 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, ... |
#include"SLR.h"
const std::string empty = "empty";
Pre_treatment::Pre_treatment(std::ifstream& in_grammar){
std::string file_in = "";
int row = 0;
while (getline(in_grammar, file_in)) {
row ++;
//分出非终结符和产生式:两部分
auto Parts = Division(file_in, "->");
//如果是上下文有关文法: 报错
//如果左侧无符号: 报错
if (Parts[... |
/*****************************************************************/
/* NAME: <NAME>, <NAME>, and <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: AppCastingMOOSApp.cpp */
/* DATE: June 5th 2012 */
/* ... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserved. *... |
#include <vector>
#include <ros/ros.h>
#include <ros/console.h>
#include <podi_navigation_helpers/grid.h>
void test2DGrid(podi_navigation_helpers::Grid grid, int x, int y, int xAns, int yAns, unsigned int cellXAns, unsigned int cellYAns) {
std::vector<int> pos{x, y};
std::tuple<std::vector<int>, std::vector<uns... |
/*-
* Copyright 2009 <NAME>, 2011 ArtForz, 2011 pooler, 2013 Balthazar
* 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
... |
/*
* Copyright (c) 2020, NVIDIA CORPORATION. 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... |
/**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... |
// ----------------------------------------------------------------------------
// The MIT License
// Copyright (c) 2019 <NAME> <<EMAIL>>
// ----------------------------------------------------------------------------
#include "face_tracker.h"
#include <iostream>
#include <fstream>
#include <math.h>
#include <chrono>
... |
#include <grend-config.h>
#include <grend/engine.hpp>
#include <grend/gameModel.hpp>
#include <grend/utility.hpp>
#include <vector>
#include <map>
#include <iostream>
#include <algorithm>
using namespace grendx;
material::ptr default_material;
compiledMaterial::ptr default_compiledMat;
void renderContext::applySet... |
/* $Id: video.cpp 48480 2011-02-12 16:20:24Z ivanovic $ */
/*
Copyright (C) 2003 - 2011 by <NAME> <<EMAIL>>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... |
/*
* Copyright (c) 2011, 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/*
// Copyright (C) 2020-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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
#include "MAX10OutputPlugin.h"
#include <glog/logging.h>
#include <INIReader.h>
#include <mutex>
#include <thread>
#include <atomic>
#include <stdexcept>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/select.h>
#include <sys/ioctl.h>
#include <OutputFrame.h>
// SPI stuff
#ifdef __linux__
... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/*
* Copyright 2015 The SageTV Authors. 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 re... |
// Copyright 2015-2021 <NAME>. See LICENSE file for terms.
#include <boost/algorithm/string.hpp>
#include <libpharos/descriptors.hpp>
#include <libpharos/misc.hpp>
#include <libpharos/util.hpp>
#include <libpharos/riscops.hpp>
#include <libpharos/options.hpp>
#include <libpharos/pdg.hpp>
#include <libpharos/masm.hpp... |
/**
*
*
* middle layer for update and cooperate the devices status and sensor reading
*
*/
#include "hw.h"
#include "lcd_ui.h"
#include "awsiot.h"
#include "mbed.h"
#include <string>
#include "cybsp.h"
#include "sound.h"
#include "analogin_api.h"
#include "mbed_error.h"
#include "cyhal_adc.h"
#include "cyhal_u... |
// This file is part of fizmo-json. Please see LICENSE.md for the license.
#include "screen.h"
#include <map>
#include <string>
extern "C" {
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <sys/time.h>
// fizmo includes...
#include <interpreter/fizmo.h>
#include <inte... |
#include "ili9163c.hh"
#include "stm32f1xx_ll_spi.h"
#include "stm32f1xx_ll_dma.h"
#include "stm32f1xx_ll_utils.h"
#include "gpio.hh"
#include <algorithm> // std::max
constexpr uint8_t CMD_NOP = 0x00; //Non operation
constexpr uint8_t CMD_SWRESET = 0x01; //Soft Reset
constexpr uint8_t CMD_SLPIN = 0x10; //Sleep ON
... |
// This file is a subset of the C API from RocksDB. It should remain consistent.
// There will be another file which contains some extra routines that we find
// useful.
#include <cstddef>
#include <cstdlib>
#include <memory>
#include <string>
#include "rocksdb/cache.h"
#include "rocksdb/db.h"
#include "rocksdb/filter... |
/*
* Copyright 2001-2010, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>
*/
#include "PrinterListView.h"
#include <Application.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <Directory.h>
#include <IconUtils.h>
#include <Locale.h>
#include <Mime.h>
#include <NodeInfo.h>
#... |
//
// Timeline.cpp
// BecHillLasers
//
// Created by <NAME> on 28/07/2018.
//
//
#include "Timeline.h"
//ofxImGui::Gui Timeline::gui;
Timeline::Timeline() {
initListeners();
offset.x = 0;
offset.y = 0;
scale.x = 1;
scale.y = 1;
fps = 30;
snapToFrame = true;
setNumTracks(1);
locked.set("Lock timeline... |
/*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... |
#include <srs_app_utility.hpp>
#include <sys/types.h>
#include <unistd.h>
#include <ifaddrs.h>
#include <arpa/inet.h>
using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_app_config.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_kernel_error.hpp>
#define SRS_LOCAL_LOOP_IP "127.0.0.1"
int srs_get_... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
/**
* @file tile_io.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2018 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without rest... |
/*
* Copyright (c) 2010-2012 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 ... |
/* <NAME> `gentilkiwi`
http://blog.gentilkiwi.com
<EMAIL>
Licence : http://creativecommons.org/licenses/by-nc-sa/3.0/
*/
#include "mod_mimikatz_terminalserver.h"
// http://msdn.microsoft.com/library/aa383464.aspx
vector<KIWI_MIMIKATZ_LOCAL_MODULE_COMMAND> mod_mimikatz_terminalserver::getMimiKatzCommands()
{
vector... |
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2... |
/*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... |
/***************************************************************************
*
Copyright 2013 CertiVox IOM Ltd. *
*
This file i... |
#include <iostream>
#include <cuda_runtime_api.h>
#include "tuner_api.h" // KTT API
#include "ktt_json_saver.hpp" // Custom JSON KTT results saver
using namespace std;
void md5_2words(unsigned int *words, unsigned int len, unsigned int *digest);
void IndexToKey(unsigned int index, int byteLength, int valsPerByte, uns... |
#include <fstream>
#include <inttypes.h>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <unordered_map>
#include <arpa/inet.h>
#include <unistd.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/gzip_stream.h>
#include <google/protobuf/io/zero_copy_stream_... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include <limits>
#include <math.h>
#include <algorithm>
#include <ctime>
#include <bits/stdc++.h>
#include <omp.h>
using namespace std;
#include "vector.h"
#include "objects.h"
#include "materials.h"
const unsigned int WIDTH = 300;
const unsigned int HE... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <QCoreApplication>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QStringList>
#include <QFile>
#include <QSqlQuery>
#include <QSqlError>
#include <QVariant>
#include <QUrl>
#include <QDebug>
/*
* There's a whole lot of static-constness in this file since we're itterating over
* some of t... |
#include "ragebot.h"
c_ragebot g_ragebot;
void c_ragebot::work( CUserCmd * cmd ) {
m_players.clear( );
if ( !g_vars.rage.enabled )
return;
if( g_vars.rage.key && !g_input.key_pressed( g_vars.rage.key ) )
return;
m_cmd = cmd;
select_target( );
choose_angles( );
}
void c_ragebot::sel... |
/*
* Copyright (c) 2010-2016, MIT Probabilistic Computing Project
*
* Lead Developers: <NAME> and <NAME>
* Authors: <NAME>, <NAME>, <NAME>, <NAME>
* Research Leads: <NAME>, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <armadillo>
namespace py = pybind11;
using namespace arma;
typedef py::array_t<double, py::array::f_style | py::array::forcecast> array_tf;
typedef py::array_t<double, py::array::c_style | py::array::forcecast> array_tc;
cube array_to_cube(array_... |
#define _CRT_SECURE_NO_WARNINGS
#define SCREEN_WIDTH 120
#define SCREEN_HEIGHT 70
#define BOSS_SCORE 150
#define BOSS_LIFE 80
#include "game_loop.h"
class TestGame : public GameLoop {
private:
vector<Matrix> enemy_images; // enemy 그림 벡터
vector<Matrix> bullet_images;
Sound sound_;
clock_t last_t... |
// Mapping.cpp
//
// Experiments in storing an environment mapping in a memory limited
// environment (e.g., Arduino or similar)
//
// Both a word-oriented and a byte oriented "universe" is maintained.
//
// As the experiments continue we will explore speed and sizing issues
// to assess the types of storage appropriat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.