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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c22e6d72a292e10b1da406de849ad11678f74963 | 82a19ab56e725b2e5224c3d41543813b30aa004e | /app_bus.h | 1b4bf080b6f48b33102824b89fe4fc0359fa9e5a | [
"Apache-2.0"
] | permissive | jc-lab/node-app | 9daa6de461036361242360c03b8a957276f0bda8 | a8b852aaba91491f2944769bde7f1b278dd71e15 | refs/heads/master | 2020-08-23T04:10:59.703573 | 2020-07-16T01:49:29 | 2020-07-16T01:49:29 | 216,540,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,084 | h | app_bus.h | /**
* @file app_bus.hpp
* @author Jichan (development@jc-lab.net / http://ablog.jc-lab.net/ )
* @date 2019/10/23
* @copyright Copyright (C) 2019 jichan.\n
* This software may be modified and distributed under the terms
* of the Apache License 2.0. See the LICENSE file for details.
*/
#ifn... |
269ff792896c59cf9866f7c42422c6c13ab95cb9 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/Hosting2/OperationStatus.cpp | c66c2619aa658aab30df04a6cf0d8174636b9041 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 3,244 | cpp | OperationStatus.cpp | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
67b35af4cac91899830a4b50030e07c9c825dfb7 | 50d98f9acdc7966dad2f7c71913b5ea1df1672a2 | /Readout_Software/include/monitoring/sharedmemorywriter.h | ba051a31a71dbaf90bbf072368cb7446df789bf3 | [] | no_license | gnjiao/VMMReadout-CERN | c0fd87260f5c9376848c547cff0e4a8feab15637 | 2573c715b4fbff823ffde6e76b8e0104b0206038 | refs/heads/master | 2020-04-25T11:05:18.030574 | 2018-05-02T11:36:51 | 2018-05-02T11:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,119 | h | sharedmemorywriter.h | #ifndef SHAREDMEMORYWRITER_H
#define SHAREDMEMORYWRITER_H
#include <iostream>
#include <vector>
#include <random>
//boost
#include <boost/interprocess/shared_memory_object.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/sync/named_condition.hpp>
#include <boost/shared_ptr.hpp... |
b308b9574fa7d087ce20e8aa3277462ed9ceac20 | 6bc8783897bcd7ed9c5043b1127ac1ea5519d9b2 | /src/src_emC_Appl/cpp/SimpleExmpl/SimpleExmpl_ApplCpp.cpp | 8e8ff9959b5f4357f46cb711175392e717303980 | [] | no_license | JzHartmut/Test_emC | 623cd5342ba05560515834a6322eed515e7d6a6a | aeefefb071f575b9764901e738995af7d9da8721 | refs/heads/master | 2023-02-02T23:40:06.833180 | 2023-01-28T20:22:24 | 2023-01-28T20:22:24 | 244,696,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | SimpleExmpl_ApplCpp.cpp |
#include <SimpleExmpl/SimpleExmpl_ApplCpp.h>
#if defined(DEF_cplusplus_emC) && defined(__cplusplus)
//
//C++ constructor of the application class:
//
SimpleNumExmpl::SimpleNumExmpl(ModuleB* modB_arg)
: modA(2.5f)
, modB(*modB_arg) //unfortunatelly C++ does not allow using this-> here, hence modB_arg
{ ... |
fe2b36890420da35b3e8dbb8961fe697de88148e | 1cce4c78ce2ae0b0c04db139e999a07a2602bd51 | /figuras.h | b9d7c69dc7f5eb4c54e4c0900ff96d0f621ad2df | [] | no_license | JoseHerCast/Proyecto_CG_Teor-a | cfb3b3b136eefd07ae576b5c3f8bfe655d06ed57 | 368cfc8e6da98c8b79c568a577acbfcea1bb8465 | refs/heads/main | 2022-12-27T14:14:15.228629 | 2020-10-18T23:23:16 | 2020-10-18T23:23:16 | 305,192,356 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,278 | h | figuras.h |
#include "Main.h"
class CFiguras
{
public:
float text_der;
float text_izq;
void esfera(GLfloat radio, int meridianos, int paralelos, GLuint text); //Funcíon creacion esfera
void cilindro(float radio, float altura, int resolucion, GLuint text); //Funcíon creacion cilindro
void cono(float altura, ... |
59714e94950045fe06b93b616601b86d9bbaaa5c | 684890a1bdb0c5c98c85f6564f52ea4dd162c0b1 | /Day-84/Lawrance.cpp | a323308589d0f3ec4ad6ffa8e8fd485444c40cac | [] | no_license | Job-Colab/Coding-Preparation | eb39dc6f064a76c9ef3a0318f3612e96d6cc6459 | a0273cb0d38afbbda7b6a1f008ab812b93f09d74 | refs/heads/main | 2023-04-28T21:50:38.218873 | 2021-05-13T03:11:48 | 2021-05-13T03:11:48 | 301,300,545 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | Lawrance.cpp | #include <bits/stdc++.h>
using namespace std;
int RedOrGreen(int n, string s) {
int pointer = 0;
for(int i = 0; i < n; i++) {
if(s[i] == 'R') {
swap(s[pointer++], s[i]);
}
}
int red = pointer;
int green = n - pointer;
return (red > green) ? green : red;
}
int main()... |
266de644224ce253196b258a95d8c13858c04470 | 29f02902f0f6cc23cf6d5db288b8a2975850326b | /test/TokenTest.cpp | 4ad236bd2480405b05ecc55b80658a0a6fd3287d | [] | no_license | ufukhurriyetoglu/address-recognition | 2814a7c7909a9200ac60e9ea05c2c8c3a549001e | 5b1e3c9257e03370511cc17956cfea99515c500b | refs/heads/master | 2021-08-23T11:34:26.412781 | 2017-11-28T08:55:24 | 2017-11-28T08:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,095 | cpp | TokenTest.cpp | #include "catch.hpp"
#include "Token.hpp"
#include <enums.hpp>
using address_recognition::Token;
using address_recognition::enums::TOKEN_TYPE;
TEST_CASE("Token - basic parse ability") {
// Token t("");
// REQUIRE(t.getTokeType() == TOKEN_TYPE::NONE);
//
// t = Token("foo");
// REQUIRE(t.getTokeType() == ... |
411f84c8594f9165f30075a033fdf0d9f24457e2 | f14471ad6993834266bf3328b4126d921c959c3b | /kokkos-kernels/unit_test/sycl/Test_SYCL_Graph.cpp | 5e5c20baff808ba656eab51e5502dba6f354b60a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sandialabs/compadre | 07b06f095ed0f171aba66839e8e01e619b7403ea | bf4cd8db7104a2102ee9af5fbc8962f43c6df876 | refs/heads/master | 2023-08-31T11:47:01.409672 | 2023-05-03T15:13:07 | 2023-05-03T15:13:07 | 165,897,408 | 8 | 1 | NOASSERTION | 2023-05-03T15:13:09 | 2019-01-15T17:52:40 | C++ | UTF-8 | C++ | false | false | 140 | cpp | Test_SYCL_Graph.cpp | #ifndef TEST_SYCL_GRAPH_CPP
#define TEST_SYCL_GRAPH_CPP
#include <Test_SYCL.hpp>
#include <Test_Graph.hpp>
#endif // TEST_SYCL_GRAPH_CPP
|
c3325a569859cb0b03624a96162cdb57d78e975a | f78d81114a2537b48d72ed4084164afdf529914e | /TESTBIT/ALTREPRV/PROJECT1.cpp | 11f02146abead5a82819fbff190b3158dc882570 | [] | no_license | esantanche/buggycppcompiler | 0ef95054f91ff95cdf13b903f64d0a8d2c63c2db | 560f3bbf1d36b9480a2653a8dc26e7d5e819379c | refs/heads/master | 2021-08-23T08:57:34.255468 | 2017-12-04T11:48:21 | 2017-12-04T11:48:21 | 113,035,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | PROJECT1.cpp | //---------------------------------------------------------------------------
#include <vcl\condefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USERES("Project1.res");
USEUNIT("Bittest.cpp");
int m... |
ff3c4c867b7879449d7e08ce892a0f9fdb03ec18 | f0a74944cd7d904f5f57f66654d9104bb90b2a2d | /Projects/ExodusCore/Include/AProperty.h | 7ba8d18511a20a34d0055ac68f18b3bb929aa6d2 | [] | no_license | Kiritow/unversioned-project | 3f6506ac915441845ba962a9a696ccb6e4b00957 | 8cbc87884d48c6666b5d2a849842e6991782f38b | refs/heads/master | 2020-06-23T02:16:40.051563 | 2013-12-17T04:17:35 | 2013-12-17T04:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | AProperty.h | #pragma once
enum EPropertyType {
Property_Array,
Property_Object,
Property_Integer,
Property_String,
};
class AProperty {
public:
AProperty(EPropertyType InPropertyType);
virtual ~AProperty();
EPropertyType PropertyType;
};
|
2496993635b4e7fbae9c55542ee958e8abd0e6a8 | d26fb47504c4a192d1d2173f07e778657e2811fd | /MapReader.h | 3a9309b1636848deffb19ed430b20d568077f4f8 | [] | no_license | werweg/Maze-3D-Game | 33a78bac99916c595c41d7b5fb13b99a5b6da86c | 1afc5780b705ef88565b2c44539668910b1b2d0c | refs/heads/master | 2021-01-23T06:25:36.528613 | 2017-03-27T18:14:24 | 2017-03-27T18:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | h | MapReader.h | #pragma once
#include <iostream>
#include <fstream>
#include <istream>
#include <sstream>
#include <string>
#include <vector>
class MapReader {
private:
int **Maze;
int x, y;
double ppos_x, ppos_y;
public:
MapReader(std::string location)
{
std::ifstream file;
file.open(location.c_str()... |
ef91d2f28b29c71c531bbe44bbb4262d61aab206 | d50e2421068050624c3c96e13ac4d9031ea6b159 | /src/core/vectorclass.cpp | 8ccc6fd20b06472d6dbda7e62edcf4e9005f577a | [] | no_license | gapost/qdaq | 8a40576d10cfdeca77c42a6ff0620756ed75f4f9 | 20595aaaafa0b38c2f3f824a5e5bc65895c41125 | refs/heads/master | 2023-07-20T04:40:32.857961 | 2023-07-11T18:21:10 | 2023-07-11T18:21:10 | 122,658,405 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 8,291 | cpp | vectorclass.cpp | #include <QtScript/QScriptClassPropertyIterator>
#include <QtScript/QScriptContext>
#include <QtScript/QScriptEngine>
#include "vectorclass.h"
#include "vectorprototype.h"
#include <stdlib.h>
Q_DECLARE_METATYPE(QDaqVector*)
Q_DECLARE_METATYPE(VectorClass*)
class VectorClassPropertyIterator : public QScriptClassPrope... |
ebf8da8b47f44f248702e1c65341291b765fb0cb | 1795dedaa46e2b4ebc52988ddff7d478913d2ce0 | /src/MllpV2Connection.h | 35b8b045b798eafbce6d82efcced13388b4ccf7b | [
"Apache-2.0"
] | permissive | teaglu/mllp-activemq | 67c3bace4d9e5627f166334cbe2ff4890449f8cf | 331e96c066d68633894510ef6a8717775f34ef65 | refs/heads/main | 2023-03-21T05:37:10.647689 | 2021-03-16T16:15:43 | 2021-03-16T16:15:43 | 343,135,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | h | MllpV2Connection.h | class MllpV2Connection
: public MllpConnection
{
public:
MllpV2Connection(
ListenerRef listener,
int sock,
ServerRef server,
char const *remoteHost);
virtual ~MllpV2Connection();
protected:
virtual bool parse(char const *message);
virtual void acknowledge(AckType);
private:
void sendResponse(bool succe... |
38b293a4ae57d7b892e53dfca446030d4ee1804e | 57f24846a3fa3670c8519af87e658eca120f6d23 | /B2_CoarseMesh2_monkey/16/phi | 0f26cd83e04496dfd23928b23c75c0f5c91044e9 | [] | no_license | bshambaugh/openfoam-experiments | 82adb4b7d7eb0ec454d6f98eba274b279a6597d8 | a1dd4012cb9791836da2f9298247ceba8701211c | refs/heads/master | 2021-07-14T05:53:07.275777 | 2019-02-15T19:37:28 | 2019-02-15T19:37:28 | 153,547,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,118,629 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
b79b3e6f461417a9d8dbfe316b517c8c7603c5df | da981f4ac0068e5145e3120dbc86429ed10d92ea | /InSourceDefinition.cpp | c52cc5ec9c89a4a98160b76430c0015c576c81ee | [
"MIT"
] | permissive | haxpor/cpp_st | 9d5c54e5ad7e4676635dc17e354f3fbe929b4d0e | 600b388a9b26ece3ce02e26899621f58260d8627 | refs/heads/master | 2023-07-25T23:04:54.922087 | 2023-07-24T16:54:12 | 2023-07-24T16:54:12 | 204,326,822 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cpp | InSourceDefinition.cpp | #include <iostream>
#define DEF1
#ifdef DEF1
static int var1 = 1;
#else
static int var1 = 10;
#endif
#undef DEF1
#ifdef DEF1
static int var2 = 2;
#else
static int var2 = 20;
#endif
int main()
{
std::cout << "var1: " << var1 << "\n";
std::cout << "var2: " << var2 << "\n";
return 0;
}
|
82d77c3651192117f2c92465572f9ecc8e93ba0a | 8431cd514aaf6be271f28fd24e9a12659aa49966 | /mcsmus/mcsmus/Main.cc | a1b2f1eeb65b429480eefdcd53e8777fa1ab487a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jar-ben/mustool | 84122307d1821c51de9e812aafc96992906fe68d | 17fa9f9542a9ce05328dfccd1cd410f05f741ab3 | refs/heads/master | 2023-06-21T09:49:19.910448 | 2020-05-27T21:42:35 | 2020-05-27T21:42:35 | 169,927,804 | 16 | 3 | MIT | 2023-06-18T14:50:54 | 2019-02-10T00:14:51 | C++ | UTF-8 | C++ | false | false | 11,649 | cc | Main.cc | /*****************************************************************************************[Main.cc]
Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
Copyright (c) 2007-2010, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation ... |
6eb06e7a76420aa6f89afa5f3f144f8022944b51 | 714aa8a1841873124794c2009ce917640b808323 | /assignment2.cpp | 32de4307eff8e9f32f369c75ef911d691f296e08 | [] | no_license | chonhenry/Baruch | c60905d8e4623a9aa92748832a480a8cd80a5785 | 740b6d2521ffc933a38a5845bc3880620bd36f19 | refs/heads/master | 2020-08-18T15:03:25.991762 | 2019-10-17T23:29:09 | 2019-10-17T23:29:09 | 215,804,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | cpp | assignment2.cpp | // Name: Shiuhin Chon
// CIS 9310
// Assignment 2
#include <iostream>
using namespace std;
double power(double b, int e){
int count = 1;
double result = b;
bool e_neg=false;
if (e<0){
e_neg=true;
e=e*-1;
}
if (e==0){
return 1;
}else{
while(count!=e){
result = result*b;
coun... |
c7f329ba7b458b6d778990da0c036a238be5b61e | 992f1b4fef76853e256e7c54280139753c5a6192 | /leet/test/leet0868_test.cpp | 704855d05a1f12c89fc45311d0e4ffc880545ec7 | [] | no_license | lcllkzdzq/leet | ce19526a5a4c2f94403a7e3c3dcdd4fffd912d2f | 7ea46a37e365c0d55435dfbb5a167a33c8c3e7a2 | refs/heads/master | 2021-04-06T13:32:08.580309 | 2018-07-19T15:31:11 | 2018-07-19T15:31:11 | 124,920,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | leet0868_test.cpp | #include <gtest/gtest.h>
#include "leet0868.hpp"
TEST(Leet0868, binaryGap)
{
Leet0868Solution s;
EXPECT_EQ(s.binaryGap(0), 0);
EXPECT_EQ(s.binaryGap(1), 0);
EXPECT_EQ(s.binaryGap(14), 1);
EXPECT_EQ(s.binaryGap(32), 0);
EXPECT_EQ(s.binaryGap(79), 3);
EXPECT_EQ(s.binaryGap(686), 2);
EXPEC... |
9fa5405c27eed40d0f06ebce21e89e10561c9500 | aa25e3a2cd8c998d480f21dafba027e043d82d1d | /src/integrators/gdvcm/gdvcm.cpp | 138de1f602646deb7adf77662d526a793f90566d | [] | no_license | sunweilun/Mitsuba | c6f6cfcac07bb270141068911175751db9950ca9 | b7f3f0f88eaca06cde3c26ab54d0e20ce2f5084c | refs/heads/master | 2021-03-27T17:15:29.141745 | 2017-09-23T02:03:51 | 2017-09-23T02:03:51 | 64,422,737 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,773 | cpp | gdvcm.cpp | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... |
7e486ed1d1791e94ee5c031fb03f8f6ee57632de | fab9c18874186d907e83dd99ee700d53774372a8 | /Sources/CaclModule.h | 325dbe587aa471d5e38a51345cc6ed7a768a64ba | [] | no_license | NikitaMushchak/N_body_TPM | 8f2a506a08f759e866a0882c9462981bbb62fd71 | a4554e93e818104b90c5f25af50c79ada9d44e3b | refs/heads/master | 2020-03-23T22:20:20.113715 | 2019-01-22T07:11:07 | 2019-01-22T07:11:07 | 142,169,767 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | CaclModule.h | #pragma once
#include <vector>
//#include <algorithm>
void ScalePos(std::vector<std::vector<double>>& Particles, double scale);
void CaclDensity(std::vector<std::vector<double>>&Particles,std::vector<std::vector <std::vector<std::vector<double>>>>&density,
float mass,
double H,
size_t dim);
void C... |
1348a103fb8eeaf3979500f0f3d2e4953483e371 | c5f1a804dbd1f5de123469dd5432633633e80597 | /BertsToolBox/ObjectCache.cpp | 142321a8ac35a9c95db5faa66af7dc8793f50b1e | [] | no_license | brosell/HTS-Games | 2d03a8988adc5c613dba1e249a7e0b409593ff11 | 3c7c1cc2ec4fe0ba7865f6eec5cec905faab5a3f | refs/heads/master | 2021-01-22T21:23:38.681074 | 2020-01-12T15:41:47 | 2020-01-12T15:41:47 | 85,423,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | ObjectCache.cpp | #include "ObjectCache.h"
void testObjectCache()
{
ObjectCache<int> ints;
int c=0;
int* test[100];
for (c=0; c<15; c++)
{
test[c] = ints.acquire();
}
for (c=0; c<5; c++)
{
ints.release(test[c]);
}
for (c=20; c<30; c++)
{
test[c] = ints.acquire();
}
} |
dce7c3f02cc5cff459ea185653cde41ffccdcb1e | 479db55463d08f97ebd6be2b50820f528fbcd8fd | /Problems/MiddleOfTheContest.cpp | 8ecd9b48155b0651236986fb62ace8018fb0497c | [] | no_license | R3CEPT0R/Codeforces | a5d24e6fea0bbb52d1631915cce9ead6963e794c | 2b1e0b61a05d765fff15d8bddd89b0258d3ad8ae | refs/heads/master | 2020-07-20T17:06:07.821493 | 2020-06-26T01:00:35 | 2020-06-26T01:00:35 | 206,681,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 762 | cpp | MiddleOfTheContest.cpp | #include <iostream>
#include <sstream>
using namespace std;
int main()
{
string time1, time2;
int h1, h2, m1, m2;
//simple input
cin >> time1;
cin >> time2;
//conversions and extractions
h1 = stoi(time1.substr(0, 2));
m1 = stoi(time1.substr(3, 2));
h2 = stoi(time2.substr(0, 2));
m2 = stoi(time2.substr(3, ... |
395795a977ee465c9bd8b9802f390847061786ad | 02fd60cf7d8f330db49512ec155aea5312140fe8 | /src/Settings.cpp | 972b9f0d3ca6f212c2f2f9cfe82caef78c750424 | [] | no_license | DurkoMatko/SFML_PacLikeGame | 55e556be9249787dd1e922aafefdbfab6070f567 | 3784ffacb0c91d8defee6c5d8e35b88755b210aa | refs/heads/master | 2021-01-11T05:38:15.581819 | 2016-10-20T19:54:40 | 2016-10-20T19:54:40 | 69,350,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,502 | cpp | Settings.cpp | #include "Settings.h"
#include "MyException.h"
#include "Board.h"
#include <iostream>
#include <sstream>
using namespace std;
using namespace tinyxml2;
Settings::Settings():doc2()
{
this->readSettings(); //parses "GameSettings.xml"
escape=false;
try{
if(!font.loadFromFile("aria... |
ab0a213cf3cb02affe87a6e6519d9ad86b06495f | cf78209aa08af5a415292facf7d8668c92ddea93 | /864A.cpp | 1d94a908a5b953f3118bdff24e1159aad992dcf1 | [] | no_license | souravpati/codeforces | e969bf50c38e085670383b0e78ab2faf02bebad6 | fb4b62d3ab317a9c39441157f1bfab201e76c50b | refs/heads/master | 2021-01-19T11:28:52.467673 | 2017-10-05T06:58:10 | 2017-10-05T06:58:10 | 82,261,062 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | 864A.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
int n,x,a[101]={0},c=0;
cin>>n;
for(int i=0;i<n;i++){
cin>>x;
a[x]++;
}
int p=0;
for(int i=0;i<=100;i++){
if(a[i]>0){
if(p==0)
p=a[i];
else if(p!=a[i])
c+=5;
c++;
}
}
//cout<<c;
if(c==2){
cout<<"YES"<<"\n"... |
a2e6f7b277489c4fe91db8253e21b75da7f0d0aa | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Simulation/G4Utilities/G4DebuggingTools/src/components/G4DebuggingTools_entries.cxx | 8f9cd5db10ee9dce471b6d1dede5f6130a90ac02 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 759 | cxx | G4DebuggingTools_entries.cxx | #include "../EnergyConservationTestTool.h"
#include "../HyperspaceCatcherTool.h"
#include "../G4AtlantisDumperTool.h"
#include "../VerboseSelectorTool.h"
#include "../CheckActivationTool.h"
#include "../StepNtupleTool.h"
#include "../VolumeDebuggerTool.h"
#include "../Geant4SetupCheckerTool.h"
#include "../StepHistogra... |
4c3a6a3d36a12f92f07549c5dcf628b5da3b469a | 96a1d38fe221a4d3bd86d442a3937e35d955cce8 | /thermometer/misc.hpp | 0a37aa037bc24a0fa11e81d40e371785e5840155 | [
"MIT"
] | permissive | Krakenus/esp32-wlan-dht-thermometer | e1d6a53ecc4c38d8fd6990f9f1d503c677bf0653 | 1a0ffb509614a6ff21a2ceb95b5b86c50be8984e | refs/heads/master | 2023-03-05T17:54:18.399778 | 2021-02-16T11:51:21 | 2021-02-16T11:51:21 | 339,194,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 135 | hpp | misc.hpp | #ifndef __MISC__THERMOMETER__
#define __MISC__THERMOMETER__
#include "settings.h"
void blink_forever();
#endif __MISC_THERMOMETER__
|
00eb96f6bd372e325e8b2cf1d6cbd6afc0de9383 | ee7aa73ab1bc8d04f9701372b63fe8cc17bb760b | /api/core/nodejs/NJSWalletPoolBuilderCpp.hpp | ff083fb49f04e6226acc0feba2a9c95ebb5245de | [
"MIT"
] | permissive | teams2ua/lib-ledger-core | ec9ced9bb0148de5de98ca8b8adeca676c7f7d75 | 5919dc370800223ee04f646d5c6757d724dd1743 | refs/heads/master | 2021-07-11T05:00:53.981211 | 2018-11-19T23:51:27 | 2018-11-19T23:51:27 | 152,074,010 | 0 | 0 | MIT | 2018-12-17T13:53:13 | 2018-10-08T12:12:44 | C++ | UTF-8 | C++ | false | false | 4,514 | hpp | NJSWalletPoolBuilderCpp.hpp | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from wallet_pool.djinni
#ifndef DJINNI_GENERATED_NJSWALLETPOOLBUILDER_HPP
#define DJINNI_GENERATED_NJSWALLETPOOLBUILDER_HPP
#include "NJSDatabaseBackendCpp.hpp"
#include "NJSDynamicObjectCpp.hpp"
#include "NJSHttpClient.hpp"
#include "NJSLogPrin... |
4cfe1b01663006e6c74c40ef4d4500e00a9e474b | 4ed6fae767b8a4b8d701abfafa9b1f42989d33c1 | /rclss.cpp | 8f88aa6cc650023116d5c85968b3dfea99b591a1 | [] | no_license | ToPP13/realty | eac86198ae7c4f4eb21916349059188c9f123be3 | 731f05d7bd3395e56a672bcfb3a0d3ca584aa308 | refs/heads/master | 2023-02-05T20:57:18.220739 | 2020-12-29T19:12:45 | 2020-12-29T19:12:45 | 320,083,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 759 | cpp | rclss.cpp | //
// Created by kirill on 12.12.2020.
//
#include <string>
#include "csvreader.h"
#include "classifier.h"
#include "datapreprocessor.h"
int main(int argc, char *argv[])
{
if (argc != 2)
return -1;
std::string file_name = argv[1];
// read
CSVReader reader;
Classifier cl(file_name);
... |
261d1178888ae8bf1c93b309c4beca3a51658b88 | ba1f77bea85efa1bf9de89c17b4940728ae3db52 | /imageProcessing.cpp | fefc05892b1225a2032a06f967aca4e942513d47 | [] | no_license | andrewbo29/feedforward_network | 3b93a43f7efeb21b52fddc56149f7e774d495d7f | 267cd97f35149855818240e1e3f3164fa71eca1a | refs/heads/master | 2021-01-18T21:11:10.840803 | 2016-06-03T11:06:23 | 2016-06-03T11:06:23 | 52,079,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,146 | cpp | imageProcessing.cpp | #include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include "imageProcessing.h"
#include <dirent.h>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
Mat loadGrayScaleImage(string imageFname) {
Mat image;
image = imread(imageFname, CV_LOAD... |
83d0bada7ae5036c358615b95e63f04887c467a0 | 46087ddd70356ed4717dc23ea2bb9cc4e003dd63 | /Codeforces Round #208 (Div. 2) - A. Dima and Continuous Line/Codeforces Round #208 (Div. 2) - A. Dima and Continuous Line/main.cpp | 5ce5d7da7bdb2169071b3947757c0194d0e3ca73 | [] | no_license | smhemel/Codeforces-Online-Judge | dae1b6a128fe90923d3cb308b3288b6d5df4df4e | e143341ca0a0149ee088bfbce50dac923b6e3d47 | refs/heads/master | 2020-04-04T13:16:02.975187 | 2019-11-09T09:20:14 | 2019-11-09T09:20:14 | 155,955,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | main.cpp | //
// main.cpp
// Codeforces Round #208 (Div. 2) - A. Dima and Continuous Line
//
// Created by S M HEMEL on 3/31/17.
// Copyright © 2017 Eastern University. All rights reserved.
//
#include<iostream>
using namespace std;
int main()
{
long n,x=0,y=0;
cin >> n;
long a[n];
for(int i=0;i<n;cin >> a[i]... |
5245d2feb3bf78c8f8c32f1cfc1b6a5c1bef22ce | b405fd9cd3c53a3ed279e75aca3fec89ba745df5 | /90.Subsets II/90.Subsets II/main.cpp | fe186bf31788536716ff245c161ff832a12140c9 | [] | no_license | Abysman/MyLeetCode | 4842db63f4914022a3773be1e9d9ce068cb6d3bd | a4eb8af658996e7ba4501342f4aa4bbd113e6cfb | refs/heads/master | 2021-04-06T20:48:17.260497 | 2020-01-23T23:09:35 | 2020-01-23T23:09:35 | 125,452,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,131 | cpp | main.cpp | //
// main.cpp
// 90.Subsets II
//
// Created by Abysman on 2019/2/18.
// Copyright © 2019 Abysman. All rights reserved.
//
#include <iostream>
#include <set>
#include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> subsetsWithDup(vector<int>& nums) {
vector<vector<int>> re... |
f1d60b39296d39838f111b1ed30f1171d9f8c4f9 | b173b42d13f1031f65725d0a4c97e529c36ba7f9 | /WorldTimer.h | 59e842848745ef9893bd9242ea88e5bb793a2c8a | [] | no_license | shutov1221/MinecraftClone | 88abe4795bfd2fb2cf48943f58fb3877b8eed18d | 31305dcf3f78b1bffb14a153915c8381f1f54050 | refs/heads/main | 2023-06-21T06:48:29.944743 | 2021-07-27T19:22:18 | 2021-07-27T19:22:18 | 390,091,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | WorldTimer.h | #pragma once
class WorldTimer {
public:
static void CreateClock();
static void Update();
static double dt();
static float fdt();
static double phys_dt();
static float phys_fdt();
static double time();
static float ftime();
private:
WorldTimer();
static WorldTimer* worldTimer;
static double _dt;
static do... |
a7e707db525e6cec7f765f36a26366b631bff7cf | b944e5e211fae1762a0186c1fd76bebcae978773 | /FEngine/Social/BasicShare.cpp | 87bd24a572dad8fb4df8c3a353884fa98efe60e2 | [
"BSD-2-Clause"
] | permissive | fakhirsh/FEngine | ccbdd7761b9e4b97ec5f322067c621b584bccab4 | b47ec3c08f0a478b6c58fad67eb99f3b76c30954 | refs/heads/master | 2020-04-14T00:34:18.253339 | 2016-05-14T19:40:10 | 2016-05-14T19:40:10 | 32,146,224 | 2 | 0 | null | 2015-04-03T10:37:19 | 2015-03-13T09:07:02 | C | UTF-8 | C++ | false | false | 193 | cpp | BasicShare.cpp | //
// BasicShare.cpp
// FEngine
//
// Created by Fakhir Shaheen on 24/04/2015.
// Copyright (c) 2015 Fakhir Shaheen. All rights reserved.
//
#include "BasicShare.h"
namespace FEngine
{
} |
22383135fb7e141f040900ace91564761b16af37 | 31652e474917d7a93e576a3e243fac264e1822b9 | /Bc/3.semester/inf3/cvika/3.cvicenie-zasobnik/NekonecnePole/NekonecnePole/main.cpp | 1b8c89b480aa82a23e6ff2fc31587d320187dfb6 | [] | no_license | leskovsky1/FRI | 4e99e15856f3aa88a6439b8420e6fb078921f005 | cb220a69717ccc819d9e5dc4c2da217314170f19 | refs/heads/master | 2022-05-08T17:29:04.345607 | 2019-10-08T19:08:45 | 2019-10-08T19:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | main.cpp | #include <cstdio>
#include "vstup.h"
#include "zasobnik.h"
#include "vypis.h"
//#define testy
#ifdef testy
#include "test.h"
#endif
int main()
{
bool ok {true};
Zasobnik z; //tento zasobnik ma naroziel od inych pevne stanovene mieste pamati
init(&z);
#ifdef testy
ok = runtest(&z);
#endif
... |
2898d6371cd85273651934bd2ddbbdc86098f3fb | 7e6afb4986a53c420d40a2039240f8c5ed3f9549 | /libs/opengl/include/mrpt/opengl/CGeneralizedEllipsoidTemplate.h | 0d799cd9eecd3716da373fcbd7e551fd743aba0c | [
"BSD-3-Clause"
] | permissive | MRPT/mrpt | 9ea3c39a76de78eacaca61a10e7e96646647a6da | 34077ec74a90b593b587f2057d3280ea520a3609 | refs/heads/develop | 2023-08-17T23:37:29.722496 | 2023-08-17T15:39:54 | 2023-08-17T15:39:54 | 13,708,826 | 1,695 | 646 | BSD-3-Clause | 2023-09-12T22:02:53 | 2013-10-19T21:09:23 | C++ | UTF-8 | C++ | false | false | 10,680 | h | CGeneralizedEllipsoidTemplate.h | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
3212c0345c57e9aeb0e7c44098db851eb847f3db | 98bbd8e6295926efec2dd7184abe083e3501a355 | /inc/Containers/AxisBinning.h | 31d4126e14646bb4e8602889b129379513f5e338 | [] | no_license | cnforChina/BOSS_Afterburner | 7825dfb103ea290425c5e028ccc0f223b706187a | 212dd34fc941a4f805e7b9cfb73e72d230c57010 | refs/heads/master | 2020-06-07T00:11:36.324245 | 2019-06-20T05:46:16 | 2019-06-20T05:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,582 | h | AxisBinning.h | #ifndef BOSS_Afterburner_AxisBinning_H
#define BOSS_Afterburner_AxisBinning_H
#include "TString.h"
#include <utility> // for std::pair
#include <yaml-cpp/yaml.h>
/// @addtogroup Afterburner_objects
/// @{
/// Container object for the binning for *one* axis.
/// Only contains the number of bins, the bin wi... |
a68c389aa06c2535e1252278b2ad7f17fdb32665 | de333ed18daee0dbd50d274490274e3f263031a3 | /korpus/document_test.cc | bfa6ba8323ff926a3a03e193b4fb128d9379b731 | [] | no_license | piotrf17/korpus | 3e234056280bd7d114253e994dd6658df8e703e5 | eaa56efaba2a49086130d0dcf4868203aa3431cf | refs/heads/master | 2021-01-21T12:39:51.967594 | 2014-02-23T18:11:29 | 2014-02-23T18:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,538 | cc | document_test.cc | #include <fstream>
#include <gtest/gtest.h>
#include "korpus/document.h"
#include "korpus/lexeme.h"
namespace korpus {
void EncodeDecodeTestCase(int a, int b, int c) {
int section, sentence, lexeme;
uint64_t token;
section = a; sentence = b; lexeme = c;
Document::EncodeToken(a, b, c, &token);
Document::De... |
27d50dd44ed9582bc1241eafebccf4306e8606ff | a9017dafc60a0a3f301a4a55f0df472516614c2e | /include/uxccdrightb.h | 37bf869251c5559627d4b3ea7c17453c0c5542ea | [
"MIT"
] | permissive | oklen/SECM_GUI | 91a02bd6b8cc8da39450950ecdadf24b436f66a2 | 5b7f589e34f121ad34da88d41dc8c072a6477f03 | refs/heads/master | 2020-04-15T04:36:53.537630 | 2019-01-07T11:49:29 | 2019-01-07T11:49:29 | 164,389,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | h | uxccdrightb.h | #ifndef UXCCDRIGHTB_H
#define UXCCDRIGHTB_H
#include <QPushButton>
#include <QPainter>
#include <QMouseEvent>
class uxccdrightb : public QPushButton
{
Q_OBJECT
public:
explicit uxccdrightb(QWidget *parent = nullptr);
void paintEvent(QPaintEvent *event);
bool eventFilter(QObject *watched, QEvent *event... |
8821d0dc48588e602380999aca9fc220dfcd3e04 | e9e24546106a24ee03728185b0695417709a58cd | /ccgsl/const_cgs.hpp | 6962af6d464c5e80bf00aab2308b00bff034c348 | [] | no_license | Bhare8972/RFD_modelling | 883db23508f48322c02150ad0e97b84a0e6d2aef | bce58d410609df6058637dcbd876ae24ed4358a8 | refs/heads/master | 2021-01-17T03:16:34.734754 | 2017-01-16T13:24:20 | 2017-01-16T13:24:20 | 52,374,905 | 0 | 0 | null | 2016-11-05T15:16:46 | 2016-02-23T16:45:48 | C++ | UTF-8 | C++ | false | false | 13,028 | hpp | const_cgs.hpp | /*
* $Id: const_cgs.hpp 225 2012-08-08 18:15:27Z jdl3 $
* Copyright (C) 2012 John D Lamb
*
* This program 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 2 of the License, or (at
* your o... |
a25e4172ab4876da352cb25e716b7d7366452166 | 5aa7143cdfb290f77bfe08d823aa2afb849ea073 | /source/demos/Network_Demo/messages.cpp | 5fd56bd529eef8012b33fd4049e92b293bd10734 | [] | no_license | luaman/g3d-cpp | 6acd6b5908ac4c0a13bb9b8f16dfd4ad1a6f8bd0 | e8bb4ba69501d537e972a6a4bd0e3a86bfe3f45d | refs/heads/master | 2021-01-10T07:36:12.130819 | 2006-10-20T21:48:59 | 2006-10-20T21:48:59 | 44,018,430 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | cpp | messages.cpp | /**
@file Network_Demo/messages.cpp
@author Morgan McGuire, matrix@graphics3d.com
@created 2004-03-30
@edited 2005-01-22
*/
#include "messages.h"
#include "Entity.h"
void EntityStateMessage::serialize(BinaryOutput& b) const {
b.writeInt32(id);
controls.serialize(b);
frame.serialize(b);
vel... |
dd02ceb29e38b610335bc01a85a1ba27243f26d9 | 685b7e45badfd29496cc9f3633d48809de0912d6 | /ConnectServerCommand.h | 2cfd9ba8a6e06cceef2a271504c6135490b1237b | [] | no_license | bhyamy/Flight_Simulator | 642eaa4917a6155134670dc6d69c4a46775d4675 | 447e956d3a7948a7f1798a13e7d7fe42a2b27795 | refs/heads/master | 2020-12-02T21:57:00.486076 | 2020-01-09T20:12:33 | 2020-01-09T20:12:33 | 231,135,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | ConnectServerCommand.h | //
// Created by bhyamy on 1/2/20.
//
#ifndef AP_PROJECT_CONNECTSERVERCOMMAND_H
#define AP_PROJECT_CONNECTSERVERCOMMAND_H
#include "Client.h"
class ConnectServerCommand : public Command {
public:
int execute(vector<string>::iterator iter) override;
ConnectServerCommand();
virtual ~ConnectServerCommand()... |
845167d6dd95449822b137e3907b070ff6d3b39b | f1dd800dc005694f584852e7a95aa95fd39a7beb | /arduino/土壤湿度传感器/TU/TU.ino | 27defed11d4893f4cd37cfbeb7aace7407dccc0e | [] | no_license | Atlasumin/duanxeuqi | 98c2d420473d38e4132a92c60af7d6718311ba06 | e5894e38a0f4fbe3184be07f02f11a813de29ea6 | refs/heads/master | 2020-03-23T04:26:05.366343 | 2018-07-16T03:45:42 | 2018-07-16T03:45:42 | 141,083,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | ino | TU.ino | int val;
//最小值370
//最大值785
double shidu = (785-val)/3.15;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(0);
if( val < 785 && val > 370){
//Serial.print("湿度:");
//Serial.print(shidu);
//Serial.println('%');
Serial.println(val);//调试时使用
delay(10);
//Serial.println();
... |
ef0975fc0be417e466fbe2a03261b2861c0328eb | b551b36ab91ae774eadced5ca9d91944315e2b24 | /C++ CIS 180 Projects Cerritos Community College/account data/lab4/account data.cpp | fb5e55e7c3893b23a1e04eaa83e0548b536ceec1 | [] | no_license | feliusps/Cplusplus | 68511189feb07060d66f6c7a8a2a33ed4e39968e | a0a31fe98f52cc7184b63951c6253ae57e44718d | refs/heads/master | 2022-07-21T03:51:00.379486 | 2022-07-10T20:25:12 | 2022-07-10T20:25:12 | 208,512,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,438 | cpp | account data.cpp | // account datalab4.cpp
//CIS 180
//Assignment 4
//Feliu , Felix
/*The No Interest Credit Company provides zero-interest loans to customers.
Design an application that gets customer account data that includes an account number, customer name, and balance due.
For each customer, display the account number ... |
ef2499077655efaae493c9d429b2461abfb3b526 | e363b63383c617acc55c5b43bd0fa524d9e64dff | /game/client/swarm/vgui/asw_vgui_marine_ammo_report.cpp | 6263e7c64e6c489e0d09b60df70dbd22f526cd8b | [] | no_license | paralin/hl2sdk-dota | 63a17b641e2cc9d6d030df9244c03d60e013737d | e0fe36f0132b36ba9b1ca56aa10f888f66e9b2bf | refs/heads/master | 2016-09-09T22:37:57.509357 | 2014-04-09T13:26:01 | 2014-04-09T13:26:01 | 18,719,255 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 18,066 | cpp | asw_vgui_marine_ammo_report.cpp | #include "cbase.h"
#include "asw_vgui_marine_ammo_report.h"
#include "vgui/ISurface.h"
#include "vgui_controls/TextImage.h"
#include "vgui_controls/ImagePanel.h"
#include <vgui/IInput.h>
#include "c_asw_marine.h"
#include "asw_marine_profile.h"
#include "c_asw_player.h"
#include "asw_weapon_ammo_bag_shared.h"
... |
7c54b8595172ece3a3068e46e3c966ce2c13b456 | 626a6224cf3743db126570a8f6ee949208a7c910 | /src/base/file.hpp | 886fd15a1c14d3b454201d642c4f72d9af7d3a59 | [
"BSD-2-Clause"
] | permissive | depp/feleria | 5b97713ef039ec29ef7ebe1728085f1d4d9c33eb | ec16e5feff93fbf7153af8d7b8d9a5f1e7980863 | refs/heads/master | 2021-01-04T14:14:09.496966 | 2014-12-11T04:54:00 | 2014-12-11T04:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,703 | hpp | file.hpp | /* Copyright 2013-2014 Dietrich Epp.
This file is part of Legend of Feleria. Legend of Feleria is
licensed under the terms of the 2-clause BSD license. For more
information, see LICENSE.txt. */
#ifndef LD_BASE_FILE_HPP
#define LD_BASE_FILE_HPP
#include "sg/file.h"
#include <cstddef>
#include <string>
namespa... |
5cc7e1e40d35fb1ab6975e5a882de8451143e205 | dff49efd64b347c1baa49ae47b1b4c5e95ae515e | /populate.cpp | 3ba529f972a0dd07cc355de3d67a689aa68de412 | [] | no_license | jensenli049/uttt_cpp | f83421792c791aa36ca56763afaa68628690a0bc | b294cee861b48189d0a716c97dda1f205322b7d8 | refs/heads/master | 2022-11-11T20:01:00.540202 | 2020-06-29T23:40:10 | 2020-06-29T23:40:10 | 274,234,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | populate.cpp | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Title: Ultimate Tic Tac Toe
// Developer: Jensen Li
// Date: June 22, 2020
// Description: Populate Board Functions
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#include "ultimatetictactoe.h"
void Pop... |
90f61df7082ec15ebac77447ca083417ca2187b5 | a793de606d01c90cdb95138a93e9ec415215d8ab | /crawler.cpp | afe1013b3e4512de66152d1df2a3cb065dab9192 | [] | no_license | wanyaoqi/Cspider | e1dea20396f4564ec2a3b797a5e663857a927cb0 | 879fdfdbccfea4e4cced3c7e2716c246e8f8ebff | refs/heads/master | 2021-01-01T04:20:45.949144 | 2019-07-08T05:11:12 | 2019-07-08T05:11:12 | 58,104,361 | 7 | 3 | null | 2017-05-11T00:31:10 | 2016-05-05T04:31:42 | C++ | UTF-8 | C++ | false | false | 4,583 | cpp | crawler.cpp | #include "crawler.h"
#include "regex.h"
#include <sys/time.h>
static void * mymalloc()
{
}
char* itoa(int num,char*str,int radix)
{/*索引表*/
char index[]="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
unsigned unum;/*中间变量*/
int i=0,j,k;
/*确定unum的值*/
if(radix==10&&num<0)/*十进制负数*/
{
unum=(unsigned)-num;
str[i++]='-... |
6e15775a74a078fa7421027993bd9c4fc0af2e4a | 3e8bf4abea1ec76ffe7fc95aed58945e0193b850 | /CLIENT/build-Client-Desktop_Qt_5_7_0_MinGW_32bit-Debug/ui_MainWindow.h | 16d9c2fcb203cd84369db3bd4af7408e87c668c7 | [] | no_license | wwkkww1983/VideoChat | f25d1416964357ee5ff94c1d27c523c4827daeb1 | 1881a9530df7372603aa7e55e86ad8b2478f47a6 | refs/heads/master | 2021-06-06T08:53:53.888488 | 2016-11-19T07:08:27 | 2016-11-19T07:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,790 | h | ui_MainWindow.h | /********************************************************************************
** Form generated from reading UI file 'MainWindow.ui'
**
** Created by: Qt User Interface Compiler version 5.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********************************... |
3edce5582d2a8e68eba7cee1a630a933c2f87ec2 | cebaa6e49c995e0b309fe4e4f61b2439e1625826 | /sorting.cpp/Quick_sort.cpp | a8dcb41d9fb87f44f3dba6a53ae01e9a0d5c7392 | [] | no_license | shreya77077/CodingSimplified_GK | deb63b78cdd0758882564480a38d8b31d96192e2 | 0373d4e8a96a557feabee697b049e66fccbc0036 | refs/heads/main | 2023-08-31T23:09:10.941557 | 2021-11-03T06:12:18 | 2021-11-03T06:12:18 | 424,104,870 | 0 | 0 | null | 2021-11-03T05:42:20 | 2021-11-03T05:42:20 | null | UTF-8 | C++ | false | false | 1,350 | cpp | Quick_sort.cpp | //Time complexity in worst case=O(n^2)
//In Quick sort partition is depend on the position of pivot
//all element left side of pivot are smaller than pivot
//all element right side of pivot are greater than pivot
#include<iostream>
using namespace std;
void fill(int a[],int n)
{
cout<<"\n enter element in array : ... |
c0d95caf1aef430c87596856fab51d0ddc89a75e | 3c325be3820097a67c08d7048ca3552db71e446c | /codeforces/34A.cpp | aab05a7c1311e20f522faf2357080ca180ea9c98 | [] | no_license | M45UDrana/DS-Algo-Problem-Solving | 2dc2ba53f162675ddc6b549f0c84b702f738a485 | 5548d514f9ffff7aa618b29fcb8440a8b85afb8b | refs/heads/main | 2023-07-17T06:14:51.062413 | 2021-09-01T18:19:14 | 2021-09-01T18:19:14 | 375,086,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | 34A.cpp | #include <bits/stdc++.h>
using namespace std;
#define debugsssssssssss(a, b, c) cout << a << " " << b << " " << c << '\n'
const int N=3e5+5;
int main()
{
int n, mins = 1001;
cin >> n;
int ar[n];
cin >> ar[0];
pair <int, int> p;
for(int i = 1, temp; i < n; i++)
{
cin >> ar[i];
... |
b2c50b02084871e3f27a76be5b6f26183b129304 | 13e1aa52eb28b58cfb86271125529b541ddcae0f | /pile.cpp | 7216610393537b7af052f002af115ba19d347d6d | [] | no_license | Epharos/TP-Calculatrice | 725308a708e3af267c5e1c5c1ed362394b965315 | 87419973dad935749a47cea4782d0e8b3f25b903 | refs/heads/master | 2020-12-30T18:03:24.753290 | 2017-05-11T07:31:09 | 2017-05-11T07:31:09 | 90,949,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | cpp | pile.cpp | #include "pile.h"
#include "Element.h"
#include <cstdlib>
Pile::Pile()
{
last = NULL;
}
Pile::Pile(Element * e)
{
last = e;
}
Pile::~Pile()
{
delete last;
}
void Pile::empiler(int v)
{
if (Pleine())
{
cerr << "Pile Pleine !" << endl;
exit(2);
}
Element * e = new Elemen... |
8e1ea363fc375900a82c82f549f9e562fcffae89 | 16ee0e24d30db6143c79181d7c53fba1f7c8ecb0 | /explore/app/intercessor/unit/unit_test.cc | edc370ecf857a62cd3b4e6983e961288e39c7637 | [
"AFL-3.0",
"AFL-2.1",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ptr/complement | a9a7f1c47afe99a5a0a88423cd2788d6f5787920 | db9cc4ab698f22484b397c0a923e7c0339878793 | refs/heads/master | 2021-01-02T15:34:21.737342 | 2017-08-25T07:11:02 | 2017-08-25T07:11:02 | 57,914 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cc | unit_test.cc | // -*- C++ -*- Time-stamp: <07/03/07 16:38:24 ptr>
/*
*
* Copyright (c) 2007
* Petr Ovtchenkov
*
* Licensed under the Academic Free License version 3.0
*
*/
#include "intercessor_test_suite.h"
int main( int, char ** )
{
return intercessor_test_suite(0);
}
|
9b441424ea00fb5c645e69481a2dda7cc101b032 | a712314e1428e8f5ab7b2db076002afef9c4a7fa | /nyla/compiler.h | 7a0972a8f599dce9c7e22c453f3f2e942110ce7e | [] | no_license | JosephCRugh/nyla | 52004eff83912e5f06760853af133b04c53698ac | 40498a2b2873ef7c413ed7dc5d6b1e66beba1dc8 | refs/heads/main | 2023-08-19T11:18:18.899238 | 2021-09-18T00:43:04 | 2021-09-18T00:43:04 | 391,193,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,637 | h | compiler.h | #ifndef NYLA_COMPILER_H
#define NYLA_COMPILER_H
#include <string>
#include <unordered_map>
#include <llvm/IR/Module.h>
#include <llvm/Target/TargetMachine.h>
#include "sym_table.h"
#include "log.h"
#include "file_location.h"
namespace nyla {
extern llvm::LLVMContext* llvm_context;
struct avariable_decl;
enum c... |
380887f513971b9007123b896b95cad00c948911 | 81ed424b05260a70167c8293f71a00cc1496ee59 | /Include/EtoileScale.h | edeeb2816dc45e56e8586cb35d393cfdfb5b2dd9 | [] | no_license | aramadia/android-popsy-vip2 | 0422f8ae1f45bb9a706147724daa46233e3a53c0 | de62b2df311134e664b1457f7860b5159ed4769b | refs/heads/master | 2020-07-04T16:05:42.536084 | 2014-06-12T00:32:23 | 2014-06-12T00:33:29 | 4,014,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | h | EtoileScale.h | /*-------------------------------------------------------------------------+
| EtoileScale.h |
| |
| affiche l'objet ki se deforme en Scale Additif pour faire une sorte |
| ... |
45434c4d6d3f741f50d6b29b4176f1799f2975e1 | e378a1960146a6eb4aae130888dd0ae399af6f4c | /omnetpp-4.4.1/samples/onlyVanet1/src/veins/modules/messages/Mac80211Pkt_m.cc | 8c0a89673d32861e070349a4477d218fb8820ef3 | [] | no_license | the-elves/ITS | 4c6175c1c3415f5bc649587b64edbe67ebdcc916 | 6bd1a2f303444d04ae96d7c2b3b26cc30e8aa648 | refs/heads/master | 2020-04-04T02:54:20.444385 | 2015-08-28T08:03:29 | 2015-08-28T08:03:29 | 40,403,347 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,035 | cc | Mac80211Pkt_m.cc | //
// Generated file, do not edit! Created by opp_msgc 4.4 from src/veins/modules/messages/Mac80211Pkt.msg.
//
// Disable warnings about unused variables, empty switch stmts, etc:
#ifdef _MSC_VER
# pragma warning(disable:4101)
# pragma warning(disable:4065)
#endif
#include <iostream>
#include <sstream>
#include "Ma... |
84ba68dfc7cd15e87f5e51269813ecb95a57fd93 | 1ee90596d52554cb4ef51883c79093897f5279a0 | /Sisteme/[C++] Sistem Transmutare - Full Functional/01. Svn/Server/game/src/packet_info.cpp | 41b45bd8b866f3525efb10c1b45723b2a6ec1cb9 | [] | no_license | Reizonr1/metin2-adv | bf7ecb26352b13641cd69b982a48a6b20061979a | 5c2c096015ef3971a2f1121b54e33358d973c694 | refs/heads/master | 2022-04-05T20:50:38.176241 | 2020-03-03T18:20:58 | 2020-03-03T18:20:58 | 233,462,795 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | packet_info.cpp | // 1) Search:
Set(HEADER_CG_STATE_CHECKER, sizeof(BYTE), "ServerStateCheck", false);
// 2) After this make a new line and paste:
#ifdef __CHANGELOOK_SYSTEM__
Set(HEADER_CG_CL, sizeof(TPacketChangeLook), "ChangeLook", true);
#endif |
1bfdcbc30204546b51965178fa3302cd159bf65f | 6ae8dac71f401abe5393a26e82f5a9747ad4df0e | /ofxCvMarkers/lib/libdtouch/graphicimage.h | 1b246e35bfedf4760c356bc14b31f738ee877754 | [] | no_license | connectthefuture/ofxPrimes | 4565c2df0ded2b8315e08d7c98f4e29755fd19ca | 8acd84cdcb04ed9cdb2953ed9b1d573b4bb6e4bc | refs/heads/master | 2021-01-19T22:14:46.565208 | 2010-02-11T22:22:46 | 2010-02-11T22:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,500 | h | graphicimage.h | /***************************************************************************
graphicimage.h - description
-------------------
begin : Mon Aug 26 2002
copyright : (C) 2002 by Enrico Costanza
email : e.costanza@ieee.org... |
ce4cd274165287e2a9784634a955a859feab3cab | 5af8e52a46fb5566f5a3ab7f87b388493db5c9bc | /StudySheets/studysheet02.cpp | a22f960e6b006882498555d3044015c3b20411fe | [] | no_license | emcd123/CppScratchpad | 2bc73bd8f0855a1166cb48329398210f36729b93 | 145f251341048568080f625d7d6534d457a2c698 | refs/heads/master | 2021-01-12T00:40:03.461338 | 2018-10-22T14:49:14 | 2018-10-22T14:49:14 | 78,754,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | studysheet02.cpp | #include <iostream>
#include <math.h>
#include <string>
using std::string;
string convertBin(unsigned int x);
int main(){
unsigned int x;
std::cout << "Enter a number to convert: " << std::endl;
std::cin >> x;
std::cout << convertBin(x) << std::endl;
return 0;
}
string convertBin(unsigned int x){
string b... |
517ff5312f84c76764ed8064f6fce128540843c2 | 13739586a566a82b47b88f06a9ba7da61d9f167e | /HackerRank/Cutting Paper Squares.cpp | 8898745d43a957c85552baf87ad9c1ce306303ef | [] | no_license | sajalagrawal/BugFreeCodes | d712e5a46fa62319b66b00977a157e4c1758273f | c1930a68bdc50619daefea7f7088b506dd921e4c | refs/heads/master | 2023-01-20T19:13:08.736719 | 2023-01-15T14:38:27 | 2023-01-15T14:38:27 | 56,171,988 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | Cutting Paper Squares.cpp | //https://www.hackerrank.com/challenges/p1-paper-cutting/problem
//Author- Sajal Agrawal
//sajal.agrawal1997@gmail.com
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll max(ll a,ll b){
return a>b?a:b;
}
int main(){
ll m,n;
cin>>m>>n;
cout<<(m*n-1);
return 0;
}
|
4dd4acc255b0afc1656b2a8227caea067d30e67a | 3cf84ba09594cf9da6bed5f1362aeff413947802 | /iHypR/basic.h | ca0789d4ddd65dae814ec2203e97e52f4edeb5e9 | [] | no_license | mislam5285/prominence | 17332c3124ccfdccfba7a15f96eebe1cab458c9a | 506d35e40928d8079a12f54b0cd71cc48ede7a8a | refs/heads/master | 2020-05-09T19:09:45.059167 | 2013-06-27T21:32:04 | 2013-06-27T21:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,480 | h | basic.h | // -*- C++ -*-
/*
* File: basic.h
* Author: xiaohui
*
* Created on March 20, 2011, 2:48 PM
*/
#include <stdint.h>
#include <cstdlib>
#include <iostream>
#include <set>
#ifndef BASIC_H
#define BASIC_H
typedef struct {
uint32_t idx;
double val;
} Aux;
typedef struct _Entity_ {
// old and new val... |
e616b0819c70b9992bed40b49e7dd69123923dae | 1f9cdd83666d4a56d26858f834bce599ee62b00b | /wtl-version/shapes/abstractnode.cpp | 26e32c5e09453fe7f26569c62d019e749a588186 | [
"MIT"
] | permissive | sergey-shambir/iSpring_test_job | 9747d7023ecdacf14ce89b5d5fb9e38438d5e558 | 389211d9ff2e534582213721ee88659d3709a593 | refs/heads/master | 2021-01-10T04:56:20.753330 | 2016-01-30T16:17:46 | 2016-01-30T16:17:46 | 37,002,472 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | abstractnode.cpp | #include "stdafx.h"
#include "abstractnode.h"
static const int DEFAULT_MINIMAL_SIZE = 40;
const rectangle &AbstractNode::boundingRect() const
{
return m_boundingRect;
}
vec2 AbstractNode::minimalSize() const
{
return vec2(float(DEFAULT_MINIMAL_SIZE), float(DEFAULT_MINIMAL_SIZE));
}
void AbstractNode::resize... |
5ccab93208c7915f1567d6de3ca559eed38b69e5 | 70424c4d8c75465ae9df8038d21aee274b603973 | /observer/weatherdata.cpp | 3410446328537d86121fea8e1348f79aa763ee9e | [] | no_license | caifubing/study | 528ace369264cefc9adb516ff0d1d50338fe562c | 1e4042d4641fce12ecd7704be2411243f11b1054 | refs/heads/master | 2021-01-22T13:46:52.889859 | 2015-07-29T13:13:32 | 2015-07-29T13:13:32 | 35,789,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 963 | cpp | weatherdata.cpp | #include "weatherdata.h"
#include <memory>
using std::shared_ptr; using std::make_shared;
WeatherData::WeatherData()
{
}
WeatherData::~WeatherData()
{
}
void WeatherData::registerObserver(std::shared_ptr<Observer> inOb)
{
m_observers.push_back(inOb);
}
void WeatherData::removeObserver(std::shared_ptr<Obs... |
0a247f0d487244ec0fc6f60724449e30b42fc6bf | 605373af8d38179b1f3c1c25ecdbeeb57eb305ff | /lib/src/capabilities.cpp | e6d27209f28fb88a31af851ddb16982f323dbaeb | [
"Unlicense"
] | permissive | benuri/fuji-cam-wifi-tool | 266831331f1d9730e8674fba876089304b526368 | 6d76f81860c4b07559d5d190d6f5983914731cfc | refs/heads/master | 2021-06-19T23:45:33.303557 | 2017-07-07T17:46:33 | 2017-07-07T17:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | capabilities.cpp | #include "capabilities.hpp"
#include <stdio.h>
#include "log.hpp"
namespace fcwt {
std::string to_string(iso_level iso)
{
auto const lvl = iso.value;
char const* flag = "";
if (lvl & iso_flag_auto)
flag = " (auto)";
else if (lvl & iso_flag_emulated)
flag = " (emulated)";
return ... |
672a36ce83758eb8292dd6571c603fd1140801d3 | d3cfaa7be41b70205e027d718f5546723f59906d | /DataStructure/哈希表/整数Hash的应用2.cpp | ce1c8f00e25fdee8e5b178ed5d89a13a612de317 | [] | no_license | 15757170756/All-Code-I-Have-Done | 8836c11ad1648f06cb815ab76f3378cddc41ac63 | e8985935efa641e68b76c231dddaf6326e3f3f98 | refs/heads/master | 2022-12-12T10:01:26.132458 | 2021-09-02T13:34:00 | 2021-09-02T13:34:09 | 111,758,971 | 9 | 3 | null | 2022-12-07T23:30:17 | 2017-11-23T03:31:03 | Jupyter Notebook | UTF-8 | C++ | false | false | 863 | cpp | 整数Hash的应用2.cpp | /*
题意:给定一个包含N(N<=3000)个正整数的序列,
每个数不超过5000,对它们两两相加得到的N*(N-1)/2个和,求出其中前M大的数
(M<=1000)并按从大到小的顺序排列。
*/
#include <iostream>
#include <string.h>
#include <stdio.h>
using namespace std;
int a[3005], count[10005];
bool b[10005];
int main()
{
int i, j, m, n;
while (~scanf("%d%d", &n, &m))
{
for (i = 0; i < n; i++)
... |
226083837c54cbeea5538b2c3ba65a54b902f927 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/14_13871_50.cpp | edffbec82d3a60cbc9dd5c3ea11145fb515783b8 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,030 | cpp | 14_13871_50.cpp | import java.util.*;
public class Main {
public static void main(String args[]) {
(new Main()).solve();
}
void solve() {
Scanner cin = new Scanner(System.in);
int T = cin.nextInt();
for(int C=1; C<=T; ++C) {
int W = cin.nextInt();
int H = cin.nextInt();
bo... |
9d9f5aa50d184bddf2c919d562bae7d1375d3f17 | c15401f7a77a9f4cb207159cfe899dd09cdcbb2d | /devel/.private/fssim_common/include/fssim_common/TopicState.h | e0a3ace3bb510e36a557d63f2b859b0d2d387fc6 | [] | no_license | KarenBarsegyan/TravisCheck | 229cb95a79041fb294055d8713c0cadf3fcd4a3b | 00e5ef3d8e88844031be6834593fd1d6e87f6940 | refs/heads/master | 2020-09-22T00:51:37.392209 | 2019-12-03T15:21:19 | 2019-12-03T15:21:19 | 224,990,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,073 | h | TopicState.h | // Generated by gencpp from file fssim_common/TopicState.msg
// DO NOT EDIT!
#ifndef FSSIM_COMMON_MESSAGE_TOPICSTATE_H
#define FSSIM_COMMON_MESSAGE_TOPICSTATE_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include ... |
b0844b4708358a482d4418d8db54087394debfd5 | 02f81d3a3eb760ba11ce9e6b724e61956b6399fb | /include/rdge/gameobjects/input/keyboard_directional_input_handler.hpp | e81d472183193efc1114715013dd8492c4240d89 | [] | no_license | JoshBramlett/RDGE | 92a4b6d5959d2fbf4796794a699e95813d9f5271 | 06a804e9ec3ed952bf54e06793876739ee916451 | refs/heads/master | 2020-05-21T14:03:46.813342 | 2019-02-25T21:00:27 | 2019-02-25T21:00:27 | 54,094,384 | 0 | 0 | null | 2018-02-19T06:25:25 | 2016-03-17T06:31:48 | C++ | UTF-8 | C++ | false | false | 4,676 | hpp | keyboard_directional_input_handler.hpp | //! \headerfile <rdge/gameobjects/input/keyboard_directional_input_handler.hpp>
//! \author Josh Bramlett
//! \version 0.0.10
//! \date 03/17/2017
#pragma once
#include <rdge/core.hpp>
#include <rdge/events/event.hpp>
#include <rdge/gameobjects/input/ihandler.hpp>
#include <rdge/gameobjects/types.hpp>
#include <rdge/... |
f1162a307472932d6b2667ded1167123be5849d8 | a93f5a41959faa793f4f22c439ad4c1ea92668b8 | /AtCoder/abc_107/main_b.cpp | 8bc10fd7e997cfcadf9f6bf0c3a1e357d336a792 | [] | no_license | admiswalker/i-am-learning-coding | 08a473da773d0e2e67d44462c2d7dee83fa0adac | 9c0d152d313aae06affdf0823fd59a188705d8f8 | refs/heads/master | 2021-07-07T05:21:09.871137 | 2020-12-21T23:55:42 | 2020-12-21T23:55:42 | 218,574,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,622 | cpp | main_b.cpp | #include <bits/stdc++.h>
using namespace std;
typedef int64_t int64;
typedef uint32_t uint;
typedef uint64_t uint64;
bool isRowWhite(const vector<char>& vA){
for(uint i=0; i<vA.size(); ++i){
if( vA[i]!='.' ){ return false; }
}
return true;
}
vector<vector<char>> Tr(const vector<vector<char>>& vvA)... |
76504ef535f9985f2eb290ca1b8d93142b2c65cc | 75c885a57cc5f2c67f7d747c863fffd5637ab73e | /ESP-OTA/Youtube_GetSubs_OTAWeb/Youtube_GetSubs_OTAWeb.ino | 8e00d17fa92c706747f710313322bc275a114d70 | [
"CC0-1.0"
] | permissive | CurtisIreland/electronics | 86644362b287b909ba9c65bfe73f231c08f29145 | 812856919f0417f81dcd78389d3830ac1e36f947 | refs/heads/master | 2023-02-11T10:16:50.038353 | 2023-01-29T23:58:29 | 2023-01-29T23:58:29 | 41,007,934 | 26 | 40 | null | 2017-04-29T07:16:24 | 2015-08-19T02:06:40 | Arduino | UTF-8 | C++ | false | false | 9,428 | ino | Youtube_GetSubs_OTAWeb.ino | #include <Arduino.h>
#include <WiFi.h>
#include <Update.h>
#include <WebServer.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
int number = 0; //declear the variables
int first_digit = 0;
int second_digit = 0;
int third_digit = 0;
int fourth_digit = 0;
int timer_event = 0;
int CA_1 = 18;
int CA_2... |
55f6370db836aa5524f807dd0efec55dad9dc8c6 | dd6fee79066e2dfa74371bd82c87a563dc0c47fd | /contest/chengdu 07/F.cpp | 49c65acc1c06004a2d8d167e28a563a284f02650 | [] | no_license | mzry1992/workspace | 404c31df66a3b15a60dc0f07fff397bf50bcc1dc | 9a181419f0d7224e37baa729feaf3bb656544420 | refs/heads/master | 2021-01-19T12:39:17.854501 | 2012-12-24T11:13:22 | 2012-12-24T11:13:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,822 | cpp | F.cpp | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cstring>
using namespace std;
int dp[50][10][1<<10];
int a[50][9];
int n,m;
inline int getbit(int sta,int pos)
{
return (sta>>pos)&1;
}
inline int setbit(int sta,int pos,int val)
{
return ((sta>>(pos+1))<<(pos+1))|(val<<pos)|(sta&((1<<pos)-... |
739bb645fedf6d78a3c2c38d111d00616ff170ab | 56fe919cc075537a5a2d310e9a8c1cb0cee0f5bd | /nenequest/headers/player.hpp | 39b7a67ae88456bc084f0f9c881f0c8bf55fa3f0 | [
"MIT"
] | permissive | codingwatching/nene-quest | e89b2e3fd3a8627c2caf1b18135a07537de16931 | c3c8602d12ebdc25b667c195b7a454748027f3b6 | refs/heads/master | 2023-04-06T02:44:35.273202 | 2019-06-06T16:10:30 | 2019-06-06T16:10:30 | 411,963,234 | 2 | 0 | MIT | 2021-09-30T07:19:56 | 2021-09-30T07:19:55 | null | UTF-8 | C++ | false | false | 2,189 | hpp | player.hpp | #ifndef PLAYER_HPP_INCLUDED
#define PLAYER_HPP_INCLUDED
#include <SFML/Graphics.hpp>
#include <iostream>
#include "arrow.hpp"
#include "entity.hpp"
#include "itemWeapon.hpp"
#include "lifebar.hpp"
#include "weapon.hpp"
class Player : public Entity {
public:
Player(Weapon *weapon, sf::Vector2f position, bool s... |
5dd357b54dc67b236ec9cb588e9f88f240a1b682 | cbb7ba04ca8b72c88d9ef832812f65d3b1b9e239 | /Classes/MentalismScene.h | eb00bdf4f53f679262801fa564f67f3d6b8a81b6 | [] | no_license | Inallen/Mentalism | 1c25df702a0cb97f466e0f01400b0c5def719461 | 91708857e1db2f3068b9e515301eccf944d905c7 | refs/heads/master | 2021-01-10T16:29:35.875740 | 2016-01-13T16:12:24 | 2016-01-13T16:12:24 | 49,583,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 827 | h | MentalismScene.h | #ifndef __MENTALISM_SCENE_H__
#define __MENTALISM_SCENE_H__
#pragma once
#include "cocos2d.h"
USING_NS_CC;
class Mentalism : public Layer
{
private:
const static int SIZE = 4;
Size _size;
Vec2 _origin;
Sprite* _pokerOneSide;
Sprite* _pokerOtherSide;
Sprite* _lightSprite[SIZE];
Action* _action;
bool _hasTouche... |
95b1f9d8236190830177cb9685ace07c74af16d5 | 56818ed584b1d9baad03eaf62b91a96bbf6b2fcd | /source/SnAIk/API.cpp | 4b839a8a124ebf49ff171778ded0ece447490429 | [
"MIT"
] | permissive | mkulagowski/snAIk | 9f4fcd95e8c992622af7bab3fffc0e7e0af08a60 | 9a4d2a9cb4190b93952979a0c4e0670ac6a23869 | refs/heads/master | 2020-04-06T04:14:59.304683 | 2018-04-10T15:20:13 | 2018-04-10T15:20:13 | 82,981,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,356 | cpp | API.cpp | #include "API.hpp"
#include "FileSystem.hpp"
#include "GameManager.hpp"
#include <exception>
#include <fstream>
#define BOOST_PYTHON_STATIC_LIB
#include "boost\python\errors.hpp"
API& API::GetInstance()
{
static API instance;
return instance;
}
API::API()
: mIsMoveAvailable(false)
, mIsSnakeAvailable(... |
e485c641a871078d06f771d9ede15c51df0739f9 | 1c003ccbbba13ebb406e9701e938f7898d980741 | /StreamSearcher/src/InputArgumentsHandling/ArgumentProcessor.h | ab254f21c6f20c6234791aa8dc6c03d35bd157f9 | [] | no_license | bazsodombiandras/StreamSearcher | 66926cba33019a4126bfcf6464448371c38767af | ebf9fa92556f59e315468f77909c85493ff93f1d | refs/heads/master | 2023-04-29T14:42:05.435276 | 2021-05-18T08:51:27 | 2021-05-18T08:51:27 | 367,217,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | h | ArgumentProcessor.h | #pragma once
#include "../InputArgumentsHandling/InputArguments.h"
using namespace std;
namespace InputArgumentsHandling
{
/// <summary>
/// Utility class which handles interpreting the command line arguments and displaying usage instructions.
/// </summary>
class ArgumentProcessor
{
private:
/// <summary>
... |
1fdbab549f40e30a9f71d648b153bbc09fe9b908 | 7ceada5a9238097cba50d9c583ec5de84bb6458f | /src/ActionBallAim.h | bc389f8b5e22fe704504f7df7164cdd543056151 | [] | no_license | FRCTeamPhoenix/Phoenix2016 | bac7dfc2d1b084d4e1dfbcd61d836cae63b96097 | cfb1d0db15ebc4338ba44ce1b1cef3806a04c9e1 | refs/heads/master | 2021-01-18T22:54:45.424368 | 2016-03-23T23:33:58 | 2016-03-23T23:33:58 | 49,537,222 | 5 | 0 | null | 2016-03-23T23:33:58 | 2016-01-13T00:06:00 | C++ | UTF-8 | C++ | false | false | 221 | h | ActionBallAim.h | #pragma once
#include "Action.h"
class LoaderSense;
class ActionBallAim : public Action
{
public:
ActionBallAim(LoaderSense*);
void init(void);
bool execute(void);
private:
LoaderSense* m_loaderSense;
};
|
dfd895777832e35b1309757cb5effb5bb1b705d5 | d05ae603a4494f9aabde9e502956b35af2f05b40 | /EXCERCISE/test.cpp | 2f211474d2a87cf6cd04b6581d676ca4b3c48fc6 | [] | no_license | congdv/K-R-in-C-4-Chapter- | 6bc422d15837a8608b58da43539444f5456ff3e6 | 80782665e4d7d164939301c532c95e2384e942b9 | refs/heads/master | 2021-01-18T14:14:02.395300 | 2016-11-22T08:31:29 | 2016-11-22T08:31:29 | 31,428,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | test.cpp | #include <stdio.h>
#include <string.h>
#define MAXLINE 1000
int strindex(char s[], char t[]);
int getline(char s[], int lim);
char pattern[] = "hehe";
main()
{
char line[MAXLINE];
while((getline(line,MAXLINE)) > 0)
if (strindex(line,pattern) > 0)
printf("%d\n",strindex(line,pattern));
return 0;
}
int getlin... |
6851f4586d0c4a53a66fde95ed3c433e23ee9de9 | 4f08ef50370c68fc9f1ec24804d2b40acd1a4203 | /Modules/Engine_Prototype/Engine_Prototype/S3DMesh.h | f769740539d2924c275c9475b6c3e3ed24b1b587 | [] | no_license | Teamwork-2014NBCC/Cheryl | b25955ce204c6d8a8097a20cdb9d8455fbffbf1a | 7248a9b0bc46ae42c82bc04daa926ed582827b73 | refs/heads/master | 2021-01-22T09:27:28.879755 | 2014-12-11T16:08:55 | 2014-12-11T16:08:55 | 26,588,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,045 | h | S3DMesh.h | #ifndef _S3DMESH_H_
#define _S3DMESH_H_
#include <blit3d/Blit3D.h>
#include <string>
#include <fstream>
#include <stdio.h>
#include <conio.h>
#include <atomic>
#include "texture_mgr.h"
//#include "file_mgr.h"
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
extern GLFWwindow* window;
//GLOBAL DATA
//glm::mat4 model... |
45a53db304c605cfcd9db14a2d5c3a7f443853b9 | 5a6ccde5f37cc86b6fc0812b2bf40f42eab23906 | /B-set/421B.Start Up.cpp | d608563d1d9dde43738319fdaf2718fa4db98a0f | [] | no_license | Waqar-107/Codeforces | 23f2b1edffb85f6f020107f03e09a455d3e6e792 | f0d2f25aa6a09c06083b82c39cdf3288ec2eecba | refs/heads/master | 2023-03-09T07:55:46.583363 | 2023-03-04T09:57:44 | 2023-03-04T09:57:44 | 82,915,896 | 196 | 138 | null | 2023-02-11T22:06:20 | 2017-02-23T10:29:34 | C++ | UTF-8 | C++ | false | false | 780 | cpp | 421B.Start Up.cpp | /*****from dust i have come, dust i will be*****/
#include<bits/stdc++.h>
typedef long long int ll;
#define pp pair<ll,ll>
#define dbg printf("in");
#define NL printf("\n");
#define inf 1000000000000
#define max2(a,b) ((a<b)?b:a)
#define max3(a,b,c) max2(max2(a,b),c)
#define min2(a,b) ((a>b)?b:a)
#define min3(a,b,c... |
10e539c6bb719a429fb38559f6785a75ef89acaa | 21a2e80e423a181ae673e03bb3ec6bc403a5f6bc | /own_vector/include/Camera.h | 17e14e0e6865dd30c4a52386e1e39802eaa32b08 | [] | no_license | carlosemv/raytracer | 519a179ef748f6af7e7be1c0a34f6f45e98684d8 | b9ee4e2fc193b41e457375115d7912319823c76c | refs/heads/master | 2021-05-06T02:35:21.867000 | 2019-03-19T01:07:50 | 2019-03-19T01:07:50 | 114,570,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | Camera.h | #ifndef __CAMERA_H__
#define __CAMERA_H__
#include "Ray.h"
class Camera {
public:
Vec3 origin;
Vec3 lower_left_corner;
Vec3 horizontal, vertical;
Camera() : origin(Vec3(0.0, 0.0, 0.0)),
lower_left_corner(Vec3(-2.0, -1.0, -1.0)),
horizontal(Vec3(4.0, 0.0, 0.0)),
vertical(Vec3(0.0, 2.0, 0.0)) {}
Ray get_ray... |
dcececce96ab5808bed4dda9791dd2e2291b6cfc | 5f7c17791eb114cc770351411a366f2d092a5be4 | /phxqueue_phxrpc/app/scheduler/scheduler_server_config.cpp | bb6b304d4d3546b0bac5d58db67fdf37af00a53d | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | habbyge/phxqueue | 09cfba0024e14184c0627c4071636bd92055a38d | 0610ff6880c812e6f40d4e283d5b6574e13b7d86 | refs/heads/master | 2023-02-15T03:01:10.030097 | 2021-01-11T03:06:31 | 2021-01-11T03:06:31 | 296,243,330 | 1 | 0 | NOASSERTION | 2020-09-17T06:50:27 | 2020-09-17T06:50:26 | null | UTF-8 | C++ | false | false | 1,868 | cpp | scheduler_server_config.cpp | /*
Tencent is pleased to support the open source community by making PhxQueue available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice... |
d078e5bcd1029d82656c4db6d26a901648e7db7a | 6a4d287c4ef8fbef960c37bfaca135f0f3278f7a | /leetcode/main.cpp | 5143cadfeaaa4732766a26140adedeeb7de31f5c | [] | no_license | harryhare/leetcode | df9c93b5caee4d5697f7fc6b50c48a9b01aafd52 | 03f21ceaf3ec0bfb67d30371e31b8dcd865741f8 | refs/heads/master | 2023-06-08T14:10:47.462552 | 2023-05-28T05:27:46 | 2023-05-28T05:27:46 | 100,129,079 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,597 | cpp | main.cpp | #include<iostream>
#include"0030.h"
using namespace std;
class Base
{
virtual void fun()
{
cout<<"Base::fun()"<<endl;
}
virtual void fun1()
{
cout<<"Base::fun1()"<<endl;
}
};
class Base2
{
virtual void fun2()
{
cout<<"Base2::fun2()"<<endl;
}
};
class Derived:public Base
{
virtual void fun1()
{
cout<... |
cdc760b19540cb3b3b76eb76ded5780b77786a59 | 82b038518388095f587b234e8def41156089b39c | /Gen2_Platforms/Arduino/Gen2_Arduino/Gen2_Arduino.ino | cba25c96e410535e01029cdc911c37cca07f5dd7 | [] | no_license | BowenY/Gesture_Robot | 0b99a0c314e14325e32d4662ea93ed29e94d30cc | 212f592d9b970cb6f65f432ea1a24b96242c5d46 | refs/heads/master | 2021-01-09T05:53:45.856581 | 2017-04-07T21:17:08 | 2017-04-07T21:17:08 | 80,860,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,740 | ino | Gen2_Arduino.ino | //ROS includes
#include <ros.h>
#include <std_msgs/Int16.h>
#include <std_msgs/Float32.h>
#include <ros/time.h>
#include <sensor_msgs/Range.h>
//Gen2 Includes
#include <gen2_motor.h>
#include <gen2_encoder.h>
//Define Pin Connection for Encoders.
const int encoderLeft_CH1 = 19; //<-left motor interrupt
const int enco... |
052de4a51e20d801b4a6fde0fdf4925de78aad08 | 02a1927e6217b1adbce679b7d4860d72b984e7eb | /src/Main/UnitTestDriver.cpp | f0b879e6b83effc2b628e9b04ae2e5a8f6716c09 | [
"BSD-2-Clause"
] | permissive | quinoacomputing/quinoa | 04cf93d88ea4b8acd4389ee8d477c7ee8247aab5 | 37ed7874a651adf5245b935271380e109ea1d0f6 | refs/heads/develop | 2023-09-01T02:38:29.797550 | 2023-08-31T18:53:02 | 2023-08-31T18:53:02 | 38,454,430 | 103 | 21 | NOASSERTION | 2023-09-14T17:46:24 | 2015-07-02T20:06:30 | C++ | UTF-8 | C++ | false | false | 1,965 | cpp | UnitTestDriver.cpp | // *****************************************************************************
/*!
\file src/Main/UnitTestDriver.cpp
\copyright 2012-2015 J. Bakosi,
2016-2018 Los Alamos National Security, LLC.,
2019-2021 Triad National Security, LLC.
All rights reserved. See the LICENS... |
f80443159cbcc36d7a3a5719236f82b00d0b29f1 | dc23d13dbe3415ab95e01ab9828a6c0e8e24bfa5 | /include/drivers/motor.h | b87052a508156b74a008d3bc88b52252ccc14d29 | [
"MIT"
] | permissive | rubenwo/FlightController | e79f6c81cf1b3f2a157570025308ebb226bae6dc | 5882fe066d831bed0d4401c7b16aef4184350b80 | refs/heads/master | 2021-04-16T19:32:44.065746 | 2020-09-06T21:24:55 | 2020-09-06T21:24:55 | 249,380,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | h | motor.h | #pragma once
#include <Arduino.h>
#include <ESP32Servo.h>
class Motor
{
private:
Servo ESC;
int current_speed;
public:
Motor() {}
Motor(const uint pin)
{
ESC.attach(pin, 1000, 2000);
}
~Motor() {}
void init()
{
ESC.write(2000); //Set new high
delay(5000);
... |
bbec93805ca64d4956ec9652671274ff79ded97b | a6205d92ce9e063d6ee185e5f39ced26e3c3d3d2 | /todo/tuts/masm64/Include/aaaamon.inc | 56d38a2674295fe9eaadfe12d6f6ea80a6522adb | [] | no_license | wyrover/masm32-package-vs2015 | 9cd3bbcd1aaeb79fc33d924f1f1fdb4ed0f6eb26 | 855707ef7b9e9cbc6dc69bd24a635014c61fcfed | refs/heads/master | 2020-12-30T22:31:42.391236 | 2016-05-24T17:22:27 | 2016-05-24T17:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82 | inc | aaaamon.inc | extern __imp_InitHelperDll:PANYARGS
InitHelperDll TEXTEQU <__imp_InitHelperDll>
|
768348844d54497d67803f671b8b46081ffe59aa | 3a4815804d9f3fe69eee7456cc7a1dd469f58d90 | /Decorator/Linker/Linker.h | 912ed91fc4bd1b73cec5df6a2853425f551d0a6d | [] | no_license | PressSergo/C-example | f523496c8c384bac653a1e3106dd82f37427d664 | 3014b9e014f5e6b4e93bb1ebe150abdc708fc7f3 | refs/heads/master | 2020-04-04T04:57:07.396580 | 2019-07-10T09:52:02 | 2019-07-10T09:52:02 | 155,731,135 | 0 | 1 | null | 2019-07-10T09:52:03 | 2018-11-01T14:53:40 | C++ | UTF-8 | C++ | false | false | 376 | h | Linker.h | //
// Created by Сергей on 08.10.17.
//
#ifndef DECORATOR_LINKER_H
#define DECORATOR_LINKER_H
#include <string>
class Linker {
public:
std::string as = "";
virtual std::string GetDescription(){return as;}
virtual double cost() =0;
};
class Espresso : public Linker {
public:
Espresso();
double ... |
85bd65ce69d3dd7078c2b17d88aa3651a6cdd962 | d7d7ec56650ed80b2b317b2b13dd0f3e2060540e | /Dialog.h | 60921450261518a3b49e6260535262963a1eab63 | [] | no_license | cgy1992/win-ui-minus | e9cb2a5ef77be1012d3ca62e0dbac46f9ce0b857 | 627e4ba2c2e49ecf9b199d0d4ff4eb9375f8328f | refs/heads/master | 2021-12-28T09:17:57.682967 | 2012-11-19T14:41:10 | 2012-11-19T14:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,581 | h | Dialog.h | /*
* Copyright (c) 2006-2007, Andry Korolyuk
* 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,
* ... |
184d58dc50b9c7c9fc006e59a7f145651ef5ed94 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest3/0.143/turbulenceProperties.L | 2daebd5be657b286301a801919f013fa38a39903 | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175,157 | l | turbulenceProperties.L | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... |
71f97c29100ddc4f6c45a49cd0773c1bcfcc5f07 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /trro/include/tencentcloud/trro/v20220325/model/DescribeSessionStatisticsResponse.h | 4b5c7b132bc2245acccf0892aa3ffb59411689d3 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 5,312 | h | DescribeSessionStatisticsResponse.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
e40b434732f225eec301bb91c00fde08fecdeedb | c08c075a0d3ecba5d2046c793d2ba39f1c0cf17d | /src/TriggerSwitchTask.cpp | bd20429f2b372906dce6b91aa11e945b215abc49 | [
"MIT"
] | permissive | skyzh/CAHRR | dec5cf10f3a205f86ca34330075d18989477416f | ab24d3e437962caf7e545dac135fafa7537c40b0 | refs/heads/master | 2020-04-02T18:13:03.270174 | 2018-11-29T01:27:01 | 2018-11-29T01:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | TriggerSwitchTask.cpp | //
// Created by Alex Chi on 2018/11/11.
//
#include "TriggerSwitchTask.h"
TriggerSwitchTask::TriggerSwitchTask(Task *task1, Task *task2) : SwitchTask(task1, task2), lst_triggered(false) {
}
bool TriggerSwitchTask::initialize() {
this->lst_triggered = false;
return SwitchTask::initialize(false);
}
bool Tri... |
555117462af23bf25c7ff9a72825adb669b06745 | 17ada0cbe69350a983583748082645af4fb8b6ef | /WEEKLYCODE#1/mini_max_sum/C++/mini_max_sum.cpp | e52013a3f761c3866fa3bf8ecd9d9b3aedd2d676 | [] | no_license | darpanpal7/weeklycode | f7801a7858b0c9d7b006835a00c5026dac69b73a | 30b25725bc1a3028910140ac01c62529287eb721 | refs/heads/master | 2020-07-31T22:48:14.577180 | 2019-10-18T18:23:10 | 2019-10-18T18:23:10 | 210,777,784 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | mini_max_sum.cpp | #include <iostream>
using namespace std;
int i,j;
//just a swap function
void swap(int *a,int *b){
int t=*a;
*a=*b;
*b=t;
}
//bubble sort function
void bubblesort(int *ar,int n){
for(i=0;i<n-1;i++)
for(j=0;j<n-1-i;j++)
if(ar[j]>ar[j+1])
swap(&ar[j],&... |
7d1e0c7de7e53fa7fb766f5d47118c2122b5e742 | 4a5a46a4e3b3e125687d25e0b3071de4aa4e7a14 | /lab7/iterable/Iterable.cpp | e8c278623217a9d1cffa1126c4d0e4d9c7d640c8 | [] | no_license | lukaszklusk/jimp | 0c0a7cfce721d3f6af51e2e940fee99bca341979 | 156162c575d209a5b64ac5d2e60c839a7a1c9953 | refs/heads/master | 2021-01-25T13:36:26.177591 | 2018-06-12T21:16:26 | 2018-06-12T21:16:26 | 123,595,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,429 | cpp | Iterable.cpp | //
// Created by kluch on 28.04.18.
//
#include "Iterable.h"
bool utility::ZipperIterator::NotEquals(const std::unique_ptr<utility::IterableIterator>&other) const {
const ZipperIterator *other2 = dynamic_cast<const ZipperIterator *>(other.get());
return !(l1_ == other2->l1_ && r1_ == other2->r1_ && l2_ == ot... |
4371969bcf1eca9199be324c4b80886da470d627 | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/code-jam/files/5314486_tomlau_5715646612504576_0_extracted_C.cpp | 56d298f267cfc2518f6c61e708d5432925436c23 | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 3,102 | cpp | 5314486_tomlau_5715646612504576_0_extracted_C.cpp | #include <bits/stdc++.h>
using namespace std;
int T, R, C, r, c;
void light(vector <string> &M)
{
for (int r = 0; r < R; r++)
for (int c = 0; c < C; c++)
if (M[r][c] == '-') {
int cc = c - 1;
while (cc >= 0 && (M[r][cc] == ' ' || M[r][cc] == '.')) M[r][cc--] = '.';
cc = c + 1;
while... |
877e2fa4362fdcd9b1481b7bac47af045f09224e | 6037f0914ebad2278f701ba7dfd40ac054194496 | /PhyzixEngine2D/PhysicsScene.h | 9679b06ecf60c3f89832f3dea8e22708b436a4b1 | [] | no_license | MaapleWaafles/PhysicsEngine2D | cd9d6e3cdd525d0d718a3b54f4657dd751e897a7 | 2c62cbccbc9e4fcc353c4d96fa611c6fde02a446 | refs/heads/master | 2022-03-21T18:01:21.691657 | 2019-11-27T04:21:31 | 2019-11-27T04:21:31 | 184,532,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,836 | h | PhysicsScene.h | #pragma once
#include <vector>
#include "PhysicsObject.h"
using std::vector;
class PhysicsScene {
public:
PhysicsScene();
~PhysicsScene();
//Adds a Physics Object as an Actor
void addActor(PhysicsObject* actor);
//Removes a Actor from the Container
bool removeActor(PhysicsObject* actor);
//Updates the items e... |
792d497d22ad80daf941f9545407ee13e532fa88 | 8a082af02614176dd90d32e8c744a87ef5b7e42c | /src/yarrar/io/FileSystem_android.cpp | f6b713cea2f0c33f220820bfe28818761bdc2f14 | [
"MIT"
] | permissive | TommyTeaVee/yarrar | 3cda6e643e4eda5bd5a69f52e14f06d787b8d89c | 1480aa3570433da57efa0ea412cbe62c9da0cd0a | refs/heads/master | 2021-10-22T05:54:02.599634 | 2016-05-08T20:33:23 | 2016-05-08T20:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | cpp | FileSystem_android.cpp | #include "FileSystem.h"
#include "android/AndroidServices.h"
#include <stdexcept>
#include <fstream>
#include <sstream>
namespace
{
class AndroidFile
{
public:
AndroidFile(const std::string& path)
: m_path(path)
, m_file(nullptr)
{
m_file = AAssetManager_open(yarrar::android::getAsset... |
577229c8187a8bf47ecaea4c83abbeb51c134fe6 | c6f6e99b6b69b1fc6d274a6449d71a69c38e72be | /include/it8951_dev_usb.h | f0acbab2c388e6b87eb5132887752d0f5622be24 | [] | no_license | samuelsky8/epd | 749ed4893bc7c544c028539e43c802d3160e511a | c29120fa0e84dc35e2865dceefcea285b287d053 | refs/heads/master | 2022-11-26T05:23:50.148029 | 2020-07-24T08:09:16 | 2020-07-24T08:09:16 | 282,144,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,428 | h | it8951_dev_usb.h | #include <stdint.h>
// The maximum transfer size of 60K bytes for IT8951 USB
#define SPT_BUF_SIZE (60*1024)
#define IT8951_USB_OP_GET_SYS 0x80
#define IT8951_USB_OP_WRITE_REG 0x84
#define IT8951_USB_OP_DPY_AREA 0x94
#define IT8951_USB_OP_LD_IMG_AREA 0xA2
#define IT8951_USB_OP_PMIC_CTRL 0xA3
... |
06e551bf6982d7d6db089c6613c960cd253558fa | 7a23041b05011fe6e5e506af867b3a2320cfc7bc | /app/Geometry/Utility.hpp | 1d3a1a55b258ddbf25860338ae4721e910eedd00 | [
"MIT"
] | permissive | mraggi/Graph | 340bd6126331dd45da2e68159fd6b01f4e84df62 | 4d7ee5e285ae1e800b96ed91d054d58fab915726 | refs/heads/master | 2021-05-08T22:53:14.166062 | 2021-01-24T15:37:09 | 2021-01-24T15:37:09 | 119,692,743 | 7 | 10 | MIT | 2020-01-15T20:52:14 | 2018-01-31T13:45:39 | C++ | UTF-8 | C++ | false | false | 743 | hpp | Utility.hpp | #pragma once
#include <cmath>
#include <iostream>
#include <random>
#include <vector>
using real = double;
const double pi = 3.1415926535897932384626433832795028841971694;
inline real RadiansToDegrees(real angle) { return angle*180/pi; }
// Returns an angle that is between -pi and pi.
inline real MakeValidAngle(rea... |
40f8244e0abaa3146845578874cb615813da504c | 97e56fb95911f02b1e8184d6b8133219d0453b2c | /main.cpp | e9e4ca5c53a73df19f94b29d23cacd90b44745fe | [] | no_license | hayoungdaddy/KGminer_QT | b481c930644666c0792bf412f4953df5dc1afbb4 | 8268a1438592c71e42a79c0350b24a6c44eda848 | refs/heads/master | 2021-01-17T14:51:22.032932 | 2016-07-01T06:41:05 | 2016-07-01T06:41:05 | 50,976,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | main.cpp | #include <QApplication>
#include <QLockFile>
#include <QDir>
#include <QMessageBox>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QString tmpDir = QDir::tempPath();
QLockFile lockFile(tmpDir + "/KGminer.lock");
if(!lockFile.tryLock(100))
{
QMessage... |
4a9071840d0e7b3af47fb1b0506f191620017eed | bb767f6a07340c0c313c79587ea6c96ce5e17f33 | /src/coref.cpp | 67ba908864fd2c120338dd34cf8e3a07a85d4672 | [] | no_license | psychobas/corpustools | 82694086aa0b3d861e38624a5cf17a53ce61e23e | e9c1ac2011234a62b2fc2c7b46ab01dd9159e4ac | refs/heads/master | 2023-05-04T01:35:30.735603 | 2021-05-25T10:41:30 | 2021-05-25T10:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,748 | cpp | coref.cpp | #include <Rcpp.h>
#include <math.h>
using namespace Rcpp;
// [[Rcpp::plugins(cpp11)]]
// [[Rcpp::export]]
NumericVector group_coref_ids(NumericVector x, NumericVector y, int n) {
NumericVector out;
out = Rcpp::Range(1,n);
for (int i = 0; i < x.size(); i++) {
if (x[i] > y[i])
out[x[i]] = out[y[i]]; ... |
c01a33ca76ff042dc45917283e466550821023ce | bc473d7252058dd96d069663d5c86831a1301df3 | /CameraManager/CameraServer.h | f16ecd05e908c1f8d2001a4f0719ad0521efcdf9 | [] | no_license | mike-kang/winsock_tcpserver | 47f4933b18ede0674f75d613ddcccbff3c85a2ef | 78659cd5e76663e6f664753b4d17292ca42bd249 | refs/heads/master | 2021-01-20T01:10:05.793966 | 2017-08-24T07:14:01 | 2017-08-24T07:14:01 | 101,281,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,706 | h | CameraServer.h | #pragma once
#include "TcpServer.h"
#define _STX_ 0x38
#define _ETX_ 0x45
typedef enum tagQDIS_COMMAND
{
QDIS_REQ_CAPTURE = 0x11,
QDIS_FIN_CAPTURE = 0x12,
} QDIS_COMMAND;
typedef struct tagCAPTURE_REQUEST
{
unsigned char STX;
unsigned char Command;
unsigned short Year;
unsigned short Month;
unsi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.