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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
782e35e477ca07fda8cbac7b61b2b4cf845f2dd3 | 367e8612cb116ac46d08856127a05d78d1fc03f1 | /Engine/OGF-Core/Core/Core.h | d585025851d2cd2d83eca77cb4f2f3b1456b5e34 | [
"MIT"
] | permissive | simon-bourque/OpenGameFramework | a1c848ec9b203d23831a07dbca978b93495fb41d | e0fed3895000a5ae244fc1ef696f4256af29865b | refs/heads/master | 2023-02-08T17:44:21.387079 | 2020-12-22T20:52:48 | 2020-12-22T20:52:48 | 83,928,624 | 5 | 0 | MIT | 2020-12-22T20:52:50 | 2017-03-04T22:24:01 | C++ | UTF-8 | C++ | false | false | 212 | h | Core.h | #pragma once
#include "Core/Types.h"
#include "Core/Logging.h"
#include <string>
using std::string;
#ifdef DEBUG_BUILD
#define DEBUG_LOG(msg) printToConsole(msg)
#else
#define DEBUG_LOG(msg) ((void)0)
#endif |
26018c963253be28e08dc5e50b2c41d18c76230d | 79db16655c9bca2921ddda74797f5cbf16c30051 | /1 convolution/main.cpp | 3b982ec0151d96a5f8ad71ab7b698205b671e31c | [] | no_license | mchernigovskaya/opencl | ca249b1f6ace04243c994fb433ace08e7243d0d4 | fa59ce5859399d5c710f06e4b96a85c9245804bc | refs/heads/master | 2021-09-06T04:52:37.169393 | 2018-02-02T13:41:04 | 2018-02-02T13:41:04 | 119,895,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,857 | cpp | main.cpp | #define __CL_ENABLE_EXCEPTIONS
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#include <CL/cl.h>
#include "cl.hpp"
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <math.h>
typedef double elem_type;
void generate_input(size_t n, size_t m){
std::ofstream out("i... |
ab5cd097c55e47f627b32eca00aa9de6dbef128c | 05987d0c8946838ba05eb84d5e7973ecf712ff02 | /AbdulBari_ReversingAString/main.cpp | 95db2eba7fb1aec84e47b70922a2a2e942851eb8 | [
"Apache-2.0"
] | permissive | ATomar2150/DataStructuresAndAlgorithm | d3c455bc57492138c98ca3a8522be7f289e1c02b | b1cbea4ea4b27e396ebbada464417818d2862283 | refs/heads/main | 2023-01-27T20:00:23.956688 | 2020-12-06T02:43:22 | 2020-12-06T02:43:22 | 300,453,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 833 | cpp | main.cpp | #include <iostream>
using namespace std;
//METHOD 1
// int main()
// {
// char A[] = "Python";
// int len = 0;
// for(int i = 0; A[i] != '\0'; i++)
// {
// len++;
// }
// cout <<"Length of the string is: "<< len <<endl;
// char B[len+1];
// int i, j;
// for(i = 0; A... |
c2ed5850bdb87e26365057f5553843af8903b4f8 | 53733f73b922407a958bebde5e674ec7f045d1ba | /ABC/ABC191/D/main2.cpp | 9c4b25f8e182bd939e2a50b2e620ca14cdc68280 | [] | no_license | makio93/atcoder | 040c3982e5e867b00a0d0c34b2a918dd15e95796 | 694a3fd87b065049f01f7a3beb856f8260645d94 | refs/heads/master | 2021-07-23T06:22:59.674242 | 2021-03-31T02:25:55 | 2021-03-31T02:25:55 | 245,409,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,106 | cpp | main2.cpp | #include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
#define v(t) vector<t>
#define p(t) pair<t, t>
#define p2(t, s) pair<t, s>
#define vp(t) v(p(t))
#define rep(i, n) for (int i=0,i##_len=((int)(n)); i<i##_len;... |
e4edfe848032a76db9d8535ced10e78a2edfa9d7 | 18f66cb9a08030afab48494b96536e6a80277435 | /acm.timus.ru_33735/1023.cpp | 901f8c43c40f848f807647c012ede2b4be9f8c16 | [] | no_license | Rassska/acm | aa741075a825080637bebab128d763b64c7f73ae | 18aaa37e96b6676334c24476e47cd17d22ca9541 | refs/heads/master | 2023-03-15T16:57:59.274305 | 2015-02-24T21:36:34 | 2015-02-24T21:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | 1023.cpp | #include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
bool isprime(int x)
{
int b = sqrt((double)x);
for(int i=2; i <= b;i++)
if( x % i == 0)
return false;
return true;
}
void main()
{
int k,s,min = 0;
bool f = false;
cin>>k;
if(k==4 || k == 100000000)
min = 3;
else if(isprime(k)... |
be66015c2dd8d0fa2ff423c3734d811ca2ecc9a7 | 91a3c034dae129eb16e0d21dc96816e67155f42c | /Image Process/03_image_process_itk.cxx | 36754a735350b1b07af42417c50394df1a0859a8 | [
"MIT"
] | permissive | mateoflorido/CVAlgorithms | 86ef4934c7fb27f61b1fc833f5df779a6e89d5f9 | da8472d44dab68fb7f6c8075123d2d11d96c5120 | refs/heads/master | 2022-11-23T00:12:27.935863 | 2020-07-20T17:51:12 | 2020-07-20T17:51:12 | 239,562,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,142 | cxx | 03_image_process_itk.cxx | #include <cmath>
#include <cstdlib>
#include <limits>
#include <iostream>
#include <string>
#include <sstream>
#include <itkImage.h>
#include <itkRGBPixel.h>
#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>
#include <itkImageRegionConstIteratorWithIndex.h>
#include <itkImageRegionIteratorWithIndex.h>
... |
586d2588096815f39e5cffe9e2ca9bea0349d1ce | b8cb96a844b8a13d9dbdee473955abc0e50dd421 | /排序算法/Sorting Algorithm/Project1/main.cpp | 1c237d0ed022bc63615adfb147bc0845697140bf | [] | no_license | ljw-wakeup/algorithem-project-sets | fdc6693a6f9832e0a4735da09ec1e4b182324a63 | 17b419d0adba8f1c391b8c5b4c1e30d04f585d48 | refs/heads/master | 2020-05-26T14:02:50.949450 | 2019-06-01T07:35:04 | 2019-06-01T07:35:04 | 188,255,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,669 | cpp | main.cpp | #include<iostream>
#include "HeapSort.h"
#include "QuickSort.h"
#include "MergeSort.h"
#include "InsertSort.h"
#include "Windows.h"
#include "time.h"
#define TEST
#define WINDOWS_IMPL
long randomList[1000000] = { 0 };
long randomList1[1000000] = { 0 };
long numlist[7] = { 1000, 10000, 50000, 100000, 200000, 500000, 100... |
e9fd83d3b00f7279690ca09d86a041a71b8eafd0 | db0be31627c3732c66815f2d10bf3ee81bcbf818 | /GA_ST_GUI/principal.cpp | 0320d91a73efb7995374146afc73b207539480df | [] | no_license | andreyvro/SMT-GA | b9d2ddd3e27c288311d0e11988846fe415ee2b32 | 08c3f9aa4e55caf4f10aad57c73f21e51763ab47 | refs/heads/master | 2021-07-10T19:20:01.708658 | 2020-06-09T23:36:57 | 2020-06-09T23:36:57 | 134,194,979 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,768 | cpp | principal.cpp | #include "principal.h"
#include "ui_principal.h"
//std::cout << qPrintable(arqNome) << std::endl;
Principal::Principal(QWidget *parent) : QMainWindow(parent), ui(new Ui::Principal) {
ui->setupUi(this);
this->setFixedSize(width(), height());
const QRect availableGeometry = QApplication::desktop()->availabl... |
d69e10acfa9dfbea1c948ef6705f7c4b5ccb2b74 | ab1b93e96102daab136a5a94b59699684660c266 | /include/icsneo/device/tree/radgigastar/radgigastarusb.h | f4b10bba3a6b991b7b7abc52b0e2a01d4371aade | [
"BSD-2-Clause"
] | permissive | drebbe-intrepid/libicsneo | b8ed945c86e9dc53f8920fc90b2d2fb962f4a81f | 4e901676d289decc4fa7a5f294356fcc78620dc9 | refs/heads/master | 2021-06-14T11:39:23.856645 | 2021-06-07T21:03:56 | 2021-06-07T21:03:56 | 178,077,739 | 0 | 0 | NOASSERTION | 2019-03-27T21:33:31 | 2019-03-27T21:33:30 | null | UTF-8 | C++ | false | false | 744 | h | radgigastarusb.h | #ifndef __RADGIGASTAR_USB_H_
#define __RADGIGASTAR_USB_H_
#ifdef __cplusplus
#include "icsneo/device/tree/radgigastar/radgigastar.h"
#include "icsneo/platform/ftdi3.h"
namespace icsneo {
class RADGigastarUSB : public RADGigastar {
public:
static constexpr const uint16_t PRODUCT_ID = 0x1204;
static std::vector<std... |
52caf6b59e1d1645d56eb69947af1532ad8f09e1 | 269c78119f31562e87757f30eb29b3eeb8dbe1f5 | /Classes/GameResource.cpp | 894e2449c2a93d4560e9bc4e49f33d43ecc05a21 | [
"MIT"
] | permissive | rayxuln/tudo_push_box | 9fd9c32289e8c26620902d6ef91a2714244911ff | 95a6c9aa636c91cd7de8616c4e9cf8b7c1c3f22d | refs/heads/master | 2021-06-19T15:12:22.217397 | 2017-07-25T11:15:31 | 2017-07-25T11:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,861 | cpp | GameResource.cpp | #include "GameResource.h"
#include "GameHelper.h"
using namespace cocos2d;
using namespace tudo_push_box;
using namespace std;
GameResource *GameResource::Instance(){
static GameResource gr;
return &gr;
}
void GameResource::LoadGameCfgFile(string path){
string text = FileUtils::getInstance()->getStringFromFile(p... |
822feee08e2f609745d82ed79544d07dd07d2d7a | 4cfaeb9bd567dc41ab6b9e48a254265bac7301e2 | /component_animation.cpp | b68d64178661a323b99e4ecb3b100a831fd66c99 | [] | no_license | zDonik1/DungeonCrawler_RPG | ce2411a173eadf676b06beeb62fae23cdea9894c | 572275195b3f5b3f8e5dfb2840d21832005f9376 | refs/heads/master | 2020-05-18T05:37:36.858860 | 2019-04-30T07:43:17 | 2019-04-30T07:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,332 | cpp | component_animation.cpp | #include "component_animation.h"
// Constructor / Destructor
Component_Animation::Component_Animation(sf::Sprite &l_sprite, sf::Texture &l_textureSheet)
: sprite(l_sprite)
, textureSheet(l_textureSheet)
, lastAnimation(nullptr)
, priorityAnimation(nullptr)
{
}
Component_Animation::~Component_Animati... |
8481f27cfade89df39b1aa06c36b979193658325 | a2ee7bdda1ec77faf3f68b158da3523de425987e | /tp-entrega-03/common/xml/ParserXml.h | a02ab394ebe5387cf541b0877389117448ecad6b | [] | no_license | MauroToscano/Taller-de-Programacion-I-Grupo-8 | e495cbc27b76533619e0fc36c9826fe8a51e1645 | 1b5e6c6e3eda8eb1c11ab905fa75e75a571234a5 | refs/heads/master | 2022-07-20T04:00:08.267771 | 2020-02-25T23:44:10 | 2020-02-25T23:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,755 | h | ParserXml.h | #ifndef _PARSERXML_H_
#define _PARSERXML_H_
/* @autor sabris
*/
#include <stdio.h>
#include <algorithm>
#include <iterator>
#include <set>
#include <map>
#include <string>
using namespace std;
#include "tinyxml2.h"
using namespace tinyxml2;
#include "MensajeXml.h"
#include "ClienteXml.h"
#include "Ser... |
6a86f5d91e34e04daf02b625f7ba02fd9923c027 | 2489f20116dfa10e4514b636cbf92a6036edc21a | /tojcode/2350.cpp | 1bc1876d0417a79579fc0c4a429b195cff633911 | [] | no_license | menguan/toj_code | 7db20eaffce976932a3bc8880287f0111a621a40 | f41bd77ee333c58d5fcb26d1848a101c311d1790 | refs/heads/master | 2020-03-25T04:08:41.881068 | 2018-08-03T05:02:38 | 2018-08-03T05:02:38 | 143,379,558 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | 2350.cpp | #include<iostream>
#include<cstring>
using namespace std;
int dir[4][2]={-1,0,0,1,1,0,0,-1};
int map[60][60];
int main()
{
int t,n,r;
cin>>t;
while(t--)
{cin>>n>>r;
memset(map,0,sizeof(map));
int a,b;
for(int i=0;i<r;i++)
{
cin>>a>>b;
map[a][b]... |
828cc9ebaccd1fd57729590399ce30b311d49689 | a776940eca535aee58aad97eacf4a5b727f6aa8a | /operator-overloading/globally-overloaded-operators/main.cpp | 528612a252f59d9429868a9fef9f88836b89e766 | [] | no_license | itsabhianant/learning | 0712faa57e5e941d7811c0dde7747e9e8d4a7f88 | 95a98db742d822bad90c1efae6146efaf320042d | refs/heads/master | 2023-06-11T07:59:05.450943 | 2021-07-01T05:09:46 | 2021-07-01T05:09:46 | 369,283,703 | 0 | 0 | null | 2021-07-01T05:09:46 | 2021-05-20T17:12:51 | C++ | UTF-8 | C++ | false | false | 3,530 | cpp | main.cpp | #include "declarations.hpp"
int main() {
/* Implementing the overloaded operators */
// -
cout << "\n===========================" << endl;
cout << "Overloaded (-)" << endl;
Mystring upper {"UPPER"};
upper.display(); //UPPER
Mystring lower = -upper;
lower.display(); ... |
b4ea9777b82589a65df7a253cf5197d9a38fcfb3 | f3a44b78a7ee1dcbf32a2bd654728b5ac3753d88 | /Arduino/ard_py/sketch/sketch.ino | d6ccfb7999862fbcfcdcd6b0db46e400271c797e | [] | no_license | Tokunn/vim | 7251d338214a15cd37dcb9670716de396ec08007 | ef38c7d5ebb5cb1f5ac1bcd4319082e196dd5e8e | refs/heads/master | 2016-09-06T09:55:28.437282 | 2015-10-27T09:18:04 | 2015-10-27T09:18:04 | 21,315,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | ino | sketch.ino | byte val = 0;
int led1 = 10;
int led2 = 13;
void setup(){
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
val = Serial.read();
Serial.print(val); //for debug
if (val == '1') {
digitalWrite(led1, HI... |
2bb0789bf43720f7ad0f2916e1ee33a0990b4c78 | b709e1b162eb44bb54364ab09671264535a0ce01 | /lecture-1/src/exercise_d.cpp | a0a20eaffd49a6975f823c8771c0239bd1b8faf8 | [] | no_license | dangerousplay/estrutura-de-dados | aedbd61a06ce4676c7d0de9d56891a95340520ff | bfa9faa67b41c7a2b671112fdc47c065d428b50e | refs/heads/master | 2021-03-03T01:45:53.514471 | 2020-07-05T19:32:51 | 2020-07-05T19:32:51 | 245,923,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | exercise_d.cpp | #include <cstdio>
int main() {
char campo, opcao;
int num, cont;
float valor, nota;
double temp, taxa;
printf("char campo = %p witch is of size %ld byte\n", &campo, sizeof(campo));
printf("char opcao = %p witch is of size %ld byte\n", &opcao, sizeof(opcao));
printf("int num = %p witch is of size %ld b... |
c45a6a1a4b0af69f2a89ca7567eb6b5ce2187831 | d3e123962c7452113a20dd2724e779bb1731a59f | /code/01_Convert_Char_to_Int/converter.cpp | c7d575a6cf56a57f07430413eddd113f34b2d9bf | [] | no_license | daveherzig/cs_vorkurs_hfict | 4180e344d55eb439c44cf4a0afbe989936fabc1c | 1bfc8d0048837c14b4e74527d956f83514090e85 | refs/heads/master | 2018-09-28T04:30:35.048196 | 2018-06-16T07:07:20 | 2018-06-16T07:07:20 | 119,808,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | converter.cpp | /********************************************************
* Organization: hf-ict.ch
* Developer: p.suetterlin@hf-ict.info
* Date: 2018-03-19
*
* This program prints the ascii number of a character
* to the console.
*
********************************************************/
#include <iostream>
u... |
568b7c457ccf23a1a4abdffa3722063e1ea3c894 | 6ede10141823ddc8febe4b658a74c93b66e6e47b | /nbu/CSCB325/down_right_max_sum_dp.cpp | d714d14b16c075c87188e2f13ea6a629082522ff | [] | no_license | petervalkov/edu | 8c544ae0f2fc9813bb37c61399bc412c8f28083d | 8ab060fdfebe01d6472326f57dc16d7ebbbb2b39 | refs/heads/master | 2023-04-01T06:20:15.050351 | 2021-03-28T20:35:40 | 2021-03-28T20:35:40 | 280,419,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | cpp | down_right_max_sum_dp.cpp | /*Input:
2
3
0 1 1
0 4 2
1 1 1
5
1 1 1 1 1
0 0 3 4 3
0 1 2 0 1
1 1 1 0 1
2 4 0 4 0
Output:
8
15
*/
#include <bits/stdc++.h>
using namespace std;
#define MAX 110
int F[MAX][MAX];
int S[MAX][MAX];
int main(){
int input_count;
cin >> input_count;
for (int i = 0; i < input_count; i++){
i... |
e832abc25a49f5db9a6306f87fc55cdba376377f | 0be9e0989a8d8ee51f9bcddf7f966ce95cd5a1cc | /CPPTest/CPPTest/IOTest/IOTest.h | 6b3e4f168cada097a1ec87d887e45250d87eea81 | [] | no_license | MagusXuekt/CPPTest | 5438c87a1787d12710a930667b107cdced54b585 | e5352cbc776fb867060e99dc4b404283efcf64bf | refs/heads/master | 2020-05-18T05:23:18.681985 | 2019-08-05T07:53:35 | 2019-08-05T07:53:35 | 184,204,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | h | IOTest.h | #ifndef IOTEST_H
#define IOTEST_H
namespace IOTest {
//ScanfAndPrintfTest
void ScanfTest();
void PrintfTest();
//GetAndGetlineTest
void GetAndGetlineTest();
}
#endif //~IOTEST_H |
2eb8add4a4b01e562b49552edc33eedda34cffad | 312a4c158d62c8482eb129c01473d8e8325ad6b1 | /lab2/main.cpp | 6512da66efba2d34a9285759326469e728f21300 | [] | no_license | BSUIR450503/450503_vershilo | cec5beec8dd9587cc7e075a12aff66f9fd1a2f69 | 826e3acf84e188913619f32d17b54f0bfa8a4196 | refs/heads/master | 2021-01-17T07:10:01.154297 | 2016-06-20T00:32:14 | 2016-06-20T00:32:14 | 53,447,683 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 225 | cpp | main.cpp | #include "librariesh.h"
#include "func.cpp"
void main(int argc, char* argv[])
{
Myprocess P;
if (argc == 2)
{
#ifdef _WIN32
P.printString(atoi(argv[1]));
#endif
}
else P.Work_Process(argv[0]);
return;
} |
fd8a5e64a8507b38bfd69a3b6af9af465716207b | 2af15d28492c10be1cc2e27c6ac3bcfd5ea3b525 | /opm/core/props/pvt/PvtPropertiesBasic.hpp | 5ccbc858c6899ff94db67f5b16f1f6e51ca97e14 | [] | no_license | OPM/opm-simulators-legacy | 62e22354a4ea276acc40a1638317f41f84a46c6d | b027361cc3c5b09d15288cfbbbbaf8e4bb8336e5 | refs/heads/master | 2020-04-06T23:17:46.852136 | 2019-03-13T10:06:59 | 2019-03-13T10:06:59 | 157,864,384 | 1 | 3 | null | 2019-03-13T10:07:01 | 2018-11-16T12:25:53 | C++ | UTF-8 | C++ | false | false | 3,853 | hpp | PvtPropertiesBasic.hpp | /*
Copyright 2012 SINTEF ICT, Applied Mathematics.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
99d24ada84712da3adfe6057ae91a602562d3e95 | 2c7bbc527afde84d317594e61b6a74e2c4ae9b42 | /src/ContourDetector.cpp | da68bd3abcdf1e4a8ea648e1e60e957aa96ac3b3 | [
"MIT"
] | permissive | sdrobotics101/raspberry-pi | 684f565796743363cb4a89e4865e82d45d6f98e4 | 5f12538f9164590094e4710aace2d019ba6f7c98 | refs/heads/master | 2020-05-31T17:50:15.973438 | 2015-06-26T02:33:25 | 2015-06-26T02:33:25 | 20,842,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,397 | cpp | ContourDetector.cpp | #include <opencv2/opencv.hpp>
#include "Contour.hpp"
#include "ContourDetector.hpp"
#include "HSVImage.hpp"
ContourDetector::Params::Params()
{
filter_by_hue = false;
min_hue = 0;
max_hue = 255;
filter_by_saturation = false;
min_saturation = 0;
max_saturation = 255;
filter_by_value = false;
min_value = 0;
m... |
a5aabc648593db12879a0a8f4afd7003da6847a3 | abb743655f437aa17d3d3cbdab74fff32b70c5c1 | /Sources/SampleApp/VkResources/FrameBuffer.hpp | 9a1b06e407dc2b9208ef1b6a80d7be219561c03e | [] | no_license | darkoffalex/vulkan | 13eb786ea1eada68409cc31f4d173fd52d3e1b8c | 5c82bfc2868afe4fb469ff4bd7c91f55263c49b7 | refs/heads/master | 2021-07-16T12:47:34.057260 | 2021-05-30T21:17:21 | 2021-05-30T21:17:21 | 125,894,187 | 18 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,497 | hpp | FrameBuffer.hpp | #pragma once
#include "../VkTools/Tools.h"
#include "../VkTools/Image.hpp"
namespace vk
{
namespace resources
{
/**
* Инициализирующая структура описывающая вложение кадрового буфера
*/
struct FrameBufferAttachmentInfo
{
// Если передан указать на объект и... |
f269742d420ed212d971462a606b9ad7647e6f10 | f22851ebe4ec1999c6b2942dae8672ddf65897f9 | /src/TextConsole.h | 08ff01e671c699afebb84277e20e35018a37a574 | [
"MIT"
] | permissive | gaoyaoxin/WDict | 759a3da6d2784bcc7cedde02aaee137ed8baa7b7 | 35bcf332343735865dfea908459c2114d2d256bf | refs/heads/master | 2021-01-18T21:06:38.869560 | 2016-05-31T15:27:46 | 2016-05-31T15:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | h | TextConsole.h | #ifndef _TEXTCONSOLE_H_
#define _TEXTCONSOLE_H_
#include <libdict.h>
#include <libui.h>
#include <libtextdb.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "WordConsole.h"
#include "EvaluateStrategy.h"
using namespace std;
/// 文本分析器界面
class TextConsole
: public ConsoleCompo... |
8fc743f8842a1adf2018d53c3d57c20912fc636e | 9badd534130eba5ab4fb63221822abdb933a7ee6 | /DSnP/HW/HW1/b06901063_hw1/p2/p2Json.cpp | 5405cbd6083b42c77d995bf502688d9aa68bfffe | [] | no_license | chris94137/ntuee_dsnp | 6624bdc5ee17fe0acc72eddb44c013f8c684f491 | 245403957be25a2798274da20f0ff01ef9b696e2 | refs/heads/master | 2020-04-02T09:27:50.800107 | 2019-01-03T10:17:06 | 2019-01-03T10:17:06 | 154,293,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | cpp | p2Json.cpp | /****************************************************************************
FileName [ p2Json.cpp ]
PackageName [ p2 ]
Synopsis [ Define member functions of class Json and JsonElem ]
Author [ Chung-Yang (Ric) Huang ]
Copyright [ Copyleft(c) 2018-present DVLab, GIEE, NTU, Taiwan ]
*********... |
d1e460c997eec312d9049f6b57f061fac7685795 | 1917cc3414598031b02f6530a48af20ccc5dd2a6 | /kodilib/src/handler/KKeyRecorder.h | 988eda5b96c5a1af895544fa6f1a8159e67cdef8 | [
"LicenseRef-scancode-warranty-disclaimer",
"Unlicense"
] | permissive | Mistress-Anna/kiki | 8cebcf4b7b737bb214bbea8908bbdc61bc325cb5 | 2f615044d72de6b3ca869e2230abdd0aced2aa00 | refs/heads/master | 2022-04-29T16:34:45.812039 | 2018-06-24T09:13:39 | 2020-01-04T23:38:22 | 42,407,357 | 2 | 1 | Unlicense | 2022-03-16T08:11:09 | 2015-09-13T18:23:04 | C++ | UTF-8 | C++ | false | false | 699 | h | KKeyRecorder.h | /*
* KKeyRecorder.h
* kodisein
*/
#ifndef __KKeyRecorder
#define __KKeyRecorder
#include "KKeyHandler.h"
// --------------------------------------------------------------------------------------------------------
class KKeyRecorder : public KKeyHandler
{
INTROSPECTION
protected:
bool rec... |
db93a8e35f03cbb1dfbe6fe2bb22fb7c142e5a89 | 22d3b0f1eb297a15a4f42b8037b5ff50533737e8 | /Practica4_Backtracking_B&B/grupal/tsp_B&B.cpp | 222edd00a94fae044167155bd26d23c1f8603cb7 | [
"MIT"
] | permissive | dcabezas98/Algoritmica | 96584f23c4613e694ba9c6c12ee66ed331f11a2d | 8abc2f63171815299bd9537940ce41b44bfd7482 | refs/heads/master | 2021-03-30T16:37:05.644584 | 2018-06-28T11:24:56 | 2018-06-28T11:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,538 | cpp | tsp_B&B.cpp | // Requiere
// ulimit -s unlimited
// para funcionar
#include <iostream>
using namespace std;
#include <vector>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <fstream>
#include <climits>
#include <set>
void printVector(vector<int> v){
for(int i = 0; i < v.size()-1; i++)
cout << v[i] << ", ";... |
d4f6c62f9149d6dd91b7f31bd659e99b474ae566 | ea5609228135adcfddc179494d2e697fd7449fb7 | /parse_arguments.cpp | 9a870039c8229426190ab978834493b8800865cd | [] | no_license | nkyle04/progrom_assist | e1b114d74eec3a0dc477e48e2bbd7f6e4fb2bf29 | 7d209cf2aeeff2a9778bd17aefa5874bd22321b7 | refs/heads/master | 2021-01-21T19:12:21.707843 | 2017-06-06T03:06:28 | 2017-06-06T03:06:28 | 92,125,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | cpp | parse_arguments.cpp | /*!
* @file parse_arguments.cpp
* @brief example for parse arguments
*/
#include <stdio.h>
#include <string>
#include <iostream>
#include <unistd.h>
#include "parse_arguments.h"
namespace arguments {
void print_usage() {
std::cout << "\tUsage:" << std::endl
<< "\t\t-t\tnumber of threads." << std... |
73497794be00d6ad28e9fa4f02de24edecac20a6 | a0832d2f99103d4e0663656a088870c92876c538 | /Object/Brdf/Phong.cpp | 16bef3c2d30e5e07188c87cc193cf0f7311ba776 | [] | no_license | mattfischer/raytrace | 1c5225f28a34a9f4b02c18e1d9174992189fbf5b | b30e733678c71a827cce3ba34087b05df8a07a58 | refs/heads/master | 2023-08-17T07:45:32.527349 | 2023-07-30T03:17:59 | 2023-07-30T03:17:59 | 6,740,319 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,399 | cpp | Phong.cpp | #define _USE_MATH_DEFINES
#include "Object/Brdf/Phong.hpp"
#include "Math/Normal.hpp"
#include "Math/Vector.hpp"
#include "Math/OrthonormalBasis.hpp"
#include <cmath>
#include <algorithm>
namespace Object {
namespace Brdf {
Phong::Phong(float strength, float power)
{
mStrength = stren... |
2b348668373c5a78a69596d8e783acda41f0d33c | cc6fc80b8b3f83816720faf52146b34ada6b88f2 | /ComplexNumber.h | 14591d0df3b57ce384f369c087df4d286f28d8de | [
"MIT"
] | permissive | jaojao1/number | 83bfbca80e17f7b75400dda181f3e90688fa009e | fb31ffc60096b351ff747da72a449a23dd672648 | refs/heads/master | 2020-03-21T04:57:28.191046 | 2018-06-21T14:50:16 | 2018-06-21T14:50:16 | 138,136,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | ComplexNumber.h | fndef ComplexNumber_h
#define ComplexNumber_h
#include"AbstractNumber.h"
#include<iostream>
using namespace std;
class ComplexNumber :public AbstractNumber
{
public:
ComplexNumber(double a, double b);
ComplexNumber& add(const ComplexNumber&other);
ComplexNumber& mul(const ComplexNumber&other);
virtual void ... |
6b1eee5ec68ec368b919a47f048d4a1b8ebe9171 | e249448284216e9b696aa02fe9293ed7ae4eeefe | /src/network/degree_distribution/inc/power_law_degree_distribution.h | 2de146f1b364c5e18d77415f7a960d19152bedf2 | [] | no_license | shepherd92/inf_prop_simulator | 5a6204b1a146bd064a0ec2a9ada9dd1e0cfb83a4 | 0df9a2e569196e972d6f59b8e8f9d5fef3f34d6f | refs/heads/master | 2023-03-26T11:54:58.729581 | 2021-03-27T13:39:35 | 2021-03-27T13:39:35 | 259,058,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | h | power_law_degree_distribution.h | #ifndef __POWER_LAW_DEGREE_DISTRIBUTION_H__
#define __POWER_LAW_DEGREE_DISTRIBUTION_H__
#include <random>
#include "types.h"
#include "int_degree_distribution.h"
namespace simulator
{
class power_law_degree_distribution final : public int_degree_distribution
{
public:
explicit power_law_degree_distribution(cons... |
3d03a8ee885d3e043f485da8f00031b3cb49b48d | e1825eda73c111c85e07dceeab91b630475db07a | /2022/robot-firmwares/Motor_Test/lib/Grove_Motor_Driver_TB6612FNG/Grove_Motor_Driver_TB6612FNG.cpp | 41d061ad86095430f7096c64864854abe032751e | [
"MIT"
] | permissive | venki666/CpE476_demos | e9c043d42c76cb28b806b037f7f2e5e0f25e4fca | f2863ab2752de242bca1a2dffd04d2544bf95ecb | refs/heads/master | 2023-08-14T10:20:57.060908 | 2023-08-10T05:32:03 | 2023-08-10T05:32:03 | 211,710,922 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,006 | cpp | Grove_Motor_Driver_TB6612FNG.cpp | #include "Grove_Motor_Driver_TB6612FNG.h"
MotorDriver::MotorDriver() {
}
void MotorDriver::init(uint8_t addr) {
_addr = addr;
standby();
}
void MotorDriver::standby() {
I2Cdev::writeByte(_addr, GROVE_MOTOR_DRIVER_I2C_CMD_STANDBY, 0);
delay(1);
}
void MotorDriver::notStandby() {
I2Cdev::writeByte... |
effa0187a56c2827c8f0687b4953fe6e5017f7b4 | ac86d0ed6d2a48bc3333cf9369f045bab30e77a0 | /7-reverseinteger.cpp | ad5b1e32738f2afe835300381788e4d19f7d7d00 | [] | no_license | jasonliu19/LeetCodeSolutions | ecbfe28702e5f6a3ae25447e818a07f70f3700a4 | 0ebea729c8726f9dd1231ad68e64559c6f5b447b | refs/heads/master | 2021-09-07T22:21:05.450019 | 2018-03-02T02:49:19 | 2018-03-02T02:49:19 | 119,224,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | 7-reverseinteger.cpp | class Solution {
public:
int reverse(int x) {
int reversed = 0;
while(x!=0){
int temp = reversed*10;
if((temp)/10 != reversed)
return 0;
reversed= temp + x%10;
x/=10;
}
... |
a851dafbe9f465929e95f0e2800a6c422c6bc582 | acfc42e160b51343673a45c348ecdfd0b1ebabb9 | /codeforces/1600~1699/1633/c.cc | f529795fda8c6b1f2e7b8b57c135a4a762463f86 | [] | no_license | kiddos/notes | 3209237921cd52600a07b62202661898a56cbed1 | 4ef828b94ef235b43be0840f735e2f23616847fc | refs/heads/master | 2023-09-01T01:46:38.987675 | 2023-08-19T14:05:46 | 2023-08-19T14:05:46 | 80,524,342 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cc | c.cc | #include <bits/stdc++.h>
using namespace std;
typedef long long LONG;
bool can_win(LONG hc, LONG dc, LONG hm, LONG dm) {
return (hc + dm - 1) / dm >= (hm + dc - 1) / dc;
}
bool solve(LONG hc, LONG dc, LONG hm, LONG dm, LONG k, LONG w, LONG a) {
if (dc > hm) return true;
for (int i = 0; i <= k; ++i) {
if (... |
4ee61896c362a595e93090c132d8f3b22b645dc9 | c08a26d662bd1df1b2beaa36a36d0e9fecc1ebac | /classicui_plat/options_menu_api/inc/EIKMENUP.H | 1867d3fdc81a31a86bf2eee2f193c7cf4417ff6f | [] | no_license | SymbianSource/oss.FCL.sf.mw.classicui | 9c2e2c31023256126bb2e502e49225d5c58017fe | dcea899751dfa099dcca7a5508cf32eab64afa7a | refs/heads/master | 2021-01-11T02:38:59.198728 | 2010-10-08T14:24:02 | 2010-10-08T14:24:02 | 70,943,916 | 1 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 35,173 | h | EIKMENUP.H | /*
* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-... |
e25851c32b87f955f45ec7a4b3868e9d54a02d40 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/CodeBuildClient.h | 810c4562c46fe73cc78ab00694856afd77c10959 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 75,251 | h | CodeBuildClient.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#inclu... |
9ad3bbd48092df6b6f0a235835db5e5196522107 | 5816f1fcafab854c576ebdc201038cac6a1c8d46 | /fem_ofv/src/FEM/boundarycondition.h | eedd850971515b056021070006ca56e15c1f10f9 | [
"CC0-1.0",
"LicenseRef-scancode-generic-cla"
] | permissive | OlegJakushkin/ARL_Topologies | 26edb221d3e27e68eee324dc74522c8971c1d2c0 | 2c0d3d806b34171c824705b3e1a00e12460c0930 | refs/heads/master | 2021-09-25T07:55:32.474242 | 2018-10-19T20:30:53 | 2018-10-19T20:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,631 | h | boundarycondition.h | /*
* ARL_Topologies - An extensible topology optimization program
*
* Written in 2017 by Raymond A. Wildman <raymond.a.wildman.civ@mail.mil>
* This project constitutes a work of the United States Government and is not
* subject to domestic copyright protection under 17 USC Sec. 105.
* Release authorized by the ... |
fe367e02d22e00eae7098b4f6dd0c647e3f0b052 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc099/C/2830877.cpp | ff8bcce79fe867447b3c06e235f9f31d5d3506f3 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | 2830877.cpp | # include <cstdio>
int N ;
int main ()
{
scanf ("%d" ,& N );
int res = N ;
for ( int i =0; i <= N ; i ++)
{
int cc =0;
int t = i ;
while (t >0) cc += t %6 , t /=6;
t=N - i ;
while (t >0) cc += t %9 , t /=9;
if ( res > cc ) res = cc ;
}
printf ("%d\n " , res );
} |
344acdcac1111a0334dc7026d6d93b736fd681c4 | 73bd731e6e755378264edc7a7b5d16132d023b6a | /SPOJ/SUMITR (Sums in a Triangle).cpp | 401c129f7e6d37a7e94a903e356adbf7fea2e776 | [] | no_license | IHR57/Competitive-Programming | 375e8112f7959ebeb2a1ed6a0613beec32ce84a5 | 5bc80359da3c0e5ada614a901abecbb6c8ce21a4 | refs/heads/master | 2023-01-24T01:33:02.672131 | 2023-01-22T14:34:31 | 2023-01-22T14:34:31 | 163,381,483 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | SUMITR (Sums in a Triangle).cpp | #include <iostream>
using namespace std;
int main(){int r,t,a,n,s[101][101]={0};cin>>t;while(t--){cin>>n;r=0;for(int i=1;i<=n;i++){for(int j=1;j<=i;j++){cin>>a;s[i][j]=max(s[i-1][j],s[i-1][j-1])+a;r=max(s[i][j],r);}}cout<<r<<endl;}return 0;}
|
c3ad0a9308350b1090bb8626fdd4bb5149ff52ac | 3be2d0cb41d68b055914e1c745caf1a0a01b2c65 | /src/Utils.h | f84e3bb3aa166b8b7535b9fbc40ded3642a3608e | [] | no_license | cyinv/Close-VIS | 89ae9579c2b615c12caf1da127678d14c8f6e541 | 779ee3658bf170e2b2b5cd193a25974e1ce2e7c7 | refs/heads/master | 2020-06-03T02:45:54.073819 | 2015-07-09T07:14:19 | 2015-07-09T07:14:19 | 34,965,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | h | Utils.h | /*
* Util.h
*
* Created on: Mar 16, 2015
* Author: vincy
*/
#ifndef SRC_UTILS_H_
#define SRC_UTILS_H_
#include <iostream>
#include <fstream>
#include <math.h>
#include <vector>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace std;
static inline void help(char* prog... |
3975aee90c7d61312e7e56c8810e8d5f0aed8273 | 68538debc80228ea96d406035141051935ca4e62 | /include/Simpleton/Box2D/limit velocity.hpp | 83e9a8e7ddf8d954d5e8cdb8d7121d1ce9387d83 | [
"MIT"
] | permissive | KUflower/EnTT-Pacman | ccac1c4836f7f3b4e6ffd9eb159c18ce329e94ad | ebcbc5e6005e44ea89711ced913333ae7fa468bd | refs/heads/master | 2020-08-01T12:06:04.635995 | 2019-09-23T09:37:02 | 2019-09-23T09:37:02 | 210,991,308 | 2 | 0 | MIT | 2019-09-26T03:26:03 | 2019-09-26T03:26:02 | null | UTF-8 | C++ | false | false | 1,094 | hpp | limit velocity.hpp | //
// limit velocity.hpp
// Simpleton Engine
//
// Created by Indi Kernick on 28/12/17.
// Copyright © 2017 Indi Kernick. All rights reserved.
//
#ifndef engine_box2d_limit_velocity_hpp
#define engine_box2d_limit_velocity_hpp
#include "../Math/clamp.hpp"
#include <Box2D/Common/b2Math.h>
namespace B2 {
b2Vec2 l... |
920dd62a89332f849ef07903b0666e357789f3f6 | 7efabf599aaf53728a681639bc57cadc3abe6bde | /cpp/include/cugraph/partition_manager.hpp | 309b169e64674ec334203e9dbf714f819f2fa5ca | [
"Apache-2.0"
] | permissive | rapidsai/cugraph | 49b5378271c72c155f55d916a3c1cc1fbe05ceca | cafded113c9545e5e7211cc965f53c00939307c0 | refs/heads/branch-23.10 | 2023-08-26T19:36:33.631587 | 2023-08-25T13:49:23 | 2023-08-25T13:49:23 | 157,752,451 | 1,403 | 310 | Apache-2.0 | 2023-09-13T17:01:25 | 2018-11-15T18:07:11 | Cuda | UTF-8 | C++ | false | false | 6,359 | hpp | partition_manager.hpp | /*
* Copyright (c) 2020-2023, NVIDIA 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
*
* Unless required by applicable... |
3ddde2dad47d01042ab9def8dc681d5e8828ba4e | b644c75125099d0bfb3dcee26c4d478fbc8b9d77 | /src/Enemy.h | 02e1753db1578aa56018dd3b158565e5556f33b3 | [] | no_license | smurakami/GPGame | e53ac4dc7723861ac8fcb85d6bfba064699c0e53 | 2db4bf272e68bd344abef8acc7e3164a623e0890 | refs/heads/master | 2021-01-18T00:18:33.194891 | 2014-01-24T11:02:26 | 2014-01-24T11:02:26 | 15,985,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | h | Enemy.h |
#include "ofMain.h"
#include "Stage.h"
#include "Keys.h"
#include "MainChara.h"
#pragma once
class Enemy{
private:
Stage * _stage;
float _defaultX;
float _defaultY;
float _posX;
float _posY;
float _speedX;
float _speedY;
bool _dead;
bool _outside;
bool _active;
public:
Enemy();
Enemy(Stage *... |
4ee5ae94f0f2555353353619a10c655b3c1a9d0c | e9e00f7c4a416adf110c77bc24e74b52dc34661c | /Develop/Projects/Qt/Prodigy/mainwindow.cpp | 96a6cfc7064fa6b959e7bc918b3a218fe212d5ee | [] | no_license | minskowl/MY | ce10665cd09cfcc33c9bc35c40c2a91390401730 | 3bf29ce8c78ec63585ff321bd8e3d57933f90b9d | refs/heads/master | 2023-06-09T15:54:39.602155 | 2022-11-30T08:28:26 | 2022-11-30T08:28:26 | 73,079,178 | 2 | 0 | null | 2023-05-31T19:20:00 | 2016-11-07T13:06:59 | C# | UTF-8 | C++ | false | false | 720 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "pagewords.h"
#include "mainmenu.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
MainMenu *m=new MainMenu();
QObject::connect(m,SIGNAL(showForm(Page)),SLOT(showPage(Page)));
... |
c50a858163bae9f564eda4a6eb0dbea298d3e43d | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_runtime/vart/buffer-object/src/buffer_object_fd.cpp | 70515d65681b64a567250ea9180a699e3d451804 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 2,327 | cpp | buffer_object_fd.cpp | /*
* Copyright 2022-2023 Advanced Micro Devices Inc.
*
* 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 applica... |
f07e4558ed51a5a5f710d85eb59ea63bcc449d15 | f8d76935f342abceff51a90a2844110ac57a4d2e | /solution/srm201_rpgrobot.cpp | fe2942a5481cc7c85558b38e38b032191f68ecc1 | [] | no_license | rick-qiu/topcoder | b36cc5bc571f1cbc7be18fdc863a1800deeb5de1 | 04adddbdc49e35e10090d33618be90fc8d3b8e7d | refs/heads/master | 2021-01-01T05:59:41.264459 | 2014-05-22T06:14:43 | 2014-05-22T06:14:43 | 11,315,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,205 | cpp | srm201_rpgrobot.cpp | /*******************************************************************************
* Automatically generated code for TopCode SRM Problem
* Problem URL: http://community.topcoder.com/stat?c=problem_statement&pm=2888
*******************************************************************************/
#include <vector>
#... |
c59e0a90a45a3dd33295424e38d46e01ebd7f4ad | 6d9891a14feecce886c44dd5030185fc41860196 | /usqcd/chroma/chroma-org/other_libs/sse_wilson_dslash/tests/testSiteDslash.h | 73d0c7ea1ab2a90c6ca0b57ae5d50844bfd6d5b6 | [
"FSFAP",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | CCTLib/cibench | ffe28235d6986143a9d46e01890c6ca413ebf9da | c1a07cc6ec8e05b3e787f3f1596d6d8224f839fc | refs/heads/master | 2022-11-14T08:06:51.974065 | 2020-07-07T02:05:42 | 2020-07-07T02:05:42 | 259,185,438 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | h | testSiteDslash.h | #ifndef TEST_SITE_DSLASH
#define TEST_SITE_DSLASH
#ifndef UNITTEST_H
#include "unittest.h"
#endif
class testSiteDslash0PlusForward : public TestFixture { public: void run(void); };
class testSiteDslash0PlusBackwardAdd : public TestFixture { public: void run(void); };
class testSiteDslash1PlusForwardAdd : public Test... |
2cff9d8b6280dd5d892b86bb0ea08b78e18dc557 | 56c558f4bbcd79447cf072cce75b01f4dc76eb43 | /project/Trash/RobotTransmitter/RobotTransmitter.ino | a0f6b2563cfd0a99de121374a18931883f9f0179 | [] | no_license | parzival111/Mobile-Robotics | c4f7846ea96618aa9aed1fc84f45e10f41e44d2f | bb6a0760126f344b488bc0445d423c3730de37c2 | refs/heads/master | 2020-09-26T07:55:45.993869 | 2020-02-19T16:07:15 | 2020-02-19T16:07:15 | 226,208,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,024 | ino | RobotTransmitter.ino | /*RobotTransmitter.ino
Authors: Carlotta Berry, Ricky Rung
modified: 11/23/16
This program will set up the laptop to use a nRF24L01 wireless transceiver to
communicate wirelessly with a mobile robot
the transmitter is an Arduino Mega connected to the laptop
the receiver is on an Arduino Mega mounted on the ... |
5559cab43cfedf90ffc678f7b37640fea38c3414 | d77ee0d058463df2b49f79d1623c44438c1006dc | /src/GravityPoint.cpp | 5a7e664dc6d94442879560a76565a6b4d000fd91 | [] | no_license | bacsmar/ParticleSystem | 9a96c3886bc51f8ac31f6e9142349f708132b12f | 0dbb4056f167c72d0bd7c3074471bc3781657524 | refs/heads/master | 2020-12-25T22:29:15.450269 | 2012-09-05T22:45:30 | 2012-09-05T22:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | GravityPoint.cpp | /*
* GravityPoint.cpp
*
* Created on: Aug 29, 2012
* Author: stashell
*/
#include "GravityPoint.h"
GravityPoint::GravityPoint()
{
forceActive = false;
weight = 0;
}
GravityPoint::~GravityPoint()
{
}
float GravityPoint::getWeight() const
{
return weight;
}
void GravityPoint::setWeight(float p_weight)
... |
f20896f99f32f6ee4b0ac32a7649532bd92c8789 | a9f678119a8ed6b852f30aa4c35ee8d75ee55c10 | /editDistance.cpp | 6bdf7cdb35ac3217b89092a8ef48089f3ee21e9f | [] | no_license | gaolu/Leetcode | 0ae73c04be1f1cb75b499d957ed24fde78684074 | 10d1091c20b1692d9a9fa91b41d23a1f8ba9424a | refs/heads/master | 2021-01-13T02:06:45.626985 | 2014-03-18T04:26:39 | 2014-03-18T04:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,231 | cpp | editDistance.cpp | class Solution {
public:
int minDistance(string word1, string word2) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
int numOfRows = word1.size();
int numOfCols = word2.size();
if(numOfRows == 0)
return numOfCols;
else if(nu... |
d6df7babe23803d43e59d040f94488788bf5b204 | 8a61f3ea38e51c9bf502dc5b7aed34f4be1fc3d3 | /Epoll.cpp | 3e89c7ee794863c9699619621e27f292547a72bb | [] | no_license | 100156994/Http | bb354cba6cca0ad0274d91d537eddec6e0136334 | 8693a29aab3ebc5a7bc74a4bda14e97d46fc2cbf | refs/heads/master | 2022-04-02T16:23:45.207661 | 2020-02-22T17:23:25 | 2020-02-22T17:23:25 | 238,974,947 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,863 | cpp | Epoll.cpp | #include"Channel.h"
#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <sys/epoll.h>
#include <unistd.h>
#include"TimerQueue.h"
namespace detail
{
size_t now();
}
using namespace detail;
const int EVENTSNUM = 16;//最初默认一次接收的事件最大值 到阈值翻倍
const int kNew = -1; //当前不在epoll map中 没有被监听
const int kAdded... |
31f268273010efddf7f54012d7fd7831128b41de | ba5a03c4b1a47203f2e3fd339a7deaeb21a28877 | /unit_test/burn_cell/burn_cell.H | 2ff0a61387cb864aed1e7630ba86dbc24dd0c8d4 | [
"BSD-3-Clause"
] | permissive | maxpkatz/Microphysics | f65ec154e4e846046273dd779c7887fd65b9e4da | bcf06921ae6144e0f1d24ceb8181af43357e9f84 | refs/heads/master | 2023-08-30T13:51:38.678408 | 2023-06-01T12:00:11 | 2023-06-01T12:00:11 | 160,952,852 | 1 | 0 | NOASSERTION | 2022-03-12T16:24:44 | 2018-12-08T15:36:24 | Jupyter Notebook | UTF-8 | C++ | false | false | 6,245 | h | burn_cell.H | #ifndef BURN_CELL_H
#define BURN_CELL_H
#include <extern_parameters.H>
#include <eos.H>
#include <network.H>
#include <burner.H>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <react_util.H>
using namespace unit_test_rp;
void burn_cell_c()
{
Real massfractions[NumSpec] = {-1.0};
// Make... |
1224422d0aaa033d8f440a6b5a4ba1dba8f7541d | 74837c92508b3190f8639564eaa7fa4388679f1d | /xic/include/promptline.h | b9bdc1e6082de321653fc58f300416dd90988e99 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | frankhoff/xictools | 35d49a88433901cc9cb88b1cfd3e8bf16ddba71c | 9ff0aa58a5f5137f8a9e374a809a1cb84bab04fb | refs/heads/master | 2023-03-21T13:05:38.481014 | 2022-09-18T21:51:41 | 2022-09-18T21:51:41 | 197,598,973 | 1 | 0 | null | 2019-07-18T14:07:13 | 2019-07-18T14:07:13 | null | UTF-8 | C++ | false | false | 18,116 | h | promptline.h |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
978f4387fa1644ab60488fc2ef97aa8883e588b6 | 7e92933ea34318363395297a37e0e7d0951daefd | /single_hx711.ino | b8f1a97db8d409089ae88ae1736cdae4c98c0a1b | [] | no_license | navoneel07/engg1320-mylitnesspal | 597f3ddaefee54c395da0bce08e8961967c0b591 | 5758d3a3ca8b015ad122f1c7518d492a6d8b3b60 | refs/heads/master | 2020-05-14T19:56:10.424074 | 2019-08-09T07:07:25 | 2019-08-09T07:07:25 | 181,937,293 | 2 | 1 | null | 2019-04-20T14:22:23 | 2019-04-17T17:19:41 | Python | UTF-8 | C++ | false | false | 512 | ino | single_hx711.ino | #include "HX711.h"
HX711 scale; //HX711 scale(6, 5);
float calibration_factor = -417;
float units;
float ounces;
void setup()
{
Serial.begin(9600);
Serial.println("HX711 weighing");
scale.begin(3,2);
scale.set_scale(calibration_factor);
scale.tare();
Serial.println("Readings:");
}
void loop()
{
Serial... |
bc17c140d39769c35c7fd553753294eb406ad27d | 263b0e4e43827bf79da675a9ba188632ddfc2560 | /Induction.cpp | 5c42749d37c782fad9687e260bcf0c4daf4cdd11 | [] | no_license | ruishaopu561/algorithms | a0c24db96cdf3573422fabf78639a3f0c302869e | 441e802c96a53fe9447733755bc7aed7e55e1ab9 | refs/heads/master | 2020-03-30T07:48:56.608501 | 2018-11-15T10:43:28 | 2018-11-15T10:43:28 | 150,968,413 | 0 | 0 | null | 2018-11-15T10:43:29 | 2018-09-30T13:11:22 | null | UTF-8 | C++ | false | false | 3,200 | cpp | Induction.cpp | // EXPREC
int power(int x, int n)
{
int y = 1;
if (n == 0)
{
return y;
}
else
{
y = power(x, n / 2);
y = y * y;
if (n & 1)
{
y = x * y;
}
return y;
}
}
// EXP
void toBinary(vector<int> &d, int n)
{
while (n != 0)
{
... |
b4dc11406b6a4a4828739e38327009255fc05fa5 | 871433805fa810a8cba8ec800c54f8c2c2118224 | /worldengine/source/plates.cpp | 8cb4fba515dad5330ad97aaf4264ed6b12ffed6f | [
"MIT"
] | permissive | hiive/worldengine-cpp | efd540926dac0086492a944058ba87589a7e2d7b | 9f7961aaf62db2633fc9d44b6018384812a6704e | refs/heads/master | 2023-05-09T16:39:52.811356 | 2021-06-09T03:04:27 | 2021-06-09T03:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,661 | cpp | plates.cpp | #include "worldengine/plates.h"
#include "worldengine/generation.h"
#include "worldengine/world.h"
#include <chrono>
#include <random>
#include <boost/log/trivial.hpp>
#include <boost/random.hpp>
#include <platecapi.hpp>
namespace WorldEngine
{
/**
* @brief Create a new world based on an initial plates simulation... |
a788c7304b2399b119e0922efbf4fc6101a0f80b | dbf38fdd01888c0f6828a7d0e112f5fc2268b26c | /main1c.cpp | e5fa26732cb0f64fddfa3ae30570927dd26031a8 | [] | no_license | tfeher/trt_type_examples | 1d3221dfb3c540ae754e32217b11c504c0dfffa2 | f8d4b55fa44930829f188949040f4fd6dd8cd824 | refs/heads/master | 2023-02-25T02:31:02.736886 | 2021-01-26T21:09:55 | 2021-01-26T21:29:41 | 276,362,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,945 | cpp | main1c.cpp | /*
* Copyright (c) 2020, NVIDIA CORPORATION. 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 requir... |
974afae7c98cb5edd492a84f9be40f10d6f2068c | 0a264c136331aa7c926df48061bbeaeae34afec6 | /template/dispatcher.cpp | 85e50a099764860f26185bd01ef852eb3e613227 | [] | no_license | wenwuge/EasyLib | e28b64238cc5ebd4dafbcfb8f2eabb483cdbe52f | 2151e0246ec971024200c318d61694e23ec7df1f | refs/heads/master | 2022-10-25T15:58:09.725483 | 2022-10-19T07:37:24 | 2022-10-19T07:37:24 | 42,303,639 | 20 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,875 | cpp | dispatcher.cpp | #include <iostream>
#include <map>
#include <string>
#include <boost/function.hpp>
#include <boost/bind.hpp>
using namespace std;
class Message{
};
class Message1:public Message{
};
class Message2:public Message{
};
class CallbackBase{
public:
virtual void output(Message* message) = 0;
};
template <typename T>... |
81795a88d64d4c85622db777214bd991a478f84e | 4f7fe96947220db4d2ce19471e02b1151fe00bfb | /src/parse.cpp | 56d67e8a9d0b67a196fdc63ed0c3011573c9c5f5 | [
"MIT"
] | permissive | henrikt-ma/cadical | f6a8d90909dd5967c04767ca154cb0ef57ba7530 | 58331fd078cb5f76bae52e25de0e34c6a7dd4c1d | refs/heads/master | 2020-04-22T09:40:54.085319 | 2018-07-15T16:07:14 | 2018-07-15T16:07:14 | 170,281,392 | 0 | 0 | MIT | 2019-02-12T08:32:41 | 2019-02-12T08:32:38 | C++ | UTF-8 | C++ | false | false | 5,894 | cpp | parse.cpp | #include "internal.hpp"
/*------------------------------------------------------------------------*/
namespace CaDiCaL {
/*------------------------------------------------------------------------*/
// Parsing utilities.
inline int Parser::parse_char () { return file->get (); }
// Return an non zero error string i... |
dd768e623de46909dcd1c59c0ae061bb9de66ab5 | db661ec37fc4fc02c56ddc1f0810454e150e5271 | /servo_trial.ino | 413934d9488555d3d48272d0b529fcd76fecb069 | [] | no_license | vengadam2001/arduino | e4b27b9a04ad3cc3d1e237f4a18417bac7f97d94 | 2505330e4995f470b246e4feefcf2a27272712eb | refs/heads/master | 2020-08-05T23:23:55.922824 | 2020-03-28T13:40:57 | 2020-03-28T13:40:57 | 212,753,590 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 387 | ino | servo_trial.ino | #include<Servo.h>
Servo servo;
void setup() {
// put your setup code here, to run once:
servo.attach(9);
Serial.begin(9600);
Serial.print("enter the value:");
}
void loop() {
int x=10;
// put your main code here, to run repeatedly:
while(Serial.available()==0)
{
}
x=Serial.parseInt();
Serial.prin... |
410ba845dac7eaa7b072b88ad65919f18510e743 | c25fa228e19f6ef4d63dc11d59baaae4981101c0 | /src_smartcontract_db/schema_table/table/CdbTableColumn.h | 10220d3688ce9380b89fa2b87ebaa67904341558 | [
"MIT"
] | permissive | alinous-core/codablecash | b994e710144af3f6b69bda2f3d1dff080b2fd2b0 | 030fa9ee2e79ae2cade33aa80e80fb532c5b66ee | refs/heads/master | 2023-08-31T04:30:14.333123 | 2023-08-12T11:33:06 | 2023-08-12T11:33:06 | 129,185,961 | 11 | 4 | MIT | 2023-08-13T14:10:25 | 2018-04-12T03:14:00 | C++ | UTF-8 | C++ | false | false | 2,294 | h | CdbTableColumn.h | /*
* CdbTableColumn.h
*
* Created on: 2020/05/13
* Author: iizuka
*/
#ifndef TABLE_CDBTABLECOLUMN_H_
#define TABLE_CDBTABLECOLUMN_H_
#include <cstdint>
#include "engine/CdbBinaryObject.h"
namespace alinous {
class UnicodeString;
class ByteBuffer;
class AlterModifyCommand;
}
using namespace alinous;
names... |
e5b41d448f6f125a224c1acd32aecc318a93e42b | 7d93616b09afdd38ba25f70bf56e84d92d16f8e1 | /willow/include/popart/op/ceil.hpp | 9e174f8124d1bd7c6ae39ab75cbe8d6006e654a8 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | graphcore/popart | ac3c71617c5f0ac5dadab179b655f6b2372b453d | efa24e27f09b707865326fe4a30f4a65b7a031fe | refs/heads/sdk-release-3.0 | 2023-07-08T08:36:28.342159 | 2022-09-23T12:22:35 | 2022-09-23T15:10:23 | 276,412,857 | 73 | 13 | NOASSERTION | 2022-09-29T12:13:40 | 2020-07-01T15:21:50 | C++ | UTF-8 | C++ | false | false | 885 | hpp | ceil.hpp | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#ifndef POPART_WILLOW_INCLUDE_POPART_OP_CEIL_HPP_
#define POPART_WILLOW_INCLUDE_POPART_OP_CEIL_HPP_
#include <memory>
#include <tuple>
#include <vector>
#include <popart/op/onewayunary.hpp>
#include "popart/op.hpp"
namespace popart {
struct OperatorIdentifier... |
2ce1c054965842155136d2219ea15d5ef94b0f5d | 6c49fad41b5109d4dabc4db0007e1ae931ee4898 | /2018 Summer/Assignments/Assignment05/ChoudhryBilal326/Button.cpp | b702ef85a2c5f7748f6cedb7f9b0598443fd7960 | [] | no_license | ZainAU/oop | 964fbf6701ccac77fe14d04d83fb7f5d11b1cb15 | a895b7ce10ed4ec09a2e178005bb82da7b58e32e | refs/heads/master | 2022-01-06T21:03:26.842634 | 2018-09-26T05:35:13 | 2018-09-26T05:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | Button.cpp | #include "Button.h"
#include<iostream>
using namespace std;
Button::Button()
{
width = 64;
height = 64;
}
Button::Button(LTexture* image, float x, float y)
{
spriteSheetTexture = image;
//Frame 0
spriteClips.x = 0;
spriteClips.y = 432;
spriteClips.w = 64;
spriteClips.h = 64;
//... |
32762b0b725860221071b80b94bd6e9df59ea5b1 | 21dfd5124c2f05ef5f98355996dc2313f1a29f5a | /Src/Modules/Configuration/CameraCalibrator.h | a2c0d53f161cc9fa883f6777a9871471a060ed69 | [
"BSD-2-Clause"
] | permissive | fabba/BH2013-with-coach | 50244c3f69135cc18004a1af9e01604617b6859f | 88d7ddc43456edc5daf0e259c058f6eca2ff8ef6 | refs/heads/master | 2020-05-16T03:21:29.005314 | 2015-03-04T10:41:08 | 2015-03-04T10:41:08 | 31,651,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,424 | h | CameraCalibrator.h | /**
* @file CameraCalibrator.h
*
* This file implements a module that can provide a semiautomatic camera calibration.
*
* @author Alexander Härtl
*/
#pragma once
#include "Tools/Module/Module.h"
#include "Representations/Modeling/RobotPose.h"
#include "Representations/Configuration/FieldDimensions.h"
#include "Repres... |
6b1662b1b847c18a5f1970619c34530a2bc928fd | ddd288fbef7dc9e86dae4c1d236da631f8407b3b | /CGP600 AE2/Renderer.h | 67e544804da11d51c5c84d16d59de3e3acf37d37 | [] | no_license | JamesSkett/Advanced-Games-Programming | 752f75575f787cb1412b3ed2dfad68c4884b2ef0 | b3b72e922b95a91bfd6c89e3695f1ac97994d1a6 | refs/heads/master | 2021-09-03T04:32:22.330551 | 2018-01-05T15:28:16 | 2018-01-05T15:28:16 | 108,906,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,670 | h | Renderer.h | #pragma once
#include <d3d11.h>
#include <d3dx11.h>
#include <dxerr.h>
#include <dinput.h>
#include <sstream>
#include <DirectXMath.h>
using namespace DirectX;
#include "Camera.h"
#include "CXBOXController.h"
#include "text2D.h"
#include "Mesh.h"
#include "Scene_Node.h"
#include "SkyBox.h"
#include ... |
dc0e63bd665b671f016eda50adf6dfadb0e31771 | 4c86be24a8485c6f6711a76bd1bb1d4f04e8935f | /Source/UnrealCV/Private/ServerConfig.cpp | 5bb686c4716be4ba0a253ef2bfd5ea22d213e5d1 | [
"MIT"
] | permissive | GeekLiB/unrealcv | c3a1eafdbedfb7c4414ed82ebd359b73516bc9f1 | 9acfcb5b52c5b085e72e64a0bb46ea4d0adadcdb | refs/heads/master | 2020-04-06T04:13:01.935172 | 2017-02-24T09:12:56 | 2017-02-24T09:12:56 | 83,023,414 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | cpp | ServerConfig.cpp | #include "UnrealCVPrivate.h"
#include "ServerConfig.h"
bool FServerConfig::Load()
{
if (!GConfig) return false;
FString CoreSection = "UnrealCV.Core";
// Assume the value will not be overwrote if the read failed
GConfig->GetInt(*CoreSection, TEXT("Port"), this->Port, this->ConfigFile);
GConfig->GetInt(*CoreSect... |
f9aac5497a22728ebe5fa852b7a9572ef5615087 | 703137e3a9caa49c3535aa34497d2a710af9f134 | /630C.cpp | 8ff1eba32e014d1531d6398508a996daa709a286 | [] | no_license | toha993/Codeforces-My-Code | a558d175204d08167cb1b8e70dd0fb0d2b727d0e | 8521f325be45775a477c63a4dddb1e21e486d824 | refs/heads/master | 2022-12-21T06:07:22.131597 | 2020-10-04T11:50:26 | 2020-10-04T11:50:26 | 301,116,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | 630C.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
long long ans=0;
for(int i=1;i<=n;i++)
{
ans +=pow(2,i);
}
cout << ans << endl;
} |
837776a51909b6344423206db193fcd127810ac3 | 5f6a29fdbe41e7f221536c5fa6c35baf59c77e6b | /Carrito/RemoteControl/motor_control.cpp | 5ca628c7fa474ed8f937ae4b53f3291c4b945257 | [] | no_license | vladimir1284/Micropython | f971346ca74ce9e3adbfc63313c87b4d1446e101 | 3b573faf6115b74baa5af31e701888b512aa4feb | refs/heads/master | 2022-08-05T04:54:19.373001 | 2022-07-22T15:06:05 | 2022-07-22T15:06:05 | 234,114,591 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,843 | cpp | motor_control.cpp | #include "motor_control.h"
#include <Arduino.h>
Motor::Motor(int pinEN, int pin1, int pin2, int ledc_chann)
{
pinSpeed = pinEN;
pinM1 = pin1;
pinM2 = pin2;
channel = ledc_chann;
}
void Motor::setSpeedFactor(float speedFactor)
{
sf = speedFactor;
}
void Motor::run()
{
if (delayNeeded)
{
... |
bf5fb9672be93e1df4d31112215a7896af8767ae | 98b8aa2733069fdd10130990d8a847e80fbeb1d0 | /civilizacion.cpp | b0cb8c996d21ca4383c47c5ae8292429f5a3b329 | [] | no_license | alan-martinez/proyecto_civilizaciones | e54e291bf64e52947874ad7d681f4f13eeb4e21c | 67b93a906a794aff25c26a9f39cfeb3088524c5c | refs/heads/main | 2023-06-03T20:27:33.402500 | 2021-06-27T23:41:55 | 2021-06-27T23:41:55 | 380,572,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,197 | cpp | civilizacion.cpp | #include "civilizacion.h"
#include <fstream>
#include <iostream>
//#include <stack>
using namespace std;
Civilizacion::Civilizacion()
{
}
Civilizacion::Civilizacion(const string &nombre, int ubicacion_x, int ubicacion_y, int puntuacion)
{
this->nombre = nombre;
this->ubicacion_x = ubicacion_x;
this->ubi... |
32babca0fd07966600e592f94ca0cde32cd67484 | 2155daba7e51775c32e266b6ac962ec10074b1ac | /counter.ino | 9074927c443908a54c66be994efb4caefbc90a03 | [] | no_license | ShoolinLab/Arduino | 4551bf0cd88ed4035704e9ff8b7a29f32fcf2645 | cc7d8ae4a2ddbbd4ddead17ed227af5246aad947 | refs/heads/master | 2020-03-19T03:05:40.202408 | 2018-10-30T18:56:09 | 2018-10-30T18:56:09 | 135,694,391 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | ino | counter.ino | #include<LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
int st = 0;
int count = 0;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
pinMode(8, INPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
st = digitalRead(8);
if (st == 1)
{
count = count + 1;... |
dae6a83380c5a84107d6eadc0daa4432bc7c8719 | cd0515449a11d4fc8c3807edfce6f2b3e9b748d3 | /src/yb/yql/redis/redisserver/redis_server.h | 7ec783ed1c9d870fdca9d8c431ec1578876b213b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"OpenSSL"
] | permissive | wwjiang007/yugabyte-db | 27e14de6f26af8c6b1c5ec2db4c14b33f7442762 | d56b534a0bc1e8f89d1cf44142227de48ec69f27 | refs/heads/master | 2023-07-20T13:20:25.270832 | 2023-07-11T08:55:18 | 2023-07-12T10:21:24 | 150,573,130 | 0 | 0 | Apache-2.0 | 2019-07-23T06:48:08 | 2018-09-27T10:59:24 | C | UTF-8 | C++ | false | false | 1,552 | h | redis_server.h | // Copyright (c) YugaByte, Inc.
//
// 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 agreed to in writ... |
c7219b99f6934162930849fc5f0d65b04d3d6641 | 81b93a8bc16023e31171ce68da0751b3a428696f | /src/fsm/include/state_remote.h | a78cf6ed18c8a3a61b9ad6709a72ce8b2d8e7dc9 | [] | no_license | github188/agv | 3373b9b86203b0b2b98019abfc1058112eb394e2 | 3577ea7f0b561eb791241327a4c05e325d76808c | refs/heads/master | 2022-04-03T20:29:43.938463 | 2019-12-19T10:22:05 | 2019-12-19T10:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,230 | h | state_remote.h | #ifndef FSM_INCLUDE_STATE_REMOTE_H_
#define FSM_INCLUDE_STATE_REMOTE_H_
#include "ros/ros.h"
#include "state_base_machine.h"
#include "state_define.h"
namespace superg_agv
{
namespace fsm
{
class RemoteState : public StateBase
{
public:
RemoteState(int id_, StateMachine *fsm_) : StateBase(id, p_machine)
{
th... |
e8147614e0831b517fdf08e38e2f9bfcc8378970 | 7b33ac7c4b71d6678b649fc4c22deb37df929577 | /1.代码/1.c语言/OJ453.cpp | 6a71d0e3345e8ca3b91de548906702b0c679eaab | [] | no_license | dofo-eat/Code_Learned | 0c857e3db14a1a2b6678fe2d7e044d47a3dff157 | abba556678adbf5033b16bc5c610dae6a36816db | refs/heads/master | 2021-07-10T21:20:34.093910 | 2020-12-12T09:28:33 | 2020-12-12T09:28:33 | 224,192,229 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 629 | cpp | OJ453.cpp | /*************************************************************************
> File Name: OJ453.cpp
> Author: dofo-eat
> Mail:2354787023@qq.com
> Created Time: 2019年12月06日 星期五 19时47分43秒
************************************************************************/
#include<iostream>
#include<algorithm>
using namespace ... |
af049ae392533f19d4790df0de23a43a2feb94f0 | cdf3150fca9c8be880335ebe1e96201c813a4795 | /homework/Feldman/05/Row.cpp | 34e6a9eea89a8ab63147c35c5bc530d38d08791b | [
"MIT"
] | permissive | mtrempoltsev/msu_cpp_autumn_2017 | af2b13377b0132c8204980d484cf07c9673e3165 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | refs/heads/master | 2021-09-20T04:08:23.316188 | 2018-08-03T09:23:51 | 2018-08-03T09:23:51 | 104,074,449 | 10 | 22 | null | 2017-09-28T21:35:52 | 2017-09-19T12:52:20 | C++ | UTF-8 | C++ | false | false | 349 | cpp | Row.cpp | #include <vector>
#pragma once
template <class T>
class Row {
public:
std::vector<T> row;
unsigned int cols;
Row(int cols_, T val) :cols(cols_){
for (size_t i = 0; i < cols; ++i)
row.push_back(val);
}
T& operator [] (size_t col) {
if (col >= cols) {
std::cout << "OUT OF RANGE!" << std::endl;
exit(1);
... |
341938dd4742e787c38d2bac1b0909ff8cf1b91d | 65f16cfe6932a9c30c5fabb6a33d8621a2d09e5d | /volume003/CF 334 B - Eight Point Sets.cpp | c9520f74bc2d37a19f021936ce4c88eb0ffd3b89 | [] | no_license | Daviswww/Submissions-by-UVa-etc | b059d5920964b8f361042fbceeaabc8b27e0ea61 | b16a43e54a0563d42b2721ebdaf570cdd24c4840 | refs/heads/master | 2022-11-09T13:53:37.852564 | 2022-10-30T08:28:35 | 2022-10-30T08:28:35 | 143,992,796 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 728 | cpp | CF 334 B - Eight Point Sets.cpp | #include <iostream>
#include <algorithm>
using namespace std;
struct P
{
int x;
int y;
};
bool comp(P a, P b)
{
if(a.x == b.x)
{
return a.y < b.y;
}
return a.x < b.x;
}
int main()
{
P p[8];
for(int i = 0; i < 8; ++i)
{
cin >> p[i].x >> p[i].y;
}
sort(p, p + 8, comp);
... |
0288ec224f02eb739a8892e5151ec18c03211f2c | 7fd96632466bd0982892adb398b197e3e045dea9 | /Bulgarian School Contests/NOI2(National Olympiad in Informatics Round 2)/2011/C/barrels_noi2.cpp | b0debe6b5b051f41b0a81e12578852f877f45bdc | [] | no_license | ivokaragyozov/Programming-Contests | 1be413a82d0f8e0f476b77432d67deb4d60547e7 | 3b0cdbba1afb45b3480f10370107947f0413416c | refs/heads/master | 2016-08-10T20:20:00.229319 | 2016-02-19T09:30:28 | 2016-02-19T09:30:28 | 51,910,903 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | barrels_noi2.cpp | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
const int maxN = 105;
bool p;
int n, k, a[maxN], ans = INT_MAX;
bool cmp(int x, int y)
{
return x > y;
}
void solve(int curr, int currCnt)
{
if(curr < 0) return;
else if(curr == 0)
{
if(currCnt < ans) ans = currCnt;
return;... |
568bdcf8c8c5ec8c116d1134b7b852508940515b | de9ba30b5c1dcc9fb85ea78b4e2c407c84e7236e | /main.cpp | d7d92801cf689f7d241618dc5d82820d2666333b | [] | no_license | kmdemirtas/threadedsorting | eeeb53c576395c046c7b8c22dc23f7e7f44c8010 | 8512a497c7a4fbab97ee416934789103c8f410f5 | refs/heads/main | 2023-06-01T17:40:23.665586 | 2021-06-14T09:47:12 | 2021-06-14T09:47:12 | 376,773,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,355 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <cstdlib>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
#include <iomanip>
#include <chrono>
#include "sort.h"
struct package
{
int *arr;
int sortType;
};
sem_t out;
void *threadFunc(void *arg)
{
auto start = std::chrono::... |
94104d759cce669239e69976c15dc81e9e51b970 | 1d6f19ced2319e0674ca954a6a4d1994da32b854 | /win32/edform_w.cpp | 148265e291566535feb362957bee393888750b22 | [] | no_license | yojiyojiyoji/AQUASIM | 33096096ad81cf84d7adca1afc0fad179ba3f354 | 83dbdfe625a428c18d1a6ec8672d8146ea2ff0e7 | refs/heads/master | 2023-07-13T11:58:27.884332 | 2018-05-09T12:20:01 | 2018-05-09T12:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,974 | cpp | edform_w.cpp | // edform_w.cpp : implementation file
//
#include "stdafx.h"
#include "AQUASIM.h"
#include "edform_w.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEdVarForm dialog
... |
b90d7e5335619713bb2fbaf8c1f38870adf46a0e | 28ba55f26d0e49502a6a7dcd7ca7359f9c9eb2af | /주사위.cpp | 568cf13a7d5dd289fa7c205c9a0ed139faf1a56f | [] | no_license | moonshot2/BOJ | 7fcea32d703064843050756af403db2043ce299d | 37d38608d65a5ba332a57d6b31ef129fedf469a8 | refs/heads/master | 2023-06-22T20:01:13.693826 | 2021-07-22T06:55:24 | 2021-07-22T06:55:24 | 138,481,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | 주사위.cpp | #include <iostream>
#include <algorithm>
using namespace std;
long long DATA[100001];
int main() {
long long m1, m2, m3;
long long N, n1, n2, n3 = 4, sum = 0;
cin >> N;
for (int i = 0; i < 6; ++i) {
cin >> DATA[i];
}
if (N == 1) {
sort(DATA, DATA + 6);
for (int i = 0; i < 5; ++i) sum += DATA[i];
cout <<... |
efbb490cdd785a2245dc6c4318d091fcc08eb662 | 8584afff21c31c843f520bd28587a741e6ffd402 | /AtCoder/企業コンテスト/三井住友信託銀行プログラミングコンテスト2019/f.cpp | e5abfba98767a393ecc0415a60e2419832eda45e | [] | no_license | YuanzhongLi/CompetitiveProgramming | 237e900f1c906c16cbbe3dd09104a1b7ad53862b | f9a72d507d4dda082a344eb19de22f1011dcee5a | refs/heads/master | 2021-11-20T18:35:35.412146 | 2021-08-25T11:39:32 | 2021-08-25T11:39:32 | 249,442,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | cpp | f.cpp | #include <bits/stdc++.h>
using namespace std;
#define rep(i,s,n) for (int i = (int)s; i < (int)n; i++)
#define ll long long
#define pb push_back
#define All(x) x.begin(), x.end()
#define Range(x, i, j) x.begin() + i, x.begin() + j
#define lbidx(x, y) lower_bound(x.begin(), x.end(), y) - x.begin()
#define ubidx(x, y) u... |
d83fdb681aba81ae18e642cd344a247ff5cce10a | f1aacf2eae829d926794a82ac75b795d35ec4499 | /ExpanderPi/demos/demo-io-interrupts.cpp | 887174a0f89c8106583a9b903e0a9faaab7182d8 | [
"MIT"
] | permissive | abelectronicsuk/ABElectronics_CPP_Libraries | f44482667d9f76f35056ecd9e02c69cb041f6a18 | 1bce59a25965b32d2a5daa423d0775fe911f5632 | refs/heads/master | 2023-02-16T23:59:01.347162 | 2023-02-04T18:41:56 | 2023-02-04T18:41:56 | 95,541,193 | 13 | 10 | MIT | 2019-03-04T10:11:07 | 2017-06-27T09:24:49 | C++ | UTF-8 | C++ | false | false | 2,505 | cpp | demo-io-interrupts.cpp | /*
* demo-io-interrupts.cpp
*
* This example shows how to use the interrupt methods on the IO port.
* The interrupts will be enabled and set so that a voltage applied
* to pins 1 t 8 will trigger INT A and pins 9 to 16 will trigger INT B.
* Using the read_interrupt_capture or read_port methods will
*... |
f2772ccbb347edf57a88dccd3a655c80bdc5c5ec | 1ad4a9f7a9c3350f109b6b5262aa841328a99f9f | /rto_node/include/AnalogInputArrayROS.h | 301440419efd47de8d32d4d50f97db8bc429ad07 | [] | no_license | KathiWinter/NavPy | 8fa44a592f988a419b7b1fc36678ec73d21682ba | 6627770f1b5d5ba971538c596e4429842a30a07a | refs/heads/main | 2023-03-05T10:51:03.712337 | 2021-02-14T18:27:20 | 2021-02-14T18:27:20 | 322,628,333 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | AnalogInputArrayROS.h | /*
* AnalogInputArrayROS.h
*
* Created on: 08.12.2011
* Author: indorewala@servicerobotics.eu
*/
#ifndef ANALOGINPUTARRAYROS_H_
#define ANALOGINPUTARRAYROS_H_
#include "rec/robotino/api2/AnalogInputArray.h"
#include <ros/ros.h>
#include "rto_msgs/AnalogReadings.h"
class AnalogInputArrayROS: public rec::r... |
542fcb99b713f2c67eb84619295ae5c40491f736 | 175cd7456c11b8c2bcdf91f160f69a5df357e1bc | /expogo.cpp | 585c8117f1784e066b6579f11f8df327ba878564 | [] | no_license | shubham172995/April20 | 32224ca3dcb36ad251ae49bc9c37c1ddf4f64621 | 8282f48100992e43bcaaa3c293783e306c5e9e30 | refs/heads/master | 2023-06-21T02:48:30.714062 | 2020-04-30T05:50:28 | 2020-04-30T05:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | expogo.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
map<pair<ll, ll>, bool> m;
string res;
bool check(ll x, ll y, int power, ll curx, ll cury, string ans){
//cout<<curx<<" "<<cury<<endl;
if(curx==x&&cury==y){
res=ans.length()<res.length()?ans:res;
return true;
... |
92c8562466361a9dad971bad9c99411977744648 | 07915111c538b8887613ec9400fc25bc89742ae2 | /SkiaCode/tools/bench_pictures_main.cpp | b51eaa20d17dcec02ee10d2d240d4ae0861202bc | [
"BSD-3-Clause"
] | permissive | 15831944/skiaming | f4f683dafc393263193629545880d1ffbac810c9 | d6500ec2afe1ab45b8a42470ac9dff30c7297b57 | refs/heads/master | 2021-12-05T17:25:46.351775 | 2012-10-10T09:54:13 | 2012-10-10T09:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,504 | cpp | bench_pictures_main.cpp | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "BenchTimer.h"
#include "PictureBenchmark.h"
#include "SkBenchLogger.h"
#include "SkCanvas.h"
#include "SkMath.h"
#include "SkOSFile.h"
#include "SkPicture.h"
#includ... |
3badaa694fc815de0871de2d9728f05029f2be05 | 4efddc6f368533090c68bd806d6327154cfa57a0 | /day2/main.cpp | 3b864aaa328dbdc86b48867d14c924987b4c8aa1 | [] | no_license | Shensd/AdventOfCode2019 | e6edcfae513b4fdda9ab58bdd6ed44778726d666 | 3712f9e23229b001edf4d7d80cb9c834ee649262 | refs/heads/master | 2022-12-10T01:38:51.353812 | 2019-12-17T02:22:25 | 2019-12-17T02:22:25 | 225,270,494 | 0 | 0 | null | 2022-11-22T04:54:12 | 2019-12-02T02:44:41 | C++ | UTF-8 | C++ | false | false | 3,390 | cpp | main.cpp | /*
The relevant challenge for this portion was far too long to place here, but
it was effectively the specification for a very simple opcode language.
For the second part of the challenge, if done smart, required no code to be
written. The most obvious choice is to use a brute force solution, but by
chaning the nou... |
10af516861cc52e85a57a37e1b98bf7ae3412554 | 8b52a6e32d65ea9f8201e806ebfebe46b4041f0f | /c++/3/main.cpp | 246d61f2b2b50f8a8cc75d07d00778b9c633ed0f | [] | no_license | scoiatael/ThingsIdidAtII | 7c93ff7ac2ffde6364c6d05a8bb97b80fdd45836 | af85a2b646d81bb1506e3b0651c442b38edfea0a | refs/heads/master | 2021-01-17T14:03:22.998616 | 2016-06-16T21:00:25 | 2016-06-16T21:00:25 | 10,513,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | main.cpp | #include <iostream>
#include "pierwsze.cpp"
#include <vector>
#include <cstdlib>
using namespace std;
void printV(const vector<long long> &T )
{
for(int i=0; i<T.size(); i++)
cout << T[i]<<" ";
cout << endl;
}
int main()
{
prime_numbers::Initialize();
while(true)
{
... |
0d227bc8e672138c546e865bb37ba536b2327713 | 79d3d2633f52ac28207a3b7a11d2498630bd0ff4 | /SFAStats/include/SFA/Stats/AverageMatchingError.h | ef879e23a77f2a54bfaf04a156f702132edf34de | [] | no_license | mfzhang/StatisticalFaceAnalysis | e7ea0d94bc09fe40996abaa6033c5cf0e6de4ca0 | c6616fca911ee85cd7e93bbd50017fe8ff35d9e0 | refs/heads/master | 2021-01-03T13:14:17.354144 | 2014-08-06T11:10:27 | 2014-08-06T11:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,116 | h | AverageMatchingError.h | //////////////////////////////////////////////////////////////////////
/// Statistical Shape Analysis
///
/// Copyright (c) 2014 by Jan Moeller
///
/// This software is provided "as-is" and does not claim to be
/// complete or free of bugs in any way. It should work, but
/// it might also begin to hurt your kittens.
//... |
ba7371778c8d030cf98a06d34cff3b6b42ba50ee | cb8d1be6b6b1cbb4a1169223504e93061ed11c43 | /System/Time/Timer.hpp | 48fd622d431cee1e979de16f3cd8e4dc31dcd59f | [] | no_license | RyanBabij/Wildcat | c6ec5fca71968376208995d1cd833c007f44d9d1 | 4c684506996cf52ad752504e9b8a490f6cd571d0 | refs/heads/master | 2023-02-21T05:33:38.284612 | 2023-02-14T23:05:23 | 2023-02-14T23:05:23 | 100,090,636 | 8 | 0 | null | 2020-06-07T03:55:26 | 2017-08-12T05:11:37 | C | UTF-8 | C++ | false | false | 2,449 | hpp | Timer.hpp | #pragma once
#ifndef WILDCAT_SYSTEM_TIME_TIMER_HPP
#define WILDCAT_SYSTEM_TIME_TIMER_HPP
/* Wildcat: Timer
#include <System/Time/Timer.hpp>
Linux Implementation (Seems to also work with mingw or whatever)
Note that tv_usec resets after each second.
Profiling example:
Timer t;
t.init();
t.st... |
6afa60f13100969f8b1b7d5f1c4c7dd2565c32e8 | d2049ec4c3b35187717597ebf13cbbb7448efbb4 | /Chapter_5/Exercise_1/main.cpp | 9c79bb277b225c23dd8c19718f31d35ce7e6124b | [] | no_license | s-konyukhovsky/S_Prata_Exercises | c9bd1d64702dd8ce8ac11378bc74b97242418003 | 335bc31311eef87b6a69f8b315c5caa467b1c344 | refs/heads/master | 2020-03-31T00:48:39.207820 | 2018-10-18T12:07:57 | 2018-10-18T12:08:22 | 151,755,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | main.cpp | #include <iostream>
int main() {
unsigned int num1 = 0, num2 = 0, sum = 0;
std::cout << "Enter N1: ";
std::cin >> num1;
std::cout << "Enter N2: ";
std::cin >> num2;
for(unsigned int i = num1; i <= num2; i++)
sum += i;
std::cout << "Sum: " << sum;
return 0;
} |
e1c1834318193a69f3239c4397ed1039fa3ac15b | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/inetsrv/msmq/src/setup/msmqocm/ocminit.cpp | ef8822ff3d0aa3533ab1e58f589f05a5281bf0d4 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,448 | cpp | ocminit.cpp | /*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
ocminit.cpp
Abstract:
Code for initialization of OCM setup.
Author:
Doron Juster (DoronJ) 7-Oct-97
Revision History:
Shai Kariv (ShaiK) 10-Dec-97 Modified for NT 5.0 OCM Setup
--*/
#include "msmqocm.h"
#include "Cm.h"
#inc... |
ef783623470b2eecc9fc0cf19c1ad2cd8f3a09c5 | 2e3e626e7ea4fbaf5d1c3109291cbdc7e43b2679 | /OTA_Full/OTA_Full.ino | cac3d7fed88e24cbe45f0aa79f2ef6684bb3edaa | [] | no_license | aofserver/Project-iot | 3f2a34ae0092a1c5d6480beeb3192ba918c327c3 | aead97bc566d25acd463120c9d3ad4f134ad2192 | refs/heads/master | 2022-12-05T08:15:04.370093 | 2020-08-28T03:42:32 | 2020-08-28T03:42:32 | 290,943,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,754 | ino | OTA_Full.ino | /*
----- HOW TO USE CODE -----
1. upload this code
2. when update
2.1 select "Network port" before upload (connect local internet)
2.2 open browser go to url login esp (url is local ip esp connect internet) and upload ".bin" only
*/
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#i... |
20bbdd6f4d2b30cde41abc929b1c72a1158be356 | 29abb25d3f1a0facce3bb8595d8555c51dfa1156 | /MemoryManager/MMRBTree.h | 403707d3c8cd8d3d3fc3db7d67d10807c95e3207 | [] | no_license | Heisenbug/cpp-memory-manager | 9ad48a758ee0e646dfc28f1b569ff9a5dd6c6b3e | e93897f8b78728b9f87793dbbe213068b86e9a78 | refs/heads/master | 2016-09-08T02:37:03.752989 | 2012-03-21T12:05:18 | 2012-03-21T12:05:18 | 33,891,365 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,969 | h | MMRBTree.h | #ifndef MMRBTREE_H_INCLUDE_GUARD
#define MMRBTREE_H_INCLUDE_GUARD
#include <utility>
#include <iostream>
#include <string>
namespace MM
{
enum color_type { RED, BLACK };
class rbtree_error {};
template<typename K, typename V>
struct rbtnode
{
rbtnode(const K& k, const V& v, const color_type& ... |
787bdce23421651b8913c96daf282441a60a2315 | b521694fb2a399dcfdbe196ffa66028fe14cc9d0 | /Chapter02/multiplevariables.cpp | acd6cd07a7c61a5e98d6cfaa2352d0c3d8bcb8b1 | [] | no_license | nic-cs150-fall-2019/LectureCodes103 | 7eccddcba27a0add1e89fc19955dc4c95a019848 | d5fa40d0dad00c1a88388dfb74ffdf27ee409ec3 | refs/heads/master | 2020-07-12T05:49:03.748666 | 2019-11-07T23:23:50 | 2019-11-07T23:23:50 | 204,734,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | multiplevariables.cpp | // multiplevariables.cpp
// Description: Declaring multiple variables
// Gabe de la Cruz
// CS150 103
#include <iostream>
using namespace std;
int main()
{
int floors = 15,
rooms = 300,
suites = 30,
capacity = 100000; // WRONG: capacity = 100,000
// Display message to screen
co... |
79429c6891196f684e927579a52be46e209d52c7 | 6bb513beb7ad0c9c873a0595e9e6f08a9d680d40 | /RotateList.cpp | a19a09ce62e8fdb44c903750fba3c3a6e5cea232 | [] | no_license | tectronics/Leetcode | 921107dbe1f93ebb0accf5bba34674da66d4f78b | 2c3956d75b2756d09da4b97edb2154831c3dff4c | refs/heads/master | 2018-02-07T23:02:26.684852 | 2016-10-23T03:23:38 | 2016-10-23T03:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | cpp | RotateList.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
ListNode *last=head;
if (head==nullptr)
{
return head;
}
int size ... |
04c5fa6ef9159a323bc94d5a21825bebc7da2a02 | fa13000f91ef51b37df05211ac2f6d6557b47f9e | /Recursion/NumbersWithDuplicates.cpp | 2bbfed9cdc6d121fa3fd7b0f15b9c1b9e57a71cc | [
"MIT"
] | permissive | vatsalagarwal09/CompetitiveProgramming | 9c6cbc7b599f35d41431e93ad5ab10f6d29d7c35 | 2cdc314140e773e033ee6602d2019c6507883a4d | refs/heads/master | 2023-01-01T12:17:22.242520 | 2020-10-20T07:13:04 | 2020-10-20T07:13:04 | 292,911,099 | 1 | 3 | MIT | 2020-10-20T07:13:06 | 2020-09-04T17:44:12 | C++ | UTF-8 | C++ | false | false | 1,306 | cpp | NumbersWithDuplicates.cpp | #include <iostream>
using namespace std;
#include<algorithm>
long numDuplicate(long *input, long n, long *freq, long *fact){
if(n==0 || n==1){
return 0;
}
long count = 0;
long fac_deno = 1;
for(long i = 0; i<10; i++){
if(freq[i] != 0){
fac_deno = fac_deno * fact[freq[i]];
}
}
... |
956c4c73cddd46a5449fe27ed1d1b49162be65db | 4f132c27b64c3844a21ee331655ee2fd87207e83 | /type_sequence/concat.hpp | 55ebfdacff348d2dba6f63eee783c93a2d8baa27 | [] | no_license | scopeview/libtemplate | 1e1cefdb61ce0502a812596bb7b0e57e50ce41dc | da46306f223b593c4717449c8ab16852544ca23d | refs/heads/master | 2021-01-01T03:34:30.020326 | 2016-05-09T12:06:42 | 2016-05-09T12:06:42 | 58,378,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | hpp | concat.hpp | #ifndef __LIBTEMPLATE_TYPE_SEQUENCE_CONCAT_HPP__
#define __LIBTEMPLATE_TYPE_SEQUENCE_CONCAT_HPP__
namespace libtemplate { namespace type_sequence {
template<typename... T>
struct concat;
template<typename... T1, typename... T2>
struct concat<std::tuple<T1...>, std::tuple<T2...>> {
typedef std::tuple<T1..., T2...... |
c7e25e1431bb0ddb186d8286f360fbc7e7464ccc | e5e4133b900dec453a93605fb0c4a3e02b934630 | /src/io/io_lib/ParticleContainer.cpp | f0814204314dea7dbd1c5219f0739d1d4f01074d | [] | no_license | MineClever/claudius | cf73d9c34bebb3fd0ada9078af68857529ee5142 | aad9f38afe61c870e2bcd060582b2208f068e3f2 | refs/heads/master | 2023-07-06T19:58:15.899178 | 2019-09-12T16:36:11 | 2019-09-12T16:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | cpp | ParticleContainer.cpp | //
// Created by Jan on 20.04.2019.
//
#include "ParticleContainer.h"
const unsigned int ParticleContainer::particleCount() {
return particles.size() / 3;
}
void ParticleContainer::addParticle(float x, float y, float z) {
particles.emplace_back(x);
particles.emplace_back(y);
particles.emplace_back(z);
}
const ... |
ededef641b689e9be052de226e736345464fb276 | c72b140c8388a276f5f7ef4afc80312c07fa100a | /includes/bc-tools.hpp | 4e8a9c036e81f7aa90ba50bdefc240568be57332 | [] | no_license | lemenendez/bc-tools | fa6fe9dd5f90bd676ed4b59ce3b4b90014d652ad | 877f60706e1f0ebc30670ac26f1ac3dff345b618 | refs/heads/master | 2020-04-16T21:11:47.847673 | 2019-01-16T00:28:18 | 2019-01-16T00:28:18 | 165,916,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,962 | hpp | bc-tools.hpp | #include <bitcoin/bitcoin.hpp>
#include <string>
#include <array>
using namespace bc;
class my_bc_tools
{
std::string my_secret_key;
std::string bitcoin_address;
ec_secret decoded_secret_ec;
wallet::ec_private secret_key;
wallet::ec_public public_key;
bool decodeSecret(std::string secret);
pu... |
b85975f04d2cfbd2c3236a5e1f1cde537529f792 | 4a54dd5a93bbb3f603a2875d5e6dcb3020fb52f2 | /official/zone-2013-10-15-france/src/CharInfoDB.h | fc0d856206a285f86c56103b402d763a95730b0b | [] | no_license | Torashi1069/xenophase | 400ebed356cff6bfb735f9c03f10994aaad79f5e | c7bf89281c95a3c5cf909a14d0568eb940ad7449 | refs/heads/master | 2023-02-02T19:15:08.013577 | 2020-08-17T00:41:43 | 2020-08-17T00:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | h | CharInfoDB.h | #pragma once
#include "shared/ODBC.h"
struct MannerPointData;
class CCharInfoDB : public CODBC
{
public:
CCharInfoDB();
~CCharInfoDB();
public:
void UpdateItemStoreMoney(int AID, int money);
void DeleteItem(int GID);
void GetCharacterName(int GID, char* charname);
BOOL LoadMPInfo(unsigned long AID, std::list<M... |
4a4ea1046aea1404ccf59f2f7027a0e80ad692dd | 26c2de5a0cf4ed017f835bae7cc125750d17de82 | /dehaze_mkl/dehaze_mkl/AtmosphericMaskCalculator.cpp | 84f1e952bbf65f4e0c071f9590d4153a7657c4e1 | [] | no_license | wyq1973/Dehaze_CPP_MKL_OPENCV | 9d41f9096cff1868d5144a9d3a0a92f6b51da523 | 99b78f7e99b5ac4f23d969a3d1a2af49e7b41b06 | refs/heads/master | 2021-10-23T08:05:27.431295 | 2019-03-15T09:46:17 | 2019-03-15T09:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,880 | cpp | AtmosphericMaskCalculator.cpp | #include "pch.h"
#include "AtmosphericMaskCalculator.h"
//#include <iostream>
//#include <math.h>
#include <algorithm>
AtmosphericMaskCalculator::AtmosphericMaskCalculator(float r, float eps, float w, float maxV)
{
this->r = r;
this->eps = eps;
this->w = w;
this->maxV = maxV;
this->guidedFilter = GuidedFilter::... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.