text stringlengths 3.08k 22k |
|---|
#include <iostream>
#include <fstream>
#include <chrono>
#include <set>
#include <memory_resource>
#include <boost/interprocess/managed_mapped_file.hpp>
#include "commondefs.hpp"
#include "options.hpp"
#include "threading.hpp"
using namespace filehasher;
// Defines hash calculation result, that contains chank number... |
#include "AoC/2018/problem_11.h"
#ifdef _MSC_VER
# pragma warning( disable : 4804 ) // disable range-v3 warnings
#endif
#include "AoC/problems_map.h"
#include "AoC/utils/2d_array.h"
#include "AoC/utils/geo.h"
#include "range/v3/algorithm/max.hpp"
#include "range/v3/view/cartesian_product.hpp"
#include "range/v3/vi... |
/// This is the incompressible Stokes solver benchmark based on this project:
/// http://www.featflow.de/en/benchmarks/cfdbenchmarking.html
///
/// Author: A.Shamanskiy (2016 - ...., TU Kaiserslautern)
#include <gismo.h>
#include <gsElasticity/gsNsAssembler.h>
#include <gsElasticity/gsWriteParaviewMultiPhysics.h>
usin... |
/*
* MC.cpp
* Simulation of 2-D Rods By GCMC with SUS, No energy
* Author: <NAME>
* Date: 2015.10.19
* *************************** MC implementation ********************************
* This simulation follows Successive Umbrella sampling without energy.
* *****************************************************************... |
#include "Encryptor.hpp"
#include "random.hpp"
#include <assert.h>
#include <iostream>
Encryptor Encryptor::random() {
Encryptor enc;
random_init(enc.key.data, KEY_SIZE);
return enc;
}
constexpr char BASE64_TABLE[65] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
constexpr char base6... |
// Copyright (c) 2015 The Chromium Embedded Framework 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 "include/base/cef_callback.h"
#include "include/wrapper/cef_closure_task.h"
#include "tests/ceftests/test_handler.h"
#incl... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <set>
#include <map>
using namespace std;
vector<string> cutUp(const string &s, const string &delim=" ") {
int lastPos = 0, pos = 0;
vector<... |
#include "knn.hpp"
#include "observation.hpp"
#include "subset.hpp"
#include <algorithm>
#include <array>
#include <atomic>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <execution>
#include <iostream>
#include <map>
#include <numeric>
#include <random>
#include <ranges>
#include <s... |
/**
* @brief publish images or video stream to LCM
* @author: <NAME>
*
*/
#include <signal.h>
#include <getopt.h>
#include <boost/filesystem.hpp>
#include <opencv2/opencv.hpp>
#include <cv_bridge_lcm/rv-cv-bridge-lcm.h>
using namespace std;
using namespace cv;
//#define SHOW_GUI
cvBridgeLCM* cv_bridge;
cv::Ma... |
/******************************************************************************/
/* The idea is to draw a teapot, that can be moved by a crystal ball */
/* interface */
/****************************************************************************... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetFrameRate(30);
ofSetVerticalSync(true);
ofSetBackgroundColor(0, 0, 0);
shadertoy.load("shaders/sources.frag"); // change file name ========== TODO
width = 1920;
height = ... |
/*
* #%L
* %%
* Copyright (C) 2018 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 app... |
// Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "gtest/gtest.h"
#include "axom/primal/geometry/NumericArray.hpp"
#include "axom/slic/core/UnitTestLogger.hpp... |
#include "pipeline.h"
#include "components/actor.h"
#include "components/transform.h"
#include "components/scene.h"
#include "components/camera.h"
#include "components/directlight.h"
#include "components/meshrender.h"
#include "components/particlerender.h"
#include "resources/mesh.h"
#include "resources/material.h"
#... |
/*
====================
More demo for transformations.
====================
*/
#include "lgl/Base.h"
#include <cmath>
#include <cstdlib>
float vertices[] = {
// positions // texture coords
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f,
0.5f, -0.5f, -0.5f, 1.0f, 0.0f,
0.5f, 0.5f, -0.5f, 1.0f, 1.0f,
... |
#include <ostream>
#include "Map.h"
#include "Coordinate.h"
#include "UI.h"
Map* map;
class Record {
public:
Record() {
cat1 = Coordinate(-1, -1);
cat2 = Coordinate(-1, -1);
cat3 = Coordinate(-1, -1);
}
void setMouse(Coordinate mouse) {
Record::mouse = mouse;
}
voi... |
#include <grend/gameEditor.hpp>
#include <grend/fileDialog.hpp>
// TODO: debugging, remove
#include <iostream>
#include <imgui/imgui.h>
#include <imgui/backends/imgui_impl_sdl.h>
#include <imgui/backends/imgui_impl_opengl3.h>
using namespace grendx;
static fileDialog open_dialog("Open File");
static fileDialog save... |
//============================================================================
// Name : cpp.cpp
// Author : <NAME>
// Version :
// Copyright :
// Description : Hello World in C++, Ansi-style
//============================================================================
#include "byl_socket.hpp"
st... |
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <Windows.h>
#define null NULL
#define countof(a) (sizeof(a)/sizeof((a)[0]))
typedef unsigned char byte;
enum {
DQT = 0xDB,
DHT = 0xC4,
DRI = 0xDD,
SOF = 0xC0,
kFourtyTwo = 0x2A,
kImageWidth = 0x100,
kImag... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
using namespace std;
struct state {
int cost, moves, tps, p;
state(int cost_, int moves_, int tps_, int p_): cost(cost_), moves... |
#include <stdio.h>
#include <stdlib.h>
#include "xparameters.h"
#include "xgpio.h"
#include "xil_types.h"
#include "xil_io.h"
#define NUM_LEDS 6000
#define LEDS_PER_STRAND 1000
int color_index = 0;
short rot_index = 0;
short case_ID = 0;
char initialized = 0;
char prev_btn_st = 0;
int fader = 0;
char count_up;
int g... |
//
// 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 distributed under the License is distributed on an
// "AS I... |
/***************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*******************************************************************... |
#include "Engine/Math/MatrixUtils.hpp"
#include "Engine/Math/Mat44.hpp"
#include "Engine/Math/MathUtils.hpp"
#include "Engine/Math/Vec3.hpp"
#include "Engine/Math/Vec4.hpp"
//////////////////////////////////////////////////////////////////////////
Mat44 MakeOrthographicProjectionMatrixD3D(float minX, float maxX, float... |
/***************************************************************************
* This file is part of the ReViSy project
* Copyright (C) 2007 by Neon
***************************************************************************/
#include "objLoader.h"
ObjLoader::ObjLoader()
{
}
ObjLoader::ObjLoader(char *fi... |
/*
KRKR PSBFILE Compiler/Decompiler
Author:201724
QQ:495159
EMail:<EMAIL>
*/
#include "def.h"
#include <direct.h>
#include "../compress.h"
#include <Windows.h>
#define BMP_BIT 32
#pragma pack(1)
Json::Value root_source;
Json::Reader parser_source;
Json::Value root_resource;
Json::Reader parser_resource;
string top_... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: <NAME> <<EMAIL>>
*
* 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
... |
/*
* Copyright 2019 dmerkushov.
*
* 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... |
#include "Application.h"
#include "Globals.h"
#include "ModuleConfiguration.h"
#include "ModuleHardware.h"
#include "ModuleCamera3D.h"
#include "Light.h"
#include "ModuleRenderer3D.h"
#include "MathGeoLib\MathGeoLib.h"
#include "mmgr\mmgr.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
ModuleConfig... |
//
// Created by 王耀 on 2017/9/18.
//
#include <iostream>
#include "process_table_item.h"
#include "config.h"
#include "mmu.h"
ProcessTableItem::ProcessTableItem(unsigned int pid, unsigned long pageCount, unsigned long stackPageCount) {
mPid = pid;
mPageCount = pageCount;
mStackPageCount = stackPageCount;
... |
/* sphere.c - by <NAME>, SGI */
/* Instead of tessellating a sphere by lines of longitude and latitude
(a technique that over tessellates the poles and under tessellates
the equator of the sphere), tesselate based on regular solids for a
more uniform tesselation.
This approach is arguably better than the... |
/*
* Sample application for eos deformable face mesh fitting
* w/ initial dlib face detection and landmark regression
* using the hunter package manager.
* Simple, needs error handling...
*
* https://github.com/patrikhuber/eos
* https://github.com/davisking/dlib
* https://github.com/ruslo/hunter
*/
#inclu... |
// window.c
#include "simple2d/simple2d.h"
#include <cstring>
#include <simple2d/simple2d.h>
/*
* Create a window
*/
S2D_Window *S2D_CreateWindow(const char *title, int width, int height,
S2D_Update update, S2D_Render render, int flags) {
S2D_Init();
SDL_DisplayMode dm;
SDL_GetC... |
// Copyright 2014 The Crashpad 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 required by ... |
#include <math.h>
#include "../libs/imgui-master/imgui.h"
#include <stdio.h>
#include "ArpeggiatorScreen.h"
uint16_t ArpeggiatorScreen::GetParameterValue(int param, int encoderset)
{
switch (param)
{
}
return 0;
};
enum
{
Arp_Enable = __ArpeggioMode_Count,
Arp_Reset,
Arp_KillAll,
Arp_Hold,
Arp_Mode,
Arp_O... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <cassert>
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using ... |
/**
* @file rrt_planner.cpp
* @author <NAME>, <NAME>
* @brief
* @version 1.0
* @date 2021-12-30
*
* @copyright Copyright (c) 2021
*
*/
#include "rrt_planners.h"
#include <stdlib.h>
#include <visualization_msgs/Marker.h>
#include <geometry_msgs/PoseArray.h>
#include <nav_msgs/Odometry.h>
#include <iostream>... |
/**************************************************************************/
/* */
/* WWIV Initialization Utility Version 5 */
/* Copyright (C)1998-2017, WWIV Software Services */
/* ... |
#include "Autodafe.hpp"
#include "dsp/digital.hpp"
#define FONT_FILE assetPlugin(plugin, "res/Segment7Standard.ttf")
struct BPMClock : Module {
enum ParamIds {
BPM,BTNUP, BTNDWN,
BTNUPDEC, BTNDWNDEC,
NUM_PARAMS
};
enum InputIds {
NUM_INPUTS
};
enum OutputIds {
OUT_1,
OUT_2,
OUT_3,
OUT_4... |
//
// 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 and the following disclaimer.
// * Redistributions in bin... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "jpegloader.h"
#include "tier0/dbg.h"
#include "tier1/utlvector.h"
#include "tier0/vprof.h"
#include "jpeglib/jpeglib.h"
//---------... |
/*************************************************************************/
/* grid_container.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Copyright 2014 The Crashpad 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 required by ... |
#include "util-inl.h"
#include "debug_utils-inl.h"
#include "env-inl.h"
#include "gtest/gtest.h"
TEST(UtilTest, ListHead) {
struct Item { node::ListNode<Item> node_; };
typedef node::ListHead<Item, &Item::node_> List;
List list;
EXPECT_TRUE(list.IsEmpty());
Item one;
EXPECT_TRUE(one.node_.IsEmpty());
... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestHigherOrderCell.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed ... |
/// \file Navier-Stokes Solver with force f(T)
/// \brief Defines the steps to solve advection, diffusion, pressure and add sources (dependent on T), solves temperature and concentration equation
/// \date Sep 27, 2017
/// \author Küsters
/// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights res... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <map>
using namespace std;
int a[5][76];
int match[5][5];
const int MISS = 2000;
class Bingo {
public:
string winner(vector <string> card,... |
//
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2011-2012 <NAME>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
////////... |
/* <NAME> `gentilkiwi`
http://blog.gentilkiwi.com
<EMAIL>
Licence : http://creativecommons.org/licenses/by-nc-sa/3.0/
*/
#include "mod_patch.h"
bool mod_patch::patchModuleOfService(wstring serviceName, wstring moduleName, BYTE * patternToSearch, SIZE_T szPatternToSearch, BYTE * patternToPlace, SIZE_T szPatternToPla... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
// ROS Hexapod Controller Node
// Copyright (c) 2016, <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, ... |
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd. 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... |
#include <freespace/freespace.h>
#include <freespace/freespace_printers.h>
#include <freespace/freespace_util.h>
#include <ros/ros.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/MagneticField.h>
#include <stdint.h>
#include <string>
#include <iterator>
#include "math.h"
// The names corresponding to the sensor ... |
#include <string.h>
#include "ioBuffer.h"
#include "log.h"
using namespace myframework;
int IOBuffer::SetBufferPool(BufferPool *bp){
if(bp == NULL){
MY_LOG_STREAM_ERROR << "BufferPool is null " << MY_LOG_EOM;
return -1;
}
mBufferPool = bp;
return 0;
}
char* IOBuffer::GetReadData(int... |
/*==============================================================================
Copyright(c) 2017 Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files(the "Software"),
to deal in the Software without restriction, including w... |
#include "AMD64.h"
#include <stdint.h>
#include <Console.h>
#include <Publics.h>
#include "Address_Resolver.h"
#include "Page_Repository.h"
#include "StaticHeap.h"
namespace {
constexpr uint64_t Page_Table_Size = 4 << 10;
} // namespace
namespace Memo
{
namespace AMD64
{
Pager::Pager(
... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 <NAME> <<EMAIL>>
// Copyright (C) 2016 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this fil... |
/* Copyright (c) <2009> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including comm... |
#include <iostream>
#include <typeinfo>
#include <type_traits>
#if defined(_MSC_VER)
//https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019
#define FUNCTION_WITH_SIGNATURE __FUNCSIG__
#else
// https://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
#define FUNCTION_WITH_SIGNATURE __PRETTY_FU... |
#include "test.h"
#include <iostream>
#include <string>
#include <vector>
#include "loki/worker.h"
#include "midgard/logging.h"
#include "sif/dynamiccost.h"
#include "thor/costmatrix.h"
#include "thor/timedistancematrix.h"
#include "thor/worker.h"
using namespace valhalla;
using namespace valhalla::thor;
using names... |
/*
Copyright (c) 2005-2016 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 la... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// Callpath.cpp
// Callpath provider for caliper records using libunwind
#include "caliper/CaliperService.h"
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"
#include "caliper/common/Log.h"
#... |
#include <math.h>
#include <string>
#include <iostream>
#include "../utils/imageIO.h"
#include "../utils/image.h"
#include "../utils/filter.h"
#include "../utils/filter_factory.h"
#include "../utils/utils.h"
#include "helpers_mpi.h"
#include "mpi_data.h"
#define CONTRAST "contrast"
#define BRIGHTNESS "brightness"
... |
#include <nrf24l01.h>
static nrf24l01 *isrObject0;
void nrf24l01_isrHandler0() { isrObject0->isrHandler(); }
static nrf24l01 *isrObject1;
void nrf24l01_isrHandler1() { isrObject1->isrHandler(); }
static nrf24l01 *isrObject2;
void nrf24l01_isrHandler2() { isrObject2->isrHandler(); }
static nrf24l01 *isrObject3;
void... |
//*****************************************************************************
// Copyright 2017-2018 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... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 Couchbase, 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
*
* h... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include "CSCIndexerOldStartup.h"
#include <iostream>
void CSCIndexerOldStartup::fillChamberLabel() const {
// Fill the member vector which permits decoding of the linear chamber index
// Logically const since initializes cache only,
// Beware that the ME42 indices 235-270 within this vector do NOT correspond
... |
#include <iostream>
#include <tbb/tbb.h>
#include <vector>
#include "Pixel.h"
#include "Image.h"
#include "InputData.h"
double makeReal(const int x, const int width, const double minRe, const double maxRe);
double makeImaginary(const int y, const int height, const double minIm, const double maxIm);
int findValue(cons... |
// 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 "third_party/blink/renderer/platform/image-decoders/image_decoder_base_test.h"
#include <stddef.h>
#include <memory>
#include "base/files/... |
/*
Copyright (c) 2012, <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 and the following ... |
#include "core.h"
#include "clock.h"
#include "simplestring.h"
#include "configmanager.h"
#if BUILD_WINDOWS_NO_SDL
#include <Windows.h>
#endif
Clock::Clock()
: m_PhysicalBaseTime(0),
m_PhysicalCurrentTime(0),
m_PhysicalDeltaTime(0),
m_MachineCurrentTime(0.0f),
m_MachineDeltaTime(0.0f),
... |
/*
* Copyright (c) 2014-2015 Advanced Micro Devices, Inc.
* All rights reserved.
*
* For use for simulation and test purposes only
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperTreeGridToUnstructuredGrid.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... |
//
// 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 and the following disclaimer.
// * Redistributions in bin... |
#include "primIconCircle.cpp"
/*
* Heavenli opengl drawcode for circular arrangments (backgroun+iconography)
*/
using namespace std;
extern std::map<std::string, drawCall> drawCalls;
GLuint prevHomeCircleNumBulbs;
void drawIconCircle(
GLfloat gx, // icon position X
GLfloat gy, ... |
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <FL/Fl_Tree_Item_Array.H>
#include <FL/Fl_Tree_Item.H>
//////////////////////
// Fl_Tree_Item_Array.cxx
//////////////////////
//
// Fl_Tree -- This file is part of the Fl_Tree widget for FLTK
// Copyright (C) 2009-2010 by <NAME>.
//
// This libr... |
/* Copyright (C) 2019-2020 <NAME>, TKJ Electronics. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warrant... |
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Widget.H>
#include <libusb.h>
#include "settings.h"
#include "transfer_matrix_table.h"
#define EVO_VENDOR_ID 0x2708
#define EVO_4_PRODUCT_ID 0x0006
#define EVO_8_PRODUCT_ID 0x0007
static libusb_device_handle *devh = NULL;
void evo_init()
{
int err;
... |
#include "pybind11/operators.h"
#include "signalflow/python/python.h"
/*--------------------------------------------------------------------------------
* Required for hash() - see below.
*-------------------------------------------------------------------------------*/
template <>
struct std::hash<Node>
{
std::... |
//
// Created by <NAME> on 2022-02-15.
//
#include <iostream>
using namespace std;
class Node{
public:
Node(): data(0), next(nullptr), prev(nullptr){}
~Node(){}
Node(int data, Node* next, Node* prev): data(data), next(next), prev(prev){
if(next){
next->prev = this;
}
if... |
#include "core/random.h"
#include "core/rgb.h"
#include "core/colors.h"
#include "core/palette_lospec.h"
#include "core/palette.h"
#include "core/image.h"
#include "core/cint.h"
#include "render/init.h"
#include "window/imguilibrary.h"
#include "window/imgui_extra.h"
#include "window/imgui_icons.h"
#include "window/... |
/* Copyright (c) 2015, Google Inc.
*
* 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 "p2Defs.h"
#include "p2Log.h"
#include "Application.h"
#include "Textures.h"
#include "Render.h"
#include "Window.h"
#include "GameScene.h"
#include "SceneTutorial.h"
#include "SceneTitle.h"
#include "Input.h"
#include "Map.h"
#include "Minimap.h"
#include "Transitions.h"
#include "Gui.h"
#include "Fonts.h"
#i... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
// BY ZOINKITY
#include "StdAfx.h"
#include "VPK0Decoder.h"
#include <iostream>
using namespace std;
CVPK0Decoder::CVPK0Decoder(void)
{
}
CVPK0Decoder::~CVPK0Decoder(void)
{
}
int CVPK0Decoder::_flags(unsigned char* inputBuffer, int& inputPosition, unsigned char& flags, int& flagsLeft, int compressedSize)
{
if (... |
//-----------------------------------------------------------------------------
// File : KpixGuiRegTest.cc
// Author : <NAME> <<EMAIL>>
// Created : 09/25/2008
// Project : SID Electronics API - GUI
//-----------------------------------------------------------------------------
// Descript... |
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <sys/time.h>
#include "util.h"
#include "net_util.h"
#include "Anon.h"
#include "Val.h"
#include "NetVar.h"
AnonymizeIPAddr* ip_anonymizer[NUM_ADDR_ANONYMIZATION_METHODS] = {0};
static uint32_t rand32()
{
return ((bro_random() & 0xffff) << 16) |... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
/*
Copyright 2007 <NAME> <<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
Unless required by applicable law or agreed to in writ... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/android/SkAnimatedImage.h"
#include "include/codec/SkAndroidCodec.h"
#include "include/codec/SkCodec.h"
#include "include/core/SkCanvas.h"
#include "include/... |
#pragma once
#include "JoyShockMapper.h"
#include "CmdRegistry.h" // for JSMCommand
#include "JSMVariable.hpp"
#include "PlatformDefinitions.h"
#include <iostream>
#include <regex>
// This class handles any kind of assignment command by binding to a JSM variable
// of the parameterized type T. If T is not a base typ... |
#include "assignment2.hpp"
#include "interpolation.hpp"
#include "parametric_shapes.hpp"
#include "config.hpp"
#include "core/Bonobo.h"
#include "core/FPSCamera.h"
#include "core/Misc.h"
#include "core/node.hpp"
#include "core/ShaderProgramManager.hpp"
#include <imgui.h>
#include "external/imgui_impl_glfw_gl3.h"
#inc... |
///////////////////////////////////////////////////////////////////////////////////
// _ _
// ___ ___ ___ _ __ ___ ___ _ __ ___ _ __ __ _| |_(_) ___ _ __
// / __|/ __/ _ \ '_ \ / _ \ / _ \| '_ \ / _ \ '__/ _` | __| |/ _ \| '_... |
///////////////////////////////////////
///////////////////////////////////////
///////////////////////////////////////
//
// Created by root on 01.12.17.
//
#include <mutex>
#include <vector>
#include <iostream>
#include <thread>
#include <enet/enet.h>
#include <cstring>
#include <portaudio.h>
#include <opus/opus.h>
#... |
//
// Sphere.cpp
// Gaia
//
// Created by <NAME> on 4/18/20.
// Copyright © 2020 SphereEnix. All rights reserved.
//
#include "Sphere.h"
#include "PhysicsConstant.h"
#define AIRBOURNE 0
Sphere::Sphere(){
}
Sphere::Sphere(float m, float r) : Primitive(m), radius(r) {
mass = m;
I0 = glm::mat3(0.0f);
I0... |
#include "renderer.h"
// Include GLM to use glm::vec2/vec3 ... data types to represent data from 3d model file (like .obj), and call glm::translate()/rotate()
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
using namespace glm;
// To Read vertices/uv/normal/indices buffers-data from .obj 3d model file
... |
// nnet3/nnet-ctc-test.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 obtain a copy of... |
/* Audio Library for Teensy 3.X
* Copyright (c) 2019, <NAME>, <EMAIL>
*
* Development of this audio library was funded by PJRC.COM, LLC by sales of
* Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop
* open source software by purchasing Teensy or other PJRC products.
*
* Permission is he... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.