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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a964a794248a13638607f70b695c6b441e9699f8 | a87c89d0a40965156c659adbc679b64909875cfa | /u24h_serial.cpp | c059e2bfaf83244fbd15934a33df1a6ae21d6844 | [] | no_license | Roberto-Hoo/SerialLeArq2 | d159ad128a599bb122edbfa8360dfe69e7d6ef1b | 9a6db202b10be595beb9e460f9baa1e7b3d48bfe | refs/heads/master | 2023-04-24T16:38:34.185164 | 2021-05-03T16:39:11 | 2021-05-03T16:39:11 | 363,995,473 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 63,592 | cpp | u24h_serial.cpp | #include <math.h>
#include <iostream>
#include <boost/math/special_functions/beta.hpp>
#include <iomanip>
#include <time.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <fstream>
#include <string>
#pragma warning(disable : 4996)
using namespace std;
// variáveis globais
ifstream ArqLeDadosIniciais, ArqLeData... |
219e9821c26acd478594ffd497dbd026a3dff17a | bae4e79d035c09e7e9be483140120ab2c821f15a | /Engine/ShaderManager.h | 5ee9e64156fdeac185ea8e9b959b4695ddfd2655 | [] | no_license | OPsteffOP/Steff-Engine | fcc6d8d2ad3550ba2b701eec6f79906e5bc9bfa7 | ac805b437b522da9a3aca119bdf9e9225019fc76 | refs/heads/main | 2022-12-28T12:12:32.279990 | 2020-10-15T16:08:25 | 2020-10-15T16:08:25 | 304,379,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | h | ShaderManager.h | #pragma once
#include "Shader.h"
#include "VertexShader.h"
#include "PixelShader.h"
#include "GeometryShader.h"
#include <unordered_map>
namespace SteffEngine
{
namespace Core
{
class ShaderManager
{
public:
static ShaderManager* GetInstance();
static void Destroy();
const std::pair<ID3DBlob*, ID3D11... |
94083d1d0ff7233a4b47f99eb8e35edc89f12bf7 | e22b23ad88e114461374f2a3fcbd10fc7fea3697 | /Server/src/ServerSettings/ServerSettings.cpp | 354adcef2d687353be49aad2b20fcbae8e8be92a | [
"MIT"
] | permissive | dz1domin/Proxy_server | d5b649f6b8c0628900f92fb01c56ac26527cfd36 | 828453f9858c98db9169cded0b62dd3a3b170d5f | refs/heads/master | 2020-06-01T20:19:31.473776 | 2019-06-07T22:46:26 | 2019-06-07T22:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,490 | cpp | ServerSettings.cpp | #include "../../include/ServerSettings/ServerSettings.hpp"
ServerSettings::ServerSettings() {
setCurrentTreeToDefault();
}
ServerSettings::~ServerSettings() {
deleteCurrentTree();
}
void ServerSettings::deleteCurrentTree() {
if (currentTree != nullptr) {
delete currentTree;
currentTree = nu... |
5b7780411572e5abeff84cd64f88436cda59f18a | 75e3d9935d552bfcdc20d8c58f9d14b83acbcf5c | /sem1/test3/Test-3.1/Test-3.1/Main.cpp | 7bc006ca0ff1569639c1abccbda5cac5deadc971 | [] | no_license | NadiaSob/HomeworkYear1 | f53c4104e14ca90613831d0fff59eb7f4e1c3896 | 9148bc88b1e974be40c447ddd77b608bc0b18234 | refs/heads/master | 2020-03-30T04:37:32.354704 | 2019-10-14T16:16:25 | 2019-10-14T16:16:25 | 150,753,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | Main.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "List.h"
int main()
{
List *list = createList();
int number = 1;
while (number != 0)
{
scanf("%d", &number);
if (number != 0)
{
addNode(list, number);
}
}
printList(list);
deleteList(list);
return 0;
} |
516a80ac00442ae427939f4c8d938e5d92cf87e9 | d5889c8ffa5f0d9369c5226205dccff7f5382379 | /algospot/LUNCHBOX.cpp | 44e5d24c345b09c3e3da63f9858eeb999dba5abe | [
"MIT"
] | permissive | fpdjsns/Algorithm | 334457a0e18a28b51a54514b91daff798ed833fe | 1414d9368f4047b28808952efa2b0c68792c154c | refs/heads/master | 2023-05-04T16:55:43.599727 | 2023-04-18T14:27:50 | 2023-04-18T14:27:50 | 126,031,686 | 14 | 8 | MIT | 2021-12-06T07:30:28 | 2018-03-20T14:36:02 | C++ | UTF-8 | C++ | false | false | 978 | cpp | LUNCHBOX.cpp | /*
* 문제 : https://algospot.com/judge/problem/read/LUNCHBOX
* 시간복잡도 : O(NlogN)
* 알고리즘 : Greedy
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int solve(vector<int> microwave, vector<int> eat){
int N = microwave.size();
vector<pair<int,int>> order(N);
for(int i=0;i<N... |
5ec329114e3db8495325bc2864996ce5be6f35af | bd048232cd40bb6b16fd6e7706322527e503ab6c | /code/mn_input/src/windows/win_input_module.cpp | f61f48e31c8284ce3f4a0e494979e35afa7e8616 | [] | no_license | zozoiiiiii/moon_old | ff2b226592ef87d917c315308e47ff87d4b9c09d | f2c39bccc60112b579c855d92cf47779c11eda2d | refs/heads/master | 2022-01-23T22:07:21.575969 | 2019-08-16T05:46:19 | 2019-08-16T05:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,602 | cpp | win_input_module.cpp | #include "win_input_module.h"
#include "public/object/mn_object_mgr.h"
#include "public/object/mn_varlist.h"
#define _WIN32_WINNT 0x0400
#include <windows.h>
void WinInputModule::OnCreate()
{
m_pEventMgr = GetObjectMgr()->getEventMgr();
}
void WinInputModule::OnDestroy()
{
}
bool WinInputModule::MsgProc(unsi... |
ae690a2449dbc5bf99eddd5af1a925423ef9eec3 | 069debdd6a552366658b6b334005eefaf7482fd9 | /engine/players.cpp | a8bfb2b2eb16f0778b0603dd84c97c5015704f4b | [] | no_license | demonxjj/generals-ai | c35bcea07a11243bc65f8dce9adc8a7639860805 | 5a3a331099690499993ee6982228663208a9b71d | refs/heads/master | 2021-05-11T19:13:22.924352 | 2017-03-13T19:48:17 | 2017-03-13T19:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 131 | cpp | players.cpp | #include "./players.h"
const map<string, player_pair> STR_TO_PLAYER = {
{"random", {new RandomPlayer(), new RandomPlayer()}}
};
|
f3edecfa4720a0921d0825d2b1730b69cd6795a6 | 75d9df601a85ed10b53fefd11b36fea8dce54416 | /src/node-socket.h | e88849cf34c0d10ec9de43d5b7add1c7e12d7488 | [
"MIT"
] | permissive | emuggie/teaming | fed74e254dc1aca34ac2bfd5ef0b01e27038f4e7 | 0ab9da830032776e461babfba77e380ef01fcc19 | refs/heads/master | 2022-12-16T17:46:40.912449 | 2019-11-20T02:15:53 | 2019-11-20T02:15:53 | 222,628,572 | 0 | 0 | MIT | 2022-12-11T14:04:24 | 2019-11-19T06:51:27 | C++ | UTF-8 | C++ | false | false | 1,002 | h | node-socket.h | #ifndef NODE_SOCKET_H_
#define NODE_SOCKET_H_
#include "napi.h"
#include "socket.h"
#define NODE_SOCKET_CLASS_NAME "TeamSocket"
namespace NODE
{
class Socket: public Napi::ObjectWrap<Socket>{
public :
static Napi::Object Init(Napi::Env env, Napi::Object exports);
Socket(const Napi::Callba... |
d5ddb98168fbd7335235ea9199acddd5fb48349b | 464aa9d7d6c4906b083e6c3da12341504b626404 | /src/server/loginapp/loginapp_config.hpp | 6276ff5ceef01cf90bfb911182340c2489f08d9a | [] | no_license | v2v3v4/BigWorld-Engine-2.0.1 | 3a6fdbb7e08a3e09bcf1fd82f06c1d3f29b84f7d | 481e69a837a9f6d63f298a4f24d423b6329226c6 | refs/heads/master | 2023-01-13T03:49:54.244109 | 2022-12-25T14:21:30 | 2022-12-25T14:21:30 | 163,719,991 | 182 | 167 | null | null | null | null | UTF-8 | C++ | false | false | 1,626 | hpp | loginapp_config.hpp | /******************************************************************************
BigWorld Technology
Copyright BigWorld Pty, Ltd.
All Rights Reserved. Commercial in confidence.
WARNING: This computer program is protected by copyright law and international
treaties. Unauthorized use, reproduction or distribution of thi... |
77732d16f46ffd0fb07ccc1aae77a201e13f6ae6 | 0b73b64ad7477c05de9fd3a075ba9c93bd6785d3 | /header/abstractdecorator.hpp | 9a1cf9cb6ac78bbce1a6c01a7f68e50d8b119257 | [] | no_license | aosterthun/software-engineering-ws15 | b45cf201b209e8ea8c4e129cc5e66a8355c0f6ea | 1215c75f10d74e1b823e7bef3f86a467a8ca1960 | refs/heads/master | 2021-01-17T23:05:11.915996 | 2016-01-30T14:48:42 | 2016-01-30T14:48:42 | 44,807,939 | 0 | 1 | null | 2015-10-23T11:03:30 | 2015-10-23T11:03:30 | null | UTF-8 | C++ | false | false | 419 | hpp | abstractdecorator.hpp | #ifndef BUW_ABSTRACTDECORATOR
#define BUW_ABSTRACTDECORATOR
#include "converter.hpp"
class ConverterDecorator : public converter
{
public:
ConverterDecorator();
ConverterDecorator(converter* conv);
~ConverterDecorator();
double convert(double inValue) override;
std::string toString() const override;
voi... |
b6c9c2e556610fc46a08a9fb87976740bfb2d13f | f2c0a1be1ea037af953419d3707bf582507076a0 | /src/main/main.cpp | 9cb58439ee3ec974a86b4df2724b2281bc0e7282 | [
"MIT"
] | permissive | Team5553-RoboLyon/2019_Raspberry | 4a1a32eaa0b7181f2e41cb628e2c0058950f0570 | b54db8e3c6a25511a39e81e3d1e0a40d53a4108f | refs/heads/master | 2020-07-08T07:47:27.422908 | 2019-08-30T13:04:27 | 2019-08-30T13:04:27 | 164,417,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,914 | cpp | main.cpp | #include "PrecompilationDefine.h"
#include <iostream>
#include <opencv2/opencv.hpp>
#include <networktables/NetworkTableInstance.h>
#include "lib/MjpegStream.h"
#include "Values.h"
#include "Vision.h"
using namespace cv;
using namespace std;
#ifndef RUNNING_FRC_TESTS
int main() {
#ifdef __DESKTOP__
std::cout... |
46308ee9498e43106ea48be6c18396720b1dbd73 | 1fd72a0e736c9d8e9b3f10fc424222f4ce8126a7 | /morris2014.cpp | bd25f692cce02eb09e1569394d9b722f5ddafdc1 | [] | no_license | shobe98/cs382_cpp | 08d0eddec9df557840b85256c9ff703d5da3fb4a | 4d96d32dedbc887e946b29eb9c1abc0d15aeb900 | refs/heads/master | 2022-06-30T14:28:29.394158 | 2020-05-08T20:31:20 | 2020-05-08T20:31:20 | 239,810,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,131 | cpp | morris2014.cpp | /* --------------------------
* CMPU-382, Spring 2020
* Authors: Andrei Stanciu, Abigail Ren
* File: morris2014.cpp
* --------------------------
* Implements morris2014 algorithm and main function
* Defines Structs: NodeAndPrio
* Defines Functions: unsuitable, DCBackprop, morris2014, main
*/
#include "... |
26c100ab5b1db0e81422bcecf46a48f2ac68297f | 99335dae711910ac15fd5e859f00026306499a37 | /src/Render.h | 2b4f4c704debe44870f0cdf23532575623b8e5b4 | [] | no_license | terminal29/PrairieDog-Engine | 394a7e1ac444802d711aeb6fb43e9bfa4e523369 | 5227a31fc653c7476bf71b56fdb788622ad15341 | refs/heads/master | 2021-06-17T03:38:26.775894 | 2017-05-10T12:24:14 | 2017-05-10T12:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | Render.h | #pragma once
#include "Glyph.h"
#include "Entity.h"
#include <vector>
#include <algorithm>
#include <iostream>
struct less_than_key
{
inline bool operator() (Entity* e1, Entity* e2)
{
return (e1->getPos().z < e2->getPos().z);
}
};
static void Render(int c_w, int c_h, std::vector<Entity> e_list... |
9317ac49d644df31ecc1eefc44a9558d909b6faf | 920c93ad3a4b88bb6bfc3cc8a81479d92b1e7e65 | /Linear Search.cpp | 8b1f045896479855936557315f25382ffdf9ddfb | [] | no_license | udaykhemewar/C-All-Topics | 42b00560149fe80bb95aa017fb3d4cae069688aa | 0292692fcbf3cf26f7688344da8f285b91686c6e | refs/heads/master | 2023-05-02T17:20:19.134176 | 2021-05-22T18:42:36 | 2021-05-22T18:42:36 | 369,882,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | Linear Search.cpp | #include <iostream>
using namespace std;
int search(int array[], int x) {
for (int i = 0; i < 5; i++)
if (array[i] == x)
return i;
return -1;
}
int main() {
cout<<"\nEnter the Numbers: "<<endl;;
int array[5];
for (int i=0; i<5; i++)
{
cin>>array[i];
}
int x;
cout<<"Enter the number t... |
7a2f5fd06b006e050901efc685a857ac0a33ea4a | 7554af2534ee5f67e91485dad80f4ecdf59ec6d4 | /src/PPApiForDotNet/Utilities.h | 9de83a5ca1b1a487aff15f2d7972c2a3aef0dbfe | [] | no_license | AArnott/PPApiForDotNet | 46eef8f5a93a2777deb9e5f14d670fa6ca4bdb73 | 15c0503771f28c62fd99ef329a41545d0a041d0d | refs/heads/master | 2021-01-13T00:41:22.491487 | 2015-10-31T05:33:26 | 2015-10-31T05:33:26 | 45,123,075 | 19 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 93 | h | Utilities.h | #pragma once
#include <filesystem>
std::experimental::filesystem::v1::path GetModuleDir();
|
e143dd278add2d09ff0908ab37ccccc51e173b73 | 04462e43a083ef37c1e126c40fdf1d38ca81f586 | /FlexEngine/include/Audio/AudioManager.hpp | 3ba82beebbe7bbdfc775a6c9433c77115249f7ca | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ajweeks/FlexEngine | adb5aa135b3541e6f8189b88cf432896505d1118 | fe7d4b165de8260dd9d6be4d20be7c2f9ba1ffe5 | refs/heads/master | 2023-08-31T14:04:17.224754 | 2023-08-28T23:41:27 | 2023-08-29T17:37:55 | 82,951,590 | 969 | 56 | MIT | 2021-05-18T18:35:27 | 2017-02-23T17:14:25 | C++ | UTF-8 | C++ | false | false | 8,747 | hpp | AudioManager.hpp | #pragma once
IGNORE_WARNINGS_PUSH
#define AL_ALEXT_PROTOTYPES
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "AL/efx.h"
#include "AL/efx-presets.h"
IGNORE_WARNINGS_POP
#include "Histogram.hpp"
#include <list>
namespace flex
{
class StringBuilder;
struct SoundClip_Looping
{
SoundClip_Loo... |
03f8f533e01c8a6d9384443538a81225186ab293 | 1f8e76e13de19e604e6845b87d68d6b1a989addb | /review_2_files/review_2_employee_class/Project/Employee.cpp | 66f0739dd007088e723db1a31280be4ad6cf7554 | [] | no_license | tngo0508/Cplusplus-OCC- | fa74b0a4e67cb389c7ad15ff5c5296be6107103b | 9311878e0e246e267b2f5e2608ec18745b72ef78 | refs/heads/master | 2021-09-20T17:05:23.971332 | 2018-08-12T22:01:12 | 2018-08-12T22:01:12 | 104,405,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | Employee.cpp | /*
HourlyEmployee.cpp
Implementation of class HourlyEmployee
*/
#include "Employee.h"
Employee::Employee( )
{
//NOTE: Not necessary to give a value to a string, because
// it will be initialized by the default constructor
// of the STL string class
name = "No name yet";
id = 0;
}
Employ... |
b1ea6386da25af9cdcf0ccdb9c43f5aba0d854a0 | e3e6112eb7bf20b6823c83e5769bfe6ccfa45e0d | /Functor/src/main.cpp | a05dba9b5cd10f5a8fe12419b7fec49da2683d1c | [] | no_license | AlexandreHiroyuki/Testes | 0d8d255c3352dba8ac4385f6c27f85fe5cbc2ffd | 4e52c5566c60d6b47196d5b3702ff8140d00cde9 | refs/heads/master | 2021-11-26T23:06:25.157855 | 2021-11-12T20:21:13 | 2021-11-12T20:21:13 | 150,783,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | main.cpp | #include <iostream>
using namespace std;
class myFunc {
private:
int _count;
public:
myFunc(int a) : _count(a) {}
int operator()(int x) { return x + _count; }
};
int main() {
myFunc obj(10);
cout << obj(2) << endl;
return 0;
} |
98c1f236a8bc7a97d22b4a148912633a50cbc3c5 | c9c83f433358b06a554f2b681f96928bed31d70a | /inc/VM.hpp | 2667764207f0befccd9fbd4a4f867293d917093f | [] | no_license | rkyslyy/AbstractVM | 983cbbb6c7a269268d812a6b6a560831e139cb85 | 8f94f5b392945da154cdbb92f644d867f8496f63 | refs/heads/master | 2020-03-23T22:25:07.459709 | 2018-12-14T15:44:05 | 2018-12-14T15:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | hpp | VM.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* VM.hpp :+: :+: :+: ... |
16e6a052652c0a22dcc796f367bda2f748595603 | 1f9e4136b21bbb1cfc49dbeb7f42f684ddc7d0e1 | /MarkdownEditorViewPart/ActionsRegister.cpp | 44216839fddf5fc3aa70e1fb5c8dcea1beed02c2 | [] | no_license | sld666666/HtmlWriter | c64129caf13add9d6786ad9a618c33fa3d775446 | c7c7c29025e185271288913da90a75807cfc996b | refs/heads/master | 2020-06-06T16:26:10.963660 | 2013-05-15T04:36:49 | 2013-05-15T04:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | cpp | ActionsRegister.cpp | #include "ActionsRegister.h"
#include "actions/MarkdownEditorToolBar.h"
#include "ServiceManager.h"
using service::ServiceManager;
ActionsRegister::ActionsRegister(QObject *parent)
: QObject(parent)
{
}
ActionsRegister::~ActionsRegister()
{
}
void ActionsRegister::registerActions()
{
ServiceManager::instance().... |
2ca9a364974f6808f7ae4dc21a5d703b6e034ac5 | 4f9087d39d862c405c827a9e2f693797508d246f | /Chat/h/Chat_server_message_sender.h | 662498fd0b2eb42f6311db88ca1afa5709498e5a | [] | no_license | aureooms-ulb-2010-2015/2011-2012-infof209-project | e1204eabe9dce71a6e843fdcf279103e246fb05b | 169ee99ce38ffbba6cc4fcc9e359314c934d648e | refs/heads/master | 2021-01-16T01:01:29.819169 | 2014-12-08T14:50:06 | 2014-12-08T14:50:06 | 38,203,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | h | Chat_server_message_sender.h | #if !defined(_CHAT_SERVER_MESSAGE_SENDER_H)
#define _CHAT_SERVER_MESSAGE_SENDER_H
#include "../../Library/Socket/ServerSocket.h"
#include "./Feed.h"
#include "./Chat_notification.h"
#include <string>
class Chat_client_manager;
class Chat_server_message_sender{
private:
Chat_client_manager *manager;
Se... |
b247a5a88687a9f0fb85c8272ecda1bce3be47da | 07f58b7bce3b6fdab22e82a83c6de1c2a95e1f45 | /include/psscpp/type_traits.h | 20442d3c8c5e1e84b635f6e905e38635751c807c | [] | no_license | psalvaggio/psscpp | 5c8f3f42b0deca1f44c586bcfe39ade05d756191 | c5561cf76d751e7296c57c1ea0fd628b51af4ff9 | refs/heads/master | 2020-07-21T12:13:26.398254 | 2019-09-09T18:12:36 | 2019-09-09T18:12:36 | 206,861,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,966 | h | type_traits.h | /** Extensions to the standard type_traits header
*
* \file include/psscpp/type_traits.h
* \author Dr. Philip Salvaggio (salvaggio.philip@gmail.com)
* \date 06 Sep 2019
*/
#pragma once
#include <type_traits>
namespace pss {
/// Tests if the decayed types of the two arguments are the same
template <class T, ... |
73edc675c8521a1df6bb712609a328ba477aaaa8 | a13e24b39fab4f5d9bc57d0bd5eb536c38a5eef1 | /source/Plugins/Generic/AtmosphereScattering/WeatherUbo.hpp | 43054dca5a8dfa09c5f931e9a73d0e264d2aadbc | [
"MIT"
] | permissive | DragonJoker/Castor3D | 2bbd0eeba403a37570bfc959d58a6c8a01429c60 | 32a2e4bc5c6ea0d0a27f3c58f8edb74fbc7e59ce | refs/heads/development | 2023-09-04T15:46:36.438955 | 2023-08-30T05:37:14 | 2023-08-30T12:34:39 | 34,847,313 | 424 | 18 | MIT | 2023-09-14T11:10:10 | 2015-04-30T09:53:00 | C++ | UTF-8 | C++ | false | false | 2,915 | hpp | WeatherUbo.hpp | /*
See LICENSE file in root folder
*/
#ifndef ___C3DAS_WeatherUbo_H___
#define ___C3DAS_WeatherUbo_H___
#include "WeatherConfig.hpp"
#include <Castor3D/Castor3DModule.hpp>
#include <Castor3D/Buffer/UniformBufferOffset.hpp>
#include <CastorUtils/Math/RangedValue.hpp>
#include <ShaderWriter/BaseTypes/Array.hpp>
#incl... |
de44313c43395768ea2d717b9b17c49277c77b39 | ad273708d98b1f73b3855cc4317bca2e56456d15 | /aws-cpp-sdk-s3-encryption/source/s3-encryption/modules/CryptoModuleFactory.cpp | caae26e2cbc21d09c2f33230f58a57b55d31b43c | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | novaquark/aws-sdk-cpp | b390f2e29f86f629f9efcf41c4990169b91f4f47 | a0969508545bec9ae2864c9e1e2bb9aff109f90c | refs/heads/master | 2022-08-28T18:28:12.742810 | 2020-05-27T15:46:18 | 2020-05-27T15:46:18 | 267,351,721 | 1 | 0 | Apache-2.0 | 2020-05-27T15:08:16 | 2020-05-27T15:08:15 | null | UTF-8 | C++ | false | false | 4,046 | cpp | CryptoModuleFactory.cpp | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
70fd3956c5f1d0755813269150df61e335a1f34b | bcb5f0ad80e0e08d93e01802b4cb351202f49183 | /sourcefiles/shuffle.h | 5d35e6438ea17a9166a22d3ee5208edf26763905 | [] | no_license | kacpwoja/EADS-Sequence | 0e5f26505add08775c28ca9721e7cc2949ec37d0 | 72e6bc8d0a136071abeb580e9e9086efe43638f9 | refs/heads/master | 2020-03-08T15:14:33.915896 | 2018-04-05T13:01:44 | 2018-04-05T13:01:44 | 128,206,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | h | shuffle.h | #ifndef SHUFFLE
#define SHUFFLE
#include "sequence.h"
template <typename Key, typename Info>
Sequence<Key, Info> shuffle( const Sequence<Key, Info> &S1, int start1, int len1,
const Sequence<Key, Info> &S2, int start2, int len2, int repeat)
{
if( start1 < 0 || start2 < 0 || len1 < 0 || le... |
15765c87403fae13e719b48b2ba6f094e01dc22c | 6c5fea76ce7abfdc637daf8978287c905f237792 | /hackerrank/stl/deque.cpp | bd5e4f38ced2b5689053ea308fb4fbafd625a3c9 | [] | no_license | Gurpreet3131/competitiveProgramming | d4ce8341d76b4d5dbce2d59bc677c1fd0e090f48 | 112d7d1d94a787c3ad07e7c170d6573e2b26ca4a | refs/heads/master | 2021-08-12T07:54:39.729856 | 2017-11-14T15:12:20 | 2017-11-14T15:12:20 | 109,845,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | deque.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <string.h>
#include <deque>
using namespace std;
int n,k,a[10001];
void findmax()
{
deque<int> dqueue;
int i;
for(i=0;i<k;i++)
{
while((!dqueue.empty()) && a[i]>=a[dqueue.back()])
dqueue.pop_back... |
9184d6f422b6e82417b70c00a5be8e8aa29d1dad | 0d3641838da786642f7f1ef6a596632636fdfe6a | /src/Math/EVector.cpp | 1bdd7a3c9a04b43bc36dcd52646c5e64e370cd11 | [] | no_license | ericrobolson/SimpleGameEngine | 93cbdb8f084b6b486f74361b478120691c73434a | eaad752e496d85474a2276c10fc159c24b3f4af3 | refs/heads/master | 2021-07-02T16:11:23.173761 | 2019-05-16T03:46:10 | 2019-05-16T03:46:10 | 148,493,179 | 1 | 0 | null | 2019-05-16T03:46:11 | 2018-09-12T14:26:58 | C++ | UTF-8 | C++ | false | false | 174 | cpp | EVector.cpp | #include "EVector.h"
using namespace SGE_Math;
EVector::EVector()
{
//ctor
}
EVector::EVector(const EVector& e)
{
*this = e;
}
EVector::~EVector()
{
//dtor
}
|
6541f4128562793ca9544a18a6ef32d9d23a1c6b | 8ef0a616cdfb3c56a7bcf97a8b673edd225d694b | /ionTori/State.cpp | 99d541310507be63bf12259f8fa34c66264a3eaa | [] | no_license | laofei177/radproc_linux | d10f49f0b05aa9b2680003a7eb59a0d28fec48e7 | 540f42fd9bfabb19ade34371532953bf2c25ed2d | refs/heads/master | 2023-01-01T14:08:18.652895 | 2020-10-18T18:01:31 | 2020-10-18T18:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,868 | cpp | State.cpp | #include "State.h"
#include "globalVariables.h"
#include "torusFunctions.h"
#include "modelParameters.h"
#include <fparameters/Dimension.h>
#include <fmath/physics.h>
#include <fparameters/SpaceIterator.h>
#include <fparameters/parameters.h>
#include <boost/property_tree/ptree.hpp>
//#include <fmath/bisection.h>
using... |
33bcb1353b3dc55d1fa18cf2a2e50a58b1dbb52b | cf296426ba12126a2b221d7e1a492021b6ce42ba | /Debug/memory_manager/samples/main.cpp | 327346397916f515c392baa6549309c95b15ddb0 | [] | no_license | rexou/Cpp-Tools | b49e5dbbd4117d0f65b0b31a71aad7b6f1a0b461 | 2f925a0b998f7d1a6e067a0aa5b0090a2cc10ae0 | refs/heads/master | 2021-01-17T08:32:10.864349 | 2016-07-27T08:38:13 | 2016-07-27T08:38:13 | 4,595,731 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | main.cpp |
/*
** main.cpp for test utilities
** by le-cor_w aka rexou
*/
#include <iostream>
#include <memory_manager.hpp>
#define DEFAULT_LOGFILE_NAME "memory_leaks.report"
struct A
{
A() {
std::cout << "A::A()" << std::endl;
}
~A() {
std::cout << "A::~A" << std::endl;
}
A(const A &other) {
(void)oth... |
941d183e2c366a562f0a3a27d56438dc44a94e05 | 9ed3330a736f6ef445bd083db0c131143b53dbc9 | /Lab9/q2.cpp | b0bb91075876e391e1d1d06224ab609b8a7b8393 | [] | no_license | Shaunmak1214/C-plusplus-Tutorials | 7513ff4e7775aadb47e778e643d080894b5661f8 | f73f0b5b6db8ef376305c639be4e7faad730e4cd | refs/heads/master | 2022-12-28T12:17:36.868143 | 2020-10-15T06:08:05 | 2020-10-15T06:08:05 | 296,255,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,688 | cpp | q2.cpp | #include<iostream>
#include<iomanip>
#include<string>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
class ChoreographyMarks{
private:
float points, total;
public:
ChoreographyMarks (){
total = 30;
}
void setCgPoints(){
cout << "Enter Choreography Marks [max:30] :... |
69aa12f6600af7f9502c29141765dd2d6acfec86 | 25e47659d6f1e3abc8c1e367ce4264431d19a568 | /HeadFirstC++/Class初探3-第一编写.h文件/BOOK.h | 1766fc83864d2104110468578a5935c53dc8c954 | [] | no_license | yeze322/Linux-C | 5a5fa08152b99bbe64a40bd0cac9766f8f6cd5f6 | d78181ad65d6cbd21ce2e79e34e87f0ca40f1181 | refs/heads/master | 2021-01-20T06:11:55.414324 | 2018-07-20T02:53:59 | 2018-07-20T02:54:43 | 30,003,334 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 117 | h | BOOK.h | class book
{
public:
void initbook();
void showbook();
private:
char title[60];
char author[60];
float price;
}; |
2f637804e6a4ccad6f84e3a6aae45039b94a4a49 | b215d2599878e3f2d162837fc6e59ae06a8f4bcd | /card.h | a1eeea78fb026412cc6a3e84867e0cf38e2c0221 | [] | no_license | hagaddour/Card-Game | f9a0ed579fd981313cf7719fdfffea0f9151ab2a | 2f7fb77e8552ed1c8b9b5e6e80967fdb7de6e719 | refs/heads/master | 2020-12-09T11:14:57.738727 | 2020-01-11T19:58:41 | 2020-01-11T19:58:41 | 233,287,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | h | card.h | #ifndef __CARD_H__
#define __CARD_H__
#include <string>
#include <vector>
class Card
{
std::string name;
int cost;
std::string type;
std::string descrip;
public:
//getters
std::string getName();
int getCost();
std::string getType();
std::string getDescrip();
//setters
void... |
50c6f33e30eef00833a36a6e9605b7191c0d5c14 | ab786d963e4e959cbf185b3673133c468f40e5f8 | /CPP1/upFun3.cpp | 3742c01aa5443bad71b2a2724f2bfff05da37c09 | [
"MIT"
] | permissive | mrnettek/CPP | beb2a37c0238fb398b74ed771bb24d05bec9d0b7 | 25127ae2dea8c4841787ae94669c56a716ee2bea | refs/heads/master | 2021-06-28T19:17:38.106119 | 2020-12-31T18:52:29 | 2020-12-31T18:52:29 | 210,626,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | cpp | upFun3.cpp | #include <iostream>
using namespace std;
void toUp(string &x) {
for (int i = 0; i < x.length(); i++)
if (x[i] > 96) x[i] = (char) (x[i] - 32);
}
int main() {
string x = "Hello";
toUp(x);
cout << x << endl;
return 0;
}
|
ae34ef582acf4f57210c3cc493800de45b6210ed | 092d638d7e00daeac2b08a448c78dabb3030c5a9 | /gcj/gcj/188266/hsisahens/168107/0/extracted/a.cpp | 638c37be8af794e265991ee4b0023b5f3c625fc5 | [] | no_license | Yash-YC/Source-Code-Plagiarism-Detection | 23d2034696cda13462d1f7596718a908ddb3d34e | 97cfdd458e851899b6ec6802a10343db68824b8b | refs/heads/main | 2023-08-03T01:43:59.185877 | 2021-10-04T15:00:25 | 2021-10-04T15:00:25 | 399,349,460 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,166 | cpp | a.cpp | #include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <algorithm>
#include <conio.h>
#include <climits>
#include <queue>
using namespace std;
#define dv(vectName) for(int ii=0;ii<vectName.size();ii++) cout<<vectName[ii]<<' '; cout<<endl;
#define d1da(arrayName,size) for(i... |
7fdb4ca9e7d323849d1d75d1c6bd340ba8ccf21d | 0ae50dc56dd8275fb14c522f08a0810ce094e4b1 | /src/format.cpp | f7eee378ee21c7426e3ff8e12272400368014246 | [
"MIT"
] | permissive | ayomide-adekunle/CplusND_System_Monitor | 1de9a3808145136ff974b1bd31ffd060d1a1d08b | 774e2fc32cab6199caa29952f4ba41627705cbc0 | refs/heads/master | 2023-06-18T21:43:59.280137 | 2021-07-17T15:29:36 | 2021-07-17T15:29:36 | 386,758,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | format.cpp | #include <string>
#include "format.h"
using std::string;
// TODO: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
// REMOVE: [[maybe_unused]] once you define the function
string Format::ElapsedTime(long sec) {
int hrs, min;
hrs = sec / 3600;
sec = sec % 3600;
min = sec... |
fb336742acc333006bb7fcf2f379d796cce89420 | 270d448184cbe958e6e6bb17a98b35c381e22d99 | /discrete/cs237SampleCode/pq_elegance.cpp | f12c570292e0784850249b413ed5ea99b8f4b863 | [] | no_license | jcjolley/school | 016ffde715bb07f9ddc09f0c7c0cf4d59a2bd0b3 | bab28da74b1baba32844ec19278feb11ab65c375 | refs/heads/master | 2021-05-01T11:58:47.576569 | 2016-07-20T15:03:10 | 2016-07-20T15:03:10 | 59,164,873 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,717 | cpp | pq_elegance.cpp | // For your consideration: THE ULTIMATE IN ELEGANCE!!
//
// Using two helper functions (forAll and forSome ---
// whose declarations you would need to add to the Predicate
// class) simplifies each of the nested quantifier functions.
// Each function (including the helpers) is four lines of code
// (not counting curly ... |
68f16f8aac73301a690527f7d6098aa061a92b7f | 78b0caa5032343ddb44c40da04cf77488b336c23 | /expressions/unary/Not.cpp | 4bdd80acde1cb8bc52af0d439c74b80c9f00ef4b | [] | no_license | noagol/interpreter | ede96f070f3a3d070ac56345120748938fb035d6 | 75661b9e5843d26360fa1beb2584ca18e059de73 | refs/heads/master | 2020-11-25T19:31:43.320158 | 2018-12-26T21:37:56 | 2018-12-26T21:37:56 | 228,813,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | Not.cpp | #include "Not.h"
/**
* Not operator
* @param exp
*/
Not::Not(Expression *exp) : UnaryExpression(exp) {}
/**
* calculate logical not
* @return ! expr
*/
double Not::calculate() {
return !getExpression()->calculate();
} |
db35b3ad2659a7473e988c509ae41c5202912769 | cbce1565c63336b851b726cfb84bea99035c86e2 | /devanshdalal/codeforces/328-B/328-B-4086911.cpp | 8ac98d1c7e28b2e27df0ed1fcc53f8330b4eaeb2 | [] | no_license | devanshdalal/CompetitiveProgrammingAlgos | 3ad301c19e1b133e72e3b96a10a976a7955c4e25 | ab19db4c4fed6f880537a9c45e5ccc50ceed9d97 | refs/heads/master | 2021-01-17T12:24:58.822428 | 2016-06-17T04:00:00 | 2016-06-17T04:00:00 | 51,207,702 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | 328-B-4086911.cpp | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<cstdlib>
#include<cmath>
#include<cstring>
#define sf scanf
#define pf printf
using namespace std;
typedef long long ll;
int n,k;
ll modPow(int X, int Y)
{
ll Temp,Ans;ll M=(ll)pow(10,k);
if(!Y) return 1;
Tem... |
5d11ef1416ef0a7777a1a5b7d975bb7b1c4ac4b2 | 8f60eb5560c657c699a13189a9f05ff38d06bad1 | /C++ - Estrutura Case/exercicio12.cpp.cpp | e4ee45db76349728388685ffb3bc1cb011ca54f1 | [] | no_license | l-jhon/C-Plus-Plus | deb2e551e24d495d41859d21cc8bfc6f47d9661a | 8cb368e886c9beed4572109511d2f34ae1ba4283 | refs/heads/master | 2021-05-09T15:49:08.336602 | 2018-06-19T14:49:18 | 2018-06-19T14:49:18 | 119,097,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 705 | cpp | exercicio12.cpp.cpp | // Jhon Lucas Santos Silva
/*Calculando o valor a ser pago por um produto , escolhendo diferentes formas de pagamento*/
#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
float vp/*valor a ser pago*/,p/*preco de etiqueta*/,aux;
int op/*opcao*/;
cout<<"Digite o Valor de Etiqueta:\n";
cin>>... |
96cd1c9a3478ba3c60262ca651fb61b506502a06 | b85eaaa722ab4199dd7d7ed9d74800aadb19d81e | /1053汉诺塔.cpp | 866b75400c658bb46ee917933d42743bd2e49903 | [] | no_license | WithLei/ACM | 05bceed0bb535dba82d63d8c8ba2f99d16363255 | c57307c2e83db032a47bba72f391f0b8624fa2cf | refs/heads/master | 2021-01-20T01:04:20.005506 | 2017-10-05T11:12:44 | 2017-10-05T11:12:44 | 89,219,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | 1053汉诺塔.cpp | #include<stdio.h>
#include<math.h>
int range;
int ccl(int N){
range=0;
for(int i=0;i<N;i++){
range=(range*2+1)%20142014;
}
return range;
}
int main(){
int M,N;
scanf("%d",&M);
for(int i=0;i<M;i++){
scanf("%d",&N);
printf("%d\n",ccl(N));
}
}
//1-1
//2--3
//3--7
//4--15
//5--31
//6--63 |
6d454731f6d8c5f06f3d548eac99cab18b63eea5 | ae1656c0199eb1cfd3affa51d855abf19e900acb | /Lab1-RPG/Archer.h | 4130154c1fca0894fa475dfc589cedf339ab7034 | [] | no_license | michaelbeneamatobruno/BYU_CS235 | c73f93d1e0e5912b62a3b82811651190c590c033 | e42cf46bc21961ad2b71daae50a133f37329294f | refs/heads/master | 2021-01-19T23:02:35.041525 | 2017-04-20T21:55:53 | 2017-04-20T21:55:53 | 88,913,233 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 336 | h | Archer.h | #pragma once
#include "Fighter.h"
using namespace std;
class Archer:public Fighter {
public:
Archer(string name, int maxHP, int strength, int originalSpeed, int magic):Fighter(name, maxHP, strength, originalSpeed, magic){};
~Archer(){};
int getDamage();
void reset();
bool useAb... |
7ac308becbe737448fd621918f5a111e740acbae | c6f5524dd21cf8050aa06c9758ff54ec1811a469 | /ET580/Week_6_Points_Dynamic_Arrays/1_pointer_variables/EX_1b_pointers.cpp | d67a631aea1dd9d3bc2682c864631c88b21b4e5a | [] | no_license | AChen24562/C-Plus-plus | 482dbb33bd6b6b9b1cf49e3b5c0360285816d049 | 27364b7f02e5172aec89f2132bc963313b99d16b | refs/heads/master | 2022-06-21T12:37:40.370312 | 2022-06-17T14:44:46 | 2022-06-17T14:44:46 | 236,824,208 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | EX_1b_pointers.cpp | // S. Trowbridge 2020
#include <iostream>
using namespace std;
int main() {
cout << endl;
// int variable
int i = 5;
// initialize an integer pointer to the integer variable i
// a pointer stores the memory address of another variable
int *p = &i;
// output the value of i and the memory ... |
11341cd5b1cddecf318e312d44e756d0eab82ccf | 1049415125c2c64f9ce714ecb4c15b3f3c130bee | /include/MemDC.h | 4adb0410c7ec5e922be4238f04f2aa4401fe8d62 | [
"MIT"
] | permissive | gearsns/TxtMiru2 | 3d53588d839b4304fb822630b5d1b78b6e66d21f | f829803721354e0639e791ba63962bd702aebfd1 | refs/heads/master | 2022-11-01T17:33:23.977198 | 2019-11-30T02:35:58 | 2019-11-30T02:35:58 | 208,549,945 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | h | MemDC.h | #ifndef __MEMDC_H__
#define __MEMDC_H__
#include "Bitmap.h"
#include <windows.h>
class CGrMemDC
{
public:
CGrMemDC(HDC hdc, RECT &rect);
virtual ~CGrMemDC();
operator HDC(){ return m_hMemDC; }
private:
CGrBitmap m_bitmap;
HBITMAP m_oldBitmap = NULL;
HDC m_hMemDC = NULL;
HDC m_hDC = NULL;
RECT m_rect;
};
#en... |
54dc9513271ba73d050839906c51f6522f9d33f8 | 37867f639363ab2f188028dc158b483b6e6b81f3 | /Src/Logic/Entity/Components/AnimationInventaryComponent.h | ab1241b8f18e9dcfad4b3c332990aac06ea462b9 | [] | no_license | ailuoxz/BadPrincess-Game | 704143bcafe1205a2ccdd7dbd68ed284c6fa1d76 | 47caae1a03fdfe8058260e44add25fd8e89f99c3 | refs/heads/master | 2021-12-14T15:13:50.974644 | 2017-05-04T16:31:22 | 2017-05-04T16:31:22 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,630 | h | AnimationInventaryComponent.h | /**
@file AnimationInventaryComponent.h
Implement the component that manage all items that we have to attach to the skeleton
for each animations
@see Logic::IComponent
@author Guidi Giacomo
@date Mayo, 2015
*/
#ifndef __Logic_AnimationInventaryComponent_H
#define __Logic_AnimationInventaryComponent_H
#include "Log... |
dc456990e7c75ffc6d867dd2fff6349a9b5046e3 | 74d322a09045ff67f2c5f6897719543ed66bea67 | /src/libgens/Vdp/Vdp_p.hpp | b706435b9fd1edb4a2c4349e9ec7a7d7267b645d | [] | no_license | LasDesu/gens-gs-ii | 6eb73e7dfe6b2f21d74658eef4e1c1a33e3629e7 | af19f8eadf64b6f2fe07347869d1fb9f9e9de2ef | refs/heads/master | 2021-05-07T00:13:35.880499 | 2017-11-27T08:01:35 | 2017-11-27T08:01:35 | 110,127,163 | 1 | 1 | null | 2017-11-09T14:43:53 | 2017-11-09T14:43:53 | null | UTF-8 | C++ | false | false | 20,221 | hpp | Vdp_p.hpp | /***************************************************************************
* libgens: Gens Emulation Library. *
* Vdp_p.hpp: VDP emulation class. (Private class) *
* *
* Copyright... |
33236a1c143d3face0dc005dfa5505f304ee9e77 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Plugins/2D/Paper2D/Source/PaperSpriteSheetImporter/Private/PaperJsonSpriteSheetImporter.cpp | ef40faacde22440ef4741cf527fa09ef9c2aa5a3 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 22,344 | cpp | PaperJsonSpriteSheetImporter.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "PaperJsonSpriteSheetImporter.h"
#include "PaperSpriteSheetImporterLog.h"
#include "Misc/Paths.h"
#include "Misc/FeedbackContext.h"
#include "Modules/ModuleManager.h"
#include "Serialization/JsonTypes.h"
#include "Serialization/JsonReader.h"
#includ... |
0b0fa5687aff91a2a333b70e2feda9dfe64f73c8 | 01be38e569d1519684d2da2253f097c9b4c0bd12 | /connect_core.cpp | 45ae9a462adc2cbc998d463cbeeff69abae11395 | [] | no_license | dingyuanhong/epollTest | f830dd4163a94a9a189a3433d73de38dbed2ce4a | 292549e1eca191421f341c47cdeb56ffad697f50 | refs/heads/master | 2021-10-22T08:02:03.264944 | 2019-03-09T04:05:56 | 2019-03-09T04:05:56 | 109,232,664 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,790 | cpp | connect_core.cpp | #include <errno.h>
#include <stdlib.h>
#include "util/staticUtil.h"
#ifdef _WIN32
#include <WinSock2.h>
//#include <Ws2def.h>
#include <Ws2ipdef.h>
#include <mstcpip.h>
#define sa_family_t ADDRESS_FAMILY
#define ssize_t int
#define MSG_DONTWAIT 0
#define close closesocket
#else
#include <sys/types.h>
#include <sys/sock... |
f63c1ca084392d9262e127de79b991fd27f67330 | aeae8b58ba02405572dbc8e5633a6b6523902545 | /NXPatcherLite++/PatchFile.cpp | 0cd4a236c1a56287be035c9078eca71e465cc18b | [] | no_license | mechpaul/NXPatcherLite- | 98988f6438740c53b0c6a903484340c9629bd28c | 5581f991f0784a3d28462bfb2f9b5cd2025ca026 | refs/heads/master | 2020-06-26T04:31:00.813660 | 2016-11-23T07:14:37 | 2016-11-23T07:14:37 | 74,550,134 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | PatchFile.cpp | #include <fstream>
#include <iostream>
#include <string>
int CheckHeader(char* fileName)
{
std::ifstream f;
std::string mystring("WzPatch\x1A\x02");
std::string checkString;
int result = 0;
checkString.resize(mystring.length());
f.open(fileName, std::ios::binary | std::ios::in);
f.read(&checkString[0], mystri... |
1aaa31575ac094569ae35933acebfee115a8cea2 | 8af5843b9d0c467cce1fc75a103dd33854d661eb | /Ares/Features/Bunnyhop.cpp | 5bef4a4611243070385fcc0b403fe1ef7026c7b7 | [] | no_license | Slyvred/Ares | b754942b1fcc92ff2bbd70da2b620ae7bb763c96 | 5327f5e17480532fa89efa408908214bc5e41508 | refs/heads/master | 2023-04-23T16:21:44.790809 | 2021-05-16T16:52:53 | 2021-05-16T16:52:53 | 367,937,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | Bunnyhop.cpp | #include "../Hacks.h"
#include "../Memory.h"
#define FL_ONGROUND (1 << 0)
void Hacks::Bunnyhop(bool enable)
{
if (enable)
{
BYTE flags = *(BYTE*)(localPlayer + netvars::m_fFlags);
if (GetAsyncKeyState(VK_SPACE) & 0x8000 && flags & FL_ONGROUND)
if (localPlayer->IsMoving())
*(int*)(client + signatures::dwF... |
d50c6d88a80bd57690e4d263bfd21cbc7872ab82 | 36de6ca7b2d2320fba58cbe6952761ddd7ee5a0e | /Files.h | 7317d2222df16129d3a9f8ac2cce0535b6597ccc | [] | no_license | stupelc/Flight_Simulator-part2- | d118502cf1f0d83da624eba17df6c8e76a42cb0c | f7994aae59aaa7b3884e09e3b4f33b2cb65fc55b | refs/heads/master | 2020-05-09T14:55:13.435572 | 2019-04-13T18:39:47 | 2019-04-13T18:39:47 | 181,214,056 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | h | Files.h | //
// Created by almogg on 1/7/19.
//
#ifndef PROJECT2_FILES_H
#define PROJECT2_FILES_H
#include <string>
using namespace std;
//for all things with files - all methods need to do things with the file
class File {
//have file name
string fileName;
public:
File(string name);
//read information from... |
7d33029ee21616fd8f9b06de04ff69b81539edf3 | 580031d5b09e0238e7d1f71fe4045cb46e7db123 | /src/static_shader_program.h | fcd1ff21e6ee7a5bf318e1932073e17ed7021a1b | [] | no_license | Frommi/storwars | f3dc020d965f4e38f57fce78b0b20be90d9aa404 | ab6c1306cccc30b4e055a9051d123ce7a5751d21 | refs/heads/master | 2021-01-25T10:08:00.584478 | 2017-05-17T21:32:31 | 2017-05-17T21:32:31 | 90,673,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,875 | h | static_shader_program.h | #pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define GLM_SWIZZLE_XYZW
#include <glm/glm.hpp>
#include "shader_program.h"
class StaticShaderProgram : public ShaderProgram {
public:
StaticShaderProgram() {}
bool initShaderProgram();
inline void set_W_matrix_uniform(const glm::mat4& W) const... |
3513704e959af035b03fb61e7bda06d0dff794f1 | 1b6b5f630696eb5ca848399a7cf8910ebc5d3fc2 | /skinnyleetcode/canPermutePalindrome.cpp | d591f1a235e8e10315caa5f750db9a72d78353e4 | [] | no_license | hmofrad/CodingPractice | bde55f7616d44f20aaaf544cf3c88b37f05651a0 | 7f642e4b9a2e3db0fe54ba66e8d3bf98b8407dce | refs/heads/master | 2022-12-10T03:49:06.226039 | 2020-09-02T02:48:29 | 2020-09-02T02:48:29 | 63,923,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,040 | cpp | canPermutePalindrome.cpp | /*
* https://leetcode.com/problems/palindrome-permutation/
* (c) Mohammad Hasanzadeh Mofrad, 2020
* (e) m.hasanzadeh.mofrad@gmail.com
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
class Solution {
public:
bool isPalindrome(std::string s) {
... |
2c21235157809caaa8332dc0870ac20000e5ff91 | 0425662335cdf8a73330412ac2d7c67b4a766300 | /AST/type.h | 1b0f276f96045b7ffadd0b5c2567e30c6b0bbaf8 | [] | no_license | sopilnyak/mipt-compilers | 185a492ab0fc519ed15dc10ca5bef872e0c0c9c1 | 51fc376b30acdba4691b19bf65e8f8c49c327aad | refs/heads/master | 2021-08-23T14:08:06.912964 | 2017-12-05T05:50:36 | 2017-12-05T05:50:36 | 104,077,978 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,385 | h | type.h | #ifndef MINIJAVA_TYPE_H
#define MINIJAVA_TYPE_H
#include "id.h"
#include "visitable.h"
#include <string>
namespace AST {
enum TypeValue {
T_INT_ARRAY,
T_BOOLEAN,
T_INT,
T_CLASS
};
class IType : public Visitable
{
public:
std::string type_name_;
Ty... |
683e2abea0afea5586161045ad34b03938f5fff6 | 21f01f0ea7092df49d5f711ab627dc5628e09d49 | /Direct3D_00/Direct3D_00/cScene_00.h | 1bf1779fac4835e9e50131109adcd6db90b3b8f0 | [] | no_license | JangMiKyung/DX2_pf_ver_2 | 9a44384b8334e7a15dc2daa4b757b728ea44a7f2 | f3a919ae2c55a4fbfc1c5805d1070b575d164150 | refs/heads/master | 2020-06-14T03:32:52.045025 | 2016-12-04T02:18:30 | 2016-12-04T02:18:30 | 75,512,650 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 1,506 | h | cScene_00.h | #pragma once
#include "cScene.h"
//FVF??
//FVF는 flexible Vertex Format 의 약자로
//D3D 에서 정해져 있는 정점 포맷 중에서 사용자가
//임의로 선별해 새로운 정점 포맷을 정하는 방법이다.
//1. 포지션 정점의 좌표 x,y,z (float) : D3DFVF_XYZ
//2. RHW(float) : D3DFVF_XYZRHW
//3. Blending Weight Data 결합 가중치 (float) : D3DFVF_XYZB1 ~ D3DFVF_XYZB5
//4. Vertex normal 정점의 ... |
ba08e1b6865e3534696d73bbd31fa52c775116e7 | f6fd5f8bcda62e2b9c3c2b0267c8245100316a10 | /codechef/MarchLong/PSHTRG.cpp | 7b8769c50c315a942c3e52b8f6fd6ef0aa0937db | [] | no_license | hymsly/CompetitiveProgramming | 9f292673dd6b1809deb354b9d9b0e85c820201f1 | daf91095fab74e5a4f6441e34263ea3db1290d4a | refs/heads/master | 2021-07-24T09:42:33.589976 | 2020-05-19T14:26:58 | 2020-05-19T14:26:58 | 172,566,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | PSHTRG.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<ll> T[262144];
ll N=1;
vector<ll> merge(vector<ll> a,vector<ll> b){
vector<ll> ans;
int i=0,j=0;
while(i<a.size() || j<b.size()){
if(i==a.size()) ans.push_back(b[j++]);
else if(j==b.size()) ans.push_back(a[i++]);
else{
if(a[i] < b[... |
9576852bf78ca492089f3fe067847cccfe454b40 | c208689db533cb1f30b9ffd767be24583c59f80f | /viewer/plugins/drawboundingbox/drawboundingbox.cpp | f3d82ffae4aa200c9447b1654e0804dd7ef27962 | [] | no_license | elCrespo16/g | 92b4553bd05d2989f9becaf37457071ad0b8d594 | cfa0467cb58ba673852cf6f41a81f1168dd6183a | refs/heads/master | 2023-02-04T18:08:31.507231 | 2020-12-14T17:46:53 | 2020-12-14T17:46:53 | 299,537,183 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | drawboundingbox.cpp | #include "drawboundingbox.h"
#include "glwidget.h"
void Drawboundingbox::SetUpShaders()
{
vs = new QOpenGLShader(QOpenGLShader::Vertex,this);
vs -> compileSourceFile("./ejercicio1.vert");
fs = new QOpenGLShader(QOpenGLShader::Fragment,this);
fs -> compileSourceFile("./ejercicio1.frag");
program = new QOpenGLShade... |
c04806978789e0d498ec516cff12e5ee266cb579 | fafdf1e62cf622035ee82666ba6ae7108127d140 | /kynapse7/include/kypathdata/math/cardinaldir.h | c6bf6e169beecc17c650d214f2e6de3792beb32a | [] | no_license | saerich/RaiderZ-Evolved-SDK | 7f18942ddc6c566d47c3a6222c03fad7543738a4 | b576e6757b6a781a656be7ba31eb0cf5e8a23391 | refs/heads/master | 2023-02-12T03:21:26.442348 | 2020-08-30T15:39:54 | 2020-08-30T15:39:54 | 281,213,173 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,766 | h | cardinaldir.h | /*
* Copyright 2010 Autodesk, Inc. All rights reserved.
* Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download,
* or which otherwise accompanies this software in either electronic or hard copy form.
*/
/*! \file
\ingroup kypathdata_math ... |
fd7961133acdef7ac3912fdb57f0a14ad10be579 | 9cbb3af861bbfb738f7adcdbb34339634d29e0f0 | /filip.cpp | e4b19ef130593d57f77f150d4ae4582d66db1278 | [] | no_license | ZebraFarm/OpenKattis | d3fcffd34e0fe87fb5e53ecd75236baea7a3fed5 | b9748fde5547d4c5d596da61867a92eb3d4defc3 | refs/heads/master | 2021-06-21T11:32:18.454409 | 2021-06-16T06:10:35 | 2021-06-16T06:10:35 | 192,035,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | filip.cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
string A,B;
string Ans;
cin >> A >> B;
if(A[2] > B[2]){
Ans = A;
}
else if(A[2] == B[2]){
if(A[1] > B[1]){
Ans = A;
}
else if(A[1] == B[1]){
if(A[0] > B[0]){
Ans = A;
}
else{
Ans = B;
}
}else{
Ans = B... |
ac48f9417f74c6f7091eb3f15c63bbfedc5f1a9a | 2ee540793f0a390d3f418986aa7e124083760535 | /Online Judges/AtCoder/Alsing Programming Contest 2020/a.cpp | 90cd963466678fb00485a811c7864fa6e4e952d0 | [] | no_license | dickynovanto1103/CP | 6323d27c3aed4ffa638939f26f257530993401b7 | f1e5606904f22bb556b1d4dda4e574b409abc17c | refs/heads/master | 2023-08-18T10:06:45.241453 | 2023-08-06T23:58:54 | 2023-08-06T23:58:54 | 97,298,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
#define inf 1000000000
#define unvisited -1
#define visited 1
#define eps 1e-9
#define mp make_pair
#define pb push_back
#define pi acos(-1.0)
#define uint64 unsigned long long
#define FastSlowInput ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define d... |
6ebfa586aa255e00b83d3c76cb0a09e06f20aa81 | 5d24f800ad35397699dac7bf48f1aff9e256e552 | /Kamek/src/firelaser.cpp | fa240d06018a567ebef323e84cfd979b7e95e53f | [
"MIT"
] | permissive | Danster64/NSMBWer | 861c26e7440ce56af6227051224588d0141d94f7 | 05dae4ddf04745d389923670311de437d2df825c | refs/heads/master | 2022-02-12T09:10:34.846693 | 2021-10-11T05:56:06 | 2021-10-11T05:56:06 | 236,567,638 | 5 | 5 | MIT | 2022-01-30T01:47:00 | 2020-01-27T18:54:51 | C++ | UTF-8 | C++ | false | false | 2,336 | cpp | firelaser.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
class daFireLaser_c : public dEn_c {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
static daFireLaser_c *build();
int timer;
float spitspeed;
char direction;
u64 eventFlag;
USING_STATES(daFireLaser_c);
DECLARE_STATE(pewpewpew);
};... |
0b6f171ff469f18c5897070df8ec0d6168541248 | ffb9b6b789f77bfdf95dcc3a479ed5dc13a28249 | /IpcDelegate/AtomicInt.h | 8b2603414a0ebe50d01b96dfdc48c07820d1467c | [
"MIT"
] | permissive | antonplakhotnyk/ipcdelegates | 1ba23adeb875d2ebed2762d77dc3fe5b4e1f744e | 0fc30118747596035fd13bf1dd55fa8c61fd1ad5 | refs/heads/master | 2021-01-11T06:22:56.169815 | 2016-10-05T16:12:26 | 2016-10-05T16:12:26 | 69,951,114 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | h | AtomicInt.h | #pragma once
//#include <atomic>
//
//class AtomicInt
//{
//public:
//
// AtomicInt(int val):m_val(val){};
//
// inline void ref()
// {
// m_val.fetch_add(1);
// }
//
// inline bool deref()
// {
// return (m_val.fetch_sub(1)!=1);
// }
//
// inline int load()
// {
// return m_val.load();
// }
//
// inline int exchan... |
eb7ac451f0236581983fbda5508d61d07a9cdb7d | f83f4b7fd0ddc90e8b32b6471df56b5c8cc5757a | /MeshTools/FESmoothSurfaceMesh.cpp | 946a165669fd5445cb168fd267e429e232737119 | [
"MIT"
] | permissive | febiosoftware/FEBioStudio | e2e9c018247fd09dd779ea6cab811f45b5a031bd | d11e97ab3af4981196c7187d18915e3656c47e2d | refs/heads/develop | 2023-09-01T03:39:19.777596 | 2023-09-01T01:15:28 | 2023-09-01T01:15:28 | 271,643,351 | 49 | 23 | MIT | 2023-06-15T18:47:52 | 2020-06-11T20:44:57 | C++ | UTF-8 | C++ | false | false | 5,335 | cpp | FESmoothSurfaceMesh.cpp | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... |
b739fce109f963e7e7da039b3f9d9c6ba2ddad95 | 98b1e51f55fe389379b0db00365402359309186a | /homework_6/problem_2/10x10/0.115/T | 59a9159b28deb618bf4a9b685697df08be9ad840 | [] | no_license | taddyb/597-009 | f14c0e75a03ae2fd741905c4c0bc92440d10adda | 5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927 | refs/heads/main | 2023-01-23T08:14:47.028429 | 2020-12-03T13:24:27 | 2020-12-03T13:24:27 | 311,713,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,074 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
af80169d5944dd02eac1c7f5a88afee64b036dd7 | a8b08575d93904e2bf48b591f8c9ef43b014769f | /SimulacionBingo/jugador.h | 0b732e4a721186d1d8f3efd5896d1a76dfd5d5fa | [] | no_license | Jarc97/SimulacionBingo | 5466bde4598350f62a86ab2ffbb02951a72be9d3 | b69876fc18f22cac49af4c0182e546484ff897a2 | refs/heads/master | 2021-07-13T15:48:43.851593 | 2017-10-18T02:12:50 | 2017-10-18T02:12:50 | 105,354,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | h | jugador.h | #pragma once
#include <iostream>
#include <sstream>
#include "Matriz.h"
#include "TableroBingo.h"
using namespace std;
class jugador{
private:
int numeroJugador;
int cantCartones;
Matriz **cartones;
public:
bool existeGanador();
void setNumero(int n);
Matriz** getCartones();
int getCantCartones();
void setTi... |
334572d4ffa895f3bcec6fb6775b8cd2c3a0a700 | 7f0688381353ba6e2cb7bd875b65cf82746ef947 | /LeetCode/Minimum Window Substring/main.cpp | 81e8ccaf624d578ae564adfc940430f108008490 | [] | no_license | croaxx/ProjectEuler | cf7ad45d5e14dbf474049899ab73f183e1bebaf4 | 61afb52c909d3024b1e345490bbc1eec0ae7fe9b | refs/heads/master | 2022-02-26T06:36:25.130321 | 2022-02-12T14:55:00 | 2022-02-12T14:55:00 | 70,401,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,754 | cpp | main.cpp | // Problem description: https://leetcode.com/problems/minimum-window-substring/submissions/
// Time complexity: O(S+T) - one pass over the string S with expand and shrink windowing
// Space complexity: O(1) - dictionary of ASCII symbols + ints
#include <unordered_map>
using namespace std;
const int INF = INT32_MAX;... |
cb97cd2ac6f70acfced929380a43372eeb758286 | 33124afc125420a6acb08a90a912f3a1a1769632 | /gflags_mutex.h | 82717fae8a3c1a066abd06df1f6a37e713273282 | [
"BSD-3-Clause"
] | permissive | qianlizhixing12/gflags-learn | 5473c7ab4ca011345b1524e00443905a27c8dbea | b8cc781dc759aed76d7a74c376cfaebbcdc12716 | refs/heads/main | 2023-06-20T11:34:01.674721 | 2021-07-24T07:52:46 | 2021-07-24T07:52:46 | 389,035,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,955 | h | gflags_mutex.h | #ifndef GFLAGS_MUTEX_H_
#define GFLAGS_MUTEX_H_
#include <stdlib.h>
#include <pthread.h>
namespace gflags {
typedef pthread_rwlock_t MutexType;
#define SAFE_PTHREAD(fncall) \
do { /* run fncall if is_safe_ is true */ \
if (is... |
7157c6f23f9f01d8305856a6dfa09020fe9747ba | 5b27603a8de4f955948cb69ed46f38741d8d0d7b | /CRU/PropertiesFormClass.h | c34edca7e95f05029292a4ac4078c50a365827e6 | [] | no_license | jasonhargrove/Custom-Resolution-Utility-ToastyX | e867a92f63a7ffbb2abd705155b133e683b6f845 | 77f7fa2dd6b04876fa08eb82125576d9e0073a38 | refs/heads/master | 2021-09-11T19:23:36.813207 | 2018-04-11T12:25:30 | 2018-04-11T12:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,016 | h | PropertiesFormClass.h | //---------------------------------------------------------------------------
#ifndef PropertiesFormClassH
#define PropertiesFormClassH
//---------------------------------------------------------------------------
#include "CommonFormClass.h"
#include "PropertiesClass.h"
#include <Classes.hpp>
#include <Controls... |
1198c048f3a3f85fd83d791249d1c72c2e1b301f | bb02e04bb1a2f9044ab4e2551d5e1e3b41a9b5e4 | /BinaryTreeZigzagLevelOrderTraversal.cpp | 6753a6c350f44b5a84a878d4930480551dcea591 | [] | no_license | be-for-rain/LeetCode | 6df1445d7d4ff529b01bc23703400b49375e9983 | d54b1098e9bbce1320976ced9f0f9419e42cb25d | refs/heads/master | 2021-01-22T07:18:03.803620 | 2015-05-07T12:15:24 | 2015-05-07T12:15:24 | 35,216,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | cpp | BinaryTreeZigzagLevelOrderTraversal.cpp | /*
* Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
*
* For example:
* Given binary tree {3,9,20,#,#,15,7},
* 3
* / \
* 9 20
* / \
* 15 ... |
1a3e165e3ac407818460d7e1411c000acc993c49 | 309c47cad0e7c2f795efe301277869b2bf192cfa | /_resampling/_functions_TH/cast_binary.cpp | 9d0887ca83cfcee533a95328a39fb640e9ba136d | [
"CC-BY-4.0"
] | permissive | sPlotOpen/sPlotOpen_Code | 9d19e0242f2082c1ce47b10fdc4743840861c769 | cf5d2c396c4beeb94064f877a42fa6bef985f983 | refs/heads/master | 2023-02-01T09:59:08.621448 | 2020-12-18T13:01:20 | 2020-12-18T13:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | cast_binary.cpp | // To enable the functionality provided by Armadillo's various macros,
// simply include them before you include the RcppArmadillo headers.
#define ARMA_NO_DEBUG
// [[Rcpp::depends(RcppArmadillo, BH, bigmemory)]]
// [[Rcpp::plugins(cpp11)]]
#include <RcppArmadillo.h>
#include <RcppArmadilloExtensions/... |
bf622f0dfa708ee3492d32d88591dccc8f639f44 | 10a9042a56f6777891d01b5ffb9d0b3d91b4955b | /prjHotel/prjHotel/FacturableFraisFixe.h | 1d81ec9817cf6e865964f4cf3c13118b8324d15f | [] | no_license | oualidGit/HotelRepo | 303e8f28c93b05157e037311ebabeb90e778a965 | 0f144f115dd1cbf17dfd8f49aebb05a90912c3ed | refs/heads/master | 2022-06-18T03:24:48.690594 | 2020-05-04T05:25:35 | 2020-05-04T05:25:35 | 261,085,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | h | FacturableFraisFixe.h | #pragma once
#ifndef __FACTURABLEFRAISFIXE_H__
#define __FACTURABLEFRAISFIXE_H__
#include "elementfacturable.h"
class FacturableFraisFixe : public ElementFacturable{
private:
const int TAXEADD = 7;
public :
FacturableFraisFixe(string le_nom, float le_prix_base, int ordre_imp);
float calculerMontant();
string... |
f9354c36864e251c53af228a276e70f86fcad31b | 458033b6b2a4d35e8fac5128a112d75f1346eacd | /Sort_frequency.cpp | fad210a0ec564fcce375d6c010f421b10cfae1ab | [] | no_license | RajeswarSharma/ProgrammingPuzzles | 469af9cb12b59f0871f86026044399d04902fab9 | 8c094432dce8df26d5b2e64581def53613f7bfa5 | refs/heads/master | 2020-12-11T17:28:29.273701 | 2020-08-15T15:16:13 | 2020-08-15T15:16:13 | 233,912,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,768 | cpp | Sort_frequency.cpp | #include <iostream>
using namespace std;
/*
insertion sort
*/
void Sort(int *arr,int n)
{
int temp;
int j;
for(int i =1 ;i<n;i++)
{
j=i-1;
temp=arr[i];
while(temp<arr[j]&&j>=0)
{
arr[j+1]=arr[j];
j--;
}
arr[j+1]=temp;
}
}
/*
void Sort2D() sort t... |
ba7170c52429abe0ad9003a1678723db216eadd5 | b85d28cdd5ae653e6122b913e06fe0ed41d73b6e | /51nod/1596.cpp | 09360c988823cf6a50896a6ef347f10d81e4e4b4 | [] | no_license | a62625536/ACM | 46b19d8b43dad857629d5420cafb1d82bd8c3fa8 | 9dcc28a9d96e27f6aa50aeeb4e03324b240ec142 | refs/heads/master | 2021-09-18T15:55:02.765547 | 2018-07-17T01:46:30 | 2018-07-17T01:46:30 | 120,172,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | 1596.cpp | #include<bits/stdc++.h>
using namespace std;
int n,a[1100005] = {0};
int main()
{
ios::sync_with_stdio(0);
cin >> n;
for(int i = 1;i <= n;i++)
{
int x;
cin >> x;
a[x]++;
}
for(int i = 0;i <= 1100000;i++)
{
a[i+1] += a[i]/2;
a[i] %= 2;
}
int a... |
abd4b486099c987962d836166f7660846d5966fd | 5fb6b0c27e231379f4aa05f7a9268a28dd9cc496 | /warmup/compare-the-triplets/compare-the-triplets.cpp | e70844c37893aec70c3500b5f42fc75798aa0e53 | [
"MIT"
] | permissive | Rholais/hacker-rank | c3a47595454f62eeb4bce5c5baead05bb4d4f758 | 3d2a352a92998454d13da7db8695c0768f818443 | refs/heads/master | 2021-01-01T17:51:34.976909 | 2017-07-28T07:07:11 | 2017-07-28T07:07:11 | 98,179,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | compare-the-triplets.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
vector<unsigned> a = { 0, 0, 0 };
vector<unsigned> b = { 0, 0, 0 };
cin >> a[0] >> a[1] >> a[2] >> b... |
13c9fb434ce4f2107f770d6e5b5391118a73b597 | 4578812c8d55c8fdd305fb2ac7ee35fed53cd033 | /exprtmpl/sarray1.cpp | 245975324e5925be2c62c2a93e214c2b85d532da | [
"LicenseRef-scancode-other-permissive"
] | permissive | ywen-cmd/C-Templates | bda53a9c967631742672439bf04be837ee266d80 | 3960bd4e852ed0d3b4db5203f4d125b4a725dd48 | refs/heads/master | 2023-06-12T00:15:03.342044 | 2021-07-04T06:41:19 | 2021-07-04T06:41:19 | 382,781,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | cpp | sarray1.cpp | /* The following code example is taken from the book
* "C++ Templates - The Complete Guide"
* by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002
*
* (C) Copyright David Vandevoorde and Nicolai M. Josuttis 2002.
* Permission to copy, use, modify, sell and distribute this software
* is granted provi... |
cbc4c2c8fb1b282b047b3678155dbb01c74276db | 286a1f86f6045ea910746234037048c90bbd7b6e | /Parcial2/RadioButtons/ai.cpp | 3bc4ce44723b2860f11b021a4cbfa192cdd27e0a | [
"Apache-2.0"
] | permissive | feguedi/dispositivos_moviles | ad12123fa1cced42024692f2f97b72aded4a84aa | 8fcd1dc73b5987226c0ee386bb8a6db6a839eeb3 | refs/heads/master | 2021-08-20T09:10:46.993221 | 2017-11-28T18:28:58 | 2017-11-28T18:28:58 | 100,408,034 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,195 | cpp | ai.cpp | #include "ai.h"
#include <QDebug>
Ai::Ai(QObject *parent) : QObject(parent), msg("No has seleccionado algún animal")
{
}
QString Ai::setMessage(QString ac, QString vol, QString ter)
{
if()
{
}
return msg;
}
QString Ai::setPers(QString ac, QString vol, QString ter)
{
if(ac == 0 && vol == 0 && ter... |
ff13d585f35f744db769406e70801af23f71320f | d69c48c9bbf90eb6ff0ee3b9852f310db1ca3e1b | /toolsrc/include/StatusParagraph.h | 1386bbdf4495d540bb7991a9acdf6175ca54badf | [
"MIT"
] | permissive | martin-traverse/vcpkg | 69adae741d5426e9f4fb9a5853381984aa4bd9a7 | da09a8136d32890ab5f3804d9abcc5f9685a30e0 | refs/heads/master | 2022-11-09T10:09:06.286239 | 2017-03-09T22:17:00 | 2017-03-09T22:17:00 | 84,499,040 | 0 | 0 | NOASSERTION | 2022-11-04T10:27:45 | 2017-03-09T23:41:26 | CMake | UTF-8 | C++ | false | false | 756 | h | StatusParagraph.h | #pragma once
#include <unordered_map>
#include "BinaryParagraph.h"
namespace vcpkg
{
enum class install_state_t
{
error,
not_installed,
half_installed,
installed,
};
enum class want_t
{
error,
unknown,
install,
hold,
deinstal... |
0d4d5d16546dfbb58770e69d2f046ba1292251ac | 1e730ca5fab13013ad44a2c81dda517451568b26 | /Robot/Robot.ino | eb4316e44a761b170ab15cd5e994a5e7274d14f9 | [] | no_license | lostangles/Robot | 1675d5f6b5158cae1b552b69a3718d4d0e34b712 | ae798f4456fc3fe657dfacf76cc3042cd424a3df | refs/heads/master | 2021-01-11T00:32:21.147245 | 2016-11-16T22:11:27 | 2016-11-16T22:11:27 | 70,516,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,087 | ino | Robot.ino | #include <Wire.h>
#include <LiquidCrystal.h>
#include "Arduino.h"
#include <math.h>
#include "SharpIR.h"
#include "QTRSensors.h"
//Line sensor defines
#define Kp_line .13 // experiment to determine this, start by something small that just makes your bot follow the line at a slow speed
#define Kd_line 1
#define Ki... |
a07e5ac2084cec1d4f07f6b2c3ad141da110325a | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir7942/dir8062/dir8063/dir8254/dir11710/file11748.cpp | de5f72ae337867031186a9d7e0e45dfde1ff1056 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file11748.cpp | #ifndef file11748
#error "macro file11748 must be defined"
#endif
static const char* file11748String = "file11748"; |
4341dfcd3d67a9d7891771d7cd1517eeea991735 | 68e79139e39ad2330b5157b60edbae1e02c778d9 | /src/core/transformations/map_height.h | 11a4a93ef90bbdb02a9a43a45c82eab9826715b5 | [] | no_license | pandaive/pto_takifajnyprojekt | 2bf59e42ede85acac1f32dae32e87fc664a3720f | 750aa8255e965d688c6c5b63df76ba8291b91433 | refs/heads/master | 2021-01-23T04:40:03.333695 | 2016-01-28T02:59:41 | 2016-01-28T02:59:41 | 43,886,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | map_height.h | #ifndef MAP_HEIGHT_H
#define MAP_HEIGHT_H
#include "transformation.h"
class MapHeight : public Transformation
{
public:
MapHeight(PNM*);
MapHeight(PNM*, ImageViewer*);
PNM* transform();
};
#endif // MAP_HEIGHT_H
|
57a6f15eee2469eb0b18d1b93c5d3b3c6d6e3752 | 9cdd1751bc27310f486427aaaae901ca06b79003 | /be/src/runtime/debug-options.h | 4b723b3096c6ab3c7c56eb5fb70c71ee50dc4b2c | [
"Apache-2.0",
"OpenSSL",
"bzip2-1.0.6",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-google-patent-license-webrtc",
"PSF-2.0",
"BSD-3-Clause",
"dtoa",
"MIT",
"LicenseRef-scancode-mit-modification-obligations",
"Minpack",
"BSL-1.0",
"LicenseRef-s... | permissive | apache/impala | bb9970c64a43824950ec5b69f2ef4b50158a1e8a | b718d63860356a04814e07d91711c3c748b3e769 | refs/heads/master | 2023-09-03T04:29:12.639452 | 2023-06-07T23:51:15 | 2023-08-30T04:56:51 | 56,128,733 | 985 | 475 | Apache-2.0 | 2023-08-31T14:15:44 | 2016-04-13T07:00:08 | C++ | UTF-8 | C++ | false | false | 2,513 | h | debug-options.h | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
202972bb41b0afb1866b526ac5b3c2b06777baef | a4c86e1aa7573ec15a87aaf954c8b4f64d512d56 | /Chapter8/H8.7.cc | f7f5e8b5b83192b38d6afe138bf01b555c4ad9d6 | [] | no_license | ghostxiu/CplusplusPrimerPlus6thEditions | b0916b5ac0f5adfd8b6f4daa40d3a4c996eb1592 | c7bd797cf2028eb31b20acc2a7511260e04f5b67 | refs/heads/master | 2020-07-05T17:02:47.512468 | 2018-01-19T03:32:52 | 2018-01-19T03:32:52 | 73,989,525 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cc | H8.7.cc | //修改8.14,显示数组总和
#include<iostream>
using namespace std ;
template<class T>
T sum_arr(T arr[] , int n );
template<class T>
T sum_arr(T *arr[] , int n ) ;
struct debts
{
char name[50];
double amount ;
};
int main()
{
using namespace std ;
int things[6] = {12,31,103,301,310,130};
debts E[3] ... |
ff598717188dfaf5171141032541eb0369bb029f | 48c9e33a480e531bf5edfa278a64f47aac7a26c3 | /AP_spring2016_CPP_Python/HW2/3/3-2/main.cpp | 496f8be54a2769eb8ac5ab055ab8e50dce198ece | [] | no_license | mahi97/AUT-HomeWorks | d640c50e64b4233bc3edd0b2aa5e0844c8d61538 | 2e7c9c8cea8419831d0b9e990620a9278ad185ce | refs/heads/master | 2020-12-20T04:37:13.144511 | 2018-09-27T10:14:54 | 2018-09-27T10:14:54 | 73,499,580 | 5 | 0 | null | 2018-09-27T10:14:55 | 2016-11-11T17:57:58 | C++ | UTF-8 | C++ | false | false | 1,954 | cpp | main.cpp | #include "base.h"
int row1{}, col1{}, row2{}, col2{};
template<typename T1, typename T2>
auto dynamicMultiply(T1 **_first, T2 **_second)->
decltype(_first[0][0] * _second[0][0]);
int main() {
std::ifstream file {"matrix.txt"};
std::string mat{};
int **elemnts;
double **elemnts2;
if(file.i... |
ade787ba7566c0aa9959b9b7ae6a8fae055dda4e | 7d830df06ab35cabba058602c072573c042a371a | /186-Reverse Words in a String II.cpp | 5182bea6b1bb4402cfef78ba96e46fdf010e3c98 | [] | no_license | vinsonleelws/LeetCode | 26b04f5a9e05f2093e1207ab8760986220564355 | 92275a92ef68d6726b84218c01dab9da9d05d6d6 | refs/heads/master | 2020-03-12T21:13:00.890172 | 2018-10-22T03:24:39 | 2018-10-22T03:24:39 | 130,823,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | cpp | 186-Reverse Words in a String II.cpp | Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.
The input string does not contain leading or trailing spaces and the words are always separated by a single space.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Could you do it in-place... |
568eab1b825eaf8c174c8f331fd55a6ddf1961cb | eefc878d0790c14d74b4b8e8ce977653bcf6ae69 | /tests/mainTest.cpp | 54d3c62cb31626fd676ceceb065fb936e909ff5b | [
"MIT"
] | permissive | Dandigit/wombling | 6680606bd127530e43017e90dd35641a2aa6c712 | 26c3c3252edeb37264f1c5f8564a19620bc2ba29 | refs/heads/master | 2020-03-24T19:30:34.668310 | 2018-08-14T10:51:17 | 2018-08-14T10:51:17 | 142,930,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | mainTest.cpp | #include <iostream>
#include "../wom/womcolor.h"
#include "../wom/womtime.h"
#include "../wom/womio.h"
int main()
{
wom::timer t;
wom::setColor("red");
std::cout << "Alert! Alert!\n";
wom::setColor("green");
std::cout << "Oh - it's OK now.\n";
wom::resetColor();
std::cout << "Back to normal.\nExecuted in " << t... |
e0fa50e4f23569dd614c7109d52e0bcc8c2a0f8f | b806c8c338688effb0b31b73967c1d14b81c2c70 | /stdlib/public/stubs/MathStubs.cpp | f6bc8f271320076545a283a403b5d2a350488327 | [
"Apache-2.0",
"Swift-exception"
] | permissive | TianWenguang/swift | 38989321a7f5baef28f2b9ff644419c9dce06795 | 3124f6ad5082ec0811c2367a59d099884ee033fa | refs/heads/master | 2020-03-10T19:11:33.271063 | 2018-04-14T02:30:05 | 2018-04-14T02:30:05 | 129,542,740 | 1 | 0 | Apache-2.0 | 2018-04-14T18:15:09 | 2018-04-14T18:15:09 | null | UTF-8 | C++ | false | false | 4,063 | cpp | MathStubs.cpp | //===--- MathStubs.cpp - Swift Language Runtime Stubs ---------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
69d17aa58baa226208b02dec95335547c55f9d9b | 619d7a86226f34cd06535720d1421f42d80a31dd | /Functions.cpp | 028d8f12196396781c4614ae216785556afb8067 | [] | no_license | PhamHaiThang/INT2202-21-DINO-RUN | d85f4bdc8060896751835a6cd18f7b4b53cb9d5c | c9bb79831d335b895ac1497a9aa4dfa9fa93681a | refs/heads/master | 2020-05-24T02:03:39.607184 | 2019-05-16T14:44:55 | 2019-05-16T14:44:55 | 187,046,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,912 | cpp | Functions.cpp | #include "Functions.h"
#include "Score.h"
#include <iostream>
#define standing 0;
#define jump 0;
#define running1 1;
#define running2 2;
#define crouch_jumping 3;
#define crouch_running1 4;
#define crouch_running2 5;
using namespace std;
GameObject::GameObject(GameWindow &window,const vector<vector<vector<int>>> &re... |
2c16e64c0ffbcc83a3535e5c64ce8123f45a283b | 546b701d6b9c42e008ed29f9bb1851d142753074 | /code_corpus/manual/sort_4.cpp | 4ef0f0ba8c0889f5fb910c2ad044b27830068bde | [] | no_license | rushimg/SVM_code_completion | f5a3308796c4fde5c00d4e38bb5fd2d2b7b71165 | 37787a10dd56db8cd8e52b81d285f90e1a5c68be | refs/heads/master | 2016-08-05T16:01:40.944530 | 2014-08-27T19:19:38 | 2014-08-27T19:19:38 | 14,997,376 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 681 | cpp | sort_4.cpp | void SortAlgo::quickSort(int* data, int const len)
{
int const lenD = len;
int pivot = 0;
int ind = lenD/2;
int i,j = 0,k = 0;
if(lenD>1){
int* L = new int[lenD];
int* R = new int[lenD];
pivot = data[ind];
for(i=0;i<lenD;i++){
if(i!=ind){
if(data[i]<pivot){
L[j] = data[... |
2574b58e5cfec44542e7af19f1983d5c309043d2 | b5fb48e554741c994805e868d842bc5a78bfa571 | /CS223 - Advanced Datat Structures/homework/LMel02/DTList.h | 1910df72468fbc4b8d7430ddc725196e8b07de5e | [] | no_license | PoloMelendez/CSUB | 0d71c81180b67a3240cd93bbc4cfb4cc14447e35 | 12b82fe995891ed81aab43d0f982f65ee8d9aa5c | refs/heads/master | 2020-02-26T13:28:24.142703 | 2017-07-06T19:45:47 | 2017-07-06T19:45:47 | 62,668,195 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | DTList.h | #ifndef DTLIST_H
#define DTLIST_H
#include<iostream>
#include<iomanip>
#include<cassert>
#include<cstring>
using namespace std;
template <class T>
class DTList
{
protected:
T * element;
int count, cap;
private:
void shiftRight( int end );
void expand();
T rand(T lb, T ub);
public:
DTList( int cap... |
59d8d008006ac1dc3066510e8db00095278be77b | 06e26b3c3968febaa90d039d357a0768ed7caa3d | /Day06_20190828/Day06_20190828/Monster.cpp | 17f601dc393a09b507133739d6f4891bc9e1bb90 | [] | no_license | choiwsx/STLProgramingPratice | c8071eabf351ee2358c32387d46d1f6e589a0b80 | ad65ec86d59f30bd5a6a10ee1ae40d5564505dff | refs/heads/master | 2020-07-06T17:46:35.496022 | 2019-08-28T07:04:44 | 2019-08-28T07:04:44 | 203,094,809 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | Monster.cpp | #include "Monster.h"
#include <iostream>
using namespace std;
Monster::Monster()
{
}
Monster::~Monster()
{
}
void Monster::BeginPlay()
{
cout << " Monster::BeginPlay()" << endl;
}
void Monster::Tick()
{
cout << " Monster::Tick()" << endl;
}
void Monster::Render()
{
cout << " Monster::Render()" << endl;
}
|
c8cfb870df355210aa40cc0f48a262f97f74a2f8 | 696ec5c9f43b96304cc85c38f94e3d33e886fa71 | /Chapter7/7_3a/7_3a.cpp | cf9b27d2d886797ca6ced033a750843d1959c649 | [] | no_license | leeyunhome/tbcpp_review2 | 2eddce8cccd4818cbea334cd0baffb4f89f63acb | 6e9783a5ffa19301b22ca94a7ea3e35977c9e7c7 | refs/heads/master | 2020-12-12T20:40:42.239865 | 2020-02-29T13:02:24 | 2020-02-29T13:02:24 | 234,224,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | 7_3a.cpp | // 7_3a.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
using namespace std;
//void foo(int (&arr)[5])
void printElements(int arr[])
{
cout << arr << endl;
}
void printElements(const std::vector<int>& myArr)
{
}
int main()
{
std::vec... |
bfae07f549d4f37b9074a1eaf1b79b0952c7f465 | 17711096359106c13da5875153eccc308b765003 | /cython_tassl_wrap/cpp_linux/test_native.cpp | 7076573179bd6ad27b78a394987903d977314df7 | [
"MIT",
"Python-2.0"
] | permissive | FISCO-BCOS/python-sdk | 625ae9e6d601237c5a4684e0fe94629dfa6fd9c1 | 5fa6cc416b604de4bbd0d2407f36ed286d67a792 | refs/heads/master | 2023-07-25T22:35:37.472322 | 2023-07-13T10:04:56 | 2023-07-13T10:04:56 | 194,997,013 | 68 | 71 | MIT | 2023-03-08T07:53:04 | 2019-07-03T06:55:05 | Python | UTF-8 | C++ | false | false | 3,342 | cpp | test_native.cpp | /*
This lib is a tls client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/)
This lib is free software: you can redistribute it and/or modify it under the
terms of the MIT License as published by the Free Software Foundation. This project is
distributed in the hope that it will be useful, but WITHOUT ANY WARR... |
af45bb44f03a0c615e65958865862f0375e965ce | e7c48ae8678de798e8b10765c76f6c6b9282dd8b | /src/SideMoveList.h | 11cd07312e90d8769dbddb09821d6cefc84c1519 | [
"Apache-2.0"
] | permissive | dss-bridge/newdss | 7a4e9464ca3540721cbbaa4732edb136ba182cee | 5698e1bd7314bf910472f8e25fc2dac710543236 | refs/heads/master | 2020-12-12T23:16:59.873110 | 2016-07-07T21:04:42 | 2016-07-07T21:04:42 | 48,687,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,159 | h | SideMoveList.h | /*
SDS, a bridge single-suit double-dummy quick-trick solver.
Copyright (C) 2015-16 by Soren Hein.
See LICENSE and README.
*/
#ifndef SDS_SIDEMOVELIST_H
#define SDS_SIDEMOVELIST_H
#include <string>
#include <vector>
#include "Header.h"
#include "Holding.h"
#include "DefList.h"
#include "Hash.h"
#include ... |
f87bd87a53224f1284fbef6a4172fc64d9aa79bd | 7f4b30fe162e0c57a15529c122c6d1d7c1f06ffe | /initial/arduino/controller_logicBoardv4/controller_logicBoardv4.ino | 71405a41abdb3f39611cc849ae9163bb41957bab | [] | no_license | seeimadeit/z80 | 28527f1b7de70a8e2bc22276e6daef887ee405e8 | dac95e80031555b74bf8e913c6aed3330becf38a | refs/heads/main | 2023-02-16T07:57:18.210773 | 2021-01-08T20:40:45 | 2021-01-08T20:40:45 | 312,393,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,476 | ino | controller_logicBoardv4.ino | #define SERIAL_TX_BUFFER_SIZE 2
#define SERIALPORT 1
#define VERSION "\nSerialPort Ready v0.0.0,Device id 0x01"
// IO device port 0x01
uint8_t character = 0; // character to send
int characterpause = 0;
#define keypressdelay 100
int xcontrol = 1; // xon=char(19), xoff=char(17). xcontrol=1 = enabled
#de... |
f1523e20ce10b188158f3d4889e7184a7f395cb0 | 15e79f904954c6456eebfad1eb109a3c29d61c5a | /src/test/libDynamicClassLoader/src/AudioProcessor.cpp | 706b6e7cbc78a253b8e505cd7fa20f31139e63db | [] | no_license | Darksider7/terkos | e8ded3f2f45e7132c2f74a1936b6879bce92f668 | 593ad04a31fd09c10776337c847e9a171212e80d | refs/heads/master | 2016-09-06T11:51:53.588709 | 2013-01-21T06:58:31 | 2013-01-21T06:58:31 | 37,706,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,341 | cpp | AudioProcessor.cpp | //
// This file is part of Terk and TerkOS.
//
// All Terk and TerkOS source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Terk and TerkOS source code, software and/or
// technologies under different licensing terms should co... |
4dbbf8eb3403c4c5ade0bf5c73743502c610e72c | be4952850ad6a8b0abe50de671c495c6add9fae7 | /codeforce/CF_1004A.cpp | a13d9afe27230f685b524547940ba351e9908be5 | [] | no_license | ss5ssmi/OJ | 296cb936ecf7ef292e91f24178c9c08bd2d241b5 | 267184cef5f1bc1f222950a71fe705bbc5f0bb3e | refs/heads/master | 2022-10-29T18:15:14.290028 | 2022-10-12T04:42:47 | 2022-10-12T04:42:47 | 103,818,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | CF_1004A.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,d,s[100],t=2;
cin>>n>>d;
for(int i=0;i<n;i++){
cin>>s[i];
}
for(int i=0;i<n-1;i++){
if((s[i+1]-s[i]) > 2*d){
t+=2;
}else if((s[i+1]-s[i]) == 2*d){
t++;
}
}
printf("%d\n",t);
return 0;
}
|
a92ce7fa8a54436cbe6a2993a9ca2137949aab20 | 9fe4996abce476cfe5501a10c52d9793bb7f8682 | /Template/李进/我的代码/数学/基础乘幂_因数分解/快速幂.cpp | 0d5be69505d7e047996dbb2addc74e54e875d642 | [] | no_license | dhs347/Dream | e63c6322fef124676e0389830e4ce5ab4d4bdf21 | 7825e0f082f6538989202490abb9cd1dd95163e5 | refs/heads/master | 2020-08-01T21:25:44.942688 | 2019-09-26T13:59:11 | 2019-09-26T13:59:11 | 211,120,816 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 161 | cpp | 快速幂.cpp | inline ll QM(ll a, ll n, const ll & p) {
ll ans = 1;
for (ll tmp = a; n; n >>= 1) {
if (n & 1) ans = ans * tmp % p;
tmp = tmp * tmp % p;
}
return ans;
}
|
32683dddfc5df8dd24a75092300528c9254f58fb | b1df1b955a0554da1d21ceeea57fb0f2fbb36a2e | /Spelprojekt/Spelprojekt/RenderTarget.cpp | 2215539def141fb8f67b7ab4cc81a5709ef2cac7 | [] | no_license | maze516/Game-Of-Cones | 75a163fa2ec28192e2aafd85b6db075b52f8304b | bdfe84499ee2476b212a895ed17af416dc9ea582 | refs/heads/main | 2023-06-09T09:11:54.466092 | 2021-06-27T22:32:58 | 2021-06-27T22:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,456 | cpp | RenderTarget.cpp | #include "RenderTarget.h"
#include <iostream>
RenderTarget::RenderTarget(ID3D11RenderTargetView* rtv, ID3D11ShaderResourceView* srv, ID3D11DepthStencilView* dsv, D3D11_VIEWPORT viewport) : bufferCount(1), viewport(viewport), dss(nullptr)
{
this->rtv = new ID3D11RenderTargetView * [1]{ rtv };
this->srv = new ID3D11Sh... |
756d3b549e1a0be0be653c0245892ca153bb798b | 58496be10ead81e2531e995f7d66017ffdfc6897 | /Sources/Common/IVarMapImpl.cpp | 46cf9ed0a6cc1747c1f273e665ea5d92462bcdf7 | [] | no_license | Diego160289/cross-fw | ba36fc6c3e3402b2fff940342315596e0365d9dd | 532286667b0fd05c9b7f990945f42279bac74543 | refs/heads/master | 2021-01-10T19:23:43.622578 | 2011-01-09T14:54:12 | 2011-01-09T14:54:12 | 38,457,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,476 | cpp | IVarMapImpl.cpp | //============================================================================
// Date : 22.12.2010
// Author : Tkachenko Dmitry
// Copyright : (c) Tkachenko Dmitry (TkachenkoDmitryV@gmail.com)
//============================================================================
#include "IVarMapImpl.... |
0e7629cabccde6beff7e7d73420c5f780014f67d | dd1b4089f638d801698e34b830b2767149b665f6 | /R3BRoot_Source/tcal/R3BTCalEngine.h | 183533a322da650154d436430ebb59110dcb1443 | [] | no_license | ChristiaanAlwin/NeuLAND_Veto | d1c1b41cfb1f4ade2de664188da615b2541d3e7b | ed06682b03b1bd6b2c7ecc2f3be7c62036ef45ee | refs/heads/master | 2021-01-05T19:02:08.598882 | 2020-02-17T13:55:17 | 2020-02-17T13:55:17 | 241,109,623 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,298 | h | R3BTCalEngine.h |
#ifndef _R3BTCAL_ENGINE_
#define _R3BTCAL_ENGINE_
#define MAX_TACQUILA_SAM 7 // 0 .. 7
#define MAX_TACQUILA_GTB 1 // 0 and 1
#define MAX_TACQUILA_MODULE 20 // 0 .. 20
#define TACQUILA_NUM_GEOM ((MAX_TACQUILA_SAM + 1) * (MAX_TACQUILA_GTB + 1) * (MAX_TACQUILA_MODULE + 1))
#define TACQUILA_CLOCK_MHZ 40.002903
#... |
9a247ceb6c5de8b09ba87ae50d4aa5169f6510e0 | 012f0800c635f23d069f0c400768bc58cc1a0574 | /hhvm/hhvm-3.17/hphp/runtime/ext/xdebug/php5_xdebug/xdebug_str.cpp | 04681e20a4822bbf855ec7923409e5583e5b9320 | [
"Zend-2.0",
"BSD-3-Clause",
"PHP-3.01"
] | permissive | chrispcx/es-hhvm | c127840387ee17789840ea788e308b711d3986a1 | 220fd9627b1b168271112d33747a233a91e8a268 | refs/heads/master | 2021-01-11T18:13:42.713724 | 2017-02-07T02:02:10 | 2017-02-07T02:02:10 | 79,519,670 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | cpp | xdebug_str.cpp | /*
+----------------------------------------------------------------------+
| Xdebug |
+----------------------------------------------------------------------+
| Copyright (c) 2002-2013 Derick Rethans |
+---------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.