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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3091915e81f6adf471c4df38254f93661b740d9 | ef4028d8ff4e38fea80a6fefc567bb888dd5290f | /Pool/rush00/classes/A_Physical.cpp | 525b3036f2d104e51a75b823b5a5f656422f438a | [] | no_license | gmarais/Cpp | 8e1418428318a3c22aa02c2abede4f3adfe326f8 | f862f7ecd3d8585dcb90b0a9ea95d6fd72b93ce8 | refs/heads/master | 2020-12-24T16:32:53.377432 | 2016-05-18T00:26:08 | 2016-05-18T00:26:08 | 28,862,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,085 | cpp | A_Physical.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// A_Physical.cpp :+: :+: :+: ... |
05da174e909bcc0b514a123312f7f13ef4a1ed4f | 2800913a2385d7039e815909d77a9d2d34dce926 | /examples/simple/main.cpp | d7f9539264acfe7ebc733a37373ba78c505a13d4 | [] | no_license | beadle/wheel_timer | ee18253b74888fd35cfc6cd95ac4a2953e343ce7 | 2b569c8212d386b43632a4c8dfa5a2386b34d9c5 | refs/heads/master | 2020-03-22T19:46:52.910108 | 2018-07-11T09:16:32 | 2018-07-11T09:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | main.cpp | #include <iostream>
#include "wheel_timer.h"
int main()
{
std::cout << "Hello wheel_timer!" << std::endl;
}
|
2c79dc031d92a80530b4500704d9c2e33f29db94 | 85d692766d062b3346ef8b0b80b16e05b267ede4 | /src/main.cpp | 259aeb1191f0e95f2bf886d037117b5cbd618716 | [] | no_license | vakhrymchuk/roborace | ab0a086fd2dab480ebbeeed40f4cfcb9d7951f6b | 310b5d26c2c2a1beb2ae6e81f8306e1a2f106bf0 | refs/heads/master | 2021-01-10T02:13:58.278795 | 2020-02-03T09:01:23 | 2020-02-03T09:01:23 | 52,906,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,446 | cpp | main.cpp | /**
* @author Valery Akhrymchuk
*/
#include <Arduino.h>
//#include <Wire.h>
//#include <MemoryFree.h>
//#define DEBUG true
#if defined(BLUETOOTH_ENABLE)
#include "RoboraceBluetooth.h"
#elif defined(DISPLAY_ENABLE)
#include "RoboraceDisplay.h"
#elif defined(CONFIG_VALUES_ENABLE)
#include "RoboraceConfigValues.h"
#... |
1423c8ccefee0e134a6cf185137a809f75988556 | 6fe2221b32d76c14cc6a8b025133b7a5604398b9 | /collect then all/game.cpp | 7dc5ebde06089556e2b188922180437066a4bb6b | [] | no_license | VanceZhou/Collect-Them-All | c0a17b8c430d96b1e478725ff198e8e7d36b60d3 | ef0ddb99f9c1515895bf0db869f96d7c0255c19b | refs/heads/main | 2023-04-11T14:49:37.936864 | 2021-04-13T18:49:56 | 2021-04-13T18:49:56 | 357,656,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,603 | cpp | game.cpp | #include "game.hpp"
#include "interface_type.hpp"
#include "view.hpp"
#include "curses_view.hpp"
#include "curses_controller.hpp"
// #include "print_view.cpp"
// #include "view.cpp"
// #include "print_controller.cpp"
// #include "map_segment.cpp"
#include "map_segment.hpp"
#include "print_view.hpp"
#include "print_c... |
205049336dd1378d8b029695198a0908b13b0f80 | 7e492c48f9cfbae6d716aeb82a8a0748a82c6635 | /WeatherModule/qmlhweathermodule.cpp | 27cc5c7887a67fc705f9b6ef789ea35cf058c57a | [] | no_license | ZEPORATH/ConfigurableHMI | 9c8ce5f68765a37b183822121e06f9edc12f556b | 701785744b8adb4ce6c9a0c3a8cd80164ace09cd | refs/heads/master | 2023-03-31T21:07:00.234585 | 2021-03-17T03:20:17 | 2021-03-17T03:20:17 | 347,443,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | qmlhweathermodule.cpp | #include "qmlhweathermodule.h"
QmlHWeatherModule::QmlHWeatherModule(QObject *parent) : QObject(parent)
{
}
|
73430ed7ea72de0b5246253b6cfb2c0b2ea4ed4c | 955bf1af88331bc5e55d1dac908ead3bbc4c70a7 | /interrupt_test/interrupt_test.ino | 4e817504b397eff1db7c8ef82567895bd0604bde | [] | no_license | filipkarlsson/mm_sorting_machine | 27c07bc66524137224fdb5dfc92904def771a577 | 468ce5fea03699388d654a9e70e966b24cd7d1a8 | refs/heads/master | 2021-07-25T01:35:56.332674 | 2017-11-05T17:44:10 | 2017-11-05T17:44:10 | 109,535,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,208 | ino | interrupt_test.ino | /* M&M-sorter
* Use 8 bit-Timer2 for interupt every ms (freq 1kHz)
* for controlling steppers.
*
* Timer0 is used by Delay() micros() etc
* Timer1 is used by Servo.h
*
*/
#include "Servo.h"
// Wheel stepper_pins
#define WHEEL_IN1 8
#define WHEEL_IN2 9
#define WHEEL_IN3 10
#define WHEEL_IN4 11
#de... |
8db3ac933f12f06ad89ed167f955bfe884bf3bfd | bc099abbab99aa6041692ae37e2bd0edd8747135 | /Ejercicios en clase/Dephtbuffer.h | bc7152607092e2ed920014695725fa1789d78a37 | [] | no_license | Jozahandy/Graficas-Computacionales-2017 | bd5144f4dcca99eb3f6f7c2b0a408fae49a68e9e | 57e97d14659d21bc6504677d18792f8b3564c2ed | refs/heads/master | 2021-01-19T14:36:58.490744 | 2017-11-25T05:52:20 | 2017-11-25T05:52:20 | 99,630,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | Dephtbuffer.h | #pragma once
#include <string>
#include <GL/glew.h>
#include <GL/freeglut.h>
class Dephtbuffer
{
public:
Dephtbuffer();
~Dephtbuffer();
void Create(int resolution);
void Bind();
void Unbind();
void BindDephtMap();
void UnbindDephtMap();
private:
GLuint _framebuffer;
GLuint _depthmap;
GLsizei _resoluti... |
a94f7fcd90ce75487a4be143a0f54d3902f4a2cc | 676610bf5f86a8cf8ff92803af476c7c8fff829e | /include/widgets/YLabel.h | 7888c1c3ebb27de9e7fabdce7145113952ea500c | [
"Apache-2.0"
] | permissive | j-tetteroo/kobu | e0e9390f27394bf2c4392bcee025a2bc39ab0642 | 99486ee457c047a3392549bc73935d20bdbdaf93 | refs/heads/master | 2020-05-30T07:20:20.796256 | 2016-10-19T08:07:17 | 2016-10-19T08:07:17 | 68,533,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | h | YLabel.h | #ifndef YLABEL_H
#define YLABEL_H
#include <string>
#include <cstdint>
#include "window/YWidget.h"
namespace kobu {
class YLabel : YWidget
{
private :
String label_text;
public :
YLabel(String text, float x, float y) : labelText(text), YWidget(x,y) {};
};
} // namespace kobu
#endif |
60743f518572bdccb0167770dd58583ce95faf8d | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp | 4d854bfdca1e1f9bbfa0e5427c33df9f4b03d345 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 1,063 | cpp | attribute_executor.cpp | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_executor.h"
#include "i_attribute_manager.h"
#include <vespa/searchlib/attribute/attributevector.h>
#include <vespa/vespalib/util/isequencedtaskexecutor.h>
#include <future>
using search::Attri... |
d4529ee68307b54e1976c750f194fb82bd9e8aa3 | b57c336d191ec197df14f2e632ddba6d7b15e6bb | /utilities.cc | d188a867cfbcf68e5f7c27a3668f065e36f884d3 | [] | no_license | zencoders/ael2lua | c8058a3d16209ac4f1ab1b91d06b25033c04f730 | ca80bfbfd9b32567fc9c9298ed8827f8655527a4 | refs/heads/master | 2021-01-01T17:16:21.252169 | 2012-02-17T18:02:57 | 2012-02-17T18:02:57 | 3,444,358 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,711 | cc | utilities.cc | #include <string>
#include <vector>
#include <sstream>
#include <iostream>
#include <iterator>
#include <algorithm>
#include "utilities.h"
using namespace std;
std::string& ltrim(std::string &s)
{
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
return s;
... |
35403799973cd35c80bd116c42ec1b6e1fc61e8b | 09c46a2414e674d8631731d58c2c17f8268b5a60 | /core/LocalManager/RegisterAtLMRequestHandler.cpp | fac05612c07a78c0b43ff058fb1dccbd2865ef86 | [
"MIT"
] | permissive | siemens/fluffi | 49ea030e4411ed02e60d3a5394c0a32651450598 | 70cd18deff9d688e10ec71a1eb4f38d7f2d581c0 | refs/heads/master | 2022-09-10T00:23:12.051619 | 2022-08-19T13:41:58 | 2022-08-19T13:41:58 | 209,495,395 | 102 | 24 | MIT | 2023-02-19T10:45:36 | 2019-09-19T07:55:43 | C++ | UTF-8 | C++ | false | false | 9,009 | cpp | RegisterAtLMRequestHandler.cpp | /*
Copyright 2017-2020 Siemens AG
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, merge, publish, distribute,
sub... |
fac50f3df0d1102928c56c1dd62ee298e726d324 | cdb2160523b3742ea058ab5c22ebf6e44cb7f87d | /C++/boj/boj5585.cpp | 41bde5e29634fbc18d3aab52f6a522db99413e63 | [] | no_license | ryul99/algorithm-study | 68193471264a8bb249e047c922c2f66144eed6a7 | d64c388ca7d0c3b01e8e8a480f5fc435772f154b | refs/heads/master | 2023-03-06T14:44:24.498487 | 2023-02-23T21:16:35 | 2023-02-23T21:16:35 | 149,987,036 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | cpp | boj5585.cpp | #include <cstring>
#include <string>
#include <cstdio>
#include <iostream>
#include <vector>
#include <map>
#include <utility>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <stack>
#include <queue>
#include <cmath>
using namespace std;
//https://www.acmicpc.net/problem/5585
int main(int argc, c... |
ffde76f3f1df0d8852a6dad4a0aa61a4a5420503 | f658b1b79782726539d06373e259111e9de88c3b | /第一次上机/T3.cpp | 5ebb604b552aa32652213e4b189f6594efa7138b | [] | no_license | Maydaytyh/OOP-Experiment | b67d3b80334cef4afea4a6ea69f0a24a1dd5f227 | 3fa59b6492541a3167806d3c72a84a4ba7693df9 | refs/heads/master | 2020-05-04T04:50:28.644446 | 2019-04-04T05:52:07 | 2019-04-04T05:52:07 | 178,975,105 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | cpp | T3.cpp | #include <bits/stdc++.h>
using namespace std;
#define INF 0x3f3f3f3f
#define maxn 500000 + 5
#define pa pair<ll, int>
#define pi acos(-1)
#define maxm 30000
#define ll long long
#define eps 1e-6
#define mod 1000000007
#define mian main
#define inf 1000000000
#define rep(i, n, m) for (int i = n; i <= m; ++i)... |
21ea85d1c04cccaa2acf9b480b4c648561b49fe6 | 4734bb00e9e051411a8fa76a7624bfbaa9e40239 | /utilities/binning/mim_accpetance.cpp | e603fe32f7f5ae85f4a7942f3deb9e3a6a35cf9e | [] | no_license | kuantumlad/clas12_pip | f6a9504385eae1ee877014081e6c579b337d1ec5 | 194534aab51f2321324aef8c0b9b6af9d2284a7f | refs/heads/master | 2020-03-21T08:11:16.212026 | 2018-07-10T03:17:55 | 2018-07-10T03:17:55 | 138,326,841 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,700 | cpp | mim_accpetance.cpp | #include "TMath.h"
#include "TH1D.h"
#include "TGraph.h"
#include "TCanvas.h"
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <iostream>
TH1D* readTxtToHist( const char* filename, const char* gentype, int nbins, double min_q2, double max_q2 ){
TH1D *h_temp = new TH1D(Form("h_acc... |
020894dd11747320f772d64224971f7f74c3e797 | 73a0f661f1423d63e86489d4b2673f0103698aab | /oneflow/api/python/functional/indexing.h | 4e157ce5e9459168e13cd396e064ffc4e52c4017 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | C++ | false | false | 1,320 | h | indexing.h | /*
Copyright 2020 The OneFlow Authors. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
64077e60121edc905c5bbeff77bf912bcd03b7b6 | d8683af8b36744fb67750d6683de798ab291a98d | /cms_monojet_run2.cpp | 19d507e925a2ef0e8ddd544e680ad09d6b13d5b3 | [] | no_license | AndreasAlbert/ma5_monojet | 0e3456ed9ca4fa01c076ae1a1077789bfa0fcde3 | f55c9792d04230402be00b78aa47d67a48373c89 | refs/heads/master | 2020-11-26T00:54:04.431036 | 2019-12-18T20:03:10 | 2019-12-18T20:05:13 | 228,912,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | cpp | cms_monojet_run2.cpp | #include "SampleAnalyzer/User/Analyzer/cms_monojet_run2.h"
using namespace MA5;
using namespace std;
// -----------------------------------------------------------------------------
// Initialize
// function called one time at the beginning of the analysis
// -----------------------------------------------------------... |
b4063cce6e4dcedc9aa8fdfafaf0ceea5169f794 | c7f24b4cb54dd8e211749863f616b1a9b3dfa75d | /Source/Engine/Scene/SceneDescription.h | a822c9fa9c24247bb472180fc7d5bd8a7dfea3d7 | [
"MIT"
] | permissive | rAzoR8/tracy | 96c75fb682904289e4ca97026f881845449fc6ed | 98ce539cbd1117a826c34959dbbc36788b634508 | refs/heads/master | 2020-05-02T12:43:23.837990 | 2019-03-27T10:02:12 | 2019-03-27T10:02:12 | 177,965,529 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | h | SceneDescription.h | #ifndef TRACY_SCENEDESCRIPTION_H
#define TRACY_SCENEDESCRIPTION_H
#include "Display\RenderObjectDescription.h"
namespace Tracy
{
struct SceneDesc
{
std::vector<RenderObjectDesc> Objects;
uint32_t uMaxDynamicObjects = 0u; // number of objects that can be allocated from dynamicaly from scripts etc
};
} // Tracy... |
f6af267628eacc92cb9a778adf068f5f3cb09c9c | 959d9efe680b50f04f0e303677ff6067d66bc36a | /src/coin_model.h | c69317a2e0a0b23add0a12e59f0eb7e7e184dfd0 | [] | no_license | ShellCode33/Runner | 2716ef47de5ffab24cfdf3c9dfdaff9a9939b555 | 88405d2c153fa12f737c7be0940938c3034b9bca | refs/heads/master | 2021-03-16T06:16:58.537955 | 2017-12-31T19:54:37 | 2017-12-31T19:54:37 | 51,835,577 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | h | coin_model.h | /*!
* \file coin_model.h
* \class CoinModel
* \brief Partie modèle des pièces
* \author J3ry
*/
#ifndef COIN_MODEL_H
#define COIN_MODEL_H
#include "obstacle.h"
class CoinModel : public Obstacle
{
public:
/*!
* \brief CoinModel construceur
* \param relat_x
* \param relat_y
* \param width
... |
a9a310d69a25a941a42cfc7c8e80dae6372b4020 | 7b7b2162b2d03d2a386f580bd6b90371696a251b | /src/tuhhsdk/Data/BoxCandidates.hpp | 16ba7f775e62abc9fe9782d7449ec836a28c6c3d | [
"BSD-2-Clause"
] | permissive | HiddeLekanne/HULKsCodeRelease | 5e1edfccd2de811522d9d2825e89957cf47ec759 | bec0aa39c3266656488527e59ef9aacad9b3ed85 | refs/heads/master | 2021-01-01T02:48:07.715892 | 2020-04-22T22:53:56 | 2020-04-22T22:53:56 | 239,148,122 | 0 | 0 | null | 2020-02-08T14:44:47 | 2020-02-08T14:44:46 | null | UTF-8 | C++ | false | false | 890 | hpp | BoxCandidates.hpp | #pragma once
#include <vector>
#include "Framework/DataType.hpp"
#include "Tools/Math/Circle.hpp"
#include "Tools/Storage/ObjectCandidate.hpp"
class BoxCandidates : public DataType<BoxCandidates>
{
public:
/// the name of this DataType
DataTypeName name = "BoxCandidates";
std::vector<ObjectCandidate> candida... |
89d3331fc3ad36f7b605f741fd3c51a31e2117a6 | 190cb37ed6c63b9bb98e4ed941a67462c3fe80ac | /MALib_sock/src/console_server.cpp | 8cd91dbfd01c50bc3ed0f8a40de0c676a8cbbf30 | [] | no_license | MaxAlzner/HexEngine | ebcfa6444441569dc7cf94ddd152379a6f9d727f | ae14d0d8aed6fa5a128bd1e75ce92d8ad4552c4b | refs/heads/master | 2021-01-21T11:08:26.259869 | 2015-06-28T16:08:06 | 2015-06-28T16:08:06 | 10,649,526 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | console_server.cpp |
#include <stdio.h>
#include <conio.h>
#include <time.h>
#include "..\include\MALib_sock.h"
struct TEST_STRUCT
{
TEST_STRUCT()
{
memset(this, 0, sizeof(TEST_STRUCT));
}
int a;
double g;
int b;
char c;
float h;
float j;
};
int send(char* buffer, uint bytes)
{
TEST_STRUCT test1;
test1.a = 81;
test1.g = 1... |
184315985689321f852c930579f6af065495592a | 3e8ac636d108220a9085a50cb4f7507d5543d72d | /chefmax.cpp | 2cd37814c8fbd01d517c45c2055422c84ee38a92 | [] | no_license | taranjeet/practice | 7ebbc9a4ec3d34a8768769c61785c953a4128751 | a5d91b1ec3ae1f8d586e19e113dceb7762319f53 | refs/heads/master | 2021-05-29T09:36:40.519448 | 2015-05-23T18:41:07 | 2015-05-23T18:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | chefmax.cpp |
/*
2015-02-04 14:23
practice
FEB 15
*/
#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
using namespace std;
typedef long long int ll;
#define FOR(i,n) for(int i = 0; i < n; i++)
#define FORS(i,a,n) for(int i = a; i < n; i++)
#define RDARR(a,n) FOR(i,n) cin>>a[i];
#define SOLVE() int t;cin... |
9fbc486a71bd334dcf6c3566bbfca109c1c75d91 | 7d4bb64b31f06e4a22f63c5944297c52d12285d6 | /Codechef/modular_gcd_codechef.cpp | ebd19086afe218b806f849a6e9463407a55fd6ab | [] | no_license | 927tanmay/Coding-DSA | 17e6eff710859d2f17f35e45883605c721f374f9 | e173fbe64fbf39c11a4d32cda6f8f663757b5cb7 | refs/heads/master | 2023-01-12T15:55:06.984519 | 2020-10-31T16:10:36 | 2020-10-31T16:10:36 | 305,500,210 | 1 | 2 | null | 2020-10-31T16:10:37 | 2020-10-19T20:04:28 | C++ | UTF-8 | C++ | false | false | 1,410 | cpp | modular_gcd_codechef.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, n) for (int i = 0; i < n; i++)
#define endl '\n'
#define INF 1e9
#define mod 1000000007
ll max(int a, int b)
{
if (a > b)
return a;
else
return b;
}
ll power(ll a, ll n, ll modi)
{
ll ans = 1;
while (n)
... |
a79673ca3e90ddb2be3a78cf5d911d97d4988571 | 2e361df6cbb79d419fb8990f9ecbac8098851cf4 | /nsrrenderedpage.h | a5d1fcd6ddb6904b455a5b16490ca157ee2987d7 | [] | no_license | anubhavrohatgi/nsrreadercore | f499be1759a365829d1a9a107eb8c8c4355618af | a40213300db50b8a5eabe4a301e640e89d1d698e | refs/heads/master | 2020-06-13T01:49:20.388261 | 2015-10-13T22:32:19 | 2015-10-13T22:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,391 | h | nsrrenderedpage.h | #ifndef __NSRRENDEREDPAGE_H__
#define __NSRRENDEREDPAGE_H__
/**
* @file nsrrenderedpage.h
* @author Alexander Saprykin
* @brief Rendered page
*/
#include "nsrrenderrequest.h"
#include "nsrabstractdocument.h"
#include "nsrreadercore_global.h"
#include <QSize>
#include <QPointF>
/**
* @class NSRRenderedPage nsrr... |
73ae41189d4196f24b99d143e5bb4e6c5d2ab23c | 72bb387a4642ce9cce4453d3fd8a99e595a58967 | /Landing.cpp | 5b1117d918786b628b93f3c8ddf0552d94a95bc1 | [] | no_license | hanliumaozhi/cassie_jump_part2 | 56e9bfe763973add5ed71b03252ad84858fefd6a | 93d10cfbf7779ed7e3b188f57bf0d593679fd95e | refs/heads/master | 2023-02-11T18:31:38.678850 | 2021-01-03T07:08:02 | 2021-01-03T07:08:02 | 324,747,629 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 5,166 | cpp | Landing.cpp | //
// Created by han on 2020/12/26.
//
#include "Landing.h"
Landing::Landing(int var_num_per_node, int node_num, double dt):
var_num_per_node_(var_num_per_node),
node_num_(node_num),
dt_(dt){
program_ = std::make_shared<drake::solvers::MathematicalProgram>();
var_sol_ = std::make_unique<Ei... |
1a7f223652ba4602d06dba82b7bddc62fc14c76d | f3ee682a77a1ce2e059f10f7563666771b6b48fa | /Source/Engine/Subsystem/Subsystem.h | 5b950a5e2d94a30f51e5a95c7ba054b5906c841e | [] | no_license | TeamValkyrie/CatalystEngine | d281de43a3d4580f7a7bfe2f5a4dce2cb70ce0c2 | 9810209b0aa47bdf451ff8808ac565b1f9d85b27 | refs/heads/master | 2020-06-13T05:47:46.707426 | 2019-08-11T13:10:53 | 2019-08-11T13:10:53 | 194,559,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | h | Subsystem.h | #pragma once
/*
* Subsystem interface used for standardising Subsystem layout
*/
class Subsystem
{
public:
Subsystem();
virtual ~Subsystem();
virtual void Init();
virtual void Tick(float DeltaTime) = 0;
virtual void Deinit();
bool IsInitialized();
private:
bool m_bIsInitialized;
}; |
ef540a88a92e24a21e2cdb00ca63f6b21b511016 | a980001c54d173462e26a2721051930e336cf5fb | /src/lib/PerlinNoise.h | 6b82099aa85c621ab56944d7001357ef2d7b085b | [] | no_license | jedrzejowski/zpr-project-old | efca1429fd059f31c3fd759b4d4841549bf20301 | 05b3d762b4d32f0c2dbdaa77e96a4b8aa835d0e9 | refs/heads/master | 2020-03-12T11:59:00.108672 | 2018-05-21T21:18:30 | 2018-05-21T21:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | PerlinNoise.h | //
// Created by adam on 06.05.18.
//
#pragma once
class PerlinNoise {
private:
double Total(double i, double j) const;
double GetValue(double x, double y) const;
double Interpolate(double x, double y, double a) const;
double Noise(int x, int y) const;
double persistence, frequency, amplitude;
int octaves, r... |
9174f8f09354dbb991433b927f57ebf0b2c2ca42 | f2d9172af9c727874f5ab8c42447a5bd29548461 | /CCNY_Climber_Arduino/Odometry.ino | 9c8a56a361e39ea9610c6a7abbc530dac8eabd3a | [] | no_license | AutoAILab/Climbing-Robot | d7780a27bd8589db9d3af102bbdb74eaa42212fe | 4a769d828f82c58c8bd3e32460fa0bac23be266b | refs/heads/master | 2023-04-16T18:21:03.580304 | 2014-08-26T23:07:25 | 2014-08-26T23:07:25 | 364,111,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | ino | Odometry.ino | // Odometry
#ifdef ENABLE_WHEEL_ODOMETRY
// setup for odometry
void setup_wheel_odometry() {
pinMode(LEncA, pid_input);
pinMode(LEncB, pid_input);
attachInterrupt(0, dCheckL_isr, CHANGE);
attachInterrupt(1, dCheckR_isr, CHANGE);
Lcurrent_time = micros();
Rcurrent_time = micros();
}
void dCheckL_isr() ... |
7a49213a059851b3f55e873a9939dcfcb88b2aca | fb06e4ce5299c5b92039c5076abaa7ca94ded116 | /Scene/OpenGLWidget.h | 62c4e49fed27191fda828f98b9f752a568c006ec | [] | no_license | nolanjian/Parametric-Furniture-Designer | a0fd0e17c8fb75197d7f38e26bad3fac56d4484f | 89dc2009b8446c7db46e803e32cb799d1e60cd04 | refs/heads/master | 2021-02-28T22:46:32.645730 | 2020-07-13T10:14:35 | 2020-07-13T10:14:35 | 245,738,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,354 | h | OpenGLWidget.h | /*****************************************************************//**
* \file OpenGLWidget.h
* \brief
*
* \author NolanJian
* \e-mail NolanJian@163.com
* \date 2020/07/02
*
*********************************************************************/
#pragma once
#include "scene_global.h"
#include <QOpenGLWi... |
9620089711095562c1b1cdb27d75d6087b8560aa | e9c4bd6fae3a098ebb2a9a6c5b6bcc9c4f9a69f1 | /colecoes_genericas/PIlhas genericas/teste generico/Pilhas.cpp | 28418066f68f8634263b278f334b65dc1212f738 | [] | no_license | eduardoolima/EstruturaDeDados2-3-periodo | 1c14ba31feb0aa4fd963b9b4d2376ab8801c6ad3 | 10cf9297a1465225498712d26a7f8235d4845bdb | refs/heads/master | 2022-11-21T20:58:53.475539 | 2020-07-21T00:55:39 | 2020-07-21T00:55:39 | 281,257,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20 | cpp | Pilhas.cpp | #include "Pilhas.h"
|
fc09e780d21d9312bfaa0465ed156bc287ad7256 | 54590b39d4710d32bc129e0e9bf59fd5f56ac32d | /SDK/SoT_BP_cmn_wooden_foundations_05_a_parameters.hpp | 390a34f977d12da5c0da72649a36c1fe9cf96c95 | [] | no_license | DDan1l232/SoT-SDK | bb3bb85fa813963655288d6fa2747d316ce57af8 | cda078f3b8bca304759f05cc71ca55d31878e8e5 | refs/heads/master | 2023-03-17T13:16:11.076040 | 2020-09-09T15:19:09 | 2020-09-09T15:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | hpp | SoT_BP_cmn_wooden_foundations_05_a_parameters.hpp | #pragma once
// Sea of Thieves (1.4.16) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SoT_BP_cmn_wooden_foundations_05_a_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------... |
795259913e89a667b59f642350dc0fce21b3cf77 | ca948f316beb1379058b1483c13df56b62182bb4 | /include/device/peripherals/RTC.hpp | 512e246bf50344ce0526c3a305e2cc14f5ff8c31 | [] | no_license | CrustyAuklet/xmega-ecpp | 442cf2a2b9c100c0e03be34b94e20704badac918 | 338f1f1fb570a910105cdf57a4d0eb6df653aa2f | refs/heads/master | 2020-08-19T18:25:43.937990 | 2019-10-18T05:10:36 | 2019-11-25T00:46:24 | 215,942,690 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,578 | hpp | RTC.hpp | /**
* None-RTC (id I6093)
* Real-Time Counter
*
*
*/
#pragma once
#include "device/register.hpp"
#include <cstdint>
namespace device {
/**
* RTC
* Real-Time Counter
* Size: 14 bytes
*/
template <addressType BASE_ADDRESS>
struct RTC_t {
/// Control Register - 1 bytes
struct CTRL : public reg8_t<BASE... |
05a27fd9e44fe741f96aae209abbf225c7090f77 | 26fd4d615946f73ee3964cd48fa06120611bf449 | /SkipList/C++_TYPE/skiplist.cpp | 5a6252756de4700b29b49256c1cb8451a4763374 | [] | no_license | xujie-nm/Leetcode | 1aab8a73a33f954bfb3382a286626a56d2f14617 | eb8a7282083e2d2a6c94475759ba01bd4220f354 | refs/heads/master | 2020-04-12T07:25:51.621189 | 2016-12-03T09:29:36 | 2016-12-03T09:29:36 | 28,400,113 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,510 | cpp | skiplist.cpp | #include "skiplist.h"
#include <stdlib.h>
#include <stdio.h>
SkiplistNode::SkiplistNode(int level, double score):score_(score){
levels_.reserve(level);
}
Skiplist::Skiplist(){
level_ = 1;
length_ = 0;
header_ = new SkiplistNode(SKIPLIST_MAXLEVEL, 0);
for (int i = 0; i < SKIPLIST_MAXLEVEL; i++) {
... |
38d6b12ade807c66c99d7c6af555012d1cd9b358 | 49e19faa999df3abfbfc49e692b9e8cee3208649 | /XULWin/include/XULWin/ElementFactory.h | f1a70b4d20512b70cb5928acd5d114e6a5816564 | [] | no_license | StackedCrooked/xulwin | 30a29a09636738f4821821e05ee6223d114de76b | 1d3c10d0d39b848ff5d121f3dbf21fa489d032a7 | refs/heads/master | 2021-05-02T05:49:47.691311 | 2017-08-03T21:24:55 | 2017-08-03T21:24:55 | 32,498,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,931 | h | ElementFactory.h | #ifndef ELEMENTFACTOR_H_INCLUDED
#define ELEMENTFACTOR_H_INCLUDED
#include "XULWin/Element.h"
#include <boost/bind.hpp>
#include <boost/function.hpp>
namespace XULWin
{
class ElementFactory
{
public:
static ElementFactory & Instance();
/**
* createElement
... |
1943537df92ae19be38bc4ce67528b09d955b577 | 2b1fa87ab788c70130c8ed2735dea795fce4c376 | /data_structures/stack/unit_tests/stack_dynamic_array_utest.cpp | d020b59d37e95b6b0ae331316e7eb90a004b975a | [] | no_license | segoranov/data_structures_and_algorithms | e77d0634e5c0df4a25a0662153698daad45bae88 | fc029eb96a0e6f4bfeac8eeff1f410a39b1a8cdb | refs/heads/master | 2022-12-11T14:43:55.064967 | 2020-09-09T10:27:41 | 2020-09-09T10:27:41 | 258,244,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 953 | cpp | stack_dynamic_array_utest.cpp | #include "catch.hpp"
#include "stack_dynamic_array.h"
TEST_CASE("Stack is empty on construction with default constructor") {
StackDynamicArrayImpl<int> stack;
REQUIRE(stack.empty());
REQUIRE(stack.size() == 0);
REQUIRE_THROWS_AS(stack.top(), std::runtime_error);
}
TEST_CASE("Push and pop one element on stack"... |
1a96c183b0509616c719f17061d56424c0de79ec | 9f63b75a1ac13e181ca99d558580e3527a45c0c6 | /4.Maths/10.Prime_Most_efficient.cpp | 9b05630cfa5ef3c93582f49c738954b772423156 | [] | no_license | smritipradhan/Datastructure | 3934cfb27406d84b6840955645026e7b7595f8ea | 74ecf07496fc571f9d676efe95dcdb796dc069e3 | refs/heads/master | 2023-07-11T11:58:33.515265 | 2021-08-11T14:26:11 | 2021-08-11T14:26:11 | 322,194,016 | 1 | 0 | null | 2021-08-11T14:26:12 | 2020-12-17T05:46:07 | C++ | UTF-8 | C++ | false | false | 434 | cpp | 10.Prime_Most_efficient.cpp | //Efficient_method for finding the prime
//Using Divisors
#include<bits/stdc++.h>
using namespace std;
bool isPrime(int n)
{
if(n==1)
return false;
if(n==2||n==3)
return true;
if(n%2==0||n%3==0)
return false;
for(int i = 5;i*i<=n;i=i+6)
{
if(n%i==0 || n%(i+2)==0)
... |
9ae9c3eeb4f847e7ef8368c9f42f70d7cac0d94f | 733882805346a6e34156a88bb04e9cdc97ca8ba5 | /tools/codegen/Parser/ReflectionParser.cpp | fa2c8e1c13803e1fdb5e8f0030c3f06c1e27b74b | [
"MIT"
] | permissive | ostis-dev/sc-machine | 21e14d8293378174f9321517c2d7bc3e94f8495c | 84c2b74b06d786bec75c1aa096e3dc95fbfdb3f7 | refs/heads/master | 2021-11-28T01:51:40.819230 | 2021-10-13T10:39:44 | 2021-10-13T10:39:44 | 3,524,603 | 13 | 17 | NOASSERTION | 2023-02-21T09:08:55 | 2012-02-23T11:04:25 | C++ | UTF-8 | C++ | false | false | 10,675 | cpp | ReflectionParser.cpp | #include "ReflectionParser.hpp"
#include <iostream>
#include <fstream>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#define RECURSE_NAMESPACES(kind, cursor, method, ns) \
if (kind == CXCursor_Namespace) \
{ \
auto displayName = cursor.GetDisplayName(); \
if (!displayName.empty())... |
6eb77f9fd3ad85287d08c1ef99f329cc8d9abd84 | 1c701d7376af153b2136743a707e87821014ff72 | /addmovie.cpp | 14b773b57aa699c5112a136dc174f27eb050deee | [] | no_license | DanziLLL/visual_course | 03d57baba60a7cabf5de799f8e9332341ab55edf | 715291fae2db1962be9a69d6212508c1da769772 | refs/heads/master | 2021-04-15T14:19:53.766041 | 2018-04-05T17:43:07 | 2018-04-05T17:43:07 | 126,198,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,636 | cpp | addmovie.cpp | #include "addmovie.h"
#include "ui_addmovie.h"
AddMovie::AddMovie(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddMovie)
{
ui->setupUi(this);
}
AddMovie::~AddMovie()
{
delete ui;
}
void AddMovie::on_btn_findMovie_clicked()
{
QString s;
s = QString("https://www.google.com/search?q=%1 +insite... |
2679675c2f1d22d91bcbef9039c8112d5cef73f1 | 81a1367960cf88168ba38bccfdcd01e22b33a4fc | /app/test/fixed/signal/Arithmetics/nmppsMulC_AddC/nmppsMulC_AddC_2x32s/main.cpp | 76f6833bcb7bbaa12bb4ceb9da48f9bf1009c194 | [] | no_license | RC-MODULE/nmpp | 3ade5fdd40f24960e586669febae715885e21330 | a41c26c650c2dee42b2ae07329f7e139c4178134 | refs/heads/master | 2022-11-02T07:56:09.382120 | 2022-09-21T17:34:38 | 2022-09-21T17:34:38 | 44,173,133 | 9 | 12 | null | 2022-04-28T08:42:55 | 2015-10-13T11:59:04 | Assembly | UTF-8 | C++ | false | false | 1,204 | cpp | main.cpp | #include "nmpp.h"
#include "minrep.h"
/////////////////////////////////////////////////////////////////////////////////////////
nm64s *L0;
nm64s *L1;
nm64s *G0;
nm64s *G1;
const int KB=1024/8;
const int SizeL0=30*KB;
const int SizeL1=30*KB;
const int SizeG0=30*KB;
const int SizeG1=30*KB;
int main()
{
L0=nmppsM... |
658fa622dbd927e125d0d602f709ea5470fe6087 | d629094ddb5171c825d725e263b5e21046ef2446 | /examples/catch2/fib.hpp | 559e886c8de95509de065f4539e8c5bc9810394a | [
"MIT"
] | permissive | NathanielRN/github-action-benchmark | ce6385e111aefd9d52caa83139defee3fc0e5e75 | 7fbd0c5a3a6fe64f9b7675856fcef69811191b5a | refs/heads/master | 2023-08-22T03:22:31.111327 | 2021-08-16T08:34:31 | 2021-10-12T20:12:29 | 396,634,646 | 1 | 1 | MIT | 2021-10-16T00:11:34 | 2021-08-16T05:30:41 | TypeScript | UTF-8 | C++ | false | false | 177 | hpp | fib.hpp | #if !defined FIB_HPP_INCLUDED
#define FIB_HPP_INCLUDED
int fib(int const i) {
if (i <= 1) {
return 1;
}
return fib(i - 2) + fib(i - 1);
}
#endif // FIB_HPP_INCLUDED
|
dea58282fa5c582cc8450f8f1222e52f6f93a4e9 | 5e6910a3e9a20b15717a88fd38d200d962faedb6 | /AtCoder/abc261/F.cpp | fdbe2ce9bcc25f7b800fad2f005f25a6b38a54dd | [] | no_license | khaledsliti/CompetitiveProgramming | f1ae55556d744784365bcedf7a9aaef7024c5e75 | 635ef40fb76db5337d62dc140f38105595ccd714 | refs/heads/master | 2023-08-29T15:12:04.935894 | 2023-08-15T13:27:12 | 2023-08-15T13:27:12 | 171,742,989 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,869 | cpp | F.cpp | // RedStone
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define D(x) cerr << #x << " = " << (x) << '\n'
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
typedef long long ll;
const int N = 3e5 + 5;
template<typen... |
c4ac3ef79529ef4a8a17a055a689f4b26bfb5a23 | 119848599720941bf1c4740ea201bb6f5bc5a7bf | /D04/ex04/inc/StripMiner.hpp | 70dcf1be620bf431b97843da9490a48c5e2a7584 | [] | no_license | stmartins/piscine_cpp | 22981f0544808af9832345311a049f8358b049ae | 9acc41cae123a51efec94df1571f21c78b702c11 | refs/heads/master | 2021-04-06T04:21:47.530808 | 2018-04-06T14:40:09 | 2018-04-06T14:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | hpp | StripMiner.hpp | #ifndef STRIPMINER_HPP
#define STRIPMINER_HPP
#include "IMiningLaser.hpp"
#include <iostream>
class StripMiner: public IMiningLaser
{
public:
StripMiner(void);
StripMiner(StripMiner const & src);
virtual ~StripMiner();
virtual void mine(IAsteroid*);
StripMiner &operator=(St... |
2e98c9ae90ea895f0f74b03cefea98d4e59e0453 | 1f032ac06a2fc792859a57099e04d2b9bc43f387 | /b9/11/c9/50/a98a6141c118b538e6760bd8a8e7f757410c0d26eb1b85fe03bbe0915497383fde4d14d9bdce3bd07a29513985aaec180adc3c93649a80356ef2365f/sw.cpp | 36af4f8d2c36cccbdae097fd56fbd2efe7f7cb6a | [] | no_license | SoftwareNetwork/specifications | 9d6d97c136d2b03af45669bad2bcb00fda9d2e26 | ba960f416e4728a43aa3e41af16a7bdd82006ec3 | refs/heads/master | 2023-08-16T13:17:25.996674 | 2023-08-15T10:45:47 | 2023-08-15T10:45:47 | 145,738,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | sw.cpp | void build(Solution &s)
{
auto &t = s.addTarget<StaticLibraryTarget>("aantron.better_enums", "0.11.3");
t += Git("https://github.com/aantron/better-enums");
}
|
96dd4159d489b1ef6307ddff755f17f6bc771d24 | cc62ddd6bdaba7133c993f4fa8ce7ee60b5fe336 | /EagleyeServer/View/DetailDlg.cpp | e4cd3a8e6be83b155c333bb6f4529240315100b0 | [] | no_license | sdgdsffdsfff/Eagleye-1 | a88bd153b31a34bacbb681e41dd02e50fb40cd74 | 2817fd3dc4fe135ae0bb1a6fbfebf8ee8cb87519 | refs/heads/master | 2020-12-25T10:13:56.203979 | 2013-09-07T14:31:18 | 2013-09-07T14:31:55 | 41,772,586 | 0 | 1 | null | 2015-09-02T01:31:35 | 2015-09-02T01:31:35 | null | GB18030 | C++ | false | false | 2,855 | cpp | DetailDlg.cpp | // DetailDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "EagleyeServer.h"
#include "DetailDlg.h"
// CDetailDlg 对话框
IMPLEMENT_DYNAMIC(CDetailDlg, CDialog)
CDetailDlg::CDetailDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDetailDlg::IDD, pParent)
{
}
CDetailDlg::~CDetailDlg()
{
}
void CDetailDlg::DoDataExchange(CDataExc... |
62fe660307fc5c0728dc5ebb85b2f7520ce1d313 | f850eb5b2f547764d05baa2332fa1bfe76a05274 | /chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc | 0a84f4259bff3ac5ce4c87c9e12dc2836ede6e11 | [
"BSD-3-Clause"
] | permissive | junmin-zhu/chromium-rivertrail | 2c4d74d57a9e2eead500c39d213ac8db4bac29a2 | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | refs/heads/v8-binding | 2021-03-12T19:35:42.746460 | 2013-06-03T15:05:26 | 2013-06-04T01:49:35 | 6,220,384 | 0 | 1 | null | 2013-06-03T02:50:01 | 2012-10-15T01:51:13 | C++ | UTF-8 | C++ | false | false | 4,788 | cc | error_screen_handler.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/chromeos/login/error_screen_handler.h"
#include "base/logging.h"
#include "base/values.h"
#include "chrome/browser/... |
caf63d62ab13cdfe248e029aa4e6863177704537 | 7a95b4ed267297caffd614001bc6e8ba38ca098e | /MedianFinder.h | 33ec6670c684d725f8ef4970452377b5350b01a7 | [] | no_license | XWHQSJ/SwordtoOffer | f1dc592810d2e7e1987bac330c8986d534313c44 | c445ca3cbdeed250b257e8245b14862761ea8b7d | refs/heads/master | 2020-12-29T18:20:43.395485 | 2020-04-02T13:53:41 | 2020-04-02T13:53:41 | 238,694,286 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,503 | h | MedianFinder.h | //
// Created by Wanhui on 2/29/20.
//
#ifndef SWORDTOOFFER_MEDIANFINDER_H
#define SWORDTOOFFER_MEDIANFINDER_H
/*
* 剑指offer 41 数据流中的中位数
*
* 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,
* 那么中位数就是所有数值排序之后位于中间的数值。
* 如果从数据流中读出偶数个数值,
* 那么中位数就是所有数值排序之后中间两个数的平均值。
*
* 例如,
*
* [2,3,4] 的中位数是 3
* [2,3] 的中位数是 (2 + 3) / 2 = 2.5
*
... |
4e41806dbd56e35dd4ae98fb2ffd24aef8308e23 | b88228e452e75984ef2eb3aa034e7471cd7d2de0 | /gui/inc/FontText.hpp | 495e1025716535384ca66eb9a265f4c1fa71faae | [] | no_license | chongtianfeiyu/zappy | 9ccdf7487a9e3cf8a5e0e67f1a8caa0667cf53ac | cbb229c48756dc97003280c24c0251abefe5bf34 | refs/heads/master | 2020-04-05T23:42:45.250134 | 2014-07-13T17:33:06 | 2014-07-13T17:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | hpp | FontText.hpp |
#ifndef _FONTTEXT_H_
# define _FONTTEXT_H_
# include <string>
# include <SFML/Graphics.hpp>
# include <sstream>
# include "Geometry.hpp"
# include "AObject.hpp"
# define FONT "res/textures/font.tga"
class FontText: public AObject
{
public:
FontText();
virtual ~FontText();
void draw(Shader *shader);... |
71c56df4849ebc86e560fad227420994c39e56cc | 724572a64e4f7ba9eecce5c159a7aa9aa6844aa5 | /src/bindings/java/JNIUtil.cpp | 2346a22afa9b78d1892fc3b1b6d6a8c4354a3bbf | [
"BSD-3-Clause",
"CC-BY-4.0",
"BSD-2-Clause",
"Zlib"
] | permissive | KevinJW/OpenColorIO | 91269ca5d9a560a073e115774d567f612b0f45ef | 412aa7ba273616867e607de646e4975791198812 | refs/heads/master | 2020-04-05T22:52:21.357345 | 2019-09-05T19:52:53 | 2019-09-05T19:52:53 | 8,290,076 | 1 | 0 | BSD-3-Clause | 2023-08-29T17:33:12 | 2013-02-19T12:48:26 | C++ | UTF-8 | C++ | false | false | 5,228 | cpp | JNIUtil.cpp | /*
Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of co... |
851e8ceac770166b0c403cfc95085a4304444398 | 676a139a659ad35f773aee8434ab0d54c328bd6c | /Module_07/ex02/main.cpp | cd6cda0161cc5da55f77cdf86ca99ba106ac8826 | [] | no_license | Analking228/cpp_piscine | fd7bbe702ddd43dc5ab2e91b64b662ba8f3d4073 | ce2a391a6cae656781e0a9bc74bc887d4b6537e2 | refs/heads/master | 2023-04-26T05:27:10.796975 | 2021-06-01T19:08:33 | 2021-06-01T19:08:33 | 361,708,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | main.cpp | #include "Array.hpp"
int main() {
std::cout << "ARRAY OF INTEGERS" << "\n" << "\n";
Array<int> array(30);
std::cout << "Array size: " << array.size() << "\n";
for (int i = 0; i < 30; ++i)
array[i] = i;
std::cout << "printing filled 0-29 array: \n";
try {
for (int i = 0; i < 31; i++)
st... |
27a1ee66796a0211b9280d5f90986ee77b93f9ec | 9d44d4d8b4a9fce052e8f321a5006080f3246876 | /ino/orange_on_track_test/test_header/test_header.ino | 17a35d3f40f35a734d4ee26b5a2da6decaa756da | [] | no_license | n800sau/roborep | b4d92754be65dc120881b54d9788034cfa09dac6 | adaef48d0498609d3db90c090a09ddb0141d4a1a | refs/heads/master | 2023-08-30T13:58:30.082902 | 2023-08-19T08:52:12 | 2023-08-19T08:52:12 | 72,965,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | ino | test_header.ino | #include <Servo.h>
const int headEchoPin = 12; // Echo Pin
const int headTrigPin = 11; // Trigger Pin
const int SONAR_INCR = 5;
const int SONAR_PAN_ANGLE_MIN = 35;
const int SONAR_PAN_ANGLE_MAX = 135;
const int SONAR_PAN_CENTER = SONAR_PAN_ANGLE_MIN + (SONAR_PAN_ANGLE_MAX - SONAR_PAN_ANGLE_MIN) / 2;
const int SONAR... |
c8b91b812b80e3efe0853a1fa0a52509b64c3d07 | e5486b48e9b0a167a22efd59f0fa5e8f4512e2cf | /BAEKJOON/15898.cpp | e1c4ef63ff1044cc4c904f3903128df466a8369a | [] | no_license | Jihunn-Kim/Coding-Test-Practice | a7ec7cb8f186168fa39026527bb8369599389674 | c2fd1c2f6871dc0b3d1614b0dc9e8f9fcdbe3a91 | refs/heads/master | 2023-04-23T00:48:23.833705 | 2021-05-07T13:48:47 | 2021-05-07T13:48:47 | 112,074,131 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,681 | cpp | 15898.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#include <cmath>
#include <list>
#include <cstring>
#include <set>
#include <unordered_set>
#include <climits>
#include <unordered_map>
#include <map>
#include <iomanip>
using namespace std... |
9e6bbbd4af4da886b8046992d3f551d57d6f5f66 | c4fcec81f59d186953de9adab73a45df3766b38c | /vm_manager/Constant.h | eff91246f86ae477205b7a3d4f9562965aeb6e60 | [] | no_license | Dadagum/virtual-memory-manager | d800369656c5770ccada285ab146b68dfd354bc3 | b39da2c55e43ef1e9529ade2755458fe7c69457a | refs/heads/master | 2020-04-04T18:10:24.626784 | 2018-08-31T17:01:17 | 2018-08-31T17:01:17 | 156,152,727 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 127 | h | Constant.h | #pragma once
/*
记录编程过程中使用到的常量
*/
class Constant {
public:
// TLB
static const int TLB_MISS;
}; |
bcec32c4524a56027e41a7b46fcd53da4c5ae8e1 | 1c42e1ae10997cf477aff771c156f074b49f97c3 | /flame/tcpsession.cpp | 920d822460b45057b7b6e091f95fe0f48aa7f4c3 | [
"Apache-2.0"
] | permissive | DNS-OARC/flamethrower | ad7d8ebc6626fb0c7cc3324a897920b821ae4f7a | 122d80f5f306131441c43b859699c637b602262c | refs/heads/master | 2023-05-25T03:47:01.714253 | 2022-12-07T16:16:54 | 2022-12-07T16:16:54 | 164,416,885 | 301 | 38 | Apache-2.0 | 2023-05-19T21:18:56 | 2019-01-07T10:34:55 | C++ | UTF-8 | C++ | false | false | 2,471 | cpp | tcpsession.cpp | #include <cstdint>
#include <cstring>
#include <utility>
#include "tcpsession.h"
TCPSession::TCPSession(std::shared_ptr<uvw::TCPHandle> handle,
malformed_data_cb malformed_data_handler,
got_dns_msg_cb got_dns_msg_handler,
connection_ready_cb connect... |
2636a441f760eb45c6d72cda4232826bb09f29c7 | d649714b9f4427a66970cdfb4bc231d48ef5bff0 | /basic_ray_tracer/Vec3.hpp | 2d1f17994a0b0c199427b3bab156dc5009ac09ee | [] | no_license | carstenbru/eece528_final | 9b64ed66cb0be557625a8aedd404d1337a51220f | 8412f42d24f12eb6cfa5cf5f67152d642dcb1695 | refs/heads/master | 2021-01-10T13:30:59.804904 | 2015-12-19T07:49:06 | 2015-12-19T07:49:06 | 46,308,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | hpp | Vec3.hpp | #include <iostream>
#ifndef VEC3_HPP_
#define VEC3_HPP_
#define USE_FP_SQRT_ALGO 1
#include "dtypes.h"
typedef struct {
unsigned int r;
unsigned int g;
unsigned int b;
} Color;
typedef struct {
int x;
int y;
int z;
} Vec3i;
#define FP_PRECISION (16)
#define FP_ONE (1<<FP_PRECISION)
Color generateColorI(uns... |
ec0112b4d21c745df3646c17b1a9b57bd6002d7e | 327d74358f45729f1bb421585a6a36c7c6ac95d8 | /Source/3DGame/GameSystem/ScoreManager.cpp | efdd05ff7527880ff11169954edcc8eabb522df9 | [] | no_license | tachikawa-syota/3D_BattleGame | f968d2dcce222fdac81de661e83cfc18b1851b0a | a38f9f9008a082446e90020ba3a8e83a10b15d02 | refs/heads/master | 2021-01-19T03:55:10.237667 | 2016-09-28T04:55:29 | 2016-09-28T04:55:29 | 69,365,698 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,153 | cpp | ScoreManager.cpp | #include "ScoreManager.h"
#include <functional>
#include <algorithm>
/**
* @brief コンストラクタ
*/
ScoreManager::ScoreManager(int size)
{
// サイズ分の配列を生成
for (int i = 0; i < size; i++)
{
m_score.emplace_back(0);
m_killCount.emplace_back(0);
m_deadCount.emplace_back(0);
}
}
/**
* @brief デストラクタ
*/
ScoreManager::~Scor... |
fed5129e79461c81d3433fb9cd146c1733d63340 | 81c74937fd4586b264b9ff3242be616292d06bdf | /trunk/src/c++/include/pedcalc/fra_test_util.h | f186daa44ca53e5146360424bd23477770f1ed2f | [] | no_license | rahulkr007/sageCore | be877ff6bb2ee5825e5cc9b9d71e03ac32f4e29f | b1b19b95d80637b48fca789a09a8de16cdaad3ab | refs/heads/master | 2021-06-01T12:41:41.374258 | 2016-09-02T19:14:02 | 2016-09-02T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,795 | h | fra_test_util.h | #ifndef FRA_TEST_UTIL_H
#define FRA_TEST_UTIL_H
#include "pedcalc/fam_resid_adj.h"
#include "output/Output.h"
#include "mped/mp.h"
#include "boost/iterator/counting_iterator.hpp"
#include <iostream>
#include <sstream>
namespace SAGE
{
namespace PED_CALC
{
/// Generate an output of the familial resid... |
8a1b0504cf11cb4cad7ac0579f4bda16e3baeb28 | 7b5d60392287f8c9abb610e79c41b552b38ac039 | /src/Session.cpp | b232d2312d76036ff5ca6302e96871ba768d7fe9 | [] | no_license | luzinbar/ContactTracingSystem | 773aa2721e0e82e6242773edb93e54e7c46173fe | bd7fe1e032271a49c90eb8d1dcfb68a561534cc1 | refs/heads/main | 2023-08-07T13:56:23.662062 | 2021-09-14T18:41:41 | 2021-09-14T18:41:41 | 406,250,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,199 | cpp | Session.cpp | //
// Created by spl211 on 03/11/2020.
//
//#include "include/json.hpp"
#include "Session.h"
#include "Agent.h"
#include "Graph.h"
#include "Tree.h"
#include <fstream>
#include <iostream>
#include <vector>
using json = nlohmann::json;
using namespace std;
// ******************** Constructor ********************
S... |
517d6b8d1f9e9766af5c9d7e0116ecda3ed9132f | 4254718c15e826c8ae5a16550fe3839afa4f2126 | /Program3/Creature.cpp | 7a6ef3d14751aa7d150989d19bb5ec0f17cccf46 | [] | no_license | wrwestrich/CSC1310 | 2c6b95e419f33131b3f627a8a96cb049b560ed53 | 9f05f4f0188e770edfc48470d79bff6c977b4301 | refs/heads/master | 2021-07-11T12:11:53.749219 | 2021-07-01T19:19:35 | 2021-07-01T19:19:35 | 188,274,936 | 0 | 0 | null | 2021-07-01T19:19:36 | 2019-05-23T17:02:35 | C++ | UTF-8 | C++ | false | false | 1,396 | cpp | Creature.cpp | /*
* Name: Creature.cpp
* Date: 2/15/18
* Author: Will Westrich
* Purpose:
*/
#include "Creature.h"
Creature::Creature() {}
Creature::Creature(std::string n, std::string d, bool danger, float c)
: name(n), description(d), dangerous(danger), cost(c)
{
}
std::string Creature::GetName() const
{
return name;
... |
2f2391244cceb5a36c46ab0000b879a6859b7562 | 27a90e2b9f1ab69cc153838ad157fcddfc9cd4d3 | /第01阶段:开始入门吧/02简单操作/2008.cpp | a48f4a3f5616b2bffc034069faee54302ce02386 | [] | no_license | yfuxzpskbr/hoj | 61c065c520bb30f3aebbdb43d35b75fcdf493ca4 | 67c4743445331c7d891e21ab0d910bf7dab23664 | refs/heads/master | 2023-01-01T08:56:25.390799 | 2020-10-27T05:27:40 | 2020-10-27T05:27:40 | 305,619,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | 2008.cpp | #include <iostream>
using namespace std;
int main(){
int n;
double a;
scanf("%d",&n);
while(n!=0){
int num_ = 0;
int num_0 = 0;
int num = 0;
for(int i=0;i<n;i++){
scanf("%lf",&a);
if(a>0) num++;
else if(a<0)num_++;
else num_0++;
}
printf("%d %d %d\n",num_,num_0,num);
scanf("%d",&n);
}
re... |
fb9bb8c16eaf496803fbe059cacf4660cd151f24 | 40ee9db50b87ea4a235b0510c2ff0b6db5d650ab | /Neon.cpp | ec13881875e4d5ab32b66dc62646753314d7722f | [
"MIT"
] | permissive | anupam8757/coding | 225ecf3e4f895b6fad71fa56eed3c169a1e8b2a9 | 6aac7fdae5f399491f5ff9aa50e76fefb10d1ccf | refs/heads/master | 2021-10-23T06:40:23.174779 | 2021-10-15T03:06:18 | 2021-10-15T03:06:18 | 227,669,688 | 0 | 1 | MIT | 2020-10-01T03:12:31 | 2019-12-12T18:18:40 | C++ | UTF-8 | C++ | false | false | 656 | cpp | Neon.cpp | /* A neon number is a number where the sum of digits of square of the number is equal to the number.
For example if the input number is 9, its square is 9*9 = 81 and sum of the digits is 9. i.e. 9 is a neon number.
*/
#include <iostream>
using namespace std;
int main() {
int num,square;
cout<<"Hello Worl... |
6cbfa32f5c0ec231eb81439870bf137697cfd0ca | 6c61e42a0f7a532e956ef0da184f9bbf6cbe584e | /Graph/Graph/Graph/test_graph.cpp | aa85b3c5b086193b4d76cc48c8f46001ec37de75 | [] | no_license | HSQ8/CPP_practice | ce4a345dd74e40e466655c368b1609e5987bb591 | 67b7ddfb20b979b00ec9cf1f283ab59596441174 | refs/heads/master | 2021-07-20T11:44:34.890483 | 2017-10-27T08:32:17 | 2017-10-27T08:32:17 | 107,361,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,899 | cpp | test_graph.cpp | #include "graph.h"
#include "unit_test.h"
#include <fstream>
#include "graph_algorithms.h"
#include <unordered_map>
using namespace std;
using mystl::graph;
////////////////////////////////////////////////////////////////////////////////
/// @brief Testing of graph
/// @ingroup Testing
////////////////////////////////... |
5d7ce3bc09d2a70f98e9ffba00b3bd7f102550d7 | 265be600fbbf8684501b36e199157b6d29963dcb | /Code/include/7_thermistor.cpp | 9c05bf2a01ad386cfae120c412f99ee36521f777 | [
"MIT"
] | permissive | momsi/Talk_Arduino | a5916648e49bf6a000305ab70fb82ca333c9e0a6 | 19e8809ae9b44edffabb34cf84bae20e27351583 | refs/heads/main | 2023-03-07T14:09:32.145625 | 2021-02-15T15:11:38 | 2021-02-15T15:11:38 | 339,107,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | 7_thermistor.cpp | #include <Arduino.h>
int tempPin = A0;
void setup(){
Serial.begin(9600);
}
void loop(){
int tempReading = analogRead(tempPin);
double tempK = log(10000.0 * ((1024.0 / tempReading - 1)));
tempK = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * tempK * tempK )) * tempK ) - 4.0;
float tempC = t... |
5ecf3f5ff0e841615b56f1a627fa1405c72ca3d7 | 09dc648a54a59edb12217710f79f91fcb811a874 | /dfsIterator.cpp | dadc2a2183c446100d2b5113bcb7e7ce44cc9011 | [
"MIT"
] | permissive | taco12347/Kerwin_POSD | c75c5b8d5f555bff6584e45da8d9f4ecef3bc537 | 4bab3ab370421d72fda6ac524f35d0491b64954f | refs/heads/master | 2021-09-03T03:42:12.996614 | 2018-01-05T08:21:07 | 2018-01-05T08:21:07 | 103,501,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | dfsIterator.cpp | #include "dfsIterator.h"
#include <iostream>
template<class T>
void DFSIterator<T>::first(){
_dfsTerms.empty();
_index = 1;
extractTermByDFS(_originalTerm);
}
template<class T>
void DFSIterator<T>::next(){
_index++;
}
template<class T>
Term* DFSIterator<T>::currentItem() const{
i... |
1048173f9e38a2be83822ef01046a2b0fb3f2fa9 | 81890c3fe2757020b6bb0451370d8a9e5f45698b | /ServiceServer/Classes/TowerTrialService.cpp | f89bbb04dbc68fe5ea297dc92c2c85f325b5c708 | [] | no_license | alenming/trunkServer | c274811ac810c63939875bda7cf03291f084f6b8 | 4224260b5db72880ec53bbd30e2ada1ba9905e5d | refs/heads/master | 2021-07-16T05:53:40.459835 | 2021-07-01T04:24:37 | 2021-07-01T04:24:37 | 116,622,506 | 4 | 15 | null | null | null | null | GB18030 | C++ | false | false | 15,282 | cpp | TowerTrialService.cpp | #include "TowerTrialService.h"
#include "Protocol.h"
#include "TowerTestProtocol.h"
#include "ErrorCodeProtocol.h"
#include "CommStructs.h"
#include "GameDef.h"
#include "ItemDrop.h"
#include "GameUserManager.h"
#include "KxCommManager.h"
#include "ChallengeRoomManager.h"
#include "ConfHall.h"
#include "Co... |
50119bda9756b5652bd55824d7db8976d6211713 | ab15f15d1d3cc66bc698cd7cc4e2fedfd47e71d3 | /Image/ImageLabeling.cc | c80c83708605159351f97bf14ef2556720ad279a | [] | no_license | horsewin/ARDiorama_ARMM | 6d39e3612ad898811460c5f3d4f48cf2ca51cd2c | ca76f4548eea18719eb994cd70aa5d6f1ada1498 | refs/heads/master | 2020-05-18T19:50:52.873256 | 2013-01-24T18:40:01 | 2013-01-24T18:40:01 | 4,478,564 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,392 | cc | ImageLabeling.cc | /*
* ImageLabeing.cc
*
* Created on: 2010/11/18
* Author: umakatsu
* 2-dimensional binary imageに対してのラベリングを行うためのクラス
*/
#include "Image/ImageLabeling.h"
#include <stdio.h>
#include <fstream>
#include <vector>
namespace PTAMM{
//const definition
#define DEBUG 0
using namespace std;
namespace{
templat... |
24b60d6245a87f15eeb69c647542cc53a45ea7cd | 9a2aa125270c285f099024374d1256409b4e6409 | /source.cpp | c89387913a4511fcaac21485a4b5be847a9ad363 | [] | no_license | KrzysiekGL/Transportowy-Kalkulator | ace5e1b2472a457d77bdb84083bd5157ef2b7353 | 3d153c60023cbddcecae8bf53e3c6c88266015b0 | refs/heads/master | 2023-08-29T15:59:49.553656 | 2021-10-21T22:39:38 | 2021-10-21T22:39:38 | 272,003,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,822 | cpp | source.cpp | #include <iostream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <fstream>
#include <iomanip>
using namespace std;
void drukuj_macierz(float macierz[6][6], int x = 6, int y = 6);
void generuj_macierz(float macierz[6][6], int x = 6, int y = 6); // matrix with pseudo-random data
void wprowadz_macier... |
bff35e26aa20b65dc66de99442eedbcc6b6ff5fc | 0c0cb16aeb0f6ef54f620d7e317c87a7a5ae0fcc | /Algorithms/274_h_index.cc | b1eda90ed20f6be41935f987117ea7996b366d67 | [] | no_license | jeffreyfox/LeetCode | 5b18d95ffc5143933a306f902b7bcce57197e25c | e05ef7ab4345beecd5ea36a63340a3618311a743 | refs/heads/master | 2022-07-28T10:29:02.490115 | 2022-07-20T16:36:38 | 2022-07-20T16:36:38 | 29,803,806 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,273 | cc | 274_h_index.cc | /*
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.
According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more ... |
7dc1f1e4fc502247c258c79b00ffac5aaa036c18 | ade9cbf4e9a400d0834c15fe8aca4814bdd5bbe8 | /data_structure/type_traits.hpp | d9fc632e992b3bd4a7083c9c6df187b930401c2f | [
"Apache-2.0"
] | permissive | Jonny0201/data_structure | 70b9d9a446f98678729f1ab097acc08e54f02ed7 | 4950899b5e64616c00689cc3630432fc7157a22f | refs/heads/master | 2022-11-18T16:27:38.182279 | 2022-11-11T12:54:43 | 2022-11-11T12:54:43 | 166,549,211 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118,002 | hpp | type_traits.hpp | /*
* Copyright © [2019 - 2022] [Jonny Charlotte]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
6c9dde8a666a8cd63e33b34209d1e71f5846a581 | dc88fb5279972c9873681adea258e7c8f5f1ebac | /test/atmega328p/expected_pins.cpp | 7b0b1c42fc1e82cb8121f5a0003811a215515f9d | [
"MIT"
] | permissive | ricardocosme/avrIO | 9cb4e57991d97a66c7bef1f0bd21fe5d6c498522 | b60238b48d1283324f8f73e530d582432c6c5f71 | refs/heads/main | 2023-04-08T18:46:32.099199 | 2021-04-13T17:32:33 | 2021-04-13T17:32:33 | 334,336,350 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,628 | cpp | expected_pins.cpp | #include "../expected_io.hpp"
void ctor() {
ctor_impl<PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7>(DDRB);
ctor_impl<PC0, PC1, PC2, PC3, PC4, PC5, PC6>(DDRC);
ctor_impl<PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7>(DDRD);
}
void functions() {
functions_impl<PB0, PB1, PB2, PB3, PB4, PB5>(PINB, DDRB);
functions_... |
663e0c451f67d9184a1ed0ae51f353527819c974 | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/HoudiniEngineUnity/TOPNodeTags.hpp | 397b4acfea1000f7801f1262291fe12a45b33d01 | [
"LicenseRef-scancode-unknown",
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 2,691 | hpp | TOPNodeTags.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-ut... |
acb719e5f06ea1e8ace03db7afe1877cd229c45b | 6d7bfc09df3f4336312537fc3393926c366f5773 | /meta-tizen-common-base/recipes-application-framework/update-desktop-files/update-desktop-files-extraconf.inc | f8fb04f603f4b09ee8b7ff6e704a956d1dbb31c2 | [
"MIT"
] | permissive | rzr/meta-tizen | 535553d1bf2edcf8bfc212f2eac5ce71c476f39a | db6ab944d71077a02fb4b504bed4dc6f1cc7794c | refs/heads/master | 2021-01-17T10:26:41.401120 | 2015-01-23T14:08:40 | 2015-01-26T10:47:03 | 48,059,548 | 0 | 0 | MIT | 2019-08-07T22:02:10 | 2015-12-15T17:50:56 | PHP | UTF-8 | C++ | false | false | 83 | inc | update-desktop-files-extraconf.inc | FILES_brp-trim-desktopfiles += "/usr/lib/rpm/brp-tizen.d/brp-70-trim-desktopfiles"
|
c54d65b769a8bc88b9e55995f5c39943c59cc4d6 | a818c3d2176c485c48e3c8976f3bcbd1be628f47 | /CargoLoading/PalleteModel.cpp | e09b1a1c696a2773ad76c8538117b21970cbaee1 | [] | no_license | alikh31/CargoLoading | d382f6754482c2587b744b5f309ea6137435c456 | 01cac79b3aefe24da0631786cbbb9e555f8a914e | refs/heads/master | 2021-01-20T02:11:54.891233 | 2014-09-22T13:28:17 | 2014-09-22T13:28:17 | 23,918,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,245 | cpp | PalleteModel.cpp | #include "PalleteModel.h"
#include "GUIMainWindow.h"
CPalleteModel::CPalleteModel(CGUIMainWindow* pMainWindow)
: QAbstractTableModel()
{
m_pMainWindow=pMainWindow;
}
CPalleteModel::~CPalleteModel()
{
}
int CPalleteModel::rowCount(const QModelIndex & ) const
{
if(!m_pMainWindow || !m_pMainWindow->m_pProject)
... |
49986bfadb93ab2c2c02d0274a81865d566e2c30 | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/processor54/35/p | 1deef008494fc4b6f4788285917e9cdb71db6b2a | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,922 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
abaff1bd1badde715de9fe677672fc77847cc135 | 2e7a16af778505e22e3227b0d5cc5e77b72dc58f | /codeforces/1396/A.cpp | dfa910f92552f030696d1b0f385f1906f8025cb8 | [] | no_license | sohardforaname/ACM_ICPC_practice | e0c2d32787f7872bc47dc9f7e9d7676ed48f3342 | d9defa11f1ab3c6d73c7ff7653cf5a0fed6a60b6 | refs/heads/master | 2022-04-30T11:15:07.317974 | 2022-03-19T08:39:59 | 2022-03-19T08:39:59 | 251,541,235 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
typedef long long ll;
ll a[N];
int main()
{
int n;
scanf("%d", &n);
for (int i = 1; i <= n; ++i)
scanf("%lld", &a[i]);
if (n == 1)
return printf("1 1\n0\n 1 1\n0\n 1 1\n%lld\n", -a[1]), 0;
printf("1 1\n... |
9c88ade8fb02b0d33da39e5b7d00eebeb4a2e0ab | 7b86921b259a01855414f453e71ae37143457f16 | /dev/user-dossier/user-dossier-srch.cc | d2d16b576aa37921268779b05d0b3cf5140532d0 | [] | no_license | chlewey/ilecto-util | 5093e15b04bf92eec2788aee176ed3f61bb80b05 | a48afc43fb7a355b49d4f9ec4626a7f6dbb32c6c | refs/heads/master | 2020-05-23T10:17:40.929462 | 2017-02-02T14:42:34 | 2017-02-02T14:42:34 | 80,415,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31 | cc | user-dossier-srch.cc | #include "user-dossier-srch.h"
|
54c0889b6e3d130b96bf583fbabba489e38fea4e | 614b424a7a45e068fe92dbc5282abeee27f995c4 | /tests/gtest_json.cpp | 85cb6b8db3590ffc90bacefbbcb03f495828cc4d | [
"MIT"
] | permissive | BehaviorTree/BehaviorTree.CPP | b21b34e28bdc7bebbcfd7fc3ac2ef8bc79803c18 | eaa76be985fee01003a0de6f76766249018edded | refs/heads/master | 2023-08-30T23:44:17.414272 | 2023-08-24T12:04:53 | 2023-08-24T12:04:53 | 153,316,914 | 2,301 | 613 | MIT | 2023-09-14T05:56:48 | 2018-10-16T16:19:58 | C++ | UTF-8 | C++ | false | false | 1,667 | cpp | gtest_json.cpp | #include <gtest/gtest.h>
#include "behaviortree_cpp/json_export.h"
//----------- Custom types ----------
struct Vector3D {
double x;
double y;
double z;
};
struct Quaternion3D {
double w;
double x;
double y;
double z;
};
struct Pose3D {
Vector3D pos;
Quaternion3D rot;
};
//----------- JSON specia... |
f595c6be1e1c23d80010cbe66e3eb884b92cee6b | 81f04b08896556f13284c003b2f921c008c111f6 | /SRC/controller/management_command.cpp | 2075ca43861a98568755f5b1354ff04db6f40ea2 | [] | no_license | hochlerer/dna-analyzer-design | 890c8f1602a92264cc1205b553dbf9e47a66d462 | 0e3358519ca92bd8a584837ea3200ca643d21ece | refs/heads/master | 2023-01-01T15:41:13.337796 | 2020-09-24T20:25:07 | 2020-09-24T20:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 65 | cpp | management_command.cpp | //
// Created by y on 7/8/20.
//
#include "management_command.h" |
d5ab99cd45fa8a034bbbd3160b23c4e4cef3466f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_0/C++/koloniss/main.cpp | 2f70edfe91a1d214dff999c7d187fab0693538ad | [] | 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 | 2,292 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
char mas[4][4];
bool xwin,owin,ended;
int main() {
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int T;
cin>>T;
for (int t = 0;t < T;t++)
{
cout<<"Case #"<<t+1<<": ";
ended = true;
for (int i = 0;i<4;i++)
fo... |
8a94227f4f532668f94d5519cb0b782bcca4d609 | 8b9e8aeb52bb61513bb295b069cb5502cc25687e | /MiscUtil.h | 967af563f2699aa9c331221aa663208edc9df1b5 | [] | no_license | lfrazer/PapyrusUtil | cecc038ff2bae7390c0037236c8394cb054b0291 | fbd0ad04d48899f158518df83e1bbe14b8095591 | refs/heads/master | 2022-12-12T14:42:23.697992 | 2020-09-20T15:17:09 | 2020-09-20T15:17:09 | 297,849,846 | 1 | 0 | null | 2020-09-23T04:15:41 | 2020-09-23T04:15:40 | null | UTF-8 | C++ | false | false | 663 | h | MiscUtil.h | #pragma once
#include "skse64/GameReferences.h"
#include "skse64/PapyrusVM.h"
struct StaticFunctionTag;
namespace MiscUtil {
void RegisterFuncs(VMClassRegistry* registry);
//void ToggleFreeCamera(StaticFunctionTag* base, bool arg1);
//void SetFreeCameraSpeed(StaticFunctionTag* base, float speed);
//void SetFre... |
e47460dd5e6fa20db7864963375d37552c382e94 | 3a019bc8436252242b430f3433b45364dc1c80f1 | /C++ Project/TwoInputGate.cpp | 58dbbc6574f76b3f00d855247adf32ee6b11a241 | [] | no_license | hudkinsnoah/Works-Repository | 3812d470cd65a7a29ecdafdb1e849a61cfa68e93 | fb1b8ce2acb710c0f5216714000c8761061dbfc4 | refs/heads/main | 2023-07-19T20:03:31.590720 | 2021-08-26T18:03:43 | 2021-08-26T18:03:43 | 399,323,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | cpp | TwoInputGate.cpp | #include <iostream>
using namespace std;
#include "TwoInputGate.h"
TwoInputGate::TwoInputGate(LogicOperation op)
{
input1 = nullptr;
input2 = nullptr;
getType = op;
}
bool TwoInputGate::getOutput() const
{
if(getType == AND)
return input1->getOutput() && input2->getOutput();
else if(getTyp... |
0061d7a04146693f77230031c9a6920f5de02156 | af1e383a9045ce4afbefafdcafbe6fb881d13343 | /Dev/Codigo/StructureValue.cpp | b9a2a330500d6bfe26a2b10bf534d64113d07b9e | [] | no_license | nicohen/tpdatos2008 | 17941e24a87728f456ac89e623fbf7efc4a26c38 | 7437c437325179f35e6cc04de3de2511023f24ff | refs/heads/master | 2021-03-24T14:07:53.365348 | 2008-12-07T22:09:05 | 2008-12-07T22:09:05 | 34,405,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,233 | cpp | StructureValue.cpp | #include "StructureValue.h"
#include "StructureType.h"
#include "IntValue.h"
#include "Data/Record.h"
#include "DataType.h"
using namespace std;
StructureValue::StructureValue()
{
this->_dataValues = new vector<DataValue*>();
}
StructureValue::~StructureValue()
{
this->clear();
delete(this->_dataValues);
}
char ... |
c5ff5501b69ee98700ed03fe564acc160f78baf8 | 6398c5babd7b8d3ad24fa743820bccd5f70fa1ed | /source/main_win64gl.cpp | 0ca2705b802f37d31871757c064c9bf7c0034271 | [
"MIT"
] | permissive | Basez/Agnostik-Engine | f8d6173e17c4438b34853d1d51db64d808574e8f | 10171bbeb73c590e75e9db5adf0135e0235f2884 | refs/heads/master | 2021-01-21T04:30:51.989357 | 2016-07-10T09:58:13 | 2016-07-10T09:58:13 | 38,234,601 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | main_win64gl.cpp | #include "shared.hpp"
#include "application.hpp"
#include "render_api_gl.hpp"
#include "config_manager.hpp"
#include "os_utils.hpp"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
using namespace AGN;
int WINAPI WinMain(HINSTANCE a_hInstance, HINSTANCE a_hPrevInstance, LPSTR a_lpCmdLine, int a_nShowCmd)
{
UNREFERE... |
72cbb89b7258c0094c369332f0b778084e5a9edd | 9b1a0e9ac2c5ffc35f368ca5108cd8953eb2716d | /7/1 General Programming/03 Optical Flow For Videogames Played With Webcams/Game/Source/SoundManager.cpp | 336930c2800b16f977e194992585586b432829f9 | [] | no_license | TomasRejhons/gpg-source-backup | c6993579e96bf5a6d8cba85212f94ec20134df11 | bbc8266c6cd7df8a7e2f5ad638cdcd7f6298052e | refs/heads/main | 2023-06-05T05:14:00.374344 | 2021-06-16T15:08:41 | 2021-06-16T15:08:41 | 377,536,509 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | cpp | SoundManager.cpp | #include <stdio.h>
#include <string>
#include "alc.h"
#include "alut.h"
#include "defines.h"
#include "SoundManager.h"
SoundManager * SoundManager::mSoundManager=NULL;
SoundManager::SoundManager()
{
mIsAvailableSound = true;
_initAL();
}
SoundManager::~SoundManager()
{
_finalizeAL();
}
void SoundManager::CleanUp(... |
984a768b42ee80238c21e392cf4624fa6207d23f | 2810e677de2d36a34a4cc4630960054b3e9ab861 | /core/test/test_author.cpp | 90788ad21b26b121b1df670962ad635b7a4a432f | [] | no_license | martiert/library | 692b4352505f38ca09eff7542c4126c061f69136 | f99a816ea69b383f7dc34f23e05016c0515d6b85 | refs/heads/master | 2016-09-11T01:54:14.859655 | 2014-10-12T11:39:48 | 2014-10-12T11:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | cpp | test_author.cpp | #include "CppUTest/TestHarness.h"
#include "Library/Author.hpp"
#include "Library/Entry.hpp"
class AuthorOnlyEntry : public Library::Entry
{
public:
AuthorOnlyEntry(std::vector<std::string> authors)
: authors_(authors)
{}
private:
const std::string & get_title() const override
{
return... |
2cfb8a950b6ed5e194988f02f2e6a7b259ca3f1e | 0918a3eead990ba0abdf022b5dfa062b335f44f1 | /projects/Week2-FaceTimeMachine/src/testApp.h | de89f026019ab59a0e104cb2bdbd7044673f84a5 | [] | no_license | dmak78/AppropriatingNewTechnologies | 01ba7fd43e5ed6119c9a8805c0c66514a68ec7b4 | ba87cb20f04e7e04bf9b531ce63a28266020de7d | refs/heads/master | 2020-12-25T11:57:35.801660 | 2012-03-23T14:40:57 | 2012-03-23T14:40:57 | 3,283,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | h | testApp.h | #pragma once
#include "ofMain.h"
#include "ofxCv.h"
#include "Clone.h"
#include "ofxFaceTracker.h"
#include "ofxFaceTrackerThreaded.h"
using namespace ofxCv;
using namespace cv;
class testApp : public ofBaseApp {
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void mouseDragged(... |
211d42862fd295ef18461063142d805e922917ce | d5c86c77bb44f9316cf6b54c0ad52b251f9fcf3c | /WordComparison.cpp | d8683182a1f42e1df281a6eefaa033e39ccfeac8 | [] | no_license | Countd0wn142/ProgramsArchive | 7d83e0a108e132e9b38766aac2f273361eb215ff | 2e90462f1eaf2e67437216391d99eea5cd8f0d56 | refs/heads/master | 2020-03-27T11:12:51.416002 | 2018-09-06T13:58:17 | 2018-09-06T13:58:17 | 146,472,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,965 | cpp | WordComparison.cpp | /*
+-------------------------------------------------------------------------------+
| Author : Brady Barnett |
| Date : 06/18/2018 |
| Description: Program that checks if two words can be connected through |
| a series of words with only one letter different in each |
| word gi... |
870a4dce9b4fef92377bf86c9b621f024e3bca68 | 7dcc021a54186053194fa12fb10f7266dcc6d511 | /src/gmmbin/gmm-et-acc-a.cc | a12c08bd48ef819821b30d0f026e23dce7395210 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | troylee/kaldi | fcdb3cda8a95f0aae71b05242f5a777a02131351 | 33b9f3bcebca5f2e280c6416f95962d664a1d26d | refs/heads/master | 2020-05-25T10:07:08.210149 | 2014-07-18T08:32:35 | 2014-07-18T08:32:35 | 21,224,820 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 7,383 | cc | gmm-et-acc-a.cc | // gmmbin/gmm-et-acc-a.cc
// Copyright 2009-2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS... |
c7c2293598acd08d4f5fbe228e50182265b4fac4 | 839f460f7cd4777fe90e987559075b3d54920132 | /c++_primer_exercise/ch10/ex10_11.cpp | 1912fc3c11f490f4265a5f88bcbef8ade03c1065 | [] | no_license | soldier828/cPlusPlusPrimerProject | 0e2219dff50144089a06ae16dfb0e104392ff552 | af24463968587af410c61db54ecd5a2475e37604 | refs/heads/master | 2021-05-01T22:35:15.197165 | 2017-03-10T12:31:35 | 2017-03-10T12:31:35 | 77,431,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | ex10_11.cpp | #include <vector>
#include <iostream>
#include <string>
#include <algorithm>
using std::string;
using std::vector;
bool isShorter(const string &s1, const string &s2){
return s1.size() < s2.size();
}
void elimDups(vector<string> &words){
std::sort(words.begin(), words.end());
auto end_unique = std::unique(... |
0f4f770188ad4914d3b19dba9bb95d311f37b609 | f63b8fe1d770ae6b23b5643101ee3ab1aa92956a | /History.cpp | eda603f243750e4f8ba54e53bc987eb2ecdbf2cf | [] | no_license | sanvega9/sandibell-project-c- | 41ec23962670e964bf5c59eef93c9ef3dee4fd39 | 1abe01b1d9ba1307ffcde423a6cf142c1f622d1d | refs/heads/master | 2022-06-07T05:17:34.949752 | 2020-05-02T03:08:49 | 2020-05-02T03:08:49 | 260,603,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | History.cpp | #include "History.h"
#include "Map.h"
//function to location to the CANDYMYSTERYLAND
void History::playerTurn()
{
map map("mintchoc", 1);
for (int i = 0; i < 1; i++)
{
map.location("right");
}
for (int i = 0; i < 1; i++)
{
map.distance(28, "23");
}
}
|
927e31723853f1721e00e58d7c76054503080e51 | 82959ffb9b8dfc36ad4b0ff5156d09bb87385475 | /8.ExamPrep.03.09.2017/Cake.cpp | 28387724eb701e5a05701daceca6a4566c5f9852 | [] | no_license | AntoniaShalamanova/Programming-Basic-With-C-Plus-Plus | bec64933afcc7d8edf93822508e82ca9051de097 | 1612fb8615fc42f6d27447214b3c3ed2c2410b57 | refs/heads/master | 2020-05-14T17:50:36.387047 | 2019-04-17T14:28:40 | 2019-04-17T14:28:40 | 181,893,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | Cake.cpp | // Cake.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int length, width;
cin >> length >> width;
int area = length*width;
string pieces;
int number_of_pieces = 0, piece;
for (int i = ... |
f344b7857c72ce2b3c7780554ecf05f11ba11e68 | e0005f0b10a7b9091ce8c0aafa5d5431bfbd207f | /linkSort/main.cpp | 144a0b85ab0cfeb4d95c112e90f67a0dac946287 | [] | no_license | PythonMyLife/data_structure | b9c88791620984f754fe13801531cb2e0d4e2342 | 51a31dc8a27aee92d2465f021391363bd90d4834 | refs/heads/master | 2020-05-07T09:48:26.695050 | 2019-06-10T15:22:18 | 2019-06-10T15:22:18 | 180,392,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,164 | cpp | main.cpp | #include <iostream>
using namespace std;
struct Node {
int value;
Node *next;
};
/*void insertSort(int *array, int length)
{
int i, j;
Node *head = new Node(), *nextp = new Node(), *tmp = new Node();
nextp->next = NULL;
nextp->value = array[0];
head->next = nextp;
for(i = 1; i < lengt... |
581e452c391bdf530165e01f3f8bc40474c638f8 | 3966cab3c688138b27853492331a18985b46e94b | /AlgorithmSortQuick.cpp | f503fc1e5912db20e1b37a49e85e3662640eb9e8 | [
"MIT"
] | permissive | ghanimmustafa/Kth-Largest-number | 6c6c2e7ed3c8356711cda64d1aa27f7df0838187 | 655de19818d9b7a103b6117c564e14f53eaecc2d | refs/heads/master | 2020-12-13T09:00:06.286914 | 2020-01-16T17:15:00 | 2020-01-16T17:15:00 | 234,369,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,266 | cpp | AlgorithmSortQuick.cpp | #include "AlgorithmSortQuick.h"
AlgorithmSortQuick::AlgorithmSortQuick(int k): SelectionAlgorithm(k){
this->k = k;
}
int AlgorithmSortQuick::select()
{
int N = 0;
cin>>N;
int x=0;
int *pNums = 0;
pNums = new int[N];
int left =0;
int right = N-1;
for (int i=0; i... |
f5745893fd88a6527a0b5e82bef5ac01b6b9167c | b46a748df7ad8336a555ca36ec58a16c2da58722 | /DXR_SoftShadows_Project/BeLuEngine/src/ECS/Components/InputComponent.h | 8b9d3d64819a24a5e4f125fdd1546a4b60027577 | [
"MIT"
] | permissive | fjz345/DXR_SoftShadows | c66aa33b7455f9b6c76df93cbe7710358faef6c3 | 00cb6b1cf560899a010c9e8504578d55e113c22c | refs/heads/main | 2023-08-26T11:45:45.232481 | 2021-07-12T14:39:32 | 2021-07-12T14:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | h | InputComponent.h | #ifndef INPUTCOMPONENT_H
#define INPUTCOMPONENT_H
#include "EngineMath.h"
#include "Component.h"
#include "Core.h"
class BaseCamera;
struct MouseScroll;
struct MovementInput;
struct MouseMovement;
namespace component
{
class InputComponent : public Component
{
public:
// Default Settings
InputComponent(Entity*... |
c3c2d6bdd4a7b65f63e767132fe26da79e1ec5b8 | 2b8d0631df3b4acf7a978611a378a1b85af9397d | /cpp/leetcode/twoSum.cpp | 189b7f5d701e935ec12a0c45a033d75c8ce5c917 | [] | no_license | sanyinchen/algorithm | ab110ae95c9af480d22407e17cc7b1a9fb4a05d5 | c7e143e082d0f6008bdafde9570f6ab81a0b165e | refs/heads/master | 2022-10-28T11:41:12.335971 | 2022-10-19T14:07:15 | 2022-10-19T14:07:15 | 88,053,211 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | twoSum.cpp | //
// Created by sanyinchen on 17/4/20.
// https://leetcode.com/problems/two-sum/#/description
//
#include <iostream>
#include <vector>
#include <map>
using namespace std;
vector<int> twoSum(vector<int> &nums, int target) {
int length = nums.size(), dv;
vector<int> res;
map<int, int> maps;
for (int i... |
cab2f782c6382d0013da0b395054248375202e0d | 2b332da28ca7d188892f72724400d79f16cda1b9 | /src/asset/texture.cpp | 5b128113c6c439372a2c9c0e534aa1328bcad1cc | [
"Apache-2.0"
] | permissive | chokomancarr/chokoengine2 | e4b72f18f6fd832c2445b5c7bec1bb538ad62de1 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | refs/heads/master | 2023-05-02T18:05:43.665056 | 2021-04-14T17:54:17 | 2021-04-14T17:54:17 | 191,103,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,004 | cpp | texture.cpp | #include "chokoengine.hpp"
#include "texture_internal.hpp"
#include "backend/chokoengine_backend.hpp"
CE_BEGIN_NAMESPACE
_Texture::_Texture(std::nullptr_t) : _Texture(0, 0, 0) {}
_Texture::_Texture(uint w, uint h, GLuint ptr)
: _Asset(AssetType::Texture), _pointer(ptr), _width(w), _height(h), _hdr(false) {}
_Text... |
23fb42ce0c91efcbcab2e567437bdde8610aae97 | 868ba990839028b738584acbf20ec587fb318503 | /src/impl/items/item.h | 7d70bad235303d02ba90f531cc407f33ae71ea25 | [] | no_license | jackHay22/swamp-surveyor | ffa122c08221c1a0f1de5551e184f4975fcfdd51 | 867c33cda7bb173921a3d1c401cb87a8da2e973b | refs/heads/main | 2023-04-07T01:04:14.514055 | 2021-04-03T19:35:46 | 2021-04-03T19:35:46 | 324,853,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,123 | h | item.h | /*
* (C) 2021 Jack Hay
*
* Untitled Swamp game
*/
#ifndef _IO_JACKHAY_SWAMP_ITEM_H
#define _IO_JACKHAY_SWAMP_ITEM_H
#include <SDL2/SDL_image.h>
#include <SDL2/SDL.h>
#include <string>
#include "../tilemap/abstract_tilemap.h"
namespace impl {
namespace items {
/**
* An item in the map
* that can be picke... |
68b77e27319caeda946b49222eb1973f8bc297b3 | ee5fb93e5daefbf6ec20157b3c50942451a4983e | /src/optimization_problem.cpp | 7983eef33d1bb98d3c18fe7b5c514c9056150fd9 | [
"MIT"
] | permissive | humanphysiologylab/Genetic-Algorithm | 472bdeec77220c00b5b356ed43774aa7686325be | 88afa7506b3a6d62f0c991ddf1dca325e2524c5f | refs/heads/master | 2022-05-12T06:59:31.072079 | 2022-04-25T09:14:53 | 2022-04-25T09:14:53 | 197,004,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,050 | cpp | optimization_problem.cpp | #include "optimization_problem.h"
#include <iomanip>
BlockOfTable::BlockOfTable(int * model_indices, Block xblock)
: Base(xblock), model_indices(model_indices)
{}
int BlockOfTable::get_model_pos(int col) const
{
return model_indices[col];
}
Table::Table(int m, int n, const std::vector<std::string> & header)
... |
d69051951e735200c88c3dd337b077d96a1a4401 | b7e2338a82c2db9050875f104d01065d7c2f5ed8 | /Linked Lists/reverseAlternateKnodes.cpp | 7ec04f679374b9456947063aa5055fdac6d3c976 | [] | no_license | bhavyeah20/interviewbit | c7cdebe88971a5f536cc5cca1f121e2de166f50f | 51662f695a8124992426f329f26800777c2b0531 | refs/heads/master | 2023-08-08T02:51:46.120784 | 2021-09-25T04:27:18 | 2021-09-25T04:27:18 | 356,602,181 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | reverseAlternateKnodes.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
ListNode* Solution::solve(ListNode* A, int B) {
ListNode *t = A;
ListNode *prev = NULL, *curr = t, *next;
int b = B;
if (B == 1)
return t;
while (b-- && c... |
225fc6b5e73a9a679450280ff1f38cac21901597 | afd111f4ff11b47834a1e7c0be4eed81be8ce379 | /dirc.cc | 42cec7966030070bd5d472c4c2de26a6bce4c431 | [] | no_license | EIC-Detector/EicDircStandalone | 16ddb7f6223c2ce4f8236954fc17fd68c5e5bcf1 | a525887fc95e27d3b4eec05341726ac13c45f8ba | refs/heads/master | 2020-05-20T06:04:26.784936 | 2015-10-03T18:43:49 | 2015-10-03T18:43:49 | 30,775,679 | 0 | 1 | null | 2015-10-03T18:43:50 | 2015-02-13T20:55:32 | C++ | UTF-8 | C++ | false | false | 3,245 | cc | dirc.cc | #include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "EicDircStandalonePhysicsList.hh"
#include "EicDircStandalonePrimaryGeneratorAction.hh"
#include "EicDircStandaloneDetectorConstruction.hh"
#include "EicDircStandaloneRunAction.hh"
#include "EicDircStandaloneEventAction.hh"
#include "EicDircStandaloneStacki... |
0a1ac60ee9e964ba719b2dd80c3022eb7efc3942 | 7dd32e878b844731e6eb9348062c3bcc91374304 | /Hospital Sim/Simulator.h | e8c2853251c4c585a2aaf7148803a1db0a53809e | [] | no_license | dhansen17/Hospital-Sim | 447a4bcedc04ef8d324b02db1aadf12ae1b6dd19 | 411d8eb40ac29a4a9c6c7c8e9d57207fbdaecfd0 | refs/heads/master | 2021-01-10T12:01:56.397673 | 2016-02-16T21:14:59 | 2016-02-16T21:14:59 | 51,870,765 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,056 | h | Simulator.h | #ifndef SIMULATOR_H_
#define SIMULATOR_H_
#include"Patient.h"
#include"Hospital.h"
#include"Random.h"
#include"Doctor.h"
#include"Emergency.h"
Random newmy_random;
class Simulator
{
//Private variables
private:
//Int variables
int totalTime;
int clock;
//Pointers
EmergencyRoom* roomobject;... |
2081951b7cdc81016f3accf5ff2a240bcfc858d1 | 02f6798a3b497f12382ed6159db194af242ac23b | /source/diy/smd/smdVertex.cpp | 3383e4a75f28146b5977c9367991209a1f87bb8c | [] | no_license | SaulHP91/DIYlib | 62fc2e32861bcbda760e42d72be796d49ffcd2b8 | 7f2c381f0d9a1e90f929a74987dcf0c85ed7f1fa | refs/heads/master | 2020-12-25T18:22:38.390742 | 2015-04-26T09:00:30 | 2015-04-26T09:00:30 | 34,035,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | smdVertex.cpp | #include <diy/smd/smd.hpp>
namespace diy
{
namespace smd
{
SmdVertex::SmdVertex(void) :
BoneIndex(-1)
{
;
}
SmdVertex::~SmdVertex(void)
{
SkinWeights.clear();
SkinWeights.swap(std::vector<SmdSkinWeight>(SkinWeights));
}
bool SmdVertex::ParseFromSStream(std::istringstream& in)
{
std::... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.