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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36e136f6e1dbf7778446d63377301b04a612daa2 | d1d19bedbb2b92faf97a1a912ca189edd7f41916 | /GPUFilterCore/OpenGLCore/GPUFilterCamera.h | 17b611de46b38fef840a631955a462d1f81c8428 | [
"MIT"
] | permissive | douzhongqiang/GPUFilterEngine | 0eccd54e5ebdca2124facc90fe7f84006755fedb | 8b4a8595440331a0a2ace6cd91db24785a7a8350 | refs/heads/main | 2023-08-14T10:00:19.300152 | 2021-09-27T11:48:10 | 2021-09-27T11:48:26 | 362,427,072 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,191 | h | GPUFilterCamera.h | #ifndef GPUFILTERCAMERA_H
#define GPUFILTERCAMERA_H
#include <QObject>
#include <QOpenGLFunctions_2_0>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLFunctions>
#include <QVector3D>
#include <QKeyEvent>
#include <QMouseEvent>
#include <QWheelEvent>
#include <QMatrix4x4>
#include "GPUFilterCore_global.h"
class ... |
07156a7829211146ee50a7588dd6d5c0ea22edff | 032064ca629aa84e6ef831e707da7adae5a3c2a0 | /backjoon/dp/2193.cpp | 51b96066e4fc82041e50cce2bd1c985ab9b25af5 | [] | no_license | skfo763/Problem_Solving | 6a53fbb2fa2a575e10401460638231bebb109057 | cdad27b493e941d7938f29baf88ceaae4cbffb87 | refs/heads/master | 2021-08-07T05:29:09.968394 | 2021-07-12T02:37:30 | 2021-07-12T02:37:30 | 205,546,650 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | 2193.cpp | #include <cstdio>
#include <stdlib.h>
int dp[100][2];
int main(void) {
int i, x;
scanf("%d", &x);
dp[1][0] = 0;
dp[1][1] = 1;
for(i=2; i<=x; i++) {
dp[i][0] = dp[i-1][1] + dp[i-1][0];
dp[i][1] = dp[i-1][0];
}
printf("%d\n", dp[x][0] + dp[x][1]);
return 0;
}
|
24ae3e3df5d882475062e40697e722e21d79a445 | 19eadc134e64ddbe943e61f9d811294a8268215e | /homework 1/C/Student.h | 9333be9437091188d2f938192e4fd3957dfc6f83 | [] | no_license | humuyan/Foundation-of-Object-Oriented-Programming | a54c6dac6f7af5d8801015f3b909f265bdccc587 | a783baa213d46720caba9c323dade5af7e125ee7 | refs/heads/master | 2022-12-10T20:31:35.424136 | 2020-08-23T08:27:26 | 2020-08-23T08:27:26 | 278,371,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | h | Student.h | #pragma once
#include <bits/stdc++.h>
using namespace std;
class Student {
private:
string name;
int presentTimes, absentTimes;
public:
Student(string);
Student(string, int, int);
string getName();
int getPresentTimes();
int getAbsentTimes();
};
|
cd7fc4c048b99a269417f509abb3d6cecb7ec1c7 | 23b535fd8bb8154fff6f1eb3cd7ebdf038fbb265 | /libdan2/herramientas/controlador_fps_sdl/controlador_fps_sdl.cpp | 90e9aaa89bbf6f9db6ad08ba297b4fd5d44329b1 | [
"Unlicense"
] | permissive | TheMarlboroMan/platformer-astronaut | 2233d96ce0da3e63f5041789dafb2007641ddaec | 3c3b66cc2dfc6c6643219d0be405a6b81c0a256b | refs/heads/master | 2022-10-02T20:47:02.028286 | 2022-09-13T08:27:37 | 2022-09-13T08:27:37 | 119,827,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,183 | cpp | controlador_fps_sdl.cpp | #include "controlador_fps_sdl.h"
using namespace DLibH;
Controlador_fps_SDL::Controlador_fps_SDL(unsigned int p_f):
aplicar(true),
ticks_cuenta(0),
ticks_fin(0),
ticks_inicio(0),
dif(0),
frames_contados(0),
frames_contados_interno(0),
duracion_frame(0),
frames_deseados(p_f),
delta(0),
acumulador_del... |
321fde99a2d6793722ded374b9efe120ad0b4dd4 | ee0c18bcbb35a48cce68d0651e6cd3463ab86446 | /Particle Firmware/src/PailSensor.cpp | 53a457a3030ed3a6804a021c70a1be22298427d6 | [] | no_license | bveenema/MixController | 428871d15ea44defc4d3ae9938f48209c29b6490 | 2c326abb021ec481fbc9597a7f1983aaf7998864 | refs/heads/master | 2021-04-26T22:16:06.235119 | 2019-02-12T09:25:16 | 2019-02-12T09:25:16 | 124,057,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | PailSensor.cpp | #include "PailSensor.h"
pailSensor PailSensor;
pailSensor::pailSensor(){}
void pailSensor::init(){
pinMode(PAIL_SNS_PIN, INPUT);
}
void pailSensor::update(){
// Take readings, reset index and make valid if reading.values is full
readings.values[readings.index++] = this->readSensor();
if(readings.index > read... |
0f35100ab95064e953116fbeebfd8ed6e2a89e38 | 43ed832344a737852405a32f989dee86750945c1 | /main.cpp | f0e8408c9b0b01e6f7e3f047b23ab7e22aca7324 | [] | no_license | JerrinWiley/server-threading | 113ff858e03bd065f4d7582d08a88ace2327bde1 | 02d2555ed29154aba02805f60fa2638a7609115a | refs/heads/main | 2023-01-09T06:12:39.378416 | 2020-11-14T06:08:07 | 2020-11-14T06:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,348 | cpp | main.cpp | // Please note this is a C program
// It compiles without warnings with gcc
/*The socket templates and fireman function are from professor Rincon source code.
The toBinary() function is from geeksforgeeks*/
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <... |
af134d9a2fc9269b2b06b825c2cc66502e777659 | e1575271bb5a30f435c6b74fcea21c2599a72e62 | /source/SpaceStation.h | cc183270ba6429843beeaad193b07755b789a774 | [] | no_license | EmileSonneveld/SpaceGame | c1f2253d949c352a02dab1a9fdc0bc4e71772608 | c6951a1048d39d28610d491cb10f2b12d4169c02 | refs/heads/master | 2020-06-02T15:46:16.705721 | 2014-10-25T21:52:19 | 2014-10-25T21:52:19 | 14,400,076 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | SpaceStation.h | #pragma once
#include "entityBase.h"
class b2Body;
struct b2Vec2;
class RenderTarget;
#include <Box2D/Box2D.h>
//#include <SFML/Graphics/RenderStates.hpp>
#include <SFML/Graphics.hpp>
class SpaceStation : public entityBase
{
public:
SpaceStation(sf::Vector2f pos);
virtual ~SpaceStation();
virtual void Initializ... |
49c6ee85654d1cc1ffd6e88ae4e785e642a3dc6f | 7cb0b81018c98dae6845cb84ecadaaeea77a8c6d | /CrackingTheCodingInterview/binaryMinimum.cpp | 3204b9eab102b9bbaede38ab06b232be16e5f770 | [] | no_license | canalesb93/ProblemLibrary | c6cefc408924c1aa807a2ae931176a7ecd040ee7 | 4e0bd5b59089edd700b6292ec5ab2a9bf11a19ea | refs/heads/master | 2021-05-16T02:12:23.984757 | 2017-06-03T02:09:01 | 2017-06-03T02:09:01 | 30,946,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | binaryMinimum.cpp | /*
5
3 4 5 1 2
*/
#include <iostream>
#include <cmath>
using namespace std;
// Binary Search Algorithm for minimum broken array
// Requires sorted array
//
int n;
int arr[] = {};
int binarySearch(int start, int end){
int half;
if (start >= end){
return start;
}
else{
half = (start + end... |
1409764a096af2a9ed100b672d9676b924eab2e2 | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /blimp/net/engine_connection_manager_unittest.cc | 700231ad3d985787f0a950846b5fa690eb0a4682 | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | C++ | false | false | 2,787 | cc | engine_connection_manager_unittest.cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "blimp/net/engine_connection_manager.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/callback_helpers.h"
#include "... |
6d23747ba1235d700fa0fefe7804f039f57c328f | 68504fa549b51877e7455939780b25d723dd85c2 | /util/makeFlatNtuples.cxx | 1670cfa2f5802b644e5d68d4eb65115b54167f41 | [] | no_license | alexarmstrongvi/AlexAnalysisPackage | 387fd20cea5b682907e8d1e7cb91e551b14ce525 | 8c91884d4877adb27cedf02dc18ce8f828d36ebf | refs/heads/master | 2021-04-28T02:27:26.844711 | 2018-08-14T14:59:31 | 2018-08-14T14:59:31 | 122,113,744 | 0 | 0 | null | 2018-02-19T22:09:31 | 2018-02-19T20:01:11 | Python | UTF-8 | C++ | false | false | 99,000 | cxx | makeFlatNtuples.cxx | ////////////////////////////////////////////////////////////////////////////////
/// Copyright (c) <2018> by Alex Armstrong with much code borrowed from
/// Aleattin Mete (Alaettin.Serhan.Mete@cern.ch)
///
/// @file makeFlatNtuple.cxx
/// @author Alex Armstrong <alarmstr@cern.ch>
/// @date <May 27th, 2018>
/// @bri... |
bf445e628f2f9968ba66847c5d857a1ad00f4077 | 2e60513923b1a5c527439f824aae68bd22761503 | /src/utils/matcher.cpp | 96b4440eb37d4b0d02cc1ea47404e2431a381a1f | [] | no_license | cogsys-tuebingen/cslibs_vision | 3823e64a9d4cbaedc7666ba59980c6f146dab3c4 | 36c24b2726282dda11eaef63d6b7f471f87076bc | refs/heads/master | 2021-07-23T08:38:03.593674 | 2021-02-14T19:29:30 | 2021-02-14T19:29:30 | 65,333,208 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,162 | cpp | matcher.cpp | /// HEADER
#include <cslibs_vision/utils/matcher.h>
/// PROJECT
#include <cslibs_vision/data/matchable.h>
Matcher::Matcher(bool binary, int min_points, double threshold)
: hamming(binary), threshold(threshold), min_points(min_points)
{
if(binary) {
#if CV_MAJOR_VERSION <= 2 && CV_MINOR_VERSION < 4
de... |
12452bf2f6e38d19cb3d2ccbc43f295a599ad141 | 453a63aabdaa46e372cb8617d30ed6b06faca52d | /lab9/NDvector.h | d9872fce48d321e1f2df8cb9d418f386c0d2ef5e | [] | no_license | alam0/CPP | 5d140806bd304930e551f5c39ebdfa9b956839e1 | a973a04af16a514f9e9cbd5d89d8a7737350d66b | refs/heads/master | 2020-03-18T02:26:51.909882 | 2018-05-20T22:14:14 | 2018-05-20T22:14:14 | 134,191,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,651 | h | NDvector.h | #ifndef NDVECTOR_H
#define NDVECTOR_H
#include <vector>
#include <math.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <algorithm>
#include <iterator>
using namespace std;
//Puzzle class definition
template <typename T>
class NDvector{
public:
NDvector(int size = 10); //non-default constr... |
a1d21bbbe1d1ba22fc0a4d998f8b787324cbaf4a | 56b8b3eb6011e54c16b7211224b79f8daa33139a | /Algorithms/Tasks.0501.1000/0706.DesignHashMap/solution.cpp | 442fb7015a442c721959ec4626c4bdf496c4de5c | [
"MIT"
] | permissive | stdstring/leetcode | 98aee82bc080705935d4ce01ff1d4c2f530a766c | 60000e9144b04a2341996419bee51ba53ad879e6 | refs/heads/master | 2023-08-16T16:19:09.269345 | 2023-08-16T05:31:46 | 2023-08-16T05:31:46 | 127,088,029 | 0 | 0 | MIT | 2023-02-25T08:46:17 | 2018-03-28T05:24:34 | C++ | UTF-8 | C++ | false | false | 3,020 | cpp | solution.cpp | #include <algorithm>
#include <list>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class MyHashMap
{
public:
MyHashMap() : _buckets(InitSize)
{
}
void put(int key, int value)
{
std::list<std::pair<int, int>> &bucket(_buckets[hash(key) % _buckets.size()]);
auto const iter... |
ca434d8b51e2f8f65be467735b55a74cdd5c23b0 | 271ef3d39d8c80dc3cf54370c2efcce26a94443f | /src/intIOTcontroller.cpp | c7bce16aeb5bda4e369bd6c3e8d790accc5d87c4 | [] | no_license | hfjg/intIOTcontroller | f885eed3bc9872ec4fb9acfa67c3d719f902d297 | 539d3fadbd4be6e7854b6016e4779a490d8b6477 | refs/heads/main | 2023-04-26T17:56:01.879491 | 2021-05-17T13:55:55 | 2021-05-17T13:55:55 | 368,189,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,193 | cpp | intIOTcontroller.cpp | #include <Arduino.h>
#include "intIOTcontroller.h"
// constructor
intIOTcontroller::intIOTcontroller(){
_type = CON_SWITCHING;
_inverted = 0;
_hyst = 0;
_lockup = 200;
_outMin = 0;
_outMax = 255;
_esum = 0;
_devOld = 0;
};
void intIOTcontroller::setup(eControlle... |
0ad6ca095d0c956cfc54ab81f41aa1353b0dcda7 | 4df6ecf1ae07714e4be39c77933ed18e27333659 | /Projekat/artikli.h | addc8a14a4f4978e278ba599dde0724943eb3c34 | [] | no_license | karasalihovicAmela/PJIP_Projekat | 25424123025262ac22d756766f50dd76c0f2b33c | c53ba8b096dfbc73499a9456442cef949a9b8916 | refs/heads/master | 2023-01-04T14:12:33.433625 | 2020-11-04T11:39:40 | 2020-11-04T11:39:40 | 309,984,743 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,248 | h | artikli.h | #ifndef ARTIKLI_H_INCLUDED
#define ARTIKLI_H_INCLUDED
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Artikal{
private:
float cijena;
string nazivArtikla;
string proizvodjac;
int brojArtikla;
public:
string vrstaArtikla;
Artikal(){};
Artikal(fl... |
cfec2ceab22f6dbff39294851085bd7ca7a5db06 | 4984b18b6778035cdc90a5052b1ed05cc541b125 | /CS440/CS440/Scenes.cpp | bb5aad5a35c89b982e69b43a89a1c19089fc8011 | [] | no_license | M-a-c/Conquers | aebf1c075421097052b3b6599d4d668c9011232a | a8919d92e6315278c3f5ab2f4f68df2489f89250 | refs/heads/master | 2021-01-20T11:16:29.630857 | 2016-04-18T00:11:50 | 2016-04-18T00:11:50 | 50,860,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | Scenes.cpp | #ifndef SCENE_H
#define SCENE_H
#include <SFML/Graphics.hpp>
#include <string>
#include <iostream>
#include <SFML/Audio.hpp>
#include "Failure.hpp"
using std::string;
class Scene:public Failure
{
public:
void setBackground(string filePath)
{
if (!background.loadFromFile(filePath)){
imageFail_importa... |
2c62e6c6d8c86504aa33bc513c94d63840e11b0b | 58acab1a860d568544aa1d4b219b989f638981de | /libs/amount/amount.hpp | efe69e3644c62da84c8419d710918ef19c700ac9 | [
"Apache-2.0"
] | permissive | ertlnagoya/iroha | 591b64d4628d7e8d4dbf98abf0c7c503b1058f68 | 6df2293354ff211ee2002323c7e7a4ed4bc98cdd | refs/heads/master | 2021-05-01T10:01:55.036362 | 2018-02-11T08:28:53 | 2018-02-11T08:28:53 | 121,101,694 | 0 | 1 | null | 2018-02-11T08:19:57 | 2018-02-11T08:19:57 | null | UTF-8 | C++ | false | false | 4,834 | hpp | amount.hpp | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... |
44b08b1c0b0f7b7a2a8723099872687fc98e7961 | 9870e11c26c15aec3cc13bc910e711367749a7ff | /ACM/ac_5059.cpp | b533e5eb3a5d0347670fb586dcb73e0e8e6343b2 | [] | no_license | liuq901/code | 56eddb81972d00f2b733121505555b7c7cbc2544 | fcbfba70338d3d10bad2a4c08f59d501761c205a | refs/heads/master | 2021-01-15T23:50:10.570996 | 2016-01-16T16:14:18 | 2016-01-16T16:14:18 | 12,918,517 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 459 | cpp | ac_5059.cpp | #include <cstdio>
typedef long long ll;
ll sg(ll x)
{
if (x==1)
return(0);
if (x%2==0)
return(x/2);
return(sg(x/2));
}
int main()
{
int T;
scanf("%d",&T);
while (T--)
{
int n;
scanf("%d",&n);
ll ans=0;
for (int i=1;i<=n;i++)
{
... |
089514a2dd8f46ab6bc7422f9f2ba97f55bc791f | d51acd5bcd82f7b4fc6018748a550a0a3b84e832 | /code/core/include/insieme/core/ir_mapper.h | f9ec4c4fb82168ab56770fea1a938925460fe1ac | [] | no_license | insieme/insieme | 67e7a8f4ca5ac1d7762ccd9e99b22c53b3d117e4 | ee1ee58dfdba40a1ecf204116e7c96e7d13a70d3 | refs/heads/master | 2020-04-03T23:33:26.974364 | 2019-01-25T13:22:43 | 2019-01-25T13:22:43 | 9,626,931 | 31 | 9 | null | 2018-08-06T16:32:56 | 2013-04-23T15:50:23 | C | UTF-8 | C++ | false | false | 5,059 | h | ir_mapper.h | /**
* Copyright (c) 2002-2017 Distributed and Parallel Systems Group,
* Institute of Computer Science,
* University of Innsbruck, Austria
*
* This file is part of the INSIEME Compiler and Runtime System.
*
* This program is free software: you can redistribute it and/or modify
* it u... |
8f7ab63ad30838c01b2928b616d7624371d937a4 | afefb76c4d19d6a017382e299d6d825fca1e0940 | /enableddelegate.cpp | 34f86db896f57183543b892a70729c93be0203e4 | [] | no_license | FLAME-HPC/flame_visualiser | da9d228346c3e5c4b5dd16fdc828bbacef9335ca | 86f9f589939673bb4594705aaae3062697d1a8f0 | refs/heads/master | 2020-06-28T16:49:41.646166 | 2017-11-20T15:04:34 | 2017-11-20T15:04:34 | 74,488,278 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | cpp | enableddelegate.cpp | /*!
* \file enableddelegate.cpp
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Implementation of enabled delegate
*/
#include <QCheckBox>
#include "./enableddelegate.h"
EnabledDelegate::EnabledDelegate(QObject * parent)
: QItemDelegate(parent) {
}
Q... |
090ce95e0145b97f449a65fff19746f1f0aa920b | b175eddaf939281f164c2fbb39b55f85cfa90be0 | /Solutions/ACBScoreBoard/main.cpp | a2f2f18bace92169e81cfe7cadb67320ef684e87 | [] | no_license | AbdelrhmanKhater/Icons | 96b3f42504157c3089ceeb708b9b92ad89c18c88 | ea43233aab70b6b931efe76e349ee0684410a766 | refs/heads/master | 2020-03-07T01:31:54.176100 | 2018-03-28T19:17:12 | 2018-03-28T19:17:12 | 127,185,831 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,479 | cpp | main.cpp | #include <iostream>
#include <algorithm>
#include <cstdlib>
#include <numeric>
#include <string.h>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stack>
#include <queue>
#include <stdio.h>
using namespace std;
struct sub
{
int st, cid, pid, f;
};
struct contestant
{
int cid, nsp,... |
0f7f6a43d9dec8fa21a6e7ea06dad948adec5499 | 3a1190c8227f299f8281604d063e76f0b7fc69e5 | /Striver SDE Sheet/Day - 2 (Arrays)/Best Time to Buy and Sell Stock - 1.cpp | d2857a3f765b8c41c3416026516cbe148e8696db | [
"MIT"
] | permissive | niraj9504/Striver-Sheets-Resources | a57fe4eefea499a76b31e62e9a2cd8ef6c8916d1 | 80757b212abe479f3975b890398a8d877ebfd41e | refs/heads/main | 2023-07-08T21:28:37.513429 | 2021-08-16T19:01:29 | 2021-08-16T19:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | Best Time to Buy and Sell Stock - 1.cpp | class Solution {
public:
int maxProfit(vector<int>& prices) {
int max_profit = 0, min_price = INT_MAX;
int N = prices.size();
for(int i = 0; i<N; i++){
if(prices[i] < min_price) min_price = prices[i];
else {
max_profit = max(max_profit, prices... |
8ce38d2807eacf7cd0de5fc7c7b4b64a3edf39ed | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/4.05/e | 0cc0f77aa4fcee5aafafacd2453a36c4512a1a5c | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179,743 | e | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
e77d8da0f85f1fb74ff49577cf4d6176e3459a0a | d1aacb086323f2c91722e8ccbc3597646512161f | /University Programming/3.4_overloading&template/ex9_IV/main.cpp | e4bf7375ec0723ff076404b08c7452a4843b61ce | [] | no_license | Praytic/cpp-basics | 78fc25f934c949cb3d55f838e78715caa25bd8c9 | f909e624bfbbb3ef0391b93dd55909848737200e | refs/heads/master | 2021-01-15T10:53:39.087560 | 2015-07-01T17:00:42 | 2015-07-01T17:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | main.cpp | #include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <conio.h>
#include <ctype.h>
#include <stdlib.h>
#include <fstream>
#include "math.h"
using namespace std;
#define forn(i,n) for(int i = 0; i < n; i++)
#define ll lon... |
3526942f4c65b20bc08d9f7900318c3ca5356229 | ebe2e32534407222915cfdafd58a88ebded711ab | /Utility/Poker/Hand.h | 334b4ff9d68e8f52f748a2e2abbe109ad51a0b8f | [] | no_license | Elegy/ProjectEuler | 5246c34d83836dcc28f481766ebca6eac94bccb4 | 51fe44fa969647054e7d6289659e7c85765550ea | refs/heads/master | 2021-01-19T17:23:16.496093 | 2014-08-25T02:43:54 | 2014-08-25T02:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | h | Hand.h | //
// Hand.h
// ProjectEuler
//
#ifndef __ProjectEuler__Hand__
#define __ProjectEuler__Hand__
#include <iostream>
class Hand
{
enum Rank
{
HighCard,
OnePair,
TwoPairs,
ThreeOfAKind,
Straight,
Flush,
FullHouse,
FourOfAKind,
StraightFlus... |
86df4d4795e4bfdafd9559cfb32b5fbeaad3edea | 2c60293975163a6337ab03c9497ee78564a8ea78 | /Motortest/Motortest.ino | dfe2d3ddb4ac177a96324adcaef18a7584d55606 | [] | no_license | londonhackspace/Hopper | b6c68414b489efa00b0189f0685e54353fdd6708 | 189d3f82594a5da4b5a0b628319415b65447e7b5 | refs/heads/master | 2021-01-18T12:06:30.742419 | 2014-06-15T20:59:35 | 2014-06-15T20:59:35 | 1,062,038 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,129 | ino | Motortest.ino | #define STROBE (0)
#define DATA (1)
#define CLOCK (2)
#define OE (3)
void setup() {
pinMode(STROBE, OUTPUT);
pinMode(DATA, OUTPUT);
pinMode(CLOCK, OUTPUT);
pinMode(OE, OUTPUT);
digitalWrite(OE, HIGH);
setRegisters(0);
Serial.begin(9600);
while (!Serial) {}
}
void sendBit(uint8_t val) {
digitalWrite... |
6f34f7ea3cea737402d03b7ca99e91c42431f3b6 | b303f7cf16fcb53d148f38808c6a89176ca97b3d | /ss-echo/main.h | 38706a43c04df5addc1b3e3be7be7d480537c035 | [] | no_license | anujkaliaiitd/dumbpipe | 12a54c160db55039e9aa45df531386101bf8000c | c77370cb868edf1796c448b14978508c56938d1b | refs/heads/master | 2022-03-22T11:20:06.976196 | 2019-11-21T05:23:16 | 2019-11-21T05:23:16 | 113,354,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,153 | h | main.h | #pragma once
#include <gflags/gflags.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <thread>
#include "libhrd_cpp/hrd.h"
static constexpr size_t kAppNumQPs = 1; // UD QPs used by server for RECVs
static constexpr size_t kAppMaxPostlist = 64;
static constexpr size_t kAppUnsigBatch = 64;
static_... |
fcafea41c4f91366655595e213d98430ed3fb5a7 | 497ee62b8e9e69624d6865c363a7e49fe5d47c5c | /UVA/Flood Fill/469WetlandsofFlorida.cpp | 62022f58033dcda25baac820e4aa92fc1f2913de | [] | no_license | Dygookada/MeusCodigos | 450ab50d9e743ac6fa2a12ab3fef268dcb8b7b30 | 25b56327f2c75897c739fdabe4ff678775b95720 | refs/heads/master | 2022-06-26T02:11:51.909412 | 2022-05-12T22:24:47 | 2022-05-12T22:24:47 | 246,394,200 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | 469WetlandsofFlorida.cpp | #include <bits/stdc++.h>
using namespace std;
vector<string> grid;
int x[]={-1,-1,0,1,1,1,0,-1},y[]={0,1,1,1,0,-1,-1,-1},n,tam;
void agua( int i, int j)
{
grid[i][j]='C';
for( int k=0; k<8; k++)
{
int ix=i+x[k],jy=j+y[k];
if( ix>=0 && ix<tam && jy>=0 && jy<tam && grid[ix][jy]=='W')
{
n++;
... |
af612ffaf9d3939d34a0b207617e1584b7864ab4 | 414d720944511da242938e4f3ba0f61db41bd9ef | /point_cloud/package/pcl_demo/src/write_pcd_by_odom.cpp | 9bae7c983e9750491b75b72d3474eab4b6c7180d | [] | no_license | yangdaiyu123/localization | 1e4c493dde244f366b64cb3ef708d6a4cd45c549 | eea5d5f68145576bea86649bcd56ec55dc5ab9ce | refs/heads/master | 2020-05-02T18:09:20.428017 | 2017-03-25T02:08:34 | 2017-03-25T02:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,066 | cpp | write_pcd_by_odom.cpp | #include "ros/ros.h"
#include "std_msgs/String.h"
#include "std_msgs/Float64.h"
#include "std_msgs/Int8.h"
#include "std_msgs/Int32.h"
#include "std_msgs/Int8MultiArray.h"
#include "std_msgs/Int32MultiArray.h"
#include "std_msgs/Float64MultiArray.h"
#include <pcl/common/common_headers.h>
#include <pcl/point_types.h>
#... |
3f41c0c12311bde31582cac57eb121db9f35e4bf | e1d2a6f87bbba49387bce6dce02ac9df8bd2eef2 | /Assignment12/CSVListRepository.cpp | 67d07058dfc7c42f6216a12ab2449c5d011c6924 | [] | no_license | hnldx/QtApp | ca015bd8de0a777e4e6691582cdeea3de10b5048 | c5590ed0b37d2ad34b33faf91f039c1f1b44a7aa | refs/heads/main | 2023-03-31T06:34:34.199590 | 2021-03-26T11:15:07 | 2021-03-26T11:15:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | CSVListRepository.cpp | #include "CSVListRepository.h"
#include <windows.h>
void CSVListRepository::adoptDog(Dog& dog)
{
vector<Dog> dogs = this->getAdoptedDogs();
RepositoryValidator repoValidator{ dogs };
repoValidator.validateAdoption(dog.getName());
dogs.push_back(dog);
this->saveMyListFile(dogs);
}
void CSVListRepository::removeFr... |
91f918f0f4307f9a10f66074818c656f72fd0f05 | b15c487b4865ac52bf51a97ba00e7ce556e0b27b | /UVA Solved/10550.cpp | 31d19974c3bd7f7de3cf71aad07dc963aad5b3d3 | [] | no_license | Mehedi32HSTU/UVA-Online-Judge-Code | 52b033c25d913acc5e93db001d5f6d99b583d341 | b34c185c5a1e48cd427b77c5fd9e0c9cfb869650 | refs/heads/master | 2020-08-06T06:01:29.365669 | 2019-10-04T17:02:37 | 2019-10-04T17:02:37 | 212,862,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | 10550.cpp | #include<bits/stdc++.h>
using namespace std;
#define sc scanf
#define pf printf
#define ll long long
int main()
{
int f,a,b,c,sum=0,temp;
while(sc("%d%d%d%d",&f,&a,&b,&c)==4)
{
if(f==0&&a==0&&b==0&&c==0) break;
sum=1080;
temp=f-a;
if(temp<0) temp+=40;
sum+=temp*9;
... |
08eaab05f98e504e4a23fb91eb9aa020ef5a6efb | 3fef24a77e918dbae6e7d36f5776f28eb111f7aa | /src/operator/mkl/mkl_batch_norm-inl.h | b5967f4de294806d3c2ff092599130f8b591a390 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Jopyth/BMXNet | db642963c980c79b95476effbb9e98fc370d20a6 | 2d4f7f4553b1103c4309b0f8c4b51d823e234b69 | refs/heads/master | 2020-03-30T01:24:15.004207 | 2018-07-05T12:42:44 | 2018-09-27T11:22:20 | 150,574,165 | 17 | 1 | Apache-2.0 | 2018-09-27T11:09:07 | 2018-09-27T11:09:07 | null | UTF-8 | C++ | false | false | 15,618 | h | mkl_batch_norm-inl.h | /*******************************************************************************
* Copyright 2016 Intel 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.o... |
5e69410a4b534bea6ba492a976608dce9a9c6b8d | 0e6e06da7f4d0001ae0d97367b786a6a3c49f7aa | /Graph/Algorithms/dfs.h | a355c19eb9675b5d9a02407b47710ee814cd4353 | [] | no_license | utec-cs-aed-2021-1/proyecto-de-curso-team-triple-for | 204c65632a0ffe22f85c7647a472ba76dd70a025 | a25bd02b79eebe04a129ffb21e61c50457717858 | refs/heads/main | 2023-07-08T20:30:01.789145 | 2021-08-03T23:04:39 | 2021-08-03T23:04:39 | 377,246,532 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | h | dfs.h | #ifndef DFS
#define DFS
#include "Graph/graph.h"
#include <iostream>
#include <stack>
#include <string>
template <typename TV, typename TE> class Dfs {
public:
Graph<TV, TE> *graph;
string start_id;
Dfs(Graph<TV, TE> *graph, string id) {
this->graph = graph;
this->start_id = id;
}
vector<Vertex<TV,... |
d32d71da9a5c018efa8e051784b836379578124f | 40f151d22fadffd2cdac306fb1c2f70bb9c7a459 | /Pilha_Encadeada/PilhaEnc.hpp | 246c3eea0b7be44800b47110217641df271e92fb | [] | no_license | johnaltan/INE5408 | f80421b8d3adb3a394775435e68f42cd97a594ba | a1fbbcd37e5f6f7138a6e8c25bce3c42f7ea9ef8 | refs/heads/master | 2021-01-18T21:15:53.342632 | 2015-04-21T17:01:12 | 2015-04-21T17:01:12 | 32,540,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | hpp | PilhaEnc.hpp | #include "ListaEnc.hpp"
template<typename T>
class PilhaEnc : private ListaEnc<T>{
public:
PilhaEnc() {}
~PilhaEnc() {}
void empilha(const T& dado) {
this->adicionaNoInicio(dado);
}
T desempilha() {
return this->retiraDoInicio();
}
T topo() {
if (PilhaVazia()) throw ... |
fbb3dfa054d569f69355c15ba9d675cff8df8620 | 6e3b592de89cb3e7d594993c784e7059bdb2a9ae | /Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditTBarDlg.cpp | d6f42c56639e46bd4a5ba222c0dc2ead7394722d | [
"MIT"
] | permissive | jjzhang166/CQC | 9aae1b5ffeddde2c87fafc3bb4bd6e3c7a98a1c2 | 8933efb5d51b3c0cb43afe1220cdc86187389f93 | refs/heads/master | 2023-08-28T04:13:32.013199 | 2021-04-16T14:41:21 | 2021-04-16T14:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,634 | cpp | CQCIntfEd_EditTBarDlg.cpp | //
// FILE NAME: CQCIntfEd_EditTBarDlg.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/09/2016
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://o... |
ecf7dffbd291eaf041b3c5569ec17b9afdcde13f | 5a77b5092acf817ac37a5fafd006feea434dd0d6 | /Doxygen_Graphviz/DesignPatternExample/大話/cpp/flyWeight/WebSiteFactory.cpp | c62e94b2c8d217f22dc541dc1d2fdd9f756f832a | [] | no_license | shihyu/MyTool | dfc94f507b848fb112483a635ef95e6a196c1969 | 3bfd1667ad86b3db63d82424cb4fa447cbe515af | refs/heads/master | 2023-05-27T19:09:10.538570 | 2023-05-17T15:58:18 | 2023-05-17T15:58:18 | 14,722,815 | 33 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | WebSiteFactory.cpp | #include "WebSiteFactory.h"
namespace flyWeight {
WebSite* WebSiteFactory::getWebSiteCategory(std::string key) {
if (!flyWeights->containsKey(key)) {
flyWeights->put(key, new ConcreteWebSite(key));
}
return flyWeights->get(key);
}
int WebSiteFactory::getWebSiteCount()... |
833769d2e5fed58da3b1a89b9cf9ddcce0e79867 | ac77b802d8363825128116301e3d70c8d37a0054 | /libqtgpio/services/sensors/hcsr04sensor.h | f0677602ed75a30372ea54c30a35ffea7d7dbaa6 | [] | no_license | vladest/qtgpio | 5a625fdf5ebfe9debd0d121e3a81aabe75ea0b75 | 3ea4f1d44522faaac0f864985deb2e00427a9e60 | refs/heads/master | 2021-09-28T01:35:09.388231 | 2021-09-25T20:26:15 | 2021-09-25T20:26:15 | 163,994,135 | 5 | 1 | null | 2021-06-22T16:08:43 | 2019-01-03T16:02:13 | C | UTF-8 | C++ | false | false | 1,166 | h | hcsr04sensor.h | #ifndef HCSR04SENSOR_H
#define HCSR04SENSOR_H
#include <QThread>
#include <QPointer>
#include <qgpioport.h>
class HCSR04Sensor : public QThread
{
Q_OBJECT
Q_PROPERTY(float distance READ distance NOTIFY distanceChanged)
public:
/**
* @brief HCSR04Sensor
* @param echoPort
* @param triggerPo... |
9bf778c099134a16191ce55074e3da6596d788a5 | 12eea12fa9753bb1356a9bad6114ef37c69b64ce | /src/astar.cpp | c1ef9176794aed669b96c1727064df851f877bd5 | [] | no_license | guimafelipe/australian-map-search | 3fd507f97b714fbf140fefaf803822da78e4d19a | 56c70024a6693b50e670c4fb370f834d66d44c46 | refs/heads/master | 2020-03-27T14:28:30.851321 | 2018-08-30T20:16:01 | 2018-08-30T20:16:01 | 146,664,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | astar.cpp | #include <vector>
#include <queue>
#include <algorithm>
#include <iostream>
#include "ausmap.hpp"
#include "graphsearch.hpp"
#include "astar.hpp"
using namespace std;
void printPath(int end, vector<int> & parent){
int curr = end;
while(curr != -1){
cout << curr << " ";
curr = parent[curr];
}
cout << endl;
}
#... |
cded672a7ce9c1d62825796e2cfca4819108e01c | 2a5db4d9e51d29445f72d1ffd3f98609523b082d | /media-driver/media_driver/agnostic/common/os/mos_context.h | 3661d1b9f10b51867b5d2e5626b8198f0a2b8986 | [
"BSD-3-Clause",
"MIT"
] | permissive | mintaka33/media | 19f26239aee1d889860867a536024ffc137c2776 | 4ab1435ef3b3269ff9c0fa71072c3f81275a4b9d | refs/heads/master | 2021-05-11T04:01:48.314310 | 2018-02-02T03:43:36 | 2018-02-02T03:43:36 | 117,930,190 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,188 | h | mos_context.h | /*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
a1cedc724c00f89f7f2e28386da50be87cce1d0b | 2d690c171ad60b52857f6273337e7d5a298ad29b | /Functions.h | 027d73f5dd53f36f8151c20c910900f67136c067 | [] | no_license | ludioao/servidorHttp | 9e603cac7389c59886abb3c53b5f66defccce76d | 1934c32430ceff07fbb29826c3e7d5b8cefb1977 | refs/heads/master | 2021-03-27T12:47:55.759387 | 2017-03-28T18:03:52 | 2017-03-28T18:03:52 | 79,241,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | h | Functions.h | #ifndef __FUNCTION_H__
#define __FUNCTION_H__
#include <iostream>
#include <string>
using namespace std;
void console_log(const string text)
{
cout << text << endl;
}
#endif |
a7bcab719df1d1ad2bbce548f3e29002507f49d6 | 4b868517759ab9e90d49c2107e388087aea8aa63 | /no-category/4948.cpp | 3001b2f07f6974455e591fab516a48d59cfa7df3 | [] | no_license | quddnr153/acmicpc | 546dac1423ff510e1c87b344b08593bc0b0b5873 | dd7f586d0726a41c82c4acdff06fde83984ed65a | refs/heads/master | 2021-01-12T13:01:23.510320 | 2018-04-05T13:56:09 | 2018-04-05T13:56:09 | 70,113,268 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,108 | cpp | 4948.cpp | /* Problem Statements
* 베르트랑 공준
한국어 원문
문제집
시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 588 312 255 56.291%
문제
베르트랑 공준은 임의의 자연수 n에 대하여, n보다 크고, 2n보다 작거나 같은 소수는 적어도 하나 존재한다는 내용을 담고 있다.
이 명제는 조제프 베르트랑이 1845년에 추측했고, 파프누티 체비쇼프가 1850년에 증명했다.
예를 들어, 10보다 크고, 20보다 작거나 같은 소수는 4개가 있다. (11, 13, 17, 19) 또, 14보다 크고, 28보다 작거나 같은 소... |
0c3b98b4875a4166952c83b6fb5df271ca857dae | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/Runtime/Engine/Classes/Particles/ParticleLODLevel.h | be4063525cea8a2afff79e090a303ef417f750c7 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 4,262 | h | ParticleLODLevel.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/**
* ParticleLODLevel
*
*/
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "ParticleLODLevel.generated.h"
class UInterpCurveEdSetup;
class UParticleModule;
UCLASS(collapsecategories, hideca... |
872dc36fa54b5e5c52bb87bdafc8dc1a7f4bf38f | 1e09a2a90e772c24e13234665b724a13a3b64b18 | /Week 07/Code/main.cpp | 500e9be6b34c73ab00dec39165f44fd66e11f81a | [
"MIT"
] | permissive | toby0622/NDHU-Algorithm-Course | 52f9ed2137892a8c84dadf26984afd0039e8af65 | 58c86d370643177c69a809dbdb8ec6b34ecf4d15 | refs/heads/main | 2023-06-04T12:07:30.110357 | 2021-06-26T02:33:57 | 2021-06-26T02:33:57 | 377,765,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,078 | cpp | main.cpp | #include <iostream>
#include <string>
#include <vector>
#include <set>
using namespace std;
// Define the maximum possible length of string `X` and `Y`
#define MAX 400
// `lookup[i][j]` stores the length of LCS of substring `X[0…i-1]` and `Y[0…j-1]`
int lookup[MAX][MAX] = {};
// Function to return all LCS of substri... |
a4bcfe867a4cd5c8dac4db2a7e342cfc373c9e3b | df0e24a1f4f17632a0a2afc5673a8161d4d8f09f | /ScaleSpace/ScaleSpaceFactory.h | 9fc366b831ba3447f2ad0ac5a206039d42a88c31 | [] | no_license | kn65op/ScaleSpace | 2ea4db1024a6caf6ccbb529924b60379501ac9a1 | 6d86af5bf5021dd71c708dd49b159dedd0f80273 | refs/heads/master | 2020-04-06T04:25:44.439363 | 2013-12-10T19:44:30 | 2013-12-10T19:44:30 | 8,165,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | h | ScaleSpaceFactory.h | #pragma once
#include "ScaleSpace.h"
#include "ScaleSpaceOpenCL.h"
#include "ScaleSpaceOpenCVCPU.h"
#include "ScaleSpaceOpenCVGPU.h"
class ScaleSpaceFactory
{
public:
/**
* Get ScaleSpace implementation. If processor is unavailable (eg. no GPGPU libraries is available) it throws NoPlatformScaleSpaceException.
... |
935936949ab3685d95f892f3a510aa41dd87bc40 | d482ac1260ab75f7cd0e8e94cf5bab1606c69d30 | /Chapter1/Game.cpp | 8ace2ac3a8581c2ef93c95d83e6236d2d768eda7 | [] | no_license | Alessio-Faina/GameProgramming | d1ff6e6a73f934ef92d86b155f4c65fae052f04f | 44156f3f0c6ddda19e033a6ec5ae78228bcf4486 | refs/heads/master | 2020-03-26T04:00:22.531166 | 2018-08-12T17:17:49 | 2018-08-12T17:17:49 | 144,481,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,289 | cpp | Game.cpp | #include "Game.h"
Game::Game()
: mWindow(nullptr)
, mRenderer(nullptr)
, mTicksCount(0)
, mIsRunning(true)
, mEndGameWait(true)
{
}
Game::~Game()
{
}
void Game::InitBall(Ball* ball)
{
int diff = rand() % 20 - 10;
int xSpeed = rand() % 2 + 1;
int ySpeed = rand() % 2 + 1;
ball->ballPos.x = WINDOW_WIDTH / 2.... |
5d0669085bc9f36c5df070ff26845d275e49d606 | 97e0fdd84ce52d6fcb3355faf8f8f45fd5eb1f96 | /include/pronunciationVoiceAddrByGlosbe.h | d663a95e25c6ed7f730b79772e936ed879e88252 | [] | no_license | barnasm/TranslateLX | a57879110c22b23c1c97be1cc48fa0d28bb35903 | fc7edde79a968dc01ad6e2e1f17f5ffd35a0e751 | refs/heads/master | 2020-05-09T13:52:16.218871 | 2019-04-13T13:47:02 | 2019-04-13T13:47:02 | 181,171,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | h | pronunciationVoiceAddrByGlosbe.h | #pragma once
#include <string>
#include <regex>
#include "getWebPageContent.h"
class PronunciationVoiceAddrByGlosbe: public DictionaryDataInterface, GetWebPageContent
{
std::vector<std::string> getData(const std::string &addr){
if(lastAddr == addr)
return res;
lastAddr = addr;
//there are al... |
0da5ac080d831990ed3fcd9592f22b13ca00dd2e | 3aa9a68026ab10ced85dec559b6b4dfcb74ae251 | /learning graphs/dfs_bfs.cpp | 4b9ce87da1e8b8b050f7bc1679a507e2be2b7e31 | [] | no_license | kushuu/competitive_programming_all | 10eee29c3ca0656a2ffa37b142df680c3a022f1b | 5edaec66d2179a012832698035bdfb0957dbd806 | refs/heads/master | 2023-08-17T15:09:48.492816 | 2021-10-04T20:09:37 | 2021-10-04T20:09:37 | 334,891,360 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,870 | cpp | dfs_bfs.cpp | /****************************************************************
Author: kushuu File: dfs.cpp Date: Mon Oct 04 2021
****************************************************************/
#include <bits/stdc++.h>
//shorts
#define ll long long int
#define sll stack<long long int>
#define vll vector<long long int>
#defi... |
107e970e1449cdcb589d42f810a6a41ab4e795d4 | 68fac5700813376b3dbb3fb7a105d696256a3532 | /uberstealth/UberstealthDriversPage.h | b5e030deac0f1146adbfba471d010280a2af80ef | [] | no_license | nihilus/uberstealth | b0a970ed7da6f6641e547f3d1ec16abff3701e39 | ad6576ae582d5345707dfded35d4aeaa87475779 | refs/heads/master | 2016-09-06T14:46:19.223149 | 2014-09-14T00:15:34 | 2014-09-14T00:15:34 | 23,511,166 | 15 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | h | UberstealthDriversPage.h | #pragma once
#include <HideDebugger/HideDebuggerProfile.h>
#include "WTLCommon.h"
#include "UberstealthPropertyPage.h"
#include <iostream>
#include "ProfileEventConsumer.h"
#include "resource.h"
namespace uberstealth {
class UberstealthDriversPage : public UberstealthPropertyPage<UberstealthDriversPage, IDD_DIALOG3>... |
2d5e3d439c58603a3aac733bb2bb12f736193862 | 02a3a0fd1d91e248e51aaeb2e5a12c89b2ec5b11 | /labs/lab3.h | 12a3e16c962ae4079c382ed999776155e688817e | [] | no_license | mihanloko/itoi | aac576a4468aa1178e54c964fc52d6c0c7ace0ab | fac7a6c243837184cdf8ab8d52fe63d00983dcc4 | refs/heads/main | 2023-05-25T13:54:30.523227 | 2021-06-06T14:00:12 | 2021-06-07T14:39:18 | 334,977,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | lab3.h | //
// Created by mikhail on 01.05.2021.
//
#ifndef ITOI_LAB3_H
#define ITOI_LAB3_H
#include <QString>
#include "../image/Image.h"
#include "../points/Harris.h"
#include "../points/Moravec.h"
class lab3 {
public:
static void run();
};
#endif //ITOI_LAB3_H
|
45441cef74e1f64ab0fa4f28c7f878a3485e5090 | dbe55ef54ef7a67823f983f07c38a4acf7d796f3 | /FaceBall/Client/Client/main.cpp | b56ba9ef52d2c7a7d21e520481e870103cef82fc | [] | no_license | zhenxili/face | 0ab321220e1d5e9f50257b19bc812e165cd1e321 | 7aabf2aa604f536d5b0e8a4ce894d6aa75b926b0 | refs/heads/master | 2020-12-24T16:50:06.721628 | 2014-09-25T08:12:05 | 2014-09-25T08:12:05 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 743 | cpp | main.cpp | #include "client.h"
#include <QtWidgets/QApplication>
#include <QtWidgets\qsplashscreen.h>
#include <QtWidgets\qdesktopwidget.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/Client/Resourses/ing.jpg"));
splash->show();
Qt::... |
583c563e1071747d8ed4a36fbc2610464f228b9f | f01a96563ad306141edc49b7063590bdcc77cae4 | /作业9.cpp | 07aaf98afe61e22d5f95ac4139b3f47b61f58600 | [] | no_license | Ing999/- | 05100fe7de8c802ec9adce093d61eb66bf42abf2 | 3294a97dcc3b2fb998a95021b9a180663b2eae59 | refs/heads/main | 2023-06-03T07:32:41.508690 | 2021-06-23T15:00:05 | 2021-06-23T15:00:05 | 378,055,727 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 965 | cpp | 作业9.cpp |
#include<iostream>
using namespace std;
int main() {
string a, b;
getline(cin, a);
getline(cin, b);
for (int i = 1; i <= a.length(); i++) {
for (int j = 1; j <= b.length(); j++) {
if (a[i - 1] == b[j - 1]) {
dp[i][j] = dp[i - 1][j - 1] + 1;
... |
ea5b78d0b86faa1c909e5a2b0133bd8b67332d3b | ea75299269bdd24d85d6903ca4606b1da887a678 | /Mancala/Game.cpp | 392e6c7b4d3cc028517c295fb92652cf10e73043 | [] | no_license | emilywang886/UCLA-CS32 | 78209d1a75f0db95379459a6373f672c364d718b | 211e8e6e1656c8d34309a441ac2b8f5c7d58364b | refs/heads/master | 2021-02-09T22:33:51.024483 | 2020-03-02T10:11:19 | 2020-03-02T10:11:19 | 244,324,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,313 | cpp | Game.cpp | //
// Game.cpp
// CS32 Project 3
//
// Created by Emily Wang on 2019/5/16.
// Copyright © 2019 Emily Wang. All rights reserved.
//
#include "Game.h"
#include <iostream>
using namespace std;
Game:: Game(const Board& b, Player* south, Player* north)
: m_board(b)
{
m_sPlayer = south;
m_nPlayer = north;
m... |
6ca0cc72dae1b66f279cc07f87ba63b654335083 | 41098b8eb7a50a0cbc8ce9973eb7840f5d5fa87e | /Implementation/id_008/id_008.cc | fb111f67da7578f74cd4f74366413552ce88eff3 | [] | no_license | RexusWolf/IS | f119bddc372b25ec3c4dea66e72254097f4a1cb3 | 80e11fde39bfbe72cfae17e77a4af822d582ffd5 | refs/heads/master | 2021-08-04T17:10:14.810359 | 2019-01-10T19:54:18 | 2019-01-10T19:54:18 | 149,256,650 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cc | id_008.cc | // ID_008: Add Teacher
#include <iostream>
#include <fstream>
#include "id_008.h"
#include "../classes/teacher.h"
using std::cin;
using std::cout;
using std::ofstream;
void addTeacher(bool coordinator){
Teacher t("", "", "", "", "");
cout << "Introduce the Teacher's data\n";
cin >> t;
cout << "2\n";
... |
a6f31ef6ecb28c624f4a22f9cc61fe6a8838c451 | b79b9307f42e99273500629a41492653cabfba9a | /guslib/guslib/trace/trace.cpp | 40ad61918e880b532d1476f2f1da28a5f00fb6a1 | [
"MIT",
"Zlib"
] | permissive | dezGusty/guslib | ae5a02932ddc1d0ddc4a5df547981a9ffbd03472 | bdc1b9bc204e789862435e1221aa34e2c801704f | refs/heads/master | 2021-01-17T09:22:04.873777 | 2016-11-08T20:50:52 | 2016-11-08T20:50:52 | 23,933,187 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,130 | cpp | trace.cpp | // This file is part of the guslib library, licensed under the terms of the MIT License.
//
// The MIT License
// Copyright (C) 2010-2016 Augustin Preda (thegusty999@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated document... |
6373f819319293fd8763bf0238482cc67383ec5c | 676a7452ef96470e2eef9b561a4baf05454b11d3 | /Examples/ReqRecv.cpp | e019ee4d9da2244ddc47c1f81ed37da81b36e1a4 | [
"MIT"
] | permissive | ExecDevOps/V3DLib | c76dd93e3498705e86bfecaa8553f297b00b874a | 29b4fa6f8397682b48717c61913f28f07ac526bb | refs/heads/main | 2023-02-18T10:07:55.823430 | 2021-01-23T08:22:54 | 2021-01-23T08:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | ReqRecv.cpp | #include "V3DLib.h"
#include "Support/Settings.h"
using namespace V3DLib;
V3DLib::Settings settings;
// Define function that runs on the GPU.
void kernel(Ptr<Int> p) {
Int x, y;
gather(p);
gather(p+16);
receive(x);
receive(y);
*p = x + y;
}
int main(int argc, const char *argv[]) {
auto ret = settin... |
42f2a75a96a2b5758d25cd4e3fbb91398b06a908 | 5fa325e0dd6d12d8a2fbaa01c792c0130c33cc5a | /include/task_ring_buffer.h | 140f3b8fead7cbc4efe09ab31549040fbec1e7b1 | [
"MIT"
] | permissive | celerity/celerity-runtime | 7fbc830cc8722d92a24188be99f6d6416cf4532c | 0a282f598b3611cff9fc65c37c8bd0cd5efa5a90 | refs/heads/master | 2023-09-03T13:04:00.002793 | 2023-08-28T10:04:32 | 2023-08-29T13:44:21 | 197,273,903 | 123 | 16 | MIT | 2023-09-14T11:04:28 | 2019-07-16T22:03:07 | C++ | UTF-8 | C++ | false | false | 4,848 | h | task_ring_buffer.h | #pragma once
#include <array>
#include <atomic>
#include <memory>
#include "log.h"
#include "task.h"
#include "types.h"
namespace celerity::detail {
constexpr unsigned long task_ringbuffer_size = 1024;
class task_ring_buffer {
friend struct task_ring_buffer_testspy;
public:
// This is an RAII type for ensurin... |
ca6bfe1300a416fd6aa2410bfa5bdd8afff0db15 | bafe994bda6f940b1ff48201b3396ec2226cf3db | /FileUtils/extsort.h | ceb9ad6b5f83077c7a8b5ce9e0ac6b32ccd805f0 | [] | no_license | jtb/RIVALS | c106733faa83d52092ba6e6513ceecf76d0d3ca4 | 634f9b1ebe6ff2f36b33df9a685ab9131db9b231 | refs/heads/master | 2016-08-04T20:58:27.322463 | 2011-02-06T03:33:41 | 2011-02-06T03:33:41 | 921,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,504 | h | extsort.h | /*
* Copyright 2010 Justin T. Brown
* All Rights Reserved
* EMAIL: run.intervals@gmail.com
*
* This file is part of Rivals.
*
* Rivals is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either ver... |
657b02d2611e5239693226694a9a7d897747418c | 7a779674323b1d8e39eaf7c63cb6640030192dfe | /SniperCommander.hpp | 9ffd02081a57a6d858806944395a2544e5ba8437 | [
"MIT"
] | permissive | DvirTomer/War_Game | 8899e369e170c42b40ba8fc2d347fa7a13b89b98 | e95934cc7217ab243880550787302d19fadafccf | refs/heads/master | 2022-12-02T04:08:07.780981 | 2020-08-23T15:57:36 | 2020-08-23T15:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | hpp | SniperCommander.hpp | #include "Soldier.hpp"
class SniperCommander : public Soldier {
public:
SniperCommander(int nop){
this->damage = 100;
this->nop=nop;
this->hp=120;
}
};
|
14e92aab584a13019939beca228060a7473ad7fe | 35c7428e7b4c760aa85efa53222f33aca95ba1aa | /heater_cntrl01.ino | 341143d419fb1b526c8ce2ddf054ac29d9438f86 | [] | no_license | chibaf/HNGN90-chibaf-4ced3-200526.py | 472b27456be3d8fcda012bb734b86b4580417d49 | 77a01cd32c825070e2cb802d8f358e9aef92d723 | refs/heads/master | 2022-08-02T19:18:24.034489 | 2020-05-26T12:37:27 | 2020-05-26T12:37:27 | 267,038,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | ino | heater_cntrl01.ino | #include <avr/io.h>
#define PWMPin 10
//unsigned int frq = 440; // 周波数
//float duty = 0.5; // 指定したいデューティ比
unsigned int frq = 16; // 周波数
float duty; // 指定したいデューティ比
byte incomingByte; // for incoming serial data
int dec;
void setup() {
Serial.begin(115200);
pinMode(PWMPin, OUTPUT);
}
void loop() {
// モード指定
... |
351389bf4ac5c3e37bcecef7161b2c326e5a9d48 | 369ccb4d8a3a121b164d473482879b09a9478f60 | /src/gbTreeEvaluator.h | ed4b6fb1b383c5c61e1ecd8a1bc036ba86ea3d42 | [] | no_license | liuyushi/miniXGBoost | 3cdd22587ae55ecd7e2548c2391c3a6fda07bbb9 | 2607b007ef9051942da4bf03411bfd5d65bff5e4 | refs/heads/master | 2020-08-29T11:51:08.428781 | 2019-06-20T00:50:03 | 2019-06-20T00:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | h | gbTreeEvaluator.h | //
// Created by Haoda Fu on 2019-06-06.
//
#ifndef MINIXGBOOST_SRC_GBTREEEVALUATOR_H_
#define MINIXGBOOST_SRC_GBTREEEVALUATOR_H_
#include "gbTreePredictor.h"
namespace miniXGBoost {
class GBEvaluator : public GBPredictor {
public:
GBEvaluator(const data::DataSet &data, const miniXGBoost::Model &model, const LossF... |
e7257cd70e3c53ac7ae6126cdf1e0a6b57f3bd5f | 3a0dc1208a65f499c2125346ae0ef9463238f38e | /epoll_ulti.cpp | d9283ed9263392d9643dea0ab6cb0b815cdc4822 | [] | no_license | defined1007/myHttpServer | 028c24d4cb6fbd9f171db0df1991a521843cbce7 | 01530c3964aedcce1a6577f8fd4fd3082b33e64d | refs/heads/master | 2021-03-31T15:17:17.748605 | 2020-04-26T04:07:08 | 2020-04-26T04:07:08 | 248,115,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,933 | cpp | epoll_ulti.cpp | #include "epoll_ulti.h"
namespace utility
{
void mlog(pthread_t tid, const char *fileName, int lineNum, const char *func, const char *log_str, ...)
{
va_list vArgList; //定义一个va_list型的变量,这个变量是指向参数的指针.
char buf[1024];
va_start(vArgList, log_str); //用va_start宏初始化变量,这个宏的第二个参数是第一个可变参数的前一个参数,是一个固定的参数
vsnprintf(buf... |
ec80b6b788c79cd0200c67728cb31c79cecd7ea1 | cb0bf01c973cf4b56a65d69e6b31925b8061626b | /Assignments/AVL.h | dc19df0b6a23d8179233bb9a124613f865b7bfe1 | [] | no_license | stagarot/DataAbstraction | 4ed135d9f6d718df9ad1a778b35c651bbcfff8d1 | 905e6dd32241d9c01051ec1a0a9227f36920f49e | refs/heads/master | 2022-05-18T06:08:49.682175 | 2020-05-01T02:20:27 | 2020-05-01T02:20:27 | 260,361,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,068 | h | AVL.h | //
// AVL.hpp
// LinkedList
//
// Created by Sara Tagarot on 4/29/20.
// Copyright © 2020 DataAbs. All rights reserved.
//
#include <stdio.h>
template<typename K,typename V>
class AVLMap {
// TODO: Define your Node
struct Node{
std::pair<K, V> data; //nodes
Node* parent; //node to p... |
74816c617537123b41113673c2bdded8706a19e7 | e676796b53c2a60dfcc66012f2328feab4febcfb | /c++/main.cpp | 7e6645c1048ac4a3a2c035a66cb06fb09aa2ece8 | [] | no_license | h0tcat/RPN_Integer | fc82c1265c2cf49621599bd71651102318a8970f | c1085a5e213c3845c39332898efcb325c6babfae | refs/heads/master | 2023-04-01T06:05:26.834196 | 2021-04-01T04:51:05 | 2021-04-01T04:51:05 | 351,415,245 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | main.cpp | #include "RPN.h"
int main(int argc,char** argv){
if(argc!=2){
std::cerr << "Usage: RPNSample evalText" << std::endl;
return -1;
}else{
std::string evalSrc=argv[1];
nori::RPN RPN(evalSrc);
double result=RPN.Calc();
std::cout << result << std::endl;
}
return 0;
}
|
7384f8b91a99492fab7770fbf84ae12e23b79650 | 868cdf275aa810b815d0c268e45a9cca4c8d86b0 | /xplroersito.ino | 19bdffac1eee4ec8c8cda8dcb7619e3c6579fb06 | [] | no_license | FernandoJRR/Roboleague-Botcon | 615e61288396feefc65b7aebfe570a03e651c952 | 004ed3c1ce72003240a491c1a10371b3a99bc034 | refs/heads/main | 2023-06-16T07:29:26.712713 | 2021-07-06T15:30:18 | 2021-07-06T15:30:18 | 380,392,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,277 | ino | xplroersito.ino | #include <SoftwareSerial.h>
//Inicializar BT
SoftwareSerial BT1(10,11);
//Comando Recibido
char comando=0;
//Derecho Delantero Adelante
int Pin_Motor_Der_A = 6;
//Derecho Delantero Atras
int Pin_Motor_Der_B = 7;
//Izquierdo Delantero Adelante
int Pin_Motor_Izq_A = 8;
//Izquierdo Delantero Atras
int Pi... |
a8f1b71b4e12f0c6d525e0684de224d8a4003e5d | 1809b5bda803fbbf51dcbc4e2d464c762f3563c1 | /high_card_simulation/high_card_simulation.cpp | 10ecbf44f89598b959507c601eb5c1053c2677b4 | [] | no_license | tnakaicode/jburkardt | 42c5ef74ab88d17afbd188e4ff2b4ecb8a30bb25 | 74eebcbda61423178b96cfdec5d8bb30d6494a33 | refs/heads/master | 2020-12-24T02:23:01.855912 | 2020-02-05T02:10:32 | 2020-02-05T02:10:32 | 237,349,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,316 | cpp | high_card_simulation.cpp | # include <cstdlib>
# include <iostream>
# include <iomanip>
# include <cmath>
# include <ctime>
using namespace std;
# include "high_card_simulation.hpp"
//****************************************************************************80
double *high_card_probability ( int n )
//*************************************... |
4f6eb9b21e236c37907a57f3414b06977d0c5388 | 60968f3269507d95f2191f7bbda5711e11ef8e96 | /main.cpp | 632941a3b036b0d7353216dd4a8d643133f902f7 | [] | no_license | mmoreland/Primes | 5c0b520b48e5d5940f3e0af8a4d94dfabc1dea03 | c3eb8062793af17bfa900ac079b2bc1ea1baeb1c | refs/heads/main | 2022-12-29T21:43:59.707846 | 2020-10-15T19:14:19 | 2020-10-15T19:14:19 | 304,424,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | main.cpp | #include <iostream>
#include <cmath>
using namespace std;
bool otherPrime(long int n){
if (n <= 1)
return false;
// Check from 2 to n-1
for (int i = 2; i < n; i++){
if (n % i == 0)
return false;
}
return true;
}
int main(){
long int twos[60];
... |
7361775dccd0716f367b560ed63881a93aa8228b | 4f94cbf5c4632294082f2c8fd0bd7916d252c849 | /Attribute.cpp | c38263acd892919ce5f030b77ccbdd8d76677c9e | [] | no_license | aiyer/tinyxmlpp | 87713ac97760cbab1616c9fad3e19e99b556ed14 | 1bdee5506283b9e1bbcab0d77bbecf987e20c40f | refs/heads/master | 2020-12-24T16:23:36.416580 | 2013-04-29T00:34:08 | 2013-04-29T00:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | Attribute.cpp | #include "Attribute.h"
namespace tinyXMLpp {
/**
*Sets the 'name' of the name-value pair of an Attribute
*
*@param name 'name' in the name-value pair
*/
void Attribute::setName (std::string name) {
this->name = name;
}
/**
*Sets the 'value' of the name-value pair of an Attribute
*
*@p... |
f41bd11012e0d4712672f30cb02d56b6683d7eb7 | 22b4f6ba0a9e4c7f70fd3e584c662071f475339f | /src/persistenceservice/adapterfactory.cpp | 6bab2a4d3b07b4a203aa5381b349453ccaffa83c | [
"MIT"
] | permissive | pefoo/MoSer2 | f3ff1cf4e3b758c671991313dfa10c62d09a8197 | f593126112637c9fa3a7e6a66e34e80f515b796b | refs/heads/master | 2021-06-14T22:49:03.240050 | 2021-05-01T11:29:27 | 2021-05-01T11:29:27 | 189,720,705 | 1 | 0 | MIT | 2020-03-04T21:12:11 | 2019-06-01T10:39:37 | C++ | UTF-8 | C++ | false | false | 727 | cpp | adapterfactory.cpp | #include "persistenceservice/adapterfactory.hpp"
#include <memory>
#include <utility>
#include "persistenceservice/AdapterTypes.hpp"
#include "persistenceservice/sqlite/sqliteadapter.hpp"
persistenceservice::AdapterFactory::AdapterFactory(
std::unique_ptr<AdapterSettings> adapter_settings)
: adapter_settings_(... |
44da2024cf2254e1e378f2c1106fa36f72fdfc6d | b73e5755231cbff585b0855e09de98ea23b4b813 | /SymulatorSwiata/Roslina.h | 0b8276856a80c08f0509af045df66a1234ba5202 | [] | no_license | DominikKwiatkowski/WorldSimulation | bde25bc5890910ec8df94c78903eab7faa321f26 | 5e1a5851070fe349c339fe1cdfe84db2baa29946 | refs/heads/master | 2020-12-11T17:21:16.389605 | 2020-01-14T18:40:30 | 2020-01-14T18:40:30 | 233,910,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | h | Roslina.h | #include "stdafx.h"
class Roslina : public Organizm
{
public:
Roslina(int dataUrodzenia, int sila, int pozycjaX, int pozycjaY, Swiat* swiat, char literka);
virtual void Akcja();
virtual void Kolizja(Organizm& wrog, bool atakujacy) override;
virtual std::pair<int,int> czyAkcja() override;
virtual void MakeChild(int... |
7d5d1783fb116cbc173e50d8a58ec059cf8914c2 | de343442c6efcaf1ec61efe2ffeecec65b770d4f | /day4/ForDemo2.cpp | 817710690c51f839562fce35342e442ecc81f6ba | [] | no_license | Rjcoreas/practice-c- | a785925de7758facad782fdfb4f179211c0dc32b | a9fc85864aba4d347a2506cf3a7534b7efe62717 | refs/heads/master | 2021-01-11T16:50:05.149933 | 2017-01-22T10:50:54 | 2017-01-22T10:50:54 | 79,679,117 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | ForDemo2.cpp | // ForDemo2 - input a loop count. Loop while
// outputting astring arg number of times.
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
// input the loop count
int loopCount;
cout << "Enter loopCount: ";
cin >> loo... |
d611a85bfd5046f6f78fcf66f11137acbc91c15c | 39363dcd2a97bf5bfaf6ffb96befcccc0cffb1d4 | /tests/VectorTest.cpp | 1e266656bc5a475eb70f52dd364f930595432857 | [] | no_license | seregsarn/astrojag | 57dd3769606f8ada7f48a4aa51e6d5b303cae9cf | 1205916d6cb85bc7330a998674c1e0540cbf7361 | refs/heads/master | 2021-01-09T06:05:16.125851 | 2017-03-04T03:06:45 | 2017-03-04T03:06:45 | 62,970,348 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | cpp | VectorTest.cpp | #include "gtest/gtest.h"
#include "astrojag.h"
using namespace astrojag;
TEST(VectorTest, Equals) {
Vector a(1, 2);
Vector b(1, 2);
Vector c(1, 3);
EXPECT_TRUE(a == a);
EXPECT_TRUE(a == b);
EXPECT_TRUE(b == a);
EXPECT_FALSE(a == c);
EXPECT_FALSE(c == a);
EXPECT_FALSE(b == c);
EXPECT_FAL... |
53751888cd71b3eb5fe5ca4218666b90e81448ff | dfd595d5de897f5b978765568f09c55cc365d716 | /lc_main/9_回文数.cpp | f689a8f4b20903c5625f16dc2435b325ea27bc9a | [] | no_license | zgpio/OJ | c1ad6df22e17dc332bcc2b8ba86e36563c22e532 | 63fb1572f19e305f736a27c8380ee57d08eb90a5 | refs/heads/master | 2022-12-25T16:44:30.413796 | 2020-10-06T12:58:49 | 2020-10-06T12:58:49 | 280,862,744 | 2 | 0 | null | 2020-09-03T01:51:24 | 2020-07-19T12:38:07 | C++ | UTF-8 | C++ | false | false | 636 | cpp | 9_回文数.cpp | #include <bits/stdc++.h>
using namespace std;
// 9. Palindrome Number (回文数)
class Solution {
public:
bool isPalindrome(int x)
{
if (x < 0) return false;
long long t = x;
long long res = 0;
while (t > 0) {
res = res * 10 + t % 10;
t /= 10;
}
... |
8d6d0a01735508255cf66df84220483fa26f6216 | 5112e450a71a9d7a49ef667816cbd1b4545f046c | /src/87_Add_Binary.cpp | ca3c781e55f9a4401df155bdbe43d6b7f4cb249a | [] | no_license | satanson/leetcode | 7d28ee0f0433867699739861e538fb315ebfa3a6 | c945474897ea39c1f9362f5851b42e0e0b7289db | refs/heads/master | 2021-01-19T04:50:21.963542 | 2014-08-07T16:08:35 | 2014-08-07T16:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277 | cpp | 87_Add_Binary.cpp | #include<cppstdlib.hpp>
class Solution {
public:
string addBinary(string a, string b) {
string rc;
int carry=0;
int i=a.size()-1,j=b.size()-1;
while(i>=0 && j>=0){
if(a[i]=='0' && b[j]=='0' && carry==0)rc.append(1,'0'),carry=0;
else if(a[i]=='0' && b[j]=='1' && carry==0)rc.append(1,'1'),carry=0;
el... |
2389a6b1da40750e3552f2ea6b294831a814445d | ef82055484ff811e462910872e1a0e6dfff07080 | /jni/mcpe/item/BlockItem.h | f87eec2eda0ff997ace9379283a3defb67b8fd48 | [] | no_license | seanwallawalla-forks/Too-Much-TNT-PE-Addon | 319466e550919fb33da079121a37eeb11fa74d1d | 1f01777e36507ad8abe3615c6978414991578a00 | refs/heads/master | 2021-09-14T21:09:26.328277 | 2018-05-19T21:53:42 | 2018-05-19T21:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | BlockItem.h | #pragma once
#include "Item.h"
class BlockItem : public Item {
public:
BlockItem(std::string const&, int);
virtual ~BlockItem();
virtual bool isDestructive(int) const;
virtual bool isValidAuxValue(int) const;
virtual std::string buildDescriptionId(const ItemInstance&) const;
virtual bool isEmissive(int) const;... |
1ecefa5cdf95b7ceb4b9d3bed6c3325ac4a38b6e | 7495e64fdc16caa575e8b2822ea42df59b664e5a | /branch/1.0.2/src/monitor/recoverymodule.cc | 10c67dcb5464133cb1d5d6a1485b23f959180834 | [] | no_license | patrickpclee/codfs | dda6a8668c4e157118c7f7773676d88a2d4b0ffe | f3765f148adaecc1c45b132d2453cc74f7a2712f | refs/heads/master | 2021-01-01T20:06:15.538155 | 2015-03-31T09:45:55 | 2015-03-31T09:45:55 | 26,440,466 | 11 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 6,239 | cc | recoverymodule.cc | #include <ctime>
#include <stdio.h>
#include <mutex>
#include <unistd.h>
#include <vector>
#include <set>
#include <thread>
#include <algorithm>
#include "recoverymodule.hh"
#include "../protocol/status/recoverytriggerrequest.hh"
#include "../protocol/status/repairsegmentinfomsg.hh"
using namespace std;
RecoveryModule... |
433d4391cd989988fdfd49867afe8395731af9de | 14b024c2140fc8c9cea1b26377b0d2d11ff17e98 | /SortAndOutputThread_test.cpp | 910d08f30c75db72bfe4add0e3ad6f4aa3476c8e | [] | no_license | ElephantTracksProject/elephant-tracks | e4e731dffb6d43502b7835a301c34f755f3c46fb | bcbd977fb2b522c54cc1b59e936802fd37a157fb | refs/heads/master | 2020-03-06T21:47:51.046755 | 2017-07-14T00:36:10 | 2017-07-14T00:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | cpp | SortAndOutputThread_test.cpp | #include <jvmti.h>
#include <jni.h>
#include <iostream>
#include "AllocationRecord.h"
#include "DeathRecord.h"
#include "MethodEntryRecord.h"
#include "MethodExitRecord.h"
#include "PointerUpdateRecord.h"
#include "RootRecord.h"
#include "main.h"
#include "SortAndOutputThread.h"
using namespace std;
int main(int argc... |
9a849888de6f8132c93474073a277b210121cb75 | 85ecaa1e1040116dd88c49e651a5f3cba4f1680e | /src/DebugStream.h | 0c2d6d24b7c97f90e65b9f38d45582ef8f9057dd | [] | no_license | alcortesm/rotella | 8a1c7e7bd82169b9bd005fd0f9f843b9effc7823 | ea3e9b472688a06d1b27fdd547c53199092b087b | refs/heads/master | 2023-07-07T00:37:56.976534 | 2010-03-30T18:11:13 | 2010-03-30T18:11:13 | 43,781,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | h | DebugStream.h | // -*- Mode: c++ -*-
// Stream to use for debugging
//
// It is thread safe, but funny things can happend
// with on().
//
// Example of use:
// #include "DebugStream.h"
// DebugStream debug(std::cout);
// int main() {
// debug << "Debug" << std::endl;
// debug.on() = false;
// debug << "This line will not print... |
b6610b7f0a658149db634879c7bdec32aca5371a | e2029872bcf1feead431d3eb155ddc91036d9317 | /Migrator/TypeAvailability.cpp | 34a13f5ad19d69b19dcd148242f751dab9371998 | [
"Artistic-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | FingerLeakers/emojicode | 604d14a11ca7716b0488bc0d3d5ce3f573bfe2a3 | 1e5b1a6f287998639cd43152f37482125ab3d96a | refs/heads/master | 2020-03-12T06:16:48.757828 | 2018-04-09T13:02:51 | 2018-04-09T13:02:51 | 130,481,785 | 2 | 0 | null | 2018-04-21T14:34:08 | 2018-04-21T14:34:08 | null | UTF-8 | C++ | false | false | 468 | cpp | TypeAvailability.cpp | //
// TypeAvailability.cpp
// Emojicode
//
// Created by Theo Weidmann on 13/04/2017.
// Copyright © 2017 Theo Weidmann. All rights reserved.
//
#include "TypeAvailability.hpp"
#include "CompilerError.hpp"
namespace EmojicodeCompiler {
void notStaticError(TypeAvailability t, const SourcePosition &p, const char *... |
7f7e45a98ee3b2c17a0ed41055b21c3862b1efcb | 4703e7ae907292598812704846a97db3533f4dc7 | /VektoriaApp/Connection.cpp | e9a866785e210ed64633cf91c392d15bef632490 | [] | no_license | cutecrait/marsgodgames | 57495692f3a14945c7c504263c8e87f7e99561fa | 6f1a94cc0172a27c0ef7150bb1f023c98fc6a6cd | refs/heads/master | 2023-06-24T11:42:43.377216 | 2021-07-26T09:39:10 | 2021-07-26T09:39:10 | 353,086,425 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | Connection.cpp | #include "Node.h"
namespace Pathfinding
{
Connection::Connection(Node*& node, int cost)
{
_node = node;
_cost = cost;
}
Node* Connection::GetNode()
{
return _node;
}
int Connection::GetCost()
{
return _cost;
}
}
|
551db3db82d1a6e0b138be3d85d22557bf3f0fe3 | 4b1ebdf8b9f92e167a649a76ee79f99ac5ff705e | /uva00989.cpp | 0834a477fb651bc6b6d5ef428c2cf5c541ca099f | [] | no_license | ngoxuanhuy/Programming-problems | d346fac29fa9e84d9f9159b65bf4e0cd36577070 | 113dfbfa97a786eb5bb48eed12afc85580f3924f | refs/heads/master | 2020-06-13T04:10:12.366664 | 2018-10-07T03:08:18 | 2018-10-07T03:08:18 | 75,448,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,807 | cpp | uva00989.cpp | #include <stdio.h>
int N;
int n;
int matrix[15][15];
int numOfZeros;
bool found;
void backtrack(int, int, int);
bool canFillRow(int, int);
bool canFillCol(int, int);
bool canFillSquare(int, int, int, int);
int main()
{
//freopen("input.txt", "r", stdin);
int tc = 0;
while (scanf("%d", &n) == 1)
{
N = n * n;
tc+... |
66ac5c0f905d91543041449ce65a576b1e291682 | 439031649964b9eaaca7a268528eab1e7ae960b5 | /TimerShoot.h | a28931fb3b44b1c0e3029fc9da9a4a7fdf394b34 | [] | no_license | Nekomeshi/NikonRemoteTimer | a7bbbd328da8cd297022558905a7469edf06f8a3 | a535cea90d375954fab89369c4a79cd975bb5a1c | refs/heads/master | 2020-12-10T02:05:20.888364 | 2020-01-12T23:57:47 | 2020-01-12T23:57:47 | 233,477,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | h | TimerShoot.h | #ifndef __TIMER_SHOOT_H__
#define __TIMER_SHOOT_H__
#include <Arduino.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "TimerArea.h"
#include "SettingItem.h"
#include "CaptureCtrl.h"
#include "TimerSetting.h"
class TimerRepeatArea{
private:
Adafruit_SSD1306 *m_pScreen;
int mLeft;
int mBottom;
i... |
bc0655ab30efb40afd9a80ee34f44f30e8bfd51e | aaeee1eb8617c9aa5826c81e12b75e4ea2286246 | /midi_utility.h | e588a9ea9ac05b913fc49d8ce37ff649fbb435ac | [] | no_license | bigsleep/tsynth | b63958bc5c5c31e874c0d7dca3e29bcb818923aa | 222a3359890cd8ef07520fdcc0dfb596f0442008 | refs/heads/master | 2021-03-12T22:48:52.346289 | 2011-02-10T05:38:46 | 2011-02-10T05:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,997 | h | midi_utility.h | #ifndef SYKES_MIDI_UTILITY_H
#define SYKES_MIDI_UTILITY_H
#include <cstdint>
#include <cstddef>
#include <cmath>
namespace sykes{
namespace midi{
extern std::uint8_t const min_note_number;
extern std::uint8_t const max_note_number;
extern std::uint8_t const note_table_size;
extern double const note_ta... |
20b163456d90d38d439b0efaa6fde4df08ba5b7e | dcbf447ac034efe3f68ada71c8375f932b1e3fe5 | /projects/bemWrapper/bemWrapper.cpp | afd696117cf438dc69489d952e7ef3a3e1cac608 | [] | no_license | alexaschor/QUIJIBO | 19e839e38f751d1d6466da78847239415360a858 | 718abae10f18c6b24d36ddf4e01735bdd15d117d | refs/heads/main | 2023-06-02T20:13:15.398602 | 2021-06-18T16:20:32 | 2021-06-18T16:20:32 | 378,004,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,855 | cpp | bemWrapper.cpp | /*
QUIJIBO: Source code for the paper Symposium on Geometry Processing
2015 paper "Quaternion Julia Set Shape Optimization"
Copyright (C) 2015 Theodore Kim
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... |
bdab7def83a2fd01f995c593c53d12aa3a6cbcdb | 33b95f22a5cd1ddfa8e8eab48e00371c89c4be69 | /src/citationdisplaywindow.cpp | 0c026dc1a034cc98b68406393e4a9fa99e6e967f | [
"Apache-2.0"
] | permissive | Joseph-Christman/LibreCite | a67be724ef4ee0799628de3fc9939a3a518e6f9b | bb7f5075d6779ef09cacde862357dbe40468807a | refs/heads/master | 2020-03-21T16:37:48.142372 | 2018-08-14T22:10:41 | 2018-08-14T22:10:41 | 138,782,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | cpp | citationdisplaywindow.cpp | /*
Copyright 2018 Joseph W Christman
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 writing, softwar... |
06cba5270c6e3f64f9e5eaad8281edad9de0fc7e | 156c0861ce5650248099d917bc22dfe1b012c7cb | /第3章/第三章/3.32.1.cpp | 3deaf2c85f3634ccf5d8e42b9dc91b4211059ee8 | [] | no_license | bietaixian/cppPrimer5th | ba1309bdf2c0e2be80b8da26e1ee442ead611606 | 82a4866512f770f8e8d7010172db414cdf3911e0 | refs/heads/master | 2020-04-02T05:49:24.490678 | 2016-06-22T02:39:20 | 2016-06-22T02:39:20 | 61,682,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | cpp | 3.32.1.cpp | //#include <iostream>
//#include<vector>
//using std::vector;
//using std::cout;
//int main()
//{
// int v[10] = {};
// vector<int> v1;
// for (int i = 0;i != 10;++i) {
// v[i] = i;
// }
// for (decltype(v1.size()) i = 0; i < 10; i++)
// {
// v1.push_back(v[i]);
// }
// for (auto i... |
bc3addb89f75fef5bb470e519a9646e3f37b5fda | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest3/0.025/turbulenceProperties.I | c7d23612c51da1f3064a7185440ddd1cab6f8cf8 | [] | 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 | 154,471 | i | turbulenceProperties.I | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... |
e38a4f1afdcbaa1d8d0b477d7863f43f2bbff71d | edd0b3a3164ee8375471159b88b7939d286a439f | /Source/Include/log4cxx_enabler.h | 08305bd5c51fbcf55e0379250eff6f63d968f70e | [] | no_license | alrondo/TripLineGt | 4741bfa280b2649111a2e591555a5397be5b10dc | c58078f1e288983586a8af9236b7348cd31d13f4 | refs/heads/master | 2020-12-02T16:41:53.886303 | 2017-10-18T03:36:46 | 2017-10-18T03:36:46 | 96,568,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,360 | h | log4cxx_enabler.h |
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable : 4275 4251 )
#endif
#include <log4cxx/logger.h>
#include <log4cxx/propertyconfigurator.h>
#include <log4cxx/xml/domconfigurator.h>
#include <log4cxx/helpers/exception.h>
#include "log4cxx/basicconfigurator.h"
#include "log4cxx/rollingfileappender.h"
#i... |
5b31ad27e9eeec88a9114aa4e4bf0932c911b041 | bc0ba5bc714a8409a5e770731c70fbb4ef974060 | /시도4/cppcheck-1.56/lib/checkobsoletefunctions.cpp | eafc89fec156ad7006a332a800fde0b9dbb96cd4 | [] | no_license | swmaestro2012/somap312_11 | f6282e9da975953d9fa047b190e15b1032cc1a23 | 7c5759313bc29997da494c4796cb9f290e713df7 | refs/heads/master | 2016-09-06T13:49:59.656976 | 2012-11-21T09:59:51 | 2012-11-21T09:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,765 | cpp | checkobsoletefunctions.cpp | /*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2012 Daniel Marjamäki and Cppcheck team.
*
* 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 3 of th... |
2e9dd4e34e2cf2b12a8199f32efe5f44584f4748 | c7f63783d04104824e175238f45e9e8c6f257b0b | /table.h | 072d6523f54c8e365cc4099bb906ae619ab7897b | [] | no_license | emptyindex/Bloom_Filter | 5ef3d0aaf765ddcccf06ff014f1ce766979e7bba | eaccdafb6c29fec711b76dd5227e29c8b9fbf66b | refs/heads/master | 2020-04-26T15:31:40.693840 | 2019-03-04T00:59:32 | 2019-03-04T00:59:32 | 173,649,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | h | table.h | #include <iostream>
#include <string>
using namespace std;
#pragma once
#ifndef TABLE_H
#define TABLE_H
class Hash
{
public:
Hash(int k, int v) //Hash Table constructor with 2 parameters of type int k and v
{
key = k; //sets the value of key equal to parameter k
value = v; //sets the value of... |
4a1049498a0a8b2557e79cc353e0b0c6420ae8cc | a59cb261cc7481cdebfa1f6b5033ece04d9fbf0c | /Cloud/Cloud_To_Cloud/src/WuLianHttpRequest.cpp | 87ff545621883946d384b6c1497b3cb0611c9de4 | [] | no_license | itliang/IoTEcosystem | f547bd72a7d4b48d6eb8631dc2837cf8bfc1f2a0 | 30b8a546f27b440943d6c96852e75bb7040f3b48 | refs/heads/master | 2020-05-31T22:18:48.446060 | 2017-08-28T06:13:28 | 2017-08-28T06:13:28 | 94,051,393 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,712 | cpp | WuLianHttpRequest.cpp | #include <time.h>
#include <openssl/md5.h>
#include "WuLianHttpRequest.h"
WuLianHttpRequest::WuLianHttpRequest()
{
mBaseUri = "https://v2.wuliancloud.com:52182";
mCmdInit = "cloudinit";
mCmdBindDevice = "bindDevice";
mCmdGetDeviceByUser = "getDeviceByUser";
mCmdCommDeviceCtr = "forward12";
mIsSig... |
8229e802ae29bcdeede6f32a26f63687a2c5812b | 50a2b61fb364ee7af6bb91d469c415715d980016 | /src/system/kernel/utilities/TimeoutGuard.cc | 14edab8670bbba58ecc75e9b94afa3bd101d4038 | [
"ISC"
] | permissive | miselin/pedigree | 324d0adbbb0bb44b5ce70d6f628c28316e43d05c | 6c168a1d1288751e065f93f5bdf35fdcc2a8e9ea | refs/heads/develop | 2023-06-19T06:57:50.162898 | 2023-05-29T02:37:39 | 2023-05-29T02:37:39 | 10,308,144 | 52 | 15 | NOASSERTION | 2020-03-07T22:03:33 | 2013-05-27T04:59:23 | C | UTF-8 | C++ | false | false | 4,148 | cc | TimeoutGuard.cc | /*
* Copyright (c) 2008-2014, Pedigree Developers
*
* Please see the CONTRIB file in the root of the source tree for a full
* list of contributors.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notic... |
b51f3d9c51c9099dc282b8edab966779a6ac9676 | f091beaa217dd58c9d6beaf01a42c5bfc7e1df1a | /Ejercicio4.exe | 5b1216301b7fc478f03503cd1a376b7cf5f245bd | [] | no_license | Miguelmarro/LaboratorioFunda | 04f1187ae64006defe70cb811e722513a67c7802 | 8a5c3315b3fd3130af33d0bde0c4b9d4497b1a19 | refs/heads/master | 2021-04-24T02:28:53.676979 | 2020-07-13T01:27:34 | 2020-07-13T01:27:34 | 250,061,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | exe | Ejercicio4.exe | #include<iostream>
#include<string.h>
using namespace std;
int main(){
int longitud;
string palabra;
cout << "Ingresar palabra para verificar si posee 10 caracteres y si es par o impar." << endl;
cin >> palabra;
longitud = palabra.size();
if (longitud >=10){
cout << "La palabra tie... |
3ed666fb97e40ea2c0b423e50128e3f5485859d7 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/25/838.c | ace5a1b094cd0abf0e76d110282eb887f1152cce | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | c | 838.c |
int main(){
char ANS[MAX];
memset(ANS,0,sizeof(ANS));
ANS[0]='1';
ANS[1]='\0';
int N;
cin>>N;
for(int i=1;i<=N;i++){
int LEN=strlen(ANS);
int g=0,h=0,k;
for(k=0;g||k<LEN;k++){
int mk=0;
if(k<LEN) mk=ANS[k]-'0';
... |
905f626a9dfca9504e226e0235ca528955601d44 | b2156a33fc7667b6c7e8e150591f5df5c01d45f3 | /include/processor.h | 21e29d4ff5dc141845ec120dca63b672f3156340 | [
"MIT"
] | permissive | HARIKABANDARU/CppND_System_Monitor | e322b9d25dbefa525bc5f9a906237b6e2db77ce7 | f19ec89ec1fb6b657d083418cd2006482e0b9040 | refs/heads/master | 2021-05-23T16:58:38.061184 | 2020-04-06T14:52:56 | 2020-04-06T14:52:56 | 253,391,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | processor.h | #ifndef PROCESSOR_H
#define PROCESSOR_H
#include <string>
using namespace std;
class Processor {
public:
float Utilization(); // TODO: See src/processor.cpp
// TODO: Declare any necessary private members
private:
string cpuName;
int idletime;
int workingtime;
float cpuUtilization;
float totalTime;
};
#end... |
0ec259615cebe3b39ecff8ca5fee2e8368a5ca12 | c291f81e729d070421443a1553892db4a4edd58b | /src/iModTracker/ART.h | 5ed8bd6220173832254a47f187ad501a40a66987 | [] | no_license | lyh458/InteractionModels_DemoCode | 2ed94d96b4453953a2dbcdf8f53b2983f25d6510 | ef46a10245a1e2c002c489b48baca4487ce447a0 | refs/heads/master | 2020-07-15T19:57:58.678927 | 2017-10-20T16:38:56 | 2017-10-20T16:38:56 | 205,638,579 | 1 | 0 | null | 2019-09-01T06:30:33 | 2019-09-01T06:30:32 | null | UTF-8 | C++ | false | false | 3,632 | h | ART.h | /*
* ART.h
*
* Created on: Sep 24, 2013
* Author: ddvogt
*/
#ifndef ART_H_
#define ART_H_
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
#include "DTrackSDK.hpp"
#include "Target.h"
#include "../utils/Configuration.h"... |
f135d4830d693480424f8f20a51fe040675746fe | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_block_1334.cpp | 606bb1965f4b281e5cb69e3f51e9feb336b2503c | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | Kitware_CMake_repos_block_1334.cpp | {
(void)buff;/* UNUSED */
(void)size;/* UNUSED */
(void)offset;/* UNUSED */
archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
"zisofs is not supported on this platform.");
return (ARCHIVE_FAILED);
} |
2f17bbabf87433d20aded060486e64d8d3309982 | 6daed33da78218d059cbe056a92c0c494a89bcf7 | /enemy.cpp | 42af3146fa0984f31a609b38fe5fa94ae727df1b | [] | no_license | Kaiyu-Zhang/Tower-Defense-Work | 2a30da6bb89916d07b80b3f086f4963a315f9b62 | 7bba2fcda18927ff36bd8b4e769b992e47476d1a | refs/heads/master | 2022-11-05T03:18:56.424636 | 2020-06-28T16:29:11 | 2020-06-28T16:29:11 | 266,687,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,827 | cpp | enemy.cpp | #include "enemy.h"
#include "turnpoint.h"
#include "tower.h"
#include "function.h"
#include "GameWidgetA.h"
#include "musicplayer.h"
#include <QPainter>
#include <QColor>
#include <QDebug>
#include <QMatrix>
#include <QVector2D>
#include <QtMath>
static const int Health_Bar_Width = 20;
const QSize Enemy::ms_fixedSiz... |
56e264111169f993185160dfeb57a5ae34450fad | 8c84e5b561c66ab4e7c65688339b5a1e3f5dd98e | /CCF-2018-03/3.cpp | c186f0219dd172453b3ce7a03a693ac670b22570 | [] | no_license | jy0205/CCF | 7c5dae19b472e450c5fa28fb3401097725930e82 | 89d02c2e364a6fa9d050616d5abeb2cec697334b | refs/heads/master | 2020-04-19T18:50:53.148557 | 2019-02-09T12:54:32 | 2019-02-09T12:54:32 | 168,184,536 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | 3.cpp | #include <iostream>
#include <string>
#include <vector>
#include <cctype>
using namespace std;
vector<string> role_name;
vector<vector<string>> roles;
vector<vector<string>> https;
vector<string> deal_str(string line){
vector<string> role;
role.push_back("/");
line = line.substr(1);
while(line.size(... |
ba0ad8fdd6939664eef44bda3ac747ed8ddf14f6 | e75dbee79eadab65c5153900aba3e7978814e1c0 | /WirelessNetworkSimulator/Network/Routing/MWISHeuristic.h | 22aac645ebe330b4633bb54a847c74f48bf64dfb | [] | no_license | fabiorjvieira/wireless | a99bdfb5c27bc1725b1816f19323153250b272a5 | 03ad5a634de493999e0896d79cfd015963248e4e | refs/heads/master | 2022-11-05T09:41:24.072744 | 2020-06-26T11:20:49 | 2020-06-26T11:20:49 | 25,263,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | h | MWISHeuristic.h | /*
* MWISHeuristic.h
*
* Created on: Feb 7, 2009
* Author: fjimenez
*/
#ifndef MWISHEURISTIC_H_
#define MWISHEURISTIC_H_
#include "AllRoutesDiscover.h"
namespace Networks {
namespace Routing {
namespace Heuristics {
#define MWISscore(score, alfa) ((alfa) * (score[Support::SUM])) + ((1-(alfa)) * (score[... |
dd9b68785c68e26e983076a0e6a9ea14c635cb72 | 6475459339c72d7733721f26e8b08cfc0661083c | /Inzynier.h | 80fd8ffe4abf2864abd34cdb60e99b300e28cc44 | [] | no_license | KrzysztofStamirski/projekt1_ostatecznyv3 | 611ee91f23eaf3a7e3d6803077afe3d1119de319 | 10025b6d4f6ee274c24d72f8fe0593ad3d45b5b2 | refs/heads/master | 2023-03-09T09:36:39.793097 | 2021-02-13T22:56:28 | 2021-02-13T22:56:28 | 338,686,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | Inzynier.h | #ifndef INZYNIER_H
#define INZYNIER_H
#include "Pracownik.h"
class Inzynier: public Pracownik {
public:
Inzynier();
void print();
virtual ~Inzynier();
static int get_liczba();
static double get_CI();
static const int wynagrodzenie = 6000;
private:
string wydzial;
string ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.