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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
416e89e3249897a403112cbfedd3fa61de88613e | ca0a5f15b69c09d79e417fb9fcbeae725ce17749 | /libs/asynchronous/doc/examples/example_layers.cpp | 2ee46de61dd7f768897336f6795ade5b9aa7727a | [
"MIT",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | henry-ch/asynchronous | 1e31ddb3615590b1c301e878ae0903a2eb2adead | d61e0e65d6bf67d3a0b78c31b29f873359fac42c | refs/heads/master | 2023-05-25T21:32:16.398110 | 2023-05-23T16:05:40 | 2023-05-23T16:05:40 | 11,562,526 | 35 | 8 | null | 2022-06-10T13:54:51 | 2013-07-21T14:07:22 | HTML | UTF-8 | C++ | false | false | 7,459 | cpp | example_layers.cpp | // Boost.Asynchronous library
// Copyright (C) Christophe Henry 2016
//
// 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)
//
// For more information, see http://www.boost.org
#i... |
e2b8d3409bf16264e70a0f18c8e2a529f5f180cb | 7d1f70ace8a151d04e895603c26435cfe5163aa0 | /handler.h | 7f8fbdba587cd1ee654c40c49df976d4ad54101e | [] | no_license | beafshar/Switching-Network | b2440878a8338e8e4523ed72ed392e2eb2cb708d | a1345c517f0ed4a5a1871b3b18b05b09162ab0bd | refs/heads/main | 2023-04-18T20:32:13.089724 | 2021-05-06T17:05:06 | 2021-05-06T17:05:06 | 360,526,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | h | handler.h | #include "headers.h"
class Handler
{
public:
Handler();
void get_input();
void input_handler();
void make_new_switch(int number_of_ports, int switch_number);
void make_new_system(int system_number);
void connect_system_to_switch(string connect, int system_number, int... |
1063cf4ca5ee9cfdff3c616a6398e0d258be0851 | 1f77f63fc4bcf538fc892f6a5ba54058367ed0e5 | /plugins/ThrustFilePlugin/src/base/plugin/GmatPluginFunctions.cpp | 28d406d1f2a46711f5c449058af04e6892c4664d | [
"Apache-2.0"
] | permissive | ChristopherRabotin/GMAT | 5f8211051b620562947443796fa85c80aed5a7cf | 829b7c2c3c7ea73d759c338e7051f92f4f2f6f43 | refs/heads/GMAT-2020a | 2022-05-21T07:01:48.435641 | 2022-05-09T17:28:07 | 2022-05-09T17:28:07 | 84,392,259 | 24 | 10 | Apache-2.0 | 2022-05-11T03:48:44 | 2017-03-09T03:09:20 | C++ | UTF-8 | C++ | false | false | 3,075 | cpp | GmatPluginFunctions.cpp | //------------------------------------------------------------------------------
// GmatPluginFunctions
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represent... |
64db4c91e474a5d1e619cb367c7716702702625d | c2616feb3b08de9285d885470513d10591add811 | /Porgatory - Fire Detection/Arduino Controller/ESP82166.ino | f29ff8278e6783c887fa88a793007e494c24c3a3 | [] | no_license | adiparamartha/Porgatory-FireFighter | 7e98cd4a6a44d6400b309498e31b5336a337d9c6 | 6c3a3093560f553ffe0a5398f6f19b0fcc144664 | refs/heads/master | 2020-05-25T05:04:47.085669 | 2019-05-20T13:41:35 | 2019-05-20T13:41:35 | 187,641,671 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,883 | ino | ESP82166.ino | #include <SoftwareSerial.h>
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "FIREBASE-DATABASE"
#define FIREBASE_AUTH "FIREBASE-AUTH"
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PASSWORD"
SoftwareSerial NodeMCU(D2,D3);
void setup(){
Serial.begin(9600);
... |
0ca1a9f0387e176d9d7a161e3a2948c8519a0940 | 4600aead4ae744c5d4e93dd761cd9ecb533ff431 | /test/adt/table/test_table.cpp | f6c90301c29c07a1135732f6b4ca6f8570d88692 | [
"Apache-2.0"
] | permissive | fox000002/ulib-win | 00acda66bc1dcd38770e960920362dc73368d016 | 628c4a0b8193d1ad771aa85598776ff42a45f913 | refs/heads/master | 2021-05-12T13:52:52.436757 | 2018-01-22T13:57:38 | 2018-01-22T13:57:38 | 116,941,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | cpp | test_table.cpp | #include <iostream>
#include "adt/utable.h"
#include "adt/upair.h"
void print(int *p)
{
std::cout << *p << std::endl;
}
int main()
{
using std::cout;
using std::endl;
typedef huys::ADT::UTable<int, const char *> UTableIC;
UTableIC ic;
ic.add(1, "ccccc");
ic.add(2, "ccccc");
cout <... |
877e4fde1df69f38bae57952265ec4e737bb7e83 | 7ed7aa5e28bd3cdea44e809bbaf8a527a61259fb | /UVa/10295 - Hay Points.cpp | 0935b1786d9087fbee510e745c5e37f03a068d41 | [] | no_license | NaiveRed/Problem-solving | bdbf3d355ee0cb2390cc560d8d35f5e86fc2f2c3 | acb47328736a845a60f0f1babcb42f9b78dfdd10 | refs/heads/master | 2022-06-16T03:50:18.823384 | 2022-06-12T10:02:23 | 2022-06-12T10:02:23 | 38,728,377 | 4 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | 10295 - Hay Points.cpp | #include <cstdio>
#include <cstring>
#include <unordered_map>
#include <string>
using namespace std;
int main()
{
int m, n;
unordered_map<string, int> point;
scanf("%d%d", &m, &n);
char str[100];
int pt;
for (int i = 0; i < m; ++i)
{
scanf("%s %d", str, &pt);
point[string(st... |
588a84bdafb4a0c1f226c8e6e59b10b968f56ff2 | 4d8144c85c3d6c8d69a5e04f8269db3672780434 | /학교수업/star question1.cpp | 8d3da35bfa86b699c1af076af698176cfda2d3d1 | [] | no_license | NKT-RJH/DGSW_School_Study | 482990644427fb587c8d421eb6252723251cf177 | 1d4b57b03ca7d90b6d308130314d05c8ac4d2c55 | refs/heads/master | 2023-04-19T22:27:44.345203 | 2021-05-12T10:16:02 | 2021-05-12T10:16:02 | 357,844,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | cpp | star question1.cpp | #include <stdio.h>
int main()
{
int i, j, k = 1;
for (i = 0; i < 5; i++)
{
for (j = 4; j > i; j--)
printf(" ");
for (j = 0; j < k; j++)
printf("*");
k += 2;
printf("\n");
}
for (i = 0; i < 5; i++)
{
k -= 2;
for (j = 0; j < i; j++)
printf(" ");
for (j = k; j > 0; j--)
printf("*");
pri... |
7bb031a6d3a46142b6b6971b21b1f7549c669f5e | 0397db7a385a90dac5ee8cc45b8c49ebf8298386 | /Unit Test/UnitTesting.cpp | 468bc62ac31be71701a12361935ae76d0fd93607 | [] | no_license | peichanghong/main-working-copy | 3a2e0e64911ec8bdacfa42dedb87f7f07ed28951 | 1a69f5009ed9c5a10c54b4712981e1f98da427a5 | refs/heads/master | 2021-01-10T05:33:35.220693 | 2016-03-05T11:53:52 | 2016-03-05T11:53:52 | 52,659,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,486 | cpp | UnitTesting.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include "TesterHeader.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest {
TEST_CLASS(SettingTest) {
public:
/*
TEST_METHOD(ParserTest) {
CommandPackage expectedAddObject(ADD, Task("fly a plane",0,11092001,-1,-1),0,"");
Parser... |
675a50ef577bfde29312fba8857081223f33603b | 89d2764b8056e9d384efa11099a455a5c6b36e60 | /RPA-Trajectory-Visualizer/TrajectoryVisualizer/trajectory.h | 4d274c0bf4ad40411db14850fd7ce697a20fd966 | [] | no_license | samchen16/RPA-Tracking-Human-Trajectories | 6c8aec3b19d73167f1ab8cc265f682144e30ecb2 | f91c2d0276acb68fbec43d20106b647acd47b1b8 | refs/heads/master | 2021-01-21T05:02:38.199414 | 2016-04-12T23:53:57 | 2016-04-12T23:53:57 | 40,920,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | h | trajectory.h | #ifndef TRAJECTORY_H
#define TRAJECTORY_H
#include <vector>
struct Point {
float x;
float y;
float z;
};
/**
* Model class representing an trajectory.
*
*/
class Trajectory
{
private:
std::vector<Point*>* positions;
std::vector<Point*>* velocities;
std::vector<Point*>* colors;
std::vector<fl... |
85d3094c9d293142179209787e782225b2b7ccd6 | 41817fa657db2c3c650613a9b92c869677cd3b87 | /UVa/429.cpp | 776e20009d609662f4dba79c6982cf183a10c7b5 | [] | no_license | judmorenomo/Competitive-Programming | 15cfa2f5a3e57c7e28920ed3b202093bebf1b25f | d16624fbfaa95f7629374cfe8f05603fbd50b3fb | refs/heads/master | 2021-07-22T22:50:40.158499 | 2020-04-27T17:55:43 | 2020-04-27T17:55:43 | 149,539,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | 429.cpp | #include<bits/stdc++.h>
using namespace std;
map<string, int> m;
vector<vector<int> > graf;
vector<string> aux;
bool vis[205];
int dist[205];
bool comp(string a, string b){
if(a.size() != b.size())return 0;
int dif = 0;
for(int i = 0; i < a.size(); i++){
if(a[i] != b[i])dif++;
}
return (dif == 1) ? 1 : 0;
}
int... |
d0aea11379fe2f96927759ce5d1129306b0709fb | 47057aea2fb3146ff4cd6498493897ee4b554bdc | /miniRenderer/Shader/phongshader.cpp | b086f1269a8d87b40582ed62485154614a5b54c4 | [] | no_license | WanLittle/miniRenderer | 13d601f36d6944173da6b3b04206e3d2cf8045da | cb2ddf1592f7bd73af1f768c655ebb83a7d465c9 | refs/heads/master | 2021-03-15T00:40:08.258868 | 2020-04-15T03:34:50 | 2020-04-15T03:34:50 | 246,808,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | cpp | phongshader.cpp | #include "phongshader.h"
VertexOut PhongShader::vertex_shader(const VertexIn &in)
{
VertexOut res;
res.FragPos = model * in.cam_pos;
res.Normal = glm::vec3f(model * glm::vec4f(in.normal, 1.0));
res.TexCoords = in.texcoord;
res.gl_position = projection * view * res.FragPos;
return res;
}
bool ... |
ddbc98ccdd86cf5119fa742f0e3ab60c2f37bf6b | 61a8e1547276a052dbe09e3588732e29a22f7b6e | /PhysVehicle3D.h | ad94b4266ee31943a9e6a5a685948b4ca9c59a33 | [] | no_license | MagiX7/Racing_Car | 81f2acd36891a885497381911b54659f3eca5a0d | d7dd46ed35975eca5db55b7b88ed639ecf1f5365 | refs/heads/main | 2023-02-22T11:25:05.378285 | 2021-01-24T20:16:32 | 2021-01-24T20:16:32 | 321,054,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,775 | h | PhysVehicle3D.h | #pragma once
#include "PhysBody3D.h"
#include "glmath.h"
#include "Primitive.h"
class btRaycastVehicle;
struct PhysBody3D;
class btQuaternion;
class btVector3;
struct Wheel
{
vec3 connection; // origin of the ray. Must come from within the chassis
vec3 direction;
vec3 axis;
float suspensionRestLength; // max le... |
2f02805c7c9a69f7f9d6caee800c1450cca0a112 | 497427ff0c93569f2091eb19944454f3a38d516e | /schunk_modular_robotics/schunk_libm5api/src/Util/Thread.cpp | 9250ed6f3aa93dce08bc871fbd8a66a29d528250 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | briefgw/schunk_lwa4p_gazebo_simulation | b52e721ad509be3acc5c315e3a7301fbf3584e80 | 7b148225bfca2f2d3289a9b924d6afde7507b9e8 | refs/heads/master | 2021-08-08T10:04:10.685659 | 2017-11-09T19:46:46 | 2017-11-09T19:46:46 | 110,165,089 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,721 | cpp | Thread.cpp |
/******************************************************************************
*
* Copyright (c) 2012
*
* SCHUNK GmbH & Co. KG
*
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Project name: Drivers for "Amtec M5 Protocol" Electronics V4
* ... |
fdb00f3e68de5198c1c07b92d7e86a38ec61fef4 | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/libs/multi_index/test/check_bmi_key_supported.cpp | 99ce8694b7e547346fadf9a4de1d5d64ac2611bb | [
"BSL-1.0",
"GPL-1.0-or-later",
"MIT"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | C++ | false | false | 426 | cpp | check_bmi_key_supported.cpp | /* Copyright 2003-2018 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#include <boost/multi_index/key.hpp>
#if ... |
1859884dc4def84f3caf469f98069d0523b5aab7 | d3c2f4d3df9385d8f8e6535feaa563a10c896e5e | /src/HwlocHelpers.hxx | b38b7c4df1659eed03e65ed97291bf973c974a48 | [] | no_license | kaifabian/mlc | 42eb9c5edb970bdd1ae632ffbef96e3160180f71 | 62707c2856702c83052d5aea1bf49dab341b398a | refs/heads/master | 2021-01-23T19:33:57.808996 | 2017-09-05T11:17:31 | 2017-09-05T11:17:31 | 102,828,542 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,077 | hxx | HwlocHelpers.hxx | #pragma once
#include <vector>
#include <hwloc.h>
//#include <hwloc/bitmap.h>
//#include <hwloc/cpuset.h>
//#include <hwloc/helper.h>
#include "Types.hxx"
using namespace std;
static inline bool Hwloc_IsNumaMachine(const hwloc_topology_t &topology) {
unsigned num_nodes = hwloc_get_nbobjs_by_type(topology, HWLOC_O... |
222b6bae51b20f7046a9d258732b9541980f3688 | a94935bd3855fa6da97265b491dd18930ccbb134 | /RealmLib/Packets/Client/Escape.cpp | 02c419dafd3108ce3c2aa672ec3704809c8a5ac7 | [
"MIT"
] | permissive | hcoffey1/RealmNet | 7531deed1fd80baaeb1fa8b42aa73271d86241e8 | 76ead08b4a0163a05b65389e512942a620331256 | refs/heads/master | 2022-04-25T13:37:49.505083 | 2019-03-05T21:29:56 | 2019-03-05T21:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | Escape.cpp | #include "stdafx.h"
#include <GameData/Constants.h>
#include <GameData/TypeManager.h>
#include "Packets/PacketWriter.h"
#include <Packets/Escape.h>
Escape::Escape()
{
}
Escape::Escape(byte* data)
{
}
void Escape::emplace(byte* buffer) const
{
PacketWriter w(buffer, size(), TypeManager::typeToId[PacketType::Esca... |
498fc555359ff42c11a0f47128546a4501a6e795 | d51d72f1b6e834d89c8551bb07487bed84cdaa31 | /src/output/osg/osg/ColorMask_pmoc.cpp | dd3358bbf51e765f375ddfe2c1882bca263e118a | [] | no_license | wangfeilong321/osg4noob | 221204aa15efa18f1f049548ad076ef27371ecad | 99a15c3fd2523c4bd537fa3afb0b47e15c8f335a | refs/heads/master | 2021-01-12T20:00:43.854775 | 2015-11-06T15:37:01 | 2015-11-06T15:37:01 | 48,840,543 | 0 | 1 | null | 2015-12-31T07:56:31 | 2015-12-31T07:56:31 | null | UTF-8 | C++ | false | false | 4,080 | cpp | ColorMask_pmoc.cpp | #include <osg/ColorMask>
//includes
#include <iostream>
#include <MetaQQuickLibraryRegistry.h>
#include <QtQml/QQmlEngine>
#include <osg/ColorMask_pmoc.hpp>
#include <customCode/osg/ColorMask_pmoc.hpp>
#include <customCode/osg/StateAttribute_pmoc.hpp>
#include <customCode/osg/StateAttribute_pmoc.hpp>
using namespace pm... |
0c48755847a49e1403af681b775f0a0f3f7be760 | 46f4d453bb7104a41f88e3a9b9b11a84b0480421 | /include/rua/file/posix.hpp | 46d333d5b7d0d49f99c285098ea66dd23a45ffdc | [
"MIT"
] | permissive | yulon/rua | 40f16d8c2bf3e5ea549e3bc56994cbcf3c1a7e0e | ab8a3d5532aa5f7cdc19ae3a517326a173d3ea28 | refs/heads/master | 2023-08-10T13:46:13.422627 | 2023-08-08T11:46:19 | 2023-08-08T11:46:19 | 108,065,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,605 | hpp | posix.hpp | #ifndef _rua_file_posix_hpp
#define _rua_file_posix_hpp
#include "times.hpp"
#include "../path.hpp"
#include "../range.hpp"
#include "../string/join.hpp"
#include "../sys/stream/posix.hpp"
#include "../time/now/posix.hpp"
#include "../util.hpp"
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <s... |
84d1393551a41213d949508fa3fa32c1c25304af | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/third_party/mach_override/mach_override.h | 253f273d16b6aba27aea33533d6ee89a80fa522b | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | C++ | false | false | 3,883 | h | mach_override.h | // mach_override.h semver:1.2.0
// Copyright (c) 2003-2012 Jonathan 'Wolf' Rentzsch: http://rentzsch.com
// Some rights reserved: http://opensource.org/licenses/mit
// https://github.com/rentzsch/mach_override
#ifndef _mach_override_
#define _mach_override_
#include <sys/types.h>
#include <mach/error.h>
#def... |
f0514087a1237bff965c175cd81856a50a9f293d | bb68632c4cd50982ebd9bc07c5dd533d98217c08 | /Solution/Day-579.cpp | 06faf5be29e2e8f5229a2bb9f82ca966921c2366 | [] | no_license | offamitkumar/Daily-Coding-Problem | 83a4ba127d2118d20fbbe99aa832400c71ce8bfa | e831e360bb1170162473a5e4ddf9b07d134826c1 | refs/heads/master | 2023-07-21T01:24:37.558689 | 2023-07-13T03:24:30 | 2023-07-13T03:24:30 | 234,764,757 | 32 | 12 | null | 2023-07-13T03:24:31 | 2020-01-18T16:41:42 | C++ | UTF-8 | C++ | false | false | 1,081 | cpp | Day-579.cpp | class Solution {
public:
int reachNumber(int target) {
// either by adding the values we are going to get the sum
// or we need to make the (target-currentPos) even number , because
// with even number we can make the displacement 0, let's say your difference
// is 10 then you can... |
8895fc8c49762b8b7f83a097702403bf90761275 | 44c8dbbe8cf860eadced513fcfea756c2f0dec9f | /Plugins/MediaPipe/Source/MediaPipe/Private/MediaPipeModule.h | 556fabd4708dab347295509ae9c77f8eeaab49b3 | [
"Apache-2.0"
] | permissive | FashengChen0622/ue4-mediapipe-plugin | 41ddaca0572a718028a4e7210b428b5a29d12aa4 | 28c2dfa2ddcb00296bf3307c6651dc60b7533ca6 | refs/heads/master | 2023-09-04T14:30:20.317405 | 2021-11-23T15:46:08 | 2021-11-23T15:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | h | MediaPipeModule.h | #pragma once
#include "IMediaPipeModule.h"
#include "Interfaces/IPluginManager.h"
class FMediaPipeModule : public IMediaPipeModule
{
public:
void StartupModule() override;
void ShutdownModule() override;
class IUmpPipeline* CreatePipeline() override;
private:
void* LibUmp = nullptr;
void* CreateContextPtr = nul... |
faf7b9cab3bbb8ecd98f29b9ac80c89f4fb1640e | 6c9bd50bdc4790c77d4840483cd126bea3c730f3 | /2nd semester/Object-oriented-programming/Seminars/Seminar 04 Demo/Seminar4/SEminar4/Instance.cpp | 93d51e073784614b96d6775ecf915db00e0c5359 | [] | no_license | toadereandreas/Babes-Bolyai-University | b9689951b88cce195726417ec55f0ced1aa4b8e6 | ca6269864e5ade872cb5522a3ceb94a206e207b3 | refs/heads/master | 2022-09-24T13:11:03.610221 | 2020-06-04T12:19:12 | 2020-06-04T12:19:12 | 268,924,167 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 547 | cpp | Instance.cpp | #include "Instance.h"
#include <string>
#include <sstream>
#include "Utils.h"
using namespace std;
std::istream & operator>>(std::istream & is, Instance & instance)
{
instance.reset_instance();
string s{};
getline(is, s);
vector<string> tokens = tokenize(s, ',');
if (tokens.size() == 0)
return is;
for (int ... |
67eb3f5dbebf6b48c492615c7d05eeaccefb669a | a923d47124ad3663c5fb70f5f0ccfb46365b4afa | /include/GlobalInfo.h | 5127e236e42be03362daa6ee25b5bc1fac7343bc | [] | no_license | ssyram/NovelRulesTranslator | f78cd0b06d1ded86b4a3eccbc18592848a228003 | ce87d121e10e8244db1202f300f3f321e7077504 | refs/heads/master | 2021-06-18T14:38:15.032394 | 2021-02-06T22:33:33 | 2021-02-06T22:33:33 | 175,027,327 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 884 | h | GlobalInfo.h | //
// GlobalInfo.h
// NovelRulesTranslator
//
// Created by 潇湘夜雨 on 2019/2/25.
// Copyright © 2019 ssyram. All rights reserved.
//
#ifndef GlobalInfo_h
#define GlobalInfo_h
#define TEST_TABLEGEN
#define TEST
#include <string>
#include <istream>
#include <type_traits>
#include <iostream>
#include <assert.h>
temp... |
6009d90dd845c04e19d85ca2fbc6d5d3a68c7e7b | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/connectivity/inc/connectivity/sdbcx/VKey.hxx | a0a2a7f39ad5118397612a1a236c92af90dbe2c0 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 4,842 | hxx | VKey.hxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
d54e86e173dcf396bea71cf63beae145759faba7 | 69d42439ce19fff1d62ae24cba96180c506000ba | /cmake/lesson4/cat.hh | bfa475bbd553a9a763cc8a035015ece5d98b0bea | [] | no_license | patorseing/build_tool_leason | f97c56e6dad5a7f062372b9243fb5e9f812904eb | 3588fbd70017b1df00df4bc64a1ea623584cd51e | refs/heads/main | 2023-03-12T22:20:46.360942 | 2021-02-27T23:30:31 | 2021-02-27T23:30:31 | 340,767,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | hh | cat.hh | #ifndef CAT_HH
#define CAT_HH
void hello();
#endif // CAT_HH
|
000ee77a43341f47b93d94944169bb7322d321e9 | 8f02939917edda1e714ffc26f305ac6778986e2d | /BOJ/1422/main.cc | b2b2a17c47ea4f07b5c529a4227f3d723fc71f98 | [] | no_license | queuedq/ps | fd6ee880d67484d666970e7ef85459683fa5b106 | d45bd3037a389495d9937afa47cf0f74cd3f09cf | refs/heads/master | 2023-08-18T16:45:18.970261 | 2023-08-17T17:04:19 | 2023-08-17T17:04:19 | 134,966,734 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cc | main.cc | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
using lld = long long;
using pii = pair<int, int>;
using pll = pair<lld, lld>;
////////////////////////////////////////////////////////////////
bool cmp(string a, string b) {
return a+b < b+a;
}
int main() {
ios_base::sync_with_stdio(false);
cin.ti... |
ddce962b89a677b4dc2b7baccf9cff96ff22e1b1 | a15778e6e7a9853a1f2798c11b5785f92830ce62 | /0221/1.Global,Local Variable.cpp | a5d8308362f506dd3b72deaebbc7611c461c6a3b | [] | no_license | charleslin826/C | 07c063475ef0c2619689201828f7ded6e95e4bc6 | aeb874a2bb4d7ef670a9f1cab1450f40f482afa7 | refs/heads/master | 2020-03-18T11:33:18.498638 | 2018-05-24T07:36:47 | 2018-05-24T07:36:47 | 134,678,386 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 442 | cpp | 1.Global,Local Variable.cpp | #include<stdio.h>
#include<stdlib.h>
void func();
int a=50; //此global variable無法影響裡面的 local variable
int main(){
/*int*/ a=100;
printf("Before call func(), a=%d\n",a);
func();
printf("After call func(), a=%d\n",a);//int的宣告拿掉後 就不是local variable了 而是直接改global的 所以結果會跟著變
system("pause");
return 0;
}
void func(){
... |
370c753b2b161104130566bb06bfac4a383d06b0 | 1e721a44ed81abe6b2a983e49b1d69126866e78d | /BOJ/Greedy/1120.cpp | d7e38da150f207aa79a855fdb1a6bc19c44b79cc | [] | no_license | jjwdi0/Code | eb19ad171f7223dbf0712e611c9fc179defd947b | cf8bf0859e086366b768f48bc7e16167185b153f | refs/heads/master | 2020-12-24T07:55:14.846130 | 2017-04-24T07:46:41 | 2017-04-24T07:46:41 | 73,354,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | 1120.cpp | #include <stdio.h>
#include <string.h>
char a[53], b[53];
int ans = 1e9, cnt;
int min(int X, int Y){ return X > Y ? Y : X; }
int main() {
scanf("%s %s", a, b);
for(int i=0; i<=strlen(b)-strlen(a); i++) {
cnt = 0;
for(int j=i; j<i+strlen(a); j++) cnt += (a[j-i] != b[j]);
ans = min(cnt, ans);
}
printf("%d", a... |
395ea920a3947d7d0974a672c87dfdf890c5c4c0 | 4323f2c50b3e19c8dbf8161e966fcda54dc093f2 | /src/espix-design/views/TextView.cpp | 372f3e56a1f6f5e1373f04ecf7c3a8257004e46d | [] | no_license | stonexer/espix-sdk | 435edf1ca5dc9bbc198732b268d24ad03fed3e2a | ce356dd6c2467365e456e56bea42f8191a411f63 | refs/heads/master | 2021-01-06T10:49:56.016196 | 2020-02-18T05:33:28 | 2020-02-18T05:33:28 | 241,303,243 | 1 | 0 | null | 2020-02-18T07:55:17 | 2020-02-18T07:55:17 | null | UTF-8 | C++ | false | false | 715 | cpp | TextView.cpp | #include "TextView.h"
TextView::TextView(String text, FontSize fontSize, TextAlign textAlign) : View(), _text(text) {
if (text == NULL) {
text = "";
}
_text = text;
_fontSize = fontSize;
_textAlign = textAlign;
}
TextView::TextView(FontSize fontSize, TextAlign textAlign) : View() {
_text = "";
_font... |
96eab93a44a22a083389a8b920bcb6209e5b1459 | 69bc103a348c29f42f982246a85828c18d9d930f | /TM/TMActionInput.cpp | 73a8e1b0d036b87cdfc89f1adc49a588187c4616 | [] | no_license | albertz/turingmachine | 79406f2867228be7aa2c11ed84864d816e3fa32e | 48c8d0fffa01b91a32a5f0a03a800222f7f142a1 | refs/heads/master | 2021-01-19T08:26:11.171294 | 2010-08-19T16:13:20 | 2010-08-19T16:13:20 | 848,884 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | TMActionInput.cpp | #include "TMActionInput.h"
#include "StringUtils.h"
TMActionInput& TMActionInput::operator++() {
((int&)currentChar)++;
(int&)currentChar %= int(TMAx) + 1;
if(currentChar == TMA0)
state++;
return *this;
}
std::string TMActionInput::debugStr() const {
return "{s:" + itoa(state) + ", c:" + itoa(currentChar) ... |
3d7494f7c645b1df901cf9d757883a464aa9bafa | e812bc6abf6467fa25b8c06bd7cc6006a697a319 | /Bank.cpp | f34b8f7b944026d6f1b9653098eebb481ec0b77d | [] | no_license | ashishpc/CPP-Practice | d8d99573f6552a03fbf3cf893340c1d0bab56fe2 | ff0c6fec422eaff61cdb9bf205c1cca45a98b430 | refs/heads/master | 2020-07-19T19:21:24.045963 | 2019-12-05T10:57:44 | 2019-12-05T10:57:44 | 206,500,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,683 | cpp | Bank.cpp | #include<iostream>
#include<string>
using namespace std;
class BankAcc
{
private:
int amount;
public:
BankAcc()
{
amount=0;
}
BankAcc(int amount):amount(amount)
{
}
int GetAmount() const
{
return amount;
}
void Deposit(int amt=100)
{
cout<<"Total balance (After deposition) is: "<<... |
da0ae05ac03df81fc3ee478d68fcc0d72668f636 | f321a4e73f0070c53f2c24d5849007d4daae5ee9 | /0543. Diameter of Binary Tree/diameterOfBinaryTree02.cpp | 1bb8f778931d7888ad80ecdf49569f08d42d10dd | [] | no_license | cesar-magana/Leet-Code | fd502c967afa96109117d1bef1900a66f31e5790 | 0ebd4d658dc8bad40cbb96422ba9e01cb1ab442d | refs/heads/master | 2023-09-01T09:20:56.395546 | 2021-10-20T11:04:27 | 2021-10-20T11:04:27 | 265,043,424 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | diameterOfBinaryTree02.cpp | int ans;
int height( TreeNode* node) {
if ( !node )
return 0;
int l = height( node->left );
int r = height( node->right );
ans = max( ans, l + r + 1 );
return max( l, r ) + 1;
}
int diameterOfBinaryTree(TreeNode* root) {
ans = 1;
height( root );
return ans - 1;
} |
2bd91614be11ad42318d6939ffebd91a16794fb2 | cccb439825572f601e885afffb82205498f710ad | /M4Lab_Tart_Dataman/Dataman/main.cpp | 9dc06b4e19f6f36b39fa5a880186344f683bb3c1 | [] | no_license | tartl7709/csc134 | 2f87c178739180a02a879daf952882f16a8c4323 | b44aa8e4f953090c75f9d93fe809f419d6db7679 | refs/heads/master | 2020-04-16T20:49:22.686077 | 2019-05-14T00:15:07 | 2019-05-14T00:15:07 | 165,907,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,559 | cpp | main.cpp | #include <iostream>
#include "Arithmetic.h"
#include "temperature.h"
// CSC 134
// M4Lab - Dataman
// L Tart
// 02/21/19
/*
Changes to make program more user friendly:
added 'x' for a multiplication option
added '#' after option to indicate that a number is required
added colons to after prompts to ind... |
509db80775fab48acc76eedc1ca3a4e1a43d19a3 | ff67e2c86e91c4cdf3fdd0c57e52a97c7427752a | /opencvTest/resize/main.cpp | c30ec96957d0b3cb6e9840db3e6b08a5166935bc | [] | no_license | Itanq/OpenCV | 3c539ce91afb65d9b429e8216d660c88ce313968 | 31f82a13c2691a93c0b3997c7bc144c7f82ece12 | refs/heads/master | 2020-12-25T22:30:07.600101 | 2016-11-27T12:16:01 | 2016-11-27T12:16:01 | 68,439,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | cpp | main.cpp | #include<iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
int main()
{
cv::Mat srcImage = cv::imread("../image/car.jpg");
cv::Rect rect;
rect.x = 270; rect.y = 720; rect.width=250; rect.height=100;
cv::Rect extra_roi;
float... |
43b25ddcc5db4916531d523b0c8680381ff5f8d4 | f23e6027b98ce89ccdf946bbc0aaa8d90ac54ce5 | /src/erhe/concurrency/erhe_concurrency/serial_queue.cpp | 930b01c16a0e19ec709ad8ca7845f34f4a03305f | [
"MIT",
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | tksuoran/erhe | 8476cba96d73d4636aad2a40daaa707fd00b112f | d8a3393113aac273fe2446894f287d9a7889e0a7 | refs/heads/main | 2023-09-04T11:06:39.665543 | 2023-09-02T16:15:32 | 2023-09-02T16:15:32 | 363,416,834 | 412 | 45 | NOASSERTION | 2023-07-15T11:06:09 | 2021-05-01T13:29:16 | C++ | UTF-8 | C++ | false | false | 1,752 | cpp | serial_queue.cpp | #include "erhe_concurrency/serial_queue.hpp"
namespace erhe::concurrency {
Serial_queue::Serial_queue()
: m_name{"serial.default"}
{
m_thread = std::thread(
[this]
{
thread();
}
);
}
Serial_queue::Serial_queue(const std::string_view name)
: m_name{name}
{
m_thr... |
3941050f1e23a73ea93ab4f8872ff1348dde447b | 1c805daca12d505b9d489e77f6b861cf7ad6d8bb | /MyClientHandler.cpp | 4e4bde244a6c7d62ceadf4c82f49937e1718e3ed | [] | no_license | secretBackupThatDefinitelyWontBeFound/shhhhh | c384a899255b16a85efe1a745b2385424dbbdd68 | 1e2a0545a1e6b8022691e225cdfc70645734c90c | refs/heads/master | 2020-12-18T10:45:01.644819 | 2020-01-21T13:43:08 | 2020-01-21T13:43:08 | 235,350,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,139 | cpp | MyClientHandler.cpp | //
// Created by to on 1/13/19.
//
#include "MyClientHandler.h"
void MyClientHandler::handleClient(IOManager *io_manager) {
std::string sep_lines = "/";
std::vector<std::string> lines;
std::string line = io_manager->getLine();
while (line != EXIT) {
lines.push_back(line);
line = io_... |
3225187d5a542ec442bdfd50c6d0dd437f8f45a5 | 7c6cea41a6aec80365cb20962b803b7b43eacdb7 | /include/BadDetector.h | 21edce0073c8f67858eb91d738b99d2a75695ae8 | [] | no_license | kold3d/gwm_anasen | 322fe7fd431cb0e53c3803f4e6215bb46517dc47 | 68ea35a65e18f2c55f0c9bd8b8d7bb9b6dbec384 | refs/heads/master | 2020-08-02T15:59:46.335359 | 2019-08-09T15:52:10 | 2019-08-09T15:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | h | BadDetector.h | #ifndef BAD_DETECTOR_H
#define BAD_DETECTOR_H
#include <TROOT.h>
#include <TTree.h>
#include <TFile.h>
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <unordered_map>
#include "SiHit.h"
#include "CsIHit.h"
#include "PCHit.h"
#include "Track.h"
using namespace std;
class SiSearch... |
8fb4c75ff892691ac6cfb7401e35a6a0ede52c1c | 0afe19dc19d0646271aab90596a3617d749e6786 | /ares/ngp/ngp.hpp | bb8fdc2d63cedbeb0f353b168a289a2ce2de5f46 | [
"ISC"
] | permissive | byuubackup/ares | 8654d8d39a9b2cc75e1cc030fd70b6854ac0cd1f | b6e807b54f69ad18a4788868b9de33a752ea7458 | refs/heads/master | 2022-12-04T18:12:38.720148 | 2020-07-25T02:06:51 | 2020-07-25T02:06:51 | 282,349,863 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 619 | hpp | ngp.hpp | #pragma once
//started: 2019-01-03
#include <ares/ares.hpp>
#include <component/processor/tlcs900h/tlcs900h.hpp>
#include <component/processor/z80/z80.hpp>
#include <component/audio/t6w28/t6w28.hpp>
namespace ares::NeoGeoPocket {
#include <ares/inline.hpp>
struct Model {
inline static auto NeoGeoPocket() ->... |
61caf64acab49d91b38327ab4ab84d1c10b194fa | 67ed24f7e68014e3dbe8970ca759301f670dc885 | /win10.19042/SysWOW64/SortWindows6Compat.dll.cpp | 589d5d566dc69aa99f3e2dfb09ab4b73b245880d | [] | no_license | nil-ref/dll-exports | d010bd77a00048e52875d2a739ea6a0576c82839 | 42ccc11589b2eb91b1aa82261455df8ee88fa40c | refs/heads/main | 2023-04-20T21:28:05.295797 | 2021-05-07T14:06:23 | 2021-05-07T14:06:23 | 401,055,938 | 1 | 0 | null | 2021-08-29T14:00:50 | 2021-08-29T14:00:49 | null | UTF-8 | C++ | false | false | 224 | cpp | SortWindows6Compat.dll.cpp | #pragma comment(linker, "/export:SortCloseHandle=\"C:\\Windows\\SysWOW64\\SortWindows6Compat.SortCloseHandle\"")
#pragma comment(linker, "/export:SortGetHandle=\"C:\\Windows\\SysWOW64\\SortWindows6Compat.SortGetHandle\"")
|
5244845d8b4612c97a086f7e1c9fde276bd28107 | 961a3d5c147df68a5af2e5a683ac1ac19e92daca | /Paddle.hpp | 3ff9a5f95fcce9c0fbbcf4c14c1e7af15c43acab | [] | no_license | numpad/Pong44 | 76a6cdeedeeaef287616cec06224556e5431b8ce | 50721ec9365287c644147b8ae4ec53bec251b7b1 | refs/heads/master | 2021-01-11T11:38:56.303145 | 2017-01-28T23:52:05 | 2017-01-28T23:52:05 | 79,855,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | hpp | Paddle.hpp | #ifndef PADDLE_H
#define PADDLE_H
#include "Player.hpp"
#include "Vec2.hpp"
#include "ParticleFuel.hpp"
#include <SFML/Graphics.hpp>
class Paddle {
float maxSpeed, acceleration;
Vec2 vel, acc;
Player player;
sf::RectangleShape shape;
public:
ParticleFuel pfuel;
Vec2 pos, size;
Paddle(Player&);
void block... |
3b38f963845d900c8c7afc049d66c8b07d3e82fb | 5b94cf771f7150bf1ebac3b51b76a306622529a8 | /rtough.h | afa78cddc47a678639e56d7d927c9005f08309fe | [] | no_license | erezsh/zodengine | 79dc8b2825d5a751587c154ec9ca3e9ab3023b38 | 27d29020b9a187a090860e21bf52f8e7a91771e7 | refs/heads/master | 2023-09-03T09:16:49.748391 | 2013-04-13T11:25:02 | 2013-04-13T11:25:17 | 5,296,561 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | rtough.h | #ifndef _RTOUGH_H_
#define _RTOUGH_H_
#include "zrobot.h"
class RTough : public ZRobot
{
public:
RTough(ZTime *ztime_, ZSettings *zsettings_ = NULL);
static void Init();
// SDL_Surface *GetRender();
void DoRender(ZMap &the_map, SDL_Surface *dest, int shift_x = 0, int shift_y = 0);
void DoAfterEffects... |
8c988a9e170e6e96ac25b9909dc53fe56c7982ed | f92b42a76aad09bac7fba4a6fce282835fb96305 | /arduino_labs/lab4/lab4.ino | a8bcbcf18664dab4923c8c9db4a993ba57bc48b9 | [] | no_license | ki2chio/MpMk | be5e2cdf9d9e45ce5cc32dbc264bf61bd93fcd77 | 7301c674a8172bf7078a69882f3c32301ddbe6cf | refs/heads/master | 2020-05-17T10:21:48.331256 | 2019-12-23T10:11:09 | 2019-12-23T10:11:09 | 183,654,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,055 | ino | lab4.ino | #include "7segmentOutput.h"
#include "dht11read.h"
volatile short c_1000ms = 0;
volatile bool flag_1000ms = false;
volatile short c_15000ms_time = 0;
volatile bool flag_15000ms_time = false;
volatile short c_20000ms_temp = 0;
volatile bool flag_20000ms_temp = false;
// volatile short c_5 = 0;
// volatile bool flag_... |
7ba46a18cf6b95585453a51c2828596e8876bca0 | e61722adb72dc88c3e7493e3c4429c81e54f7519 | /rotation.cpp | e99ad0d33d0efdf358fe45df4cc9d63bb00ed23a | [] | no_license | DreamTeamHelha/SirtoliRacing | 0e2e94a359b24cc744276b93dbb96b446003c8ad | 9b6e66442322415657828fd6944af8ef85645ab9 | refs/heads/master | 2016-09-08T05:03:38.424832 | 2013-12-18T12:12:34 | 2013-12-18T12:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | rotation.cpp | #include "rotation.h"
#include "vector.h"
#include <cmath>
#include "utils.h"
const float Rotation::m_maxAngle = 2 * utils::pi();
Rotation::operator Vector() const
{
return Vector(std::cos(m_angle), std::sin(m_angle));
}
Rotation::Rotation(const Rotation &r){
this->m_angle=r.m_angle;
}
Rotation& Rotation::o... |
6be59d278c2fc7afebb6e2449478d92c9318c5ee | a5cf450078809a0b507e21d56660b7c4f033c6d5 | /dac/protocol-.cpp | 74776c78abba67ab55f4459657d8e172fc96b0f3 | [] | no_license | fay1987/communication_manager | 98a72677d4e2aa631e2c895741819a53c639c79a | 7df29883f6a18400ceb26682cf2d800630b6df33 | refs/heads/master | 2021-07-13T14:30:04.214616 | 2018-01-25T08:08:05 | 2018-01-25T08:08:05 | 94,993,715 | 1 | 2 | null | null | null | null | GB18030 | C++ | false | false | 9,253 | cpp | protocol-.cpp | /*===================================================================
* 模块名称: 规约基类
* 创建日期: 2013年11月27日 9:36
* 文 件 名: e:\pdt3000\program\dac\dac\src\protocol.cpp
* 文件路径: e:\pdt3000\program\dac\dac\src
* 模块名称: protocol
* 文件类型: cpp
* 作 者: wlq
* 版 本: V2.0
* 模块说明: 规约基类
* 修改版本: V2.1
* 修改作者: wlq
* 修改日期: 27/11/2013... |
589b1114f494e80aeea1354ac4ed6de9c2d57ad0 | e5b98edd817712e1dbcabd927cc1fee62c664fd7 | /Classes/message/Decoding/mail/MailMsg.cpp | c3d7799f515932bb570eae8e57c28af0f3b034fd | [] | no_license | yuangu/project | 1a49092221e502bd5f070d7de634e4415c6a2314 | cc0b354aaa994c0ee2d20d1e3d74da492063945f | refs/heads/master | 2020-05-02T20:09:06.234554 | 2018-12-18T01:56:36 | 2018-12-18T01:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | cpp | MailMsg.cpp | //
// MailMsg.cpp
// FightPass
//
// Created by chenyanbin on 15/11/9.
//
//
#include "MailMsg.h"
MailMsg::MailMsg()
{
}
MailMsg::~MailMsg()
{
}
ByteStream* MailMsg::encodingData()
{
MessageSendI::encodingData(SCENSE_CLIENT_MAIL_MailPageReq);
// headBufferee->put(m_function);
SetMessageLen... |
fe83c46443c749629bd5467f39e40e022e9edcc0 | 7d7b242bdb667f411bc6ed2009ed4a4d9188994b | /A_5.cpp | 2a37edd437a3e96a825cead8a59b0304fe689250 | [] | no_license | PhamNgocToan112/Week-5 | 842b5aa751f807fa8766824f74b7a061d0539d34 | 7f7b2fdbcf7d03719ec0f15c118cd56001c0081d | refs/heads/main | 2023-03-23T02:33:08.044526 | 2021-03-21T13:38:53 | 2021-03-21T13:38:53 | 349,022,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | A_5.cpp | #include<iostream>
using namespace std;
int main(){
int val = 3;
int &ref = val;
int val2 = 4;
cout << val << " " << ref << endl;
cout << &val << " " << &ref << endl;
//int &ref2; => khong the khai bao tham chieu neu khong tham chieu toi 1 bien khac
//ref = val2; => khong the tham chieu t... |
e14e325393cd21448716701d0213315217aacf60 | 8ca48a0cb01e3dad3d18379d9b207dd784680d8c | /Game_menu.cpp | e814b626c5f62b9c08802b08024ed985621c5d9b | [] | no_license | akelm/Pentago | ac3b044758b859afb1091cde69d040d3c44eb337 | e1ab6fbcc862e709c6bdfeb87b99d18d6855633a | refs/heads/main | 2023-08-07T08:14:15.149308 | 2021-10-04T01:52:46 | 2021-10-04T01:52:46 | 413,241,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,201 | cpp | Game_menu.cpp | #include "Game.h"
// obsluga menu
// glowa funkcja obslugujaca menu
void Game::menuaction() {
scr.clearrect(scr.obszar);
switch (menusel.lewygorny.Y) {
case 0: { //nowa gra
if (!ifplay || czy_wykonac("Zakonczyc gre?")) {
ifplay = nowa_gra();
}
break;
}
case 1: { // zapisz gre
if... |
2f81b4c86d5d6402fbaac01d15fff4875d440a2b | 4d02803707d6a6de262dc25aedc065022c0745e7 | /03-Heritage/Heritage_lego/barre.h | bb111a6baf1bd41306dd61c58a2a0c7c8d5292d3 | [] | no_license | Damon7272/Apprendre-cpp | 6dbfbdad25d90eaa28504174087bac28129afc6d | 1bd1f666dd5cdd1ee5412b1347e07bcdda21d051 | refs/heads/master | 2023-08-05T01:50:05.343332 | 2021-09-23T10:47:29 | 2021-09-23T10:47:29 | 404,686,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | barre.h | #ifndef BARRE_H
#define BARRE_H
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
class Barre
{
public:
Barre(string _ref,string _nom);
~Barre();
void AfficherCaracteristiques();
private:
string ref;
string nom;
};
#endif // BA... |
4df41ac89d313796d3a878fd2e515a154f3571d1 | 1b5c62e5facb551b173e9505fc74235288913d31 | /Prezentacja/Prezentacja/Prezentacja.cpp | ddf0f78f706504d015a054f014be76d68e68cd44 | [] | no_license | Lukasz-Madry/TestRepos | 389884f8211c7f9aaf29a92c0c03c9952517f123 | 8981661b887a27649c89070c927f6680a1069fcc | refs/heads/master | 2023-01-21T09:41:43.224022 | 2020-12-02T17:22:22 | 2020-12-02T17:22:22 | 302,044,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,200 | cpp | Prezentacja.cpp | #include <iostream>
#include <stdexcept>
using namespace std;
class vehicle {
public:
string company;
int year;
};
class bus : public vehicle {
public:
int no_of_seats;
void print_info()
{
cout << "bus: " << company << " year: " << year << " number of seats: " << no_of_seats << endl;
};
bus(string b_compa... |
84e332d512376479b429829af9ee4799d220ba43 | 4d3d61ef8a79234ccadb94f253533c414c1c8b73 | /Problem8.cpp | 9ab152a1f7009e0ae8630fcbae7dfc126e12b6ac | [
"MIT"
] | permissive | GinoGalotti/Cpp-ProjectEulerDotNet | 6c3c0f3544c510320d269323a090297a11305c1f | 78892de84923b9bce3ce936a1a478a18262da8d6 | refs/heads/master | 2020-06-04T08:24:06.969196 | 2014-03-02T16:45:05 | 2014-03-02T16:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,646 | cpp | Problem8.cpp | /**
* Solution by Luis Galotti
* Find the greatest product of five consecutive digits in the 1000-digit number.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
6... |
7716812acfeec123051520f8849a424ae1797ed8 | 9eeed608407a691f55f240715c7ff4af2e03892c | /src/collectData.cpp | c47f0f7ee98bd2ad6ce049faa972afbd98c8d139 | [] | no_license | Grzegorzwww/_sfml_app | 00cac8afb5b7c9edb67175c150653ae6c07cef22 | f746f9047edc45074fea1602fedc04b695567e9a | refs/heads/master | 2021-01-12T13:37:55.896111 | 2016-10-07T12:46:00 | 2016-10-07T12:46:00 | 69,962,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | collectData.cpp | #include "collectData.h"
using namespace std;
collectData::collectData()
{
cout << "enter collectData()"<<endl;
}
collectData::~collectData()
{
//dtor
}
void collectData::getDataFromSerial(vector <char> data) {
incoming_data = data;
cout <<"Incoming frame: ";
for(int i = 0; i <incomi... |
0977be4b4b7bb5496767b3f88333efd99f7178af | e398697169a67f9b4ebed0b7cce837f9d5bc0174 | /Test.cpp | f21211439e8070f2e02abfb64f3914a0bc10142c | [
"MIT"
] | permissive | shaiBonfil/CPP-Ex3 | 3521cee4e0f04863fc0d3de37d10ab6f497671ce | d766ca822645380c06d5818ce28f1f3c3d244215 | refs/heads/master | 2023-04-22T14:57:19.947977 | 2021-05-03T22:16:28 | 2021-05-03T22:16:28 | 358,642,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,166 | cpp | Test.cpp | /**
* AUTHORS: Shai Bonfil
* Date: 2021-04
*
**/
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <string>
#include "doctest.h"
#include "NumberWithUnits.hpp"
using namespace ariel;
using namespace std;
ifstream units_file{"units.txt"};
TEST_CASE("+/+=/-/-= operators")
{
... |
655bda7d37b26e918f2862aae94e2a98d8b45c55 | bc67fc41eb0a64b009e4fad3302a212635e7ac19 | /02/ex00/Fixed.cpp | 1ab06b5c21b759f0ccd4035715b111dcbd0fe9f3 | [] | no_license | mrLosy/cpp-piscine | f179c353912aa692fd2146231811a879340be98a | a704427f918ca4db57cbe84ce6c194ed70da607e | refs/heads/master | 2023-07-24T13:14:09.682463 | 2021-08-29T16:32:39 | 2021-08-29T16:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cpp | Fixed.cpp | #include "Fixed.hpp"
Fixed::Fixed(void){
cout << "Default constructor called" << endl;
m_value = 0;
}
Fixed::Fixed(const Fixed ©){
cout << "Copy constructor called" << endl;
m_value = copy.getRawBits();
}
Fixed::~Fixed(void){
cout << "Destructor called" << endl;
}
int Fixed::getRawBits(void) const{
cout <... |
835554d16df1a4d6246a64b48770e2f5172397bf | a5d01b2a5e8ed3f57a73948cee1d17a4b8fed622 | /main.h | df2e3e569afef83932720ac6fa202bb8e9083d54 | [] | no_license | jayzoww/LacrossOnIce | 7326211202e5ba474dd9732da336e35e049522b5 | 35a1fffa7214f26ddf63bed9a6be28cd176cbdfc | refs/heads/master | 2021-01-20T03:17:55.480147 | 2017-04-26T23:09:26 | 2017-04-26T23:09:26 | 89,522,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | main.h | //
// main.h
// prototype
//
// Created by Chris Morgan on 2015-02-08.
// Copyright (c) 2015 Chris Morgan. All rights reserved.
//
#ifndef __prototype__main__
#define __prototype__main__
#include "Constants.h"
#include <iostream>
#include "SDLInit.h"
#include "Game.h"
#include "Main_Menu.h"
#include "Settings_Men... |
dbb59a6bf146f078fea17d903531c2a9a65071ef | f7af1c3c7de939a2f513fe21a89a357f3fe20145 | /opencv_lk/lk_optic_flow.cxx | 36ddd1c191bf9c2f61ab24f9e94f0c266db24a97 | [] | no_license | jsuit/opencv_experiments | 25a582200a53459ca455e3288553ccbcee1452b2 | bb3dc4e14c5b3f38ef18196c6b4161205539257c | refs/heads/master | 2020-12-25T02:39:00.720899 | 2013-09-23T05:23:32 | 2013-09-23T05:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,802 | cxx | lk_optic_flow.cxx | #include <cv.h>
#include <highgui.h>
#include "math.h"
using namespace cv;
const int MAX_CORNERS = 100;
int trackAndAnnotateMat(Mat& imgA, Mat& maskA, Mat& imgB, Mat& imgC);
void cvShowImageMat(const char *name, Mat& mat);
void flipHorizAndVert(Mat& img) {
int flipMode = -1;
IplImage ipl = img;
cvFlip(&ipl, &ipl,... |
080f0385024ad3721de10397313d7ff8e9c6489d | 25dc18997df14d6d17c69f04824a03f748c98784 | /BattleProject/Capacity.cpp | d568a4496e06f5bd3df9169c1a25f316f42f0a71 | [] | no_license | AlexandreRivet/BattleProject | 913696e5b2909e37e5a93af26d68a525f1aa9403 | 7cf9ffae7297f76bed9efd9ff4593bf26e651895 | refs/heads/master | 2016-09-05T17:29:35.216159 | 2015-01-25T10:06:09 | 2015-01-25T10:06:09 | 29,777,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | Capacity.cpp | #include "Capacity.h"
Capacity::Capacity() : mLevel(0)
{
updateValue();
}
Capacity::Capacity(int level = 0) : mLevel(level)
{
updateValue();
}
Capacity::~Capacity()
{
}
void Capacity::upgrade()
{
mLevel++;
updateValue();
}
void Capacity::downgrade()
{
if (mLevel > 0)
{
mLevel--;
updateValue();
}
}
i... |
f070b8f1f38cc137c9cb26b7d371f8381118a7f7 | 7974eb7fc5ccfd9908ccf6f65b82e5213a520bf0 | /Capu/include/capu/container/HashSet.h | 029e9e9edfcce95f87b134d3a3f15cd19c433c76 | [
"Apache-2.0"
] | permissive | gurunath10/capu | 4649b6ea5f0fd22df0800fc69b40f5b2d578da2c | b04f0c2b44ed875fea6cbbaf326b73a7210272a8 | refs/heads/master | 2020-09-20T08:59:03.597553 | 2017-09-01T15:57:47 | 2017-09-04T10:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,357 | h | HashSet.h | /*
* Copyright (C) 2012 BMW Car IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
daa0b292ad84d47e0823507498714a4d0b9fa71f | a9dfa9262e5853321a42fdca6277b8dbb4dfeb69 | /libraries/ErriezDS3231-master/src/ErriezDS3231.cpp | 89485a707e6467dc0390e5ca835f9881541f8c25 | [
"MIT"
] | permissive | zorcik/arduino | 9a0435e269237b95430b28e41055cfa8576141bc | fb3d13ab4154a2abf7f85c0148d79686b2df90bc | refs/heads/master | 2023-04-13T14:16:00.973572 | 2023-04-04T10:51:22 | 2023-04-04T10:51:22 | 71,544,275 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,736 | cpp | ErriezDS3231.cpp | /*
* MIT License
*
* Copyright (c) 2018 Erriez
*
* 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, m... |
13c435a3c042624d65fafc5c4a3915ed6c157f13 | aac97f1b0eb7d634e413a681bc3e44a566345151 | /onboard/test/onlygpscomp.cpp | 60584e0c7ff63a682f63a968da6fa6482e6d00e7 | [] | no_license | LochanRn/ghost | ab8baf3bbce2381d5b2e5310e0c42f57d454d6e6 | 9a3d868f7fce99d739ff4f54df9fc0ca510ba520 | refs/heads/master | 2022-01-24T08:19:00.048981 | 2019-05-23T19:50:05 | 2019-05-23T19:50:05 | 184,876,448 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,994 | cpp | onlygpscomp.cpp | #include <iostream>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h> //fo... |
3365850bd336232a40dc7b3cc2ed55f9300a7948 | 4b430686ae824c78604e15818c4b864778468ca1 | /Archive/Stroika_FINAL_for_STERL_1992/Applications/Schnauser/Sources/ClassesView.cc | dcdf6141afd1aed0fa4a57a1258d8c13ce276977 | [] | no_license | kjax/Stroika | 59d559cbbcfb9fbd619155daaf39f6805fa79e02 | 3994269f67cd9029b9adf62e93ec0a3bfae60b5f | refs/heads/master | 2021-01-17T23:05:33.441132 | 2012-07-22T04:32:58 | 2012-07-22T04:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,814 | cc | ClassesView.cc | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/ClassesView.cc,v 1.5 1992/09/08 17:08:42 lewis Exp $
*
* TODO:
*
* Changes:
* $Log: ClassesView.cc,v $
* Revision 1.5 1992/09/08 17:08:42 lewis
* Renamed NULL -> Nil.
*
* Revision 1.4 1992/09/01 17... |
5380bff480774d0215764ac82eb13b4297d8b88f | 7a2cea234d8cc2af805ce3d61b8f7cfa5e981242 | /archverse_core/inc/archverse_core/data_access/binary_serialization.h | 651a2039afac567e165d46e0195151588b118a56 | [] | no_license | hippiehunter/archverse | be337db6bc22ac7d5b2127653b2c7d5600a26088 | 1f735dbadc51251e1526cd20cf2cf685c9b29c66 | refs/heads/master | 2021-01-10T20:14:50.639324 | 2011-04-05T03:26:29 | 2011-04-05T03:26:29 | 1,554,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,853 | h | binary_serialization.h | #ifndef ARCHVERSE_CORE_DATA_ACCESS_BINARY_SERIALIZER_H
#define ARCHVERSE_CORE_DATA_ACCESS_BINARY_SERIALIZER_H
#include <archverse_core/data_access/reflection_metadata.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
#include <stdexcept>
#include <cstdint>
#include <boost/variant.hpp>... |
05e88b45b7fc581248f959d6fc75cf3da297477a | 03761cfb8e9401ea0d7d269158c64d099064c836 | /Release/src/DeepWarp/NodeOctree/LoboNodeOctree.h | bf968338450fa99ff7ace6492eec3c392d9d3394 | [
"MIT"
] | permissive | PT-Traviresta/NNWarp | d106fbe07cb80309176428026391e20f277256dc | 69e20bc02beb0bd655620cdcfa512a00521e9a9c | refs/heads/master | 2022-01-15T07:58:01.358193 | 2018-09-07T16:38:59 | 2018-09-07T16:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | LoboNodeOctree.h | #pragma once
#include <vector>
#include <Eigen/Dense>
using namespace Eigen;
class LoboVolumetricMesh;
class LoboVolumetricMeshGraph;
class LoboOctant;
class LoboNodeOctree
{
public:
LoboNodeOctree(LoboVolumetricMesh* volumtricMesh_, LoboVolumetricMeshGraph* volumtricMeshGraph_, double voxSize_, int treeDepth_);
~... |
7f06bb578e1f8e30b65302ea81d1ce6c3ae4f15d | 40f317b106b3e8be2c6d2e80e16730171255d4c6 | /5/resu/source/dl24cyh/kth.cpp | ad6be48f92a41492072a8ca3df7fb7f2819c4211 | [] | no_license | cjsoft/inyuyao | a051814de278452cf552568adbb5fa3da9f7709f | 2b3576a7a2281edb253d3f987413358c41d4b685 | refs/heads/master | 2020-04-16T02:56:00.850442 | 2016-08-01T03:14:13 | 2016-08-01T03:14:13 | 60,826,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,077 | cpp | kth.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#define MXN 5000007
using namespace std;
typedef long long ll;
int blk[MXN], raw[MXN];
int atag[MXN];
int n, size;
int qqsolve(int a, int b, int k) {
int l = a, r = b, mid, x = a / size;
while (l + 1 < r) {
m... |
dbd19fd1250d3d6a3078017bf971409b03dc8ea2 | 70fdc9534ef4fd1ba537a714081064e3a428c86a | /src/include/ToolboxEvent.h | 27038b5ae56be94fc7808be1c6319ebc0c2f7351 | [
"MIT"
] | permissive | MaddTheSane/executor | 2db7649b9a04b600db4021bf61fc0f06ee2e7a71 | 2a8baf83066ead802ae22e567af41d74a4e920ff | refs/heads/CppPort | 2020-04-05T23:06:39.175156 | 2017-11-11T20:53:45 | 2017-11-11T20:53:45 | 8,348,294 | 15 | 4 | MIT | 2018-02-12T23:09:22 | 2013-02-22T01:45:23 | C++ | UTF-8 | C++ | false | false | 2,339 | h | ToolboxEvent.h | #if !defined (__TOOLEVENT__)
#define __TOOLEVENT__
/*
* Copyright 1986, 1989, 1990 by Abacus Research and Development, Inc.
* All rights reserved.
*
* $Id: ToolboxEvent.h 63 2004-12-24 18:19:43Z ctm $
*/
#include "EventMgr.h"
namespace Executor {
#if !defined (KeyThresh)
extern INTEGER KeyThresh;
extern INTEGE... |
c903c734a6e160fb735def76a0e3a70fdf6d457e | 68ec7d1d7ff91a611a2779459c932b756bab6e2b | /Pathtracer/pathtracer/Light.cpp | 59e88c4a986a388e88dc686af0ba2d56c6e4e286 | [] | no_license | keesterbrugge/TDA361_2013_pathtracer | 11ad597599358fdc9743f9e73a81bb5c44b9f71a | 5c42194477d8463bb655622089a9bf4341c2b2e4 | refs/heads/master | 2020-12-31T07:32:40.963377 | 2017-03-29T13:20:33 | 2017-03-29T13:20:33 | 86,585,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | Light.cpp | #include "Light.h"
#include "MCSampling.h"
using namespace chag;
Light::Light(void)
{
}
Light::~Light(void)
{
}
///////////////////////////////////////////////////////////////////////////////
// Rejection sample a uniform position inside the sphere. There is
// a better way.
////////////////////////... |
86fe543f12d3cb8c974ee20a1669f5b8068df54c | 17d6ea55a5fdae34727fd56b4f2bb1148198cfb8 | /reco/GETDecoder/GETMath.hh | 7ff42c361f8cdca04ccf10910df0742cf34882ee | [] | no_license | ATTPC/ATTPCROOT | 5e6b8532f0f5e9d70e26f237793cf49e31e31e51 | 461ffe04c68d27c71dadfd98def29160ef379571 | refs/heads/develop_ROOT6_OMP | 2021-01-25T04:01:44.061063 | 2016-02-06T19:44:12 | 2016-02-06T19:44:12 | 28,956,955 | 3 | 3 | null | 2016-09-15T23:53:42 | 2015-01-08T08:43:19 | C++ | UTF-8 | C++ | false | false | 1,822 | hh | GETMath.hh | // =================================================
// GETMath Class
//
// Author:
// Genie Jhang ( geniejhang@majimak.com )
//
// Log:
// - 2013. 10. 24
// Start writing class
// =================================================
#ifndef _GETMATH_H_
#define _GETMATH_H_
#include "TObject.h"
#include ... |
fede1864f6a60a3ce3dfacca972094c00f57a71b | d53be190b611a38ef358d66bc749256a3d208d6f | /SDLSharedContext/main.cpp | 60c9edbf454ac283c88e6cfae1f85d22d83ae077 | [] | no_license | kidsnow/SDLSharedContext | 147c5c363173654985c9c574834cce38d16d33f6 | 3c2ce69b892cb2e0ac5200b5bbc93da1586f05c0 | refs/heads/master | 2020-04-21T16:10:48.293618 | 2019-03-17T07:55:09 | 2019-03-17T07:55:09 | 169,692,173 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | main.cpp | #include "application.h"
#include "share_src_texture.h"
#include "share_dst_texture.h"
#include "single_offscreen_rendering.h"
int main(int argc, char** argv)
{
Application* app = new ShareSrcTextureApp();
// Application* app = new SingleOffscreenRenderingApp();
// Application* app = new ShareDstTextureApp();
ap... |
ed299c22afbaf73abc135ff912bdb111ad895f02 | 46f7ace0ee977b88234a6baea103d83ddf0f864d | /interfaces/sdl_opengl/alx_noeud_image_sdl_opengl.h | 0d5dcf292e852728521c12d065b78184b956a33b | [] | no_license | AlexDmr/b207 | 53806b7749e862dbc908e47ce466bb68de5d17c3 | 86789fbc3ae8a9d8006e515962fa81862faa4819 | refs/heads/master | 2020-05-17T01:56:42.816496 | 2013-10-16T20:05:23 | 2013-10-16T20:05:23 | 32,222,687 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 10,083 | h | alx_noeud_image_sdl_opengl.h | #ifndef __ALX_NOEUD_IMAGE_SDL_OPENGL_H__
#define __ALX_NOEUD_IMAGE_SDL_OPENGL_H__
#include "..\alx_noeud_scene.h"
#include "..\..\opengl\alx_image_opengl.h"
#include "../fonctions_serialisations.cpp"
inline void* AlphaNum_vers_Void(const char *ad) {return (void*)strtol(ad, (char **)NULL, 16);}
class alx_n... |
5ea029255637843185bcc22938af0aadf1c774d4 | 17fa06a77a97d899be65b3cf915f8bbe14ad82fe | /1040.cpp | 62c625ca9bf6112b9d4660c09c73fc87de2ff791 | [] | no_license | tahuruzzoha-tuhin/CP-Solving | f3954c700903a0e8f24674b2c69056b2c5df35eb | 18293e22f9ddaa16a688dafb48a5a4b391782a5e | refs/heads/main | 2023-01-31T02:45:02.472680 | 2020-12-14T12:25:21 | 2020-12-14T12:25:21 | 304,370,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | cpp | 1040.cpp | // Problem: Average 3
// Contest: URI Online Judge - Beginner
// URL: https://www.urionlinejudge.com.br/judge/en/problems/view/1040
// Memory Limit: 1024 MB
// Time Limit: 1000 ms
//
// Powered by CP Editor (https://cpeditor.org)
/*Read four numbers (N1, N2, N3, N4), which one with 1 digit after the decimal point, co... |
5ab1d62b6804d0e6914437127743deb9ecec22d0 | ce64367bf33fffd7eef7da1badadb67e0da7bbd0 | /vt6/ConcreteSquareMatrix.h | fbd8d366a643cd75d6e1f62a34c57affaf4f842a | [] | no_license | jujokio/Advanced_Object-Oriented_Programming | 2b3288e236cf01e790d4d4e7d11abdfbfa95f665 | a2c04b39919ff85294abdc52d8e7239af3536b27 | refs/heads/master | 2021-01-20T12:33:41.842852 | 2017-02-28T11:06:15 | 2017-02-28T11:06:15 | 82,661,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | h | ConcreteSquareMatrix.h | /**
\file SquareMatrix.h
\brief SquareMatrix luokan header
*/
#ifndef CCONCRETESQUAREMATRIX_H
#define CONCRETESQUAREMATRIX_H
#include <string>
#include "Element.h"
/**
\class SquareMatrix
\brief 2*2 matriisi luokka
*/
class ConcreteSquareMatrix
{
public:
ConcreteSquareMatrix();
Co... |
aa41e80dc6f944ccbd24c2ec3318ad24f90590e6 | 733d6621b9ccd2fb80aada7b2c813958083aa482 | /autoCompletion/header/autocompletion.hpp | 003954eb198e14b3b9f3653059e498d875b9a310 | [] | no_license | Glorung/Epitech | f6fbd9a1dbf6a2d301e0af91f002fb7524cc455e | a08d2a4f1fd9128761b9f901bcb1e74194abdde0 | refs/heads/master | 2021-09-19T17:03:22.872346 | 2018-07-29T20:48:28 | 2018-07-29T20:48:28 | 142,793,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,133 | hpp | autocompletion.hpp | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include <stdlib.h>
# define USAGE1 "USAGE\n\t./autocompletion dictionnary\n\n"
# define USAGE2 "DESCRIPTION\n\tdictionnary\tfile,"
# define USAGE3 "containing one adress per line, serving as kmowledge base"
# define ERROR_V (84)
// autoComp... |
a4c486d9ec0ca3aca6a402ff254e035f1b5c7baa | c02b942e1381fd1a0c7fbf91f9d3ea4d65966c39 | /H-regulator.ino | 48df308a145ae66df3b7e40a9fcbc6913fdd4f0f | [] | no_license | Simfire/Hastighetsregulator | 3d2ebf5c48a89aa3bf1203b6c5ddddc04a8c3900 | a0045bdfdc403042525499725387b5ec2e5bc18c | refs/heads/master | 2023-03-12T04:02:44.727450 | 2021-03-04T12:13:19 | 2021-03-04T12:13:19 | 336,387,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,548 | ino | H-regulator.ino | // This program monitors the wheelspeed by counting the pulse frequency from the wheel ABS sensor.
// If it exeeds 230 Hz (32 km/h) it cuts of the power suply to the ignition coil.
//
// On a Volvo 850 -97 with tyre dimension 205/55 R16 and 48 tooths on the ABS ring you get the following values:
// velocity/circumferen... |
79467cd079c5e9b1c530c11f2dc7ab2415802d6c | 5156dc02e5b408437b696037151c22c27de8f062 | /qop.h | 248da064f19f45be35e4150d631fc9e9a5a2b824 | [
"MIT"
] | permissive | Qubit0-1/open-qubit | 055498fcca9443b81f4b50d64c3166fca7072d77 | dad4158411aab81f115e5d83b6c0f0d9cbe5a12b | refs/heads/master | 2021-01-16T20:43:17.619334 | 2012-05-02T02:07:32 | 2012-05-02T02:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,048 | h | qop.h | /* qop.h
Several quantum gates. (one bit and multi-controlled)
This file is part of the OpenQubit project.
Copyright (C) 1998-1999 OpenQubit.org
Yan Pritzker <yan@pritzker.ws>
Please see the CREDITS file for contributors.
This program is free software; you can redistribute it and/or
modify it under the terms of th... |
fb3b5d6e7818620c21e8d84a6712b768507dae4f | e51d009c6c6a1633c2c11ea4e89f289ea294ec7e | /xr2-dsgn/sources/xray/render/core/shader_defines.h | 8cc8feb0edbcd0559eda881b5efd9c095e13fb0e | [] | no_license | avmal0-Cor/xr2-dsgn | a0c726a4d54a2ac8147a36549bc79620fead0090 | 14e9203ee26be7a3cb5ca5da7056ecb53c558c72 | refs/heads/master | 2023-07-03T02:05:00.566892 | 2021-08-06T03:10:53 | 2021-08-06T03:10:53 | 389,939,196 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | h | shader_defines.h | ////////////////////////////////////////////////////////////////////////////
// Created : 20.05.2010
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2010
////////////////////////////////////////////////////////////////////////////
#ifndef SHADER_DEFINES_H_INCLUDED
#define SHADER_DEFINES_H_INCLUDED
names... |
46459e8da01e60c4033796f42d89f97b468152a9 | 5ff791c9d373f4403905078fe8624940044b6e38 | /src/pol/undercover/gamelevel/ElevatorProperty.cpp | 11ef3c6c9cd146e4f36a21b6061ba5bdc69b19a0 | [] | no_license | rocking-around/PoL1.62.002 | 029eb63f341b9b88bc574ae430c7eaba9f943026 | 919abd5afa7eef92dc52d4e1d1e858b906cc577f | refs/heads/master | 2023-03-21T00:20:25.192498 | 2020-03-19T08:46:56 | 2020-03-19T08:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,799 | cpp | ElevatorProperty.cpp | #include "precomp.h"
#include "Grid.h"
#include "DynObject.h"
#include "ElevatorProperty.h"
#include <Logic2/HexUtils.h>
//=====================================================================================//
// ElevatorProperty::ElevatorProperty() //
//===============... |
ae128576a6215c3779182655666f702158d0f39e | df7277d8f9d404a989ddea2467297fec1da80364 | /DlgFileOpenPreview.cpp | 158b12ab0a2b13734fe459d29c65097245bcda2f | [
"Unlicense"
] | permissive | 15831944/Painter | 6b68cd029d0937b0e04f650de24af70986376216 | ab57f5d022c8b4ce8f9713cd7533fc87e5fafa3b | refs/heads/master | 2023-07-15T12:17:46.353736 | 2021-08-28T13:49:14 | 2021-08-28T13:49:14 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 16,685 | cpp | DlgFileOpenPreview.cpp | #include "stdafx.h"
#include "Painter.h"
#include "DlgFileOpenPreview.h"
#include "Settings.h"
#include <String/Convert.h>
#include <String/Path.h>
#include <String/StringUtil.h>
#include <Grafik/ImageFormate/ImageFormatManager.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FI... |
ed736362bdde2c76a33672fabe58b4fb5bf42459 | c718f934cb398fde1a5d1709589fc98a03d5481b | /codeForces/#01144_pC_Two Shuffled Sequences.cpp | ea2cf7cf434b063d48915630bd6f19180ad67080 | [] | no_license | casperwang/OJproblems | 18ec0246c76bc7e34ed89599c023ae290cc30620 | 3920be1c7d2861624ac6a6afec843b164d9e5948 | refs/heads/master | 2020-04-07T04:27:44.429425 | 2020-03-04T07:18:35 | 2020-03-04T07:18:35 | 158,057,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | #01144_pC_Two Shuffled Sequences.cpp | #include <bits/stdc++.h>
#define MAXN 200000
using namespace std;
int n;
int num[MAXN+5], appr[MAXN+5];
vector <int> inc, de;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
cin >> num[i];
appr[num[i]]++;
if (appr[num[i]] > 2) {
cout << "NO" << endl;
return 0;
}
}
sort(num, nu... |
962a2dbbdd883811c52fb4cc61cc164e419d8368 | b7d21c6a1c52122ccc4beeacc9c31f99214692bb | /cs161/labs/lab7/lab7.cpp | e609eff3b6f35a31fb8522ef0b6c271849d2de1f | [] | no_license | lilesme/CS161-Intro-to-CS-I | 0f02063ca17dcefbfbbdc8b2700139d40ea6ae2d | 46b1e83b7fc63847eaa9b1605b0340fdb9618752 | refs/heads/master | 2020-12-24T01:11:03.812950 | 2020-03-11T01:17:25 | 2020-03-11T01:17:25 | 237,332,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | lab7.cpp | #include <iostream>
#include <string.h>
using namespace std;
void create_mem(char **array){
int max_chars;
cout<<"How many characters would you like? "<<endl;
cin>> max_chars;
max_chars + max_chars + 1;
*array = new char [max_chars];
}
void delete_mem(char **array){
delete [] *array;
}
int main()... |
a94d6c1e3d6bf8a070830de519ea6c40c0c5ecf6 | 0c96b78faf7c3a66e5e58ae20fa6fca82c45e76a | /audio_ofdm_offline/SyncBlock.h | e4497445642b70d114547e37f28c8bfc61a200f1 | [] | no_license | JHillard/OFDM-Audio-modem | 54a15aef2c2ed28a57d734ee40f06494dc02042c | b7f7dc47d8db0d39fb0f55f0bf27ce15810121e0 | refs/heads/master | 2020-05-25T11:29:49.330243 | 2017-03-15T22:15:07 | 2017-03-15T22:15:07 | 83,589,266 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,767 | h | SyncBlock.h |
/** \file syncBlock.h
Library for data buffer synchronization. Once the data is stored,
this library handles all the correlations, mean calculations, etc to perform
the synchronization.
*/
//
// SyncBlock.h
//
//
// Created by Terry Kong on 1/30/16.
//
//
#ifndef SyncBlock_H
#define SyncBlock_H
#include "dsplib.h"... |
dcf6f0834491330bfa0f7cdf0860be860fdb5dab | 4afa786d4db262639515bf1081c75e3ba154f489 | /main.cc | 2ba6d2b549a34c990dc8e064ac2b4f470cccd542 | [] | no_license | melbachiri/NormalGen_Project | b1472cc89ff15f3f0932d93870fbfb66acda6341 | 1a621b05064a65f7371c6f5888095a859b5ed36b | refs/heads/master | 2020-06-03T06:23:30.898847 | 2013-07-20T16:38:17 | 2013-07-20T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | cc | main.cc | #include <iostream>
#include "Gauss.h"
using namespace std;
int main(void){
Gauss G;
cout << G() << endl;
return 0;
}
|
52988560a553948896876dc93048a602750d33a5 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_5605.cpp | 4ca60fdcb948a8d2124964b579e1d37a6459ca6b | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | Kitware_CMake_repos_basic_block_block_5605.cpp | f(compare(i, t->larger->key) > 0) {
y = t->larger; /* rotate larger */
t->larger = y->smaller;
y->smaller = t;
t = y;
if(t->larger == NULL)
break;
} |
f60a54dc12ba3db032f398656721ca15cc6cd86c | 337c5e89cbe73daa60dd6b9c0d7b1ef816b655a0 | /main.cpp | 5e48bef2209902332231d198c14c89d45b367533 | [] | no_license | ctoale/C-Balanced-BST | dd4eeb97a533d80320c4fd86ebe0f8d1ecc41c6d | bea9489e14321948e859a208a6d306e57512c5b7 | refs/heads/master | 2020-03-30T13:59:51.912125 | 2018-10-02T17:39:01 | 2018-10-02T17:39:01 | 151,296,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | main.cpp | #include <iostream>
using namespace std;
struct BSTreeNode
{
int data;
struct BSTreeNode* left;
struct BSTreeNode* right;
};
struct BSTreeNode* newBSTreeNode(int data);
struct BSTreeNode* BalanceTreeArray(int Array[], int start, int end)
{
if (start > end)
return NULL;
int mid = (start + end)/2;
struct BSTreeNode *roo... |
4ce169e2a4fc1b0827e6dcd98817264ebfff78fb | b742fe938a6c0d737c332b0b0c0dfa944a7238f0 | /esp8266_01/demo_01.h | 0825fafbebcdfac0ef50ed60465f1e021b76d6ed | [] | no_license | cclehui/study_arduino | f112e31fc58f77c2073065673c558ac87b08a90d | a2e0e54c1bb2acd263e7bc3bd7504be67fee2148 | refs/heads/master | 2020-12-28T17:31:17.377930 | 2020-10-09T13:54:01 | 2020-10-09T13:54:01 | 238,422,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | h | demo_01.h | #ifndef DEMO_01_h
#define DEMO_01_h
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <PubSubClient.h>
char *wifiName = "cclhui";
char *password = "Wn1989318";
char *mqttServer = "118.24.111.175";
int mqttServerPort = 1883;... |
fe52a1acc18c0bfb6112fe943f7c46710a4316bb | c08a26d662bd1df1b2beaa36a36d0e9fecc1ebac | /lafagnosticuifoundation/cone/tef/TCone4StepExe.h | 8fa114d3e17744ff85a2873210d84bba94de307b | [] | no_license | SymbianSource/oss.FCL.sf.mw.classicui | 9c2e2c31023256126bb2e502e49225d5c58017fe | dcea899751dfa099dcca7a5508cf32eab64afa7a | refs/heads/master | 2021-01-11T02:38:59.198728 | 2010-10-08T14:24:02 | 2010-10-08T14:24:02 | 70,943,916 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 893 | h | TCone4StepExe.h | // Copyright (c) 2005-2009 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/e... |
2c0e774d31e1af477504dba667e21e2ce4b0246b | 72743fe4eea2fd273905d8cbc9050e60122ab39d | /GumballCore/Engine.cpp | 8ba77385a35c60b4284693e5ede58e6f9b6884dd | [] | no_license | JosiasWerly/Gumball | a8b94c0feec31c9fe379741a585dbc7deb3cf81b | 5560e96724314a662405b5efc30268403b32e7f2 | refs/heads/master | 2023-08-06T03:20:47.905183 | 2023-07-25T19:25:13 | 2023-07-25T19:25:13 | 233,352,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,858 | cpp | Engine.cpp | #include "Engine.hpp"
#include "Subsystem.hpp"
#include "AssetManager.hpp"
#include "RenderSystem.hpp"
#include "SceneOverlay.hpp"
#include "WidgetOverlay.hpp"
#include "ProjectLinker.hpp"
#include "ConsoleSystem.hpp"
#include "World.hpp"
#include "EnviromentVariables.hpp"
#include "Subsystem.hpp"
#include <iostream>... |
70b167fac5d540a5e3701b3946852ae1e803ca53 | 8feb7e19a9ab2ea535b1b6347bdbe48d619d94cb | /ConsoleApplication12_7/ConsoleApplication12_7/main.cpp | 773b52a76aa9f40a7ec1651303f1a23821b57b29 | [] | no_license | SmileHurry/cplusplus-primer-plus-6th- | 3426de7aed1de8a94d48c468e1a79fe95b6ed9b6 | 892c907a5c3b93631a219a28880525fe8ff10f12 | refs/heads/master | 2021-01-10T15:42:03.637199 | 2016-04-08T06:24:46 | 2016-04-08T06:24:46 | 55,745,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | main.cpp | #include<iostream>
#include"plorg.h"
int main()
{
using namespace std;
plorg p1;
p1.show();
p1.reset_CI(10);
p1.show();
cout << "---------------------------\n";
plorg p2("zhangqi", 30);
p2.show();
p2.reset_CI(20);
p2.show();
return 0;
} |
58b8610a309abcb2bdcdeb2334d912dc22ef5a8a | ae1f0aa96ff55cbe77d0049fe6c32f545e6baaea | /GameProject/Engine/Components/Camera.h | 3e5aaa40653ef63b349c5b66c2cd7425f5284421 | [] | no_license | jonathan2222/GameProject | ece9d03db63cb353b062698887f4318847f41796 | 6c502a475efb4c3a59e1710ba5f3596c3ea1bb32 | refs/heads/master | 2020-04-21T18:34:34.156156 | 2019-02-11T00:10:25 | 2019-02-11T00:10:25 | 169,775,052 | 0 | 0 | null | 2019-02-08T17:46:20 | 2019-02-08T17:46:19 | null | UTF-8 | C++ | false | false | 1,288 | h | Camera.h | #pragma once
#include "glm/glm.hpp"
#include "../Config.h"
#include "Component.h"
#include "../Rendering/Display.h"
#include "../Events/EventBus.h"
class Camera : public Component
{
public:
Camera(Entity * parentEntity, const std::string& tagName = "Camera", const glm::vec3& offset = glm::vec3(0.0f, 0.0f, 0.0f));
v... |
1db9cc5f13a796f46ee2a37682fcddcd92b4f149 | 041f35bf29af5e3141f7760f306e083861b0013d | /Source/System/auth/Unix/big_num.cpp | bce1902fcd601b4b161c24baf53f6ad6f4a7fa52 | [
"MIT"
] | permissive | UnforeseenOcean/xbox-live-api | 96ddb95291402ae19f797327c89c823dda697e34 | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | refs/heads/master | 2020-04-07T04:36:37.454667 | 2017-02-15T00:32:22 | 2017-02-15T00:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | big_num.cpp | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... |
ba5ddf8dda593bfd4a2aae490d4dfbd621f1c6ad | da3642f21450f2920bdd4306981898622f11dea8 | /CPlusPlus/YouYuanHanShuLei/YouYuanHanShuLei/X.hpp | 1408573232d4a9bd73e0330be7353e4b513ee6d0 | [] | no_license | yananyun/CPlusPlus2 | af82bc67fe690a0525ba2812b5f41a3b7a472047 | bbb966a782d8923578a7608f9bfe65f5c8ceb7cb | refs/heads/master | 2021-06-06T17:31:36.192598 | 2016-10-17T09:40:40 | 2016-10-17T09:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | hpp | X.hpp | //
// X.hpp
// YouYuanHanShuLei
//
// Created by Li on 2016/10/17.
// Copyright © 2016年 bjcric. All rights reserved.
//
#ifndef X_hpp
#define X_hpp
#include <stdio.h>
class X;
//类的前置声明 如果这里使用类的前置声明 后面使用该类时 必须使用指针操作
class Y{
public:
void f(X*);
//void b(X);
private:
X* pX;
};
class X{
public:
void... |
6c2d18b820038505bdc225291df71c937e379346 | b382213782edd07c7c82bbf89c9e696fd184355a | /src/TWAPAlgorithm.cpp | ae42930dab2467440f80c2d2e186d33e32de3b07 | [] | no_license | rohantalkad747/electronic-execution-algos | 1f8ef166e8237f7b5b9ae4062920df717dd16962 | a692105362b0efd13a39ca9b454445a10acd29ce | refs/heads/master | 2023-02-17T09:00:49.009540 | 2021-01-17T05:23:08 | 2021-01-17T05:23:08 | 253,161,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | TWAPAlgorithm.cpp | //
// Created by Rohan on 4/25/2020.
//
#include "../include/TWAPAlgorithm.h"
#include "../include/TWAPConfig.h"
double TWAPAlgorithm::getPrice()
{
double numerator = 0.0;
auto *twapConfig = static_cast<TWAPConfig *>(this->algoConfig);
long intervalStar... |
2691992c85108fa85896b177a9230e34b6f74973 | d7b565343df2eab0da7b74bc47a0cab9355a4c38 | /price-oracle/price_update.cpp | ec15a54658e2e4db86bf52b636bfbc167fa26278 | [] | no_license | chesterkuo/EOS | 1ba2e490f4895130dfde412e42d62949fe1b5bdc | 19be4ba0f05f24cbcd02edd71dd9216b14d8752f | refs/heads/master | 2020-03-28T14:38:47.185721 | 2018-12-28T16:37:55 | 2018-12-28T16:37:55 | 148,507,119 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,469 | cpp | price_update.cpp | #include <eosiolib/eosio.hpp>
#include <eosiolib/name.hpp>
#include <vector>
using namespace eosio;
using namespace std;
CONTRACT price_update : public eosio::contract {
public:
using contract::contract;
price_update(name self, name code, datastream<const char*> ds) : contract(self, code, ds) {}
... |
042394c4b4280d16fc1e9447323c28f8ce87dfbf | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/predictors/resource_prefetch_predictor.h | 5bec7ba8c336a3000f97cc3f8218224f49c50f9d | [
"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 | 15,585 | h | resource_prefetch_predictor.h | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
#define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
#include <stddef.h>
#include <map>
#include ... |
a65a2aa924ad2df95632c6ee3057d41e363a3557 | 98dc5072330d818d162cab38365f034de19d0691 | /acl/include/acl_cpp/db/db_service.hpp | 60d597b043d35bbbd8e311b956b6e7249f8f3049 | [
"Apache-2.0"
] | permissive | feixiao/c_practice | 5936d7a59f313eff671785564f9e14c0b105e5ca | ce9c10f8dcd4d5f5076cefefb9dc8358223fe514 | refs/heads/master | 2023-05-10T16:06:06.564499 | 2023-03-31T03:17:22 | 2023-03-31T03:17:22 | 63,298,597 | 4 | 3 | Apache-2.0 | 2023-05-05T02:21:39 | 2016-07-14T03:21:52 | C | GB18030 | C++ | false | false | 3,218 | hpp | db_service.hpp | #pragma once
#include "../acl_cpp_define.hpp"
#include <list>
#include "../ipc/ipc_service.hpp"
#include "../stdlib/string.hpp"
namespace acl {
typedef enum
{
DB_OK,
DB_ERR_OPEN,
DB_ERR_EXEC_SQL,
} db_status;
//////////////////////////////////////////////////////////////////////////
class db_rows;
class ACL_CPP... |
d8009130f1bc4b1186be13764783978202d2c670 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/IntelTBB/IntelTBB-4.4u3/src/test/harness_bad_expr.h | 86935772ec065d18ff911e71bf894b6af5d94090 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 3,706 | h | harness_bad_expr.h | /*
Copyright 2005-2016 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... |
32dfdcc4320e948f7d7a894c1f6132754eb408cf | 100250705b0870aa3f39cfcde2887773e15be691 | /qt_painter/mydraw.h | 0b1fc19f9a8c21905e34389e96c73ac2cb58617f | [] | no_license | Artist-V/qt | ca4061c65d4e220df0492c7f109b484a5f87f178 | cc87a2504c96e823b6d3f113eadbfe67bebca090 | refs/heads/master | 2020-05-24T20:18:01.777193 | 2019-09-04T13:27:54 | 2019-09-04T13:27:54 | 187,452,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | h | mydraw.h | #ifndef DRAWWIDGET_H
#define DRAWWIDGET_H
#pragma execution_character_set("utf-8")
#include <QWidget>
#include <QtGui>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QResizeEvent>
#include <QColor>
#include <QPixmap>
#include <QPoint>
#include <QPainter>
#include <QPalette>
#include <QFileDialog>
#include <Q... |
fde800d76c63b6fdcb4e3cdc81db6520f550acc5 | 68e940312174dfbcc91b332b805f1dfc2c0cae25 | /src/utils/json/main.cpp | 6bc8a9a5cc3a6799f15f012a74731cd56cf51440 | [] | no_license | zhaokun00/utils_cplusplus | b6937f7fa3456a38c1da5dba426d49a417342ada | 5fe14d1d2ce12a9a2c2d7455e390722c7f658be5 | refs/heads/master | 2021-09-08T20:20:19.543454 | 2019-06-02T04:01:06 | 2019-06-02T04:01:06 | 120,563,589 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,174 | cpp | main.cpp | #include <stdio.h>
#include <iostream>
#include <chrono>
#include <vector>
#include <map>
#include"json.hpp"
//using namespace std;
//using json=nlohmann::json;
//https://blog.csdn.net/forrid/article/details/78867679
//https://blog.csdn.net/fengxinlinux/article/details/71037244
//测试:std::cin函数,读取终端输入的字符串
void test1()... |
3a19d24999949ce7e043f7be53edb679b7c22863 | bb1c9d8f47789137ce7269fdd056992f7848fed0 | /src/api/dcps/isocpp/code/org/opensplice/core/EntityRegistry.cpp | cc4327fec073e218e003b2b2f28f2ee5982d5631 | [
"Apache-2.0"
] | permissive | osrf/opensplice | e37ed7e1a24ece7c0f480b4807cd95d3ee18daad | 7c3466f76d083cae38a6d7fcbba1c29106a43ea5 | refs/heads/osrf-6.9.0 | 2021-01-15T14:20:20.065297 | 2020-05-11T18:05:53 | 2020-05-11T18:05:53 | 16,789,031 | 10 | 13 | Apache-2.0 | 2020-05-11T18:05:54 | 2014-02-13T02:13:20 | C | UTF-8 | C++ | false | false | 2,146 | cpp | EntityRegistry.cpp | /*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... |
82a18552a401807ef10535a0df884db18a1ef43d | 6a66b0b9969976751dab05e3bf4f2e8570f76e83 | /src/codegen/ir_gaia/data_1d.cc | edda6912a59a8e794438fe2f88597d89124b0e5c | [] | no_license | HemiMin/cnn.planner | f1e38deda51bb167d054b65184a24235a7813637 | 14a41858be5fe20bde39cc7d3ecc221c77d946a8 | refs/heads/master | 2021-03-17T20:48:00.180219 | 2020-03-13T07:55:49 | 2020-03-13T07:55:49 | 247,016,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cc | data_1d.cc | #include "codegen/ir_gaia/data_1d.h"
using codegen::gaia::Data1d;
using std::endl;
ostream& codegen::gaia::operator<<(ostream& out, Data1d& data1d)
{
string ind = " ";
out << data1d.GetName()
<< "(" << codegen::gaia::ToString(data1d.GetLayout()) << ","
<< data1d.GetStartIndex() << ","
... |
07a33d07e79c15d2782fac99eb99602f35b58f2f | abbb664b47373bf0546a02ec2595af0be190c108 | /1-Algorithmic-Toolbox/1.2-introduction/assignment/fibonacci_huge.cpp | 2601f03b23245369fdf3466dc6462d3f1c09c42c | [] | no_license | mcitoler/data-structures-algorithms | 6f72e5ced4e10b49877969fa4efc3ffb886a7faa | 4dc7160a67570b78a03beae66644b0fa0e46dd7f | refs/heads/master | 2021-10-11T00:48:18.770763 | 2018-05-26T18:30:39 | 2018-05-26T18:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | fibonacci_huge.cpp | #include <iostream>
#include <cassert>
#include <cstdlib>
long long get_fibonacci_huge_naive(long long n, long long m) {
if (n <= 1)
return n;
long long previous = 0;
long long current = 1;
for (long long i = 0; i < n - 1; ++i) {
long long tmp_previous = previous;
previous = current;
current ... |
be9f5abf2db21ecf9984e38e1e45a21068e1b564 | b61a7bb59cc2c98a11335ff466fee7a78770b9ab | /Noise network/Code/Server/Examples/Servers/SimpleStreamEchoServer_ImplementedWithThreadedAcceptServer.cpp | ad8251cbf2d0028f1169485c4c77252621dfd56c | [] | no_license | Noise-filter/Noise-network | d6c251d034bf55cea68a896e6d8dc6a50bce7738 | 83b1f3161e31e9b25d3f4ed8d428cb4f9b04135d | refs/heads/master | 2021-07-11T07:16:42.365848 | 2021-04-02T08:29:41 | 2021-04-02T08:29:41 | 28,050,819 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | cpp | SimpleStreamEchoServer_ImplementedWithThreadedAcceptServer.cpp | #include <iostream>
#include "Core\WinsockFunctions.h"
#include "Core\ThreadedAcceptServer.h"
#include "Core\SocketAddress.h"
using namespace std;
const int MAX_BUFFER_LENGTH = 512;
namespace Examples
{
void SimpleStreamEchoServer_ImplementedWithThreadedAcceptServer(unsigned short port)
{
if (InitWinSock())
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.