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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39fcac0ecf7d21a6117bd02bd43da40a625b040a | 39e0af37e018858dfa5513d3aedaa26270bedc11 | /Src/1125.cpp | 09c20a2023024fe094bb41fd12f319cfaacebff3 | [] | no_license | BeyondSword/JPAT | 1089e65d08ad32352662059f7cb6be18a20a0f8b | 9ceb22ade20485afb70514d47bb19b09666f1370 | refs/heads/master | 2020-06-28T19:37:17.751477 | 2019-09-07T15:21:04 | 2019-09-07T15:21:04 | 200,321,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | 1125.cpp | #include<iostream>
#include<algorithm>
#include<vector>
#include<stdio.h>
#include<cmath>
using namespace std;
const int MAXN=10001;
double seg[MAXN];
int N;
double tot=0.0;
int main(){
cin >> N;
for(int i=0; i<N; i++){
cin >> seg[i];
}
sort(seg, seg+N);
tot = seg[0]/2 + seg[1]/2;
for... |
e7d56c33d61200c60f80648a6a06f05a0e2ac6a0 | c19075e810c2b86ae8e1a71fe577d55a7836de6b | /GUID/checkguid.h | 6c5cbb29e5713f1119bfc75ac49ba63f13108aad | [] | no_license | elementumparasol/Demo | e66288ce6f09563b4bb1cbb916f842729664560e | 8efa433c5eff62cc15639e297fbc67db448d35ce | refs/heads/master | 2021-04-01T14:13:55.095756 | 2019-02-27T02:12:11 | 2019-02-27T02:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | h | checkguid.h | #ifndef CHECKGUID_H
#define CHECKGUID_H
#include <QObject>
#include <QSettings>
#include <QCoreApplication>
#include <QTextCodec>
#include <QProcess>
#include <QNetworkInterface>
#include <Windows.h>
/**
* @brief main.cpp
* if(!CheckGUID::CheckIniAndSysGUID())
{
// 身份校验失败
QMessageBox::warning(0,... |
13ce5a26ecc353c8bb793422060fbefe622fc850 | b97f32523cd02eae210c189d6acdd8477bb9a607 | /src/demo/sample1_display_image/sample1_display_image.cpp | 0e004816b3acac415b0af5ef552788ad35da6f55 | [] | no_license | myoung-jin-na/opencv | 19659efd7f0241914606182b6f196dd8c4514d2b | c914b8dd740a1bec5f178c25e2b10a7f08a971d1 | refs/heads/master | 2021-01-11T01:10:06.902936 | 2016-11-02T01:28:03 | 2016-11-02T01:28:03 | 71,055,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | sample1_display_image.cpp | // sample1_display_image.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <opencv2/opencv.hpp>
#include <iostream>
int main(int argc, const char* argv[])
{
if (2 != argc) {
std::cout << "usage:DisplayImage.out<Image_Path>\n";
return -1;
}
cv::Mat image;
image = cv::i... |
41e7c66ba3142af1dfd637f1f841afbf8cbd8210 | eb47bf8011f957e95a84ac64aab29598c59081a1 | /src/ManipulatorPlugin/MprPositionListView.h | afd0dfe48355146f715aaafc3556c05258a4558b | [
"Zlib",
"MIT"
] | permissive | choreonoid/choreonoid | fd776aaab99d9ec544e5ceec04fbc283b8a3aee3 | 94b353722d5b9ff10e9c0ca8982e549f85b5f59f | refs/heads/master | 2023-09-01T12:27:17.849641 | 2023-08-04T13:54:12 | 2023-08-04T13:54:12 | 274,977,786 | 117 | 30 | NOASSERTION | 2023-05-23T08:25:33 | 2020-06-25T17:36:56 | C++ | UTF-8 | C++ | false | false | 862 | h | MprPositionListView.h | #ifndef CNOID_MANIPULATOR_PLUGIN_MPR_POSITION_LIST_VIEW_H
#define CNOID_MANIPULATOR_PLUGIN_MPR_POSITION_LIST_VIEW_H
#include <cnoid/View>
#include "exportdecl.h"
namespace cnoid {
class CNOID_EXPORT MprPositionListView : public View
{
public:
enum BodySyncMode { NoBodySync, DirectBodySync, TwoStageBodySync };
... |
ccc86a4d54927df98f5dbdeb91489f9f22c3d5a7 | 24866226359bf6e80dad369edf3548ba977f312f | /dependencies/dccrypto/src/crypt_connection.cpp | 4fdb9363634abc18eeb628010f1283a76026358f | [] | no_license | decentralised-project/dc-gui | 9b14b31b7be24fb7a34c7d1afdfec91f3e232547 | 43283a3305ffd82965ec2797407645048cdb7905 | refs/heads/master | 2020-05-21T23:59:42.985268 | 2017-01-04T22:19:04 | 2017-01-04T22:19:04 | 65,149,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,248 | cpp | crypt_connection.cpp | #include "crypt_connection.hpp"
namespace dccrypto
{
crypt_connection::crypt_connection(crypt_ec_helper::pointer helper,
std::string remotePublicKey,
EC_KEY* localKeyPair,
dcp2p::p2p_connection::pointer connection)
: ec(helper), p2pconnection(connection)
{
shared_secret = N... |
e4d482133e88469fa89040bafe7f705fb82a6632 | 582ecfc2e57b66d2aa6e1623524b0936d2fc436f | /include/geng/physics/Systems/BoundsDebugRenderSystem.inl | 3ea5d1e3859429fc94c749bbc17cb143248d4ed7 | [] | no_license | grynca/geng | 3950018e14b349d18e6ea0e866022f10d1f25316 | 92b760b7b06bc8b46c2a089423ec0b33a9d63abe | refs/heads/master | 2021-05-15T01:44:22.905486 | 2018-03-06T11:10:25 | 2018-03-06T11:10:25 | 40,620,852 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,769 | inl | BoundsDebugRenderSystem.inl | #include "BoundsDebugRenderSystem.h"
#include "../../graphics/Renderables/RectBorderRenderable.h"
#include "../../graphics/Renderables/RectRenderable.h"
#include "../../graphics/Renderables/CircleRenderable.h"
#define TID(ST) Shape::getTypeIdOf<ST>()
#define BOUND_CLR {1.0f, 1.0f, 1.0f, 0.3f}
#define SHAPE_CLR {1.0f, ... |
048a4116b7d2a943e701d28979d7d92559e6ebb2 | 2b72e5b41d867fb97d66cb013416342388af15e7 | /USER/protocol.cpp | d8f271c9d92a141088dd960d331353f1f923ea9d | [] | no_license | DDDDDaryl/ADRC-controller | 9d98eaeaba1a7f5a887d4dea97939f57d6bb7dc0 | 0e60ddb1fa1e73b04c30c062f5f0aaa0b394c5c1 | refs/heads/master | 2023-02-15T11:00:13.491436 | 2021-01-08T03:53:12 | 2021-01-08T03:53:12 | 286,694,925 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,029 | cpp | protocol.cpp | //
// Created by Frank Young on 2020/3/29.
//
#include "protocol.h"
#include "objects.h"
#include <algorithm>
#include <vector>
using namespace std;
class control_system;
class communication_protocol{
private:
struct ID_hash_table;
struct IC_MESSAGE;
struct PC_MESSAGE;
union transit;
static v... |
2939456b65aa9ab38083e7274af977404d6060a3 | 10deb7566ced8b8ed55d20dc9b9adc756f4b65bc | /Practice.h | dfc040edffcbe25581d1f4b422a20b28e113e980 | [] | no_license | aswingler1/UnitTestPractice | 00e013fd1c08eed00c88e657c9ac10abcfba25b6 | fa93fafc485628a81f1223cda5873ed21aaada54 | refs/heads/master | 2022-04-24T13:48:27.569371 | 2020-04-27T21:28:30 | 2020-04-27T21:28:30 | 257,381,238 | 0 | 1 | null | 2020-04-27T20:21:46 | 2020-04-20T19:19:08 | C++ | UTF-8 | C++ | false | false | 212 | h | Practice.h | #ifndef PRACTICE_H
#define PRACTICE_H
#include <string>
using std::string;
class Practice
{
public:
bool sortDescending(int & first, int & second, int & third);
bool isPalindrome(string input);
};
#endif
|
948ab9832c8d558239c7580d1dc37ffe61fb61c6 | 943248631081155684ab37a88404a67cc5ef88a4 | /src/event/modules/high_select_module.h | 7e81f2075e4f51647c0551a625fcbec50099c1b3 | [] | no_license | ydszza/high_yds | 622194412fea43b6600b33f7d531cb13d2d7d4b5 | 3c2fac71a1863908677eb96fb2606302c92a49cb | refs/heads/main | 2023-01-28T21:26:00.813137 | 2020-12-03T14:56:07 | 2020-12-03T14:56:07 | 316,951,763 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | h | high_select_module.h | #ifndef __HIGH_SELECT_MODULE_H_
#define __HIGH_SELECT_MODULE_H_
#include <sys/select.h>
#include <strings.h>
#include <time.h>
#include "high_event_module.h"
#include "../debug/high_debug.h"
class highSelectAction : public highEventAction {
public:
highSelectAction();
virtual ~highSelectAction();
virtual... |
470317b9f8ba8694526d117c308dc95e4dbee7a9 | 89fe24f3d853fd9553d05264b34c1638ded8bd6a | /Source/TowerDefense/Public/Components/UnitDebuffComponent.h | 830fb03f958e8f758659f7a41cd4225c7c082013 | [] | no_license | uflc/up1 | 8bdc6c9c3af49cc3480cf6572f9763854ec10f55 | 0f4475604c7c92e0593967f5d6cd3a3c94a87307 | refs/heads/master | 2023-05-23T16:58:54.974340 | 2021-06-13T03:33:37 | 2021-06-13T03:33:37 | 167,653,239 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,729 | h | UnitDebuffComponent.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "TDComponent.h"
#include "TDTypes.h"
#include "UnitDebuffComponent.generated.h"
/*
* MulMod는 %로 곱연산.
* AddMod는 값으로 합연산.
*/
USTRUCT()
struct FBuffModifier
{
GENERATED_BODY()
//Base value which will be modified.
... |
6f31d2d9f918eaced13323f90fafb5d80534b079 | c31ad9981bb2760c6f389e9a6cf8a6893e9423e8 | /inexlib/ourex/HEPVis/source/SoCrystalHit.cxx | 9366efa6b87e91981e20455f86db7c9bc425b919 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | gbarrand/osc_vis_for_LHCb | 0582d7ed6734d9716619eb0fccc69904381529d8 | 2ba864c4475f988192c9799f5be85f1abf88c364 | refs/heads/master | 2021-10-25T21:32:51.600843 | 2021-10-17T07:45:20 | 2021-10-17T07:45:20 | 140,073,663 | 0 | 2 | null | 2021-10-17T07:45:20 | 2018-07-07T10:11:36 | C++ | UTF-8 | C++ | false | false | 19,635 | cxx | SoCrystalHit.cxx | /*-----------------------------HEPVis----------------------------------------*/
/* */
/* Node: SoCrystalHit */
/* Description: Draws a hit in an individual crystal */
... |
db57dd67ff41bdc6e051fe6ed3d947e9384f1228 | aa22247fd0c26387b3e60aa90f90840678502f5d | /codeforces/397/B/main.cpp | e91cb7e49525d866796635e44dcfd03323d69227 | [] | no_license | rlj1202/problemsolving | 38db0aa441912338580c3ef61dc555c72efc85ab | d011c2cea368ba3a9a5f91360a18a9445b978087 | refs/heads/master | 2023-01-29T19:53:29.890348 | 2023-01-12T09:17:27 | 2023-01-12T09:17:27 | 186,255,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | main.cpp | #include <cstdio>
int main() {
int T;
scanf("%d", &T);
while (T--) {
long long N, L, R;
scanf("%lld %lld %lld", &N, &L, &R);
long long rods = N / L;
long long remains = N % L;
bool possible = rods * (R - L) >= remains;
printf("%s\n", possible ? "Yes" : "No");
}
return 0;
}
|
a75719cac67e860b356b4704e998f11731c1aa71 | 290b67e86823aed335085f40ee24851af3db9736 | /New Implementation/ManaCraft/NetworkCommands.cpp | 0f41840fddf0c1d787ef65d43cdb1f78ae4e89f0 | [] | no_license | rnrobson/game440_01_2014 | 5cc24f747773b3a21049d67b7e319c1d1eae6e6d | 3ebe85dd9c7e4d6d807f0fb7f745883726f31713 | refs/heads/master | 2020-06-09T03:33:09.732604 | 2014-04-17T20:29:54 | 2014-04-17T20:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,280 | cpp | NetworkCommands.cpp | #include "NetworkCommands.h"
using namespace ManaCraft::Client;
using namespace ManaCraft::Networking;
void NetworkCommands::LogIn(std::string username){
CS_Protocol protocol = LOGIN_PLAYER;
unsigned int index = 0;
int payloadSize = username.length() + sizeof(__int8);
std::vector<char> data = std::vector<char>... |
c081f163367c628e0028cd21f5082b5e8fecd7c7 | 39ab815dfdbab9628ede8ec3b4aedb5da3fd456a | /aql/benchmark/lib_94/class_7.cpp | 9d2b1a18aad840a0a15ecf5328e37d41aa9f82da | [
"MIT"
] | permissive | menify/sandbox | c03b1bf24c1527b47eb473f1acc433f17bfb1d4f | 32166c71044f0d5b414335b2b6559adc571f568c | refs/heads/master | 2016-09-05T21:46:53.369065 | 2015-04-20T06:35:27 | 2015-04-20T06:35:27 | 25,891,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | class_7.cpp | #include "class_7.h"
#include "class_0.h"
#include "class_8.h"
#include "class_7.h"
#include "class_9.h"
#include "class_5.h"
#include <lib_55/class_2.h>
#include <lib_88/class_0.h>
#include <lib_36/class_1.h>
#include <lib_2/class_8.h>
#include <lib_67/class_7.h>
class_7::class_7() {}
class_7::~class_7() {}
|
aac4c051c1d4bc464e86e44adecd70f4fc2d6f34 | ea0755df5cd6c21b34e4f5d4f988bab203de66c5 | /Codeforces Division 2A/Greg's Workout/main.cpp | a1fdde920ce007dac0b51b19546527c70baf322f | [] | no_license | kaitou-1412/A2OJ-Ladders | 7d3d13f82909a02e36b2930b628a054587a1f2bc | 35ef2afc63248db3a393b7458339e7b8639893ba | refs/heads/master | 2022-12-12T01:19:06.554713 | 2020-09-03T08:45:49 | 2020-09-03T08:45:49 | 281,331,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int a;
int chest = 0, biceps = 0, back_ex = 0;
for(int i = 0; i<n; i++)
{
cin >> a;
if((i+1)%3 == 1)
chest += a;
else if((i+1)%3 == 2)
biceps += a;
else
ba... |
139d88da99e77ef3b369876544e167bfaef2962d | d1d09cd4c99b856fc2d64e189cf420ffa65c9b4c | /include/IEItem.h | 67eea690db9a722bf3843cb09967307f97a581f0 | [] | no_license | inanevin/Local-Item-Storage-Application | ba67b80c777324890a3f179d0d19c389ccecdb5c | db23088a5d035d4430453e0566a7d90e9b704c15 | refs/heads/master | 2020-03-29T18:17:31.968493 | 2018-09-27T18:13:11 | 2018-09-27T18:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | h | IEItem.h | /*
Author: Inan Evin (2014061024)
Date: 23.05.2016
Author Website: www.inanevin.com
*/
#ifndef IEITEM_H
#define IEITEM_H
#include <iostream>
using namespace std;
class IEItem
{
public:
IEItem();
IEItem(string, string, string, float, float, int);
virtual ~IEItem();
vir... |
c00eccc2aa9a2da9bb85a5884b2e8aa6a94f0054 | 45d300db6d241ecc7ee0bda2d73afd011e97cf28 | /OTCDerivativesCalculatorModule/Project_Cpp/lib_static/FpmlSerialized/GenClass/fpml-com-5-4/CommodityRelativePaymentDates.hpp | be56302ccfac562540946010071c796bb3cd3a36 | [] | no_license | fagan2888/OTCDerivativesCalculatorModule | 50076076f5634ffc3b88c52ef68329415725e22d | e698e12660c0c2c0d6899eae55204d618d315532 | refs/heads/master | 2021-05-30T03:52:28.667409 | 2015-11-27T06:57:45 | 2015-11-27T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,150 | hpp | CommodityRelativePaymentDates.hpp | // CommodityRelativePaymentDates.hpp
#ifndef FpmlSerialized_CommodityRelativePaymentDates_hpp
#define FpmlSerialized_CommodityRelativePaymentDates_hpp
#include <ISerialized.hpp>
#include <fpml-enum-5-4/CommodityPayRelativeToEnum.hpp>
#include <fpml-com-5-4/CommodityPayRelativeToEvent.hpp>
#include <fpml-com-5-4/Calcu... |
19e6a25617346a7ed23365087d123e6a8640854f | 174891ae2c8ae183762ae21240209f47178011c1 | /LAB/07/b_5.cpp | c7d546b44f8790a40692d10b60446d724f8c4fe6 | [] | no_license | kjbpoles/CPP | 3c13e28f5cf1e3131e9cf2a93bd4e58fff844cd2 | 56eaf2275ba3dc9f0adf46f0478514fe05327a80 | refs/heads/master | 2020-07-18T14:22:47.049654 | 2019-10-21T05:15:50 | 2019-10-21T05:15:50 | 206,262,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | b_5.cpp | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
int length;
cout << "length = ";
cin >> length;
char c;
ifstream fin("b_5_input.txt");
ofstream fout("b_5_output.txt");
if (!fin || !fout) {
cout << "Error" << endl;
exit(100);
}... |
bf7ac1d098f3ce42e990cdcba4bc3587f4236b10 | f178fce70c6032493c6a947fa81d1d5aab5b267a | /C source/Windows/dweet/SerialeArduino/SerialeArduino.ino | 596e10ac446f784f5cf5f8d9b7187d2fd230230b | [] | no_license | danielabrozzoni/Smoke_detector | 04f9c1db73c7cd4122385b4b807fab9c6b9d2600 | feb458e363fde2bf2508a4fe2586f0363bfb83cd | refs/heads/master | 2021-06-24T00:46:04.888179 | 2017-09-08T17:36:06 | 2017-09-08T17:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | ino | SerialeArduino.ino | /*******
It prints random numbers on serial port
*******/
void setup(){
Serial.begin(9600);
}
void loop(){
//for(int i = 0;;i++)
{
Serial.println(34530);
delay(1000);
}
}
|
ab49e932cf8680ccf5b4337734901f9a42bb5705 | 9b391863599ecc26a6804f9f272f8c7f2aee8a8c | /lib/cpp/solver/asaga.cpp | 6b4953004f12ae981f95ada544be8b07ac3ea69b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | X-DataInitiative/tick | 4db1bce7471bb48757b54e86b0f7946f36e78dde | 04dbb377b47783036a8343c6a61b60fc9f430dc3 | refs/heads/master | 2023-08-13T10:28:15.560632 | 2023-03-05T00:16:57 | 2023-03-05T00:16:57 | 75,284,069 | 475 | 120 | BSD-3-Clause | 2023-03-05T00:16:58 | 2016-12-01T10:59:08 | Python | UTF-8 | C++ | false | false | 5,311 | cpp | asaga.cpp | // License: BSD 3 clause
#include "tick/solver/asaga.h"
template <class T>
AtomicSAGA<T>::AtomicSAGA(ulong epoch_size, T tol,
RandType rand_type, T step, int record_every, int seed, int n_threads)
: TBaseSAGA<T, T>(epoch_size, tol, rand_type, step, record_every, seed),
n_threads(n_... |
111ee88da7d78bf28e5bda081a8461b0d74e519f | dae70ba33a64f30e65367e5f95f13965fe89558c | /20190815/OO_thread/test.cc | 7463bfd05bda0e1ffc033abead59fc6112734f96 | [] | no_license | stz91/wangdaoC- | 23b2e213a6361574a5d695b5f62a4fa5ac2c1ba3 | 2e4025523cbd4c636cb74231ede5a15e98b006c9 | refs/heads/master | 2020-06-25T03:16:54.927041 | 2019-08-16T09:47:05 | 2019-08-16T09:47:05 | 199,183,297 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cc | test.cc | #include "Thread.h"
#include <iostream>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <memory>
using namespace std;
using namespace wd;
class Mythread
: public Thread
{
public:
void fun() override
{
::srand(::clock());
while(1)
{
int number = rand() % 1... |
c155f1b7c7b0bb8a266df3008c75f4af8f21f1d9 | e836b973d7993fb589a5c9b9823d686e1cb7cc5c | /cpp/L700/LeetCode0762.cc | 7feac9d19c26fe1a011cf5ced554e68aa4a465e6 | [] | no_license | lsry/LeetCode | 5ec3dddca8500f2f7766002275a644a037f3d656 | a7488eb6a3bc2764f3040f34a4c4745c6321d57b | refs/heads/master | 2023-08-30T22:33:50.484281 | 2023-08-27T18:20:37 | 2023-08-27T18:20:37 | 231,709,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cc | LeetCode0762.cc | class Solution {
private:
const int PRIMES = 0b10100000100010100010100010101100;
int ones(int x) {
int one = 0;
while (x > 0) {
++one;
x = x - (x & (-x));
}
return one;
}
public:
int countPrimeSetBits(int left, int right) {
int count = 0;
... |
0b23dc52a9020e99f8373efd2957ac57ab4ae84b | 181841bfa62a45d123db5696913ed9ae62c17998 | /C01/ex03/practice_2/ZombieHorde.hpp | c668a9e99d5313c46dc12026905c48a0f195ad7d | [] | no_license | PennyBlack2008/CPP_Practice | fadaaaa9f28abe5bfc673de88b47a1940a3b6378 | ee2a7fe13f97427645061ab8fe35cab0f95121f5 | refs/heads/master | 2023-04-03T11:30:33.525216 | 2021-04-20T11:20:02 | 2021-04-20T11:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | hpp | ZombieHorde.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ZombieHorde.hpp :+: :+: :+: ... |
8534e63aa9c843aa688abcd7ac035c00eb215405 | 83c0700a9b14dbd2eed4ad9abe7594a8ff12ce0a | /media/libstagefright/omx/include/media/stagefright/omx/OMXStore.h | e00d71390ade1bedb8429faa087bedaf1a00b348 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | PixelExperience/frameworks_av | e5ab74641a88237ac84ff698539c95033a3aa09f | 10d08c030053cbcb30d114630b3276fddce96a45 | refs/heads/oreo-mr1 | 2023-08-05T20:29:20.970331 | 2018-12-04T20:38:27 | 2018-12-04T20:38:27 | 130,521,429 | 8 | 167 | NOASSERTION | 2023-07-15T06:06:36 | 2018-04-22T00:10:21 | C++ | UTF-8 | C++ | false | false | 1,914 | h | OMXStore.h | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
ebcef7013557f40f6624a76df0e1356f750a02f0 | 3703f803b2bcced5924f679f4d4a9753e258bb62 | /smart-firmware/loader/loader.cpp | 005616d3072517a3e8dcccb3e186a020c5d9d43c | [] | no_license | Guangxuan-Xiao/FPGA-RV32-Router | 8d5a40ca7d6e3f3f8750b8e624578868372f2811 | 7dbfe7e44879ccaf3fdca5d37e9a7c222213b453 | refs/heads/master | 2023-08-28T11:22:23.205271 | 2020-12-30T05:54:06 | 2020-12-30T05:54:06 | 416,618,110 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | loader.cpp | #include <stdint.h>
char stack[128] __attribute__((aligned(16)));
asm (R"(
.text
.globl _start
_start:
la sp, stack + 128
j main
)");
static void serial_write_char(char ch) {
while (!((* (volatile char *) 0x10000005) & 0x20));
* (volatile char *) 0x10000000 = ch;
}
static void serial_write_buf(const char... |
d590fdaaf31c848e2d3a0acb0120ad5b1679b033 | aaefcb0efdb5c0b59d4c3008723949d66d28ddd9 | /Com'O/Com'O MWITS 1 2014/Day 7/Test/3 Compression/Compression.cpp | 51ab641bd28ed836a6b9e23dbbadbe5f8bd6e897 | [] | no_license | UtopiaBeam/competitive | cb80aaee773e215eab68f172c173e2ec857b90ff | bf445ecb56c80b35fa915ca7bf0925d398a9c4d7 | refs/heads/master | 2020-03-28T20:25:33.124594 | 2019-10-19T03:43:20 | 2019-10-19T03:43:20 | 149,068,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | Compression.cpp | #include<stdio.h>
int a,b[1005][1005];
int main(){
int i,j,n,k;
freopen("compression.in","r",stdin);
freopen("compression.out","w",stdout);
scanf("%d %d",&n,&k);
for(i=0;i<n;i++)
for(j=0;j<n;j++){
scanf("%d",&a);
b[i/k][j/k]+=a;
}
for(i=0;i<n/k... |
ea7ae9e31a72c31b9e00455323aab4e1e78280e1 | 98b1467194ad4f83c784371674330492ca2cc775 | /week10/1/Walker.cpp | 07863c4fae760712721c706b08ef66a12a85ddf9 | [] | no_license | Yesterday17/JLUOOPClassWork | f791d52b3211670d878c87d004427d16e40c1d74 | b1b6f1b4d8333e9a58dfdeca7ba18b439efb338d | refs/heads/master | 2020-05-05T13:57:49.946394 | 2019-05-20T03:03:58 | 2019-05-20T03:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | Walker.cpp | //
// Created by Yesterday17 on 5/6.
//
#include <iostream>
#include "Walker.h"
int WEEK10_1::Walker::thieved() {
int stolen = this->money;
this->money = 0;
return stolen;
}
void WEEK10_1::Walker::printMoney() {
std::cout << this->money;
}
|
96e52740a2f3b6c175d86709adbf05cfad962cbc | b5343f52e259c66c48dff6f7a7dd4a53580f2839 | /src/protocols/LeMessageHubPropertiesUpdateAdvertisingName.hpp | 41d2bbb848feb416543355583e48de0747337a0d | [
"MIT"
] | permissive | gflix/QtLego | 083174fa37f94a0a159da5a16648449b237dd346 | 65d5d45b2bfb86839c1bf344f83b8ea3e7e586d2 | refs/heads/master | 2022-12-18T13:14:35.211660 | 2020-09-12T12:32:03 | 2020-09-12T12:32:03 | 294,170,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | hpp | LeMessageHubPropertiesUpdateAdvertisingName.hpp | #ifndef PROTOCOLS_LEMESSAGEHUBPROPERTIESUPDATEADVERTISINGNAME_HPP_
#define PROTOCOLS_LEMESSAGEHUBPROPERTIESUPDATEADVERTISINGNAME_HPP_
#include <QtCore/QByteArray>
#include <models/GenericLeMessage.hpp>
#include <models/HubProperty.hpp>
#include <models/HubPropertyOperation.hpp>
namespace Lego
{
LeMessage decodeLeMes... |
0deb32859fb259d2d72e2a67989ccc7a266a307d | 0feb03d87af74792723ecb8633cb59ffbf08e1c1 | /f42r/Source/InfoHarvester.cpp | 32920286e11146bd536183fc86bc5b06e13212c0 | [] | no_license | hollsteinm/f42r | 48a9ebe929876f24c411ed331b22631e6f26fe6a | 187b45d76188f22308ab2621eec72dc22b4091c6 | refs/heads/master | 2021-01-18T23:30:12.969860 | 2016-05-31T17:10:25 | 2016-05-31T17:10:25 | 33,191,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,552 | cpp | InfoHarvester.cpp | #include "InfoHarvester.h"
#include <iostream>
#ifdef _WIN32
namespace windows{
#include <Windows.h>
static inline string ProcArchToString(WORD arch)
{
switch (arch)
{
case PROCESSOR_ARCHITECTURE_AMD64:
return "amd64";
case PROCESSOR_ARCHITECTURE_ALPHA:
return "alpha";
case PROCESSOR_ARCHITECTURE_ALP... |
2da54153fd75b83b0ad71a84000e64fe00758774 | 7e878c83a55a48cc90ba9d3d4488f64cc5cb3224 | /src/condor_utils/stat.WINDOWS.cpp | eb0993809aef540bfe125a3dab1d6fd9b672e642 | [
"Apache-2.0",
"DOC",
"LicenseRef-scancode-unknown-license-reference",
"OpenSSL"
] | permissive | bbockelm/condor-network-accounting | a07e360cb015e00d8365000647b8a6912e732d1d | 9694aef2dd9e9f622a385ba6da74b15589f8fefd | refs/heads/master | 2021-01-01T18:03:00.212773 | 2012-08-14T11:59:24 | 2012-08-14T11:59:24 | 2,495,602 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,648 | cpp | stat.WINDOWS.cpp | /***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
d496e0cd338ff4a4f3667f4c2340b10ae354b1fe | 52d7be9e86576bce5d010669f44c304f45d269c1 | /View/old/ctexturesystem.h | a271e8ba8813c0016251ab8236e2c4547ae6397b | [] | no_license | rg3443/rogbox2 | 7bcb670d6b28662f3e747853d328bf7a9aafbe46 | 966a84f57cfe3ab5c78adf6bc344834c9c77c890 | refs/heads/master | 2022-07-07T10:25:57.341522 | 2022-06-27T15:37:31 | 2022-06-27T15:37:31 | 236,237,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | ctexturesystem.h | #ifndef CTEXTURESYSTEM_H
#define CTEXTURESYSTEM_H
#include <stdio.h>
#include <iostream>
using namespace std;
#include <vector>
#include "ctexture.h"
class CTextureSystem {
public:
CTextureSystem();
void Init();
CTexture* GetTexture(int id);
//
void CreateTexture(int id,string p... |
35c2e1ff02fc474a6f2753cdb9b2146600169909 | fb3ba25626f15bc866a04e9a44c79a5a95152cf9 | /VMView/VMViewCallbackInterfaces.h | de6cf56eaf4e15576efa2346b53557227cb9bee0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | basic4gl-guy/basic4gl | 2e98a60e05714ae86075f7f16af4f7c53705aede | 5d4da444d36cdd5e020062adb02373e3efb21303 | refs/heads/master | 2020-12-11T06:51:35.653212 | 2020-01-14T10:18:55 | 2020-01-14T10:18:55 | 233,792,714 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | h | VMViewCallbackInterfaces.h | /* Created 5-Jan-07: Thomas Mulgrew (tmulgrew@slingshot.co.nz)
Interfaces for communicating between application and virtual machine view
*/
#ifndef VMViewCallbackInterfacesH
#define VMViewCallbackInterfacesH
#include <string>
//---------------------------------------------------------------------------
///////... |
f52998dab0a23bc19dae6d41f668b93c6abb65ae | 342cd64d776c604358bc3ed2648aff6e02fa6c05 | /client/unit/PositionPathCondition.h | 191477d7c7704cf5c2728c1d5245234dbeda9e96 | [] | no_license | dvdouden/isomap | 7b72c90b177e29214afc7713ec3f59e7649b6395 | 2d859272e941ed3c03a875e9479828034ffe94b7 | refs/heads/master | 2021-05-21T14:59:44.039458 | 2020-05-26T17:14:54 | 2020-05-26T17:14:54 | 252,688,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | h | PositionPathCondition.h | #pragma once
#include "PathCondition.h"
namespace isomap {
namespace client {
namespace unit {
class PositionPathCondition : public PathCondition {
public:
explicit PositionPathCondition( uint32_t target ) :
m_target( target ) { }
... |
bbc08f072a09b4411d248f0087b58be6546b077f | a0783ab314f2ca6ba564adc6aae35115c0c9dc67 | /Progetto-03/Info e Slide/seiot1920/arduino/modulo-lab-2.3/test-pattern-observer-2/ButtonImpl.h | 811d0d00b37019144a538303bbde7e104a0c2d21 | [] | no_license | VladMattiussi/IoT-project | a8052f377c324dd7b91f6720eafc224d4396975e | ad7821f9b6b670301c617ac3e944e9dd5c3cf533 | refs/heads/master | 2023-08-14T06:47:14.426164 | 2021-09-22T11:58:09 | 2021-09-22T11:58:09 | 409,186,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | ButtonImpl.h | #ifndef __BUTTONIMPL__
#define __BUTTONIMPL__
#include "Button.h"
class ButtonImpl: public Button {
public:
ButtonImpl(int pin);
bool isPressed();
bool registerListener(ButtonListener* listener);
void notifyListeners();
private:
int pin;
int nListeners;
ButtonListener* listeners[MAX_BUTTON_LISTEN... |
1c8f4bc67771bded3124497c4b0aeca935b74f44 | 3d0e2d4bf865833c5304792a126801d98f000f40 | /sdk/NitroDWC/build/libraries/ppwlobby/src/ppw_profile.cpp | 32bbc4e25eb74937a64f9881f24a3f74ff62511e | [] | no_license | XLuma/retsam_00jupc | 86311fa2927798e45070f9922046ba5e5a9539ae | 9859bc2f4b5bedcadc791f39ce1e7c77172194e7 | refs/heads/main | 2023-07-25T04:24:49.694267 | 2021-07-30T23:08:09 | 2021-07-30T23:08:09 | 393,130,605 | 0 | 0 | null | 2021-08-05T17:56:40 | 2021-08-05T17:56:39 | null | SHIFT_JIS | C++ | false | false | 7,028 | cpp | ppw_profile.cpp | /*---------------------------------------------------------------------------*
Project: NitroDWC Libraries
File: ./src/lobby/lobby.c
Copyright 2005-2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc... |
6b882959a3acc5ff5c30d5fe93a60a5821649b0b | 6c97bba42e3cbae86c992bdbecd694d59fdb499b | /VRBackend/ResourcePool.h | c4ea656738098a94b2bdb25265d445b9f74f7ae7 | [] | no_license | mhoff12358/VREngine | 0b60b45ebb2b545d7ff051be06e954ec5ca3f3a5 | 69eb14737f4a25cb88efe31fb5fb1aead2d954e4 | refs/heads/master | 2020-06-19T16:40:32.346440 | 2017-07-05T01:27:40 | 2017-07-05T01:27:40 | 196,787,722 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,230 | h | ResourcePool.h | #pragma once
#include "stdafx.h"
#include "ModelGenerator.h"
#include "ObjLoader.h"
#include "ResourceIdentifier.h"
#include "Shaders.h"
#include "Texture.h"
class EntityHandler;
class ConstantBuffer;
class ResourceIdent {
public:
enum ResourceType {
NONE = 0,
MODEL = 1,
PIXEL_SHADER = 2,
VERTEX_SHADER = 3... |
21a3ee78e3c187684d4abfef8c4a885561818eee | 440f814f122cfec91152f7889f1f72e2865686ce | /src/game_server/server/extension/cooling/cooling_role_pool.h | aa381f339fc15347035caa480dbf6808f963a281 | [] | no_license | hackerlank/buzz-server | af329efc839634d19686be2fbeb700b6562493b9 | f76de1d9718b31c95c0627fd728aba89c641eb1c | refs/heads/master | 2020-06-12T11:56:06.469620 | 2015-12-05T08:03:25 | 2015-12-05T08:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | h | cooling_role_pool.h | //
// Summary: buzz source code.
//
// Author: Tony.
// Email: tonyjobmails@gmail.com.
// Last modify: 2013-03-26 18:25:50.
// File name: cooling_role_pool.h
//
// Description:
// Define class CoolingRolePool.
//
#ifndef __GAME__SERVER__COOLING__COOLING__ROLE__POOL__H
#define __GAME__SERVER__COOLING__COOLING__ROLE__PO... |
9eca3824ebf364fb12ffa9a07a970f17bfb25a73 | 34fb2c48d29b4aac014571cbb0d4232896380742 | /数据结构/数据结构实验课文件/EXP15-graph(BFS,Kruskal)/for_test/source/20354007/bipartite.cpp | 0f956f0ad3aa21b50088f92106b913c73aa39552 | [] | no_license | dkhonker/sysu | 2aca46818fc9bf77ededa0d8922859c3cabbd1e7 | ef3b8d0f6d5bb03b408081c932716dbd37ad0a22 | refs/heads/master | 2023-06-17T01:09:03.174593 | 2021-07-14T04:27:07 | 2021-07-14T04:27:07 | 382,212,051 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,276 | cpp | bipartite.cpp | #include<stdio.h>
#include<memory.h>
const int maxn=401;
int edge[maxn][maxn];//邻接矩阵存储
int color[maxn];//标记顶点颜色
int n,m;
bool dfs(int u,int c)
{
color[u]=c;//对u点进行染色
for(int i=1;i<=n;i++)//遍历与u点相连的点
{
if(edge[u][i]==1)//如果i点与u点相连
{
if(color[i]==c) return false;//i点的染色重复,则不是二分图
... |
bcad175332249d73b69c702cdc8873662eb6a272 | 8903cb76cedac12995249e2e613af65365be7cf2 | /hiro/gtk/widget/label.cpp | 56806f8de415dcdf5a0f40832fff49aadd948aca | [
"ISC"
] | permissive | kirwinia/ares-emu-v121 | 0c1e21e073f291741406cd1ed01acca43acd56d7 | 722aa227caf943a4a64f1678c1bdd07b38b15caa | refs/heads/main | 2023-06-09T15:28:23.665934 | 2021-06-28T06:10:46 | 2021-06-28T06:10:46 | 380,923,321 | 0 | 0 | ISC | 2021-06-28T06:05:04 | 2021-06-28T06:05:04 | null | UTF-8 | C++ | false | false | 4,902 | cpp | label.cpp | #if defined(Hiro_Label)
namespace hiro {
static auto Label_draw(GtkWidget* widget, cairo_t* context, pLabel* p) -> s32 {
auto color = p->state().backgroundColor;
if(auto window = p->self().parentWindow(true)) {
if(!color) color = window->backgroundColor();
}
if(color) {
f64 red = (f64)color.red() ... |
4b30a3a51566945f88980106559a2eaeceb8cc89 | 8e22fc4cffbaec1c22c1075a2d8d837f30af02e3 | /hum_temp1/hum_temp1.ino | b668dc721e8e544f5326325e2b757564ecb1ab46 | [] | no_license | krzyspx/BLYNK_net | 8bd817d2ad3c78f75570a1ef38cef1d91aec7d6f | 5a197b07ef7ad07caf378dc345f5a04eb7ef7ed1 | refs/heads/master | 2020-04-02T21:56:20.119427 | 2018-10-26T10:16:32 | 2018-10-26T10:16:32 | 154,816,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | ino | hum_temp1.ino | #define BLYNK_MSG_LIMIT 0
//#define BLYNK_DEFAULT_PORT 8080
// #error "Compiles"
#include <EEPROM.h>
#include <Timers.h> // my favorite timer
Timers <7> akcja; //
#include "blynk.h" //obsługa BLYNKa
#include "led.h"
#include "dht11.h"
void setup()
{
if (procesor == D1MINI) {
Serial.begin(115200); delay(100);... |
09b1ebb16f056c333bf5010dddbee5661685c95f | 8be3d02a56f8a09446264b1e6f6024ed3ff11e4f | /ShootingGallery/ShootingGallery/TextManager.h | 5fee4504560b5c2db8faa5c4cbc93294e1091cb3 | [] | no_license | StevenBryar/ShootingGalleryGame | 6392da502dd1a78f253a321b0566a6fcf6b208e3 | 3e0f5e47fd75a6ad38dba9026e13b358d06417d2 | refs/heads/master | 2016-08-12T12:11:51.488230 | 2013-09-21T17:30:00 | 2013-09-21T17:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | h | TextManager.h | #ifndef TEXT_MANAGER_H
#define TEXT_MANAGER_H
#include "MessageListener.h"
#include <vector>
#include "SFML\Graphics\Text.hpp"
class Text;
class Vector3;
enum textAttribute;
class TextManager : public MessageListener{
public:
static TextManager* instance();
void cleanupInstance();
Text* createText(const std::strin... |
45a04ec8088a891a74af74715947d9f1ab20565f | 59798ea0c60115e64b2c1584e708f3063fc635c1 | /FuGenDemo/MainDeterministicTree3D.cpp | 2e24b06cdaa2f8895fa337168dbdf53d980f29a9 | [
"MIT"
] | permissive | sereslorant/fu_gen | bc8afd4888c0ae611210758de5c7b0850498b02d | cc75d307189e7e3d560a94d32072b97deb94b6e5 | refs/heads/master | 2021-01-19T01:06:47.961804 | 2017-08-04T22:02:21 | 2017-08-04T22:02:21 | 87,225,552 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | MainDeterministicTree3D.cpp |
#include "SDL2DemoFramework.h"
#include <DemoUtils/DemoTexture.h>
#include <Demo/DemoCollection.h>
#include <Demo/Demo3D/DeterministicTree.h>
#include "Camera3D.h"
int main(int argc,char *argv[])
{
unsigned int TreeResX = 6;
unsigned int TreeResY = 6;
SDL2DemoFramework DemoFramework(800,600,nullptr,new Camer... |
8294343f0f85f73b259017df79b91bf3bc2267b5 | ef3cf7426e0c1602b8e9104b3ef188412e32ffe0 | /C++/Payment Without Change.cpp | fceb524fc25590bb5c07acb9b27bd228f565ecf7 | [] | no_license | talhaibnmahmud/Codeforces | 5c56d6a6573d6d62b207686b7407145c4935efa7 | e9e1afd19cf3488790cbb66e7192efa24371e9d1 | refs/heads/main | 2023-08-22T04:40:13.483370 | 2021-10-15T10:13:51 | 2021-10-15T10:13:51 | 394,391,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | Payment Without Change.cpp | #include <iostream>
int main()
{
int query;
std::cin >> query;
for(int i = 0; i < query; i++) {
int64_t a, b, n, S;
std::cin >> a >> b >> n >> S;
if(S > ((n * a) + b))
std::cout << "NO" << std::endl;
else {
if((n * a) == S)
std::cout... |
542fed8de2e104a78c263b8ae7992fe1006d6d9b | 6106cd1c216c4e9727a6712dc547abd4bd5f2fe2 | /chat_server/main.cpp | ffaa64a45fe10d47f6731accac64c08a86e9bf69 | [] | no_license | Borelset/chat | 72361dce50c9c8909fc5ff92860f13cde42f32d8 | 5f5074885a204cadfdc8a131d1769a1201f03d50 | refs/heads/master | 2021-01-20T01:12:01.105993 | 2017-04-26T09:23:58 | 2017-04-26T09:23:58 | 89,235,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | main.cpp | #include <iostream>
#include <string>
#include "database.h"
#include "server.h"
#include "sys/socket.h"
#include "log.h"
using namespace std;
_log logout;
int main(int argc, char *argv[])
{
if(argc == 3)
{
logout << "select port " << argv[1] << " & " << argv[2] << logout;
server_start(atoi(arg... |
996baa56f7b673ce53482a4b3e24f7245bdde502 | 10726711587da29d96dac61e25167f82b42b001e | /Raytracing/Sphere.cpp | ed5dc16a8d18d911228cc178dd418fd511f32de8 | [] | no_license | Havrevoll/RaytraceVS | e00246fd83344ebd9fe0b430db5b7eeebcde3348 | 024eb57522d69a52397ee2732ec8aea91d75f16e | refs/heads/master | 2020-12-12T23:48:33.534136 | 2020-02-12T09:15:22 | 2020-02-12T09:15:22 | 234,259,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | Sphere.cpp | #include <cmath>
#include "Sphere.h"
using std::sqrt;
const double Sphere::kEpsilon = 0.001;
Sphere::Sphere(void)
{
}
Sphere::Sphere(const Point3D c, const double& r) : center(c), radius(r)
{
}
bool Sphere::hit(const Ray& ray, double& tmin, ShadeRec& sr) const
{
double t;
Vector3D temp = ray.o - center;
double ... |
f4ed49180d7b35ddf15b06c015f077592ab7a8bd | 4e9ace268b7a9418b5d04d3da91f1ebddd515dc1 | /src/lib/headers/aming_headers.cpp | 0805b0dbfc79ff8fcd4e511882ccc33e8d583040 | [] | no_license | anyks/aming | 8cc2709ba244a26094d8084987e62136701fa170 | 1f221f65a561c345253f8397de9580e455f78fa4 | refs/heads/master | 2021-08-18T18:48:00.340849 | 2017-11-23T14:50:06 | 2017-11-23T14:50:06 | 108,564,023 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,925 | cpp | aming_headers.cpp | /* SERVER PROXY AMING */
/*
* author: Yuriy Lobarev
* phone: +7(910)983-95-90
* telegram: @forman
* email: info@anyks.com
* date: 11/23/2017 17:50:05
* copyright: © 2017 anyks.com
*/
#include "headers/headers.h"
using namespace std;
template <typename T>
const vector <T> ... |
0cc2a34fceb53cc5717155c8593e74336736ddd1 | aa25574f816343efb643a80189c1985844a1554f | /include/InodeSummary.h | 29e5711844215eae046d6da8a26fc9bcd809b0d9 | [] | no_license | DanioPurdue/EXT2-File-System | d38aabb70d487909bac20d0fcc1d4c8d745bdac6 | 1a8b8a96eb34334013947f9ed5cc5ccdc9e877d9 | refs/heads/master | 2020-05-25T16:12:17.792313 | 2019-06-20T05:34:06 | 2019-06-20T05:34:06 | 187,882,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | h | InodeSummary.h | #pragma once
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <math.h>
#include <iostream>
#include <time.h>
#include "ext2_fs.h"
#include "FreeInodeEntries.h"
#define SUPERBLOCK_OFFSET 1024
#define EXT2_S_IFDIR 0x400... |
ec3c9cf4f9294745709edc5ba3ca7eca9e632e69 | 605edfcd5836f7796ee0155be82dd9a0aeb28dba | /ProCamCalibration/Configuration.h | 97a06e066d66d657ab573d09ca482a251d212951 | [
"MIT"
] | permissive | punpongsanon/Checker_ProCamCalibration | f6d53d36804d2b8cd8cfc445973139baf1aede43 | 429ab2277d3d928ead87ec58d260a1b97302b310 | refs/heads/master | 2021-04-15T03:46:10.587671 | 2018-07-30T08:59:41 | 2018-07-30T08:59:41 | 94,559,346 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,400 | h | Configuration.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to the ... |
8cccdca44ef6cdb05bbfb70ec9219f6b6851153a | 191126328427ffb1d2cebcc5d3ccb670a7f4f8be | /Graphs/agiatedchn.cpp | 9bd68d830ac5b37bd5f54b9a82d8066e27faf43f | [] | no_license | drviruses/CP | 090ca7db998f7f113d85ab96a91a73fd9d5892ac | 69294c62218fda3453daf4b69251ab98bb24cccb | refs/heads/master | 2023-03-14T06:09:15.174975 | 2021-03-01T05:04:26 | 2021-03-01T05:04:26 | 305,608,273 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,110 | cpp | agiatedchn.cpp | /*
@uthor: Amit Kumar
user -->GitHub: drviruses ; CodeChef: dr_virus_ ; Codeforces,AtCoder,Hackerearth,Hakerrank: dr_virus;
*/
#include <bits/stdc++.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
//#include <boost/multiprecision/cpp_int.hpp>
//namespace mp = boost::multiprecisio... |
a21f83ac7116dc6a5975da3e3e32de33300de260 | d1631a12bb9cfa33e50d05515a31a6f92f37c553 | /Test.cpp | 44f6a39ba346fa94cdf82593e4d94d9378e11844 | [] | no_license | Tord-Zhang/xgboost_classification_test | 63021c005bbbed2752fe7b929e62b5a015899482 | 148fe1557058b9732507a5e5ecea7e1fe78d2c3a | refs/heads/master | 2022-02-28T01:34:40.643916 | 2019-10-28T10:04:55 | 2019-10-28T10:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,531 | cpp | Test.cpp | #include<iostream>
#include<opencv2/opencv.hpp>
#include<xgboost/c_api.h>
#include<fstream>
#include<string>
#include<sstream>
#include<vector>
using namespace std;
using namespace cv;
//you should get about 98% accuracy without modifying the code
int save(string pca_file, PCA* pca)
{
FileStorage fs(pca_file, FileSt... |
97e272bc540d51a4faa7be73c114f083073d5f45 | 397d5fe0e0aa50a24df7e34b1b4b46774ecad4a4 | /cses/Missing_Coin_Sum.cpp | 2f764e3cf27d780d0a8e2fcafdace300ed220e3b | [] | no_license | sunho/algorithms | d576574e636538aa457132466c8ccb50b9ed71a4 | 84a69798c04f6f8535cffe33e47bf36a36cb1454 | refs/heads/master | 2023-07-26T11:47:33.716188 | 2023-07-09T23:25:12 | 2023-07-09T23:25:12 | 124,163,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | cpp | Missing_Coin_Sum.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
int n;
cin >> n;
vector A(n, 0);
for (int i=0;i<n;i++) cin >> A[i];
sort(begin(A),end(A));
if (A[0] != 1) {
cout << 1 << "\n";
return;
}
ll cur = 1;
for (int i=1;i<n;i++) {
if (A[i] > cur + 1) {
break... |
8f456b24c5efce0f8624dfe79da69489ecf1ab68 | 3f7828e6c680391eb73bc43856ba25a9def98726 | /PositionComponent.h | 5f40ee8cd3e59a390e69c21a74c54ba2d4ee4f3c | [] | no_license | yakugama/SpaceShooter | 4ba7e4d67231858ab267561beedc6fb10a9eec17 | 3e96a45fc105e3d6f7b899556339a0f7a7ed1e39 | refs/heads/master | 2020-05-02T16:52:18.471365 | 2019-03-27T22:04:26 | 2019-03-27T22:04:26 | 178,081,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | h | PositionComponent.h | #pragma once
#include "Vector2D.h"
class MotionComponent
{
public:
Vector2D position;
Vector2D velocity;
MotionComponent();
void setPosition(int x, int y);
void setVelocity(int x, int y);
}; |
34dace5a9834dc00ed5e40bd1bc90666724eba43 | 48e88a23335185552bfe80c16ef4606fa0ab6d89 | /G2015010458/Rectangle/Shape.h | 23b4226bb2a152f55bbfeab91278fa075dcb9a19 | [] | no_license | GeekBand/GeekBand-CPP-1501-Homework | b245549338c2583a06b870c8600665a5b0d2ad2b | 5f85f9ea1f7d8da1e6803deddd2885895146a9eb | refs/heads/master | 2016-08-05T15:59:26.052954 | 2015-10-26T08:43:37 | 2015-10-26T08:43:37 | 40,360,261 | 21 | 111 | null | 2015-10-26T08:43:37 | 2015-08-07T12:50:35 | C++ | UTF-8 | C++ | false | false | 94 | h | Shape.h | #pragma once
class Shape
{
public:
Shape(int no = 0) :_no(no) {}
private:
int _no;
};
|
a8378d269a2a3b1a6d37528ba0a883fd41f8c763 | 8583b5bfc594b994f51d24d012e92ae66bf2e5ea | /src/BabylonCpp/src/animations/easing/circle_ease.cpp | 79d250874f82d79a55fa493f7330d45a6bbdf6ac | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | samdauwe/BabylonCpp | 84b8e51b59f04a847681a97fa6fe0a5c554e9e1f | 3dad13a666299cbcf2e2db5b24575c19743e1000 | refs/heads/master | 2022-01-09T02:49:55.057544 | 2022-01-02T19:27:12 | 2022-01-02T19:27:12 | 77,682,359 | 309 | 41 | Apache-2.0 | 2020-11-06T12:16:17 | 2016-12-30T11:29:05 | C++ | UTF-8 | C++ | false | false | 373 | cpp | circle_ease.cpp | #include <babylon/animations/easing/circle_ease.h>
#include <cmath>
#include <algorithm>
namespace BABYLON {
CircleEase::~CircleEase() = default;
float CircleEase::easeInCore(float gradient) const
{
float _gradient = std::max(0.f, std::min(1.f, gradient));
return (1.f - std::sqrt(1.f - (_gradient ... |
d28adc81019cbc56134d62cc6f938c429404bd8f | d2975f0a22606579e7f881d0483ffbfa26ccfe63 | /LOGIN/veritabani_secimi.h | ac513c5ebbf97e3ddd0e081e6e2445382eb2b99f | [] | no_license | adakteknoloji/FRAMEWORK | 0e07720dea2607f4a62329e3c73b4b108dbf1b78 | 2bc6bde6fd79d2393b95945e158b7866203e578b | refs/heads/master | 2021-03-27T17:39:01.747267 | 2018-11-07T13:57:57 | 2018-11-07T13:57:57 | 4,813,227 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 707 | h | veritabani_secimi.h | #ifndef VERITABANI_SECIMI_H
#define VERITABANI_SECIMI_H
#include "secim_kerneli.h"
class VERITABANI_SECIMI : public SECIM_KERNELI
{
public:
VERITABANI_SECIMI ( int kullanici_id , QString * veritabani_ismi , QString * veritabani_tanimi, QWidget* parent = 0 );
~VER... |
ae2faeb2b87125e32df420b404c60c430651df6b | 649aa34b1dbb4c807ab240e85a895e90ed9a47bc | /Quiz Game/main.cpp | a1d24024fdccc705ef619cf318d95e99dde14070 | [] | no_license | Kompetencyjny/Projekt | 8e845d677051ddb4c5c008e7655b86f2640615a2 | 835b8d76f5062a568995c9ba8157b68ebb814a04 | refs/heads/master | 2020-03-30T17:26:38.216646 | 2019-01-20T15:08:14 | 2019-01-20T15:08:14 | 151,455,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,065 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <windows.h>
using namespace std;
int menuChoice = 0;
string choice;
bool wrongOption = false;
HANDLE uchwyt = GetStdHandle(STD_OUTPUT_HANDLE); // pozwoli zmieniac kolor czcionki w konsoli
void ho... |
a255d90d8705bb2de151eea3e00960146873491f | 9471b2743486250464fe6a7e962f663033fdb265 | /POJ/3337/2483239_AC_0MS_188K.cc | ff737d0be08f31f98ea83d7f33f88d2755267cae | [] | no_license | liruqi/topcoder | 25d1ce9fdb836c94d8229f11dc74e3e3a9819e53 | 17df44464c91db51a1a24a9658c41ccb1501870b | refs/heads/master | 2023-01-23T00:13:11.810623 | 2023-01-13T01:28:12 | 2023-01-13T01:28:12 | 6,572,063 | 6 | 6 | null | 2014-11-16T09:17:56 | 2012-11-07T00:31:47 | C++ | UTF-8 | C++ | false | false | 1,544 | cc | 2483239_AC_0MS_188K.cc | #include <stdio.h>
#include <ctype.h>
#include <string.h>
#define maxn 30
char expr[200], buf[500];
int exv[maxn], extop;
void
push(char s, char v){
exv[extop++] = (s=='+'?1:-1)*(v-'`');
}
int val[maxn];
void
add(int s, char v){
int idx=v-'a';
val[idx]=idx+1+s;
//printf("%d %c\n",s... |
71e1ad6bb71cc4c6d2b47e1b234619eb02354531 | 4206e592f4b1e7b3ff6c8d77aa55e2b67b4d06a7 | /ScratchTool.cpp | cc6e2bba28059af2ccb5e0ce4ad2e1b3f09c0bd9 | [] | no_license | egoogins/ScratchTool | 7205d05e310db1f9e06b1205e84e9dfe0b35e009 | d6b3be58d30eef9d62a8a5b1184e42b3bb1a4ac0 | refs/heads/master | 2016-09-15T23:05:19.674112 | 2012-10-22T21:33:33 | 2012-10-22T21:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | cpp | ScratchTool.cpp | /*
* @author EJ Googins <egoogins@bowdoin.edu>
*/
#include "ScratchTool.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <iostream>
ScratchTool::ScratchTool() : QMainWindow(),
central(new MainWidget(this))
{
this->setWindowTitle(tr("LocTool"));
this-... |
b3600b5c733d340bd1e02fe1a1473ab1188eab32 | 9557a9ccf39f5ea18c8dd40a32bb4ca8711a99c5 | /ModuleTexture.cpp | bcf0b62382f6aaba221f6abd96bc22671baa64c8 | [
"MIT"
] | permissive | Floren94/HelloEngine | 1281edfdc7583fb6ba8e943cad0b35f464a1eb50 | ef116989282b6acb2b9c6fab9adbd3157cc65f68 | refs/heads/main | 2023-02-01T01:14:20.757631 | 2020-12-17T18:33:49 | 2020-12-17T18:33:49 | 313,050,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,139 | cpp | ModuleTexture.cpp | #include "Application.h"
#include "ModuleTexture.h"
#include "ModuleProgram.h"
#include "ModuleEditor.h"
#include "il.h"
#include "ilu.h"
// Called before render is available
bool ModuleTexture::Init()
{
ilInit(); /* Initialization of DevIL */
iluInit();
ilEnable(IL_ORIGIN_SET);
ilOriginFunc(IL_ORIGIN_LOWER_LEFT)... |
60139c0d927a647301d90224f1b797ed6e774a46 | 2fcac88c55c67d40fc9e40674dd87909a4a4de5c | /QThread/Mutex/mutex/main.cpp | 944389321bb8b34a674096013257c40720a7f67f | [] | no_license | lling116/Qt | 05d9e1d5e1c6b825bdf1ca773c6495ae54b8cc04 | ab0ca5fa259d2abeb2db6c778176e3cd218862ac | refs/heads/master | 2020-04-25T21:53:16.574336 | 2019-11-01T03:08:39 | 2019-11-01T03:08:39 | 173,093,863 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | main.cpp | #include "widget.h"
#include <QApplication>
#include "mutex.h"
int count = 0;
void debugCount(){
count++;
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Mutex m;
m.start();
return a.exec();
}
|
607e5ddc09dfa9806ea6b6dbfa265275857e3058 | 122eb0c0f93243d219cd82ba26b9a4967b6af1aa | /Linear, Binary and Doubling Searches.cpp | 2c9abe6fffee4f2689c5939c99f030361adcdace | [
"WTFPL"
] | permissive | SharagaFun/Algorithms-lab1 | 60933298e1351458bb18e3e806e07d0ecf315dca | 6e4cafd0c1c6ec12d0d5169382233fe511855afc | refs/heads/master | 2020-11-24T15:41:29.293584 | 2020-05-23T20:07:52 | 2020-05-23T20:07:52 | 228,222,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,834 | cpp | Linear, Binary and Doubling Searches.cpp | #include <iostream>
#include <vector>
void binSearch(std::vector<int> array, int r, int t, int l = 0)
{
while (l <= r)
{
int m = (l + r) / 2;
std::cout<<array[m]<<" ";
if (array[m] == t)
return;
else if (t > array[m])
l = m + 1;
else
... |
03d8dd2f67f59bda9d943752a538ed394af759d6 | 303b48eb9354338542e0a4ca68df1978dd8d038b | /include/fox/FXSettings.h | 1c48330523ea0828b2edaff1c4ea60a4b029b961 | [
"BSD-3-Clause"
] | permissive | ldematte/beppe | fa98a212bbe4a27c5d63defaf386898a48d72deb | 53369e0635d37d2dc58aa0b6317e664b3cf67547 | refs/heads/master | 2020-06-04T00:05:39.688233 | 2013-01-06T16:37:03 | 2013-01-06T16:37:03 | 7,469,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,928 | h | FXSettings.h | /********************************************************************************
* *
* S e t t i n g s C l a s s *
* ... |
537d240a1ed88127d72d645afcbc493e4fc83a47 | 24cb74052f95d275dfb8599ea342cadd5e312fa1 | /Graph/Directed Graph(DG)/SCC/Kosaraju's Algorithm.cpp | e896f49d52d62b91cf44f4a331a74e6c57429c10 | [
"MIT"
] | permissive | Datta2901/Algorithmic-Implementations | 44ccd6b1996fac660ec1c268a5fa44fda59abb0e | 9e1afe97d54d4dc50be9170bc1a155562e0aafa6 | refs/heads/master | 2023-08-31T17:25:52.391313 | 2021-10-15T17:46:56 | 2021-10-15T17:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,708 | cpp | Kosaraju's Algorithm.cpp | /* # The term 𝑺𝑻𝑹𝑶𝑵𝑮𝑳𝒀 is always used in reference with 𝑫𝑰𝑹𝑬𝑪𝑻𝑬𝑫 𝑮𝑹𝑷𝑨𝑯(𝑫𝑮).
# A DG is strongly connected graph if there is a path between all the pairs of vertices.
# A strongly connected component (SCC) of a DG is a 𝒎𝒂𝒙𝒊𝒎𝒂𝒍 𝒔𝒕𝒓𝒐𝒏𝒈𝒍𝒚 𝒄𝒐𝒏𝒏𝒆𝒄𝒕𝒆𝒅 𝒔𝒖𝒃𝒈𝒓𝒂𝒑𝒉.
... |
1a43b17d9f8535a7386ff041cd1ae5f298ff33f2 | 844c0a898822e07d284d13a2946aa39afaedbbfd | /IGIT/include/FastMarchingForPropagation.h | 31af7965801a9a6171ee50a2c46e11e936f72037 | [] | no_license | swayfreeda/IGITLandscapeViewer | 000f45ac6ae9305a0bc9935b11a9de4e356e2737 | 2197a3d5c3de7684352aa077624e0a228c8a19c5 | refs/heads/master | 2021-01-01T19:34:59.126330 | 2015-10-04T07:51:46 | 2015-10-04T07:51:46 | 43,628,439 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,824 | h | FastMarchingForPropagation.h | //##########################################################################
//# #
//# CCLIB #
//# #
//# This pr... |
79c962a622b16d61b224d83a6e01543c4daef614 | 37a580f0cbef55763e26b7b051c0c31776026b3f | /include/BSolvers/BSolverOcl.h | 3972ac12f45e5057ac745fa5c3d12f32c47dd9c8 | [] | no_license | ashamin/Bpde | 9628c5b0861f244f2cb5997cab5e103eb8c0f277 | 901bdb86a6bc79b403cbbdf1d7b93cd5948a6667 | refs/heads/master | 2021-01-10T22:28:44.729228 | 2014-06-26T15:16:06 | 2014-06-26T15:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,779 | h | BSolverOcl.h | #ifndef BSOLVER_OCL_H
#define BSOLVER_OCL_H
#include "BSolver.h"
#ifdef MAC
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#include "omp.h"
#include <iostream>
#include "math.h"
namespace Bpde {
class BSolverOcl : public BSolver
{
public:
BSolverOcl(const BArea& area, std::vector<cl::Device>& devic... |
ed66269c01dc5109b3d2fb5b7fd73eeeb7e603e3 | ed444c4a0ed1fe679da64b81ec6aa1ddf885a185 | /Foundation/Render/Common/Scene/DebugDraw.cpp | 163adc0fafb69ea728b8ff9043a634173a62c14c | [] | no_license | swaphack/CodeLib | 54e07db129d38be0fd55504ef917bbe522338aa6 | fff8ed54afc334e1ff5e3dd34ec5cfcf6ce7bdc9 | refs/heads/master | 2022-05-16T20:31:45.123321 | 2022-05-12T03:38:45 | 2022-05-12T03:38:45 | 58,099,874 | 1 | 0 | null | 2016-05-11T09:46:07 | 2016-05-05T02:57:24 | C++ | UTF-8 | C++ | false | false | 4,130 | cpp | DebugDraw.cpp | #include "DebugDraw.h"
#include "2d/Primitive/PrimitiveNode.h"
#include "Cameras.h"
static render::DebugDraw* sIntance = nullptr;
render::DebugDraw::DebugDraw()
{
sIntance = this;
}
render::DebugDraw::~DebugDraw()
{
sIntance = nullptr;
}
bool render::DebugDraw::init()
{
if (!Node::init())
{
return false;
}
... |
96b644cbb824005b1e40daa2e849f12439d46eea | e4e9f5330b0bcffe5953f6706c8825220a6da732 | /Advanced/PAT-Advanced-86.cpp | d123d3aa8fe272606935a950fb0e62e90988d3b4 | [] | no_license | sandexp/Pat-Algorithm | b8a76aeaae6277430e01cdeeeb8e8960b4cebdaa | f8f94bf472942e9c33e5824be56ad0292ff1d05f | refs/heads/master | 2022-03-29T18:33:52.031320 | 2020-01-15T17:09:01 | 2020-01-15T17:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | PAT-Advanced-86.cpp | #include <iostream>
#include <algorithm>
using namespace std;
//最长不下降子序列LCS
int main(int argc, char const *argv[]){
return 0;
}
|
0de32808a9d3c76b9326d333dc72d52fd20fbfd0 | 6f130584b49d8b5d7ee616f4e998c5c4051f6cf9 | /ex4_11_project.cpp | 8fdbb5c3a6a2d69f666432eec01142f798d9ab2f | [] | no_license | jjwm0128/Probability-Statistics-and-Random-Processes-Project | da59a5fddecef7a7ad08319ad151d26f483d249c | 76c7f476a8a11715e0456ca8db6c32dc15e48761 | refs/heads/main | 2023-06-05T10:58:13.389690 | 2021-06-21T09:47:48 | 2021-06-21T09:47:48 | 378,881,601 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 9,912 | cpp | ex4_11_project.cpp | #include<math.h>
#include<iostream>
#include<random>
#include"ex4_11_project.h"
#include <fstream>
#include <string>
#include <cmath>
using namespace std;
double* x_generator(double v, double p, double x[], int size) {
random_device rand_device;
mt19937 mt_Rng(rand_device());
uniform_real_distributi... |
196afe90a72c1e4a0bdb7646558daaf07f0bc8e0 | 117cb0d69ac8b69700ed34f54723432695fbc470 | /Anti-Cheat/Anti-CheatCallback.cpp | 44dc97553a72b81e2f7d4a362887765a3397265d | [] | no_license | ASkyeye/AntiCheat | 217e0d2d79556b840f11a607c41ae972ff21afd9 | 8a457f9073380ae1307eaa68805d1f62ce58c84b | refs/heads/master | 2023-02-03T13:29:21.408709 | 2020-12-21T02:51:49 | 2020-12-21T02:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,301 | cpp | Anti-CheatCallback.cpp | #include "Anti-CheatCallback.h"
#include "zwapi.h"
extern GLOBAL_DATA g_Global_Data;
OB_PREOP_CALLBACK_STATUS
AntiCheatOBPreOperationCallback(
_In_ PVOID RegistrationContext,
_Inout_ POB_PRE_OPERATION_INFORMATION OperationInformation
)
{
UNREFERENCED_PARAMETER(RegistrationContext);
NTSTATUS Status = ... |
852deea893c6f755e49fa515d9cf63a723527256 | be31580024b7fb89884cfc9f7e8b8c4f5af67cfa | /CTDL1/New folder/VC/crt/src/VirtualProcessor.cpp | a530a4d0325ffbdb6c01922c3e08b746fe3a32b5 | [] | no_license | Dat0309/CTDL-GT1 | eebb73a24bd4fecf0ddb8428805017e88e4ad9da | 8b5a7ed4f98e5d553bf3c284cd165ae2bd7c5dcc | refs/heads/main | 2023-06-09T23:04:49.994095 | 2021-06-23T03:34:47 | 2021-06-23T03:34:47 | 379,462,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,567 | cpp | VirtualProcessor.cpp | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// VirtualProcessor.cpp
//
// Source file containing the VirtualProcessor implementation.
//
// =-=-=-=-=-=-=-=-=... |
8d862223e6a46ccbd03b125c4b241dc75387287f | d628ddb7dc811f6ef3eab71ded6fd42ade8deb36 | /plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp | f307c6094142843e3e0f3acb2944f1f3b7f4b730 | [] | no_license | hxcan/k3b | 9e25e28310cc595679a4d1b39efda79bb1088add | e0d203af8ebac2380294e56324256f8fe90fee99 | refs/heads/master | 2023-08-18T07:26:41.027392 | 2021-10-04T22:19:54 | 2021-10-04T22:19:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,746 | cpp | k3bffmpegwrapper.cpp | /*
SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "k3bffmpegwrapper.h"
#include "k3bplugin_i18n.h"
#include <config-k3b.h>
extern "C" {
/*
Recent versions of FFmpeg uses C99 constant macros which are not present in C++ standard.
The ma... |
bb7e44e3a739bc5e5b36cb9a3bdf215b4801ccb9 | 1725c7ca22e2c588c0627b7e5088ddd86925ca2d | /lib/src/sai_redis_interfacequery.cpp | 0903e626500ae2bd1dfb3ea380442e791ddac672 | [
"Apache-2.0"
] | permissive | Kalimuthu-Velappan/sonic-sairedis | 120bcc0047fb93b4f50955f15bd93fcb9b597bfc | 2961bd3296365c89a27820207c73a94cf060a41a | refs/heads/master | 2020-12-29T14:57:44.554712 | 2020-01-28T18:18:09 | 2020-01-28T18:18:09 | 238,628,308 | 0 | 0 | NOASSERTION | 2020-02-06T07:07:37 | 2020-02-06T07:07:36 | null | UTF-8 | C++ | false | false | 15,763 | cpp | sai_redis_interfacequery.cpp | #include "sai_redis.h"
#include "sairedis.h"
#include "sairediscommon.h"
#include "meta/sai_serialize.h"
#include "meta/saiattributelist.h"
#include "swss/selectableevent.h"
#include <string.h>
using namespace sairedis;
sai_service_method_table_t g_services;
volatile bool g_run = false;
// this event is u... |
e19004cbc791092e9f981b3ee3dfbb92ddc513c9 | cb52c3adae798e50b814c3d1e529c4d96ff64aad | /src/el/graphics/image_loader.h | d83b3dd540550228248cbf3490492052ad6c4072 | [
"Zlib"
] | permissive | xenia-project/elemental-forms | 0719e5643c9a6d39bcc0f591492577c1604a7c53 | 3e7d961fea8cf8a857292d21106834c8566903f2 | refs/heads/master | 2021-01-12T22:30:13.707035 | 2015-11-28T16:19:05 | 2015-11-28T16:19:05 | 38,601,491 | 4 | 3 | null | 2015-11-28T16:19:05 | 2015-07-06T06:28:34 | C++ | ISO-8859-15 | C++ | false | false | 1,328 | h | image_loader.h | /**
******************************************************************************
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. ... |
1840a60e8d984efd71a8afea185e7e048a10a6db | af229bdb241009d422279abfb2910bf0a9846ad7 | /term6/MOIU/tasks/tasks/simplex_method.cpp | 2b30d1010685fe268fcce4be56feda1090d1a399 | [
"MIT"
] | permissive | japanese-goblinn/labs | b0c9f32e29ca3ace4114569353bfca8152b71482 | 47f5d59d28faf62c82535856e138b5cb98159fd0 | refs/heads/master | 2023-02-24T12:37:11.448033 | 2021-01-05T20:08:10 | 2021-01-05T20:08:10 | 284,546,510 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,270 | cpp | simplex_method.cpp | //
// simplex_method.cpp
// tasks
//
// Created by Kirill Gorbachyonok on 4/1/20.
// Copyright © 2020 Kirill Gorbachyonok. All rights reserved.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <iterator>
#include <cmath>
typedef std::vector<double> vector;
typedef std::vector<... |
ef81e89405714636e5c2079a027a07a509803a25 | eb593cf144c47d57bdbd1c4c77ee5b4c868869f5 | /Tree/include/container.h | 361e999dc06a05461d4526cd77395eb06de497d9 | [] | no_license | vcse59/CPPPractice | 3bc3536e0a57d31dfe007bb556e218a1e6701f35 | aa655919b3f8c9d304ea45c76f292a56d232acee | refs/heads/master | 2023-09-04T04:06:52.313537 | 2021-10-07T15:49:53 | 2021-10-07T15:49:53 | 33,647,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,975 | h | container.h | #ifndef __CONTAINER_H__
#define __CONTAINER_H__
#include <queue>
#include <iostream>
#include <stack>
#include "node.h"
namespace Tree
{
class Container
{
Tree::CNode *root;
public:
Container();
~Container();
void insert(Tree::CNode *node);
void printBFSTrav... |
bfeb3bd1ecc77565c490e6cb002174335004e67e | 52c98acab51455162deab677bfe5e211884989cf | /src/smartpeak/source/ui/ChromatogramPlotWidget.cpp | 984356148a8d374d6800d0bc383113f8d01c0c19 | [
"MIT"
] | permissive | ChristopherAbram/SmartPeak | 6d997d9e5e0b4982818983a7b95b1924309aaebc | 2851c4b43ad02e436a2dfe0f102ea0ce1e303484 | refs/heads/develop | 2023-03-18T15:32:48.045226 | 2021-03-15T19:48:25 | 2021-03-15T19:48:25 | 337,477,102 | 0 | 0 | MIT | 2021-03-15T19:51:14 | 2021-02-09T17:08:24 | C++ | UTF-8 | C++ | false | false | 2,021 | cpp | ChromatogramPlotWidget.cpp | #include <SmartPeak/ui/ChromatogramPlotWidget.h>
namespace SmartPeak
{
void ChromatogramPlotWidget::updateScatterPlotData()
{
// get the selected sample names
Eigen::Tensor<std::string, 1> selected_sample_names = session_handler_.getSelectSampleNamesPlot();
std::set<std::string> sample_names;
for (... |
9c3c2d18e1d96ae892af7fec98aabf6b35e559d6 | d42675fc0fa37759acd8bfa8707530102c80eb1c | /CvGameCoreDLL/CyRFCUnit.h | 6f063bcb4afd6db0ddad3b349e507a2e44681249 | [] | no_license | bptato/RFC-Greek-World | 26028f9188ca9e277aaf55f49ba26c5fc17004c8 | ac1d814ad46066b567f86a52a67279b83f63d665 | refs/heads/master | 2023-06-22T15:10:33.252772 | 2023-06-10T11:46:12 | 2023-06-10T11:46:41 | 255,673,818 | 4 | 6 | null | 2023-06-10T09:41:09 | 2020-04-14T17:12:02 | C++ | UTF-8 | C++ | false | false | 760 | h | CyRFCUnit.h | #pragma once
/*
Author: bluepotato
*/
class CvRFCUnit;
class CyRFCUnit {
public:
CyRFCUnit();
CyRFCUnit(CvRFCUnit* rfcUnit);
void setYear(int year);
void setX(int x);
void setY(int y);
void setUnitType(int unitType);
void setUnitAIType(int unitAIType);
void setFacingDirection(int facingDirection);
... |
80b7b87143e33b8749651e0a58f16e4b50f70ae0 | a2206795a05877f83ac561e482e7b41772b22da8 | /Source/PV/build/Wrapping/ClientServer/vtkCommonSystemCSInit.cxx | 34b74982ff71ee35a2338ae89eb90f99a4183353 | [] | no_license | supreethms1809/mpas-insitu | 5578d465602feb4d6b239a22912c33918c7bb1c3 | 701644bcdae771e6878736cb6f49ccd2eb38b36e | refs/heads/master | 2020-03-25T16:47:29.316814 | 2018-08-08T02:00:13 | 2018-08-08T02:00:13 | 143,947,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,916 | cxx | vtkCommonSystemCSInit.cxx | /* #undef PARAVIEW_USE_UNIFIED_BINDINGS */
/* #undef NO_PYTHON_BINDINGS_AVAILABLE */
#ifdef NO_PYTHON_BINDINGS_AVAILABLE
#undef PARAVIEW_USE_UNIFIED_BINDINGS
#endif
#ifdef PARAVIEW_USE_UNIFIED_BINDINGS
#include "vtkPython.h"
#include "vtkPythonInterpreter.h"
#endif
#include "vtkClientServerInterpreter.h"
#ifndef PARA... |
673fe3b41e1e35e99f97b9f20367fcb6f6c785a5 | 9e1fb87d6aa5084c850d3165ea749da67d0add59 | /Yukicoder/YUKICODER317.cpp | a8c5c7523b07eaba9d2916c88d03d8c7ccea7555 | [] | no_license | Yang-33/competitive-programming | 673d57bc95efb559f8e2905bad758cd576505761 | f85ef9f1a5763334e4d26f9206154e4f7c0a85ac | refs/heads/master | 2021-01-12T03:19:17.961860 | 2019-10-06T15:35:48 | 2019-10-06T15:35:48 | 78,174,818 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,057 | cpp | YUKICODER317.cpp | #include <bits/stdc++.h>
using namespace std;
using VS = vector<string>; using LL = long long;
using VI = vector<int>; using VVI = vector<VI>;
using PII = pair<int, int>; using PLL = pair<LL, LL>;
using VL = vector<LL>; using VVL = vector<VL>;
#define ALL(a) begin((a)),end((a))
#define RALL(a) (a).... |
5ce412dc7b00c5ae5606b1b2fd43e6c1260b4735 | 3ea54dbf2e0da955c62b43679ee35fe0446937d0 | /CharPolynomial/FileReader.cpp | c2e9f1b6444ea7c58378a4d12ddc448c3756de64 | [] | no_license | anoriar/MatrixEigenValues | 3c77d12c72f89941f16ebef7d377dc19dcfae5ec | 67ffd69e4622bc645dd908fa28fa0f855b6fba11 | refs/heads/master | 2021-01-21T21:14:18.818386 | 2017-05-24T19:47:37 | 2017-05-24T19:47:37 | 92,318,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | FileReader.cpp | #include "stdafx.h"
#include "Matrix.h"
FileReader::FileReader()
{
}
FileReader::~FileReader()
{
}
Matrix FileReader::read_file(const std::string& filename){
std::ifstream fin;
fin.open(filename);
if (!fin)
throw "File not found";
int n;
fin >> n;
Matrix matrix = Matrix(n);
double elem;
for (int i = ... |
76d165bda65d6f8fc2fd7f0974d2d8e24db1ac0b | 872770c5323aa17120f2f708a1f0be09e663c9a8 | /Elastos/LibCore/src/Elastos/Net/Extend/CDefaultSocketFactory.cpp | fe7406383a0214e7ef2ef45ca209f346847cdd5a | [] | no_license | xianjimli/Elastos | 76a12b58db23dbf32ecbcefdaf6179510362dd21 | f9f019d266a7e685544596b365cfbc05bda9cb70 | refs/heads/master | 2021-01-11T08:26:17.180908 | 2013-08-21T02:31:17 | 2013-08-21T02:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | CDefaultSocketFactory.cpp |
#include "CDefaultSocketFactory.h"
ECode CDefaultSocketFactory::CreateSocket(
/* [out] */ ISocket ** ppSocket)
{
// TODO: Add your code here
return E_NOT_IMPLEMENTED;
}
ECode CDefaultSocketFactory::CreateSocketEx(
/* [in] */ const String& host,
/* [in] */ Int32 port,
/* [out] */ ISocket ** ppS... |
22ab421db99493e93999b28433c3aa954786a998 | ffd3a84fbd258f563e89d0538a94109829518f2c | /자동차/산기대 특강/[DU006-1] 사물인터넷 스마트 화분 키트/rgb_test/rgb_test.ino | 0027e1904ee8495d4c1efe36243251080c7b3947 | [] | no_license | k1a11220/hitech_arduino | 620ab85630a057156ca227c9eec021f236def044 | b5815b8b424b8bd1c53168d0b2bc1ec52d563161 | refs/heads/master | 2020-06-21T00:20:04.067422 | 2019-07-26T05:09:17 | 2019-07-26T05:09:17 | 197,296,992 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | ino | rgb_test.ino | int redPin = D5 ;
int greenPin = D6 ;
int bluePin = D7 ;
void setup()
{
pinMode(redPin,OUTPUT);
pinMode(greenPin,OUTPUT);
pinMode(bluePin,OUTPUT);
}
void loop()
{
setColor(255, 0, 0); // red
delay(2000);
setColor(0, 255, 0); // green
delay(2000);
setColor(0, 0, 255); // blue
delay(2000);
setColor(25... |
62fc8ab59aba5c3a02c0351b2d2384fb3b0cb4d0 | 74dbd92eca73d2121161bed87d1bc26dea27545b | /Patterns/pattern_Memento/source/main.cpp | c21146d9d7a2854904a944702e9c99311e0795ce | [] | no_license | akhalupko/Patterns | 98e466338be01b4a8f9390c7f644e06ffecb16ef | ec8706678e21f10d93a495754544e643a7c7798b | refs/heads/master | 2016-09-05T13:47:11.794051 | 2013-06-05T00:35:15 | 2013-06-05T00:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
class Player
{
public:
Player()
: _health( 100 )
, _shield( 100 )
, _ammo( 50 )
{
}
void GotHit( unsigned damage )
{
if( (int)_health - (int)damage < 0 )
{
_health = 0;
if( (int)damage - (i... |
38674f6b62e53c09b5f9d10c165d245fbea8172f | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_new_hunk_2975.cpp | 4adfe6c9c608b721965de407e26541dcfd25f970 | [] | 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 | 1,982 | cpp | httpd_new_hunk_2975.cpp | member_of = 1;
break;
}
workers++;
}
if (member_of) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01167)
"%s: All workers are in error state for route (%s)",
(*balancer)->s->nam... |
491d63567eb3719bd1dd6ee2d519b204e95704b4 | c51f8266a107d0b8551c1b41ff59f0fd01d42ca1 | /x64/utils.inc | bc5a85442793143a863692fa8a096570a7b11e1b | [] | no_license | nbouteme/rps | 9ef81add87d5aa03295e680635c292fd8ebef0d9 | c9b7e5c2dc7ed72be9b23987a090d6c9ddc33a12 | refs/heads/master | 2020-04-10T20:31:39.083146 | 2018-04-19T20:26:46 | 2018-04-19T20:26:46 | 124,286,818 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 161 | inc | utils.inc | %ifndef __utils
%define __utils
extern putunbr
extern utoa
extern revstr
extern atoi
extern strcmp
extern memcpy
extern strlen
extern puts
extern memcmp
%endif |
1bcdae1708e410fa6d37bd59fd3434b77f4c101d | e401a9b31f83b963ad6ffc647cec39dff0c61916 | /Project2_Gillani/cSmartArray.hpp | 1dee517ac8f29303e923ee7ca803471b3069b2da | [] | no_license | EGillani/Build-A-Road | cabb632b3224814f1c1b39186f2bdd5f527b5db0 | e6afa49361551eb0d72c7f06445b102c5ad3ddbe | refs/heads/main | 2023-05-11T08:40:41.408754 | 2021-05-19T17:48:57 | 2021-05-19T17:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | hpp | cSmartArray.hpp |
#pragma once
template <class T> class cSmartArray
{
public:
using value_type = T; //type of data in SmartArray
using value_type_pointer = value_type*;
using value_type_reference = value_type&;
using value_type_const_reference = const value_type&;
using size_type = size_t;
private:
value_type* pArray_;
unsign... |
0dc6982263539e9a7fdc6000b662300b486fd071 | 5b0a93c8e0e2954c65a8062a0eea5d3fbe4dfb1f | /IPCaster/SpeakerWindowSample.h | 9bbd06eb6090f8a38e434a72de27d43927840757 | [] | no_license | xxwei/IPCaster | fa7f336f1558a23ffd85bfe7b60ccc18d1fc3eb9 | f70e1c94999d43542a085fc0cd3426f0bd133a10 | refs/heads/master | 2021-01-24T01:21:59.757951 | 2018-05-22T06:46:19 | 2018-05-22T06:46:19 | 122,804,798 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,052 | h | SpeakerWindowSample.h | #pragma once
#include "StateManger.h"
using namespace DuiLib;
class SpeakerWindowSample :public WindowImplBase, public MessageCallBack
{
public:
CControlUI* CreateControl(LPCTSTR pstrClassName);
virtual void InitWindow();
virtual LPCTSTR GetResourceID() const
{
return MAKEINTRESOURCE(IDR_ZIP_SKIN);
};
vir... |
0258291d1a278dfd77a96e3ed212a286fa45f3c3 | 1ff79195e466c8684a0a319e2c8eb37522457ad5 | /test/entity_test.cpp | be72c22187039381820e0c700249a9d51a536851 | [
"Apache-2.0"
] | permissive | eric5488/cppagent | ccc6245c2dc12b5abbc1232c21d34d359c48f047 | 2aa3dc54c959aeae0bb73db3dafde251dc05e0e3 | refs/heads/master | 2023-08-24T02:05:33.677410 | 2021-10-04T05:38:25 | 2021-10-04T05:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,847 | cpp | entity_test.cpp | // Ensure that gtest is the first header otherwise Windows raises an error
#include <gtest/gtest.h>
// Keep this comment to keep gtest.h above. (clang-format off/on is not working here!)
#include "entity.hpp"
#include <cstdio>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <strin... |
8da7585a931193cacc870adb3a3c8bd8a7b288cb | dcd07fb0f11821521b926cf65a1f8e42a3e87afc | /Animation/Anim_Clips/ClipList.cpp | 330645804010e70fd85b987120ff7dbb5073e1cf | [] | no_license | santoshp1995/Game-Engine | 9dfce27d9356582fc110460deebb207a7f071298 | f23e89555dcc8595d7c33840871a3f53dfaa426a | refs/heads/main | 2023-07-05T14:56:09.766539 | 2021-08-25T23:47:53 | 2021-08-25T23:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,313 | cpp | ClipList.cpp | //#include "ClipList.h"
//
//namespace Azul
//{
// ClipList::ClipList()
// {
// this->pActiveClip = nullptr;
// this->pHeadClip = nullptr;
// }
//
// ClipList::~ClipList()
// {
// this->Clear();
// }
//
// void ClipList::Add(Clip* _pClip)
// {
// this->privAddToFront(_pClip);
// }
//
// void Cli... |
a22e1b0cd1f5fcd144ed18b7cf802e690fc60608 | bc1cd1ac9b20bffc2016082502505f841e2793b9 | /service/game_service/money_service/CoinService.h | 079572b3a0f3dca40ae993d8517fafe5a47793f8 | [] | no_license | livcristi/Sudoku-Madness | e285f14c74faa8c2007b0c9751bcb9e33cc93cd6 | c7b05542a50f6e8c013695e8b5505c1c1e6a8034 | refs/heads/main | 2023-06-28T14:58:27.234818 | 2021-07-30T13:09:07 | 2021-07-30T13:09:07 | 385,933,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | h | CoinService.h | //
// Created by tereb on 23.07.2021.
//
#ifndef SUDOKU_MADNESS_COINSERVICE_H
#define SUDOKU_MADNESS_COINSERVICE_H
#include <string>
/// Class for managing the coins
class CoinService
{
private:
std::string mFileName;
int mCoins;
public:
explicit CoinService(std::string tFileName);
// Constructor fo... |
a86631ec6c28fede97b72b3e481eab5d93fb0275 | 76b5222a7d501c585e24e9947ebe9eb8b1cfbf2c | /step02/Engine.h | c0652a5e412412c2d99d8e2f938e582acc133233 | [] | no_license | HugoRep/GitC_Study | 21033886e81d8c57be7eeb490a81543534b9cf15 | 594310aec7aa31a332f14a5a03f4612104c606ff | refs/heads/master | 2022-01-31T08:49:18.055102 | 2019-07-02T08:59:05 | 2019-07-02T08:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | h | Engine.h | #pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
class Engine
{
public:
void init(class Player* _player, class Map* _map);
void Run();
void Draw();
void Tick(int keyCode);
void Setting(int argc, char **argv);
int Input();
bool bIsRunning = true;
class Map* map;
}... |
9a0cfb7811fbe1479f0c6bf5f6cf4ded2dfa8a2f | 4f758b1a0fdf98713219fbf8439d76adcf6f9613 | /code/test_app/test_app.cpp | 3f51c5bd2513f34b2f00746efeb5bd5702b99767 | [] | no_license | uhacz/BitBox_v2 | 265e4621dbeea6f1ce586ceb6424ec504aacdce5 | 00a2dd792abe0effdff2c016bf36de031846ff11 | refs/heads/master | 2021-06-13T20:30:11.475539 | 2019-09-05T21:36:37 | 2019-09-05T21:36:37 | 101,383,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,062 | cpp | test_app.cpp | #include "test_app.h"
#include <window\window.h>
#include <memory\memory.h>
#include <plugin/plugin_load.h>
#include <plugin/plugin_registry.h>
#include <filesystem/filesystem_plugin.h>
#include <window/window.h>
#include <window/window_interface.h>
#include <stdio.h>
#include <atomic>
#include <gfx/gfx.h>
#include... |
2c19126c6359a3596c013284d89d2f50baa21949 | 99eb33f2b84dc8a8e9293c9e15b0c54d2fe4217d | /src/client/RegularGameLogic.h | 92fc3c6226ade5ae10c5e1ef409134236a81066b | [] | no_license | RazShen/ReversiCPP | f7b4cc2c8c0d790dccdc702b763d1793c82fb699 | 8a9f26ba9d8f85ab2ff7adb824b1ce81d97a3637 | refs/heads/master | 2021-09-12T04:38:28.529949 | 2018-04-14T09:10:30 | 2018-04-14T09:10:30 | 112,847,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,792 | h | RegularGameLogic.h | /*
* Tomer Grady 205660863
* Raz Shenkman 311130777
*/
#ifndef EX3WITHTESTS_REGULARGAMELOGIC_H
#define EX3WITHTESTS_REGULARGAMELOGIC_H
#include "Pair.h"
#include "GameLogic.h"
#include "Board.h"
#include "ConsoleDisplay.h"
/**
* This class features a regular game logic.
*/
class RegularGameLogic : public Game... |
ebd2e03be6cd1d6e56aefffe4fef446628d70409 | eefe700cb035e1f52ea6ab858e93be174b43ec2c | /tests/observer_mock.h | dc16d13f5d5125ca0043776cc3e385af196937c1 | [] | no_license | mikhaylovv/signature | 2aa6067961cc324f610da2f0b45151293e067f60 | 0c41efca46cb73fc0f3c91b7e4c856d44312fcf5 | refs/heads/master | 2020-04-02T07:17:07.869213 | 2018-11-05T21:48:38 | 2018-11-05T21:48:38 | 154,189,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | observer_mock.h | #ifndef OBSERVER_MOCK_H
#define OBSERVER_MOCK_H
#include "iobserver.h"
template <class T>
class Observer : public IObserver<T>
{
public:
Observer( T val ) : last_val( val ) {}
virtual void notify( T obj ) override {
last_val = obj;
}
T last_val;
};
#endif
|
79b943d12d03704ad4189a1f5d06bc105f1aa60e | b6a79e45455be612e3845a78920960c01c7860dd | /WC_release/reg_window.h | ed8b4b438f6f6fbef54c970a15f2deb1810abd68 | [] | no_license | teamNotes/projectNotes | fbd27c9d3c7a6cf352e85c9044898a2e54847568 | d0320154b06b6813ccb4fb7f49962f011f7a24de | refs/heads/main | 2023-02-22T16:38:43.687062 | 2021-01-19T17:02:13 | 2021-01-19T17:02:13 | 322,835,816 | 0 | 2 | null | 2020-12-27T19:04:18 | 2020-12-19T11:50:45 | C++ | UTF-8 | C++ | false | false | 813 | h | reg_window.h | #ifndef REG_WINDOW_H
#define REG_WINDOW_H
#include <QDialog>
#include <QObject>
namespace Ui {
class reg_window;
}
class reg_window : public QDialog
{
Q_OBJECT
public:
explicit reg_window(QWidget *parent = nullptr);
~reg_window();
QString getName();
QString getPass();
bool... |
c46fc6e420711ef4ee28ba3ee45b502720b7d4df | 053309314b081dcb3fca08fc5ea15e6e8596141d | /day6/source/LYF_AK/but.cpp | 140c327b5fd68135b6cf4e39d5cdcc31d724e88c | [] | no_license | cppascalinux/jinanjixun | a6283e1bbdc4cac938131e8061a8b5290f6bb1dc | 555a95c7baf940c38236ac559f0a2c11a34edd0c | refs/heads/master | 2020-05-29T14:46:31.982813 | 2019-06-14T07:14:19 | 2019-06-14T07:14:19 | 189,192,981 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,338 | cpp | but.cpp | #include<bits/stdc++.h>
using namespace std;
#define debug(x) cerr<<#x<<" = "<<x
#define sp <<" "
#define el <<endl
#define fgx cerr<<" -------------------------- "<<endl
#define LL long long
inline int read(){
int nm=0; bool fh=true; char cw=getchar();
for(;!isdigit(cw);cw=getchar()) fh^=(cw=='-');
for(;isdigit(cw... |
e6596fcc81409b4c8469933045c8462978bd491a | b9244e2116998297e96df2af1d5514b6fc498bd3 | /source.cpp | d5d0b3fb777dc6b3ee47cbd54eb6a0d74dcadb06 | [] | no_license | coderkoala/cppCRUD | d18419ca2f2c79039238bb97bf34d78962dd6c51 | 96ce164cebbeb1aaca8033bb3f87b74e2e312882 | refs/heads/master | 2020-05-26T12:36:45.255596 | 2019-05-24T16:56:46 | 2019-05-24T16:56:46 | 188,234,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | cpp | source.cpp | #include<iostream>
#include<vector>
#include<sqlite3.h>
#include"sqlite_orm.h"
#include<string>
#define log(x) std::cout<<x<<endl;
class coords{
public:
coords( int a, int b, int c) : x(a),y(b),z(c)
{
}
friend std::ostream& operator<<(std::ostream& out, const coords ¶m);
private:
int x,y,z;
... |
b6e508a9d9e44efe6ccc8f00dedda91a2b1349cb | 8be7a7efbaa6a4034e435bc8221cc5fb54f8067c | /Bots/Augmented-Reality-on-Qt/AddedSource/QScrollEngine/QFrustum.cpp | 33ed8086acb56b52d109c379d449dd482aaa7813 | [] | no_license | RinatB2017/Qt_github | 9faaa54e3c8e7a5f84f742d49f4559dcdd5622dd | 5177baa735c0140d39d8b0e84fc6af3dcb581abd | refs/heads/master | 2023-08-08T08:36:17.664868 | 2023-07-28T07:39:35 | 2023-07-28T07:39:35 | 163,097,727 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,318 | cpp | QFrustum.cpp | #include "QScrollEngine/QFrustum.h"
#include <qmath.h>
namespace QScrollEngine {
QFrustum::QFrustum()
{
//entity = new QEntity(NULL, QGLPrimitiv::Quad);
}
void QFrustum::normalizePlane(int side)
{
// Вычисляем величину нормали плоскости (точку A B C)
// Помните, что (A, B, C) плоскости - то же самое, что... |
a1135d260a0f0eab460b251fd5b24301ac256b1d | da47e1b0f40ee1e76a0f4c6894d97ef75e2827db | /mytunes/mhia_serializer.h | 3d9476ca403eb3a216608d136f6d3bddbfe7a76d | [] | no_license | tmich/mytunes | d5a3d2a8dc6bed2d51ea8743e89752f2284cca43 | cfca896b9c1d77f2b3225b405aa860a0eb1fd0fe | refs/heads/master | 2021-01-10T02:39:41.987652 | 2016-03-22T15:39:51 | 2016-03-22T15:39:51 | 54,487,408 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | mhia_serializer.h | #pragma once
#include "serializer.h"
#include "album.h"
#include "mhod_serializer.h"
namespace mytunes
{
class MhiaSerializer : public Serializer
{
public:
MhiaSerializer(Album album);
~MhiaSerializer() {};
unsigned char * serialize() override;
inline size_t size() { return sz; }
private:
Album mAlbum;
... |
5395fd2ced099257d025f6cbb66032cb2e052874 | c89fa3d7f40b553278882041e0b646d17fee275a | /TheLab/GameObject.h | 6ab10e8f3957c3ac706cab6df9205f6199b40d1a | [] | no_license | AkselS/The-Lab | 70c253df26cbd9855fa3b044113205ea564675b3 | 68c99d7ebd50e1a72db4047cc6a7e063975688c4 | refs/heads/master | 2016-09-01T15:00:17.138104 | 2016-04-11T04:40:18 | 2016-04-11T04:40:18 | 55,855,265 | 0 | 0 | null | 2016-04-11T04:40:18 | 2016-04-09T16:36:19 | C++ | UTF-8 | C++ | false | false | 1,156 | h | GameObject.h | #pragma once
#include <d3dx10math.h>
#include <vector>
class GameObject
{
public:
GameObject();
GameObject(D3DXVECTOR3 _position, D3DXVECTOR3 _rotation, D3DXVECTOR3 _scale, bool _isActive, bool _updates, bool _visible);
GameObject(D3DXVECTOR3 _position, D3DXVECTOR3 _rotation, D3DXVECTOR3 _scale);
~GameObject();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.