blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
729a7eb20d56e1c271635ebe845881bdb822a578 | 606a8c3a5d704814480586dfbf159cd828711c92 | /tools/stereo_split.cpp | 498006ad16045ff0161efe0ce04e60b5072e92b3 | [
"MIT"
] | permissive | CharlesAO/dsvo | a6f624292a54f9abb297a18d2f3097ac16c2c069 | a6d6f3a5377b472550fd3f48308adc701ed5c679 | refs/heads/master | 2020-04-14T10:44:38.584541 | 2018-12-22T17:56:45 | 2018-12-22T17:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cpp | stereo_split.cpp | #include "opencv2/opencv.hpp"
#include "ros/ros.h"
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
#include <stdlib.h>
using namespace cv;
int main(int argc, char** argv)
{
VideoCapture cap(atoi(argv[1]));
if(!cap.isOpened())
return -... |
9eaa6770543cede008bcd3fa79c2011c6ff9ea29 | 376b40b62f996ecc6665de0e0bc9735bf6a18268 | /src/tests/tangent.cpp | 0085fb2fd83372e3a60fbedc93e556bf2cddf4dc | [
"MIT"
] | permissive | PearCoding/PearRay | f687863b3bc722240997fb0b3d22e5032d91b7b8 | 95f065adb20fc6202dfa40140d0308fc605dc440 | refs/heads/master | 2022-05-02T01:01:28.462545 | 2022-04-13T09:52:16 | 2022-04-13T09:52:16 | 45,111,096 | 20 | 0 | MIT | 2020-06-22T11:32:21 | 2015-10-28T12:33:36 | C++ | UTF-8 | C++ | false | false | 3,979 | cpp | tangent.cpp | #include "math/Tangent.h"
#include "Test.h"
using namespace PR;
PR_BEGIN_TESTCASE(Tangent)
PR_TEST("Frame 1")
{
auto N = Vector3f(0, 0, 1);
Vector3f Nx, Ny;
Tangent::unnormalized_frame(N, Nx, Ny);
PR_CHECK_NEARLY_EQ(Nx, Vector3f(1, 0, 0));
PR_CHECK_NEARLY_EQ(Ny, Vector3f(0, 1, 0));
}
PR_TEST("Frame 2")
{
auto... |
f81c07a952f95d0d208fe22e6b20435e45bdf44f | 9affd19b94eca661e537921b9873901942b2fda3 | /C++/Data Structures/Stack/Stack/StackUsingTemplate.cpp | 23bbb7100f2f4154e2622f2dd45b28c348293198 | [] | no_license | LeMinhTinh/Broblocks | 78183b997dcc872723c3a6997104beaeeca60d7b | 709ef03709b1f4bfdcd214dac98732bdc68b9bc3 | refs/heads/master | 2022-05-12T19:37:24.671990 | 2022-05-09T03:17:29 | 2022-05-09T03:17:29 | 120,144,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | StackUsingTemplate.cpp | #include "stdafx.h"
#include "StackUsingTemplate.h"
template<class T>
StackUsingTemplate<T>::StackUsingTemplate()
{
top = -1;
arr = new[MAX];
}
template<class T>
void StackUsingTemplate<T>::Push(T t)
{
if (top >= MAX - 1)
{
cout << "Stack is full";
}
else
{
arr[++top] = t;
cout << "Element Push" << t;;
... |
3283e2939d7d48850833092a686b435612850d06 | c26b2d68eab6ce8a7bcabaa61a0edcf067362aea | /vz03/src/macan.h | 97c2ce1f70a02c37f40ead6cc2ece75f653d628f | [] | no_license | reiva5/oop | b810f4c75f209eef631c2cf2cd26dfad284cd236 | 465c6075f2d2f16221c482bae9dbb4117c4a6398 | refs/heads/master | 2020-12-10T04:28:46.077254 | 2017-03-15T06:36:02 | 2017-03-15T06:36:02 | 83,626,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | h | macan.h | #ifndef MACAN_H
#define MACAN_H
#include "include.h"
/** @class Macan
* Kelas Macan turunan dari Carnivore dan Karnivora
*/
class Macan: public Carnivore, public Karnivora {
public:
/** @brief Constructor.
* Menciptakan Macan dengan inisial 'M' dan ID i
* @param i Nilai Id Animal yang diciptakan
* @... |
7784592e4eaaa55a3dc0f8531d84209f86b9f631 | 6079670a82f3b92a3e6c6ed180aa498b78baca9a | /zmy/cpp/39.combination-sum.cpp | b24bf9a826e11901b8de9a1ff15c07f48b24c87e | [] | no_license | sing-dance-rap-basketball/leetcode | 97d59d923dfe6a48dd5adba3fa3137a684c0b3ca | d663d8093d4547ab1c6a24203255dba004b1e067 | refs/heads/master | 2022-08-07T15:17:47.059875 | 2022-07-23T15:59:36 | 2022-07-23T15:59:36 | 194,498,806 | 0 | 1 | null | 2019-07-12T08:28:39 | 2019-06-30T09:35:12 | C++ | UTF-8 | C++ | false | false | 671 | cpp | 39.combination-sum.cpp | /*
* @lc app=leetcode id=39 lang=cpp
*
* [39] Combination Sum
*/
class Solution {
public:
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
vector<vector<vector<int>>> dp(target+1, vector<vector<int>>());
dp[0].push_back(vector<int>());
for(int i : candidates) {
... |
7d68263b25a1b9cf24aa360f54ee6a8679f95968 | 2f6c2872118a7b6df295174c2338fcd2afa6a1bc | /src/map/generators/test_maps.cpp | 2af5cf77352576eecb4e633e3209517120974757 | [
"MIT"
] | permissive | matteobarbieri/titan | 2ff020367eb6a000c09de6087b0e8233d42050a4 | e440f921ce165a7b1004a971b55d3ae63b145514 | refs/heads/master | 2021-07-11T19:23:12.792053 | 2020-08-27T15:34:32 | 2020-08-27T15:34:32 | 192,607,869 | 1 | 0 | MIT | 2020-08-20T09:02:52 | 2019-06-18T20:25:40 | C | UTF-8 | C++ | false | false | 2,225 | cpp | test_maps.cpp | #include <iostream>
// TODO check if file stays in place
#include "../GameMap.hpp"
#include "../../RenderOrder.hpp"
#include "../../libtcod.hpp"
#include "../../Entity.hpp"
// Components
#include "../../components/Stairs.hpp"
// Prefabs
#include "../../prefabs/enemies.hpp"
#include "../../prefabs/weapons/melee.hpp... |
82ed2952cf81eda7f7b71a274430003218a827e7 | e4e5983a118cc1a89e688a18bf5a3a58c7eb7e79 | /AlgorithmicProblem/Solved/Books/Strategies/Strategies1/4/LinearTimeAlgorithm_Calc_MovingAverage_4_2.cpp | c4226f301e3e6eeed056624e45cf7d979d9e74de | [] | no_license | JaykayChoi/AlgorithmicProblem | 5c2375b48b49e13f9a82897510d2e1ee838b4a46 | a1a21bf95a4d7e8744887217c9e62378eb2f7a0e | refs/heads/master | 2021-09-06T02:13:02.549990 | 2018-02-01T15:50:05 | 2018-02-01T15:50:05 | 103,219,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | LinearTimeAlgorithm_Calc_MovingAverage_4_2.cpp | #include <string>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
class LinearTimeAlgorithm_Calc_MovingAverage_4_2
{
public:
void Solve()
{
vector<double> v;
v.push_back(10);
v.push_back(11);
v.push_back(12);
v.push_back(13);
v.push_back(14);
v.push_back(15);
vector<d... |
df897de6d90e419918c42e6bbc933a0f6f2f26ef | 3a399a7d866aad65a3d03b0710e4a517a88150d0 | /Laborator 4/RepositorySTL.h | 422c576349675237941db9d4182de58e8bc353c6 | [] | no_license | LauraDiosan-CS/lab04-MesesanAndrei | 66e26613b4f04b1a287ac50598ce2f18fafc73d7 | 0e8c67ffc5de6875b2fff4d37f39d8f5fe530796 | refs/heads/master | 2021-04-24T07:35:04.075681 | 2020-03-26T11:14:27 | 2020-03-26T11:14:27 | 250,101,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | RepositorySTL.h | #pragma once
#include "Tranzactie.h"
#include <vector>
using namespace std;
class RepositorySTL {
private:
vector<Tranzactie> elem;
public:
RepositorySTL();
void addElem(Tranzactie);
bool findElem(Tranzactie);
void delElem(Tranzactie);
Tranzactie updateElem(Tranzactie);
Tranzactie getItemFromPos(int);
vector... |
e6c7d91aa946a2932a08185e6fb131ece42331ab | 13739586a566a82b47b88f06a9ba7da61d9f167e | /LeetCode/637. Average of Levels in Binary Tree.cpp | d886727bc94784ea459a0291908dfe4b62e8e44a | [] | no_license | sajalagrawal/BugFreeCodes | d712e5a46fa62319b66b00977a157e4c1758273f | c1930a68bdc50619daefea7f7088b506dd921e4c | refs/heads/master | 2023-01-20T19:13:08.736719 | 2023-01-15T14:38:27 | 2023-01-15T14:38:27 | 56,171,988 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,802 | cpp | 637. Average of Levels in Binary Tree.cpp | //https://leetcode.com/problems/average-of-levels-in-binary-tree/
//DFS
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), righ... |
001349459403ee9036398ede69bcfa47ff737b20 | 6e732acde750b904e9eee94b33be978eba4d20c4 | /左移字符串.cpp | 746eccee9c6dabc4c1dfd608ef45033e1c0f0ee1 | [] | no_license | DoubleKing0625/SwordToOffer | 6b65229d47fec4a5b36b5f560fe910150dd61fce | cb335f45a2d95a82b9aea11dde304d9c4f575897 | refs/heads/master | 2020-03-07T04:00:48.617012 | 2018-11-06T14:16:16 | 2018-11-06T14:16:16 | 127,253,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | cpp | 左移字符串.cpp | /*
* Created by Peng Qixiang on 2018/8/14.
*/
/*
* 左旋转字符串
* 对于一个给定的字符序列S,请你把其循环左移K位后的序列输出。
* 例如,字符序列S=”abcXYZdef”,要求输出循环左移3位后的结果,即“XYZdefabc”。
*
*/
# include <iostream>
# include <string>
# include <queue>
using namespace std;
class Solution {
public:
string LeftRotateString(string str, int n) {
... |
8d41eb1654bb69f57e8fa78cfa4cd0370ab06833 | 2a94d32043b7ca038528a98920b06f8006fea778 | /Task3/Visualization_of_one-dimensional_data_Reciver/widget.h | 439731a62b897f92effaa39277ba1feaf8a8311d | [] | no_license | turboSergik/Qt-data-exchanger | cc9d62e809ac1cd1f93c5bb73fe227505ca147f1 | ba3f092734c250a42cab3d5a5ec8748be286993e | refs/heads/master | 2022-11-26T06:57:52.705586 | 2020-07-31T11:52:19 | 2020-07-31T11:52:19 | 283,966,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | h | widget.h | #ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QGraphicsView>
#include <QtWidgets>
#include <QtGui>
#include <QtCore>
#include <QTimer>
#include <QTime>
#include <QPair>
#include "udpsocket.h"
#include "receivingdatathread.h"
#include "datacontainer.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Widget... |
1d66a344acee1f51d353e2ed7cb08525112e5ca2 | 5bd1134ac453aa7b035267d5c760511571bbcae8 | /include/gamelib/utils/CallbackHandler.hpp | 90f17ec0a8210c921eec858b8b24b5abce32f265 | [
"MIT"
] | permissive | mphe/GameLib | 32fb659dd711423ccd3a737d1964a53a9fa590cd | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | refs/heads/master | 2020-12-25T19:58:46.202111 | 2020-05-07T12:18:40 | 2020-05-07T12:18:40 | 43,610,821 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,730 | hpp | CallbackHandler.hpp | #ifndef CALLBACK_HANDLER_HPP
#define CALLBACK_HANDLER_HPP
#include <vector>
#include <algorithm>
#include <utility>
namespace gamelib
{
template <class Ret, class... Args>
class CallbackHandler
{
public:
typedef Ret (*CallbackFunction)(void*, Args...);
private:
str... |
bbff2d34849d985ca6568d24814159dbd33dc7b1 | c8133d77d57b7c4fa61584b7a8a15f5923129a5e | /Test6.h | 58543dcec5213a5e1f7e0b8e2c549fcff17583de | [] | no_license | Fungungun/PCT | e6575a3268db33e9da4e12cbc6b093c8ae811a48 | f40f367472076bda9f25acb7d97b5b49c6223af4 | refs/heads/master | 2021-09-06T06:12:02.453896 | 2018-02-03T02:37:56 | 2018-02-03T02:37:56 | 81,433,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | h | Test6.h | #ifndef __TEST_6_H__
#define __TEST_6_H__
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <omp.h>
#include <math.h>
#include <time.h>
#include <sstream>
#include <string>
#include <fstream>
#include "covImage.h"
#include "debug.h"
#in... |
3b6187afc329619ad8ddce7135e6713022756220 | 0fbdba5f4372ddb01bb4ba69ba18ff26a9fb5d5d | /system/qplaylistitem.cpp | 0162df411adc4224ef48a5a4e5c68541b0f612fd | [] | no_license | dissonancedev/phonograph | fc47f1e0988949d4dbee8dc9fece161ce6708e74 | 1433407690b790d1896cfee769cfb51aa72f4319 | refs/heads/master | 2022-09-06T11:20:16.149679 | 2015-04-15T14:06:10 | 2015-04-15T14:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27 | cpp | qplaylistitem.cpp | #include "qplaylistitem.h"
|
d2120a993b8e1aa408a855e46cb7291848b5b16e | 40e15adb8a88a008abeaf314ad5d8cd722b092d4 | /CO2Sensor/CO2Sensor.ino | 9074825b5f4e1f6b22b3bfce89a7dc1f76263720 | [] | no_license | jalfarohi/ESP32_CO2 | 291c3f832cf19228e92d084f3b94b71489d3dd92 | 9fbc7f918dce8f610176592a46b577dedd19cb87 | refs/heads/main | 2023-03-16T00:05:13.737163 | 2021-03-02T18:10:27 | 2021-03-02T18:10:27 | 343,848,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,046 | ino | CO2Sensor.ino | // JORGE ALFARO
// Weather Station
// Obj: Sensar Temp, Hum, PresAt, Humedad Suelo, Caida agua y CO2
// Board info : NodeMCU -32S
// Load required libraries
#include <SoftwareSerial.h>
#include <WiFi.h>
#include <NTPClient.h> //Time sync used to add timestamp to message
#include <PubSubClient.h>
#include <MHZ.h>
#i... |
3a8f04195c15c09ac329af4c9a2f6d4cb30c73fe | 1c1c1fed0952aeacb4ccd3ce9374f67f0e92cae6 | /EX1.cpp | af27a577305d0445a225cf847d019e947a759959 | [] | no_license | guipolicarpo/C | 1e0898de96b9fb9106dc5dc42c06f98d3d78f7a2 | acb61820d01993af7a574e0797c51be40be2aa4d | refs/heads/main | 2023-02-08T03:07:13.997048 | 2021-01-04T18:32:57 | 2021-01-04T18:32:57 | 326,767,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | cpp | EX1.cpp | #include<stdio.h>
#include <stdlib.h>
#include <locale.h>
main(){
setlocale(LC_ALL, "Portuguese");
float dolar, imposto, reais;
printf("Digite o valor do produto em Dolar: ");
scanf("%f",&dolar);
reais=dolar*5.25;
imposto=reais*0.32;
printf("Valor em reais: %.... |
1b559268e04e62e1859a404f4ff1a0c7eaabc9c2 | 1b187a33c25767a3eb0d0be6748c0b9b82251663 | /src/game/entities/particle_effect_component.h | 284c69d6fd62c1e7818f8b5bec6f1437134c5c8b | [
"MIT",
"Apache-2.0"
] | permissive | codeka/ravaged-planets | db7436ec8b4fdd3aa3e16754fa0c7fa05e4ddb13 | 018828e0bd84f77e055636ee711a95d1a3e1489b | refs/heads/master | 2023-05-15T06:43:37.014246 | 2023-05-01T17:05:47 | 2023-05-01T17:05:47 | 34,597,215 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | h | particle_effect_component.h | #pragma once
#include <atomic>
#include <framework/math.h>
#include <game/entities/entity.h>
namespace fw {
class ParticleEffect;
}
namespace ent {
class PositionComponent;
// This component holds a bunch of ParticleEmitters, and allows an Entity to act as a particle emitter as well
// (basically, the ParticleEmi... |
d0bdadec4522bf148876012e2953fb570bee60fb | b5d8aff49b179101e6012991f4dba9b368092116 | /MRSlib/MRS/MRS_Algorithms_cpp/Source/MRS_Layer.cpp | b1bfaf70b4f9dd4c26b2327450dd460b8535c352 | [] | no_license | Redestroy/MRS | 2b5505114a58e76b5dbdc1b1107cf2cb44af14ea | a5d908c8d4a341670d4d3f6f0524026d758d1afa | refs/heads/master | 2023-08-19T10:04:57.067551 | 2021-07-23T00:24:17 | 2021-07-23T00:24:17 | 287,121,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,943 | cpp | MRS_Layer.cpp | #include "../Include/MRS_Layer.hpp"
namespace MRS {
namespace Algorithms {
void Layer::SetLayerState(LayerState state)
{
this->state = state;
if (debug) {
PrintState(state);
}
}
Layer::Layer() : Layer(false) {
}
Layer::Layer(bool debug)
{
this->debug = debug;
SetLayerState(Laye... |
16449c1cb1bf83a22657f8e36a927a3c552366e0 | 2291759d7908079a4cb37a99af3a0ca88518ab25 | /cpp/bst.h | 9836a6fce98f79de38d9a64bd829603f161650fe | [] | no_license | davides/ds-a-day | 8bfca2006574f171c7dbb805b51135b8496a17c9 | d60b2a8e2aa0f66d4a3b26b5ed990e447d4ae869 | refs/heads/master | 2021-01-10T11:53:24.206211 | 2016-02-04T06:12:11 | 2016-02-04T06:12:11 | 50,643,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | h | bst.h | #include <cstdio>
using namespace std;
template <typename T>
class Bst {
public:
Bst(T value) : value_(value) { left_ = right_ = 0; }
~Bst() {
delete left_;
delete right_;
}
void insert(T value) {
if (value < value_) {
left_ = createOrInsert(left_, value);
} else if (value > value_) {
... |
0cfea57c2281727f00b96ff384cb1a140ca69ef5 | 1006fb24c2c105b888c19766ffea0de70fe70fa0 | /homework-2/infix-to-postfix.cpp | c5984ebfd2d46ea48090c7cd5cf114102d8365cf | [] | no_license | marcos-bah/maratona-programacao | 1beba584ce91fbde9451ae3e479124bc879b3434 | cf98f9bc4a4e0ed9bd3870979e8236d29d2e1170 | refs/heads/main | 2023-08-22T00:06:39.921973 | 2021-10-27T20:27:33 | 2021-10-27T20:27:33 | 411,766,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,348 | cpp | infix-to-postfix.cpp | #include <bits/stdc++.h>
using namespace std;
map<char, int> op;
void sieve()
{
op['+'] = 1;
op['-'] = 1;
op['/'] = 2;
op['*'] = 2;
op['^'] = 3;
}
void infixToPostfix(string str)
{
stack<char> q;
for (int i = 0; i < str.length(); i++)
{
if (isalnum(str[i]))
cout << s... |
72bf35eaed70719024a44873e1f222ca60a2c6e2 | ff86d33523e9887f04a2b70d08d9e07c254bdc6e | /include/ensmallen_bits/problems/goldstein_price_function.hpp | 9c0db792e4e799fb2c6a1aae921fd37c206b1c8d | [
"BSD-3-Clause",
"BSL-1.0"
] | permissive | mlpack/ensmallen | 3a880d4276a9038d43702bb6a6ff35a0cf25a1a3 | b97c8b08e25b96be53a0efcadbe9bed0c29aa276 | refs/heads/master | 2023-09-04T07:35:08.481001 | 2023-09-01T20:51:06 | 2023-09-01T20:51:06 | 151,348,135 | 654 | 152 | NOASSERTION | 2023-09-01T20:51:07 | 2018-10-03T01:53:06 | C++ | UTF-8 | C++ | false | false | 4,096 | hpp | goldstein_price_function.hpp | /**
* @file goldstein_price_function.hpp
* @author Suryoday Basak
*
* Definition of the Goldstein-Price function.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ensm... |
0ffbc0275fe8182163f2b52430d912b3c02c7baa | eebcae99279b69b9f94767024de80127c7bd73ae | /src/LogQueueVoid.h | 0883b93090d0a3fffd18fd45338b33e2bbdb3d29 | [
"MIT"
] | permissive | nowtechnologies/cpp-logger | 452f3bf37132b05d48e882ec084fab7910bef26e | b211b9d9e7b881c2cf83edd74fccecae008c152b | refs/heads/master | 2022-01-01T07:50:59.004927 | 2020-12-18T15:09:53 | 2020-12-18T15:09:53 | 254,288,541 | 3 | 2 | MIT | 2020-12-22T17:40:04 | 2020-04-09T06:22:43 | C++ | UTF-8 | C++ | false | false | 683 | h | LogQueueVoid.h | #ifndef LOG_QUEUE_VOID
#define LOG_QUEUE_VOID
#include <cstddef>
namespace nowtech::log {
template<typename tMessage, typename tAppInterface, size_t tQueueSize>
class QueueVoid final {
public:
using tMessage_ = tMessage;
using tAppInterface_ = tAppInterface;
using LogTime = typename tAppInterface::LogTime;
pr... |
642cd1e9a0c933e5ef0ea6a7018c5978010384ef | 809064fa0a7d7604879f4a36321004c1aebc1429 | /src/ui/ScrollState.cpp | 3564d53369df3e40920776fcec75555ed192a474 | [
"MIT"
] | permissive | Rookfighter/GameOfLife | f30087577b29a85bf41035796b18ca9082f3275f | c57371c82080900086b915ac3603470fac3c8c25 | refs/heads/master | 2021-01-18T13:58:22.993610 | 2015-01-20T18:14:49 | 2015-01-20T18:14:49 | 29,013,959 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | cpp | ScrollState.cpp | #include "ui/ScrollState.hpp"
#include "ui/WaitingState.hpp"
namespace gol
{
ScrollState::ScrollState(WindowProperties &properties, const sf::Vector2i &mousePos)
: WindowState(properties), lastPos_(mousePos)
{
}
ScrollState::~ScrollState()
{
}
WindowState* ScrollState::handleInput(c... |
e2d552b9fc5f4d1ae67c39fea6a962614366e150 | f7f83bee98149dd87cc75c14a7eed1160dfd704b | /RC_Car.ino | 9c312cd3dd647cfe27a293d026918bc5d6857eaa | [] | no_license | aspirant1999/RC_bot | 329db07c6b51b48d25344405b04de880dad24123 | e709a775723ef26c9be231ce791e73638b706e03 | refs/heads/master | 2021-05-23T18:32:15.606698 | 2020-04-06T06:49:00 | 2020-04-06T06:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | ino | RC_Car.ino | int motorA1 = 9; // Pin 2 of L293
int motorA2 = 10; // Pin 7 of L293
int motorB1 = 5; // Pin 10 of L293
int motorB2 = 6 ; // Pin 14 of L293
int vel = 200; // Speed Of Motors (0-255)
int state = '0'; // Initialise Motors
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bits per s... |
65b27242f572ce2117d013b69cb28147d45d7619 | 6f08fa4f3b572c04b8af4c7f541c517876972bff | /milkman.cpp | f6550f15d579b197ed0142e0a79e9d4de789dba5 | [] | no_license | sal-glitch/Algos | 33d0daff205fa1cd0cf5ea46dabdda38022cb271 | 81311a2c3b14105e93f5eb0c90cc851cc9ad15ad | refs/heads/main | 2023-03-03T04:53:24.270218 | 2021-02-07T11:38:27 | 2021-02-07T11:38:27 | 332,800,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | milkman.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
cin.tie(0); cout.tie(0); freopen("mixmilk.in", "r", stdin); freopen("mixmilk.out", "w", stdout);
int c[3], a[3];
for(int i=0;i<3;++i)
cin>>c[i]>>a[i];
int first=-1; int second=1;
int amt;
for(int i=0;i<100;++i)
{
first=(first+1)%3;
... |
9f8a2711396cda5c5a8ed9cb132eeed810dd0d2c | 291a28a21425b413d043e611ccdc5466048dc78b | /src/src/udp_controller/udp_controller.cpp | 59cda3326465fb6097fcee2fcbcfecbbc64a4b14 | [] | no_license | Dysonsun/learninggithub | b9ac8c4fc534c812f8bc5033e375e5e7fe73c112 | 51fd5a15fbfcb2a2ad09cb101a936be91a9f3983 | refs/heads/master | 2020-06-07T05:15:36.167117 | 2019-06-20T14:21:06 | 2019-06-20T14:21:06 | 192,933,397 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,241 | cpp | udp_controller.cpp | #include "udp_controller.hpp"
namespace carnet{
udp_controller::udp_controller(const ros::NodeHandle &nh, const ros::NodeHandle &nh_private,
std::string node_name)
:nh_(nh),
nh_private_(nh_private),
node_name_(node_name){
initialize();
}
... |
a56e71601a0df6f9109f4a4adb3e6d0e5bd463db | 1894685e4beaf304d0351b7cbb29f8421b597050 | /src/designerfilesortproxy.cpp | 67283ab5e3e1bc2b52c80a938934edd7e9c6e8b3 | [] | no_license | maxavadallat/maxdesigner | f9d9f9568d633fc0b1ede609894630a2e0ac0eba | cf13dd5927be0a9aa8c45826f3cac213fb0578be | refs/heads/master | 2021-01-22T07:48:40.904807 | 2017-11-22T13:15:24 | 2017-11-22T13:15:24 | 81,853,498 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,199 | cpp | designerfilesortproxy.cpp | #include <QDebug>
#include <QFileInfo>
#include "designerfilesortproxy.h"
#include "projecttreemodel.h"
//==============================================================================
// Constructor
//==============================================================================
DesignerFileSortProxy::DesignerFileSo... |
30e6800b11e2badbb22810d4260a3074de2aa20e | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/generic/test/libs/generic/test/std_concept/concepts/has_logical_or.cpp | f48e9f7c63fc67aabefbd1babc5b4cb6177917af | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 1,342 | cpp | has_logical_or.cpp | /*==============================================================================
Copyright (c) 2011 Matt Calabrese
Use, modification and distribution is subject to 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)
==========... |
01880f5c0fd65266806cc2e845a48c4b977cbf88 | 09bd5ce544726087f2422ed3c593e077933b2d92 | /CryptoMachine_policies.h | 26d85fb0f3d856b003429d552ee7fe2fcb71eae3 | [] | no_license | tom-dusty/moreassignment | 2342f5e483fb6445ecaae2dd1aac884fd9b47ace | 44d8f64cfa93657bf4a689b3695cc84c06966ef8 | refs/heads/master | 2020-05-16T23:05:03.989835 | 2014-05-14T00:23:19 | 2014-05-14T00:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,313 | h | CryptoMachine_policies.h | // CryptoMachine_policies policies class
// Thomas Dusterwald
// 13 May 2014
#ifndef _CRYPTOMACHINE_POLICIES_H
#define _CRYPTOMACHINE_POLICIES_H
#include <iostream>
#include <algorithm>
#include <bitset>
#include <cstdint>
#include "types.h"
//Functor used for vignere encoding. Makes use of ascii values for the char... |
22e29ad880f1fb651807c757bab19c81e6831039 | db5e5d680007fa48658023dd96ba5d2a0412ec71 | /src/Shader.h | 6e5aeb66817861eb4846efb6bff818ed0e9dbb4c | [] | no_license | LiquidPeach/Pool-OpenGL | d49466a334a88468c3b2a36699c8a9e0efdfcc41 | 49f0bd4bdc2280f8a7834d00d289221dede302b3 | refs/heads/master | 2023-08-29T02:00:13.582119 | 2021-10-29T04:52:00 | 2021-10-29T04:52:00 | 412,317,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | Shader.h | #pragma once
#include <unordered_map>
class Shader {
public:
Shader() = default;
~Shader();
void CompileShader(const unsigned int shaderType, const char* source);
void CreateProgram(const std::string& vertexShader, const std::string& fragmentShader);
std::string ReadFile(const std::string& fileName);
void Set... |
0e2b6e4860bcdbf2b688ec88dda3806ad63168b0 | a9e54f17407f143d4d9ac9448da317f66dbc712c | /include/BeastDecoder.h | 446cb45faf20d6da05987cbb93b46324c2cee1ed | [
"MIT"
] | permissive | VerlorenMind/TrellisDecoders | 7e8449b81c5c8aab6252f62c9ebcfdc9699ea2c5 | fb6603efe2fb1afb81dcc3febfa49d7ebcc644cb | refs/heads/master | 2022-12-08T19:39:02.422722 | 2020-08-26T09:59:06 | 2020-08-26T09:59:06 | 142,466,881 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | h | BeastDecoder.h | #ifndef BEAST_BEASTDECODER_H
#define BEAST_BEASTDECODER_H
#include <fstream>
#include <cstdint>
#include <set>
#include <queue>
#include "TrellisDecoder.h"
enum InsertionStatus {
INSERTED,
REPLACED,
DISCARDED,
ENDED,
};
class BeastDecoder : public TrellisDecoder {
protected:
double min_metric = -1;
doub... |
5383e98ce3ca7456ebb874368e616ad9dcb6ede8 | a77cae61867e4fb947f88acb4e11603d9cd0f6d1 | /SJTUOJ/SJTU1209_十进制转二进制.cpp | 18fe67d516d7a7c27e4f3502804176dc05b43e6f | [] | no_license | CHOcho-quan/OJ-Journey | cbad32f7ab52e59218ce4741097d6fa0ac9b462f | a9618891b5e14790ba65914783e26f8a7aa03497 | refs/heads/master | 2023-06-09T15:35:27.418405 | 2023-06-01T00:57:11 | 2023-06-01T00:57:11 | 166,665,271 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | SJTU1209_十进制转二进制.cpp | //
// SJTU1209_十进制转二进制.cpp
//
//
// Created by 铨 on 2019/3/5.
//
//
#include <iostream>
#include <set>
#include <vector>
#include <string>
#include <stack>
#include <iomanip>
using namespace std;
int main() {
int n,tmp,sum=0;
cin >> n;
for (int i = 0;i < n;i++)
{
cin >> tmp;
... |
48aed0aa2571ce5f88797f11d39fdf987751fd0a | 4f8a11be6de8f06ec230d2169eee1e42915c24c4 | /src/depixelize/spline_optimizer.cpp | 05e131da578c6f9417d9a6f4dbffba3c910c57bf | [] | no_license | bsl/depixelize | 641585ed79e2d7d33e9c9578dfa78e0b95382b6c | 844ba2b5dd5fb7b050910a024441cfe5648b1d60 | refs/heads/master | 2021-01-16T21:48:52.937547 | 2015-01-13T08:27:25 | 2015-01-13T08:27:25 | 28,911,851 | 0 | 0 | null | 2015-01-07T11:33:47 | 2015-01-07T11:33:47 | null | UTF-8 | C++ | false | false | 15,392 | cpp | spline_optimizer.cpp | #include "spline_optimizer.hpp"
#include "color_util.hpp"
#include "math_util.hpp"
#include "voronoi_visual_utils.hpp"
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geomet... |
accb9a8309cda5f37eaa4b5a818c39d093c81351 | 5f93e8a4a0694ca2d7593b4494ac8b7dc75536e2 | /PP2-TextAdventure/World.cpp | 2d605aa3d4357dad037d658249dfbbde99fa6d7d | [] | no_license | Phaktumn/PP2-TextAdventure | 965d110b7acda6274e626ec763236d758900eb71 | dd74b5e8d556b7920a33782bd58a418ced7d29d4 | refs/heads/development | 2020-12-11T05:39:26.125874 | 2016-04-11T15:32:03 | 2016-04-11T15:32:03 | 54,288,239 | 0 | 0 | null | 2016-03-19T21:36:51 | 2016-03-19T21:36:51 | null | UTF-8 | C++ | false | false | 4,266 | cpp | World.cpp | #include "World.h"
#include "Globals.h"
void World::draw(sf::RenderWindow* window, sf::Font& font)
{
currentLocation->draw(window, font);
}
void World::moveTo(const std::string& name)
{
Location* loc = getLocation(name);
if (loc == nullptr) return;
if (!currentLocation->hasPath(loc)) {
std::cout << "Current l... |
a7f5df1815d001bc2c1e0b12e62df1c032c969a3 | 6d3bb23428c196a3cf63efcf8d9654a0cc32adb6 | /Codeforces: Div1 553A. A. Kyoya and Colored Balls.cpp | ce5f8983ba64c5f21119ec423e8f5a1144fd31f9 | [] | no_license | antimatter007/DP-Problem-Solution | 2d1cd9773e4c646f318401df78bcd7ddf09b4dde | 98e120c73137c5b62ee19ed8d9a91ebbed4a0efb | refs/heads/master | 2023-04-09T12:02:24.360436 | 2021-03-10T20:49:44 | 2021-03-10T20:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | Codeforces: Div1 553A. A. Kyoya and Colored Balls.cpp |
/// Codeforces: Div1 553A. A. Kyoya and Colored Balls
/// Category : dp+combinatorics. an easy one .
#include<bits/stdc++.h>
using namespace std;
/// Every time we can fix a ball of the i colour at the end and fill the former places with other balls
/// Thus we can get the answer for when only k=2.
/// Now when k=3... |
776c0030187d8edd0d474a624194c314239d029a | ca27fe38d4f61981b0186dac5c974d5ea0f0a0a6 | /cppDir/GroupBy.cc | 3ffc00eb1cf789a28625151183dd09e40184fde8 | [] | no_license | google-code/490db | 5e73196ed328b65584375402d64bc7f29a92f9c2 | aba162f343d9319386be7d03c455b369669202eb | refs/heads/master | 2016-09-05T19:20:09.858240 | 2015-03-13T15:45:35 | 2015-03-13T15:45:35 | 32,164,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,329 | cc | GroupBy.cc | #include <stdlib.h>
#include <strings.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include "EfficientMap.cc"
#include "TwoWayList.cc"
#include "Types.cc"
class AggRecord;
class InRecord
{
private:
#include "Atts.cc"
friend class AggRecord;
public:
InRecord() {}
~InRecord() {}
bo... |
7e193e12b2cef3ee1adb91bd4378df062c91cbd6 | 8d57489e484b2def01f27a8a00e41ee6932a4905 | /Pintia-ds/PopSequence.cpp | 6fef79b3326056932c49b9daf8dd0747ff3adea9 | [] | no_license | athelare/SourceCode-ACM | f8c3a5d4f308de3ffaabd371c85f22a4a0225613 | b0385ef8409f3f3b3dbf77e9ad326d13fed9171c | refs/heads/master | 2020-03-24T07:54:17.769303 | 2018-11-25T01:26:55 | 2018-11-25T01:26:55 | 142,578,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | PopSequence.cpp | #include<iostream>
#define MXN 1005
#define INIT \
sp = 0; \
k = 1;
#define POP --sp
#define TOP Stack[sp - 1]
#define PUSH Stack[sp++] = k++;
using namespace std;
int main()
{
int Stack[MXN], Sequ[MXN], M, N, K,i,j,k,sp;
cin >> M >> N >> K;
while(K--){
for (i = 0; i < N;++i)
ci... |
525a03defbb21cd4a2630b42c361b6bdcc79649d | f0bd42c8ae869dee511f6d41b1bc255cb32887d5 | /Codeforces/58A - Chat room.cpp | 9e29a8557c01a3168996049b27e1604adc228c09 | [] | no_license | osamahatem/CompetitiveProgramming | 3c68218a181d4637c09f31a7097c62f20977ffcd | a5b54ae8cab47b2720a64c68832a9c07668c5ffb | refs/heads/master | 2021-06-10T10:21:13.879053 | 2020-07-07T14:59:44 | 2020-07-07T14:59:44 | 113,673,720 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | 58A - Chat room.cpp | #include<stdio.h>
main()
{
int i=0,j=0;
char in[101],hello[6]={'h','e','l','l','o'};
gets(in);
while(in[i]!='\0')
{
if(in[i]==hello[j])
{
j++;
}
if(j==5)
{
break;
}
i++;
}
if(j==5)
{
printf("YES\n");... |
b7de4e000f29692abd04d9cab160cf596ae2e6b4 | 783c65250483abd3e1f79a40a5acc2eb5f83da14 | /GameMemory.h | a4d58b4baffb87d9485462387217b084293ddef7 | [] | no_license | FredericDesgreniers/comp472 | 90f8e16e4f5907c701fcd2f9dee5bc1037dfbe72 | afb30c6c980bf262f9ebf0f1b298601806cbe26d | refs/heads/master | 2021-08-22T09:31:08.902826 | 2017-11-29T21:39:40 | 2017-11-29T21:39:40 | 106,746,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,841 | h | GameMemory.h | #pragma once
#include <vector>
#include "vec2.h"
#define BOARD_WIDTH 9
#define BOARD_HEIGHT 5
enum TileType
{
INVALID, EMPTY, GREEN, RED
};
static bool isBlackReferenceBoard[5][9] =
{
1, 0, 1, 0, 1,
0, 1, 0, 1, 0,
1, 0, 1, 0, 1,
0, 1, 0, 1, 0,
1, 0, 1, 0, 1,
0, 1, 0, 1, 0,
1, 0, 1, 0, 1,
... |
798dfcc349830b47ce2a1d4597dca8e3acd1b442 | f1415cbffc54d9e9e66ad32f5a5bfa98f70f4632 | /cpp/cpp_day11/Date.h | f28f94cd78bec7984a46174d01527e7a28fed781 | [] | no_license | wallmamami/Daily-life | 6052d73d3c7ad7d07bd512391ffe429a43df7c19 | cf6eec5fc5bffed88794c9f588076fa86cd107bd | refs/heads/master | 2020-03-18T06:29:04.449067 | 2019-07-30T04:05:38 | 2019-07-30T04:05:38 | 134,398,585 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,765 | h | Date.h | #pragma once
#include <iostream>
using namespace std;
class Date
{
public:
friend ostream& operator<< (ostream& os, const Date& d);//定义<<运算符重载为类的友元函数
//类的默认成员函数
Date(int year = 1900, int month = 1, int day = 1)//构造函数
: _year(year)
, _month(month)
, _day(day)
{
if (_year < 1990 || _month < 1 || _day < 1 || G... |
66f58148970f79aa8f71d19d7ee98db8c1c999f6 | e4e2a9dc58fcc0bc41e268b354d943846202928b | /c++/matriz3D.cpp | af40cb2ada0a65f53a78b8b7debba6c50aa57765 | [] | no_license | Carlos-Rodolfo-Rodriguez/Carlos-Rodolfo-Rodriguez.github.io | 713316922d3901fd304bb7e97f67d6fa0dc6875f | 6b14da1df87eb7a6350625f5773b9413acf7ae6b | refs/heads/master | 2022-04-22T18:14:51.313165 | 2020-04-16T20:01:27 | 2020-04-16T20:01:27 | 256,269,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,216 | cpp | matriz3D.cpp | #include <program1.h> // Archivo de traducción de seudocódigo a C++
/**
* Enunciado:
*/
constante entera T1 = 2, T2 =3, T3 = 4;
#define matriz(tipo,tam) array<tipo,tam>
principal // Unidad de programa principal
arreglo3... |
1c6b91c14c7d9ac4b3264429a66ede553dfe1bf9 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/system/network/cellular_setup_notifier_unittest.cc | 512c3ff7e61706af1ff8e20b12f52923a488b053 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 9,331 | cc | cellular_setup_notifier_unittest.cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/network/cellular_setup_notifier.h"
#include "ash/constants/ash_pref_names.h"
#include "ash/session/session_controller_impl.h"
#include "ash/shell.h"
#incl... |
7a3120b81ffb3e020075a1950aae5ab1153c8a88 | 21c599c04672445e0c021eeb4a759908c2bd4436 | /iOS/SDK/Bearers/vncbearer-D/Buffer.h | 50084c36a633d6a49ffb9d6ab929302c1adec1b8 | [] | no_license | 892526/tlink | ae507c3b3cd6e9821f035b2103fbcf256ad80fee | 28d86935c27a14a816c75107b711b92c0c8582e4 | refs/heads/master | 2022-03-04T05:21:51.163507 | 2019-06-20T09:46:08 | 2019-06-20T09:46:08 | 167,317,060 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | h | Buffer.h | /* Copyright (C) 2002-2018 VNC Automotive Ltd. All Rights Reserved.
*/
#ifndef __BUFFER_H__
#define __BUFFER_H__
#include <vector>
class Buffer
{
public:
inline Buffer();
inline unsigned char *getData();
inline const unsigned char *getData() const;
inline size_t getCapacity() const;
inline size_t getUsed... |
c84e8e973bc3ad3f90d59617b1d04cbcd9a6608a | 939506ab5e6730545cdadc44d504e795255206cf | /CS162 Intro to Computer Science 2/test/pokemon.h | 65e9300e2f7bb1d5af07b7fc8cc32079e234755f | [] | no_license | nguyepe2/class_courses | a603672d1e9a2563768652565e41165dea995dae | f149a22949ee5dc8b8a0f99f13edfd3b61c455aa | refs/heads/master | 2022-12-10T03:15:32.384895 | 2022-04-03T05:26:18 | 2022-04-03T05:26:18 | 245,482,086 | 0 | 5 | null | 2022-12-09T02:03:09 | 2020-03-06T17:41:08 | C | UTF-8 | C++ | false | false | 207 | h | pokemon.h | #ifndef POKEMON_H
#define POKEMON_H
#include "event.h"
class pokemon : public event {
private:
int rng;
public:
pokemon();
void get_event();
virtual void get_capture_rate();
};
#endif
|
9678fadd9a1d5383c11671e067aa3bd72acf1058 | 586e12e4bd6ba9eb4cd35d4376b0082195d94397 | /Pandemic/Pandemic/togglePlayerStats.h | 8ab66a56268a8a4e51ea96c2fe8a020fed707ca9 | [] | no_license | RyanL94/Pandemic | 257eba23236eec1daa1a8d42c33c899b3014d25e | 4955553c81989f063e3fbce54db628da0fc148a1 | refs/heads/master | 2020-09-19T20:05:48.023201 | 2017-04-19T03:55:37 | 2017-04-19T03:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | h | togglePlayerStats.h | #pragma once
#include <string>
#include <vector>
#include <iostream>
#include "player.h"
#include "map.h"
#include "Observer.h"
using namespace std;
class togglePlayerStats
{
public:
togglePlayerStats();
virtual string getGameLog(Player* p) = 0;
static void getStats(Player* p);
};
class basicStats : public toggle... |
5d75ccebdfd44e6784f74df3d6f8fb8b0fecccd5 | 769a77f0d86cb17ce1391917cf54bebda1245245 | /include/BiasValues.hpp | 5b984a4cd2edf19bdeb2bf0bba9325155276d2ad | [] | no_license | mdh266/PECS | 13a3e4d7b7d88722608729af49c98590efd94777 | 7af9f6c064d96dc257afd10546fcb4276a2639e5 | refs/heads/master | 2021-04-09T10:28:15.770367 | 2017-03-23T17:20:07 | 2017-03-23T17:20:07 | 61,489,926 | 3 | 1 | null | 2019-05-03T07:49:43 | 2016-06-19T16:42:21 | C++ | UTF-8 | C++ | false | false | 2,305 | hpp | BiasValues.hpp | #ifndef _BOUNDARY_VALUES_H___
#define _BOUNDARY_VALUES_H___
#include <deal.II/base/function.h>
#include <deal.II/lac/vector.h>
using namespace dealii;
///////////////////////////////////////////////////////////////////////////////
// Poisson Boundary Functions
////////////////////////////////////////////////////////... |
9c06808bc6b75ad6d1aed87c7d8490ff3f304b08 | 2bfbf9e4ce069c2f0258b65361aa7db9833ce14c | /p2pserver/udpserver.cpp | a028215a7f3adb9ee0eee3bba8df13694d13633c | [] | no_license | se19880529/eagle_craft | cb15802ab323e3fa5d17534d46d2f2d0edc15cea | 0f954846df2d01248204f92bbd1d0c79ef3989fc | refs/heads/master | 2016-09-06T01:24:27.706308 | 2014-10-12T15:19:55 | 2014-10-12T15:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,543 | cpp | udpserver.cpp | #include "udpheader.h"
#include <stack>
template<typename T>
class DictionaryTree
{
public:
bool Get(char* key, T& val)
{
Node* n = &root;
while(*key && n)
{
n = n->childs[*(key++) - 32];
}
if(!*key && n && n->settled)
{
val = n->val;
return true;
}
else
return false;
}
void Set(char* ke... |
0caec00939e2f139d513bcc3709b6a2512eec9ef | d1a60cb1d08d820f1fb56d15dd149faf276e3f88 | /include/rtvideosdk/shinevv++/vv_device.hpp | 1ed15be75dfce5991efef8deea7bdf68ab5862c2 | [
"MIT"
] | permissive | hanson1977/rtvideo | 9c9b5024ceb64bff5f329f5485d3a3468362e6af | ce2dc900f09b6590a451ef6ebe34b6885c203365 | refs/heads/main | 2023-06-26T02:11:16.828493 | 2021-07-28T05:55:53 | 2021-07-28T05:55:53 | 390,224,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | hpp | vv_device.hpp | #ifndef __VV__DEVICE_HPP__
#include "shinevv.h"
#define __VV__DEVICE_HPP__
class VVDevice {
public:
VVDevice() {};
//重置摄像头
virtual void ResetCapture(int idx, int width, int height, int fps) = 0;
//开启摄像头
virtual void StartCapture() = 0;
//停止摄像头
virtual void StopCapture() = 0;
//增加摄像头预览窗口
virtual... |
f58878aed4f4d0899ec819cdbe4f39f50d74e7fd | 773a806e909dfb79fd8c1389d1e10847f6d32aaa | /STRIPS/Source and Header Files/libs.h | df04c070982e0b10a04e832c567f3d392dff6268 | [] | no_license | Mopson/STRIPS-Planner | 9e0caee324f151bbd3d2fe8e3c3d974f3eddd9de | 023f7ca5885ac9a0d03d6adab52df16c277d416c | refs/heads/master | 2021-01-22T06:19:52.195551 | 2017-06-05T23:46:43 | 2017-06-05T23:46:43 | 92,545,640 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | h | libs.h | #pragma once
#ifndef LIBS_H_
#define LIBS_H_
#include <iostream>
#include <vector>
#include <list>
#include <sstream>
#include <string>
#include <fstream>
using namespace std;
#endif // LIBS_H_ |
823c2f1f36672b15e477a35b160fda024e0f35bb | eddcd87c24939a0b9d35bfd52401a2ecd62c04de | /developing/yggdrasil/yggr/proxy/proxy_mode/proxy_mode_creator.hpp | f3dc50f3e7d0dec8f071879ac2969f2fea3fe02e | [] | no_license | chinagdlex/yggdrasil | 121539b5f4d171598be2bb79d36f5d673ad11cb4 | 16f6192fd0011dc3f7c1a44f8d4d2a8ba9bc8520 | refs/heads/master | 2021-03-12T19:08:19.120204 | 2016-09-26T09:36:19 | 2016-09-26T09:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,500 | hpp | proxy_mode_creator.hpp | //proxy_mode_creator.hpp
#ifndef __YGGR_PROXY_PROXY_MODE_PROXY_MODE_CREATOR_HPP__
#define __YGGR_PROXY_PROXY_MODE_PROXY_MODE_CREATOR_HPP__
#include <algorithm>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/size.hpp>
#include <boost/mpl/at.hpp>
#include <boost/mpl/push_back.hpp>
#include <yggr/ppex/friend.hpp>... |
e5b6fc5d39f3821711c70d7b3481ed10a39cc3e2 | 7ca92ca80333e35d0d3488184cc2479863e738bd | /2.2-ExpressionTree/TEST_ExprTree.cpp | 4346d80485d5326f5899f4b4768c79902286a7d2 | [] | no_license | MMMMMMoSky/cpp-course | dabaa97b9d8d90c3683ec0da0fefa71ca378ebf0 | 5c02f35a7990eb3d8d08de864bc145576989dc46 | refs/heads/master | 2020-04-28T14:04:30.015188 | 2019-04-19T07:09:44 | 2019-04-19T07:09:44 | 175,326,955 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,837 | cpp | TEST_ExprTree.cpp | /**
* Copyright (c) 2019 MMMMMMoSky All rights reserved.
*
* 单元测试
* g++ ExprTree.cpp TEST_ExprTree.cpp -o tmp -g
*/
#include "ExprTree.h"
#include <iostream>
using namespace std;
int main()
{
/* 测试二叉树的构造和display
ExprTree expr("(1+2)*(4-3)");
expr.display();
expr = "((1+2)*(4-3)... |
5e06c7a6ac01b05ed2a0b9892281c590b38b8945 | ef35552267ac45345c60135845470260afbd6687 | /libalcc/libalcc.cpp | 85f18c1b65dc2e1b838cc6065e7dc6339dffe869 | [
"MIT"
] | permissive | xianliangjiang/ALCC | 2bbe7e48aaf7ab273cfea4622855be12e261730f | fc9c627de8c381987fc775ce0872339fceb43ddf | refs/heads/main | 2023-05-16T21:11:06.738812 | 2021-06-10T11:43:23 | 2021-06-10T11:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,771 | cpp | libalcc.cpp | #include <stdio.h>
#include <iostream>
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include "libalcc.h"
#include <time.h>
#include <cstdio>
#include <memory>
#include <mutex>
#include <linux/netlink.h>
#include <math.h>
... |
b56d8090afcc297fdb3c52f00a23ebf17d64bc59 | 1dff02275f30fe1b0c5b4f15ddd8954cae917c1b | /ugene/src/corelibs/U2Core/src/dbi/U2SQLiteTripleStore.cpp | 1bc3215c93356a451b1a9a268b2c2bc5d176f841 | [
"MIT"
] | permissive | iganna/lspec | eaba0a5de9cf467370934c6235314bb2165a0cdb | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | refs/heads/master | 2021-05-05T09:03:18.420097 | 2018-06-13T22:59:08 | 2018-06-13T22:59:08 | 118,641,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,416 | cpp | U2SQLiteTripleStore.cpp | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* 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... |
36b511d18dc8a025f6dc666f3c371df065917b2b | 9cc120939594c984e7bb3ded6db559768213e5ab | /source/loader/server/server.cpp | 1a12e296354b18551daa825d0b4d08fbf7cff579 | [] | no_license | Classic1338/sourceengine_cheat_loader | d3ff645a63cfcc0d1f9cca02fd0c410877ad87a5 | 5a6d05e1a8c2e879e775669f13b2b3f531882642 | refs/heads/main | 2023-05-23T22:02:28.133184 | 2021-06-16T00:05:28 | 2021-06-16T00:05:28 | 377,322,752 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | server.cpp | #include <SFML/Network.hpp>
#include <shared/constants.h>
#include <shared/console.h>
#include <shared/string_utils.h>
#include <Windows.h>
#include "session_manager/session_manager.h"
int main() {
DWORD previous_mode;
GetConsoleMode( GetStdHandle( STD_INPUT_HANDLE ), &previous_mode );
SetConsoleMode( GetStdHandle(... |
c69a89a1c4ce598b20e6120d8558b875fe87b761 | 472ce7bde53239b1ec9300695e73eaed5130c498 | /src/reverseengineering/responses/watchpage.cpp | 35d16cf6ae071fd77d8a43194eac75c82ffa9196 | [] | no_license | PhilInTheGaps/qytlib | e0430adb370ebc9bd4ece0a2d54530950fc06502 | 74a80edaa57306ceb12211df71609b6d7d92fe07 | refs/heads/master | 2021-07-13T15:12:58.929412 | 2020-10-21T14:33:38 | 2020-10-21T14:33:38 | 216,276,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,879 | cpp | watchpage.cpp | #include "qytlib/reverseengineering/responses/watchpage.h"
#include "qytlib/reverseengineering/responses/videoinforesponse.h"
#include "qytlib/utils/regexutils.h"
#include <QNetworkReply>
#include <qgumbodocument.h>
#include <qgumbonode.h>
Q_LOGGING_CATEGORY(ytWatchPage, "yt.responses.watchpage")
using namespace Yo... |
ec74a2e345b6d4ee0f49277585732a07f0574c4b | bc01d89e3b77b9b60afd6f5f8fcad5675b813f8e | /natfw/natfwunsaf_protocols/unsaf_transport/src/cnatfwunsafmsgassembler.cpp | fec4fb34fe985cd38a05e504dff9d50bb16872ec | [] | no_license | SymbianSource/oss.FCL.sf.mw.ipappsrv | fce862742655303fcfa05b9e77788734aa66724e | 65c20a5a6e85f048aa40eb91066941f2f508a4d2 | refs/heads/master | 2021-01-12T15:40:59.380107 | 2010-09-17T05:32:38 | 2010-09-17T05:32:38 | 71,849,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,735 | cpp | cnatfwunsafmsgassembler.cpp | /*
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-... |
49578e7351fac8c32cf46665d681e9fe50f3d0fa | 6b73c67d58a1f2a18b6bf0d9912b805d1e4032cc | /CAU-Baekjoon-Cpp-/11047(동전 0).cpp | 5a789f7f13ad29bb9ce9b6ffb411b89a46b4815d | [] | no_license | javaBarista/CAU-Baekjoon-Cpp- | 6f7c3fe95effc21c549951c8de7c73416747a48a | 5622e4bc4b2ca3ddaae9241170f1099083ab23c6 | refs/heads/master | 2020-12-15T07:07:18.081040 | 2020-05-05T14:22:43 | 2020-05-05T14:22:43 | 235,026,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | 11047(동전 0).cpp | #include <iostream>
#include <vector>
#pragma warning (disable : 4996)
using namespace std;
int n, k;
bool isclear = false;
static int coin[10];
void init() {
scanf(" %d %d", &n, &k);
for (int i = 0; i < n; i++) scanf(" %d", &coin[i]);
}
int main() {
init();
int count = 0;
for (int i = n - 1; i >= 0; i--) {
i... |
479384bea5eaf2bb72f18894de61748ba65f3961 | a2466a560bfebbb0540d6f9da99980a612723b81 | /millis_timestamp_events.ino | c76788624ec020f86e6a8ffd1cf6edf8eb098317 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | Koepel/Fun_with_millis | 36ec11d39a781acd9ad7593cb86a6ccb655559be | cde746f7daa91a100b23f78ea9f5eae94c7394fb | refs/heads/master | 2022-04-30T01:09:59.817009 | 2022-03-18T20:49:01 | 2022-03-18T20:49:01 | 167,151,918 | 11 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,049 | ino | millis_timestamp_events.ino | // ---------------------------------------------
// millis_timestamp_events.ino
// ---------------------------------------------
// License: The Unlicense, Public Domain.
// Author: Koepel
// 2019 april 13, Version 1
// 2021 may 23, Version 2
// Added a small delay of 2ms at the end of the loop(),
// because button... |
a66f8d5243bb8bcd5dc12c3a5481b38bac3ebbcf | 26e0f1ce7789dd6b5eb9c0971c3438c666f42880 | /87.scramble-string.cpp | ae65e275dc96f7b372738a0e9f1d9ebe016dd275 | [] | no_license | yanmulin/leetcode | 81ee38bb8fbe8ca208bc68683d0ffb96b20f2b68 | 7cc1f650e1ba4d68fb3104aecf3dfbb093ad9c1d | refs/heads/master | 2020-12-05T01:39:32.290473 | 2020-08-19T03:47:23 | 2020-08-19T03:47:23 | 231,969,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | 87.scramble-string.cpp | class Solution {
private:
bool recurse(string s1, string s2) {
if (s1.size() != s2.size()) return false;
if (s1.size() == 0 || s2.size() == 0) return false;
if (s1 == s2) return true;
string ss1 = s1, ss2 = s2;
sort(ss1.begin(), ss1.end());
sort(ss2.begin(), ss2.end(... |
b10a1fa57c84bfcaa5512b8088f45aa98918abed | 0a9465576341cd55480de06914d023569f041b6a | /src/xcroscpp/src/libros/intraprocess_subscriber_link.cpp | d93b67fa651d6a4b18b871b9f2aa947d47c3b840 | [
"Unlicense"
] | permissive | dogchenya/xc-ros | 95751827e13627afdc186d02d3113b8b0d1e0560 | 43c8b773a552ea610bd03750c9c32d7732f8ea69 | refs/heads/main | 2023-06-11T04:05:44.994499 | 2021-06-30T12:22:44 | 2021-06-30T12:22:44 | 331,613,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,912 | cpp | intraprocess_subscriber_link.cpp |
/*
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc.
*
* 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 cond... |
499bb51446571de0f6bc3edf4fb8acdd0bf65d37 | 9dc2c4a8549a4ab2920eafed17caa1b03d846fa9 | /ProjectWarshipbattle/source/ArtificialIntelligence.h | 9a5537f35c7c1a85028cde460cf7095500e1fd2c | [] | no_license | DingJunyu/WarshipBattleRe | 1d4dcd6ebed0d7e3e12a88d6e3447a5d09246ca6 | 6fd3b17d48f8e45dca18e04c4d802d0d2bba78ed | refs/heads/master | 2020-05-07T22:04:20.520706 | 2019-06-21T01:22:59 | 2019-06-21T01:22:59 | 178,110,286 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,644 | h | ArtificialIntelligence.h | #pragma once
#include"DefinedData.h"
#include"ShipMain.h"
#include"OtherFunctions.h"
#include"AI_Action.h"
#include"Ammo.h"
#include<vector>
#include<list>
/*このクラスにはAIの行動を実現する*/
class ArtificialIntelligence
{
public:
ArtificialIntelligence();
~ArtificialIntelligence();
void SetStatus(ShipMain ship);
void Move(Ship... |
2e3f06861b2351640e245cfe305c96fd5e25417a | f895c7375fa5768f8522edd5da2389c74987fc54 | /NaoCar/Oculus Rift/Sources/MainWindowDelegate.hpp | 9bb637b4b092f9b21455b866088d92878deabc79 | [] | no_license | EdWata/nao-car | 5e0f994645a71e6473d10d42315c667d712f414e | a7b54635bc5b2f37930ee2370719002178d1cce6 | refs/heads/master | 2021-04-14T23:27:13.022569 | 2016-04-23T21:08:21 | 2016-04-23T21:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | hpp | MainWindowDelegate.hpp | //
// MainWindowDelegate.hpp
// NaoCar Remote
//
#ifndef _MAIN_WINDOW_DELEGATE_HPP_
# define _MAIN_WINDOW_DELEGATE_HPP_
# include "MainWindow.hpp"
class MainWindowDelegate {
public:
virtual ~MainWindowDelegate(void) {}
virtual void connect(void) = 0;
virtual void hostEntered(std::string host) = 0;
... |
85e899004f4c4cbda6fc0af3b0a42d46022f5180 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /InnerDetector/InDetRecTools/TRT_DetElementsRoadTool_xk/TRT_DetElementsRoadTool_xk/TRT_DetElementsRoadData_xk.h | dc461654816bec9777ad1b0925e9b198f0d595fd | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,438 | h | TRT_DetElementsRoadData_xk.h | /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TrkSurfaces/CylinderBou... |
3e42ffc6b6678adb18dd77c7ec2a0c5424902557 | c20c4812ac0164c8ec2434e1126c1fdb1a2cc09e | /Source/Source/Tools/SceneEditor/ResourceManager.h | b376525a0ea26f79a5a0a5736896eb6e5478af82 | [
"MIT"
] | permissive | uvbs/FullSource | f8673b02e10c8c749b9b88bf18018a69158e8cb9 | 07601c5f18d243fb478735b7bdcb8955598b9a90 | refs/heads/master | 2020-03-24T03:11:13.148940 | 2018-07-25T18:30:25 | 2018-07-25T18:30:25 | 142,408,505 | 2 | 2 | null | 2018-07-26T07:58:12 | 2018-07-26T07:58:12 | null | GB18030 | C++ | false | false | 10,991 | h | ResourceManager.h | // KResourceManager.h: interface for the KResourceManager class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_KResourceManager_H__9C3F564E_0218_4D56_AF1D_1E90C01E8AD6__INCLUDED_)
#define AFX_KResourceManager_H__9C3F564E_0218_4D56_AF1D_1E90C01E8AD6__INCLUDED_
#if _MSC_VER ... |
a8598e4f9cf473f480a8fc881704a76eaef5823f | 69d0deb5921edc82eea0ae184db99b87a0ca6900 | /catkin_ws/src/srrg2_slam_interfaces/srrg2_slam_interfaces/src/srrg2_slam_interfaces/system/map_listener.h | 6d82c08792c97b53feb8516ea72238553c4b75f8 | [
"MIT",
"BSD-3-Clause"
] | permissive | laaners/progetto-labiagi_pick_e_delivery | 8d4006e206cd15b90b7e2291876c2b201e314621 | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | refs/heads/main | 2023-08-19T00:17:51.491475 | 2021-09-16T16:35:45 | 2021-09-16T16:35:45 | 409,192,385 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,951 | h | map_listener.h | #pragma once
#include "srrg_messages/message_handlers/message_sink_base.h"
namespace srrg2_solver {
class FactorGraph;
using FactorGraphPtr = std::shared_ptr<FactorGraph>;
} // namespace srrg2_solver
namespace srrg2_slam_interfaces {
template <typename TransformType_>
using Trajectory_ = std::map<dou... |
44d614ddc81c4cd3f9ac1441f16b9caf2880cbda | 88935ce124c354acdb013df9a499067444829ca0 | /solutions/1947.cpp | 9641b279c5a5741199a16e7bc58be60c3813849c | [] | no_license | pascal-the-elf/TIOJ-ASE | 6883e4d0d0a23f02d3f2efe58bf5bd9537952384 | 181ba41b732d52f9c8c728be247961dda3bd4398 | refs/heads/main | 2023-06-04T11:40:20.715491 | 2021-06-27T16:35:40 | 2021-06-27T16:35:40 | 377,033,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | cpp | 1947.cpp | #include <cstdio>
#include <vector>
#define pb emplace_back
const int N = 1000025;
inline char readchar() {
constexpr int B = 1<<20;
static char buf[B], *p, *q;
if(p == q && (q=(p=buf)+fread(buf,1,B,stdin)) == buf) return EOF;
return *p++;
}
inline int nextint() {
int x = 0, c = readchar();
whil... |
d57a7b05db399ce1adca4e514515423b25c2a26e | 6dff85b5e9dd68763ae65c5f2bd39ae8a807598f | /KeyCursor/KeyCursor.cpp | 17c5d00a2fcde4b527fba2824ce1d8b77cc05c4c | [] | no_license | winjii/KeyCursor | 292ded667efd987d6a15fdb6055e5d5fbdd30ab2 | d4d12f3aaa9a6b634740c93c4cba7ca00e47657a | refs/heads/master | 2021-05-13T23:10:36.678520 | 2018-01-06T19:55:16 | 2018-01-06T19:55:16 | 116,507,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,665 | cpp | KeyCursor.cpp | #include "KeyCursor.h"
namespace KeyCursor {
KeyCursor::KeyCursor(const DevicePos &pos) : _pos(pos), _lastV(0, 0), _leftStickDir(0, 0), _rightStickDir(0, 0) {}
void KeyCursor::update() {
Point l(0, 0), r(0, 0);
if (KeyE.pressed()) l.y--;
if (KeyS.pressed()) l.x--;
if (KeyD.pressed()) l.y++;
if (KeyF.pressed())... |
a0b9e964a43e79cf5c346c41d11ecc0270cc25fe | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /simstudy/inst/testfiles/clipVec/clipVec_DeepState_TestHarness.cpp | 75047abe2dfc62f1decb8b43321dfcd3f50fb425 | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | cpp | clipVec_DeepState_TestHarness.cpp | // AUTOMATICALLY GENERATED BY RCPPDEEPSTATE PLEASE DO NOT EDIT BY HAND, INSTEAD EDIT
// clipVec_DeepState_TestHarness_generation.cpp and clipVec_DeepState_TestHarness_checks.cpp
#include <fstream>
#include <RInside.h>
#include <iostream>
#include <RcppDeepState.h>
#include <qs.h>
#include <DeepState.hpp>
Rcpp::Intege... |
1c50dcad346d892c1dec5251d8d7817a040c3232 | 612252bef1d47b5d5bfe2d94e8de0a318db4fc8e | /3.8.1/Voxel_Explorer/Classes/Levels/SewerBossLevel.hpp | 33aa494e319606eef2529d9cbd87124cd3cea872 | [
"MIT"
] | permissive | dingjunyong/MyCocos2dxGame | 78cf0727b85f8d57c7c575e05766c84b9fa726c1 | c8ca9a65cd6f54857fc8f6c445bd6226f2f5409d | refs/heads/master | 2020-06-05T08:32:45.776325 | 2016-10-08T16:09:38 | 2016-10-08T16:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,019 | hpp | SewerBossLevel.hpp | //
// SewerBossLevel.hpp
// Voxel_Explorer
//
// Created by wang haibo on 15/12/1.
//
//
#ifndef SewerBossLevel_hpp
#define SewerBossLevel_hpp
#include "StandardLevel.h"
class SewerBossLevel : public StandardLevel
{
public:
SewerBossLevel();
virtual bool build();
virtual bool createTerrain();
... |
fb1baa42d959d3ddbd931efac20bc58b9deb8028 | 7494e2cad705acfeab333690817d024d09e77913 | /imutest.cpp | 320b126fed1774fcee2ebef01b81d831aa3e0543 | [] | no_license | nasa-watchdog/watchdog_integration | b02870bd5e3462e2848df9dc5fdd8d7c543c00df | bedf6e93f5f34f0e4a1db587c9c2eeb28e9acb88 | refs/heads/master | 2020-05-17T05:22:30.515363 | 2019-05-05T02:22:42 | 2019-05-05T02:22:42 | 183,533,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | imutest.cpp | #include "imu.h"
#include <string.h>
#include <iostream>
using namespace std;
int main()
{
imu_acc imu_acc_out;
run_imu(imu_acc_out);
cout<<imu_acc_out.x<<' '<<imu_acc_out.y<<' '<<imu_acc_out.z<<endl;
}
|
3438d85b39697471eefdd1c13a91896f61332067 | 60bd10c54e8499691bbcf25a5acb58541046b67d | /game_server_logic/export/include/reversi/remoting/multiplayer_match.hpp | 463649e3f1b3a60b61f287eef6fae8d3425f4c99 | [] | no_license | andyprowl/reversi | 86af2dfd78779f489fd11cf2ac24620c788e2ec6 | 19e8b8193e3fc2c6adf3c954bf4f21483f52482b | refs/heads/master | 2021-01-02T22:59:00.115805 | 2015-04-20T00:21:39 | 2015-04-20T00:21:39 | 34,134,666 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | hpp | multiplayer_match.hpp | #pragma once
#include "util/signal_traits.hpp"
#include <boost/signals2.hpp>
#include <functional>
#include <memory>
#include <string>
#include <vector>
namespace reversi
{
class game;
class game_logger;
}
namespace reversi { namespace remoting
{
class match_full_exception : public virtual std::exception
{ ... |
d57d68230ea7b8f4113ef3f92a4686c045729fbf | a5938b70a2db3763365e57f5adae334c4dd5953c | /TEST_DIR/test_win32Console/test/test.cpp | fe68ab70ac5bb902784345e51acab6c6d61545dc | [] | no_license | jerryhanhuan/test-code-backup | 7dea8a8eb4209dc241dae1864df6b1eb1a48c7bd | 2ebf0b1cb6715f66ea4c0b3153d426652ce9235f | refs/heads/master | 2021-01-22T22:57:25.097424 | 2014-09-17T02:31:47 | 2014-09-17T02:31:47 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,084 | cpp | test.cpp | // test.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
//int _tmain(int argc, _TCHAR* argv[])
//{
// return 0;
//}
#include "stdafx.h"
#include <Windows.h>
#include <iostream>
using namespace std;
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned long ULONG;
#include <Win... |
e0172146ca509822bacfa00dfd3ddaf66976b589 | e768f432416693d0c66a776711a27fa078021973 | /Player.h | 071ec9b14e15c51fb052d906af1004a899dc61af | [] | no_license | Shad0wC0der/Bombermaaan-for-Firefox-OS-WSServer | 196f8bafb381559a945322080f8931777d7a75c4 | 19f8dddb89d7c7f40926878d50cbb1e855871aaa | refs/heads/master | 2021-01-01T15:18:16.182485 | 2013-04-08T22:08:26 | 2013-04-08T22:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | Player.h | /*
* Player.h
*
* Created on: 9 déc. 2012
* Author: robin
*/
#ifndef PLAYER_H_
#define PLAYER_H_
#include <string>
#include <websocketpp/websocketpp.hpp>
class Player {
private:
std::string name;
websocketpp::server::connection_ptr con;
std::string id;
public:
Player(const websocketpp::serv... |
f1449171a1719effbbde96ec37e693176d15be47 | 9d4f58b64eab23ab1098a987ee5deaa62840cb9d | /Lab3_C.h | 1c0a692f2a94035bccafca139bf200e7ca06cc0c | [] | no_license | Efimenk0/Lab3_C | bfc62703e24e79338ebf10f65eb6acd2ab87b2a0 | c912ecf7572b9be7430d4aa3aa203480479d8ee7 | refs/heads/main | 2023-03-04T14:54:54.489628 | 2021-02-09T20:38:55 | 2021-02-09T20:38:55 | 315,260,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,585 | h | Lab3_C.h | #ifndef LAB3_C_H
#define LAB3_C_H
#include <vector>
#include <string>
#include "TernaryVectorClass.h"
namespace Lab3_C {
// Выбор номера альтернативы
int dialog(const std::vector<std::string> msgs);
// Первая инициализация вектора
TernaryVectorClass::TernaryVector Input();
// Переопределит... |
a99cbfe43b657fd5df3a69f7f258f1aa0901c615 | ccaa04196e2ee3b394198f3981dac9fa51f6c00a | /sources/Rental.cpp | babfec3bbc96ce4a41f5f16192044a47ce126364 | [] | no_license | EricB2A/GEN_LABO5 | 0ac7738253f56898b09196c57d91de5361678c40 | 24c5b790caecd036bc011e13e0388b0e81347e29 | refs/heads/master | 2022-11-05T15:26:38.997004 | 2020-06-21T12:09:29 | 2020-06-21T12:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | Rental.cpp | #include <sstream>
#include "Rental.h"
using std::ostringstream;
Rental::Rental( const Movie& movie, int daysRented )
: _movie( movie )
, _daysRented( daysRented ) {}
int Rental::getDaysRented() const { return _daysRented; }
const Movie& Rental::getMovie() const { return _movie; }
double Rental::ca... |
4625e25631564a3d7fda5a0dc216cc7691030b8e | 2dd4e6a5b0398ddf56defd928af6669fb567368b | /FileIO.h | 54148b2bbb56fb2d8284aabbbf00c34dc566f4ba | [
"MIT"
] | permissive | jtpils/non-rigid-recon | 7a71fd8394f2acfeca6368cd0125ebf7d89f2898 | 15b7e22454f2d6f1813f89e09c31c00abe2c5873 | refs/heads/master | 2020-05-14T20:22:53.773379 | 2018-11-13T16:17:33 | 2018-11-13T16:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | FileIO.h | #pragma once
#include <string>
#include <Eigen/Dense>
#include <vector>
class FileIO
{
public:
FileIO();
~FileIO();
void saveMeshPly(const std::string &outPath);
void saveMatrix(const Eigen::MatrixXd &mat, const std::string &file);
const void SavePintsWithNormals(const std::vector<Eigen::Vector3f>&pt_cl... |
e09cac3287fa337a075a1bfed52d9ffda88a849f | 36d75a92ebacdbfebe87cba633548ef78ad08b5b | /youBot/main.cpp | e8133c8ee9e33cf885b16a48a462a242968779fd | [
"MIT"
] | permissive | XITASO/CAROL | 33bc576139cf33e2b82e436929a84357d73ce0e9 | 0fe36c1835928db15fb36f752ca83f8d2c2e33d4 | refs/heads/main | 2023-07-18T22:09:18.686875 | 2021-09-17T08:20:10 | 2021-09-17T08:20:10 | 346,043,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | cpp | main.cpp | #include "main.h"
int main(int argc, char** argv)
{
/*init ros*/
ros::init(argc, argv, "youbot_driver");
ros::NodeHandle nodeHandle;
ros::AsyncSpinner spinner(1);
ros::start();
spinner.start();
MoveItSubscriber moveItSubscriber(nodeHandle);
Manipulator youbot(argv);
youbot.readAll... |
3c4d1616625df9b806c813ce2160943dfd34a43b | ad106c4b501111cb05236721fa5f4d0bb9a5adc7 | /cmake_project/lib/lifev/lifev/core/array/MatrixElemental.cpp | f1a69b0c401e07a68f309ef9ca9880b700b816d8 | [] | no_license | LucaZampieri/FSI_HiMod | 30dc0f433f61aaed25fa6bcf58e2b67c3c733ec7 | 10a00c01b52a2ddd8a364a25897316ac08b1ae2f | refs/heads/master | 2020-03-24T00:03:56.987253 | 2018-08-02T13:30:09 | 2018-08-02T13:30:09 | 142,271,122 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,906 | cpp | MatrixElemental.cpp | //@HEADER
/*
*******************************************************************************
Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
This file is part of LifeV.
LifeV is free software; you can redistri... |
ee831794b2b41542768a0e235169aefe2974f068 | 3163a95f941ff160218ea4a481855dad352ead38 | /HomeTask/Ch4/task17.cpp | 6c326fe6b9d097f8f0d82eaad63b2912b339289a | [] | no_license | obserrrver/StephenPrataCplusplus | c998d176e2115e9512348eb7d93a651dad26ae8f | 59b93c4e69578ba1ac1232e87827c6a430e894eb | refs/heads/master | 2022-11-25T10:23:23.795616 | 2020-07-12T10:58:43 | 2020-07-12T10:58:43 | 279,044,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | task17.cpp | #include <vector>
#include <array>
const int numOfStrings = 10;
int main()
{
std::vector<std::string>vectorStringsMassive(numOfStrings);
std::array<std::string, numOfStrings>arrayStringsMassive;
} |
5bce0cdf5a72c49b030a0041189df0b72df31013 | 5b8c79e53cbe90fc1a0f6dbef76059a2694794e6 | /hackerank/RoadsandLibraries.cpp | ac839269a916477def15d8e32c543fc3f61272c7 | [] | no_license | shubham-shinde/competative-and-DS | 7b4cb6e68d45ef2b86a8bf15beca2f497dd6fc9c | fdabed8b58be4a2701a74c76c5ed6b864c57e08b | refs/heads/master | 2023-05-26T09:26:37.768907 | 2023-05-11T05:56:47 | 2023-05-11T05:56:47 | 150,870,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,005 | cpp | RoadsandLibraries.cpp | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
void showlist(list <int> g)
{
list <int> :: iterator it;
for(it = g.begin(); it != g.end(); ++it)
cout << '\t' << *it;
cout << '\n';
}
void printAdjecencyList(list<int> adj[], int n) {
for(int i=0; i<n;... |
0b94310a2684958480031eff0827cd56419e66a4 | b574f6719749d1b55d5af70a591bcef325bbdd8d | /src/Pilha.hpp | e76a7312cee92f63c16681226bf9cb4a3092cf4b | [] | no_license | williamthewill/trabalhoPilha | b0574267dca70a37d561f1525f607e6d637830d9 | b98bf511e36dddb3c6822cea353cf08316943196 | refs/heads/master | 2021-01-10T02:19:11.999625 | 2016-04-04T15:08:19 | 2016-04-04T15:08:19 | 55,407,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,921 | hpp | Pilha.hpp | // Copyright [2016] <William Müller>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
template<typename T> class Pilha {
private:
/*
* declaração e atribuição da capaciadade maxima da pilha
* */
int capacidade = 0;
/*
* declaração do ponteiro
* */
int ponteiro = -1;
T * pilh... |
2652ce777d924296638a770b9fbd6228ac6e27a0 | 2c6221df607e3e41571e552ce6966acd5e8accab | /Epoll.cpp | 3195b3e872464da6a99f8152abb2f4248a9d2309 | [] | no_license | Charlyhash/GakkiNet | 1a66adaa5ea82116c001943c9f5faa433fbf17ed | 2d1c8ac4cb4c65875223a88627da8075129f92f7 | refs/heads/master | 2021-07-02T21:48:20.950842 | 2017-09-25T01:04:00 | 2017-09-25T01:04:00 | 104,687,870 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,449 | cpp | Epoll.cpp | #include "Epoll.h"
#include "GakkiLog.h"
#include <string.h>
#include <unistd.h>
#include <sys/epoll.h>
using namespace GakkiNet;
Epoll::Epoll() : epollFd(epoll_create1(EPOLL_CLOEXEC))
{
if (epollFd < 0)
LOG(ERROR) << "epll_create1 error";
}
Epoll::~Epoll()
{
::close(epollFd);
}
bool Epoll::add... |
c2c874df63f784a30e30799001aea44628efe0ed | ae956ea7df63b4fcca6af2d65c3902f986b7b08a | /BallSpawner.cpp | 0c0964e6806233c4b28eb87305cd076d076bb8f4 | [] | no_license | Chillex/phs-engine | 92a6fcddec158bfc43c10dc95c60164fd1903cbc | 9ba6c97a596a9b4e4d3143eafaef7194916e2595 | refs/heads/master | 2020-06-20T03:16:59.672721 | 2017-06-26T20:13:24 | 2017-06-26T20:13:24 | 94,192,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | cpp | BallSpawner.cpp | #include "BallSpawner.h"
#include <SFML/Graphics.hpp>
#include "Simulation.h"
#include "Particle.h"
#include "ParticleForceRegistry.h"
#include "ParticleGravity.h"
#include "FanForce.h"
BallSpawner::BallSpawner(ParticleForceRegistry* forceRegistry)
: BallSpawner(glm::vec2(0.0f), 1.0f, forceRegistry)
{
}
BallSpawne... |
c6177a7496a98fa613dabef13d036dd1d186a800 | 6cc0bc68c17538666e0258caae959d44c936970d | /spatial-hash.cpp | ff0d2597693621feb98dbc76de0ece4fbd05fb71 | [] | no_license | JDonner/gabbleduck | a02ebb0ebb11e86fd0cf2608d2e1e17bd9126f9a | a818a198bdaaa761067470dca25e47094a871a5b | refs/heads/master | 2018-12-28T11:57:16.650439 | 2010-07-07T15:58:09 | 2010-07-07T15:58:09 | 38,141 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,002 | cpp | spatial-hash.cpp | #include "spatial-hash.h"
#include "instrument.h"
#include <math.h>
#include <assert.h>
SpatialHash::SpatialHash()
{
for (unsigned i = 0; i < Dimension; ++i) {
total_grid_phys_extent_[i] = 0;
cell_phys_extent_[i] = 0;
n_cells_[i] = 0;
}
stride_0_ = 0;
stride_1_ = 0;
}
void SpatialHash:... |
ccabcb9b212ddade4173a881d2f9843e587860ae | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/Framework/TRiAS Framework/_CLIPBRD.CXX | 0a80419f171047aed31de1ab351a7902b26625e9 | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cxx | _CLIPBRD.CXX |
#include "tfrmpre.hxx"
#include "clipdef.h"
#include "clip_im.hxx"
#include "Clipbrd.hxx"
#if !defined(WIN32)
#define _DLLENTRY __export
#endif
_DLLENTRY CClipboard :: CClipboard (void)
{
cb_imp = new CClipBoard_Imp();
}
_DLLENTRY CClipboard :: ~CClipboard (void)
{
delete cb_imp;
}
void... |
31e6f9cbe8847ca6e0e2505546ae4c906bb82e5a | 0f0b8690fdaebaca92d06de4565a36a0b6e4c57b | /src/ColEm/Coleco.cpp | a7af02e1dab9b37d4ca9e290bc3cdd430470c4e5 | [] | no_license | tredpath/ColEm-pb | 1c4b15906dfe7863f9b63cc621a678719d4a45b6 | ce525f53f31cb07262306ea99a4aaf41af80f538 | refs/heads/master | 2016-09-05T11:13:21.164171 | 2012-08-01T19:58:53 | 2012-08-01T19:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,071 | cpp | Coleco.cpp | /** ColEm: portable Coleco emulator **************************/
/** **/
/** Coleco.c **/
/** **/
/** This file contains implementation for the Coleco ... |
ec3d00fc20ae7c69d86d94ae982a1cefcb62e779 | c57c691e0b431a283bf2bf909e5e8735b68c06ce | /ppp.cpp | 799548639c7a86d281754bf4f0500e66df63b009 | [] | no_license | prabal-k/prabal-k | 55fdd0aae95dcac8c4325b312f7d35363b260294 | 01fabccdcef8da27a1a895f0c59b4390dc560ac6 | refs/heads/main | 2023-08-27T19:49:24.143657 | 2021-09-24T05:34:46 | 2021-09-24T05:34:46 | 409,473,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | ppp.cpp | #include<stdio.h>
#include<conio.h>
int main()
{
int i=0,x,count=0;
printf("enter the number:");
scanf("%d",&x);
for(i=1;i<=x;i++)
{
if(i%2==0)
{
count++;
}
}
if(count==2)
{
printf("%d is prime number",x);
}
else
printf("%d is not prime",x);
return(0);
}
|
14963a1176f02a4945b237edba7391c093f2ef15 | 7619baf942a24e5f1c3c776126d5b3e9286f1341 | /KeywordsColoring2/source/Hook.cpp | f0a9a52327988ebcebd29384c6799e5e20573e19 | [] | no_license | sillsdev/CarlaLegacy | 2fe9c6f35f065e7167bfd4135dd5e48be3ad23be | 553ae08a7ca6c24cffcdeaf85846df63125a57fd | refs/heads/master | 2022-11-15T04:57:18.629339 | 2022-09-27T14:18:15 | 2022-09-27T14:18:15 | 6,128,324 | 10 | 8 | null | 2022-11-09T21:43:38 | 2012-10-08T17:33:08 | XSLT | UTF-8 | C++ | false | false | 12,671 | cpp | Hook.cpp | // Hook.cpp : Implementation of CHook
#include "stdafx.h"
#include "CARLAStudioApp.h"
#include <atlconv.h>
#ifndef mr270
#import "..\..\CarlaStudio\CStudio\csautomation\csautomation.tlb" no_namespace
#else // mr270
#import "..\..\csautomation\csautomation.tlb" no_namespace
#endif // mr270
#include "Hook.h"
#includ... |
e17d9411ed884e7b4e0e32d17a3cadca7b3391bb | 19681bc523d31eaf020f04bb14d31cfcab169c93 | /src/ofx/ofxPDSPSerialOut.cpp | 1ca31bd0899b814f961d3fa2014108563d135eeb | [
"MIT"
] | permissive | hinike/ofxPDSP | 16e6e6e9c759a4a980300a93f3a661ce080b13c9 | b2c7fe4eec7b972e728373601d70f8d989d5c2ab | refs/heads/master | 2020-03-19T15:39:09.261972 | 2018-06-08T14:27:28 | 2018-06-08T14:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,660 | cpp | ofxPDSPSerialOut.cpp |
#include "ofxPDSPSerialOut.h"
#ifndef TARGET_OF_IOS
#ifndef __ANDROID__
#define OFXPDSP_SERIALOUTPUTCIRCULARBUFFERSIZE 1024
ofxPDSPSerialOut::ScheduledSerialMessage::ScheduledSerialMessage(){ };
ofxPDSPSerialOut::ScheduledSerialMessage::ScheduledSerialMessage(int channel, float message, chrono::high_resolution_... |
2da6e8b968bc526f4a4cd3b0bd464d63d10aa33f | 7cce0635a50e8d2db92b7b1bf4ad49fc218fb0b8 | /施工界面程序20120307/Operation20120306/common/LineStruct.cpp | cbf874dfeb57fda3d7d735c124ef09f0157299d7 | [] | no_license | liquanhai/cxm-hitech-matrix428 | dcebcacea58123aabcd9541704b42b3491444220 | d06042a3de79379a77b0e4e276de42de3c1c6d23 | refs/heads/master | 2021-01-20T12:06:23.622153 | 2013-01-24T01:05:10 | 2013-01-24T01:05:10 | 54,619,320 | 2 | 2 | null | null | null | null | GB18030 | C++ | false | false | 1,410 | cpp | LineStruct.cpp | #include "stdafx.h"
#include "LineStruct.h"
CIPList::CIPList()
{
}
CIPList::~CIPList()
{
}
// 得到一个采集站IP地址
unsigned int CIPList::GetCollectIP(unsigned int uiLineNb, unsigned int uiPointNb, unsigned int uiChannelNb)
{
//测道号小于;测点号小于;测线号小于
return uiChannelNb + uiPointNb * 10 + uiLineNb * 1000000;
}... |
d5120d20f59510eeaf70be7243b430540168ea2b | 904fdcf8cc2762b0d56c4fb399bd41f0be38741d | /adapt/adaptMsg.cpp | 03964c66ca7e3e2030afbeab1b9fc2302b436884 | [] | no_license | arunbali/acached | f4c9b7ba6e2c01ff512eda737d76f213b953ec32 | b42ee05d0096ad7c12e7bd5efd3aa638db0cad71 | refs/heads/master | 2020-06-02T00:40:42.568098 | 2012-08-19T08:05:29 | 2012-08-19T08:05:29 | 5,469,104 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | cpp | adaptMsg.cpp | /*
* adaptMsg.cpp
*
* Created on: Mar 25, 2011
* Author: awara
*/
#include <iostream>
#include <list>
#include <pthread.h>
#include <assert.h>
#include "adaptlog.h"
#include <string.h>
#include <cstdlib>
#include "adaptMsg.h"
namespace _adapt_ {
adaptMsg::adaptMsg(int type) {
INFO(10, ... |
9cd73e813b7e4bee3d601e7b0c2ffbc8562fef24 | 515a28f08f58aaab7e277c90c7902c21bc8f4125 | /src/lipservice/DTFR/Card6/Nlmax.hpp | b442a1c9117bd286613444b9e00e64950b9ac258 | [
"BSD-2-Clause"
] | permissive | njoy/lipservice | e3bf4c8c07d79a46c13a88976f22ee07e416f4a6 | 1efa5e9452384a7bfc278fde57979c4d91e312c0 | refs/heads/master | 2023-08-04T11:01:04.411539 | 2021-01-20T22:24:17 | 2021-01-20T22:24:17 | 146,359,436 | 0 | 2 | NOASSERTION | 2023-07-25T19:41:10 | 2018-08-27T22:05:50 | C++ | UTF-8 | C++ | false | false | 373 | hpp | Nlmax.hpp | struct Nlmax {
using Value_t = int;
static std::string name(){ return "nlmax"; }
static std::string description(){
return
"nlmax is the number of Legendre neutron tables desired. That is,\n"
"it would be 4 for a P_3 set. nlmax must be > 0.";
}
static Value_t defaultValue(){ return 5; }
s... |
8bc776fc794e0d456f83e12cb1c14fc502e62314 | 3d866d3a6c5844a55744092c906bfaab5468ad1a | /librest/include/parameter_pack.h | b03e27d5641977676592ca7ea8964230ee0397cd | [
"MIT"
] | permissive | adaigle/http-cpp | 8536763d2e3677ea581e9934899199be60b1bfa1 | 84139c95f02a6ccf9943f348fef09040027a52d8 | refs/heads/master | 2021-01-10T14:51:10.473520 | 2016-05-11T13:56:00 | 2016-05-11T13:56:00 | 53,694,797 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | h | parameter_pack.h | #ifndef PARAMETER_PACK_H
#define PARAMETER_PACK_H
/// \brief Store a parameter pack as a single type to be applied later to another type.
/// \tparam Args The type to store in the parameter pack.
template <typename ...Args>
struct parameter_pack_type {
/// \brief Apply the stored types of parameter_pack_type to \... |
3c72a85be1534ec7301eb00aa0a1471e99cf1c4b | f8ff0df9f02654a0c6fcc223c78a203e9b76d9c9 | /LPC1768CookingTimer/coockingTimer.cpp | fdcf902f5703d3da4c14e591d7e83cbda79c0202 | [] | no_license | SmashKPI/Coocking-Timer | 87efd83af859bfc54b516aad135a8908d860f395 | d01951d583981057bcceb203248fe2b62b7270ae | refs/heads/main | 2023-03-04T21:54:51.301203 | 2021-02-20T22:59:02 | 2021-02-20T22:59:02 | 332,126,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,666 | cpp | coockingTimer.cpp | /*******************************************************************************
Name: CookingTimer.cpp
Author: DTsebrii
Date: 02/18/2021
Description: A project to read an user input, convert adc value to a specific
time, and wait for it. The end of a timer will be signilized with a... |
e3c1af1c63245981c29c7405193c1f501a383f7c | d1e1cd394b694d9c7ca656e29e8e85f6a1ef54e4 | /cc/transaction.hpp | 8c4da86216a3363eacc0610976619ef1394c7c88 | [] | no_license | jnmt/toy | a00e56afac8078061bab1ba23c3d8ebcc26f731b | f7ca4c0e0f1fde6cb4acb9537bc12b00f111a18f | refs/heads/master | 2021-11-28T19:26:50.671130 | 2021-11-14T00:45:57 | 2021-11-14T00:45:57 | 194,046,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | hpp | transaction.hpp | #pragma once
#include <vector>
#include <boost/format.hpp>
#include <boost/thread.hpp>
#include "common.hpp"
#define TX_INPROGRESS 0
#define TX_ABORT 1
#define TX_COMMIT 2
class Transaction {
private:
virtual void begin() = 0;
virtual void commit() = 0;
virtual void abort() = 0;
virtual void read(Operation ... |
3cb63bc6e8d2ec3193e4b4bed5e06cd6f4f155a2 | 8ecbcd850fd4bc098bbd5a8be3b0efd2d1706c2c | /src/Master/Audio/Audio.h | 99845c1422d651afeb3d3709ec70bfafe2525d79 | [] | no_license | xivitazo/Driver | 1e137a35ce02cd86c7c951b8024041c7030a171a | 1c750067a188f0958ce8f66b618576563d60ad6b | refs/heads/master | 2023-04-13T16:04:36.469521 | 2021-04-21T12:24:37 | 2021-04-21T12:24:37 | 210,957,057 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | h | Audio.h | #ifndef AUDIO_H
#define AUDIO_H
#include "Modulos/AudioMod.h"
#include "conexion.h"
class Audio
{
int ninputs, noutputs;
//Los módulos empiezan a partir del 2, el 0 son las entradas y el 1 las salidas
std::vector <AudioMod *> modulos;
ofSoundBuffer output;
//std::vector <int [2] > inputlink;
... |
bf05a0f8f524ce57ebb5fd7785353b348e1735af | f1b5bfb65d6b2b7fc4fb49fc2d7999c707e1214f | /Source/Arbiter/Core/Memory/AlignedMemory.hpp | 8bbbf0ee87133f12910a1c5751dfb4b21983f761 | [
"BSD-3-Clause"
] | permissive | cookieniffler/Arbiter | 68ef41c5c055406018dea8d986a44cb5525e24a7 | 271fe56cb9379d9c76704e028e07dfdb9693bd54 | refs/heads/master | 2020-05-27T09:32:45.198703 | 2019-08-06T15:17:28 | 2019-08-06T15:17:28 | 188,567,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | hpp | AlignedMemory.hpp | #pragma once
#ifndef __ALIGNEDMEMORY_HPP__
#define __ALIGNEDMEMORY_HPP__
#include <Arbiter/Core/Common/Base.hpp>
ARBITER_NAMESPACE_BEGIN
class AlignedMemory
{
private:
protected:
public:
AlignedMemory();
virtual ~AlignedMemory();
};
ARBITER_NAMESPACE_END
#endif // __ALIGNEDMEMORY_HPP__
|
f8a6cec890403ee96773750e71dce71478594d66 | 843151e566c8cef0cc24c7a185ea95ab68ad4083 | /doc/examples/xray_monolayer/30mN/molgroups.cc | e10bc411411e982b34b2d745e1eab2df75feddf4 | [] | no_license | reflectometry/cspace | ee1c23f2133ab7d9f3dbcd4b9aa3b474e2a7b070 | f6d46c08a339fbfd1ddcc7071ae7fef938a51a0a | refs/heads/master | 2020-06-05T09:14:07.776101 | 2014-12-10T20:17:19 | 2014-12-10T20:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143,830 | cc | molgroups.cc | /*
* molgroups.cc
* Gauss
*
* Created by Frank Heinrich on 27/10/08.
* updated 9-May-2012
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
#include "molgroups.h"
#include "stdio.h"
#include "stdlib.h"
//----------------------------------------------------------------------------------------... |
c22f97d990a516edd371b0ca727b558ce64dc739 | a72bf12a7f2db6f2bf59161e1298a4261331e127 | /plugkit/src/slice.hpp | f409b614da45f40abeaaf1af847db802015165f7 | [
"MIT"
] | permissive | vaginessa/deplug | 747789cefb396f1137102335b008620bcc57be25 | 2456cbcb05d8285a07360fbd1529a239e520a754 | refs/heads/early-dev | 2023-03-08T11:04:08.629415 | 2018-04-02T14:28:37 | 2018-04-02T14:28:37 | 127,824,553 | 0 | 0 | MIT | 2023-03-03T20:26:42 | 2018-04-02T23:38:12 | C++ | UTF-8 | C++ | false | false | 270 | hpp | slice.hpp | /// @file
/// Binary sequence
#ifndef PLUGKIT_SLICE_H
#define PLUGKIT_SLICE_H
#include "token.hpp"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
namespace plugkit {
struct Slice {
const char *data;
size_t length;
};
} // namespace plugkit
#endif
|
3257f97743231e759d391580ca86121ccf95edf7 | 02133492ffe43c0a12e506862df2dc2d655c05c9 | /include/Exceptions.h | 3f203bd49f2daa8eb17aea2dc85d6b68e380dbff | [] | no_license | Chris-Jukebox/SPH-Simulation | 37e1e63be3e175d1b998f817556c284095a1dc3f | 32906a648a0af6bf898f7e3092eb224a2ea53506 | refs/heads/master | 2020-05-29T12:31:09.916171 | 2016-01-11T20:51:06 | 2016-01-11T20:51:06 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 441 | h | Exceptions.h | /*
* Copyright © 2015 Jeremy T. Hatcher All Rights Reserved
*/
#pragma once
#include <exception>
#include <string>
class GenericException
{
protected:
std::string m_msg;
public:
explicit GenericException(std::string& message)
:m_msg(message)
{}
explicit GenericException(const char* message)
:m_msg(message)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.