text stringlengths 5.71k 33.7k |
|---|
#include "utils.h"
#include "serial.h"
int parseCharReplyIntoArray( char* input, double* parsedReply ){
//takes in a character array that has commands/params separated by spaces, and gives an equivalent floating array.
char localResultCopy[20];
int numGroups, currentParsedIndex = 0;
int numSpaces = findNumSpace... |
/**
* Meet Programming Language Interpreter.
*
* 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 ... |
/*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... |
// ----------------------------------------------------------------------
// AMReX_ProfParserBatch.cpp
// ----------------------------------------------------------------------
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <list>
#include <typ... |
// Copyright (c) <NAME>
// Licensed under the MIT License
#define OAPI_IMPLEMENTATION
#include "Orbiter.h"
#include "MfdUser.h"
#include "Config.h"
#include "Astro.h"
#include "Select.h"
#include "Planet.h"
#include "Base.h"
#include "Psys.h"
#include "Nav.h"
#include <stdio.h>
#include <strstream>
#include <iomanip>... |
#include "SMXGif.h"
#include <stdint.h>
#include <string>
#include <vector>
using namespace std;
// This is a simple animated GIF decoder. It always decodes to RGBA color,
// discarding palettes, and decodes the whole file at once.
class GIFError: public exception { };
struct Palette
{
SMXGif::Color color[256];... |
/*
* taskQueue.cpp
*
* Created on: 2015年8月30日
* Author: gavinlli
*/
#include "task_client.h"
#include <iostream>
#include <cstdlib>
#include <netdb.h>
#include <fstream>
#include "wbl_comm.h"
#include <unistd.h>
#include <stdio.h>
#include "info.h"
#include <fcntl.h>
#include "tools.h"
#include "timer.h"
u... |
#include <stdio.h>
#include <iostream>
#include <ImfRgbaFile.h> // OpenEXR headers
#include <ImfArray.h>
#include <GLTools.h>
#include <GLShaderManager.h>
#include <GLFrustum.h>
#include <GLBatch.h>
#include <GLMatrixStack.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h>
#include <GL\glu.h>
#ifd... |
#include "sysex.h"
#include "common.h"
//Sysex conversion functions
const size_t SYSEX_CHECKSUM_START = 6;
//In a couple of places data is encoded in '14 bit' value,
//using two u8's, 7 bits each
void to_14bit(unsigned short in, u8& msb, u8& lsb)
{
lsb = in & 0x007f;
msb = (in >> 7) & 0x007f;
}
unsigned sho... |
// SNCOperators.cpp - Code for the SNC operator equations.
// See SNCOperators.hpp for details.
//
// Copyright (c) 2016 <NAME>.
// Licensed under the MIT License. See LICENSE file for details.
//
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <stdint.h>
#include <set>
#include <vector>
#include <limi... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/******************************************************************************
* Version: 1.0.1
* Last modified on: 19 March, 2019
* Developers: <NAME>
* email: m_(DOT)_epitropakis_(AT)_gmail_(DOT)_com
* ***************************************************************************/
#include <iostream>
#includ... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016 <NAME>, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... |
#include <AnkleKneeInterface/AnkleKneeInterface.hpp>
#include <utils/BSplineBasic.h>
#include <utils/ParameterFetcher.hpp>
#include <utils/utilities.hpp>
#include <cmath>
#include <data_manager/DataManager.hpp>
#include <nodelet/nodelet.h>
AnkleKneeInterface::AnkleKneeInterface() : mTime(0.0),
... |
/* *
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
#include "Angel-yjc.h"
#pragma comment(lib, "glew32.lib")
#include <fstream>
#include <string>
#include <math.h>
using namespace std;
typedef Angel::vec3 color3;
typedef Angel::vec3 point3;
GLuint Angel::InitShader(const char* vShaderFile, const char* fShaderFile);
GLuint program; /* shader pro... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include "waot_visitor.h"
#include "wasm.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Mo... |
//===- SCCP.cpp - Sparse Conditional Constant Propagation -----------------===//
//
// 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
//
//===---------------------------... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsUE library.
*
* srsUE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Softwa... |
#include "MainWindow.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <glbinding\gl\gl.h>
#pragma warning(disable: 4251)
#include <glbinding\Binding.h>
#pragma warning(default: 4251)
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtx\transform.hpp>
#include <glm\gtx\string_cast.hpp>
#in... |
/*
* appmacedon.cc : part of the Mace toolkit for building distributed systems
*
* Copyright (c) 2011, <NAME>, <NAME>, <NAME>, <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:
*
... |
#include <bits/stdc++.h>
using namespace std;
const double INF = 1e9;
const double EPS = 1e-9;
double DEG_to_RAD(double d) { return d*M_PI/180.0; }
double RAD_to_DEG(double r) { return r*180.0/M_PI; }
// struct point_i { int x, y; }; // minimalist mode
struct point_i {
int x, y; ... |
/*
All rights reserved. Use of this source code is governed by the
3-clause BSD License in LICENSE.txt.
*/
/* This file is formatted with:
astyle --style=kr --indent=tab=2 --one-line=keep-blocks --brackets=break-closing
*/
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/layout.h>
#includ... |
/*
* Copyright (C) 2017 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... |
#include "ocproxy.h"
#include "ocval.h"
#include "ocstreamingpool.h"
#include "ocpermutations.h"
#include "octhread.h"
#if defined(OC_FORCE_NAMESPACE)
using namespace OC;
#endif
// Tests for Proxies in three forms: Plain reference counted,
// Locked (for threads) reference counted, Locked (for threads)
// but forc... |
#include "AliHighPtDeDxBase.h"
#include <TMath.h>
#include <TStyle.h>
#include <TROOT.h>
#ifndef __IOSTREAM__
#include <iostream>
#endif
using namespace std;
ClassImp(AliHighPtDeDxBase);
//
// AliHighPtDeDxBase class
//
// This class contains the AliHighPtDeDxBase information
//
//_______________________________... |
/* *************************************************************************
** INTEL Corporation Proprietary Information
**
** This listing is supplied under the terms of a license
** agreement with INTEL Corporation and may not be copied
** nor disclosed except in accordance with the terms of
** ... |
/**
* Copyright 2019 DayHR 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 ... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
// c++ -g -std=c++11 -I../../opensubdiv -I../../regression subdivision_matrices_osd.cpp -o subdivision_matrices_osd -DSUBDIVISION_MATRICES_OSD_MAIN ../../build/lib/libosdCPU.a
#include "subdivision_matrices_osd.h"
#include <vector>
#include <cassert>
#include <memory> // unique_ptr
#include <algorithm> // fill
#incl... |
//===-- CommandObjectFrame.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2011 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
/*
Copyright 2014 F-Secure
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
distri... |
//////////////////////////////////////////////////////////////////////
/// @file library.hpp
/// @author <NAME>
/// @brief Templated search and sort routines
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
/// @fn void swap(v... |
#include "algos/core.cpp"
#include <algorithm>
class SingleFASTQ
{
int occurrences = 0;
vector<int> int_quality;
string id, seq, pholder, qual;
friend ostream &operator<<(ostream &os, const SingleFASTQ &single);
// Quality Parameters
bool readAffected = false;
// count trimming bases affecteds Quality Trimming... |
//
// Created by <NAME> on 12/1/13.
//
//
#include "testApp.h"
using namespace ofxCv;
using namespace cv;
void testApp::setup() {
// if(bUsePs3Eye){
int numPs3Eye = ps3eye.listDevices().size();
cout<<"Number of Ps3 Eye connected: "<< numPs3Eye<< endl;
if(numPs3Eye>0){
bUsePs3Eye=true;
... |
/********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford University
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... |
#include "OgreApplication.h"
#include <Framework/Camera.h>
#include <Simulation/Simulation.h>
#include <iostream>
static double STEP_LENGTH = 0.03;
using namespace std;
OgreApplication::OgreApplication(void):root(nullptr), renderWindow( nullptr), sceneManager ( nullptr), rootSceneNode ( nullptr), viewport( nullptr),... |
/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "quakedef.h"
#include "cdll_int.h"
#include "draw.h"
#include "tmessage.h"
#include "common.h"
#include "charac... |
#include "iop_concentrator.h"
#include "cray_mainframe.h"
#include <algorithm>
#include <time.h>
/////////////////////////////////////////////////////////
// IopConcentrator_c
/////////////////////////////////////////////////////////
void IopConcentrator_c::MasterClear(bool aValue) {
if (mState != State_InMasterClea... |
/*
Code is based on the the ABP example of the arduino-lmic library
which is licensed under the MIT license
Copyright (c) 2015 <NAME> and <NAME>
Copyright (c) 2018 <NAME>, MCCI
https://github.com/mcci-catena/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino
*/
#include <lmic.h>
#include <hal/hal.h>
#include <Wire... |
#include "App.h"
#include "SceneManager.h"
#include "Input.h"
#include "Textures.h"
#include "Render.h"
#include "EntityManager.h"
#include "Player.h"
#include "Wolf.h"
#include "Map.h"
#include "Pathfinding.h"
#include "Log.h"
Wolf::Wolf(iPoint pos) : Enemy(pos)
{
name.Create("wolf");
// Left Animations
// Idle a... |
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <time.h>
#include <array>
#include <fstream>
#include <future>
#include <initi... |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2015) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
/*
pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>.
This file is part of pbrt.
pbrt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your... |
#include <cmath>
#include <QtMath>
#include <unordered_set>
#include <unordered_map>
#include "util.h"
#include "version.h"
QString valueOfKeyInMapOrEmpty(const std::map<QString, QString> &map, const QString &key)
{
auto it = map.find(key);
if (it == map.end())
return QString();
return it->second;
... |
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/python/index.cpp", line)
#include <pybind11/numpy.h>
#include <awkward/python/content.h>
#include "awkward/python/util.h"
#include "awkward/python/index.h"
#include "awkward/... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#include "pass_manager.h"
#include "program_node.h"
#include "layout_optimizer.h"
#include "cldnn/graph/program.hpp"
#include "prog... |
/****************************************************************************
* Copyright (c) 2020, CEA
* 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 retai... |
#include <streamer/core/Endian.h>
#include <streamer/core/Debug.h>
#include <streamer/flv/FLVWriter.h>
#include <streamer/amf/AMF0.h>
FLVWriter::FLVWriter(BitStream& bs)
:bs(bs)
,audio_codec(FLV_SOUNDFORMAT_UNKNOWN)
,video_codec(FLV_VIDEOCODEC_UNKNOWN)
,audio_samplerate(FLV_SOUNDRATE_UNKNOWN)
,audio_datarat... |
// -*- C++ -*-
//
// Package: V0Producer
// Class: V0Fitter
//
/**\class V0Fitter V0Fitter.cc RecoVertex/V0Producer/src/V0Fitter.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Fri May 18 22:57:40 CEST 2007
//
//
... |
#include <algorithm>
#include <atomic>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <numeric>
#include <vector>
#include <SDL.h>
#include <SDL_ttf.h>
#include "spectrum.h"
namespace
{
// Constants
const SDL_AudioDeviceID g_first_valid_device_id= 2u;
const unsigned int g_max_metro_rate= 256;
// ... |
#include "gpuBeamformPulsarSimulate.hpp"
#include "chimeMetadata.h"
#include "errors.h"
#include "fpga_header_functions.h"
#include <math.h>
#include <time.h>
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b)&0x0F)
#define PI 3.14159265
#define light 299792458.
#define one_over_c 0.0033356
#define... |
#include "stdafx.h"
#include "Shape.h"
#include <iostream>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
using namespace std;
void Shape::loadMesh(const string & meshName, string * mtlpath)
{
// Load geometry
// Some obj files contain material information.
vector<tinyobj::shape_t>... |
/**
* Copyright 2018 <NAME> Oceanographic Institution
*
* 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 fo... |
/***********[greedySatSolver.cc]
Copyright (c) 2012-2013 <NAME>, <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, m... |
/* t-ocsp.c - Basic tests for the OCSP subsystem.
* Copyright (C) 2003 g10 Code GmbH
*
* This file is part of KSBA.
*
* KSBA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the ... |
// gmm/mle-diag-gmm-test.cc
// Copyright 2009-2011 <NAME>; <NAME>; Saarland University;
// Microsoft Corporation; <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 ... |
/*------------------------------------------------------------------------------
* LPATS Protocol Support Library
*
* Copyright 2016 Commonwealth of Australia, Bureau of Meteorology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// <NAME>, U.S. Geological Survey
// <NAME>, GNS Science
// <NAME>, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright ... |
#include <array>
#include <chrono> // for std::chrono functions
#include <cstddef> // for std::size_t
#include <numeric> // for std::iota
#include <iostream>
#include <algorithm> // for std::sort
//**********************************************************************************************************
//For much of... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
//
// Lol Engine
//
// Copyright © 2017—2020 <NAME> <<EMAIL>>
// © 2009—2015 Benjamin “Touky” Huet <<EMAIL>>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck... |
/*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
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.
... |
/**
* \file GEMSegmentAlgorithm.cc
* based on CSCSegAlgoST.cc
*
* \authors: <NAME>, <NAME>
*/
#include "GEMSegmentAlgorithm.h"
#include "MuonSegFit.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/GeometryVector/interfac... |
#include "layer/terrain_layer.h"
#include <glm/vec2.hpp>
enum class S3Field
{
Sea0 = 0,
Sea1 = 1,
Sea2 = 2,
Sea3 = 3,
Sea4 = 4,
Sea5 = 5,
Sea6 = 6,
Sea7 = 7,
Grass = 16,
Field = 17,
GrassRock = 18, // unused ?
GrassRiver = 19,
GrassDesert = 20,
GrassSwamp = 21,
// = 22 // ?
GrassMud = 23,
Rock = 32... |
//Data Visualization related functions of Debug Window
#include "DebugWindow.h"
#include "imgui/imgui.h"
#include "GPUState.h"
#include "Uniforms.h"
#include "FileIO.h"
void ShowImage(const char* name, const Image2D &img, float scale, float m, ImVec4 multipiers = ImVec4(1,1,1,1))
{
GLuint tex_id = img.get(); GLint te... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
/*
Copyright 2022 NVIDIA 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 law or agreed to in writing, softw... |
// vim: set expandtab tabstop=8 shiftwidth=8 foldmethod=marker:
/** @file Operaciones.cpp
* Realiza operaciones en un índice.
*
* @package Mt77
* @author <NAME>. <EMAIL>
* Dominio público. 2009. Sin garantías
* http://creativecommons.org/licenses/publicdomain/
* @version $Id: Operaciones.cpp,v 1.9 2010/01/18 ... |
/*
* mplp_alg.cpp
* mplp
*
* Created by <NAME> and <NAME> on 6/25/08.
* Copyright 2008 MIT. All rights reserved.
*
*/
#include "mplp_alg.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <ctime>
#include <algorithm>
void print_int_vec(vector<int> v)
{
for (int i=0; i<v.size(); i++)
c... |
// Copyright 2014 Toggl Desktop developers.
#include "../src/toggl_api_private.h"
#include <cstdlib>
#include "./client.h"
#include "./context.h"
#include "./formatter.h"
#include "./project.h"
#include "./time_entry.h"
#include "./timeline_event.h"
#include "./workspace.h"
#include "Poco/Logger.h"
#include "Poco/U... |
#include <ege.h>
#include<map>
#include<string>
#include<typeinfo>
#include<fstream>
#include<algorithm>
#include<Windows.h>
#include<vector>
using namespace std;
#define UP 1
#define DOWN 2
#define LEFT 3
#define RIGHT 4
int scrollSpeed = 1; //小车移动速度
int carSpeed = 4; //小车敏捷度
bool STATE = true; //游戏状态
bool bomb... |
/////////////////////////////////////////////////
// Includes
#include "stdafx.h"
#include "cgi.h"
/////////////////////////////////////////////////
// Cgi-Input
class TCgiInChRet{
PSIn SIn;
int Chs, ChN;
public:
TCgiInChRet(const PSIn& _SIn, const int& _Chs):
SIn(_SIn), Chs(_Chs), ChN(0){}
TCgiInChRet& op... |
#include "ZobBehaviorCar.h"
#include "../DirectZob.h"
#include "../Rendering/Engine.h"
#include "../ZobPhysic/ZobPhysicsEngine.h"
#include "../ZobPhysic/ZobPhysicComponent.h"
#include "../Managers/ZobInputManager.h"
#include "../Rendering/text2D.h"
#include "../ZobObjects/ZobObject.h"
#include <math.h>
#define MS_TO_K... |
/*********************************************************************
* Filename: md5.c
* Author: <NAME> (brad AT bradconte.com)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Implementation of the MD5 hashing algorithm.
Algorithm specification can be found ... |
// Begin CVS Header
// $Source: /fs/turing/cvs/copasi_dev/copasi/trajectory/CLsodaMethod.cpp,v $
// $Revision: 1.62 $
// $Name: Build-33 $
// $Author: shoops $
// $Date: 2010/08/10 14:50:40 $
// End CVS Header
// Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heid... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/*
* Isoline2Polyline
*
* Converters the Line cell sets produced by the Isoline module
* into polyline cell sets
*
* Downsize means now many nodes along each isoline to skip
* before creating another node in the polyline. Downsize of 1 means every
* node will be mapped.
*
* <NAME>, AVS Italy,
* Adopted from... |
#include "SequencingReadProcessor.h"
/**
* This function takes in a directory name (dataDir) and processes all
* sequencing read files in the directory.
*/
bool SequencingReadProcessor::ProcessSequencingRead(char* dataDir,
char* sampleBarcodeFile)
{
InitializeProcessor(dataDir, sampleBarcodeFile);
in... |
#include "less/value/ValueProcessor.h"
#include "less/value/ColorFunctions.h"
#include "less/value/NumberFunctions.h"
#include "less/value/StringFunctions.h"
#include "less/value/UrlFunctions.h"
ValueProcessor::ValueProcessor() {
NumberFunctions::loadFunctions(functionLibrary);
ColorFunctions::loadFunctions(funct... |
//
// FILE NAME: CQCInst_Utils.cpp
//
// AUTHOR: <NAME>
//
// CREATED: 08/04/2000
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.org/licens... |
/*
Copyright 2016 Massachusetts 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... |
/// \todo ?
#ifdef _MSC_VER // is Microsoft compiler?
# if _MSC_VER < 1300 // is 'old' VC 6 compiler?
# pragma warning( disable : 4786 ) // 'identifier was truncated to '255' characters in the debug information'
# endif // #if _MSC_VER < 1300
#endif // #ifdef _MSC_VER
#include <windows.h>
#include <process.h... |
/*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... |
/*
* Copyright (C) 2012-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... |
// -*- C++ -*-
//
// ======================================================================
//
// <NAME>, U.S. Geological Survey
// <NAME>, GNS Science
// <NAME>, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright ... |
/*
* Copyright (C) Bitmain Technologies Inc.
* All Rights Reserved.
*/
#include <llvm/Support/Debug.h>
#include <llvm/Support/Format.h>
#include <llvm/Support/raw_ostream.h>
#include <cmath>
#include "CviBackendContext.h"
#define DEBUG_TYPE "cvi_backend_upsample_kernel"
static void upsample_split(
const CviBac... |
//
//
// File author(s): <<NAME> and <NAME>>, (C) 2014
//
// Copyright: this software is licenced under the terms stipulated in the license.txt file located in its root directory
//
//
//!\file solverIm-cpu.cpp
// \brief The implicit cpu solver of Neurite
#include "coupling.h"
#include "solverIm-cpu.h"
#include "dis... |
// Copyright (C) (See commit logs on github.com/robhz786/strf)
// 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)
#include <strf/to_string.hpp>
#include <strf/locale.hpp>
#include <strf/to_cfile.hpp>
#if ! de... |
#include <iostream>
#include <string>
#include <fstream>
#include <IL/il.h>
#include "maths.h"
#include "scene.h"
Triangle::Triangle(Vector& P0, Vector& P1, Vector& P2)
{
points[0] = P0; points[1] = P1; points[2] = P2;
/* Calculate the normal */
normal = Vector(0, 0, 0);
normal.normalize();
//Calculate the Mi... |
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
... |
//
// Created by zxjcarrot on 2019-07-15.
//
#include <vector>
#include "table/filter_block.h"
#include "table/format.h"
#include "table/merger.h"
#include "util/coding.h"
#include "silkstore/leaf_store.h"
#include "silkstore/silkstore_iter.h"
#include "silkstore/util.h"
#include "silkstore/segment.h"
extern int ... |
// Copyright (c) 2006-2008 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 "net/url_request/url_request_ftp_job.h"
#include <windows.h>
#include <wininet.h>
#include "base/message_loop.h"
#include "base/string... |
#include <iostream>
#include <Utilities/Timer.h>
#include <Utilities/Utilities_print.h>
#include "SolverMPC.h"
#include "ConvexMPCLocomotion.h"
#include "convexMPC_interface.h"
#include "Gait.h"
ConvexMPCLocomotion::ConvexMPCLocomotion(float _dt, int _iterations_between_mpc, MIT_UserParameters* parameters) :
iterat... |
//
// SkyNet Project
// Copyright (C) 2018 by Contributors <https://github.com/Tyill/skynet>
//
// This code is licensed under the 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 deal
// in the Sof... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.