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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e82eecd9774f3e466089fef72422c8d88fd2e6df | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /level_zero/core/test/unit_tests/mocks/mock_event.h | c39dc99f3109676e28527cbd87ded16f25ec0d82 | [
"MIT"
] | permissive | intel/compute-runtime | 17f1c3dd3e1120895c6217b1e6c311d88a09902e | 869e3ec9f83a79ca4ac43a18d21847183c63e037 | refs/heads/master | 2023-09-03T07:28:16.591743 | 2023-09-02T02:04:35 | 2023-09-02T02:24:33 | 105,299,354 | 1,027 | 262 | MIT | 2023-08-25T11:06:41 | 2017-09-29T17:26:43 | C++ | UTF-8 | C++ | false | false | 6,724 | h | mock_event.h | /*
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/test/common/mocks/mock_graphics_allocation.h"
#include "shared/test/common/test_macros/mock_method_macros.h"
#include "level_zero/core/source/event/event_imp.h"
#include "level_zero/core/test/unit_t... |
63c84e498019f5b371a59739ecd458ed86dffc80 | 3d5d1af7763ca875ed4a114bc8c0f7f8c05b5ae7 | /lab3/loader_model.cpp | c0dfa5d8dc8416347fb96095ca3fc04ec69f4332 | [] | no_license | alena-zayts/BMSTU_4sem_object_oriented_programming | 0652073c089d1c70bfd0cb3ce5066323c6c7e963 | a3f424c607af3d46459453925e086c59e47977df | refs/heads/main | 2023-05-28T01:41:19.973443 | 2021-06-05T14:02:22 | 2021-06-05T14:02:22 | 344,856,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cpp | loader_model.cpp | #include "loader_model.hpp"
#include "director_model.hpp"
#include <memory.h>
ModelLoader::ModelLoader(std::shared_ptr<BaseSourceLoader> ldr, std::shared_ptr<BaseModelBuilder> bld)
{
loader_ = ldr;
builder_ = bld;
}
std::shared_ptr<Model> ModelLoader::LoadModel(std::string model_name, std::string so... |
f7965f3c561fc53f4b937b9f9695b140a631082e | f270abd07487304b966c4b23647c04aeec8a58e1 | /project_chase/src/main.cpp | 1ea1c2ad0e1e87894824483eb7c7bb7f256c1677 | [] | no_license | patrick22414/drone-projects | 52241b808d84dee0e1a18a83b942c7d7cc2a45c5 | 58327b3e03e14c5216e71274821278019a9ca61a | refs/heads/master | 2020-12-28T11:22:17.439758 | 2020-03-13T19:53:31 | 2020-03-13T19:53:31 | 238,311,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,272 | cpp | main.cpp | #include "chase2d.h"
#include <cxxopts.hpp>
#include <filesystem>
namespace fs = std::filesystem;
std::string generate_video_filename(const std::string& prefix = "chase")
{
fs::path folder = fs::path(std::getenv("HOME")) / "Videos";
if (!fs::exists(folder))
folder = fs::path(std::getenv("HOME")) / "... |
427c1e4ba86d5959f1252e514bbb0a7d78cc247e | b4453d751e01483607a531c1c5d17ddf7f645a05 | /lagtest-app/src/lagtest.h | 624b7ba0dba1f4aa92e3d7035cdd484c38b21fe0 | [] | no_license | thinkerahead/lagtest | 3ae1d1f85cd0584fce631c6ed81ea42a7dfa8a1c | a6de5e4bd7ec2d3f9c6e9ea618a22a4779f60fff | refs/heads/master | 2020-12-11T05:26:18.129961 | 2013-06-21T10:23:56 | 2013-06-21T10:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,644 | h | lagtest.h | #ifndef LAGTEST_H
#define LAGTEST_H
#include <QObject>
#include <vector>
class QSettings;
class QNetworkReply;
class LatencyModel;
class SerialPortHandler;
class Window;
class QPlainTextEdit;
class TimeModel;
class LagTest : public QObject
{
Q_OBJECT
public:
explicit LagTest() : w(NULL), serial(NULL), lm(... |
00262168819b9bf6e0f30ab91977e821a5cb1d47 | ce7a67334e51fbfbecc46a04300de04695506d7e | /Sources/Internal/Render/SharedFBO.cpp | a9cf67704974550d89dbe4654a869e1daf80637d | [] | no_license | dava-bot/dava.framework | 2b2cd60d419fe3948a48da2ae43142ff24016ee2 | 295c279990b7302be8e7f91eb0899399c118b825 | refs/heads/development | 2020-12-24T19:18:09.877267 | 2015-03-13T15:07:03 | 2015-03-13T15:07:03 | 32,009,964 | 4 | 0 | null | 2015-03-11T09:48:13 | 2015-03-11T09:48:12 | null | UTF-8 | C++ | false | false | 5,587 | cpp | SharedFBO.cpp | /*==================================================================================
Copyright (c) 2008, binaryzebra
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistri... |
afa1c98bc271101ef3f6a870f635f62583ada26c | d4b13d021c0cbf1aa693c4c0f21f52e6605d894d | /Sortings/InsertionSort/InsertionSort.cpp | ff2415892c98969be87d558071539f45692f49e6 | [] | no_license | Kirill-Anatolevich/Algorithms-and-Data-Structures | b8b3eb39aa9259bc5fe2bedb322872513c304356 | 7325f5548716165c90a355dae807d138a1720f52 | refs/heads/master | 2023-04-09T08:09:23.452367 | 2021-04-19T13:43:24 | 2021-04-19T13:43:24 | 355,137,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | InsertionSort.cpp | #include <bits/stdc++.h>
#include "additional_function.hpp"
void InsertionSort(std::vector<int>& vec) {
int vectorSize = vec.size();
int key;
int j;
for (int i = 1; i < vectorSize; ++i) {
key = vec[i];
j = i - 1;
while (j >= 0 && key < vec[j]) {
vec[j + 1] = vec[j];
... |
3dadf55aa75eb6a52efaf90118c8102fd0495d77 | c61591ba4e5bcd46edea06c10feb5cd938120c15 | /Triangle_Connectivity_Preserved_Index.hpp | f7c46ad62a6d7dd1527b1372f74cdf5cc3d3fcb0 | [] | no_license | mj-love-life/dynamic | 0abf971f1866c2d0b814e181ea29de03feb3fe7c | 261f42195ea314d45939810dcb095a60221ec730 | refs/heads/master | 2020-09-11T15:19:45.779441 | 2020-01-02T04:03:46 | 2020-01-02T04:03:46 | 222,109,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 78,403 | hpp | Triangle_Connectivity_Preserved_Index.hpp | #ifndef TRIANGLE_CONNECTIVITY_PRESERVED_INDEX
#define TRIANGLE_CONNECTIVITY_PRESERVED_INDEX
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <stack>
#include <algorithm>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <set>
#include <deque>
#include <ctime>
#include <b... |
c19862e335c19fc85f050e950dae07754b30e3f0 | caa8c77af97bdd856a9580ae8907f7827171e2d5 | /LimpetMCU/Middlewares/Urchin/Lib/PolicyAuthorize.cpp | cf0b09ae78707b5a29c819bdb8948b3f019e25f0 | [
"MIT"
] | permissive | LordOfDorks/security-1 | 3fdffeb4b0a5bd099524ae54e449b9b0a5c7a887 | 4e3cc586d153fbcfb03107b33b7fbd3ce97555d1 | refs/heads/master | 2020-04-02T02:23:06.222769 | 2017-02-03T17:15:17 | 2017-02-03T17:15:17 | 57,168,261 | 3 | 1 | null | 2016-04-26T23:15:48 | 2016-04-26T23:15:48 | null | UTF-8 | C++ | false | false | 4,784 | cpp | PolicyAuthorize.cpp | /*
UrchinTSS
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
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 right... |
8a5ef62df30390ea72f3776bad331e64f8d8ea3c | 2d231eac6089806c2e3391fee83028ffe2ca7064 | /sample/src/game/GamePlay.h | 3b6dd300c50d912b2f6e1f77886ab92811da5f9c | [] | no_license | vcuong27/Training | 7fc84f690bf68c88be0715ef455d952a1a4ea470 | b141feaf351b63d1bb0f96faa538f74e6c1c0b1a | refs/heads/master | 2023-08-22T06:41:39.849949 | 2019-08-05T10:13:45 | 2019-08-05T10:13:45 | 195,216,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | h | GamePlay.h | #ifndef __GAME_PLAY__
#define __GAME_PLAY__
#include <list>
#include "core\\Singleton.h"
#include "GraphicHeaders.h"
class Bullet;
class Cupid;
class Person;
class GamePlay: public CSingleton<GamePlay>
{
public:
typedef std::vector <Person*> PersonVector;
typedef std::vector <Bullet*> BulletVector;
//enum directi... |
05e671ccd4a7fa52c4cd20c6e8f9fd3bfa212450 | 10efc832dfc2bdfe160e012d3832aec619945e4a | /Practicas/practica4/vaso_inverso.h | 8729b33f69d0e128a73fcd0f1f416862d5b119b1 | [] | no_license | Mxgang/UGR-Informatica-Grafica-20172018 | f3e12b42eeb7fb0ddc42cd08011f1c35d8b5d596 | ae06fd4c97d55f049bb0b0f279237f848cd15d11 | refs/heads/master | 2020-03-17T21:43:46.180221 | 2018-05-18T15:30:14 | 2018-05-18T15:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | h | vaso_inverso.h | #ifndef VASO_INVERSO_H
#define VASO_INVERSO_H
#include <O3DR.h>
class vaso_inverso : public O3DR
{
public:
vaso_inverso();
~vaso_inverso();
};
#endif // VASO_INVERSO_H
|
6473c28c64a469af217b9c14ed7f6e45b36a3890 | 8a8873b129313b24341e8fa88a49052e09c3fa51 | /inc/VideoPlayObserver.h | 05af583bfdfbd56b7e6d2b38dea3160df42d865c | [] | no_license | flaithbheartaigh/wapbrowser | ba09f7aa981d65df810dba2156a3f153df071dcf | b0d93ce8517916d23104be608548e93740bace4e | refs/heads/master | 2021-01-10T11:29:49.555342 | 2010-03-08T09:36:03 | 2010-03-08T09:36:03 | 50,261,329 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | h | VideoPlayObserver.h |
class MVideoPlayObserver
{
public:
virtual void InitControllerCompletedL(TInt aError)=0;
virtual void PlayCompletedL(TInt aError)=0;
virtual void PlaybackPositionChangedL(TInt64 aPlaybackPosInSeconds,TInt64 aTotalLengthInSeconds)=0;
}; |
2b2a01b9ebbb1ccbce4c6725ebcb9bb49bfac9e5 | 475e06bb267b91e1af075c208b348f451aac323d | /Ipc_Etc/GenCliSvr2_AsyncSock.h | 6a4f16c40b76f0a90f3ae6ff5511309caf668d6b | [] | no_license | shasvat23/first_vs | 149021c19e7f941f423c1a984d60a1652cd136a1 | 94e66532ab077508acb111f5af44be6480589ea7 | refs/heads/master | 2020-05-07T15:36:07.855983 | 2019-04-10T18:54:00 | 2019-04-10T18:54:00 | 180,644,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | h | GenCliSvr2_AsyncSock.h | //
// GenCliSvr2_AsyncSock.h
// See the .cpp file
//
#pragma once
#include "Winsock.h"
//#define MyAsyncSocket_PassthroughTo_CASyncSocket
#ifdef MyAsyncSocket_PassthroughTo_CASyncSocket
#include "AfxSock.h"
class CMyAsyncSocket : public CAsyncSocket
{
public:
CMyAsyncSocket(HWND parent);
virtual ~CMyAsyncSoc... |
4d6e92cfbc06ac8da67aa542bfe828ff581ee520 | 72a4df0a0b38e4fa595df560273ebc67872a00eb | /EventLog.cpp | e802791f78e3fe516281c6e1558689f400740589 | [
"MIT"
] | permissive | ancientlore/EasyDynamicDNS | 70316bafebc65c4104d6eabb61ada6907ca08bd9 | 96ac8857e09e2bfba9165ae5286e3b0b221b857e | refs/heads/master | 2016-09-06T19:24:45.638801 | 2012-01-25T20:18:22 | 2012-01-25T20:18:22 | 3,268,013 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,163 | cpp | EventLog.cpp | #include "StdAfx.h"
#include "eventlog.h"
#include "EasyDynamicDNSMsg.h"
#include <stdarg.h>
TCHAR EventLog::sourceName[256] = _T("EasyDynamicDNS");
EventLog::EventLog()
{
hEventSource = ::RegisterEventSource(NULL, sourceName);
}
EventLog::~EventLog()
{
if (hEventSource != NULL) {
::DeregisterEven... |
df911918d7d3f51cc968df4feb3ddac074643057 | 11f387ac20467983828fd509e1c27af626eeabc9 | /D06/P2/main.cpp | 6e68a60964acbbc300499d62d7804c177efa12f1 | [] | no_license | mchlebosz/2020AoC | 6e112f49e13742f4a625262d77aad1ddd55d8377 | 2501279f40fb16b139f8ff36539ca3cfc6bfaa2e | refs/heads/main | 2023-02-01T01:11:28.502171 | 2020-12-12T12:02:48 | 2020-12-12T12:02:48 | 314,372,673 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,262 | cpp | main.cpp | #include <math.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int sum_group(vector<string> group) {
int sum = 0;
vector<int> letters(26);
fill(letters.begin(), letters.end(), 0);
for (in... |
bedf3664c839ae31253a8fdd23a732e65a354639 | 380e9b88b463d718c70bee7a8458ad8535fe1a54 | /游戏组件/定制游戏/斗地主房卡版/客户端 D3D/GameClientEngine.h | d4c751859b09c6ed561490816847627f2cf39bd7 | [] | no_license | WesternCivilization/S-FOX-S | 2804ca67ba64cea37ace48076cad76128a65f7c5 | 422e5182b190736d07631f92e96bb606e31cc8c7 | refs/heads/master | 2021-09-04T00:57:32.251715 | 2018-01-13T17:33:06 | 2018-01-13T17:33:06 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,899 | h | GameClientEngine.h | #ifndef GAME_CLIENT_ENGINE_HEAD_FILE
#define GAME_CLIENT_ENGINE_HEAD_FILE
#pragma once
#include "Stdafx.h"
#include "GameLogic.h"
#include "HistoryRecord.h"
#include "GameClientView.h"
//////////////////////////////////////////////////////////////////////////////////
//游戏引擎
class CGameClientEngine : pu... |
44e349650cf166b53d38eade5a621a9d9cb8f145 | f153c67fd3f933033c12c9054b42499fed39b835 | /RealisticRayTracing/Chapter4/rng.h | 94eae9c69304cf8514391557f7cd9305d943c071 | [
"MIT"
] | permissive | ProjectAsura/rt_study | efaaf49659d801475c062e77a3c3967c7c9a57ed | 1b1c4251272bc32008e431d26de1973df5b44e5e | refs/heads/master | 2020-03-30T07:03:35.878200 | 2018-10-21T07:05:22 | 2018-10-21T07:05:37 | 150,912,093 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 497 | h | rng.h | // RNG.h
#pragma once
class RNG
{
public:
unsigned long long seed;
unsigned long long mult;
unsigned long long llong_max;
float float_max;
RNG(unsigned long long _seed = 7564231ULL)
: seed(_seed)
{
mult = 62089911ULL;
llong_max = 4294967295U... |
1779b2292ca3321b75e432e2a5697d21e0c620f9 | 535a902677de6202ff8b4d7469ccbd5e657eb515 | /source/Camera.cpp | 1c81b090718345b3876d458037155e0db0e1cdd8 | [] | no_license | SteveVerhoeven/SoftwareRasterizer | abf57760df9d7c2a8ee9f60bbf50cd06bb99deaa | 5990371c6a262aa5a9692762ce7c68dc5345c2d0 | refs/heads/main | 2023-08-23T13:16:56.133078 | 2021-10-07T20:50:55 | 2021-10-07T20:50:55 | 414,752,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,591 | cpp | Camera.cpp | #include "Camera.h"
// Elite includes
#include "EMath.h"
Camera::Camera(const Elite::FPoint3& position, const float angleDegrees)
: m_AngleRadians{ angleDegrees * (float)E_TO_RADIANS }
, m_FOV{}
, m_CurrentRotationAngle{}
, m_AspectRatio{}
, m_Screensize{}
, m_Position{ position }
, m_Forward{0, ... |
0fb93defeeaa34e8cf6dac094892a241687bac4a | f82d0b7ce293bc58ef9b5ca6e1ffcc8705936eae | /Classes/StoreData_win32.cpp | f5add600bd40608b4f5015c012e624b68412aa57 | [] | no_license | cruelogre/IronCatCplus | a31157871f5c90f2665a244a02f27ed6ae843765 | b8117b41e98113724545c16e900193a23e27a36e | refs/heads/master | 2020-12-30T23:49:03.579341 | 2017-03-29T16:06:52 | 2017-03-29T16:06:52 | 86,600,608 | 1 | 2 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 803 | cpp | StoreData_win32.cpp | #include "StoreData_win32.h"
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
#include "DBHelper.h"
#include "CGlobal.h"
StoreData* StoreData::getInstance()
{
static StoreData_win32 data;
return &data;
}
StoreData_win32::StoreData_win32() :StoreData()
{
}
void StoreData_win32::pay(const PayCodeConstant Sid,const char* ... |
0e1cfdfc55413fe78a016a4376c43d1c2fd0d569 | ae898da1728cca6dafdbefd71990f42f0b862730 | /Package/Adapter/ChatAdapter.h | 2cc5efcf5595bca5c52c5269f7be20c2b2e54b26 | [] | no_license | WanJunCode/libeventNetwork | 1578db1718e3011ee09c9589908c9f694c49120a | 8ad2655a90a59dad2d2979cde646529b95bb45ee | refs/heads/master | 2021-07-16T18:22:08.365278 | 2020-05-05T04:09:38 | 2020-05-05T04:09:38 | 150,078,094 | 0 | 0 | null | 2019-07-12T02:36:36 | 2018-09-24T09:10:29 | C++ | UTF-8 | C++ | false | false | 350 | h | ChatAdapter.h | #ifndef CHAT_ADAPTER
#define CHAT_ADAPTER
#include "Adapter.h"
// 线程安全是因为没有对变量进行修改
class ChatAdapter : public Adapter{
private:
std::map<std::string,std::shared_ptr<Process> > processMap;
public:
ChatAdapter();
~ChatAdapter();
Package *adapter(Package *package) override;
};
#endif // !CHAT_ADAPTER |
19a7e2873a33c1d01a2399e1a0d1f2d74f31050a | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /opencl/test/unit_test/ult_specific_config_ocl.cpp | df49c5d832890f7978046c3b6f439ac9b6cd16c8 | [
"MIT"
] | permissive | intel/compute-runtime | 17f1c3dd3e1120895c6217b1e6c311d88a09902e | 869e3ec9f83a79ca4ac43a18d21847183c63e037 | refs/heads/master | 2023-09-03T07:28:16.591743 | 2023-09-02T02:04:35 | 2023-09-02T02:24:33 | 105,299,354 | 1,027 | 262 | MIT | 2023-08-25T11:06:41 | 2017-09-29T17:26:43 | C++ | UTF-8 | C++ | false | false | 1,378 | cpp | ult_specific_config_ocl.cpp | /*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/helpers/test_files.h"
#include "shared/test/common/tests_configuration.h"
#include "opencl/source/platform/platform.h"
#include "opencl/test/unit_test/ult_config_listener.h"
#include "test_files_set... |
6bc6dbabd543740eaab712a671606bf242303e08 | 32193015d7c03e8a7fcefaf23073e00714a6aa9a | /Hackerrank/Stacks balanced brackets.cpp | 70ee8a9f3f077071f27e94e2f0acff021f9e197e | [] | no_license | nero-ventus/Competitive-Problems-Solutions | 0e88a4d246694800c80762df405f2811ef89570a | 0953ceace1588521f9cfa3d3c6d5d094ab54f1d9 | refs/heads/master | 2023-03-18T08:37:21.786971 | 2021-02-20T10:13:51 | 2021-02-20T10:13:51 | 284,199,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,125 | cpp | Stacks balanced brackets.cpp | #include <bits/stdc++.h>
#define lo ios_base::sync_with_stdio(false);cin.tie(NULL);
using namespace std;
int main() {
lo
int n; cin >>n;
while(n--){
char st[1002];
int top=-1;
string s;
cin >> s;
for(int i=0; i<s.size(); i++){
char cc=s[i];
... |
14027b3c873f36e884c108c2c81ab6854b0aa693 | 9264720c7c9a4de7c58a8b6261be5aa3b1a6b90d | /proj/VoxelCraft/client/gl/SkyRenderer.cpp | c5a714f32d2511c3b1b37cf6e553d28e87f87acc | [
"MIT"
] | permissive | antjowie/VoxelCraft | 7600ca17423a7a810655df565157a434577dc1e9 | c7e40dc3826f6fb2a8b4fa350b83214375bcbc00 | refs/heads/master | 2021-01-16T05:41:27.930955 | 2020-09-09T14:43:10 | 2020-09-09T14:43:10 | 242,995,158 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,282 | cpp | SkyRenderer.cpp | #include "vcpch.hpp"
#include "SkyRenderer.hpp"
#include "client/gl/Primitive.hpp"
#include "utils/Math.hpp"
#include "glm/gtx/gradient_paint.hpp"
void SkyRenderer::LoadStars()
{
// Fill VBO
constexpr float distance = 10.f;
// X is positive since sun rises from east
// We could make this generic if w... |
1d2e633955998ec4d0764ec190a78e30a4f5e987 | ad96ab41afed33c17e661d939b7f6da079432738 | /Chapter 10/practice_10_34.cpp | 1eaccab6ec6035604d337ea79703b9c025701b0d | [] | no_license | smtdbd/c-primer-5th | 628a238d384337c8636c7496e3e777995d9e88a3 | e9d1c85207060af33f774e3a45e11bb0bc2a7837 | refs/heads/master | 2021-01-19T11:08:59.188253 | 2017-04-16T03:20:36 | 2017-04-16T03:20:36 | 87,930,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | practice_10_34.cpp | /* 练习10.34
* 使用reverse_iterator逆序打印一个vector
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <functional>
#include <iterator>
using namespace std;
int main(int argc,char** argv)
{
vector<int> vec = { 1,2,3,4,5,6,7,8,9 };
auto iter = vec.crbegin();
while(iter<vec.crend())
{
cout << *iter <<... |
75c5948f480c352c90cf55ab1ed87462ed03033e | d20cf7de868dfb2c53578a70d0dda21306167d72 | /data/preprocessed/train/student_6/headers/Map.h | 31b27a1f524eb1d2f7b25815e4b4d1bf5f89187e | [] | no_license | bulacu-magda/Alemia | 905a84ca79157fb657eb424e337b0303fd3323bd | 0fd019c4517064d300399feb94dbcb0f467e8d48 | refs/heads/main | 2023-03-01T17:41:08.788500 | 2021-02-05T08:00:35 | 2021-02-05T08:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | Map.h | #pragma once
#include <stdlib.h>
#include <string>
#include <Windows.h>
#include <time.h>
#include <iostream>
#include "Caractere.h"
#include "Consola.h"
using namespace std;
class Map
{
private:
static Map* instanta;
Map() {};
public:
static Map* SetInstanta();
static void Afis();
static void Linia_1();
sta... |
3a327f8dc6b735dc91317f2e5153d8b827cfc502 | 5a48fdbea75182be55b6204c99d62b1ecaa59239 | /T2Terminal/Airport.cpp | 05152a4e7d6253502a77ef3adc76a354d728254c | [] | no_license | AMC-RTR-Shaders/t2Terminal | c5fe190e01fe5ae5a0f412687869c142270fdbe5 | e0fc818e570a8d09d822a3d7a4cf57d07dfe3510 | refs/heads/master | 2020-03-20T21:44:23.021329 | 2018-09-30T06:57:41 | 2018-09-30T06:57:41 | 137,757,353 | 1 | 8 | null | 2018-09-30T06:57:42 | 2018-06-18T13:48:55 | C++ | UTF-8 | C++ | false | false | 22,755 | cpp | Airport.cpp |
/*
* @author: Rushabh Parakh
* @mailto: rgparakh@gmail.com
* please dont remove @author or modify it.
* any changes or bug fixes are done please annotate the locations where bug fixed.
*/
#include "Airport.h"
Rushabh::Airport::Airport()
{
_angle = 0.0f;
_modelParser = new ModelParser("3DModels\\Scene_1\\TopView\\... |
e6771cd6a595798da4f0848a581a64919e34cbfe | 4c1d515719425db127ba5285b5be4f03af10d5a1 | /UVa-Judge/UVa_11364.cpp | fe72c33e0ac671cfec48c8c5d7200936c7166c7f | [] | no_license | matheusmtta/Competitive-Programming | 26e51741332aed223b9231da33749940f5a1b977 | e254b80090cc75bc213aad0a7957875842e90f1a | refs/heads/master | 2023-04-28T18:08:51.417470 | 2023-04-24T21:09:00 | 2023-04-24T21:09:00 | 223,605,672 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | UVa_11364.cpp | /*
* Parking
* Uva Online Judge 11364
* 11/10/2019
* matheusmtta (Matheus Motta)
*/
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
while(n--){
int x;
cin >> x; int vec[x];
for (int i = 0; i < x; i++) cin >> vec[i];
int maxi=-1, mini=100;
for (i... |
7f8eacb9b3d73d51ad78d01f70401bb4953b7fb3 | 59864cbd213b5da6f50d6255b0a021564b3d5bd4 | /challenges/Blubber/cb_3/src/vector.cc | b9797a2b9d37ac1c517ff1d8823eb945461ed3d5 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown",
"BSD-2-Clause"
] | permissive | trailofbits/cb-multios | 8af96a4fbc3b34644367faa135347f88e0e0d0a3 | 810d7b24b1f62f56ef49b148fe155b0d0629cad2 | refs/heads/master | 2023-09-05T03:56:20.229403 | 2022-12-27T15:47:54 | 2022-12-27T15:47:54 | 41,688,943 | 522 | 133 | MIT | 2023-06-29T02:47:13 | 2015-08-31T17:04:31 | C | UTF-8 | C++ | false | false | 2,256 | cc | vector.cc | /*
* Copyright (c) 2016 Kaprica Security, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... |
eadd092d6555151892862cb8c26df7a9716acecc | 8e8cdf669786b4d280272868ae3cfb3feac19c59 | /windows/src/ModalBackground/View/ModalBackgroundViewModule.h | f5ac1dd535ac1976603d6b8e45ef655f801af26a | [
"BSD-2-Clause"
] | permissive | wrld3d/wrld-example-app | e1ad99814d80a11ce13d6941543119c989d26704 | c7622c3ee359b2d06d881d234c780b07a2d0ee58 | refs/heads/master | 2022-11-07T23:31:54.091568 | 2022-11-02T15:18:12 | 2022-11-02T15:18:12 | 22,911,969 | 79 | 37 | BSD-2-Clause | 2022-11-02T15:18:14 | 2014-08-13T10:33:12 | C++ | UTF-8 | C++ | false | false | 1,109 | h | ModalBackgroundViewModule.h | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include "IModalBackgroundViewModule.h"
#include "WindowsNativeState.h"
#include "Types.h"
#include "Modality.h"
#include "ModalBackgroundViewIncludes.h"
#include "BidirectionalBus.h"
namespace ExampleApp
{
namespace ModalBackground
{
... |
a0121973f7e999b15b16bcb063cab02deb8d1d29 | 7b3964bdcb25808137460a98165b382420dea371 | /multy_core/src/api/mnemonic.cpp | 62687dd4e2a282102c0ed730ddec44cdc7e92de1 | [
"LicenseRef-scancode-other-permissive"
] | permissive | cdlgz/Multy-Core | fabc711ea1a094d1bca6e7f79d262b82b8133e84 | f19cd8676d7a2f551b2a0100889329d462790178 | refs/heads/master | 2022-03-07T21:26:12.952829 | 2019-11-07T02:46:20 | 2019-11-07T02:46:20 | 220,125,922 | 0 | 0 | NOASSERTION | 2019-11-07T01:36:05 | 2019-11-07T01:36:04 | null | UTF-8 | C++ | false | false | 4,035 | cpp | mnemonic.cpp | /* Copyright 2018 by Multy.io
* Licensed under Multy.io license.
*
* See LICENSE for details
*/
#include "multy_core/mnemonic.h"
#include "multy_core/common.h"
#include "multy_core/error.h"
#include "multy_core/src/exception.h"
#include "multy_core/src/utility.h"
#include "wally_bip39.h"
#include "wally_core.h"
... |
f21d69f32b95f6711a00b3cdbf25eb06f7e83142 | 5f6871bf5a21766b3789f4f20ecfc4e1e9da2263 | /第一章/线性代数/matrix.cpp | abb4604559dbe8575725d9129d2fd5daa55433de | [] | no_license | Tarpelite/BUAA_C_tutorial | fbb67ef654c938369ceffe00dbca280daa19f61b | 2e343d4bf2fd00f2f077d233231bb451cb429ef1 | refs/heads/master | 2020-04-09T13:24:55.090771 | 2019-03-27T12:37:07 | 2019-03-27T12:37:07 | 160,371,626 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,945 | cpp | matrix.cpp | #ifndef classmatrix
#define classmatrix
#include<algorithm>
#include<iostream>
#include<cstdio>
#include"num.cpp"
namespace linear_algebra
{
using std::abs;
using std::swap;
const int MAXN=10;
class matrix
{
private:
num a[MAXN][MAXN];
int m,n;
bool b;
public:
matrix(){}
matrix(int mm,int nn,b... |
4c20a6184812c4f0213c801235b9cf12bb5210e2 | e7c978f192bbd964e3bdc2382f4a62b3f50b76c7 | /Level_memo/main.cc | 3e08fc961a9afd63c1b5cce6d0ca7b97a1bba11c | [] | no_license | zheng-ji/ToyCollection | e169407217d2a1bda0b0114804a6a61aceb62ca6 | 7f2f171815f649afbee07383b4cd11992ffcf846 | refs/heads/master | 2023-03-15T12:15:07.193382 | 2022-06-11T12:49:16 | 2022-06-11T12:49:16 | 7,949,326 | 21 | 9 | null | 2023-03-04T20:54:15 | 2013-02-01T01:12:35 | Go | UTF-8 | C++ | false | false | 799 | cc | main.cc | #include "arena.h"
#include "memo.h"
#include <stdio.h>
#include <iostream>
using namespace std;
int main() {
leveldb::Arena arena;
cout << arena.MemoryUsage() << endl;
size_t bytes = 1030;
cout << "If the bytes >= 1M" << bytes << endl;
//printf("0x%08x\n",arena.Allocate(bytes));
printf("0x%08... |
4314d09fcb771eb67e4f9fb5bd8a37335df285b7 | 472e20731939b9f4ad721976db0f2ab167d07c26 | /TestSoftware/arduino/watchdog/watchdog_test2/watchdog_test2.ino | 031010ec919c04718a7f11ed3109c9a97c62408d | [] | no_license | XinghuaXHu/spresense-test-structure-change | 504ad68698581cf473de83d1ab9b466d592a7419 | 25e71da1716aa1e9f7b358baf5f23a3021529646 | refs/heads/master | 2021-01-15T05:35:00.742393 | 2020-03-02T08:17:35 | 2020-03-02T08:17:35 | 242,887,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | ino | watchdog_test2.ino | /*
* Test sketch for
* spresense-16384
*/
#include <Watchdog.h>
#define BAUDRATE (115200)
void setup() {
Serial.begin(BAUDRATE);
while (!Serial)
{
; /* wait for serial port to connect. Needed for native USB port only */
}
Serial.println("Start Watchdog test");
Wat... |
8bd79456d3879b2296993948d0953c01877a4f98 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5709773144064000_0/C++/Seter/B.cpp | ebf2f5f622a0493ff49cc0eea765e8b6b1fdf12e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | cpp | B.cpp | //Orz Sevenkplus
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<ctime>
#include<cctype>
#include<complex>
#include<algorithm>
#include<iostream>
#include<vector>
#include<queue>
#include<set>
#include<map>
#include<bitset>
#define un using namespace
un std;
#define pb push_back
#define pf... |
d697eca2db4c886bbe11e88b2e2e931dbf5bd3d4 | 4f56566cbf96a05329b5bd1d538dabfbeaf6067b | /src/WebApp/WebPageApp/WebPageApp.cpp | c4d4a27b0d7b650421b65afdb89d746b5ef728e2 | [] | no_license | Vexal/WebServerVexal | f0db329f442b3a5754ba7519ec89e1d1ee1b81e7 | a55d5af15bd2b1ae5fac336723c3d69a40a58d05 | refs/heads/master | 2021-01-01T06:38:28.702826 | 2017-03-19T04:21:42 | 2017-03-19T04:21:42 | 28,496,856 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,968 | cpp | WebPageApp.cpp | #include <iostream>
#include <fstream>
#include <algorithm>
#include "WebPageApp.h"
#include "../../Page/Folder.h"
#include "../../Page/Page.h"
#include "../../HttpServer/HttpServer.h"
#include "../../HttpServer/HttpRequest.h"
#include "../../Page/PageConstructor.h"
#include "../../DataAccess/MySql/DbCommentsDAO.h"
#in... |
54655074da70d8731ebcf260b6069080f9941a34 | eaeac3d34ed7cc3a4278b53a69b06e1d0a18e861 | /test/test_sphere.cpp | c7c9e10783ccbdbb2d86a776b84aa4aca5bc8bc1 | [
"MIT"
] | permissive | stfnwong/rt1w | 74de341e084bb86ec89c11050b188e3ae195133c | e81503e85e9714430eaca4f452025f168c16918b | refs/heads/master | 2020-07-26T21:56:38.428323 | 2020-01-17T15:29:11 | 2020-01-17T15:29:11 | 208,777,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | test_sphere.cpp | /*
* TEST_SPHERE
* Unit tests for Sphere .
*
* Stefan Wong 2019
*/
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
// unit(s) under test
#include "Ray.hpp"
#include "Material.hpp"
#include "Sphere.hpp"
TEST_CASE("test sphere ini... |
017c98cb6dfcfaee9582842c304f9bb64bdc8a2b | c42ecb06637c00207ee493a67dde69fa58ba0d7f | /projekt 2 sortowania/inc/sort_kop.hh | 8452766a76a6127a3e59df48cc5702ea31cfbbba | [] | no_license | ForSureNotKobe/Projekty | 7461eda460da4f230caec70d04acfc64ab653a4b | 05b242df9a2c7f6acaa29121c1da3a5b03e4bbbd | refs/heads/master | 2020-03-07T01:34:35.719941 | 2018-06-16T10:56:23 | 2018-06-16T10:56:23 | 127,186,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | hh | sort_kop.hh | #ifndef SORT_KOP_HH
#define SORT_KOP_HH
template <typename T>
void Max(T &tab, int rozm, int index)
{
int lewy = (index + 1) * 2 - 1;
int prawy = (index + 1) * 2;
int max = 0;
if (lewy<rozm && tab[lewy]>tab[index])
max = lewy;
else
max = index;
if (prawy<rozm && tab[prawy]>tab[max])
max = pr... |
13a2aabeb2b6a617cc7345c076018e4be4e89b15 | fd35fab1474345a5c5e586bba3dddbe93ee18b01 | /ExamRecap/Subiect4/Square.h | 0b27f2a1079ee729402a3046d69f553412ac2cc3 | [] | no_license | liviuq/Petrache_Andrei_Liviu_A3 | 0d15c3b70b74b485899589031e5b0ce17b63f8a7 | a7a922e5291e3ee20480076b967d4b5eaf844bed | refs/heads/master | 2023-05-06T04:35:53.690741 | 2021-05-29T06:01:07 | 2021-05-29T06:01:07 | 339,779,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | Square.h | #pragma once
#include "Shape.h"
class Square :
public Shape
{
private:
std::string color;
public:
std::string GetName() override final { return "Square"; }
std::string GetColor() { return color; }
Square(std::string _color) :
color(_color),
Shape("Square") {}
};
|
5fca3bb1c79aa5730aa091e97ca6dd02bd2caf1e | 5601c15e2bf22486883a008db96674ad7dba99e3 | /src/ML/Graphics/VertexArrayObject.cpp | e960956229b226f16affe5da668841cc0925fb83 | [
"MIT"
] | permissive | Gurman8r/ML | 3ce763468e9c4efa551f96e8e8d848a729514124 | 171e7865291f3fd9ea748d59f9d4bdb4e2a6eed1 | refs/heads/master | 2020-05-24T11:32:50.419151 | 2019-11-26T23:59:42 | 2019-11-26T23:59:42 | 187,238,589 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,242 | cpp | VertexArrayObject.cpp | #include <ML/Graphics/VertexArrayObject.hpp>
#include <ML/Graphics/OpenGL.hpp>
#include <ML/Core/Debug.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
VertexArrayObject::VertexArrayObject()
: Handle{ NULL }
{
}
VertexArrayObject::VertexArrayObject(VertexAr... |
7a07d35d5057a45a3a23275236cf8e0bf5342253 | a3f4c993f6b0d6b3c7f0f8b6fe583b7a3d845232 | /src/mecs_graph.h | 9b69c79d5cdf86fb626837fc1be8ca83759ccd27 | [
"MIT"
] | permissive | LIONant-depot/MECSV2 | 947e4e5449b1b92cf9d2bb1f9921baf10b0aa22b | 6599617b0789df18c344cfe70eb0d101f1b060fb | refs/heads/master | 2023-02-06T21:10:36.804911 | 2020-12-26T16:39:44 | 2020-12-26T16:39:44 | 288,360,427 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,495 | h | mecs_graph.h | namespace mecs::graph
{
namespace details
{
struct graph_system : mecs::system::instance
{
inline graph_system ( construct&& Construct ) noexcept;
inline void msgUpdate ( void ) noe... |
1b9cc979b0ccba6eb2b3e6bb4c88cf9d91863725 | 50762b06801d910af865e9da41272b8f2bac7599 | /LavaIslandEngine/LavaIslandEngine/IndexBuffer.h | 52b2c35008846b302be71d29845940deec076b84 | [] | no_license | MakkiViktor/LIE | 2a4bea8c318cefbe134bfc8fe8a6e1a2755eb7fe | b60e9dad2db77db1c4bd683da099d1e218acf5d9 | refs/heads/master | 2020-04-27T12:37:32.726078 | 2019-07-03T10:32:43 | 2019-07-03T10:32:43 | 174,337,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | h | IndexBuffer.h | #ifndef LIE_VK_INDEX_BUFFER
#define LIE_VK_INDEX_BUFFER
#pragma once
#include <glm/glm.hpp>
#include <vector>
#include "VertexIncludes.h"
#include "LogicalDevice.h"
#include "Buffer.h"
namespace VK{
class IndexBufferMemory : public BufferMemory{
private:
U32 GetMemoryPropertyFlags () const override final;
};
class... |
d5a9cffeb3cb43eaa019f0cd420fb9c46ee0578c | b16410b0f25dbe3f826279cfd9da2d266be5fc6a | /src/visualizer.h | 03f6287dda74004679313c50efc5b596680cd3d4 | [] | no_license | kubandom/k_nn_search_kd_trees | 8d55a26152ef6dfd919a17f152b274697542597a | f30e5d9297aa622227a7abb6a536a2cb36a4e97c | refs/heads/main | 2023-01-28T04:21:26.345926 | 2020-12-02T18:48:18 | 2020-12-02T18:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,887 | h | visualizer.h | #ifndef PROJECT_VISUALIZER_H
#define PROJECT_VISUALIZER_H
#include <vector>
#include <queue>
#include <vtkVersion.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderWindow.h>
#include <vtkSmartPointer.h>
#include <vtkChartXY.h>
#include <vtkTable.h>
#include <vtkPlot.h>
#include <vt... |
8b5e7595dd10423fb7e37d62445aad4342af541f | 59eb97c896057b4a763c336296afbeffb77d6900 | /Classes/Model/Level.cpp | dfbc5ed88f3d1bd0a9ccc8cc04fdd3c2e3a230c7 | [] | no_license | girish-rajiv-patil/IQuizGame | 76e0e08e49434151c6d7dee0cc9f05ff277b6150 | 4cfa468ba4c8cff840ff95d0aab7c6f4ecefe8c0 | refs/heads/master | 2020-03-27T00:54:05.937265 | 2018-08-22T06:32:41 | 2018-08-22T06:32:41 | 145,665,711 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,342 | cpp | Level.cpp | #include "Level.h"
const float Level::MIN_REQUIRED_ANSWER_PERCENTAGE = 0.4f;
const int Level::SECONDS_TO_ANSWER_PER_STATEMENT = 10;
const int Level::MIN_NUMBER_OF_STATEMENTS_PER_LEVEL = 2;
const char* Level::LEVEL_KEY = "level_key";
const char* Level::LEVEL_STATEMENT_KEY = "level_statement_key";
const char* Level::CO... |
8947dc99896d07c573e5cdaee6c83f9be2b32a5c | e541d2bc575eb68818c0b2eeeeeabe0de209574f | /src/YouMeCommon/rscode-1.3/FecWrapper.cpp | 6a61b9e9157c7d47296e90e8feaa2f8380efdd25 | [] | no_license | wangscript007/dev | 0d673981718993df0b971a5cd7a262cc217c6d9d | e47da659aadc220883b5e8067b25dc80108876b9 | refs/heads/master | 2022-08-05T00:53:31.844228 | 2020-05-24T05:20:44 | 2020-05-24T05:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,044 | cpp | FecWrapper.cpp | #include "FecWrapper.h"
#ifdef _WIN32
#include <WinSock2.h>
#include <WS2tcpip.h>
#else
#include <arpa/inet.h>
#endif
#define MAX_FEC_PAYLOAD 1400
#define MAX_FEC_HEAD 50 //fec 头最大值
#define FEC_MAGIC_NUMBER "FE!"
#include <YouMeCommon/Log.h>
#include <StringUtil.hpp>
namespace youmecommon
{
CFecWrapper... |
d7d7b1e632aee02f44a11fd8a4a65503168db987 | 2fa0c4bcf3d90baa338e38ddb705ce7aff925e29 | /four_square_nopre.cpp | f90b9bfc6a95927cb70e23579c2e5257e8f287e5 | [] | no_license | kennyfs/four_square | 0f9e2c0c2213c4dcf2dcc1274f854f5d1b74051f | 5a3e29d02a4cbbccbe3065fa4365dac23aa0daa8 | refs/heads/main | 2023-06-12T15:13:28.763843 | 2021-07-06T03:05:32 | 2021-07-06T03:05:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,562 | cpp | four_square_nopre.cpp | #include <iostream>
#include <tuple>
#include <vector>
using namespace std;
const int N=100000000;
int n;
long long my_abs(long long a){//絕對值
return (a>0)?a:-a;
}
struct four{
long long a,b,c,d;
four():a(0),b(0),c(0),d(0){}
four(tuple<int,int,int,int> t){//用tuple<int,int,int,int>初始化一個four
a=get<0>(t);
b=get<1>(... |
db0a12640758cacd2af68372521d82a992288ee6 | 87ed265b0aa7d3ac0fea44500c52f1e7d7d8254e | /main.cpp | 524aefde7961288fea755adda81e92b7a909a40a | [] | no_license | surajroland/cam-calib | e17bdd52c4612631cf9144040a6689fdf606e412 | 167ce66d66ecc73c45211fcb4186796f490d472f | refs/heads/master | 2021-01-10T03:10:00.308014 | 2016-03-23T04:01:58 | 2016-03-23T04:01:58 | 54,202,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | cpp | main.cpp | #include "gui/mainwindow.h"
#include <QApplication>
#include <QDebug>
#include <QObject>
#include "processors/improc.h"
Q_DECLARE_METATYPE(cv::Mat)
Q_DECLARE_METATYPE(FeatureDetectors::filter)
Q_DECLARE_METATYPE(std::vector<cv::Point2f>)
int main(int argc, char *argv[])
{
qRegisterMetaType<cv::Mat>("cv::Mat");
... |
91a5e1f9bb95e3f77ab5c1182c46e3dafb3b9466 | d607f9d36501a0d114e928191bdab246b5b0b380 | /剑指offer题解/10.1-斐波那契数列.cpp | ade883b843658320bbc90a2341e0dde95c4a0bd2 | [] | no_license | grlzjl/hello-world | 8e642aa84833e6927a391cc4e1941d82b4d1550f | 50c566af92f19e47f0d3574af4c154129a9f535a | refs/heads/master | 2020-07-23T06:12:06.090583 | 2019-09-10T05:13:59 | 2019-09-10T05:13:59 | 207,468,796 | 0 | 0 | null | 2019-09-10T05:05:30 | 2019-09-10T04:57:06 | null | UTF-8 | C++ | false | false | 593 | cpp | 10.1-斐波那契数列.cpp | /*
题目描述 大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项(从0开始,第0项为0)。
n<=39
*/
class Solution {
public:
int Fibonacci(int n) {
if(n==0)
return 0;
if(n==1)
return 1;
int a=0, b=1, c;
for(int i=2; i<=n; i++)
{
c=a+b;
a=b;
b=c;
}
return c;
}
};
//递归,通不过
class Solu... |
af879a85c118678a286d01d15f9167f2ecdc1f73 | 4b8c6ce034e9078fc6dce2ad5ec3789a4e8e8581 | /Snake/Game.cpp | e42c9f13c96e9e329d9bd301b50e808b00b434d5 | [] | no_license | Icaka/Snake | 3160b1db2b272cea5939e248fbb0d104acfb4402 | d64715503b93c9618a5b69231becc110db66d254 | refs/heads/main | 2023-04-17T00:53:03.580330 | 2021-05-10T15:53:09 | 2021-05-10T15:53:09 | 365,374,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,044 | cpp | Game.cpp | #include "Game.h"
#include <iostream>
const unsigned WINDOW_WIDTH = 640;
const unsigned WINDOW_HEIGHT = 480;
const unsigned RECT_SIZE = 25;
Game::Game() : window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "My snake")
{
directionX = 0;
directionY = 0;
for (int i = 0; i < MATRIX_SIZE; i++)
{
for (int t = 0; t < MA... |
e3ff90edb4205d53d4a899095b0f76b4a43d6b21 | 76ef81f982b4ecf1b948d6109b2c144e2ad02716 | /src/input-components/Potentiometer/Potentiometer.ino | b927ca2256b1fd2db45aa76b0a6ce7d1d6d58b8b | [
"MIT"
] | permissive | TechnoNatura-org/Arduino-Codes | 30ac14321e73078a2c66448f479deaef0307aab7 | 326c8a535af3e29476b8b36f3348f480c85d3a0a | refs/heads/main | 2023-04-05T14:56:55.359629 | 2021-04-13T01:55:29 | 2021-04-13T01:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | ino | Potentiometer.ino | int potentiometer = A0;
int led = A1;
void setup(){
pinMode(potentiometer, INPUT);
pinMode(led, OUTPUT);
}
void loop(){
int status = analogRead(potentiometer);
analogWrite(led, status);
} |
6ff6ba38279bdd27f441a69af6d7193264888afd | ea96f82c5b32819477df5a48e730f299d38ec554 | /framework.h | 58eccf7e8a0eae3912a007e87ea48640e876752a | [] | no_license | YMY1666527646/EngineRender-S8 | 7ade185056bfdbd64ea786dda9c4d2eaedd5b6d4 | 270856e529fef07b0163e97238d7484fc22b3f4c | refs/heads/main | 2023-08-13T22:44:56.515303 | 2021-09-23T09:27:57 | 2021-09-23T09:27:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,903 | h | framework.h | #pragma once
#include "stdafx.h"
#include "spoof_call.h"
#define E(str) skCrypt(str)
#define M_PI 3.14159265358979323846264338327950288419716939937510
namespace framework {
inline POINT cursor;
inline POINT cursor_corrected;
inline bool should_drag = false;
inline bool should_move = false;
... |
d447e08c5221b40ea8286d95bdcea5bf99f2b90e | f90f1564213549ca24c7217b2ce1e96973a2e9b1 | /Peripherals/STM32F030/include/LibreUCpp/Peripherals/TIM3.h | 42b27c4be077567064847e51b82089fcf8838346 | [
"MIT"
] | permissive | LibreUCpp/LibreUCpp | 9649fbbecae169342c83c1e6983386ba4edec17b | e28d7e4beeee6c32af2e04fc587ac77219e7a05a | refs/heads/master | 2020-07-29T21:49:54.077648 | 2019-11-03T19:48:04 | 2019-11-03T19:48:04 | 209,974,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,685 | h | TIM3.h | #pragma once
#include <stdint.h>
#include <unistd.h>
namespace LibreUCpp {
namespace Peripherals {
struct __attribute__((aligned(4), packed)) TIM3_T
{
static constexpr size_t INSTANCE_SIZE = 80;
static constexpr size_t PADDED_INSTANCE_SIZE = 80;
static constexpr intptr_t BASE_ADDRESS = 0x40000400;
s... |
6d38f093c1f0aeee394c8486cce4d23aa672bda9 | f5ad041e88412641162f46e8efe8a20c912a1ebf | /android/source/test/render/MediaSourceService.h | e45b8beca6b1267b4bdd28102c2b5778b4f9d9f8 | [] | no_license | BAT6188/webrtc_module_core | cef0726e7a113589a3c768ab7909159782d744f6 | e58d71f5a90609ac7bf5f5b91d12533e5d8a6c60 | refs/heads/master | 2023-05-24T06:49:20.606529 | 2016-05-28T03:39:17 | 2016-05-28T03:50:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | h | MediaSourceService.h | #ifndef _MEDIASOURCESERVICE_H_
#define _MEDIASOURCESERVICE_H_
#include <ipc.h>
#include <string>
class MediaSourceService
{
private:
std::string _name;
RTCIPCHandleInterface *_ipcservice;
public:
MediaSourceService(void);
int init(const char *service);
int start();
virtual ~MediaSourceService(void);
};
#endif
|
5b8ac8e5ce4768261e902bc8df19c166366ccf4d | d1e56a6d5f6b1526976f2108b2752ed76ca54e33 | /src/proto/send_rcv.h | 73e5354e1daff13f04cd8ab5a78617e2087f885d | [] | no_license | robmccoll/stinger-graphlab | a678d5ef988ee28015e17d5e7e5acbd98f009a8b | 6cc07541985842b95a4b1453fc57668be85b95cd | refs/heads/master | 2020-05-19T14:50:02.220905 | 2013-06-15T11:30:22 | 2013-06-15T11:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | h | send_rcv.h | #include "stinger-batch.pb.h"
using namespace gt::stinger;
bool send_message(int socket, gt::stinger::StingerBatch & batch);
bool recv_message(int socket, gt::stinger::StingerBatch & batch);
|
4f357938e3adac44543129ddb2f26146c6e91ab5 | e0369b5a5496b6b6fd72cac0bd34484de6fd370e | /MP1Node.cpp | c19ed81ebfb13c421f93c66c14b370e523108284 | [] | no_license | rajesh92/gossip-membership-protocol | 2a668d4e8e5011226812589edcd8eec973dc1663 | b838197520051ec1cf89adac9ac77eea2e05a4f2 | refs/heads/master | 2022-01-31T12:30:08.667840 | 2019-07-22T02:41:49 | 2019-07-22T02:41:49 | 198,131,481 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,369 | cpp | MP1Node.cpp | /**********************************
* FILE NAME: MP1Node.cpp
*
* DESCRIPTION: Membership protocol run by this Node.
* Definition of MP1Node class functions.
**********************************/
#include "MP1Node.h"
#define dbg 0
/*
* Note: You can change/add any functions in MP1Node.{h,cpp}
*/
... |
3dc50a8614aeb8c3b263270d2e817687d2f20a06 | 528395a0954da9a65ff3d7b4a2c6a26038b10bb0 | /base/cxx/fileparse/fileparse/ini/inifile.h | 6f4115dcce58aca14763e12373f97b03a5d09669 | [] | no_license | jaronho/sdk | 16ad88864b31e61d583a2fd782574e31da5e7759 | 179e8cebdbaa101d9a3782d9bc9148caf1fa14ad | refs/heads/master | 2023-08-10T23:30:50.485314 | 2023-08-04T01:44:46 | 2023-08-04T01:44:46 | 83,393,940 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,909 | h | inifile.h | #pragma once
#include <map>
#include <string>
#include <vector>
namespace ini
{
/**
* @brief INI项
*/
struct IniItem
{
std::string key; /* 键 */
std::string value; /* 值 */
std::string comment; /* 注释 */
std::map<std::string, std::string> extraMap; /* 额外参数(不显示和持久化, 只存在内存中) */
};
/**
... |
95975900f8654d092c565cf8b26612249bcb787b | 9be2a5e719fc7a1c03a137856d75a2e4eb7af48d | /AGC/027-a.cpp | da7892da53c7657f45d31aacb0f3fc9efc4e2453 | [] | no_license | wisteria2gp/ComPro | a3eac984a04a9649821ad494c9b09f5c83e68d2b | 8c63ba0e9f138de1b53408f675d0ca3a72c91aff | refs/heads/master | 2020-06-22T22:15:19.855453 | 2020-05-23T11:22:04 | 2020-05-23T11:22:04 | 198,404,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | 027-a.cpp |
#include<iostream>
#include<vector>
#include<algorithm>
using ll=long long;
using namespace std;
int main()
{
int n,x;
cin>>n>>x;
vector<int> A(n);
for(int i=0; i<n;++i)
{
scanf("%d",&A[i]);
}
sort(A.begin(),A.end());
int count=0;
if(x<A[0]) ;
else
{
... |
d4fa3b936da7a4d83d3d3c3291d81060d4fbecbb | fa3b89c5ead0d403f7db4be81f791a272f4fe62e | /rpc/thrift/rpc_server/src/rpc_server.h | 0c2bb4220b1e4b9a3a261ae422e4075b0388a3ae | [] | no_license | ruleless/programming | aa32e916a5b3792ead2a6d48ab924d3554cd085f | c381d1ef7b1c7c0aff17603484e19a027593429b | refs/heads/master | 2022-11-14T02:07:47.443657 | 2022-11-03T23:47:32 | 2022-11-03T23:47:32 | 86,163,253 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,057 | h | rpc_server.h | #include <thrift/stdcxx.h>
using namespace apache::thrift;
#ifndef NAMESPACE_BEG
# define NAMESPACE_BEG(ns) namespace ns {
#endif
#ifndef NAMESPACE_END
# define NAMESPACE_END }
#endif
NAMESPACE_BEG(rpc)
struct ProcessorFactory
{
virtual stdcxx::shared_ptr<TProcessor> newProcessor() = 0;
virtual const std::... |
71e474edb48cfbbe880e9e8b41f1aad6b8fdd2b8 | eb11b427a4a116bb93601e62b9a728c1760ee024 | /demo/syscallDemo.cpp | 353383469f8bba4d567fb40106b89d1732f9cb51 | [] | no_license | rothede/SyscallBaseline | 7f494c2d88d4d28eac4f04f3660c14ea7ccec826 | 235651fd5be3c83efb3dcc8e7b74d7077f7bb1f7 | refs/heads/master | 2020-06-14T17:53:45.769622 | 2018-11-30T23:34:46 | 2018-11-30T23:34:46 | 195,078,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | cpp | syscallDemo.cpp | /* System Call Demonstration File.
This file demonstrates an example system call.
In short, a message will be printed out to the console and then the pid of the executing
thread will be retrieved from a system call. The program will then exit.
*/
#include <iostream>
#include <unistd.h>
#include <sys/sysca... |
b896cab875b5666eecf86aed99d34be42f9d9a6b | a82daa9ab7996e981bf2e42fe5de01ab1e3c5922 | /2019Spring/lab2.cpp | 3a809c5eab6979ca4c411aab29fde998af14ef66 | [] | no_license | kk2w/comp2011 | 99d065f3338451241ae1cd8fd33a52cafa3b9b31 | c3a3c10322a3fed15bac93a25232d177e65b65f2 | refs/heads/master | 2023-03-15T12:05:00.938726 | 2019-04-23T23:39:44 | 2019-04-23T23:39:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,713 | cpp | lab2.cpp | #include <iostream>
void print_state(const int start[2], const int end[2], const int move[2], bool boat) {
// print current state (assume the starting side is the right side)
std::cout << "Left side --------------------------- Right side\n";
if (boat) { // moving from the starting side to the destination
... |
f81401915ecb2b5575d7900d75971e45c0cc095b | f003672225bbdea69daa32af2b5bfdc279c6056c | /include/appcommon/xml/color_xml_handler.h | e5cf96f70378c5ef8cde23737171f18720d69d9d | [
"Unlicense"
] | permissive | OverheadTransmissionLineSoftware/AppCommon | 90e17846d7770a970a0e18e4bb8ae578fa7068e5 | 213b9df221be6059292b8a230d3425a1fecb1b37 | refs/heads/master | 2021-01-19T01:21:43.912006 | 2019-03-24T22:12:45 | 2019-03-24T22:12:45 | 84,390,787 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,688 | h | color_xml_handler.h | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#ifndef APPCOMMON_XML_COLOR_XML_HANDLER_H_
#define APPCOMMON_XML_COLOR_XML_HANDLER_H_
#include <string>
#include "wx/xml/xml.h"
#include "appcommon/xml/xml_handler.h"
/// \par... |
be5c2862fcd5f286ca0a857a6b0c77c9611f89aa | d1616cf79228e15f2faac249704aea2b36b12c78 | /queue/queue_array.h | 63aadf2d12d486258d3dccfb1d578e687a92aa70 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Thalisson-Alves/practice-cpp | b122d731a4a5bde5a51836b5bbccb94c170a8f1d | 3fc0b3f68b09a4d022a5b028fd99de06947a31af | refs/heads/master | 2022-11-29T20:07:55.999061 | 2020-08-09T07:32:28 | 2020-08-09T07:32:28 | 280,198,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,158 | h | queue_array.h | #ifndef __QUEUE_ARRAY_H__
#define __QUEUE_ARRAY_H__
namespace th{
template<class T>
class Queue{
public:
Queue(int cap){
capacity_ = cap;
start_ = 0;
size_ = 0;
data_ = new T[cap];
}
~Queue(){
delete[] data_;
}
bool empty() const { return !size_; }
bool full() const { return size... |
8f69511ab7d69723daadabde9a00d8bf434eb1dd | 3f8b8efa0ea531eac185896006f851d62c81f995 | /src/control/include/Position.hpp | a642410bbecac0bd319d28c0b77d76b0d8a8f5b1 | [] | no_license | tttapa/BaremetalImproved | 325ea76b07f05ae67075ecd09ebf2f65ac704a4b | 2459c42fb6f41450b783f37d14635e37d70ef56a | refs/heads/master | 2020-05-03T16:17:18.898141 | 2019-05-18T17:33:33 | 2019-05-18T17:33:33 | 178,719,829 | 0 | 0 | null | 2019-05-17T01:54:10 | 2019-03-31T17:28:00 | C++ | UTF-8 | C++ | false | false | 13,938 | hpp | Position.hpp | #pragma once
/* Includes from src. */
#include <BaremetalCommunicationDef.hpp> ///< VisionPosition
#include <LoggerStructs.hpp>
#include <Quaternion.hpp>
#include <real_t.h>
/* Use "Position" for readability: actual type is Vec2f. */
using Position = Vec2f;
/* Use "HorizontalVelocity" for readability: actual type i... |
d7a64c6133ec82575e4f9cba595866417c4de711 | a42b9253d28b7b04d665d2dcdb01fb0a7347a857 | /Classes/Bird.hpp | e4a153854e417aa4f0c610d071c429d8e9d0562c | [] | no_license | zmhcx/BWLB | ccf50e12c54e0c0380c2e2c2598e47c91a9c5c11 | bc459cf94f949d77750febc7e62eeca9d0ee65e3 | refs/heads/master | 2020-03-16T07:23:24.768492 | 2018-05-10T08:39:21 | 2018-05-10T08:39:21 | 132,575,063 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 366 | hpp | Bird.hpp | //
// Bird.hpp
// luobo
//
// Created by student on 18/5/10.
//
//
#ifndef Bird_hpp
#define Bird_hpp
#include <stdio.h>
#include "cocos2d.h"
class Bird:public cocos2d::Sprite
{
public:
CREATE_FUNC(Bird);
bool init()override;
private:
cocos2d::Vector<cocos2d::Texture2D*> vec;
cocos2d::Spr... |
dab3ff078cf22371671cde7e9f5369ab286ce9d0 | a8020c6cb6e0b481687ea88b0f1e73d0a2b10a37 | /new_school.cpp | 4d34068fec07cb1d4400be58f53013d7c42c5edb | [] | no_license | sailendraw/MontesorryManagementSystem | 7fdef328d27c325a1d47d32679385ad2de8aaea7 | 210cc8b3868a6e448b538550dbc1ca4d211ccff8 | refs/heads/master | 2016-08-05T02:29:23.506955 | 2014-11-08T12:03:33 | 2014-11-08T12:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | new_school.cpp | #include "new_school.h"
#include "ui_new_school.h"
New_school::New_school(QWidget *parent) :
QWidget(parent),
ui(new Ui::New_school)
{
ui->setupUi(this);
}
New_school::~New_school()
{
delete ui;
}
|
0009cb475a425320ed579d314c3c5798afbe2b77 | 35ade5751d784ac6f41adce2a6e750596fda2f37 | /Day06/ex00/include.hpp | bd4282f0e06b5da4b835eb729bc07edb23e7dd8c | [] | no_license | ibrahim-bot/42-Piscine_CPP | 031ae040e568e829500da593bc8a61fa9fb7a88c | f7b93e44c1de6a3ed5910d9f93da5d677f4b6adc | refs/heads/main | 2023-08-28T07:38:53.826445 | 2021-11-02T12:01:44 | 2021-11-02T12:01:44 | 347,995,049 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | hpp | include.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* include.hpp :+: :+: :+: ... |
17a9da74ac6671920086d42691ec4b43b4d67bfa | 68e2df11645278a9997eeae804a9a075585b59f2 | /src/plugin/compute/opencl/api.cl/motor/kernel/compute/interlocked.inl | cd0a9bf4cfd18f0c9298a5c23969eba9096421d9 | [
"BSD-3-Clause"
] | permissive | motor-dev/Motor | df673aafcd4040a7ce7e6ef9301c38270982d544 | edd724bba99af63d938a0db165dec07403a40fb6 | refs/heads/master | 2023-07-22T10:19:26.028314 | 2023-07-07T14:01:20 | 2023-07-07T14:01:20 | 398,261,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,970 | inl | interlocked.inl | /* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#ifndef MOTOR_KERNEL_COMPUTE_INTERLOCKED_INL
#define MOTOR_KERNEL_COMPUTE_INTERLOCKED_INL
#include <motor/kernel/stdafx.h>
namespace knl {
template < unsigned size >
struct InterlockedType;
template <>
struct InterlockedType< 4 >
{
typedef i32 value_... |
eea4f472f2baf2f93457811886a73fd43ddcd990 | d03651686a702f3b55a60925d30ac1d818970bb0 | /src/AppModelPtr.h | 623c72b246a0b0aec6df21ac79180a65dcbb4ebb | [] | no_license | e-abbottbrenner/photo_pruner | 40dd2ba997e61b8f541c36b4f60a228ebed0bed1 | 0798e3900fe0dab204be5a3591f82fca000592c5 | refs/heads/master | 2021-01-19T15:27:42.828751 | 2015-01-04T23:53:42 | 2015-01-04T23:53:42 | 28,500,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | AppModelPtr.h | #ifndef APPMODELPTR
#define APPMODELPTR
#include <QSharedPointer>
class AppModel;
typedef QSharedPointer<AppModel> AppModelPtr;
#endif // APPMODELPTR
|
7bbde9b39d21185174a1ed74c3713d0b466105f2 | 8faee0b01b9afed32bb5b7ef1ab0dcbc46788b5b | /source/src/app/cn3d/bond.cpp | c0d147e04c7bbdec80a0457d49426cc1c16068fa | [] | no_license | jackgopack4/pico-blast | 5fe3fa1944b727465845e1ead1a3c563b43734fb | cde1bd03900d72d0246cb58a66b41e5dc17329dd | refs/heads/master | 2021-01-14T12:31:05.676311 | 2014-05-17T19:22:05 | 2014-05-17T19:22:05 | 16,808,473 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,099 | cpp | bond.cpp | /* $Id: bond.cpp 103491 2007-05-04 17:18:18Z kazimird $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under ... |
3257ff02ef0bd3d36299284872f8328477c08616 | 3c11fd836f2a9f9c2e51580b42dc37ee31f714fc | /example-chiptune-ios/src/TimerHandler.h | fea338033eb4a97320616be0cab747a3942e11fd | [
"MIT"
] | permissive | danbz/ofxRP2A03 | bb2f062f7c74d28b271639f434a55bfb90befb7b | 01a7157c9d4ada44e0b2fc1c502b194a40653174 | refs/heads/master | 2020-12-15T00:27:02.658892 | 2013-08-17T05:03:30 | 2013-08-17T05:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 900 | h | TimerHandler.h | //
// TimerHandler.h
//
//
#pragma once
#include "Poco/Stopwatch.h"
#include "Poco/Thread.h"
#include "Poco/Timestamp.h"
#include "Poco/Timer.h"
using pTimeDiff = Poco::Timestamp::TimeDiff;
class TimerHandler {
public:
static TimerHandler& getInstance();
void init(const Poco::AbstractTimerCallback& call... |
8c7a40dbce5d3ed44af43e24f135acaf850192d2 | 9eb73b06c652120f3e7e9a18eb0d60ddf645fe20 | /main.cpp | 0cf0e562a6dd03843acc147e04f3b593189bfa53 | [] | no_license | nchenevey/x19-StarMatrix | 89837693ba7f34ae8d10d86ff46164a8aba1fe59 | 6772bc49a4d614eade59c3b742e382ea47ad1622 | refs/heads/master | 2021-07-15T15:44:33.148758 | 2017-10-20T22:44:08 | 2017-10-20T22:44:08 | 107,476,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | main.cpp | // Author: Nicholas chenevey
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector <vector <char> > starMatrix;
int rowsInput;
int colsInput;
cout<<"Enter rows and columns of stars:"<<endl;
cin>>rowsInput;
cin>>colsInput;
if(rowsInput > 0 &... |
f592e1740614f478c8b8af14d71214ce1fe9401e | 791ae788afda4d801a9d85c4f2ebdaa91ba08f04 | /TonicEngine/LogAudio.cpp | 5b6ff62482239bf849791a211f78240acb7c96cb | [] | no_license | jarnepeire/TonicEngine | c4fe854ccf6e3a560665221ee87b8663a87c3ea6 | 51d0dbafdc02dadd69dd80b59c48d236e8627647 | refs/heads/main | 2023-06-26T02:02:28.020252 | 2021-08-01T22:59:42 | 2021-08-01T22:59:42 | 337,491,981 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | LogAudio.cpp | #include "TonicEnginePCH.h"
#include "LogAudio.h"
Tonic::LogAudio::LogAudio(AudioSystem* pAudioSystem)
: m_pAudioSystem(pAudioSystem)
{
}
Tonic::LogAudio::~LogAudio()
{
if (m_pAudioSystem)
delete m_pAudioSystem;
}
void Tonic::LogAudio::Play(unsigned int id, float volumePercentage)
{
std::cout << "Playing ID: "... |
d49af71a1995aa22db7e5516761fa71c82e88dda | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/algorithm/string/join.hpp | 8844b016f59de4cfbe5342fdbeadacd9314549e7 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 67 | hpp | join.hpp | #include "thirdparty/boost_1_58_0/boost/algorithm/string/join.hpp"
|
c1cccea6de780f25b0419d0cd63031e97a1f6ff6 | 80752cb5e45e5eb3e8b9ce61e920f18f066840d1 | /part3/partB/main.cpp | 5859542ba9c1222b65dc1ebd183957a8231d6644 | [] | no_license | KatFaye/lab3 | e3b2ae3ef950fea709c2f4e341b5bbefd084efce | e763a305ea6a58345c32fe2dc6c16b1fa87dba12 | refs/heads/master | 2021-01-10T16:45:16.719548 | 2016-02-08T15:56:31 | 2016-02-08T15:56:31 | 50,875,535 | 0 | 1 | null | 2016-02-07T15:34:29 | 2016-02-01T22:17:25 | C++ | UTF-8 | C++ | false | false | 1,015 | cpp | main.cpp | // driver program for Packages class and derived classes
// Kat Herring and Kate Barlock
#include <iostream>
#include <iomanip>
#include "TwoDayPackage.h"
#include "OvernightPackage.h"
using namespace std;
int main(){
//instantiate 3 Two Day Packages
TwoDayPackage TPack1("Kat's Two Day Package", 46556, 15, 2.50)... |
4a21fe7946b4a56a29118dee07be027c37c6f42c | 5412c459f26c415ecd88835adc3ff0ac6ac9ac27 | /Hmwk/Assignment5/LnkdLst/LnkdLst/LinkedListStack.h | 5c1ce6051407c8d7ca65c035d4c96f091dc2e2e2 | [] | no_license | jfb6486/BatemanJoel_CIS17c_48596 | fab8026a7ab7bc80cdb6d5891a0e9c085cb8b7a8 | aa9d96e3bec5bb1226efbc5c0afa817c9d73e600 | refs/heads/master | 2020-08-27T04:01:49.834575 | 2014-12-25T04:58:30 | 2014-12-25T04:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | LinkedListStack.h | //
// LinkedListStack.h
// LnkdLst
//
// Created by Joel Bateman on 10/30/14.
// Copyright (c) 2014 Alpha. All rights reserved.
//
#include "SinglyLinkedList.h"
#ifndef LnkdLst_LinkedListStack_h
#define LnkdLst_LinkedListStack_h
template <class T>
class LinkedListStack
{
public:
LinkedListStack(){ }
~Lin... |
f1872d988f5d537df8b1f346544de8b4f1ec897a | 00abce0660c98f711a4fced31d9f48131b0df91f | /AEFramework/include/TerminationCondition.h | 5f79770f6b9f32d890b7acecfbafcf7400ba274b | [] | no_license | Sebarl/gaia | 623e3e228f754c3c0cbb50d86630a22e77bff0fa | 5d9006305ea7b2447f4b5930700ba5393f022cb0 | refs/heads/master | 2021-01-20T01:36:16.051041 | 2019-04-08T04:36:44 | 2019-04-08T04:36:44 | 89,306,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | TerminationCondition.h | #ifndef TERMINATION_CONDITION_H
#define TERMINATION_CONDITION_H
#include "PopulationData.h"
template <class T>
class TerminationCondition
{
/**
Indicates if a termination criterion has been reached over the population state.
*/
public:
TerminationCondition(){}
virtual ~Termination... |
eec4b78c742a0b3b5b517bf397fb59fe214d600b | c5d9ea7478936d13a0dc612bf090b288b5a5ac22 | /PEInfo/CharacterDlg.h | 9e579342d755610df8cc167cb45648bd1d0bae5b | [] | no_license | jasonhoe/PEInfo | afc424ca053cd6d640e880f1ef7608025a107b5b | b2f8bc4ccc677f722009d5551a71ae512d93af24 | refs/heads/master | 2020-04-09T16:25:29.506742 | 2017-05-17T12:32:58 | 2017-05-17T12:32:58 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 692 | h | CharacterDlg.h | #pragma once
#ifdef _WIN32_WCE
#error "Windows CE 不支持 CDialog。"
#endif
// CCharacterDlg 对话框
#include "PeFileInfo.h"
class CCharacterDlg : public CDialog
{
DECLARE_DYNCREATE(CCharacterDlg)
public:
CCharacterDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CCharacterDlg();
// 重写
HRESULT OnButtonOK(IHTMLElement *p... |
6a2009bae1b960132170e7821ebd11a3cbcbcfbc | b2dbb20cd4929732807b8de83406759146f112a8 | /ext/si_taxi/si_taxi/empirical_sampler.h | 578933291264f76324dca917c3571e2401aa6dcd | [] | no_license | jdleesmiller/si_taxi | 2509c9ffe39b4f4f43fc329e721d310aeffd9e78 | 890f57c94636a5cb33a39e14a50db6e9bfc268bf | refs/heads/master | 2016-09-06T06:27:37.353725 | 2012-02-23T18:01:53 | 2012-02-23T18:01:53 | 2,156,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,255 | h | empirical_sampler.h | #ifndef SI_TAXI_EMPIRICAL_SAMPLER_H_
#define SI_TAXI_EMPIRICAL_SAMPLER_H_
#include "si_taxi.h"
namespace si_taxi {
/**
* Efficient sampling from an empirical distribution.
*
* The distribution can be specified as a probability mass function (pmf) or
* a cumulative distribution function (cdf). Sampling is always ... |
17fdcabb47ddc6981ddd6098d8ed8bd1cef8ac3e | d360afdf33a358b0f8408aad16f6479e0f3cb43e | /Software/DDRDeviceInterface/DDRDeviceInterface/CommLib/FrameSliceGenerator.cpp | f516770d3175a507cd4e310898ee7f84c5ba1bb5 | [] | no_license | meijiadev/RetailMachineClient | 60bfad556fee4aa87d38a29e335d2ba29854a3f2 | d2099e81d7081bc03d62ad7dccf32b52dcecd10c | refs/heads/master | 2023-03-25T05:09:45.181292 | 2019-06-28T11:37:25 | 2019-06-28T11:37:25 | 327,586,757 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,404 | cpp | FrameSliceGenerator.cpp | #include "stdafx.h"
#include "FrameSliceGenerator.h"
#include <string>
#include "CommLibInterface.h"
namespace DDRCommLib {
void FrameSliceGeneratorImpl::setParam(int maxSliceLength, int frameNumberingCap) {
if (maxSliceLength < 100) {
maxSliceLength = 100;
}
if (frameNumberingCap < 1024) {
frameNumberingCap... |
8a1f95277d4e2bae9d43f89918b1590b77ce8ed0 | c9de5d4c5168d5cb863744010dbcebc073b6ea8f | /TinyGame/Shoot2D/ObjectManger.h | 925bae6cbc2331ecdbfca5121bd77105308e59c2 | [] | no_license | ADFLin/GameProject | b869e246a4ec7beb37c278c4d23a0004543a688a | 56b622371271beb95becbf381534f3332ef870d5 | refs/heads/master | 2023-08-22T06:29:44.852204 | 2023-08-15T15:56:17 | 2023-08-15T15:56:17 | 47,371,197 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | h | ObjectManger.h | #ifndef ObjectManger_H
#define ObjectManger_H
#include "CommonFwd.h"
#include <list>
#include <vector>
#include "Common.h"
#include "Object.h"
#include "ObjModel.h"
#include "GridManger.h"
#include "CollisionSystem.h"
namespace Shoot2D
{
typedef GridManager<Object*,2,3> ObjectGrid;
class ObjectManger : public Ob... |
3fc2abc7cd3afc79a7489a4ff3893590eba65161 | d20aa2b786aea75d04a8da3be696d1767c254f07 | /myMarkdown/FileOperate.cpp | 69ab29ba25dbb80bbea055cd3f3329da89b162be | [] | no_license | slivermeteor/MyMarkdown | 09b2e3f318fe96b23ee9adc73c3292c38e2454e1 | 899a3516a5e24af147d8d56ca849b6eab82481e1 | refs/heads/master | 2021-01-21T06:21:29.668356 | 2017-03-08T10:34:54 | 2017-03-08T10:34:54 | 83,221,582 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,195 | cpp | FileOperate.cpp | #include "FileOperate.h"
namespace Markdown
{
const size_t CFileOperate::DefaultSpacesPerTab = 4;
CFileOperate::CFileOperate(size_t SpacesPerTab):
m_TokenContainer(new Token::CContainer())
{
m_IsProcessing = false;
}
CFileOperate::~CFileOperate()
{
}
bool CFileOperate::ReadFile(std::istream& ReadStrea... |
c51779e357f1d8edd1f9fb87f2f3d4e65c2560fd | 8f66baa12452caaa60c1998e9bbfd8d9eb840aa8 | /大整数加法.cpp | 141eb55f9b9b37d2ba6a431c954f1a96dc67a41f | [] | no_license | jzzzzh/scu_cLanguageWork | dbf4277fca838b020c6349a35acffea70514a1e4 | a2b3a8440868a2a11a595efac8f82b0c3336c46c | refs/heads/master | 2023-08-01T09:38:54.896924 | 2021-09-17T14:09:42 | 2021-09-17T14:09:42 | 324,191,137 | 5 | 2 | null | 2020-12-25T14:12:09 | 2020-12-24T16:00:50 | null | UTF-8 | C++ | false | false | 1,083 | cpp | 大整数加法.cpp | #include<iostream>
#include<cstring>
using namespace std;
int main(void)
{
int n;
cin >> n;
for(int i = 0; i < n; i++)
{
string a,b;
cin>>a;
cin>>b;
int a_length = a.length();
int b_length = b.length();
if(a_length < b_length)//a_length>b_length
{
string temp = a;
a = b;
b = temp;
int tem... |
6696b7a3dde9bb8e11a6417e13b15480916e6594 | bd6bf3ea8bedf493a6aa471d191e457b237a08a3 | /hardware/moduloComando/testeSistemaEscravo/testeSistemaEscravo.ino | c0a941b9a92a9bebc93b6e7e5a42f81b2a0559df | [] | no_license | mcnl/TCC | fa643ffeed9763f2bc78f2979e717446dc2432de | 49f69d58108457ca688a177b021dc53bffe8e4ef | refs/heads/master | 2023-04-11T08:14:40.850429 | 2021-04-14T12:09:40 | 2021-04-14T12:09:40 | 213,373,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | ino | testeSistemaEscravo.ino | #include "SoftwareSerial.h" // Inclui a biblioteca SoftwareSerial
// Cria uma serial em software
SoftwareSerial blackBoardMaster(15,4); // (RX, TX)
void setup() {
blackBoardMaster.begin(9600);
Serial.begin(9600);
}
void loop() {
if (blackBoardMaster.available() > 0){
char received = blackBoardMaster.... |
aaf7048a04cf636e879c730696c7727d929cb382 | eb6cb73d84ac40746053ea6822a776f7ef0d04cf | /minerva/minerva/optimizer/implementation/SimulatedAnnealingSolver.cpp | 9b6b2866291637011dc2ce84e80821b2e0147444 | [] | no_license | lukeandshuo/video-classifier | d60c0062d558208a790f28127de6f77b65dca763 | 8ae279b82231612193ee1794191181bfda4b5fab | refs/heads/master | 2021-01-23T22:05:06.022764 | 2014-11-10T02:41:04 | 2014-11-10T02:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,342 | cpp | SimulatedAnnealingSolver.cpp | /* \file SimulatedAnnealingSolver.cpp
\date Sunday August 11, 2013
\author Gregory Diamos <solusstultus@gmail.com>
\brief The source file for the SimulatedAnnealingSolver class.
*/
// Minvera Includes
#include <minerva/optimizer/interface/SimulatedAnnealingSolver.h>
#include <minerva/optimizer/interface/CostFu... |
ffaef40f7a3aceac9defa2c6e67d35663f69e07a | bc2b26144d12bb58a03e608b49793acf404eb8e6 | /w4d1/GenericProgrammingSummerSchool/src/DataStructures/src/Complex.cpp | 614cec809b3275c1a329bb07e7bc5d3218ae47de | [] | no_license | radumotrescu/SiemensSummer2018 | 3f3bd8f1d34f0af4b4ab6769cbcf15913200cb9c | 29c338a0c2b5210a022951b5e76677625083e848 | refs/heads/master | 2020-03-24T20:47:20.800950 | 2018-08-07T04:55:42 | 2018-08-07T04:55:42 | 142,996,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | Complex.cpp | #include <Complex.h>
Complex::Complex(const double re, const double im)
: real(re), imaginary(im) { }
std::ostream& operator<<(std::ostream& os, const Complex& complex) {
os << complex.real << " + " << complex.imaginary << "i";
return os;
}
Complex Complex::operator+(const Complex& other) const {
auto x = *th... |
981a7c55b02a22c08c6c2382495cd4981fd17feb | 3e217f99e63099c04625d0e3d5ffa491c68ac2de | /ConsoleApplication3/ConsoleApplication3/ConsoleApplication3.cpp | d8655e5b52380d43cbd8ef86e35105d90f94e0f7 | [] | no_license | AlexeyShah/CPlusPlusExample | 99a19be9bdb817d48c8f1b55bae11cd52965500c | fb6dd567894e1d1e176f1a64ac672dbd038b7830 | refs/heads/master | 2020-05-29T11:10:06.749884 | 2019-05-28T21:51:46 | 2019-05-28T21:51:46 | 189,107,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | cpp | ConsoleApplication3.cpp | #include "pch.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int count = 0;
for (int i = 100; i < 1000; i++) {
string str = to_string(i);
if (str[0] != str[1] && str[1] != str[2] && str[0] != str[2])
count++;
}
cout << "Count numberic:" << count << endl;
system("pause");
ret... |
bf9a3a971d3e91ff4996a06988a814198878596a | 8c50dd75b5b4920132c4414bc8cfad31516f4c72 | /HOJ_1011_HOJ_1011.cpp | 3deb77c563011a93bc7bcb91da2d5389ee7adba4 | [] | no_license | panzg123/acm | 6c257fdc184c113f291e74834b21ab19231dbc79 | e5ff4fc7040169d2c92476721462591299f640d6 | refs/heads/master | 2021-05-29T10:50:46.900324 | 2015-09-12T12:55:18 | 2015-09-12T12:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,754 | cpp | HOJ_1011_HOJ_1011.cpp | #include<stdio.h>
#include<string.h>
const int MAX=105;
int dp[MAX][MAX];
int path[MAX][MAX];
int len[MAX];
int c[MAX],v[MAX],lest[MAX];
int q[MAX*MAX];
int vis[MAX];
int max(int a,int b){return a>b?a:b;}
void DP(int n,int m)
{
if(m==0)return;
int f=-1,r=-1,cur,pre,i,j;
int tmp[MAX];
memset(vis,0,sizeof(vi... |
cacdb998e6d9509c2560f661f3e4df1708768a27 | 06c3f01f9458b1a31e1eff3e54dda8f1fae63174 | /include/allvm/ModuleFlags.h | 7352b89bff856a3aa52e7234d9d5cd469678e097 | [
"NCSA"
] | permissive | allvm/allvm-tools | 2bf5ed0ca4e1af881657211ab043b80c49131584 | 5f0504c1f3b248dbf8cece83a4c544680fbb865c | refs/heads/master | 2022-04-29T02:19:38.230881 | 2022-03-23T22:22:08 | 2022-03-23T22:22:08 | 121,451,574 | 53 | 6 | NOASSERTION | 2022-03-23T22:22:09 | 2018-02-14T00:03:10 | C | UTF-8 | C++ | false | false | 1,577 | h | ModuleFlags.h | #ifndef ALLVM_MODULEFLAGS_H
#define ALLVM_MODULEFLAGS_H
#include <llvm/ADT/StringRef.h>
#include <llvm/IR/Metadata.h>
#include <llvm/IR/Module.h>
#include <vector>
namespace allvm {
static const llvm::StringRef MF_ALLVM_SOURCE = "ALLVM Source";
static const llvm::StringRef MF_WLLVM_SOURCE = "WLLVM Source";
inline ... |
b20f8bb52b6f4db5c5b404b170bfb60265153596 | 70441dcb7a8917a5574dd74c5afdeeaed3672a7a | /AtCoder Regular Contest 006/A - 宝くじ/main.cpp | 0a3debc13405c1ca23eea019920ed4ce03033ebf | [] | no_license | tmyksj/atcoder | f12ecf6255b668792d83621369194195f06c10f6 | 419165e85d8a9a0614e5544232da371d8a2f2f85 | refs/heads/master | 2023-03-05T12:14:14.945257 | 2023-02-26T10:10:20 | 2023-02-26T10:10:20 | 195,034,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> e(6);
for (int i = 0; i < 6; i++) {
cin >> e[i];
}
int b;
cin >> b;
vector<int> l(6);
for (int i = 0; i < 6; i++) {
cin >> l[i];
}
int c_e = 0, c_b = 0;
for (int i = 0; i < 6;... |
60be89e3bc882d1d68b4f1fdec6965a6c771fd7a | c0faeb5047d6eb8046e9e6999ec58642e8752568 | /tl/Datatypes.h | 89aa0dcf5935f53aba534cb9169bf81c9652e04f | [] | no_license | Topa592/TopaLib | fb9e79cb265e44e585bc9b67cd7dbf1f138f21a9 | 0a14c899da41bb24289287988c4df6571bc33d7a | refs/heads/Latest_Stable | 2023-07-08T08:57:23.529548 | 2021-08-15T23:57:33 | 2021-08-15T23:57:33 | 340,659,249 | 0 | 0 | null | 2021-02-20T23:25:22 | 2021-02-20T13:19:09 | C++ | UTF-8 | C++ | false | false | 118 | h | Datatypes.h | #pragma once
namespace tl {
namespace datatypes {
namespace enums {}
struct Point {
int x;
int y;
};
}
} |
d440d3be82855baa1dabb29eed209719c8c4c622 | f4a38b930e5c2802b86a18b0b80dfde78e0f8184 | /Janken/src/ui/countdown_ui_controller.cpp | dde2053bfdea5c59ed925b147ef8e09fbc697de9 | [] | no_license | Gumiii/janken | dffe258671ec00b649a9540377c6e3168378b02d | be426d0f74502634af9fac50096ffb2c680e7bf3 | refs/heads/master | 2020-05-29T21:14:04.307486 | 2019-05-28T10:46:49 | 2019-05-28T10:46:49 | 189,374,932 | 0 | 0 | null | 2019-05-30T08:23:10 | 2019-05-30T08:23:10 | null | UTF-8 | C++ | false | false | 516 | cpp | countdown_ui_controller.cpp | #include "countdown_ui_controller.h"
#include <Siv3D.hpp>
CountdownUIController::CountdownUIController() : count_font_(200, Typeface::Bold)
{
}
void CountdownUIController::draw(const int count) const
{
count_font_(int2chr32(count)).draw(Arg::center = Vec2(Window::Width() / 2, Window::Height() / 2));
}
... |
64ce7800d58ced0209a4220f73f70f76dde38dc5 | bffd8e212f6c336784d8efbcf657f1538f985e25 | /nullptr/features/misc/events.cpp | 62631db652d41ca791d2d8a9e39e4ffba0888c85 | [] | no_license | Galenika/nullptr | 7f97a0d9fc2dadec3f243f70ec53860c327f16c0 | 0c2009e42a7a64b58ea4094097f79be40bd11b71 | refs/heads/master | 2022-06-08T21:28:03.067574 | 2020-05-10T13:20:28 | 2020-05-10T13:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,005 | cpp | events.cpp | #include "events.h"
#include "../changers/skin/skins.h"
#include "../visuals/visuals.h"
#include "../../options/globals.h"
#include <Windows.h>
#pragma comment(lib, "Winmm.lib")
void c_events::init()
{
g_game_events->add_listener(this, "player_hurt", false);
g_game_events->add_listener(this, "player_death", false)... |
aac98bc5452ba7a06a561c6690b632c3f43fd5ea | 5aa916bf1650c7c28818cf569cf717b3db32ead6 | /TornadoEngine/Source/Developer/ShareDev/Scene/Operations/Builder/Builder_Model_Logic.cpp | 68976164edf29f0cb1f9d3a065b4317c6ed4ddc6 | [] | no_license | lxq2537664558/MMO-Framework | 125c21d2cec6e29ec42bb72f05691ddaef9de448 | b0bac7e040ec632543d3d3d4ee23be1bf6224dd9 | refs/heads/master | 2021-08-19T04:22:28.528036 | 2017-11-24T18:48:46 | 2017-11-24T18:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,972 | cpp | Builder_Model_Logic.cpp | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information License.h.
*/
#define _USE_MATH_DEFINES
#include <cmath>
#include <boost/foreach.hpp>
#include "Builder_Model_Logic.h"
#include "Pattern_Model.h"
#include "ModuleLogi... |
af9ef1ff09b1ca7905e98e446d16c416092ef64f | ea903530f35316238fa4d7a976d3e18f2f2b4a4c | /Source/ProGainPanel.h | 3bdfc313d686564dc0458f9076dc96e7202e6692 | [] | no_license | cminiutti/Pro-Delay-Chorus | 7d1d4b5b477810e9a40896f70d2502b70635889a | 55f46296b65e25898983c4e057c1239b6885b3d5 | refs/heads/master | 2020-05-15T10:10:17.731018 | 2019-05-05T22:27:18 | 2019-05-05T22:27:18 | 182,188,810 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 664 | h | ProGainPanel.h | /*
==============================================================================
ProGainPanel.h
Created: 4 Apr 2019 3:15:36pm
Author: minut
==============================================================================
*/
#pragma once
#include "ProPanelBase.h"
#include "ProParameterKn... |
753799aaf623c78f268867f67811cde7f3e2149b | d229099bd43e3155d40cba7796d66a51755d070c | /src/decorator/TrollDecorator.cpp | cdfa89791cbf76f32521aefe230c403a69bb41d3 | [] | no_license | sndrummer/design-patterns-with-tests-cpp | 2b338e8b5e35a08422f6386b5e863f14c580101f | ba854b07d8034c223ef5655be90efd6602a3c6b8 | refs/heads/master | 2020-09-22T06:25:17.100980 | 2019-12-01T18:10:40 | 2019-12-01T18:10:40 | 225,087,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | cpp | TrollDecorator.cpp | #include "pch.h"
#include "TrollDecorator.h"
TrollDecorator::TrollDecorator(ITroll* troll) : mpTroll(troll)
{
}
// Delegate the attack method
void TrollDecorator::attack()
{
mpTroll->attack();
}
// Delegate the getName method
std::string TrollDecorator::getName() const
{
return mpTroll->getName();
}
|
5ff8f44ff4fa88f1c0f7c32c4cc70377362eff4f | 2bf8600a9550cefa75e8ecd3dd524c239521ef62 | /main_2.cpp | 8750f2c2e3bbaee47d903ed67c828216f3abe18f | [] | no_license | hyein15/LifeGame | 6a294d47097187a5e1abd0d242a1149585fcbbab | cb9179a4564628149ebff92601ac2456a1bd3626 | refs/heads/master | 2020-04-07T13:02:26.312421 | 2018-11-20T13:18:20 | 2018-11-20T13:18:20 | 158,390,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,543 | cpp | main_2.cpp | #include <clocale>
#include <ncurses.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
void print_gen(char gen_array[][101]);
bool keygen_array(char ch);
void move_left();
void move_right();
void move_down();
void move_up();
void cell_change();
void save( std::ifstream& fin);
void open();... |
faa129568575d1a057d6f834665f62e5aaadef64 | 69a25d0bd19e19493dc72c199b09e2aa5259a98b | /SingleLinklist/Linklist.cpp | 08cd523935bbc52e42b32485e27e22ad6db15659 | [] | no_license | Paiguuuu/DataStructure | 83654683b03d34f8a3f33f4f458ed8ff9c665a33 | 5c4c37df8d3cb6768f1b443b490f9280c372e924 | refs/heads/master | 2022-12-14T14:16:30.811179 | 2020-09-10T11:08:06 | 2020-09-10T11:08:06 | 291,997,824 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,933 | cpp | Linklist.cpp | #pragma once
#include "Linklist.h"
//isNull: judge whether the list is empty or not
bool Linklist::isNull() {
if (!head && length> 0) return false;
else return true;
}//isNull
//release the list
Linklist::Linklist(int n) {
using namespace std;
cout << "Input the length of list:";
cin >> n;
head = new Node ; ... |
88d7d5e49ad64af0c261eb19bfbdc496a7c30f76 | 1fb357bb753988011e0f20c4ca8ec6227516b84b | /EW/src/sigmaHadron.cpp | 895b8a098c08b9a1fd01760ca4dfce3e60ee51ad | [
"DOC"
] | permissive | silvest/HEPfit | 4240dcb05938596558394e97131872269cfa470e | cbda386f893ed9d8d2d3e6b35c0e81ec056b65d2 | refs/heads/master | 2023-08-05T08:22:20.891324 | 2023-05-19T09:12:45 | 2023-05-19T09:12:45 | 5,481,938 | 18 | 11 | null | 2022-05-15T19:53:40 | 2012-08-20T14:03:58 | C++ | UTF-8 | C++ | false | false | 251 | cpp | sigmaHadron.cpp | /*
* Copyright (C) 2012 HEPfit Collaboration
*
*
* For the licensing terms see doc/COPYING.
*/
#include "sigmaHadron.h"
#include "StandardModel.h"
double sigmaHadron::computeThValue()
{
return ( SM.sigma0_had() * SM.GeVminus2_to_nb);
}
|
2ed6c9d0aafec92bc3335879e558b33abf2e30f8 | 24a1ee3068300630f5dc55247c555a6e2c733215 | /June Challenge/June 13.cpp | 4ec2988326057639504f0fd6b829e4852a07f775 | [] | no_license | harsh9500/LeetCode | bc3803c70e4daba1e1ed8a2a959cb7670ca77f00 | 84b609d2a44827e7cd399b00dcfdb308a6583d97 | refs/heads/master | 2023-06-19T08:46:19.936019 | 2021-07-09T15:50:51 | 2021-07-09T15:50:51 | 260,237,829 | 2 | 1 | null | 2020-06-01T15:39:58 | 2020-04-30T14:43:04 | C++ | UTF-8 | C++ | false | false | 937 | cpp | June 13.cpp | class Solution {
public:
vector<int> largestDivisibleSubset(vector<int>& nums) {
vector<int> answer;
int n=nums.size();
if(n==0)
return answer;
sort(nums.begin(),nums.end());
vector<int> div(n,1);
vector<int> prev(n,-1);
int maxDivisorIndex=0;
... |
5395a4afb7c717392d0ece53d16650d6cac9d85c | a177e275dd67485fe128841e709004636f7ee3d5 | /tests/mocks_man/mock_logger.cpp | c4a3933b1e9bbf8511b3c2ad66ab4e8690af345f | [
"MIT"
] | permissive | susundberg/esp8266-waterpump | e8b1283386b97774794299bb38c8bdabfcb039f1 | f78a364c4dfec4ebd8fd2a744a190b5e57941479 | refs/heads/master | 2021-07-07T12:00:20.239467 | 2020-06-24T08:34:10 | 2020-06-24T08:34:10 | 91,694,014 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,441 | cpp | mock_logger.cpp | /**
*/
#include "mock_logger.h"
Logger LOG;
bool _TEST_log_verbose = false;
Logger::Status _TEST_log_status = Logger::Status::RUNNING;
Logger::Status _TEST_get_log_status( Logger* log )
{
return _TEST_log_status;
}
void _TEST_log(Logger* log, Logger::Level level, const __FlashStringHelper* format, va_list* ar... |
4cc2c3e89b3b0ec61841503ae89e6c5f89f82fa6 | 3e98ab001a4adaf8445f82733a1a110b3a17a6d7 | /DMOJ/Other/acoinproblem.cpp | 3547ef2a0aea121b15e5828f4ce8001603eaa25e | [] | no_license | mchlp/competitive-programming | 17c439a8db54d53ebbe74c4068cd12c0dd61c7c7 | 2177b182d4caf7a8e5c3a0f5c23098db4c6af44b | refs/heads/master | 2020-03-22T13:46:58.810100 | 2019-08-30T18:17:32 | 2019-08-30T18:17:32 | 140,131,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | cpp | acoinproblem.cpp | #include <bits/stdc++.h>
using namespace std;
int N, V;
int coins[2001];
vector<pair<int, int>> queries[2001];
int dp[10001];
int answers[100001];
int main() {
scanf("%d%d", &N, &V);
for (int i = 0; i < N; i++) {
int d;
scanf("%d", &d);
coins[i + 1] = d;
}
for (int i = 0; i < ... |
bf342bd9137798db0c0dbb14cd74da4199e4e619 | bc9426aad7ac41817b9b3637ff68e11de99759e7 | /src/numeric/util.h | faf292944f2912ee39987ac923dc4ca016b884e5 | [] | no_license | ab1153/polycube | 779af55dcbe4ac92311805c02a4c7b7a81c3b86b | b8a8b752360bc91f6eb9121e7d70df9c0b7b4bf1 | refs/heads/master | 2021-01-03T08:17:29.034876 | 2014-12-09T16:10:57 | 2014-12-09T16:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,306 | h | util.h | #ifndef NUMERIC_UTIL_H
#define NUMERIC_UTIL_H
#include <cmath>
#include <deque>
#include <iostream>
#include <limits>
#include <boost/dynamic_bitset.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/math/constants/constants.hpp>
#include <hjlib/sparse/sparse.h>
#include <jtflib/math/math.h>
#include "../c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.