text stringlengths 3.08k 12.5k |
|---|
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <cmath>
using namespace std;
int var_liste[512] = { 0 };
string var_name[512] = { "unset" };
int maxset = 0;
bool DEBUGPRINT = false;
void setvar(string name, int vall) {
for (int i = 0; i <= maxset; i++) {
if (... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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,
*... |
// #define NDEBUG
#include <cassert>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <climits>
#include <map>
#include <algorithm>
using namespace std;
#define NMAX 500000
#define INF LLONG_MAX
#define A 65
#define B 100
#define mp make_pair
typedef unsigned long long u64;
typedef pair<int, int> I... |
#include "../include/robot.h"
robot::robot()
{
mc.connect();
}
robot::~robot()
{
}
void robot::setDistances(float d1, float d2, float d3, float d4)
{
this->d1 = d1;
this->d2 = d2;
this->d3 = d3;
this->d4 = d4;
}
void robot::setEncoderValues(int* enc_min_vals, int* enc_max_vals)
{
for (int i=0; i < 4; i++)
{... |
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#include <WinSock2.h>
#include <iphlpapi.h>
#include <WS2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#pragma comment(lib, "Ws2_32.lib")
const PCSTR DEFAULT_PORT = "27015";
const int DEFAULT_BUFFER_SEND_LENGTH = ... |
#include "Radar.h"
using namespace Client;
//[junk_enable /]
void CRadar::RadarRange(float* x, float* y, float range)
{
if (fabs((*x)) > range || fabs((*y)) > range)
{
if ((*y) > (*x))
{
if ((*y) > -(*x))
{
(*x) = range * (*x) / (*y);
(*y) = range;
}
else
{
(*y) = -range * (*y) / (*x);... |
// Copyright 2020-2021 CesiumGS, Inc. and Contributors
#include "IonLoginPanel.h"
#include "CesiumEditor.h"
#include "CesiumIonClient/Connection.h"
#include "CesiumIonClient/Token.h"
#include "HAL/PlatformApplicationMisc.h"
#include "Misc/App.h"
#include "Styling/SlateStyle.h"
#include "Widgets/Images/SImage.h"
#inclu... |
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... |
/**
* Tracker.cpp
*
* Copyright (C) 2014-2018 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "Tracker.h"
tracking::Tracker::Tracker(void)
: m_initialised(false)
, m_connected(false)
, m_button_devices()
, m_motion_devices()
, m_active_node() {
//... |
#include "Server.hpp"
// TODO: general storage that gets sent out automatically when a new client connects
// ensures a client can join midway without any problems.
// everything except for drive levels and levels should be OR'able
void Server::start(int port)
{
httplib::Server svr;
svr.Get("/request",... |
//
// cv_subtraction_watchdog.exe
//
#pragma once
#include <SDKDDKVer.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#pragma warning(disable: 4819)
#ifdef _DEBUG
#pragma comment(lib, "opencv_world300d.lib")
#else
#endif
#pragma comment(lib, "opencv_world300.lib")
#include <iostream>
#include <opencv2/imgproc.hp... |
#include<iostream>
#include<queue>
#include<cmath>
using namespace std;
/*program to find smallest number in BST greater than equal to N
1)Method-1 Using level order traversal.
2)Using Morris traversal.
3)using Recurion and inorder traversal
4)By finding floor is also an space efficient approach
*/
struct node {
i... |
#pragma once
#include <list>
#include <set>
#include <utility>
#include <algorithm>
#include <iterator>
#include "terrain/terrain.hpp"
auto equal(agl::Vec2 a, agl::Vec2 b) {
return a[0] == b[0] && a[1] == b[1];
}
auto cost(float d, float s, float k) {
return (1 - k) * d + k * s;
}
inline
auto compute_path(... |
/*
* Modified by <NAME> (2021)
*/
#include <cstdio>
#include <ctime>
#include <cstring> // memset
#include <cstdlib> // rand, RAND_MAX
#include <cmath> // sqrtf
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
#include "main_window.moc.hpp"
#include "utils.h"
#include "../inireader.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QFile>
#include <QMessageBox>
#include <QFileDialog>
#include <QRegExp>
// Will only work correctly on little-endian systems for now.
WaveRecorde... |
#include "cppunit/extensions/HelperMacros.h"
#include <algorithm>
#include <iterator>
#include <iostream>
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/Common/interface/RefProd.h"
#include "DataFormats/Common/interface/TestHandle.h"
using namespace edm;
class testValueMapNew : public CppUnit... |
// Scans for modified modules within the process of a given PID
// author: hasherezade (<EMAIL>)
#include <Windows.h>
#include <Psapi.h>
#include <sstream>
#include <fstream>
#include "utils/process_privilege.h"
#include "utils/util.h"
#include "peconv.h"
#include "pe_sieve.h"
#define PARAM_PID "/pid"
#define PARA... |
// This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
#include <git2/sys/transport.h>
}
#include "../include/functions/copy.h"
#include "../include/transport.h"
#include "../include/re... |
#pragma once
#include "simlib/debug.hh"
#include "simlib/defer.hh"
#include "simlib/file_descriptor.hh"
#include <array>
#include <cassert>
#include <csignal>
#include <cstring>
#include <exception>
#include <fcntl.h>
#include <poll.h>
#include <sys/eventfd.h>
#include <thread>
#include <type_traits>
#include <unistd... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
#include "func/syntax.hpp"
std::vector<Expr*>::iterator find(std::vector<Expr*> &vec, Expr *expr) noexcept {
for (auto it = vec.begin(); it != vec.end(); ++it)
if (*it == expr) return it;
return vec.end();
}
// Expr
Expr *Expr::evalWithLookup(GCMain &gc, Environment &env) noexcept {
StackFrameObj<Expr> th... |
#include "BinaryOp.h"
#include "Visitor.h"
using namespace std;
using namespace common;
void Add::accept(Visitor &V) { V.visit(*this); }
void Sub::accept(Visitor &V) { V.visit(*this); }
void Mul::accept(Visitor &V) { V.visit(*this); }
void Div::accept(Visitor &v) { v.visit(*this); }
void Mod::accept(Visitor &V) { V.v... |
#include "pch.hpp"
#include "Font.hpp"
Glyph::Glyph(
float left, float bottom, float right, float top,
float w, float h, float xBear, float yBear, float adv
) :
texCoordL(left), texCoordB(bottom),
texCoordR(right), texCoordT(top),
width(w), height(h),
xBearing(xBear), yBearing(yBear),
adva... |
#include <string>
#include <iostream>
#include <fstream>
#include <math.h>
#include <vector>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/Dense>
using namespace std;
string scan_match_file = "./scan_match.txt";
string odom_file = "./odom.txt";
int main(int argc, char **argv)
{
// 放置激光雷达的时间和匹配... |
#include <iostream>
#include <thread>
#include <vector>
#include <string>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/tokenizer.hpp>
using namespace boost::asio;
io_service service;
ip::tcp::endpoint ep(ip::address::from_string("127.0.0.1"), 8001);
ip::tcp::socket sock(service);
int already_re... |
/*
This file is part of the CVD Library.
Copyright (C) 2005 The Authors
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at ... |
//-----------------------------------------------------------------
// RISC-V ISA Simulator
// V1.0
// Ultra-Embedded.com
// Copyright 2014-2017
//
// <EMAIL>
//
// License: BSD
//------------... |
#include "DebugDraw.h"
#include "Model.h"
#include "Transform.h"
void DebugDraw::Initialize()
{
auto debugScene = Engine::Create<GraphicsEngine::Scene>();
debugScene->SetParent(This.lock());
DebugScene = debugScene;
}
std::shared_ptr<GraphicsEngine::Scene> DebugDraw::GetScene()
{
return DebugScene.lock();
}
v... |
#include "tkdCmdParser.h"
#include "annCommon.h"
#include "graphCommon.h"
#include "annRelabel.h"
//Structure of the command line parameters
struct parameters
{
std::string inputFileName;
std::string outputFileName;
std::string maskFileName;
double threshold;
int clusters;
int repeat;
bool verbose;
bool noThre... |
/*
Load Linux ELF executables and run them.
Dr. Orion Lawlor and CS 321 class, 2021-02 (Public Domain)
*/
#include "GLaDOS/GLaDOS.h"
#include "elf.h"
// From asm_util.s:
typedef long (*function_t)(void);
extern "C" uint64_t start_function_with_stack(function_t f,uint64_t *stack);
extern "C" void return_to_main_stack(... |
/*
Copyright 2021 OpenJAUS, LLC (dba MechaSpin). Subject to the MIT license.
*/
#include <iostream>
#include <parakeet/Driver.h>
#include <parakeet/util.h>
const char versionNumber[] = "1.0.0";
std::shared_ptr<mechaspin::parakeet::PointPolar> minPoint;
std::shared_ptr<mechaspin::parakeet::PointPolar> maxPoint;
std... |
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <iostream>
#include <cstdio>
using namespace std;
GLint vertexID;
GLint fragID;
GLuint shader;
// You shouldn't have to call this function (it's called from the functions
// that make shaders); it is a helper function to determine if a shader compiled correctly.... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "ComponentPosition.h"
#include "ComponentVelocity.h"
#include "SystemMove.h"
#include "SystemRender.h"
#include "globals.h"
#include <aunteater/UpdateTiming.h>
#include <aunteater/SystemManager.h>
#include <array>
#include <iomanip>
#include <iostream>
#inclu... |
#include <cstring>
#include "ScoWriter.h"
void write(FILE *file, const size_t size, void *src)
{
if (src) fwrite(src, size, 1, file);
}
void write_int(FILE *file, int src)
{
write(file, 4, &src);
}
void write_char(FILE *file, char src)
{
write(file, 1, &src);
}
void write_float(FILE *file, floa... |
// pololu-tracker.cpp - GitHub repository at https://github.com/Awesomelotad/pololu-tracker if needed
// Developed by: <NAME>, ID: 17982686
// ENSE504 2018 Assignment 2 program code
#include "mbed.h"
#include "m3pimaze.h"
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <map>
using... |
// *****************************************************************************
/*!
\file src/Main/WalkerPrint.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for ... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, 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 with the addit... |
#define NO_IMPORT_ARRAY
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL FIXPRS_ARRAY_API
#include <numpy/arrayobject.h>
#include <numpy/npy_3kcompat.h>
#include "ThreadPool.h"
#include "array.hh"
#include "column.hh"
#include "config.hh"
#include "parse.hh"
#include "parse_int.hh"
#includ... |
#include <iostream>
#include <interpreter.h>
#include <lexer.h>
#include <iomanip>
#include <limits>
#include <cmath>
#define DELTA_X 0.0001
#define TAKE_AT_X DELTA_X * 100
#ifdef DEBUG
#define debug(x) std::cout << x << std::endl
#define ndebug(x) std::cout << x
#else
#define debug(x) do {} while(0)
#define ndebug(x)... |
/*
By: facug91
From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=694
Name: A Plug for UNIX
Date: 16/05/2015
*/
#include <bits/stdc++.h>
#define EPS 1e-9
#define DEBUG(x) cerr << "#" << (#x) << ": " << (x) << endl
const double... |
#include <iostream>
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "FileHelper.h"
#include "Paths.h"
#include "Shader.h"
#include "stb_image.h"
void OnFrameBufferResized(GLFWwindow* Window, int Width, int Height)
{
glViewport(0, 0, Width, Height);
}
void ProcessInput(GLFWwindow* Window)
{
if (glfwGet... |
#include <mbed.h>
#define DATA_SIZE 330
#define CRC16 0x8005
#define BUFFER_SIZE DATA_SIZE + 2
#define CORRECT_CRC 1
#define START_SIGNAL 0xCC
#define SPI_FREQUENCY 500000
Serial pc(USBTX,USBRX);
SPISlave device(PA_7, PA_6, PA_5, PA_15);
int send_packet(uint8_t* buffer);
void generate_random_data(uint8_t* buffer);... |
/*
*
* Copyright (C) 1996-2005, OFFIS
*
* This software and supporting documentation were developed by
*
* Kuratorium OFFIS e.V.
* Healthcare Information and Communication Systems
* Escherweg 2
* D-26121 Oldenburg, Germany
*
* THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRA... |
/*
* Copyright 2015 Intel(r) 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 agr... |
/*********************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2018, Rawashdeh Research Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ... |
// Copyright (c) 2009 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 "base/file_util.h"
#include "base/string_util.h"
#include "base/path_service.h"
#include "chrome/browser/diagnostics/diagnostics_test.h"
#inc... |
int partition(
void *start,
int length,
size_t size,
int (*filter)(void *, void *),
void *extra_args )
{
int left = 0;
char temp[1024];
assert( sizeof( temp ) >= size );
for ( int i = 0; i < length; i++ ){
char *current = ( char *)start + i * size;
if ( filter( (void *)current, extra... |
#pragma once
#include <crab/common/os.hpp>
#include <boost/functional/hash.hpp>
#include <gmp.h>
// TODO: replace ikos with crab namespace. This class has nothing to
// do with the ikos one. Kept for now for compatibility issues with
// some clients.
namespace ikos {
// GMP can convert directly from/to signed/unsig... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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/
*
... |
#include "ImmortalManager.h"
#include "Util.h"
#include "CCBot.h"
ImmortalInfo::ImmortalInfo() :
m_hpLastSecond(45)
{
}
ImmortalInfo::ImmortalInfo(float hp) :
m_hpLastSecond(hp)
{
}
ImmortalManager::ImmortalManager(CCBot & bot)
: MicroManager(bot)
{
}
void ImmortalManager::executeMicro(const std::vector<const... |
// datatable.cpp
//
#include "datatable.h"
#include "engine/load_file.hpp"
DataTable *townerDataTable = nullptr;
DataTable *cowTable = nullptr;
DataTable *monsterTable = nullptr;
DataTable *spellTable = nullptr;
DataTable *playerTable = nullptr;
DataTable *missileTable = nullptr;
DataTable *sfxTable = nullptr;
DataTa... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright 2012, <NAME> <<EMAIL>>
// All rights... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "ImporterMesh.h"
#include "Timer.h"
#include "ResourceMesh.h"
#include "Assimp/include/cimport.h"
#include "Assimp/include/scene.h"
#include "Assimp/include/postprocess.h"
void ImporterMesh::Init()
{
struct aiLogStream stream;
stream = aiGetPredefinedLogStream(aiDefaultLogStream_DEBUGGER, nullptr);
aiAtt... |
#include "ShowElement.h"
#include "ofxLaserUI.h"
#include "ofxClipper.h"
ShowElement::ShowElement(string n)
{
name = n;
loadParameterJson();
}
ShowElement::~ShowElement()
{
}
void ShowElement::loadParameterJson()
{
string filename = "showElements/" + name + ".json";
if (ofFile(filename).exists()) {
param... |
/*
* viewer-core/Driver.cc
* Avida
*
* Created by David on 10/28/10.
* Copyright 2010-2011 Michigan State University. All rights reserved.
* http://avida.devosoft.org/
*
*
* This file is part of Avida.
*
* Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Less... |
/*-----------------------------------------------------------------
Copyright (C) 2005 - 2017
Michael "Chishm" Chisholm
Dave "WinterMute" Murphy
Claudio "sverx"
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 Soft... |
#include <mav_trajectory_generation/polynomial_optimization_linear.h>
#include <mav_trajectory_generation/trajectory.h>
#include <mav_trajectory_generation_ros/ros_visualization.h>
#include <geometry_msgs/PoseArray.h>
#include <nav_msgs/Path.h>
#include <math.h>
#include <tf/transform_datatypes.h>
#define PI 3.1415926... |
/*
* Copyright 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
#include "expraw.h"
#include <opencv2/opencv.hpp>
std::string type2str(int type)
{
std::string r;
uchar depth = type & CV_MAT_DEPTH_MASK;
uchar chans = 1 + (type >> CV_CN_SHIFT);
switch ( depth ) {
case CV_8U: r = "8U"; break;
case CV_8S: r = "8S"; break;
case CV_16U: r = "16U"; b... |
/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, 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 ... |
// Copyright 2020 <NAME>
#include <mpi.h>
#include <iostream>
#include <ctime>
#include <algorithm>
#include <random>
#include <vector>
#include "../../../modules/task_2/pestreev_d_reader_writer/reader_writer.h"
const int access_W = 100;
const int access_R = 200;
const int access_ReadFinish = 300;
const int iden_type_... |
// Including core SDL libraries
#include <SDL2/SDL.h> // if used requires -lSDL2 to the LDFLAGS
#include <SDL2/SDL_image.h> // if used requires -lSDL2_image to the LDFLAGS
//#include <SDL2/SDL_ttf.h> // requires -lSDL2_ttf ??
//#include <SDL2/SDL_mixer.h> // requires -lSDL2_mixer ??
// Including basic CPP libraries
#i... |
#include "bridge.cpp"
#include <sstream>
using namespace std;
// all the data input, read and parsing functions
void ReadNetworkGraph(const int &num_of_bridges, const bool &trace, vector<Bridge> &network_graph, map< char, vector<int> > &lan_to_bridges) {
network_graph.reserve(num_of_bridges+1); network_graph.push_ba... |
/* Copyright (C) 2006 Imperial College London and others.
Please see the AUTHORS file in the main source directory for a full list
of copyright holders.
Dr <NAME>
Applied Modelling and Computation Group
Department of Earth Science and Engineering
Imperial College London
<EMAIL>
This library is free software... |
#include <bits/stdc++.h>
using namespace std;
// N E S W
int a[4][4];
int b[12];
const int N = 0;
const int E = 1;
const int S = 2;
const int W = 3;
// WARN: N is the size of the points
int to[2000], nxt[2000], head[2000], val[2000], dep[2000], cnt = 1, st, ed, q[2000];
void insert(int x, int y, int z) {
to[++cnt] ... |
#include "DefaultAdapterGenerator.h"
#include <codegen/QtAdapterGenerator.h>
#include <codegen/CodeGenerator.h>
#include <common/QtAdapterUtils.h>
#include <common/Log.h>
#include <common/Exception.h>
#include <QObject>
#include <QFile>
//----------------------------------------------------------------------------... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2010 - 2017, <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 res... |
#include "Cartridge.h"
#include "Error.h"
#include "Mapper0.h"
#include "Mapper1.h"
#include "Mapper2.h"
#include <Windows.h>
Cartridge::Cartridge()
{
}
Cartridge::~Cartridge()
{
}
uint8 Cartridge::ReadPrgRom(uint16 addr)
{
uint16 baseAddress = addr - 0x8000;
uint8 id = baseAddress / 0x1000;
uint16 offset = base... |
/*--------------------------------------------------------------------*\
Pro/TOOLKIT includes
\*--------------------------------------------------------------------*/
#include <ProToolkit.h>
#include <ProObjects.h>
#include <ProMdl.h>
#include <ProFeature.h>
#include <ProTKRunTime.h>
#include "PTApplsUnic... |
/* ecs - equivalence class routines */
/* Copyright (c) 1990 The Regents of the University of California. */
/* All rights reserved. */
/* This code is derived from software contributed to Berkeley by */
/* <NAME>. */
/* The United States Government has rights in this work pursuant */
/* to contract no. DE-AC0... |
#include "../SceneManager.h"
#include "../Entity.h"
#include "../item/Orb.h"
#include "../effect/OrbEffect.h"
#include "FortressBoss.h"
#include "state/BossIdleState.h"
#include "../audio/AudioService.h"
Texture* FortressBoss::_bossTexture = nullptr;
void FortressBoss::_ParseSprites(std::string line) {
_animatedSpri... |
/*
Copyright 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
#include "sbsat.h"
#include "sbsat_solver.h"
#include "solver.h"
void SetVisitedORState(void *pState, int value) {
ORStateEntry *pORState = (ORStateEntry *)pState;
assert(pORState->cType == FN_OR);
if(pORState->visited != value) {
dX_printf(7, "Marking visited=%d of OR State %p\n", value, pORState);
... |
// Include these two files for GPU computing.
#include <include/cufhe_gpu.cuh>
#include <include/encoder.cuh>
#include <include/bootstrap_gpu.cuh>
#include "plain.h"
#include <test/test_util.h>
using namespace cufhe;
#include <iostream>
#include <random>
#include <vector>
using namespace std;
#include <chrono>
using ... |
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <iostream>
#define cimg_display 0
#include "CImg.h"
using namespace cimg_library;
#include <mug.h>
#include <config.h>
using namespace std;
typede... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "DarknessController.h"
#include "Darkness.h"
#include "MainPlayerController.h"
#include "GameFramework/PawnMovementComponent.h"
#include "MainCharacter.h"
#include "GameHUD.h"
// Called on disabling a character
void ADarknessContr... |
//
// WebConnection.cpp
// AirFloat
//
// Created by <NAME> on 2/14/12.
// Copyright (c) 2012 The Famous Software Company. All rights reserved.
//
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include "Log.h"
#include "WebServer.h"
#include "WebHeaders.h"
#inc... |
/*
* File: main_stepByStep.cpp
* Author: polpe
*
* Created on February 10, 2014, 3:24 PM
*/
#include <cstdlib>
#include <iostream>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
struct Obj
{
float x;
float y;
float z;
float pos_x;
float pos_y;... |
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/spinctrl.h>
#include "AssignPlayerDialog.h"
// "Three"-postfix because "compareAlphabetically" is already in playerEdit
// Would have to call this everytime before creating assignPlayerDialog, if I put it in MainWin
bool compareAlphabet... |
#include "gameWorld.hpp"
#include "util/image.hpp"
using namespace std::string_literals;
GameWorld::GameWorld(int cwidth, int cheight) {
cubeShader = Shader::getShader("cubeShader");
this->cwidth = cwidth;
this->cheight = cheight;
int offx = -cwidth / 2;
int offy = -cheight / 2;
for (int i =... |
#include "stdafx.h"
#include <afxinet.h>
#include <string>
#include <list>
#include "Base/FileFuncs.h"
#include "Base/StringFuncs.h"
#include "Base/NumFuncs.h"
#include "Base/MsgLogger.h"
//#include "Base/RegKeyObj.h"
#include "Base/PTDefines.h"
// The log-in information for the upload account. This is based on the as... |
#include "connection_handler.h"
#include "base_application.h"
using asio::ip::tcp;
using namespace Protocol;
/*-------------------------------
Connection Handler
---------------------------------*/
size_t ConnectionHandle::__connectionid = 0;
ConnectionHandle::ConnectionHandle(tcp::socket soc): uuid(__conne... |
/*
Monsters
https://cses.fi/problemset/task/1194
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vii;
typedef vector<ll> vl;
typedef vecto... |
//----------------------------------*-C++-*-----------------------------------//
/**
* @file MGCMDSA.cc
* @brief MGCMDSA member definitions
* @note Copyright(C) 2012-2013 <NAME>
*/
//----------------------------------------------------------------------------//
#include "MGCMDSA.hh"
#include "callow/solver/Li... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <<EMAIL>>
* http://ugene.net
*
* 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
* of the L... |
/*
* MFRC522.cpp
*
* Created: 21-May-19 4:52:02 PM
* Author: tanph
*/
#include "MFRC522.h"
uint8_t SPI_Transceive(uint8_t data){
SPDR = data;
while(!(SPSR & (1<<SPIF)));
return SPDR;
}
void USART_Transmit(char data){
while(!(UCSRA & (1<<UDRE)));
UDR = data;
_delay_ms(5);
}
void USART_SendString(char *da... |
#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
using namespace std;
enum status {
UNKNOWN,
BLACK,
WHITE,
};
struct contradict {};
void show_row(const vector<status> &row, int C) {
for (int i = 0; i < C; i++) {
if (i != 0 && i % 5 == 0) {
cout << '|';
}
switch ... |
#include <iostream>
#include <sstream>
#include <map>
#include <cstdint>
#include <string>
#include "Bus.h"
#include "nes6502.h"
#include "utils.h"
#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"
class Demo_nes2C02 : public olc::PixelGameEngine
{
public:
Demo_nes2C02() { sAppName = "nes2C02 Demonstrati... |
/* Copyright (c) 2012 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
#include "stringutils.h"
#include "test.h"
#include "tree.h"
#include "util.h"
// Return the child-names of a node, read from a line of text
inline const vector<string> children(const string line)
{
return words(split(line, "->").second, ',');
}
// Return the name of a node, read from a line of text
inline const ... |
/*
See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. <NAME> licenses this file
to you 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.apa... |
/*
* Copyright (c) 2015-2018 Dubalu LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
/*
* Copyright (c) 2021, Eureka1024 <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-12 Eureka1024 the first version
*/
/*
* Light rain //小雨
* Overcast //阴天
* Clear //晴
*/
#include "common.h"
void nowWeatherGUI(void);
voi... |
#include <Python.h>
#include <QPainter>
#include <QDebug>
#include <QStyleOptionGraphicsItem>
#include <QOpenGLWidget>
#include "app/app.h"
#include "window/base.h"
#include "viewport/image.h"
#include "viewport/view.h"
#include "viewport/render/instance.h"
#include "window/viewport.h"
DepthImage::DepthImage(Rende... |
// SPDX-License-Identifier: MIT
#include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/ADT/Twine.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Transforms/Utils/ValueMapper.h"
#inclu... |
// Walk and kick gaze behaviour state: Look around
// Author: <NAME> <<EMAIL>>
// Includes
#include <walk_and_kick/beh_states/gaze_beh_look_around.h>
#include <rc_utils/math_vec_mat.h>
#include <rc_utils/math_funcs.h>
// Namespaces
using namespace walk_and_kick;
using namespace rc_utils;
//
// GazeBehLookAround clas... |
#pragma once
#include <cstdint>
#include <limits>
#include <iostream>
#include <map>
#include <unordered_map>
#include <set>
#include <vector>
#include <math.h>
#include "Joiner.hpp"
#include "Parser.hpp"
#include "generator.h"
using namespace std;
// Values that keep the distinct elements vector from allocating to... |
//{Headers
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
//#include<ctime>
#include<iostream>
#include<string>
#include<algorithm>
#include<list>
#include<queue>
#include<deque>
#include<vector>
#include<stack>
#include<map>
#include<set>
#include<bitset>
using namespace std;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.