text stringlengths 3.08k 22k |
|---|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "serverbenchmark_tf.h"
#include "tf_shareddefs.h"
#include "tf_bot_temp.h"
#include "entity_tfstart.h"
#include "t... |
/*
* Inspired by
* https://forum.arduino.cc/t/tft_espi-new-example-for-animated-dials/643382/2
* https://playground.arduino.cc/Main/Fscale/
*/
#include "H_Bar.h"
void H_Bar::begin(TFT_eSPI *tft, int y, int index)
{
_tft = tft;
_y = y;
// Index is 1-based, set to 0 for "T"otal bar
if (index == 0)
{
... |
/*
* Copyright (C) Cvitek Co., Ltd. 2019-2020. All rights reserved.
*
* File Name: TgLutKernel.cpp
* Description:
*/
#include "CviBackendContext.h"
#include <llvm/Support/Debug.h>
#include <llvm/Support/Format.h>
#include <llvm/Support/raw_ostream.h>
#include <iostream>
#include <cmath>
#include "backend/backend_... |
/*------------------------------------------------------
Student's Name: <NAME>
Student's email address: <EMAIL>
Laboratory group: CL/03 Friday 15:30
Purpose of this assignment:
- Simulate a championship tournament using an object
oriented model as in UML diagram in specification
-------------------------------... |
#include <iostream>
#include <fstream>
#include <cfloat>
#include <cstdlib>
#include <sstream>
#include <queue>
#include <map>
#include <cassert>
#include "Optimizer.h"
#include "Util.h"
using namespace std;
void initExperiment(string filename, Cluster*& rootCluster, Grid*& g,
vector<PolygonalPath>& curves, in... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
#include "Grabber.h"
pcl::PointCloud<pcl::PointXYZRGB>::Ptr Grabber::convertToXYZRGBPointCloud (
const boost::shared_ptr<pcl::io::Image> &image,
const boost::shared_ptr<pcl::io::DepthImage> &depth_image,
std::string rgb_frame_id, float constant_)
{
static unsigned rgb_array_size = 0;
static boost::share... |
#include "wifi.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_netif.h"
#define TAG "wifi"
#define LOG(...) ESP_LOGI(TAG, __VA_ARGS__)
#define WIFI_ID 1234
void settings_init(void);
namespace _wifi {
enum class WifiEvent {
//%
ScanDone = 1,
//%
GotIP = 2,
//%
Disco... |
/* **************************************************************************************
* Filename: Login.cpp
* Author: <NAME>.
* Student ID: 934 309 717.
* Date: October 11, 2020.
* Assignment: Program 1 - Wizard Spellbook Catalog.
* Description:
* Input: - A existing file that contains all the login informat... |
#pragma once
#include <assert.h>
#include <optional>
#include <atomic>
namespace taskparts {
/*---------------------------------------------------------------------*/
/* Spinning binary semaphore (for performance debugging) */
/* An implementation of semaphore that is binary (0 or 1) with spinning wait
* - Crashes... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "AudioDef.h"
#include "AudioRecog.h"
#include "AudioUtil.h"
#include "AudioConfig.h"
#include "type/matrix.h"
#include "misc/misc.h"
#include "io/file/io.h"
#include "math/mmath.h"
#include "benchmark.h"
static const char* keyw... |
#include "hud.h"
#include "stage.h"
#include "weapons.h"
#include "render.h"
#include "game.h"
#include "player.h"
#include "caret.h"
#include "bullet.h"
#include "valueview.h"
#include <string>
#include <cstring>
#include <SDL_render.h>
void drawMapName(bool bMini)
{
const auto len = strlen(gMapName.name);
const ... |
//
// Created by mwypych on 11.05.17.
//
#include <vector>
#include <algorithm>
#include <numeric>
#include <string>
#include <memory>
#include <set>
#include <vector>
#include <utility>
#include <map>
#include <ostream>
#include <gtest/gtest.h>
#include <MemLeakTest.h>
#include <StringUtility.h>
#include <Scheduler.h... |
#include "BaseShaderClass.h"
bool BaseShaderClass::Initialize(ID3D11Device* device, HWND hwnd, WCHAR* vsFilename, WCHAR* psFilename, vertexInputType vertexInput)
{
//Initialize through this method because constructor may throw
return InitializeShader(device, hwnd, vsFilename, psFilename, vertexInput);
}
void BaseS... |
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <GLFW/glfw3.h>
GLFWwindow* window;
// Include GLM
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
using namespace glm;
#include <common/shader.hpp>
#include <common/texture... |
/*
* IrLG.cpp
*
* Created on: Jan 15, 2021
* Author: ductu
*/
/***********************************************************************************************************************
* Pragma directive
********************************************************************************************************... |
/*
Hidato puzzle in Gecode.
http://www.shockwave.com/gamelanding/hidato.jsp
http://www.hidato.com/
"""
Puzzles start semi-filled with numbered tiles.
The first and last numbers are circled.
Connect the numbers together to win. Consecutive
number must touch horizontally, vertically, or
diagonally.
... |
/******************************************************************************
u-blox_GNSS.h
u-blox GNSS Arduino
<NAME>
Mar 03, 2019
https://github.com/ldab/u-blox_GNSS
Distributed as-is; no warranty is given.
******************************************************************************/
#include "ublox_GNSS.h"
#in... |
#include "FluidCollider.h"
#include "FluidCode.h"
#include "FluidSystem.h"
using namespace trace;
FluidCollider::FluidCollider()
{
}
FluidCollider::~FluidCollider()
{
}
void FluidCollider::Update(int N, FluidSystem* pFs, std::vector<byte>& cellInfo, real dt)
{
loc += vel * dt;
rot += angVel * dt;
real bou... |
#include <QKeyEvent>
#include <QTimerEvent>
#include <QMatrix4x4>
#include <cmath>
#include "glwidget.h"
#include "integrateur.h"
#include "eulercromer.h"
#include "rungekutta.h"
#include "newmark.h"
using namespace std;
/*!
* Cette méthode initialise le système, et tous les éléments qui le compose.
*
* C'est ici q... |
/*
This file is part of the Dynarithmic TWAIN Library (DTWAIN).
Copyright (c) 2002-2021 Dynarithmic Software.
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.... |
#include "QueryFunction.h"
#include <iomanip>
time_type getDatasetStartTime(string datasetPath);
int main(int argc, char* argv[]) {
cout << fixed;
#if defined(DEBUG) || defined(HINT)
cout << setprecision(7);
timeval main_start, main_end;
gettimeofday( &main_start, NULL);
for (int i = 0; i < arg... |
//
// Created by <NAME> on 29.06.21.
//
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include "Cserve.h"
#include "FileHandler.h"
#include "Parsing.h"
static const char __file__[] = __FILE__;
namespace cserve {
/*!
* This is the normal file handler that just sends the ... |
#include "scenejitter.h"
#include <random>
#include <iostream>
using std::cerr;
using std::endl;
#include <cstdlib>
#include <glm/gtc/matrix_transform.hpp>
using glm::vec3;
using glm::mat4;
using glm::vec4;
using glm::mat3;
SceneJitter::SceneJitter() : plane(20.0f, 20.0f, 2, 2)
{
shadowMapWidth... |
#include "merge_ifs.h"
#include "parser.h"
#include "visitor.h"
#include "print_program.h"
#include "maude.h"
#include <vector>
#include <memory>
#include <string>
#include <cassert>
#include <map>
#include <set>
using std::vector;
using std::unique_ptr;
using std::make_unique;
using std::string;
using std::map;
usin... |
#include <QtWidgets>
#include "repair.h"
Repair::Repair(QString diag) : diagnosis(diag)
{
qDebug() << "TRACE==> initializing forward chaining data structures";
// initialize caluse variable list
for (int i=0;i < CLS_VAR_LIST_SIZE; i++)
clvarlt[i] = "FAULT";
print_structures(CLS_VAR_LIST)... |
//
// Created by rolf on 13-10-19.
//
#include "SimBot.h"
#include "iostream"
#include "CollisionShared.h"
#include "SimBall.h"
btVector3 SimBot::position() const {
btTransform transform;
motionState->getWorldTransform(transform);
btVector3 origin=transform.getOrigin();
transform.setOrigin(btVector3(... |
// 保存 KITTI00, KITTI05 上的回环检测的 PR
#include "deeplcd.h"
#include <iostream>
#include <fstream>
#include <chrono>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace std;
typedef Eigen::Matrix<double, 3, 3> Mat33;
typedef Eigen::Matrix<double, 3, 1> Vec3;
void LoadImages(co... |
/*
This file is a part of
QVGE - Qt Visual Graph Editor
(c) 2016-2018 <NAME> (<EMAIL>)
It can be used freely, maintaining the information above.
*/
#include "CFileSerializerGEXF.h"
#include "CNode.h"
#include "CDirectConnection.h"
#include <QFile>
#include <QDebug>
// reimp
bool CFileSerializerGEXF::load(const Q... |
//
// This file is part of the aMule Project.
//
// Copyright (c) 2008-2011 <NAME> ( <EMAIL> )
// Copyright (c) 2004-2011 <NAME> ( <EMAIL> )
// Copyright (c) 2004-2011 aMule Team ( <EMAIL> / http://www.amule.org )
// Copyright (c) 2003-2011 <NAME> (http://www.emule-project.net)
//
// Any parts of this program derived f... |
// BSD 3-Clause License
// Copyright (c) 2018, <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... |
#include "Inference.h"
Inference::Inference(int nangles, int ncircles,
float rstep, double lambda, double beta, double alpha)
{
downlevs_ = 2;
nangles_ = nangles;
ncircles_ = ncircles;
rstep_ = rstep;
lambda_ = lambda;
beta_ = beta;
alpha_ = alpha;
corner_x_ = 0;
corner_y_ = 0;
theta_start_ =... |
/*
Copyright (C) 2019 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... |
#include "orthogonalconnectormanual.h"
#include "orthogonalconnectorfunctions.h"
#include "shapeinfo.h"
#include "grid.h"
#include "pointgraph.h"
#include "astar.h"
#include "node.h"
#include <QGraphicsItem>
#include <QPainterPath>
#include <QSet>
#include <QDebug>
inline uint qHash(const QPointF &p)
{
return qHas... |
#include "YODA/ReaderYODA.h"
#include "YODA/YODA.h" // include all analysis objects
#include <iostream>
#include <regex>
#include <unordered_map>
#include <functional>
#include <unistd.h>
#include <fstream>
#include "xtensor/xarray.hpp"
#include "xtensor/xio.hpp"
#include "xtensor/xview.hpp"
#define H5_USE_XTENSOR
#... |
#define Conv4HitsReco_cxx
#include "Conv4HitsReco.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <sstream>
// 1 -> 4
// 2 -> 3
// 3 -> 2
// 4 -> 1
double Conv4HitsReco::GetDm() {
return (Tq * O0 - T0 * Oq) / (Tq * Om - Tm * Oq); //dm
}
double Conv4HitsReco::GetDq() {
return (Tm * O0 - T0 *... |
#include "ros/ros.h"
#include "std_msgs/String.h"
#include <string>
#include <iostream>
#include <vector>
#include <sstream>
#include <ctime>
/*
#include <thread>
#include <chrono>
*/
#include <boost/bind.hpp>
// async_buffer
// #include <async_buffer.hpp>
#include <async_buffer_v2.hpp>
// #include "async_buffer.hpp"... |
#pragma once
/*
MIT License
Copyright (c) 2017 ZetaChain_Native
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,... |
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include <vector>
extern "C" {
#includ... |
#include "game.h"
#include "sdlgui.h"
int
window_width,
window_height;
Mesh mesh_terrain, mesh_quad;
RenderTexture rt_heightmap;
mat4 mat_projection;
Shader shader_terrain, shader_generate;
float
terrain_frequency,
terrain_scale,
terrain_height;
int
terrain_samples_x,
terrain_samples_y;
Mesh gen_terrain_me... |
#include "state_lattice_planner/lookup_table_generator.h"
LookupTableGenerator::LookupTableGenerator(void)
:local_nh("~")
{
local_nh.param("MIN_X", MIN_X, {1.0});
local_nh.param("MAX_X", MAX_X, {5.0});
local_nh.param("DELTA_X", DELTA_X, {1.0});
local_nh.param("MAX_Y", MAX_Y, {2.0});
local_nh.param(... |
/**************************************************************************
** This file is a part of our work (Siggraph'16 paper, binary, code and dataset):
**
** Roto++: Accelerating Professional Rotoscoping using Shape Manifolds
** <NAME>, <NAME>, <NAME>, <NAME> and <NAME>
**
** w.li AT cs.ucl.ac.uk
** http://visual... |
/*****************************************************************\
__
/ /
/ / __ __
/ /______ _______ / / / / ________ __ __
/ ______ \ /_____ \ / / / / / _____ | / / / /
/ / | / _______| / / / / / / /____/ / / / / /
/ / / /... |
#include "ZBufferRaster.h"
cImgZBuffer::cImgZBuffer(cAppliZBufferRaster * anAppli ,const std::string & aNameIm, bool & aNoTif):
mAppli (anAppli),
mNameIm (aNameIm),
mTif (Tiff_Im::UnivConvStd(mAppli->Dir() + aNameIm)),
mSzIm (mTif.sz()),
mCamGen (mAppli->ICNM()->StdCamGenerikOfName... |
#include "ofApp.h"
using namespace ofxCv;
using namespace cv;
void ofApp::setup() {
#ifdef RPI
if (signal(SIGUSR1, clean_exit) == SIG_ERR) {
cout << "can't catch signal\n";
}
#endif
// load config file
config.loadFile("config.xml");
if (config.tagExists("config:frameRate", 0)) {
frameRate = config.getV... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*
* Modified on: May 13, 2018
* By: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter... |
/** Copyright (c) 2022, EtlamGit */
#include "worldinfo.h"
#include <QtWidgets/QMenu>
#include <QDirIterator>
#include "nbt/nbt.h"
#include "zipreader.h"
#include "json/json.h"
WorldInfo::WorldInfo()
: menuActionGroup(NULL)
{
clear();
}
WorldInfo::~WorldInfo() {}
WorldInfo& WorldInfo::Instance() {
static W... |
/*
* Copyright (c) 2016 University of Cordoba and University of Illinois
* All rights reserved.
*
* Developed by: IMPACT Research Group
* University of Cordoba and University of Illinois
* http://impact.crhc.illinois.edu/
*
* Permission is hereby granted, free of charge, to ... |
#include <iostream>
#include <string>
using namespace std;
class Curier {
int id;
string nume = "Anonim";
string* adrese = NULL;
int nrLocatii = 0;
public:
Curier(int Id, string nume) :id(Id) {
this->nume = nume;
}
Curier(int ceva) : id(100) {
//this->id = 100;
}
Curier(int Id, string nume, string* tra... |
//===- PropagateConstWithDiffShape.cpp ------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/Core/PassSupport.h>
#include <onnc/IR/ComputeOperator.... |
//
// Created by Chrim14 on 19.10.2017.
//
#include "FileHandler.h"
///From: EditorSetup::getSaveChildWindow
///Function: Store all map information in a Json file
void FileHandler::saveMap(std::string &fileName, Settings &json, tgui::Gui &gui) {
std::string filePath = "Texture/Maps/";
std::string fileType =... |
#include "Icons.hpp"
Icon ICON_FLASH = "mdi:flash";
Icon ICON_WEATHER_FOG = "mdi:weather-fog";
Icon ICON_LIGHT_4 = "mdi:light-4";
Icon ICON_FORM_TEXTBOX = "mdi:form-textbox";
Icon ICON_VIDEO = "mdi:video";
Icon ICON_BATTERY_UNKNOWN = "mdi:battery-unknown";
Icon ICON_NUMERIC_1_BOX_OUTLINE = "mdi:numeric-1-box-outline";... |
#include "HierarchyModel.h"
#include "HierarchyObject.h"
#include "widget.h"
#include "qapplication.h"
#include "qmimedata.h"
HierarchyModel::HierarchyModel()
{
root = new HierarchyObject("root");
}
HierarchyModel::~HierarchyModel()
{
}
HierarchyObject * HierarchyModel::createObject(const QString& name)
{
Q... |
#include <vector>
#include <string>
#include<fstream>
#include <sys/stat.h>
#include <cstdlib>
#include <iomanip>
#include "../include/parser.hpp"
#include "../include/pagerank.hpp"
// Util functiobns
float genProba() {
return static_cast <float> (rand()) / static_cast <float> (RAND_MAX);
}
unsigned genInteger... |
/* NetHack may be freely redistributed. See license for details. */
#include "window.h"
#include "vulture_gra.h"
#include "vulture_sdl.h"
#include "vulture_win.h"
window *ROOTWIN = NULL;
window::window(window *p) : parent(p)
{
if (!parent && ROOTWIN)
parent = ROOTWIN;
first_child = last_child = NU... |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <sdsl/suffix_arrays.hpp>
#include <sdsl/lcp_dac.hpp>
#include <sdsl/lcp_support_sada.hpp>
#include "stool/include/cmdline.h"
#include "stool/include/debug.hpp"
#include "../include/common.hpp"
#include "libdi... |
#include "Mesh.h"
#include <cstddef>
#include <queue>
#include <algorithm>
#include <functional>
#include <unordered_map>
using std::unordered_map;
using std::vector;
using std::pair;
using std::priority_queue;
using std::greater;
Mesh::Mesh(int start_x, int start_y, int length, int thickness, int tiling) {
this->... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... |
/*
2019-11-17 If booted in some way (a button down or whatever) then execute THIS setup() and loop() instead.
It serves up an OTA access page instead.
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "OmOta.h"
#include "OmUtil.h"
#include "OmEeprom.h"
// with flexible procs and interfac... |
#include <list>
#include <algorithm>
#include "rtmidi/RtMidi.h"
#include "core.hpp"
#include "MidiIO.hpp"
#include "dsp/digital.hpp"
using namespace rack;
struct TriggerValue {
int val = 0;
int num;
bool numInited = false;
bool onFocus = false;
};
struct MIDITriggerToCVInterface : MidiIO, Module {
enum ParamIds... |
#include"includes.h"
Camera camera;
float gl_deltaTime;
float fov = 45.0f;
unsigned int VAO, VBO, EBO;
float vertices[] = {
// positions // normals // texture coords
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f,
0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f,
0.5f, 0.5f, -0.... |
//
// file: tMatrixScreen.cpp
// micro:bit LEDマトリックス制御クラス
// 2017/12/28 作成
// 2018/02/03 修正 ,driveMatrix()で停止時にポート26,27,28をLOWにセット
//
#include <string.h>
#include "tMatrixScreen.h"
extern const uint8_t* ttbasic_font;
#ifndef swap
#define swap(a, b) { int16_t t = a; a = b; b = t; }
#endif
// GVRAMサイズ取得
__attribute__((... |
//DatabaseBookStore.cpp
#include <iostream>
#include <vector>
//#include <fstream>
#include <algorithm>
#include <string>
#include <iomanip>
using namespace std;
int menu, pilihSort;
int x;
struct product{
string judul;
string creator;
int noSerial;
int jumlah;
int edisi;
int harga;
};
vecto... |
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cmath>
#include <functional>
#include "NGS++.h"
using namespace std;
using namespace NGS;
/** \brief This program load a sam file then outputs density information, either in wig format or in "BIN" format.
It uses NGS++ mo... |
#include <ros/ros.h>
#include <sensor_msgs/JointState.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Bool.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#incl... |
/*
* Server-Flow-Allocator
*
* <NAME> <<EMAIL>>
*
* 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... |
#include "node_implementation.h"
#include "detail/for_each_reversed.h"
#include "nmos/activation_mode.h"
#include "nmos/connection_api.h"
#include "nmos/group_hint.h"
#include "nmos/model.h"
#include "nmos/node_resource.h"
#include "nmos/node_resources.h"
#include "nmos/sdp_utils.h"
#include "nmos/slog.h"
#include "nm... |
/*
This project is under MIT License and this software is free to use, modify and distribute.
However, I would request you to include a credit to my name & GitHub profile when you do: <NAME> (https://github.com/GourabIX)
See About Shellpad -> License for further information on usage conditions under MIT License.
Copyr... |
#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include "Algorithms.h"
#include "DataTypes.h"
#include "Hash.h"
#include "ProgressIndicator.h"
struct Args
{
double rehash_constant, expand_constant, keep_factor;
size_t binary_size, buffer_size;
int wid... |
/*
* smuRF.cpp
*
* Created on: Sep 16, 2012
* Author: <NAME>
*/
#ifdef __unix__
#include <sys/time.h>
#endif
#if defined( _WIN32) || defined(_WIN64)
#include <windows.h>
#endif
#include <iostream>
#include <typeinfo>
#include <map>
#include <sstream>
#include "RandomForest.h"
#include "OnlineSGD.h"
#inclu... |
#include "WinFile.h"
#include "resource.h"
#include "MyTabWindow.h"
#include "MyEditorDlg.h"
#include "MyEditor.h"
#include "MyEditorHandlerWin.h"
extern WNDPROC gTabProc;
HIMAGELIST g_ImageList;
using namespace std;
MyTabWindow::MyTabWindow(HINSTANCE app)
{
_app = app;
_isDragging = false;
... |
//
// Created by chenyuan on 6/26/19.
//
#include "Mission.h"
Mission::Mission() {
std::string path = "../template/";
Mat num1 = imread(path + "1.bmp");
Mat num2 = imread(path + "2.bmp");
Mat num3 = imread(path + "3.bmp");
Mat num4 = imread(path + "4.bmp");
Mat num5 = imread(path + "5.bmp");
... |
#include "warp_perspective.h"
#include <dirent.h>
#include <errno.h>
using namespace std;
bool readUnwarpingPoints(string dataFile, float* src_x, float* src_y, float* dst_x, float* dst_y)
{
FILE* f;
char delim[] = ",\n";
char *p = NULL;
char buffer[512];
f = fopen(dataFile.c_str(), "r");
if (f == NULL... |
// -*- compile-command: "g++ -std=c++11 -Wall -Werror -Weffc++ -pedantic -ggdb -DINCLUDE_MAIN -o datastack datastack.cpp" -*-
#include "datastack.hpp"
/**
* @brief Calculate buffer size required to construct a line_handle.
*
* When this function was written, it was intended to coordinate with
* init_line_handle(... |
#include "compact.h"
#include <cstdio>
#include <cstring>
#include <cassert>
#include <boost/filesystem.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
// #include <windows.h>
using namespace riorita;
using namespace std;
const string INDEX_FILE = "FileSystemCompactStorage.index";
const string DATA_FILE_PATTERN =... |
/*
AlarmCentral.cpp
written by <NAME>
2016, August 8.
MIT license
*/
#include "Arduino.h"
#include "AlarmCentral.h"
/**
* Construtor da classe
* Constroi um objeto Alarm central.
* @param mySwtich O objeto RCSwtich responsável pela decodificação 433Mhz.
*/
AlarmCentral::AlarmCentral(RCSwitch mySwitch) {
_mySwit... |
// icp.cpp,v 1.2 1999/08/30 17:31:11 schmidt Exp
// ============================================================================
//
// = LIBRARY
// TAO/examples/Advanced/ch_12
//
// = FILENAME
// icp.cpp
//
// = AUTHORS
// Source code used in TAO has been modified and adapted from the
// code pro... |
#include <memory>
#include <vtil/amd64>
#include <vtil/vtil>
#include <vtil/arch>
#include <Windows.h>
#include <fstream>
#include <AppCore/App.h>
#include <AppCore/Window.h>
#include <AppCore/Overlay.h>
#include <Ultralight/platform/Platform.h>
#include <AppCore/JSHelpers.h>
#include "bindings/basic_block.hpp"
#includ... |
/*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2015 Cisco Systems, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by... |
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include "Demo.h"
#include <math.h>
#include "triangle.h"
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define RGB(r,g,b) ((b)|((g)<<8)|((r)<<16))
floa... |
#include "board.h"
Board::Board()
{
}
bool Board::StatuCheck(int x,int y){
std::string NowStatu;
for(int i = 0;i < DirSum;i++){
NowStatu = GetStatu(x,y,i);
if(NowStatu.find("22222") != std::string::npos || NowStatu.find("11111") != std::string::npos) return true;
}
return false;
}
vo... |
#include "System.hpp"
#include <fstream>
#include <cstring>
const char* SAVE_FILE_NAME = "system.bin";
const size_t MAX_INPUT_LEN = 128;
System::System()
{}
System& System::i()
{
static System sys;
return sys;
}
System::~System()
{
for (size_t i = 0; i < events.size(); i++)
delete events[i];... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 <EMAIL>
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2014-2018比特币核心开发商
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <base58.h>
#include <has... |
// Copyright (c) 2019-2020, 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 o... |
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arBarrierClient.h"
void ar_barrierClientConnection(void* barrierClie... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "lwip/sockets.h"
#include "lwip/netdb.h"
#include "openssl/ssl.h"
#include "esp_log.h"
#include "driver/gpio.h"
#include "cJSON.h"
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "httpsserver/httpsserver.h"
#include "websocket_serve... |
// libSDL and libVLC sample code.
// License: [http://en.wikipedia.org/wiki/WTFPL WTFPL]
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_mutex.h>
#include <vlc/vlc.h>
#include <fstream>
#include <vector>
#include <iterator... |
#include "utils.h"
#include <cryptopp/cryptlib.h>
#include <cryptopp/sha.h>
#include <cryptopp/filters.h>
#include <cryptopp/base64.h>
#include <cryptopp/hmac.h>
#include <chrono>
#include <ctime>
#include <sstream>
#include <iostream>
std::string daytime_(){
time_t rawtime;
struct tm * timeinfo;
char buffer[80]... |
#include "network/debug_server.h"
#include <memory>
#include <boost/log/trivial.hpp>
#include <sstream>
//------------------------------------------------------------------------------
// Return a reasonable mime type based on the extension of a file.
beast::string_view mime_type(beast::string_view path) {
using bea... |
#include<bits/stdc++.h>
using namespace std;
#define N 4
typedef struct _m {
int rs;
int re;
int cs;
int ce;
int a[N][N];
}m;
m m1 = {0, N-1, 0, N-1, {{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15, 16... |
/*
* Copyright (c) 2015 Dropbox, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include <cstdio>
#include <cstring>
#define MAXN 1000
#define MAXM 10000
#define INF 0x3f3f3f3f
#define Clr(m) memset(m, 0, sizeof(m))
#define Neg(m) memset(m, -1, sizeof(m))
typedef unsigned int u32;
struct Reader {
int b; Reader() { read(); }
void read() { b = getchar_unlocked(); }
void skip() { while (0 <... |
#include <cstdint>
#include <deque>
#include <iostream>
#include <optional>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
using Memory = std::vector<int64_t>;
enum class Signal {
END = 0,
ERR,
INT,
};
class Program {
public:
explicit Program(Memory const &memory)
: memor... |
/*
* Copyright (c) 2011, <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 co... |
#include "UploadEffectController.h"
#include <QFileInfo>
#include <QDir>
#include <QJsonDocument>
#include "base/utils/SharedPref.h"
#include "base/http/BaseRsp.h"
#include "base/http/SEHttpClient.h"
#include "base/utils/AppConstance.h"
#include "base/utils/AppPath.h"
#include "base/utils/UploadUtils.h"
#i... |
/***************************************************************************
* Software License Agreement (BSD License) *
* Copyright (C) 2012 by <NAME> <<EMAIL>> *
* *
* Redistribution and use in sourc... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <cctype>
#include <queue>
using namespace std;
vector<string> B;
int M, N;
int dist[26][26]; // robot to token
int match[26]; // robot to tok... |
// Copyright 2011 Google Inc. 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 applicable... |
//===--- ToolChain.cpp - Collections of tools for one platform ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "AuthLink.h"
#include "AuthProtocol/AuthOpcodes.h"
#include "AuthProtocol/AuthEventFactory.h"
EventProcessor *AuthLink::g_target=nullptr;
AuthLink::AuthLink(AuthLinkType link_type) : m_client(nullptr),
m_received_bytes_storage(0x1000,0,40),
m_unsent_bytes_storage(0x200,0,40),
m_notifier(nullptr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.