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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33249b580100c3d6417baecd0d3a85bf37a1c577 | 6c77b4db43660b7bdeb3a636de69623114ff3f35 | /fusion-ws-player/cpps/src/Log.h | 9cc4599b8e6fca320167dd5818860d12a9d96e4b | [] | no_license | ericma2014/wasm-video-player | 04258cb449ca10b2743622e33b43a1753daadbd6 | 110beae4d2d5bcbc3c73fa3f936156661da79d24 | refs/heads/master | 2023-03-23T22:09:23.141308 | 2020-05-14T06:58:23 | 2020-05-14T06:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | Log.h | #ifndef WELLDONE_LOG_H
#define WELLDONE_LOG_H
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
#include <sys/timeb.h>
class Log
{
public:
Log();
Log( char * tag);
~Log();
void enable(bool enable);
void info(const char* format, ...);
void warn(const char* format, ...);
void error(const char* format, .... |
74050d5bdc8bf5aaadc98a7296c24ce7885964ff | 50cad2c1bd73dfd92184d7b41441eee9c2aa82b6 | /src/cross/Service/Service.cpp | 07b080876fb97d77f7f84a2f93695d604dafe370 | [] | no_license | bman7777/cross | 46ce38dc353ecd6cd04f85c3339dacf6246f96d2 | fe15e99fa0796e475f041e2cd8a674b91e1d9a55 | refs/heads/master | 2021-01-23T15:41:53.069156 | 2014-06-21T16:42:36 | 2014-06-21T16:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | Service.cpp | /****************************************************************/
/// \class Cross::Service
/// \ingroup Service
/// \date Oct 4, 2013
/// \brief A base class for services that provides support for
/// service keys that index into contexts.
/****************************************************************/
#i... |
bb234aee75d4c7254c489a1bfecd717fa0cc7be8 | 61c8fc5b49bc9be71bb0da73d4a6c9eeb2c861d2 | /BackjoonAlgorithm/7562. 나이트의 이동.cpp | 8c875bcefb76f048040ff63b025a8f43d51c983a | [
"Unlicense"
] | permissive | Minusie357/Algorithm | 188e8555b5edcf425a35e7228b7df4123a1cb7a1 | f579f91024a582cdf7e36591308123f8c920e204 | refs/heads/master | 2022-06-18T06:50:13.904143 | 2020-05-14T13:42:47 | 2020-05-14T13:42:47 | 191,180,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,392 | cpp | 7562. 나이트의 이동.cpp | //#include <iostream>
//#include <queue>
//#include <utility>
//using namespace std;
//
////#define DEBUG
//#ifdef DEBUG
//#include <chrono>
//#include "Utility.h"
//
//chrono::system_clock::time_point Start;
//chrono::nanoseconds Time;
//#endif
//
//
//
//int main()
//{
// ios::sync_with_stdio(false);
// cin.tie(NULL... |
8c43ef4a638da269dfba956f04e13cefebc50f54 | d8d7fd76c42c0aefb3bc52dbe42e1c6c378288a9 | /Algorithms/Strings/Anagrams.cpp | 33a3eeda4c01625093731ee424e8de2ea406d964 | [] | no_license | 66kesara99/Hackerrank-Random | ab15abdc5d19584a4b9b1a610c8f1727dae7bfbb | 08837ca8f69cedc8185f2a0ce297f88db55114df | refs/heads/master | 2020-05-21T22:50:50.284659 | 2018-06-16T15:16:10 | 2018-06-16T15:16:10 | 50,111,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | Anagrams.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int t;
cin >> t;
for (int a0 = 0; a0<t; a0++){
int charcounta[26] = {0};
int charcountb[26] = {0};
int ans = 0;
string s;
cin >> s;
int len = s.length();
if (l... |
53f7eddb855515a882b13235fe215f86f7e9ac13 | 506d3798f4b191d91bc9ed88aa1a437b4cabe5c4 | /profiledialogue.cpp | b0dd271e5b4b571d9b26e2bc6ead4d44414b3476 | [] | no_license | shihabshahriar16/Social-network-with-messenger | 7607039f66bf58b59cdb80d0cd543dfd5cf25f00 | 392a896a387bafa24c74bf4b6580b4bd0e46a3ec | refs/heads/master | 2020-07-19T07:35:16.574744 | 2019-09-05T08:51:25 | 2019-09-05T08:51:25 | 206,402,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,530 | cpp | profiledialogue.cpp | #include "profiledialogue.h"
#include "ui_profiledialogue.h"
#include "newpostdialogue.h"
#include "updateprofiledialog.h"
#include "user.h"
#include "global_var.h"
#include <string>
#include <QMessageBox>
#include<QString>
#include <QSqlDatabase>
#include<QtSql/QtSql>
#include<QtSql/QSqlDatabase>
#include<... |
750f43ec178ccd89308130c6367dfbf66e2e7bbd | 26a0d566b6e0b2e4faf669511b3ad5df7ee93891 | /codeforces/seerc-2018/c.cpp | ee4e9a86f573da9476afd2916071f57b5fec1645 | [] | no_license | sureyeaah/Competitive | 41aeadc04b2a3b7eddd71e51b66fb4770ef64d9d | 1960531b106c4ec0c6a44092996e6f8681fe3991 | refs/heads/master | 2022-09-13T20:46:39.987360 | 2020-05-30T23:20:41 | 2020-05-30T23:31:11 | 109,183,690 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,023 | cpp | c.cpp | // Gear4
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define FOR0(i,n) for(int i=0, _##i=(n); i<_##i; ++i)
#define FOR(i,l,r) for(int i=(l), _##i=(r); i<_##i; ++i)
#define FORD(i,l,r) for(int i=(r), _##i=(l); --i>=_##i; )
... |
f8e838289a2b1528f2649f75e63bacc16dc1e883 | 3ce52ef410c5421b4f7e02472cbf324c5dafa691 | /include/FileSystem.h | 648a74891452bb8b008dfa065011f9bd2c28aaba | [] | no_license | klepaczmikolaj/FileSystem | 9313ebda4f5fbcf54aa20e82e7821beeba2e65b9 | 81d09a59008127286532a92b08bbecaaab925c3a | refs/heads/master | 2020-04-15T21:50:45.587221 | 2019-01-20T17:25:40 | 2019-01-20T17:25:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,092 | h | FileSystem.h | #ifndef FILE_SYSTEM_H
#define FILE_SYSTEM_H
#include <fstream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#define MAX_FILENAME_SIZE 128
#define KILOBYTE 1024
class FileSystem{
... |
d953f934bb029a0532ffb494f54a0a3f8704185a | eaa3875ea6111a4542b78ee84227784eb01cda9b | /src/video/decoder.cpp | be02f98751ee353b21426cae873d2f30eb92ef77 | [
"MIT"
] | permissive | guidebee/irobot | 36f864345be3ead74d85b7d9f21b706a62de72c1 | 261d334d7c16971d791840588abc2904a1d83eaa | refs/heads/master | 2022-11-16T10:11:35.586686 | 2020-07-12T08:30:02 | 2020-07-12T08:30:02 | 242,664,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,751 | cpp | decoder.cpp | //
// Created by James Shen on 25/3/20.
// Copyright (c) 2020 GUIDEBEE IT. All rights reserved
//
#include "decoder.hpp"
#include "ui/events.hpp"
#include "util/log.hpp"
#include "video/video_buffer.hpp"
namespace irobot::video {
// set the decoded frame as ready for rendering, and notify
void Decoder::PushFrame... |
69bec879fca3673c3eec4d2900d902fb4b85f3ee | fdb0396afa8f32d36b02050a9d0e6d6d8d91a2f2 | /cpt1greg/io.cpp | ec72e9edb74d949c945fcb75ec9abd56f541e580 | [] | no_license | gregsouza17/cppweekly | f9b98ec6161985773ab24517d8c355ed8a6be918 | ed2aabb6aee8d8abc80f0726b6ee1fb586d86d00 | refs/heads/master | 2020-03-29T07:08:04.604770 | 2019-02-21T11:57:41 | 2019-02-21T11:57:41 | 149,654,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | io.cpp | #include <iostream>
int readNumber(){
/*Asks the user for a number input, returns it. */
int number;
//asks user for input
printf("Please, input a number:\n");
std::cin >> number;
return number;
}
void writeAnswer(int firstInput, int secondInput){
/*Print the sum of the two arguments*/
std... |
c74749695dfb61173c13a6ea0f68170f820eb54c | 2c78de0b151238b1c0c26e6a4d1a36c7fa09268c | /MDProcess/MDAModel/impl/SystemFunctionsImpl/SetGenID.h | c1b08299bc8146015d4ac491756f4cba8ec4d1f6 | [] | no_license | bravesoftdz/realwork | 05a3b308cef59bed8a9efda4212849c391b4b267 | 19b446ce8ad2adf82ab8ce7988bc003221accad2 | refs/heads/master | 2021-06-07T23:57:22.429896 | 2016-11-01T18:30:21 | 2016-11-01T18:30:21 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,594 | h | SetGenID.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Модуль: "w:/MDProcess/MDAModel/impl/SystemFunctionsImpl/SetGenID.h"
// генератор заголовочных файлов C++ (.h)
// Generated from UML model, root element: <<Servant::Class>> MDProcess::MDAModel::... |
2919a17f08fe6fc5dc37b443b2ad6da03bc7a1bc | 299b377022f52b20e3c9696950da9007e9b078a4 | /src/optimization/models/LAV.cpp | 3b4dc950297cec4deefd30523f4518d6e98c291d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sg0/Elemental | 43cba65d001de299167363c349127cf8c23f7403 | 614f02509690449b553451e36bc78e7e132ea517 | refs/heads/master | 2021-01-15T09:33:56.394836 | 2016-02-29T18:25:53 | 2016-02-29T18:25:53 | 19,929,637 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,450 | cpp | LAV.cpp | /*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
// Least Absolute Value (LAV) regres... |
a97d8f607ba2e0413ed6088d1445f11a1235e195 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/spotfinder/dxtbx_toolbox/libdistl.h | 5ae6559636e3294209e7cc5030e019df88e6ba92 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL",
"MIT"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | C++ | false | false | 837 | h | libdistl.h | #ifndef DXTBX_WRAP_LIBDISTL_H
#define DXTBX_WRAP_LIBDISTL_H
#include <spotfinder/core_toolbox/libdistl.h>
#include <dxtbx/model/panel.h>
#include <dxtbx/model/beam.h>
#include <scitbx/vec2.h>
#include <scitbx/vec3.h>
using namespace std;
namespace Distl {
class dxtbx_diffimage: public diffimage {
::dxtbx::model:... |
153e4598e5b2f375a327787902cd269b9e2f380d | 43880b6b86f44c8ce73d881de1f78a60995e11aa | /TGP_Duos/Intermediate/Build/Win64/UE4Editor/Inc/TGP_Duos/TGP_DuosProjectile.gen.cpp | cb9e81844c962ead45300e6a5799a5e65dc6f276 | [] | no_license | hallamrear/TGP-Duos | b9b1b5761b3e0f0f448f106b990b15a4b2afeef0 | eabe9ec71604af348c50160122b528681695322b | refs/heads/master | 2021-10-10T04:05:33.618041 | 2019-01-06T22:35:28 | 2019-01-06T22:35:28 | 156,691,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,276 | cpp | TGP_DuosProjectile.gen.cpp | // Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
27ca0c7a5f2b535174e750b78d575d36170bc40c | 2aed63d9aa027419b797e56b508417789a604a8b | /injector2degHex/case_interPhaseChangeFoam_3mm/processor3/0.5/alpha.water | af29fd10bc0a0aeb4aaef5f2f96abb8b73d63a85 | [] | no_license | icl-rocketry/injectorCFDModelling | 70137f1c6574240c7202638c3713102a3e1e9fd8 | 96591cf2cf3cd4cbd64536d8ae47ed8080ed9016 | refs/heads/main | 2023-08-25T03:30:59.244137 | 2021-10-09T21:04:45 | 2021-10-09T21:04:45 | 322,369,673 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 47,520 | water | alpha.water | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
... |
37d16fe0c541e7ece0716a548f79867da92bcb04 | 9872a45b3eda1be44c8972bbaa9b2b762537a45e | /Gyro.h | 3e5ceb197c36dcb8b39eadddb8a5b2d102fc56c9 | [] | no_license | DeltaAndFriends/Delta_Robot | 328d8a8ff5cdf64738488286d5dda9fd7f4f40cf | 1e5a09348fb7f97ed6113abad5da29eae41cc990 | refs/heads/master | 2020-03-30T10:54:40.096984 | 2018-10-01T19:48:30 | 2018-10-01T19:48:30 | 151,142,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | Gyro.h | #ifndef Gyro_h
#define Gyro_h
#include <ArduinoSTL.h>
#include "Config.h"
namespace Delta
{
enum class GYRO_DATA
{
X,
Y,
qty
};
static const int gyro_error{-32767};
using GD = GYRO_DATA;
class Gyro
{
public:
Gyro(GYRO_PIN pin);
~Gyro();
void setup();
void rea... |
9c55ea337c8f086cf99f7455c9487a6eee8b9c6b | 6977ce2c9f2c29b37cbb203b74dd1b1e930705d7 | /troegubova_aa/task6/Snake.cpp | 34f75216668d32bbdb79eb751a47f7548eb15707 | [] | no_license | alvls/mp1-2020-1 | 80ca6aa9de56bdd0b5054a6090e01fdb32d0f2cc | f091d450c85c8678c81632495dc49c984f06a523 | refs/heads/master | 2021-01-03T18:40:39.482160 | 2020-06-01T11:35:29 | 2020-06-01T11:35:29 | 240,188,887 | 0 | 19 | null | 2020-06-21T21:27:56 | 2020-02-13T06:01:41 | C++ | UTF-8 | C++ | false | false | 15,655 | cpp | Snake.cpp | #include"Snake.h"
#include<iostream>
#include<vector>
#include<string>
#include<conio.h>
#include<time.h>
#include <windows.h>
Food::Food(): Line()
{
color = { 245, 17, 97 };
}
Food::~Food()
{}
void Food::Draw()
{
x2 = x1;
y2 = y1;
Line::Draw();
}
bool Food::Check()
{
if (((x1 + 5) % 15 == 0)&&((y1 + 5) % 15 ... |
43f9a27e519f67aa08297dc1770e0985f0060503 | 17e326bced8e286cf91333ee40de2ae239c4638f | /TestTool/MCU/Arduino/Arduino Uno/Arduino_Uno_Wirelss_Communication/Arduino_Uno_Wirelss_Communication.ino | 8f242d00f597a7dafd2afec0e9c316b95b47a238 | [] | no_license | HumorLogic/Auto-Delivery-Robot | 98137d82ff3115ebd45de78f7c0cb0a2aa57fbfe | d74321215fe6ef4bc9af830ea037a82fd5ab8826 | refs/heads/master | 2020-09-28T11:46:36.203066 | 2020-01-01T00:20:08 | 2020-01-01T00:20:08 | 226,772,160 | 1 | 0 | null | 2019-12-18T15:08:30 | 2019-12-09T02:57:42 | C# | UTF-8 | C++ | false | false | 1,780 | ino | Arduino_Uno_Wirelss_Communication.ino | #include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); //RX TX
const int LedPin = 13;
const int motorA_PWM_pin = 6;
const int motorA_IN1_pin = 7;
const int motorA_IN2_pin = 8;
int ledState = 0;
int motorState = 3;
void setup()
{
pinMode(LedPin, OUTPUT);
pinMode(motorA_IN1_pin, OUTPUT);
pinMode(motorA... |
c0e30f357804b1c8ab27ad3db1a6bc14840d0004 | c9063ce988e63ef9904eb7be0ab515004056f476 | /PosteriorDistributionCL/LogisticRegressionPosterior.h | 0dc2a4642a3c86c559fcec8b557b8e2515d1afcb | [] | no_license | kwathen/PosteriorDistribution | 355b70f55d473b7f5afd98c7e6e4d9b605529158 | 6068ea7a32ea4afdc2c069623155eecef834dd48 | refs/heads/master | 2020-03-22T11:56:02.690961 | 2019-06-17T11:12:29 | 2019-06-17T11:12:29 | 140,005,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | h | LogisticRegressionPosterior.h | #pragma once
#include "PosteriorDistribution.h"
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
class LogisticRegressionPosterior :public PosteriorDistribution
{
public:
LogisticRegressionPosterior();
~LogisticRegressionPosterior();
double CalcualteLogPrior(const boost::nume... |
df9b126dac70e8225da36ba25b46fe05f945c5d0 | 93cdde5d9d5d248b85b0c7cbf1f1ae76ad51b6b0 | /second_cpp/src/VoxelNet.cpp | b31488e1d01815438ff5a96e8443a301ae836396 | [] | no_license | 841661831/perception | 539a476d649e9a4364ad01f3405a8db1c078640f | 31918e28fa3390390c4ea6208132d48164f95f73 | refs/heads/master | 2021-07-08T16:05:41.591419 | 2021-06-18T05:29:52 | 2021-06-18T05:29:52 | 246,080,065 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,949 | cpp | VoxelNet.cpp | //
// Created by chenxiangyang on 3/2/21.
//
#include <iostream>
#include "VoxelNet.h"
#include <vector>
#include <string>
#include <torch/script.h>
#include "voxel_encoder.h"
#include "middle.h"
#include <ctime>
#include <boost/geometry.hpp>
#include "../inference.h"
//Pred_dict prediction_dict;
std::map<std::string, ... |
ff64983ab94ca05262a9b622b4899d4a524596d0 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/engine/shared/application/PlanetWatcher/src/win32/ColorTableItem.cpp | 521d19c4a49bcc55ee3c975d8caf964b89ef50c1 | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 2,648 | cpp | ColorTableItem.cpp | // ============================================================================
//
// ColorTableItem.cpp
//
// Copyright Sony Online Entertainment
//
// ============================================================================
#include "FirstPlanetWatcher.h"
#include "ColorTableItem.h"
// =========================... |
788c737c8441c5584f63beaebb155d6428cb7646 | c379115f0be03956964992c7172c58c2cabbc577 | /problem3.cpp | d34a516161a88d8d6af84374824efe354adb2f1b | [] | no_license | DinhH/Euler | f9c031cf18ea44a8ca963cde7208a7b6ca1152e5 | d904123d3dca1d13bb9aad78dfc0079cae9518a5 | refs/heads/master | 2016-09-06T02:36:37.137643 | 2015-06-17T14:58:06 | 2015-06-17T14:58:06 | 24,312,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | cpp | problem3.cpp | #include <iostream>
int main() {
long number = 600851475143;
long divide;
for (divide = 3; divide != number; divide += 2) {
if (number % divide ==0) {
number /= divide;
}
}
}
|
f7598677d1eb63016fafe54995a9fb4d575ed70f | c73b25c20f3b56343ae31399a4d51134098451f3 | /cpp/SampleCommands/cmdSampleToggleLayer.cpp | 5e69a8b41d4038a1df2ba31a74fbc937093fe1e1 | [
"MIT"
] | permissive | deKlerk/rhino-developer-samples | b3fe59392729ab2ab168945c5f7accbfc1bb7f7c | 7f26b4d48c0579e97fe5964fe27ebed5168c135a | refs/heads/master | 2020-03-27T06:34:39.594185 | 2017-08-25T17:04:07 | 2017-08-25T17:04:07 | 146,116,291 | 0 | 1 | null | 2018-08-25T17:36:56 | 2018-08-25T17:36:55 | null | UTF-8 | C++ | false | false | 2,172 | cpp | cmdSampleToggleLayer.cpp | #include "stdafx.h"
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
//
// BEGIN SampleToggleLayer command
//
#pragma region SampleToggleLayer command
class CCommandSampleToggleLayer : public CRhinoCommand
{
public:
CCommandSampleTogg... |
4d7c271bc11af7fd8a6148bb9d6f46a803b2d147 | 46e1ec2efbe78bc84b36236bd77379a8d3449ffb | /commandinterpreter.h | e467a0b6118f95b05f954ffeab44d563d901ea9c | [] | no_license | nt7nguye/biquadris | 5e2e1f7468983a820e058af770ee9427ec9182a8 | 62f20f1a244e22db0d0f1255452d04a2cddd8761 | refs/heads/master | 2023-08-07T08:20:40.763015 | 2021-09-16T00:59:44 | 2021-09-16T00:59:44 | 406,970,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | h | commandinterpreter.h | #ifndef COMMAND_INTERPRETER_H
#define COMMAND_INTERPRETER_H
#include <string>
#include "game.h"
#include "prefixmap.h"
#include "commandtokenizer.h"
#include <vector>
class CommandInterpreter {
public:
static std::string const Restart;
static std::string const Sequence;
static std::string const Rename... |
0c497dc4f3d44bc638e3ea9b54de0f609283b936 | 35b6f66ef2dfb6b1d7e839e9513e08139a55b68b | /arduArm/source/arduArm/arduArm/MVector.cpp | 482e71bbfdf5b3a3016c4a92764d765b534dac5f | [] | no_license | vladislav06/arduarm | 04eacc524ae465307e2345636211b104f13001d1 | ffc39a570480c2ed18f962154f03a776e1cb3462 | refs/heads/master | 2021-03-14T17:59:22.072637 | 2020-05-15T10:28:49 | 2020-05-15T10:28:49 | 246,781,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | MVector.cpp | #define _USE_MATH_DEFINES
#include <cmath>
namespace MVector {
struct point
{
float x;
float y;
float z;
};
point sum(point a, point b) // c = a + b
{
point c;
c.x = a.x + b.x;
c.y = a.y + b.y;
c.z = a.z + b.z;
return c;
}
point dif(point a, point b) // c = a - b
{
point c;
c.x = a.x - ... |
8a57ea0eca2fdd0732276bd5a6d09004f5eca849 | a0e3518418469e263c7101033368f47af9afa800 | /srcs/Environment.cpp | 89ef6c5853ee0ffe18400daec2eddfecd7b6d470 | [] | no_license | qfeuilla/IRC | 9152b098a5871b578ba9815cff23a069c3110e71 | 373b83ab9b163afa6d3b045ef653a29ff3a94127 | refs/heads/master | 2023-03-05T04:57:09.773818 | 2021-02-16T15:19:20 | 2021-02-16T15:19:20 | 296,306,979 | 1 | 0 | null | 2021-09-27T18:57:44 | 2020-09-17T11:31:14 | C++ | UTF-8 | C++ | false | false | 6,829 | cpp | Environment.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Environment.cpp :+: :+: :+: ... |
4ca0672c3ce37fb9ea7c52a535122d245b20b418 | 01c286c750aa34f8bed760d3919e5a58539f4a8e | /Codeforces/749C.cpp | 719a0531454fb1367f93550e9895e3d5e97cdae2 | [
"MIT"
] | permissive | Alipashaimani/Competitive-programming | 17686418664fb32a3f736bb4d57317dc6657b4a4 | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | refs/heads/master | 2023-04-19T03:21:22.172090 | 2021-05-06T15:30:25 | 2021-05-06T15:30:25 | 241,510,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | 749C.cpp | #include <bits/stdc++.h>
using namespace std;
queue<int> qR, qD;
char c;
int n;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for(int i = 0; i < n; i ++){
cin >> c;
if(c == 'D')
qR.push(i);
else
qD.push(i);
}
while(1){
... |
f5b8c83147bfc72015bbdc1ad9f8861457224097 | 96087808a05a1a6beba14207b813ac7a152ef28a | /AlgorithmQuestions/AtCoder/arc064/c.cpp | fc3665912533630c20a5352344e8e8ebfd08d1f2 | [] | no_license | phonism/notes | d76dd50d1e5b9463c2b65eafca7a596bd97e523b | 97e72472657dfbabdf858fe812308790c0214a0b | refs/heads/master | 2022-09-10T04:23:39.394736 | 2022-08-17T12:28:30 | 2022-08-17T12:28:30 | 24,148,792 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | c.cpp | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
long long a[N], p[N];
int main() {
int n, x;
cin >> n >> x;
for (int i = 1; i <= n; ++i) {
cin >> a[i];
p[i] = a[i] + a[i - 1];
p[i] -= x;
// cout << p[i] << endl;
}
long long ans = 0;
for ... |
776a55cf48ac15fd37284970795602f26c81de94 | ec7a9036b51c2d54b2707c184b3d738f8fdd93e9 | /src/animations/ARight.cpp | 57640682262723d585eb8de85ea0d9395c1c967d | [] | no_license | xZwop/Gravedigger | b0f33088cb57d2d698db33fe2b21c7775dddb475 | 99230d1d07d6e7bb97387cfdec7a23940cd32e7b | refs/heads/master | 2021-01-16T23:12:59.752820 | 2013-01-21T20:00:13 | 2013-01-21T20:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | ARight.cpp | #include "ARight.hpp"
ARight::ARight(Character * _parent,
const sf::Int32 _moduloTime) : AAnimation(_parent,_moduloTime) {
}
void ARight::execute(const sf::Int32 elapsed) {
// TODO: Verif' they are existing components
// #1 get all components
CAcceleration * acceleration;
acceleration = (CAcceleration *... |
4fe7132db858975e04b1bba3e9aceaefc788a13c | 5c5e7b84ffa25a6aa8d87b9575b8dbd609541a8d | /user.h | 8a1e681ee31d7751144da59684415acc8f712591 | [] | no_license | jagrutijadhav/payLaterService | b05128cf79d2380f188e91a5dcf9bb84cb8030c1 | 3fb7150e82232decb4ae16b1043c7b8015fbc3a3 | refs/heads/master | 2023-05-06T03:04:44.131742 | 2021-05-24T11:09:22 | 2021-05-24T11:09:22 | 370,322,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,837 | h | user.h | #include <bits/stdc++.h>
using namespace std;
class acceptUsers
{
public:
map<string, map<string, int>> userData;
// ***** ACCEPT USER DATA ********
void addusers()
{
int numberOfUsers;
cout << " enter number of Users : ";
cin >> numberOfUsers;
for (int i = 0; i < numberOfUser... |
2192e8e826211732db6009c6ee47e9ffb323c857 | 6099e0ebd8e78311c5e3dfae1a4678c2a4d51873 | /3rdParty/rocksdb/6.27/env/unique_id_gen.h | f48c3b5e7d0f68ae081b54a40d0cfe79da82a9d5 | [
"Apache-2.0",
"GPL-2.0-only",
"BSD-3-Clause",
"ICU",
"LGPL-2.1-or-later",
"OpenSSL",
"GPL-1.0-or-later",
"Zlib",
"MIT",
"ISC",
"CC0-1.0",
"BSL-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-pcre",
"BSD-... | permissive | vishalbelsare/arangodb | be647e192dd7505a9907263892fe65112ce81d2d | a6bd3ccd6f622fab2a288d2e3a06ab8e338d3ec1 | refs/heads/devel | 2023-09-05T13:34:28.350423 | 2021-12-27T07:16:58 | 2021-12-27T07:16:58 | 137,596,199 | 0 | 0 | Apache-2.0 | 2021-12-28T14:39:52 | 2018-06-16T16:54:10 | C++ | UTF-8 | C++ | false | false | 2,840 | h | unique_id_gen.h | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
// This file is for functions that generate unique i... |
996712f9e1caed5c706358950c87785197bd587a | c7e035411bd40fa197e61acfc9038950d45594e4 | /src/Chamelion/Source/Printers.cpp | 2b17e044a4757afabd7a97c0678257c39482de33 | [] | no_license | cutff/ChamelionInfoStealer | 27e19e9f9f319be682e8a690903d37e90c41263b | 707013e64b0c6f1b545f84a774b3efdd16df7085 | refs/heads/main | 2023-05-28T16:29:09.639177 | 2021-06-08T08:15:33 | 2021-06-08T08:15:33 | 380,619,651 | 2 | 1 | null | 2021-06-27T00:19:55 | 2021-06-27T00:19:55 | null | UTF-8 | C++ | false | false | 6,857 | cpp | Printers.cpp | #include "../Headers/Printers.h"
/// <summary>
/// reinterpretPrinterValueAddress is used to reintepret the pointer address of the values enumerated by EnumPrinters.
/// </summary>
/// <param name="printerInformation">LPPRINTER_INFO_2 Value</param>
/// <returns>The same value but reinterpreted as a std::string</... |
87aef56a13336c231d4f268d4746028e647b664b | 4eb606bc2c42ea64264bd8b160db4d81919b7850 | /Template.cpp | 6e206174a8416da08c1821ee8990dd49b2f23c3e | [] | no_license | mjohnson9/cist2362 | 23ac3ea43c253c8a7e9539d348d6a6da1068c482 | 294ac0cbbbd6d7007088c1fcf33a33fcc8ba54e1 | refs/heads/master | 2022-01-16T16:34:14.194118 | 2019-07-07T14:43:07 | 2019-07-07T14:43:07 | 166,576,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | cpp | Template.cpp | // Copyright 2019 Michael Johnson
#include <iostream>
#include "../common.h"
namespace mjohnson {
namespace programname {
// FORWARD DECLARATIONS
// MAIN FUNCTIONS
int Run() {
// Add the computer's locale to cout. This lets us do thousands separators and
// decimal points in the locale of the user.
std::cou... |
db4044f36e17e4dfb0056ed0a98885ebf8660a64 | b1f959dfb2b2ca978924879c282ca7bf2a1e8b0c | /CreamyGameLib/include/Math/Vector3.hpp | 80017ca0a1101eb523c5221c4168e02303c421b0 | [
"MIT",
"IJG",
"BSD-3-Clause",
"libtiff"
] | permissive | NoixChou/CreamyGameLib | 6a6a1b41a914768ba0b3998e24c278459a869409 | f3268d8f6d468e2cce93efc70206d4d19e8c3716 | refs/heads/master | 2023-03-09T08:40:33.346070 | 2021-01-04T15:48:11 | 2021-01-04T15:48:11 | 247,012,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | hpp | Vector3.hpp | #pragma once
#include "Vector2.hpp"
namespace creamyLib::math
{
struct Vector3
{
float x;
float y;
float z;
constexpr Vector3(const float x, const float y, const float z) : x(x), y(y), z(z) {}
[[nodiscard]] Vector2 toVector2() const
{
return Vector... |
d7189b443138f036554a26b5f40446b5b239d993 | 1a160272694522ed1da602c77da316fe4c767ed5 | /Qt_5_5_1_mingw492_32-Release/debug/moc_tabout_form.cpp | 642a416476f149f07944e224d8e9a0bc201eaf40 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | stasinek/Koperek | 5df6a1882dd9c95045fd5c4b5f74b7082dbcef83 | a20d5c394ae4f6e3eb58b5eb00ba205173ffe004 | refs/heads/master | 2023-05-24T20:19:45.060233 | 2023-05-19T18:48:07 | 2023-05-19T18:48:07 | 129,602,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,913 | cpp | moc_tabout_form.cpp | /****************************************************************************
** Meta object code from reading C++ file 'tabout_form.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
fbda25ba87bc66f9559076fab8bacc731a94b4e2 | e52010dbde811a010102c66dc01ac0fac2993e71 | /GGHAA2Mu2TauAnalysis/AMuTriggerAnalyzer/plugins/Mu1Mu2Analyzer.cc | c6814ca1dfefe338b2e8876f4bf9367adf596b69 | [] | no_license | red1habibullah/lightHiggsAnalysis | a03aa4560c5ca917774d2beaed01e2d9d6ec4fbd | e81ce7930f5f06199e002241bdf31ce5a2f8c334 | refs/heads/master | 2021-01-01T20:45:29.448521 | 2019-06-05T22:01:43 | 2019-06-05T22:01:43 | 98,927,713 | 1 | 0 | null | 2017-07-31T20:38:05 | 2017-07-31T20:38:05 | null | UTF-8 | C++ | false | false | 20,427 | cc | Mu1Mu2Analyzer.cc | // -*- C++ -*-
//
// Package: GGHAA2Mu2TauAnalysis/Mu1Mu2Analyzer
// Class: Mu1Mu2Analyzer
//
/**\class Mu1Mu2Analyzer Mu1Mu2Analyzer.cc GGHAA2Mu2TauAnalysis/Mu1Mu2Analyzer/plugins/Mu1Mu2Analyzer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Autho... |
bc4aeefc5a51dd3d78dcb943cf0334c9a9abb287 | 0a60b3b6e8107b9babb1d2681328e11e32a4fc66 | /ClassFile/src/filePath.cpp | ee1ade52552ac0349bfdf8ebc907cd5a16547fe3 | [] | no_license | hugodro/Plzen-GenComp | 9857a2f372c89058218ae7fafb4f06c429563981 | b6df4d06b685b2e8e67ac1a08b343b8deaaac275 | refs/heads/master | 2022-07-16T22:55:10.229262 | 2020-05-20T01:11:49 | 2020-05-20T01:11:49 | 265,406,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,926 | cpp | filePath.cpp | /**************************************************
* File: filePath.cc.
* Desc: Implementation of Path and PathList classes.
* Module: AkraLog : JavaKit.
* Rev: 3 mai 1996 : REV 0 : Hugo DesRosiers : Creation.
**************************************************/
extern "C" {
#include <sys/types.h>
#include <sys/stat.h... |
bb6478ad58601e3c8ff6f64870aaaa26002b5edc | 23b8e5d97e136302a89efc113cf43476c8240b5b | /NewTugasGPU/Lesson29.cpp | 4414e7476d2e2f60b7e1174e10e8cece26107181 | [] | no_license | jackiejohn/gpunehesrc | e0cdf1aa4dbb51d5881def84412ff1ebbfcb5598 | b79643876f120a88e93f28fc28d0a5875b60eea8 | refs/heads/master | 2021-05-28T21:28:46.280527 | 2017-03-02T14:26:26 | 2017-03-02T14:26:26 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 18,219 | cpp | Lesson29.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#ifndef Lesson29_CLASS
#define Lesson29_CLASS
#include "baseapp.h"
#include <stdio.h>
class Lesson29 {
public:
DEVMODE DMsaved; // Saves The Previous Screen Settings (NEW)
GLfloat xrot; // X Rotation
GLfloat yrot; // Y Rotation
GLfloat zrot; ... |
f2fe8b067d9185807a1c482967bdf2a5b3ee107b | a595d9c21bb8d77a55e1461d185b826e90ac5234 | /[64010736]_week7_2.cpp | 994e31ac022d5577bda7e9fe31a6cfb8f2979aae | [] | no_license | 64010736Rungnapa/-64010736-_week7_2 | 811836f10a4ff596ddd99e1619285ea9180fb51b | 4d52c56c2c068248ac9d4f71b00785e116e74718 | refs/heads/main | 2023-08-01T12:31:45.571036 | 2021-09-19T14:17:58 | 2021-09-19T14:17:58 | 408,145,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | [64010736]_week7_2.cpp | #include "stdio.h"
#include "conio.h"
#include "string.h"
int main(){
int const n = 10;
int i,nam[n],max,min;
for(i=0; i<n; i++)
{
printf("Enter Namber %d :",i+1);
scanf("%d",&nam[i]);
}
max=nam[0];
min=nam[0];
for(i=0; i<n; i++)
{
if (nam[i]>max)
... |
ee1937170fbff05b4b6c134cf80ed8b1d1e4acee | e8f570d475151fdce7bb8449881e30fa2dc2ec23 | /OnlineJudge/CodeForces/471D.cpp | cbd326edb4c6dc6de54eb14c6f4a36646a93e8cc | [] | no_license | MoonChasing/SmarllToLarge | 0384983a4781c05885ce7a2fd7914dfbbd675329 | d02cbbea753811b8ad22aa172fb472c9733f667a | refs/heads/master | 2020-03-07T05:46:29.609419 | 2018-08-14T08:22:38 | 2018-08-14T08:22:38 | 127,305,096 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,560 | cpp | 471D.cpp | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <set>
#include <map>
#include <queue>
#include <vector>
#include <utility>
#include <algorithm>
#define MAXN 200005
#define INF 0x3f3f3f3f
#define DEBUG
#define DataIn
typedef long long LL;
using namespace std;
inline int read()
{
... |
f536a9c55f6ce1041813ae347b92f65aa260deb4 | 1c2f0dfcbd708569b036874dc4adfa63255ea3d8 | /QConsoleKeyEvent/include/QConsoleKeyPressThread.h | d7afbbdbd20178dfd878f326707a6767c81ab6ee | [] | no_license | efedel/tg-community | 5b1d9153e7f4b0ff744609cb497d7b6138f6b04f | 0410d0a08b43f059790445e5edb0216178b6f02d | refs/heads/master | 2016-09-10T19:15:13.279355 | 2014-02-25T23:21:18 | 2014-02-25T23:21:18 | 294,647 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | h | QConsoleKeyPressThread.h | /* QConsoleKeyPressThread.h
* (c) Copyright 2009 ThoughtGang (www.thoughtgang.org)
*/
#ifndef QCONSOLE_KEYPRESS_THREAD_H
#define QCONSOLE_KEYPRESS_THREAD_H
#include <QMutex>
#include <QThread>
class QConsoleKeyPressThread : public QThread {
public:
QConsoleKeyPressThread( QObject * parent=0 );
virtual void stop... |
96543819b6e826037905c8200d988b462477b1de | bd49be5ceb2db0a59e8d2acf99fa053b2402942f | /contracts/hdddeposit/hdddeposit.hpp | 77915b0fc15c721b349fd98f4f37d3e7ac557574 | [
"MIT"
] | permissive | yottachain/YTBP | 400315e121df0141f2ffe1e4dd57608e0e5dc18c | 914296432fce18592dcaade2bfbb6de35419de04 | refs/heads/master | 2023-01-14T06:24:10.902590 | 2022-12-27T05:47:19 | 2022-12-27T05:47:19 | 182,002,928 | 13 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,663 | hpp | hdddeposit.hpp | #include <eosiolib/eosio.hpp>
#include <eosiolib/asset.hpp>
#include <eosiolib/singleton.hpp>
#include <eosiolib/symbol.hpp>
using eosio::name;
using eosio::asset;
using eosio::multi_index;
using eosio::indexed_by;
using eosio::const_mem_fun;
class hdddeposit : public eosio::contract {
public:
usin... |
99a4605b1be873eb714a6b4e3f47d23294e40257 | 0ad10704775226121ce6e180744154eb0f059567 | /2 Abgaben Studierende/Maria/A4/Aufgabe4_Maria/PS_ABGABE_4/PS_ABGABE_29.11.ino | 8ce8382dc06d99c34e486b3b23cb1b26dcf5d254 | [] | no_license | Teaching-Creative-Technology/ws_pc_2019 | 26bec0543c0685b20682871b798e8a90727cc25f | 30c71e2a2fc0e0921552c495d689189b7be6730e | refs/heads/master | 2022-03-16T21:49:42.318550 | 2019-12-09T21:49:36 | 2019-12-09T21:49:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | ino | PS_ABGABE_29.11.ino | #include <Servo.h>
#define LICHT1 0
#define BEWEGUNG 1
int STATE=0;
long zeit1=0;
long zeit2=1000;
long interval=1000;
Servo MOTOR;
int ROT=2;
int BLAU=9;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
MOTOR.attach(11);
pinMode(ROT,OUTPUT);
pinMode(BLAU,OUTPUT);
... |
2e724a20c0b0f7d6b3ac94fa5d5be0b8317c6301 | 33f1b5f6afa115be45cade93479bb7fbc33e7da0 | /CodeForces/598A/7777284_AC_15ms_2044kB.cpp | 7c91b56d8244628e4a4d0f89999472681ab9f143 | [] | no_license | showmic96/Online-Judge-Solution | 3960c37a646f4885210c09096c21dabd7f2154d2 | 94c34e9db2833fb84d0ac885b637dfebac30a5a2 | refs/heads/master | 2022-11-26T09:56:58.469560 | 2020-08-02T04:42:33 | 2020-08-02T04:42:33 | 230,185,618 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | 7777284_AC_15ms_2044kB.cpp | // In the name of Allah the most Merciful.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll f(ll a)
{
ll sum = 1;
for(int i=0;i<a;i++){
sum*=2;
}
//cout << sum << endl;
return sum;
}
ll p(ll a)
{
ll sum = 1;
ll d = 1;
while(f(d)<=a){
sum+=f(d);
... |
797746255d4eb3a0821ea108b312520cc583a815 | 3c1551055b607ded7d75205f038b1c10a6e32486 | /GPI/Task-B.cpp | db922547b6fc3d8e62c0701ef973da240eed2cdf | [] | no_license | aberikashvili/algorithms | e272cde5bf416aba4a168fe5558384c56ac42ea2 | 250c21f528a90114a63f6092cb1e6e5647d72b10 | refs/heads/master | 2022-04-17T19:26:44.391181 | 2020-04-18T05:24:08 | 2020-04-18T05:24:08 | 256,675,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | cpp | Task-B.cpp | //g++ 5.4.0
// ამოცანა B.
// დადებით მთელ რიცხვ M-ს ვუწოდოთ დადებითი მთელი N რიცხვის თანაბარი
// გამყოფი, თუ N-ის M-ზე გაყოფისას განაყოფშიც და ნაშთშიც ერთი და იგივე რიცხვი
// მიიღება. მაგალითად, 10-თვის რიცხვი 4 წარმოადგენს თანაბარ გამყოფს. მოცემული
// დადებითი მთელი N-თვის დასადგენია მისი თანაბარი გამყოფების საერთო რ... |
2bd9d692c920de01bde07f77d2db3f08507c2079 | ba66f5b93dbf2b10d9c81994dd2966bfe69ae149 | /rimpici.andrew/snake_midterm/GraphicsLib/EventListener.cpp | cd564a48f61be01958829db8ffd6de0683e5584e | [] | no_license | Andy608/GameArchitectureMidterm | dc9221c7e32a140af06b317ce430878e31caa556 | d8c333491c8299906d7c424be4d69efbeb5f6a2e | refs/heads/master | 2020-04-13T21:06:44.417696 | 2018-12-28T20:52:55 | 2018-12-28T20:52:55 | 163,448,226 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | EventListener.cpp | /*
* Author: Andrew Rimpici
* Date: 3/02/2018
* Class: Game Architecture <EGP310-03>
* Assignment: Assignment 5
* Certification of Authenticity: I certify that this assignment is entirely my own work.
*/
#include "EventListener.h"
#include "EventSystem.h"
EventListener::EventListener( EventSystem* pEventSystem ) ... |
f9b64df6045395fa8a11e0434ad933b5d9fe0247 | 784883785e9bfdb7eb8031b1311321f2901e13bd | /C++ Codes/pcj18b.cpp | 78a52bf0cab0f4b559684026ca30a39b399cc172 | [] | no_license | jaimittal1998/Competitive-Programming | 3a6cea7ce56ab3fae0dedd00212df84ec7212b9d | d2387e6de4c3e029ec7b87b6b98fb6607400a150 | refs/heads/master | 2022-11-10T03:44:49.209525 | 2020-06-22T12:40:36 | 2020-06-22T12:40:36 | 118,754,177 | 2 | 2 | null | 2018-10-06T17:27:40 | 2018-01-24T11:08:38 | C++ | UTF-8 | C++ | false | false | 287 | cpp | pcj18b.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T;
cin>>T;
while(T--)
{
int N;
cin>>N;
long res=0;
for(int i=N;i>0;i-=2)
{
res+=i*i;
}
cout<<res<<'\n';
}
return 0;
}
|
ca07b6d4ca7c4d6c6048719f967b9837991eeffb | b7947a2a8eb187147680c944621e177e6596f524 | /M_CG2/CG2UserShoppingInfo.cpp | 8c79f452152c196a306ff8c04b1a608c838cc0ec | [] | no_license | mirkiss/GMClient_20091221 | 0b263316842f66950dd543378e0ba1a6c2008cc3 | 678f01b24326bd5161a8dbb369affbee6710cbc4 | refs/heads/master | 2023-03-17T03:22:37.320238 | 2018-04-25T07:48:45 | 2018-04-25T07:48:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,909 | cpp | CG2UserShoppingInfo.cpp | // CG2UserShoppingInfo.cpp : 实现文件
//
#include "stdafx.h"
#include "M_CG2.h"
#include "CG2UserShoppingInfo.h"
#include ".\CG2UserShoppingInfo.h"
// CCG2UserShoppingInfo 对话框
IMPLEMENT_DYNAMIC(CCG2UserShoppingInfo, CDialog)
CCG2UserShoppingInfo::CCG2UserShoppingInfo(CWnd* pParent /*=NULL*/)
: CDialog(CCG2UserShopping... |
7737828fe8385e4b7769f03f0929d35b89b721d3 | 1884b52d923717d7a406ff5dbf860a431692de81 | /C-nowcoder/Huawei 2016 campus recruitment written/A.cpp | 60c1c34a96b2654dd9919467038cd912eb9ad9c5 | [] | no_license | ShijieQ/C- | da7de3adf71581597b987aee04a28c49fbd9d24e | 4b3f363a5e5d836d8c84f0ccc2e121078a8f6fa7 | refs/heads/master | 2021-06-11T17:38:52.054092 | 2021-03-24T15:23:30 | 2021-03-24T15:23:30 | 159,472,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,286 | cpp | A.cpp | #include <stack>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
const int mod = 1e9+7;
const int INF = 0x3f3f3f3f;
const int MAX = 5e4+10;
const int maxn = 2e5+100;
int A[maxn];
struct node{
int left;
int right;
int max;
}Tree[maxn<<2];
void maintain(... |
cd5b27fd11e18a1c28ba2b450612eac710d33292 | dc2e278726cdc50355cf4cf27d975bd39a935b42 | /abc103_a.cpp | e8a6a580c7343e9fdd9a7ba05a7581cce2db4d53 | [] | no_license | yongwhan/atcoder | dfb2a81e17b7841436e96928c7b583b2023225e3 | 7612e6f2ce235730a6390fbe1d8e67d795f5fe8b | refs/heads/master | 2020-11-28T02:08:46.930143 | 2019-12-23T04:33:41 | 2019-12-23T04:33:41 | 229,676,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | abc103_a.cpp | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef pair<int,int> ii;
typedef tree<ii,null_type,less<ii>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
int main() {
cin.tie(0); cout.tie(0); ios_base::sync_with_s... |
fbc9fcb250fb0f8e38f4070e0c97f11453092afd | 58158c18390549157070514f34c56e85188327af | /[Luogu P1541] 乌龟棋.cpp | e8074dc3e4f5c52cd8cbaa20d0d73003f1f69042 | [] | no_license | TosakaUCW/Solution_Source_Code | 8c24e3732570bb813d5d713987a99fea17618e1f | 8469cc7a177ed17e013a5fb17482983d8e61911e | refs/heads/master | 2021-11-26T21:23:50.423916 | 2021-11-19T02:34:01 | 2021-11-19T02:34:01 | 149,946,420 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,233 | cpp | [Luogu P1541] 乌龟棋.cpp | #include <stdio.h>
#include <algorithm>
const int N = 350 + 5;
const int M = 120 + 5;
int n, m, score[N + 5], f[M + 5][M + 5][M + 5][M + 5], num[5];
int main()
{
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; i++)
scanf("%d", &score[i]);
for (int i = 1; i <= m; i++)
{
int tmp;
... |
304b6c40108ddff9b503bb8cb2599d5bc8d92ec1 | d25f80d2cbef87a9976d811f45cb2a84b3de8761 | /Source.cpp | e68ada9f4dc1f222be4e125a4bbd0574ce80f97c | [] | no_license | SergeyShopik/Cpp_Dijkstra_Algorithm | 8f98079ed33d7d5afbf2104bc2011ce8e477a3a4 | b771b26a1754984ac97fc0caf9e80b84326f0902 | refs/heads/master | 2023-01-29T13:31:40.956506 | 2020-12-14T12:49:53 | 2020-12-14T12:49:53 | 321,345,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,824 | cpp | Source.cpp | #include<iostream>
#include<climits>
const int size = 6;
struct Point
{
size_t minDist;// min distance from initial point
bool check;// is point visited
int source;
};
int findMinDist(Point* arr, int size, int _index)
{
int min = INT_MAX;
int index = _index;
for (int i = 0; i < size; i++)
{
if (arr[i].minDist... |
4cc052404faa9b4b1667b2be4a827e8e714f4a11 | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor3/0.59/cellDisplacement | 811b3d06a3ba495b66ddfe4b2bf95edc4f10d1b0 | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,014 | cellDisplacement | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
fb37b1e187833e47c60ab0af3a35edeb59b2ac8d | d7688c81a31d7b2ccf0e59433a35c3a3c6f544b6 | /vk-point-cloud-renderer/src/rendering/Renderer.h | 4e33416b0640fed629af875c5b4fea28eaeb6736 | [] | no_license | dale-findlay/vk-point-cloud-renderer | 1f42fea63f7817725ac1d69ee81f0ec9fcd970cf | 5329e0649fbdf8f763444731fdcc94bb84d7cf4c | refs/heads/main | 2023-01-03T02:48:06.995346 | 2020-10-23T08:07:09 | 2020-10-23T08:07:09 | 300,790,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,406 | h | Renderer.h | #pragma once
#include "core/SubSystem.h"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <string>
#include <vector>
#include <optional>
namespace vkpc {
typedef struct QueueFamilyIndices {
std::optional<uint32_t> graphicsFamily;
std::optional<uint32_t> presentFamily;
bool isComplete() {
retu... |
9897644e81a894c4255d7ed7ffcf6d43bb32c5c1 | 62fdf98a7b81eaba5f5c5cdfc3c4ad19035c3584 | /LibNetWork/include/CLCommunication.h | 3b2f4a71ebb2f549f4f16f64b85b9d441921a996 | [] | no_license | uestcll/logServer | df692bfc934bca78f6d922d36c3446976512656a | 1f3f13744bb137f4773191e4d099da4375909a66 | refs/heads/master | 2021-01-10T19:57:22.354834 | 2013-12-25T00:44:27 | 2013-12-25T00:44:27 | 12,896,565 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 602 | h | CLCommunication.h | #ifndef CLCOMMUNICATION_H
#define CLCOMMUNICATION_H
#include "SLAddress.h"
#include "CLBuffer.h"
#include "CLAgent.h"
#include "CLProcessRequest.h"
class CLBuffer;
class CLProcessRequest;
class CLCommunication : public CLAgent
{
public:
explicit CLCommunication(const int fd = -1);
~CLCommunication();
int recevDa... |
8892935c99a5b8e7e852352a79381b4112f0e0dd | cd1ed806559658c23a95b92cff05fe2b50c4035f | /SimpleCaptureSafe.cpp | 92233860404d9a38874a8aef42929183da4f8928 | [] | no_license | alan0526/SFR | 24fa89e1d849ced38d2c89aef8b3584dbe3f90bd | 76ead4dac194035ff5276f5b53c3a185f3f599f8 | refs/heads/master | 2020-03-27T13:38:11.732034 | 2018-07-17T21:09:22 | 2018-07-17T21:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98,356 | cpp | SimpleCaptureSafe.cpp |
///////////////////////////////////////////////////////////////
// D E F I N E S
///////////////////////////////////////////////////////////////
//#define Check_Error_Frames 1
//#define NO_CAMERA
/*
* default amount of frames to capture...can also specify on command line
*/
#define DEFAULT_IMAGE_WIDTH 1280
/*... |
4b80603df9ab96f5f0563dd07aed0e538b1668b9 | a3d57036a8b42f9dfc4da00bad528a502f6595dc | /projects/lilyCGI/include/process.h | cbfa4b29bead223c54cd5f433aa5b552645ff19f | [] | no_license | zhouchunliang/chenzhengqiang | 5f3579badc557f887a6b09d4489c0f3134448c1d | d4cd58715343ce539ff2523e4ac0f0c80f2bd0c7 | refs/heads/master | 2020-07-07T12:05:27.104252 | 2017-12-28T08:31:06 | 2017-12-28T08:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | h | process.h | /*
*@filename:process.h
*@author:chenzhengqiang
*@start date:2016/01/11 09:58:03
*@modified date:
*@desc:
*/
#ifndef _CZQ_PROCESS_H_
#define _CZQ_PROCESS_H_
#include<unistd.h>
namespace czq
{
//write the function prototypes or the declaration of variables here
class process
{
public:
pid_t pid_;
int pipe... |
96386532a56f5de3e55344d6594aeca81ac0a7f2 | 5e3db2bd0227ec1a761ee0f3c7100fb2aca8e5fb | /LeetCodeSolutions/SubTreeOfAnotherTree.cpp | 88ced882bfcd0c95b46c74f5d8e45c07146029c8 | [] | no_license | Raunak173/hacktoberfest | e09eaff87c6e2eb12935c03f404c17e20146f9a8 | 1d21f9a314bfb05674fa793a2a80eedceeca6eda | refs/heads/main | 2023-08-16T04:05:09.908878 | 2021-10-14T09:58:14 | 2021-10-14T09:58:14 | 417,076,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | cpp | SubTreeOfAnotherTree.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... |
ac7376ccc0edd232dcd8340b56e8c229c4c4d352 | 020b1ec3201887c8ef6cf3d5cecece0a251d6759 | /freq_div/freq_div.ino | 7c87e8ffd0df5a1d9f1ca87f031d66b01455a4e6 | [] | no_license | alexhagen/freq_div | c814c7bafd12aa418eda9921c2970fa31ec428e7 | 2b5deb0ac8cfdd413b0637d150081d57d64b0328 | refs/heads/master | 2021-07-21T23:30:40.161164 | 2017-11-01T00:21:37 | 2017-11-01T00:21:37 | 108,901,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | ino | freq_div.ino | const byte inputpin = 3;
const byte inputinterrupt = 1;
const byte outputpin = 7;
const byte denom = 4;
volatile byte count = 0;
void counter(){
count = count + 1;
if (count % denom == 0) {
digitalWrite(outputpin, HIGH);
digitalWrite(outputpin, LOW);
count = 0;
}
}
void setup(){
pinMode(outputpin,... |
86f56213a51c51817ee1e56ed423fa32addd8559 | 64fe2327449e3802b0126250a0024dd55a7dc9bb | /Sylinder/SylinderNear_test.cpp | 317969838b658fe56d72924d7b6e8c0907df709f | [
"Apache-2.0"
] | permissive | williamliao28/SimToolbox | 36194c963a1876ac24a45a1dd6a66ffacf1f8969 | c9417231217026d555a050a483aaefc6a273026e | refs/heads/master | 2023-01-29T08:11:44.652373 | 2020-12-10T19:51:47 | 2020-12-10T19:51:47 | 264,451,853 | 0 | 0 | null | 2020-05-16T14:12:42 | 2020-05-16T14:12:42 | null | UTF-8 | C++ | false | false | 6,375 | cpp | SylinderNear_test.cpp | #include "SylinderNear.hpp"
#include "Util/EigenDef.hpp"
#include <cmath>
void testEpsilon() {
constexpr double epsilonConst[3][3][3] = {{{0, 0, 0}, {0, 0, 1}, {0, -1, 0}}, //
{{0, 0, -1}, {0, 0, 0}, {1, 0, 0}}, //
{{0, 1, ... |
b71b0b4c34422b9e3a615f2119bd61b6d325769f | b7cfb61323623d07cf7d52cc9e78c32d02854da0 | /Módulo 1/Aplicação/D. Deivis e o ano bonito.cpp | b3c423c779858035c44b1f93a5b40af42806db77 | [] | no_license | MatosThiago/ProgramacaoCompetitiva | 97b99f976af10e04b329f61cae45f73e1cf3fd87 | 66653609632b2cdfcc2060633cbfffe1fa291b7f | refs/heads/master | 2020-03-11T17:36:56.635158 | 2018-07-07T17:44:18 | 2018-07-07T17:44:18 | 130,152,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | D. Deivis e o ano bonito.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, V[4];
cin >> N;
int Bonito = 0;
while(!Bonito) {
N++;
V[3] = N % 10;
V[2] = (N / 10) % 10;
V[1] = (N / 100) % 10;
V[0] = (N / 1000) % 10;
if(V[0] != V[1] && V[0] != V[2] && V[0] != V[3... |
5a45100df842c67cabea0d15f2be8d160a2b7489 | 3c0e92dc6bf91c6a6c1b8c73d5da0b038c58e436 | /proxies/Pelican/sources/EventGenerator.cpp | c09f7345422a9df05b703a7508fad1b691d8409a | [] | no_license | yebo92/mavwork | f9d47d84e952c9b9939216b09f50fa128131ab9e | a7bce5766874850528857f6fd96fce4152f5775a | refs/heads/master | 2022-06-10T18:27:52.428622 | 2013-06-06T16:25:14 | 2013-06-06T16:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | cpp | EventGenerator.cpp | /*
* EventGenerator.cpp
*
* Created on: 30/04/2012
* Author: Ignacio Mellado-Bataller
*/
#include "base/EventGenerator.h"
void EventGenerator::addEventListener(EventListener *el) {
std::list<EventListener *>::iterator i;
for(i = listeners.begin(); i != listeners.end(); i++)
if ((*i) == el) return;
li... |
3a9e7ba7969d20cc32533fb3d6d04920c92c5006 | 3d07f3247b027a044f90eee1c744e91a98951dde | /humanoid_model/src/HumanoidModelNode.cpp | dacb94c997234f8c7f753030266b4a82005bcc34 | [] | no_license | murilomend/humanoid_movement | f93d2ab66fbbfaaff7d4cc906df338e36ce36ea3 | e657538b1d239b8df63ff03875155687a93f5d21 | refs/heads/master | 2020-03-26T08:39:47.810954 | 2018-08-14T12:01:07 | 2018-08-14T12:01:07 | 144,714,031 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,162 | cpp | HumanoidModelNode.cpp | #include "humanoid_model/HumanoidModelNode.h"
HumanoidModelNode::HumanoidModelNode(ros::NodeHandle nh_, ros::NodeHandle nh_private_,ros::NodeHandle nh_private_walk_,ros::NodeHandle nh_private_movcreator_) : nh(nh_) , nh_private(nh_private_) , nh_private_walk(nh_private_walk_),nh_private_movcreator(nh_private_movcreat... |
68907b3cec23fb1796220084569c5db7c430498e | 5ef0b4d230dc5243225d149efb44cdcdd2ffea9d | /trunk/cpp-tests/2420-content/postings/services.cpp | 8ec3ef1215ea034128bbb90322582200bb17be9f | [] | no_license | kai-zhu/the-teaching-machine-and-webwriter | 3d3b3dfdecd61e0fb2146b44c42d6467489fd94f | 67adf8f41bb475108c285eb0894906cb0878849c | refs/heads/master | 2021-01-16T20:47:55.620437 | 2016-05-23T12:38:03 | 2016-05-23T12:38:12 | 61,149,759 | 1 | 0 | null | 2016-06-14T19:22:57 | 2016-06-14T19:22:57 | null | UTF-8 | C++ | false | false | 3,806 | cpp | services.cpp | /******************************************************************
* services.cpp -- a file containing a number of functions useful
* for creating programs.
*
* Each function constitutes a "service" that can be used in
* different programs
*
* Thus this services file constitutes a library of function s... |
40675727b9ce077fba374deefc2d9e9b9138595a | 8ec968525f3551ce5550c22edc013d62a2dc44cf | /ideone/ideone_gRsaen.cpp | 0a55fbb21f16bf59be0c3f508e5272eb6a5fc7bd | [] | no_license | manishankarbalu/CampusPlacement | 5f0abec05ee78462b34d20c3c6456320dadade16 | 905fb2ece09b2314b58b5d5eae4920bcf2c07a62 | refs/heads/master | 2023-05-30T20:57:59.140557 | 2020-03-19T10:05:04 | 2020-03-19T10:05:04 | 115,243,914 | 4 | 1 | null | 2020-03-19T10:05:07 | 2017-12-24T06:11:36 | C++ | UTF-8 | C++ | false | false | 618 | cpp | ideone_gRsaen.cpp | #include <iostream>
#include <vector>
using namespace std;
int maxValue1(vector<int> price)
{
int maxi[price.size()+1]={0};
for(int i=1; i <= price.size(); i++){
maxi[i] = price[i-1];
}
for(int i=1 ; i <= price.size(); i++){
for(int j=1; j < i ; j++){
... |
aeb0cd765290e722b8274e8718ec5b6fe5a858c2 | ec5ed0cd119750a9c7e7f29a318a5757c555b243 | /backups/like-animator.ino | a16d1310427b41d196a2ca908ec1767d3bad5619 | [] | no_license | merekamakerspace/light-box | 61240b26dbf14b7b61dce260cf9c260daa72662d | 164602769254d07e49527df174fc83877b2e1e9b | refs/heads/master | 2021-05-12T13:40:05.195688 | 2018-10-05T02:44:42 | 2018-10-05T02:44:42 | 116,938,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,317 | ino | like-animator.ino | #include "FastLED.h"
#include "digits.h"
// How many leds in your strip?
#define NUM_LEDS_1 150
#define NUM_LEDS_2 98
#define NUM_LEDS NUM_LEDS_1 + NUM_LEDS_2
#define LEDS_PER_ROW 8
#define NUM_ROWS 31
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. ... |
836f2b9507a7ec3c6418063f600f098c5834d019 | de7e771699065ec21a340ada1060a3cf0bec3091 | /spatial-extras/src/test/org/apache/lucene/spatial/prefix/CellToBytesRefIterator50.h | 82ea73579874e196e6a1fc17c8050687d386f19e | [] | no_license | sraihan73/Lucene- | 0d7290bacba05c33b8d5762e0a2a30c1ec8cf110 | 1fe2b48428dcbd1feb3e10202ec991a5ca0d54f3 | refs/heads/master | 2020-03-31T07:23:46.505891 | 2018-12-08T14:57:54 | 2018-12-08T14:57:54 | 152,020,180 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,768 | h | CellToBytesRefIterator50.h | #pragma once
#include "stringhelper.h"
#include <memory>
// C++ NOTE: Forward class declarations:
#include "core/src/java/org/apache/lucene/spatial/prefix/tree/Cell.h"
#include "core/src/java/org/apache/lucene/util/BytesRef.h"
/*
* Licensed to the Syed Mamun Raihan (sraihan.com) under one or more
* contributor l... |
ae55244d88613d516781ec5f9ddcf8dcc7cf4708 | b0d917e5f5df080c9377a93045ffcda553319ae9 | /src/arduino_lmic_hal_configuration.h | 2350f4a1be7d95426a281794c24836bbc1ecfcf5 | [
"MIT"
] | permissive | mcci-catena/arduino-lmic | d46943bba58776d197c605eaa8771a32b5487657 | 4ceb2b049b59bb2390491f2db63e4951b986d277 | refs/heads/master | 2023-08-17T15:20:22.246976 | 2022-11-21T06:21:10 | 2022-11-21T06:21:10 | 67,839,795 | 610 | 247 | MIT | 2023-08-09T02:54:25 | 2016-09-09T23:49:49 | C | UTF-8 | C++ | false | false | 2,919 | h | arduino_lmic_hal_configuration.h | /*
Module: arduino_lmic_hal_configuration.h
Function:
Arduino-LMIC C++ HAL configuration APIs
Copyright & License:
See accompanying LICENSE file.
Author:
Matthijs Kooijman 2015
Terry Moore, MCCI November 2018
*/
#pragma once
#ifndef _arduino_lmic_hal_configuration_h_
#... |
936313f7dd0bd0ada823b845baeb69488287b252 | 617aeda9343d0151c8bb17785497241b9ce39929 | /Sikker5PointPixy.ino | f16107e0e026cd684e49a089308651eece4aefec | [] | no_license | RoboCup-workshop/Lyngby_Robot | c58799c2e3909206dd8377eb02b645170d6e47cb | 47f5fcf615697c24f3ffa108bdc8cf1000cb13c2 | refs/heads/master | 2021-04-27T00:16:43.142418 | 2019-04-24T15:17:10 | 2019-04-24T15:17:10 | 123,783,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | ino | Sikker5PointPixy.ino | #include <SPI.h>
#include <Pixy.h>
#include "MeMegaPi.h"
// This is the main Pixy object
Pixy pixy;
MeMegaPiDCMotor motor2(PORT1B); //Venstre
MeMegaPiDCMotor motor4(PORT2B); //Højre
int Vmotorspeed;
int Hmotorspeed;
unsigned long TurnCountLeft = 0;
unsigned long TurnCountRight = 0;
void setup()
... |
cfa39df0faca44cb0dedecb6d00a0f57b8a9c603 | f0341e6bfb253af0d691240a66f6dff6d3d9872f | /contenedor.h | 472bf90d49d0bb613ca3e23913c6b33bd7216a14 | [] | no_license | ChristianGalindo10/FinalCiencias | 2e04c969d6bcf3e2d1d28ff175e020eab4f16518 | 0a5265720ee61ca0b9c4e90a9705cd2c734505b5 | refs/heads/master | 2022-12-04T16:50:09.287062 | 2020-08-26T12:28:49 | 2020-08-26T12:28:49 | 287,644,624 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,363 | h | contenedor.h | /**
*@file contenedor.h
*@version 1.0
*@date 24/08/2020
*@title Clase Contenedor
*@brief Clase para representar una evaluación dentro del programa
*/
#ifndef CONTENEDOR_H
#define CONTENEDOR_H
#include "lista.h"
#include "evaluacion.h"
/**
*@brief Clase para manejar los datos de una evaluación relac... |
f0017a08d05326ba8606d4b8b7032d288390fd85 | c3eeda144698d7597dd12f1a16f5dddda8d9b99a | /Source/Planets/MyPlayerController.cpp | 5cbeaeaf976f21ae212faf5ddc17209dcd808322 | [] | no_license | quangIO/gamejam | a5673e0e82dcd5ac975213c87c535c3656e28103 | 105fc766188e2571634f60c1e37186830aa26791 | refs/heads/master | 2020-03-07T09:49:57.714653 | 2018-03-30T11:57:10 | 2018-03-30T11:57:10 | 127,416,822 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | MyPlayerController.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyPlayerController.h"
#include "Kismet/KismetMathLibrary.h"
#include "PlanetsPawn.h"
void AMyPlayerController::UpdateRotation()
{
FHitResult HitResult;
GetHitResultUnderCursorByChannel(TraceTypeQuery3, false, HitResult);
if (H... |
2571a99945878cfcdcf5b6e46596ecfee8e5c184 | 8f08cf24ddc4b2ce3e091d8c1d1f013ccadba0ac | /LanceMag/_CLance_In_Yard.cpp | 3e02822a4b76f20877389dfd4a888475dd8d1ad7 | [] | no_license | rcw0125/lgLogic | 42cf0a67b367d0a2ab86260639aface6cb847680 | 47a11962ab0132420231ca88157db862203f5cdc | refs/heads/master | 2020-03-10T05:12:29.589505 | 2018-04-12T07:31:13 | 2018-04-12T07:31:13 | 129,211,942 | 0 | 2 | null | null | null | null | GB18030 | C++ | false | false | 916 | cpp | _CLance_In_Yard.cpp | // 逻辑类CLance_In_Yard源文件
// 本文件是由L3集成开发环境自动生成,在没有充分了解本文件的内容前,请不要随意修改本文件中的内容
// 否则可能带来严重后果。
#include "StdAfx.h"
#include "_CLance_In_Yard.h"
IMPLEMENT_L3CLASS(CLance_In_Yard,CL3Object,1)
BEGIN_L3PROPTABLE(CLance_In_Yard,CL3Object)
L3PROP_DATETIME(Input_Time)
L3PROP_STRING(Lance_Head_Type)
L3PROP_STRING(Nozzle_Factu... |
26c97ff04daac1c31e8c7a0ba34bfc77b0519a72 | 8d11457bc63d9ff6baa78100c4adfcb37df25a5b | /C++/Final Project RPG/Final Project RPG/Enemy.cpp | 855bd7273a0e84c7280a05ed7ec363d246a65725 | [] | no_license | ricky92998/iDPA-Stuff | eca5b368deebe5f1b3300cab77ad8f2140ceac49 | f791e0198ab869158e927f33b0c3859a431a8c3a | refs/heads/master | 2021-01-20T05:31:16.071396 | 2013-07-15T16:36:22 | 2013-07-15T16:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | Enemy.cpp | #include "Enemy.h"
Enemy::Enemy(void)
{
}
Enemy::~Enemy(void)
{
}
void Enemy::takeDamage(int damage)
{
enemyHealth = enemyHealth - damage;
cout << "Slime took " << damage << " damage." << endl;
}
|
d61ec15f56cc94b2f1fde65742f9ee807c3fb711 | f9b77eecdf503c4f37f48c6b28a2e665d7639e07 | /Resource/ResourceManager.cpp | aa9a7b120efc39cde1342fb80bdb8adf695b13d9 | [] | no_license | guowanwei/Code | 7a8fc216b8156115ba855e066c23fe16a19823dc | 017b011909bd60fd325967cb1e741959b243e663 | refs/heads/master | 2021-05-02T07:14:53.842504 | 2019-10-03T07:33:17 | 2019-10-03T07:33:17 | 120,871,235 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 671 | cpp | ResourceManager.cpp |
#include "ResourceManager.h"
bool ResourceManager::RemoveResource(ResourceType type, std::string globalName)
{
if (type >= RT_MAX) return false;
ResourceList::iterator iter = m_vecResources[type].find(globalName);
if (iter != m_vecResources[type].end())
{
m_vecResources[type].erase(iter);
return true;
}
retu... |
d8923695e0853343103d9fab117220c770006dc8 | c6f789a9988d01e9e519c26fa77a1ba23e309cac | /src/app/script_stream.cpp | 2adc19ab0dc6547e3d427018b7dda8ed2c4b41e3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jackeri/ModelTool | ebacfad1ea62e6601d7a885f711cd289242dbdcd | 8484ca275ee00919c4a3a09c5b17f00be0deb8e0 | refs/heads/main | 2023-05-23T13:54:36.971426 | 2021-06-06T21:53:21 | 2021-06-06T21:53:21 | 362,191,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,630 | cpp | script_stream.cpp | #include "script_stream.h"
const std::set<char> singlePunctuations = {
'{', '}', '[', ']', '<', '>', '(', ')'
};
const std::set<std::string> multiPunctuations = {
"+=", "-=", "*=", "/=", "&=", "|=", "++", "--",
"&&", "||", "<=", ">=", "==", "!="
};
mt::ScriptStream::ScriptStream(const std::string &value)
{
lo... |
85b773476378bf471b32acc3e5f665a1ed2a2f86 | d2dd1b37a3f0efa14f862daf6105ee655f7da9c8 | /Classes/Common/GameCmd.h | 84fe3ccffeddcf3f54683f85b173f08225d429c1 | [] | no_license | corner4world/cocostudio-mahjong | 7ec9941f2970b72daa8b70e7dcd174df6ffcd69b | 87ac6540e75955d8002017039bfd5ddac45d6695 | refs/heads/master | 2021-09-22T16:54:39.488776 | 2018-07-29T09:58:57 | 2018-07-29T09:58:57 | 148,442,796 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,429 | h | GameCmd.h | //
// Created by farmer on 2018/7/5.
// 游戏指令数据结构,部分常量
//
#ifndef COCOSTUDIO_MAHJONG_GAMECMD_H
#define COCOSTUDIO_MAHJONG_GAMECMD_H
#include <cstdint>
#define INVALID_CHAIR 0xFF //无效椅子
#define INVALID_BYTE 0xFF //无效BYTE
#define... |
8fe1008157d2bcfefc583f186bc0fcec66402d4b | b4e1bdfa39b1261798cfc5e12a900da4e7bbb2c3 | /Source Code/Platform/Video/RenderBackend/OpenGL/Textures/glSamplerOject.cpp | e3dbddb2eb55327ae2e60981648c89d28a791468 | [
"MIT"
] | permissive | wangscript007/Divide-Framework | 720b8ccff4b417c1d5f905675b3526745f0085c7 | c8c8faa2e78ac0e13131e382dff926475a3032df | refs/heads/master | 2022-12-11T15:58:00.538735 | 2020-09-03T18:43:00 | 2020-09-03T18:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | cpp | glSamplerOject.cpp | #include "stdafx.h"
#include "Headers/glSamplerObject.h"
#include "Platform/Video/RenderBackend/OpenGL/Headers/GLWrapper.h"
#include "Platform/Video/Textures/Headers/TextureDescriptor.h"
namespace Divide {
GLuint glSamplerObject::construct(const SamplerDescriptor& descriptor) {
GLuint samplerID = 0;
glCrea... |
9eac7d3b50ba81fcdd33b38b4fac016c673a6e9d | 17fafd5d1aa4028233b4a46b4b40d2c41cc91efb | /src/map.cpp | ec483e31e8bb808041ff6bdf7a4af5161ec09015 | [] | no_license | aneopsy/gomoku | c111c7dd9fa2c2d8a14b94f04dbf7fbb87c2e220 | 02f445d5bdc2d2885284be3e821f63362b607ce6 | refs/heads/master | 2021-09-03T04:32:43.791693 | 2018-01-05T15:36:27 | 2018-01-05T15:36:27 | 112,361,359 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | map.cpp | #include <cstring>
#include <map.hpp>
#include <other/global.hpp>
Board::Board(unsigned int x, unsigned int y) {
_size_x = x;
_size_y = y;
_map = new int[y * x];
clearMap();
}
Board::~Board() {}
void Board::clearMap() {
for (unsigned int i = 0; i < _size_y * _size_x; ++i) {
_map[i] = 0;
}
}
void Boa... |
665660a0a1cf5d7c6eaeff9b2dbddfa3397895c5 | 576fe24003c0a4ef5f8ce60ba297e7621fa6509c | /BOJ/!16235.cpp | e8ba7930215c26ee9cc58960ae5de069a0ab1066 | [] | no_license | juvelop17/problem_solving | 167edd847a1578a02ac8de04d93246def6d4766f | cf57de3f0258f516454c5db47e214148e5a82e77 | refs/heads/main | 2021-11-17T10:04:05.511857 | 2021-10-13T14:53:59 | 2021-10-13T14:53:59 | 210,004,340 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,421 | cpp | !16235.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
using namespace std;
struct Tree{
int x;
int y;
int age;
};
struct cmp{
bool operator() (Tree a, Tree b){
return a.age < b.age;
}
};
int N,M,K;
int map_arr[11][11] = {0}; // 맵
int A[11][11] = {0}; // 양분
int tr... |
9b915ae0990ddf5d306335b3ccbf8c1acde6e377 | 8827e127c1b0b7cc1dd3bc5d53387f0e1723ab90 | /Pemrograman Dasar/komposisi.cpp | 4be928b7e7098945073c084b308f52c056dbcac0 | [
"MIT"
] | permissive | bayusamudra5502/PustakaCPP | f5ad4d86e1dab6d82be6259ffb0d30ae3b70823a | ac67e47374740b4923dd135d67f4bf987d4010b4 | refs/heads/master | 2021-06-27T19:41:18.908621 | 2020-10-27T05:56:25 | 2020-10-27T05:56:25 | 173,448,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | komposisi.cpp | #include <bits/stdc++.h>
using namespace std;
int f(int A, int B, int x);
int main(){
int a,b,k,x;
scanf("%d %d %d %d", &a, &b , &k, &x);
for(int i = 0; i < k; i++){
x = f(a,b,x);
}
printf("%d\n", x);
return 0;
}
int f(int A, int B, int x){
return ((int) abs(A*... |
f3d58abb438228c5ea49ce97e253669c2756d28d | 024d697677d203a05cc6a2d7f3206a7d15e72416 | /Jolly Jumpers.cpp | 56b3a7187644da7e5291876ba273842458587d70 | [] | no_license | pluralism/CodeEval | cedada6cec3408ca3f6f3db5420c23bd2a6ac3bf | 4be97f6b9d1901bc7068d2d78c010c0892c516e0 | refs/heads/master | 2021-01-17T13:30:28.728775 | 2017-11-04T02:53:37 | 2017-11-04T02:53:37 | 17,156,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,158 | cpp | Jolly Jumpers.cpp | #include <iostream>
#include <sstream>
#include <fstream>
#include <set>
#include <vector>
#include <algorithm>
#include <cstdlib>
using namespace std;
bool jolly(vector<int> numbers)
{
bool first = true;
int last_value = 0;
for (vector<int>::iterator it = numbers.begin(); it != numbers.end(); it++)
{
if (first... |
c59cfa3d5847ae2270d2b5c795352ab0ace87f61 | 45a1f47c08d3a1820ef2bcdb0a5c81ba7a95ba93 | /fintp_utils/src/Base64.h | 00ba6e9f9c8992cc4826e7538cc8ba6337575906 | [] | no_license | FinTPc/fintpc-tip | 88fdd88451914b83b97b97903c6ebc308ce5509f | bf0e2d3a6015b8130022d839b16fa328c1c6af2b | refs/heads/master | 2021-03-18T12:52:14.542929 | 2020-06-23T08:36:30 | 2020-06-23T08:36:30 | 247,077,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,836 | h | Base64.h | /*
* FinTP - Financial Transactions Processing Application
* Copyright (C) 2013 Business Information Systems (Allevo) S.R.L.
*
* 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... |
ce9e2ed8f498dc12edf843c7cc140c91c399ddb7 | 4320d485ada24bde0bc5b7d69b96ecbaa7b2c0a4 | /src/Particle.h | 29ef9549947967a6873e4bae5a898bdcefc9b91e | [] | no_license | justinmmagadia/CS-134-Final-Project-Lander | 2840443908900d8c473a949916f38a55b22b0b1c | efd9ab72f403dd41e4e1184d71b3ec1a1d9a99d5 | refs/heads/master | 2022-07-15T12:54:45.183293 | 2020-05-13T11:39:33 | 2020-05-13T11:39:33 | 263,819,953 | 0 | 0 | null | 2020-05-14T05:09:52 | 2020-05-14T05:04:07 | null | UTF-8 | C++ | false | false | 555 | h | Particle.h | //
// Particle.h
// Lander-Final
//
// Created by Hoang on 5/13/20.
//
#ifndef Particle_h
#define Particle_h
#endif /* Particle_h */
#pragma once
#include "ofMain.h"
class ParticleForceField;
class Particle{
public:
Particle();
ofVec3f position;
ofVec3f velocity;
ofVec3f acceleration;
o... |
4cb7e95dadad48dfb6583e6d71980484f24a0d39 | 73a52d0a1325c9865896a9197730875cb6d46c61 | /Framework/Geometry/test/SpaceGroupTest.h | 02185dbd53a0e07915bc602413e3b230fc2c06ee | [] | no_license | dezed/mantid | 47b3c9f57f9adf2b6ac642ae407d26f06a0889c5 | 9095776c26e868a00d8126ad275626f910d66f62 | refs/heads/master | 2021-01-15T13:51:57.852879 | 2016-03-08T10:49:43 | 2016-03-08T10:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,078 | h | SpaceGroupTest.h | #ifndef MANTID_GEOMETRY_SPACEGROUPTEST_H_
#define MANTID_GEOMETRY_SPACEGROUPTEST_H_
#include <cxxtest/TestSuite.h>
#include "MantidGeometry/Crystal/SpaceGroup.h"
#include "MantidGeometry/Crystal/SymmetryOperationFactory.h"
#include "MantidGeometry/Crystal/CyclicGroup.h"
#include "MantidGeometry/Crystal/ProductOfCycli... |
d9fda7c380a28bfcf351f322c263f0ffa247353f | f4c3a3626f30b3bd7d1c648915287b303ffdfb64 | /src/RaceGateway/src/lora_pkt/lora_push_data_parser.cpp | 333a9af7b3981c364ca14bee459d152c95543b59 | [] | no_license | leodido99/TravailBachelor | e94ebe745418f09d9311cc9b8e50c2f27bb798f3 | 5bdaf04cfcd4b53a587562d0fbdb094cf6aacbdf | refs/heads/master | 2021-07-24T14:48:40.899336 | 2018-11-02T10:53:16 | 2018-11-02T10:53:16 | 133,918,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,614 | cpp | lora_push_data_parser.cpp | /**
* @file lora_push_data_parser.cpp
* @brief LoRa PUSH_DATA packet forwarder parser
*
* Parses packets produced by a LoRa packet forwarder and which
* are of type PUSH_DATA.
*
* @author Léonard Bise
* @date Jul 9, 2018
*/
#include "lora_push_data_parser.h"
#include "logger.h"
#include <iostream>
#includ... |
fefcebc90bc561b9265a0c8aa2d654d76c953817 | 2cb82e86d02887bc5c5a54b4f1c8aaa6bcb90a7e | /smalldb_server/smalldb_server/main.cpp | cdedc6f1c4645b37fec374099f17444746b207e0 | [] | no_license | 01-2/achro_imx6q_opencv | 2f37ac9ace6d44603fcd1b642cb2cf42657c67f0 | 9e4f31d9ae38ddca01e767980a67f5109dce3c2c | refs/heads/master | 2020-06-09T11:48:51.699889 | 2019-06-26T09:59:02 | 2019-06-26T09:59:02 | 193,432,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,172 | cpp | main.cpp | //
// main.cpp
// smalldb_server
//
// Created by Young-il Seo on 21/06/2019.
// Copyright © 2019 Young-il Seo. All rights reserved.
// Only receive data
#include <iostream>
#include <fstream>
#include <utility>
#include <vector>
#include <ctime>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#inclu... |
592bf108632d936e819e933f9da88a1d16296317 | 2f015500a180f1dab1eaa23978bbd645cf43131e | /src/borwall-ex1-densityBased/testCases/pitzDaily/8/phia | 2adfbdde857929c47a0ce049470a3b5ef61ab9ee | [] | no_license | krajit/borwall-example1 | 2da6fb0f4df5efec41b6af4360803c09a13ff3e5 | 834ea8d5fa585570fb946fc907aa84ce9fa5145c | refs/heads/master | 2020-08-02T14:51:34.352745 | 2019-10-09T18:04:06 | 2019-10-09T18:04:06 | 211,396,158 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444,804 | phia | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
47a254600b76b8a2c4d8f1d5f24a57a4a9ca785f | 5bde5141efd4173d567a147e87d8c9ea90c9d63c | /plugins/clouds/CloudData.cpp | 2ec5183935e7a334ef8b5192914e1d3bdc1b67ff | [] | no_license | StefanReinhardt/framework | d2221851c143b3ffbab66077c1f2818884a5695b | 4b64af6ef84f33b128a3f1ea55bfbf8d76fb0eda | refs/heads/master | 2021-01-18T13:59:46.756529 | 2013-09-06T15:54:32 | 2013-09-06T15:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,205 | cpp | CloudData.cpp | #include "CloudData.h"
#include <QFile>
#include <qstringlist.h>
#include <core/Core.h>
CloudData::CloudData( Parameters parms ) : SimObject()
{
m_useSoudingFile = false;
m_p = parms;
initialize();
reset();
}
CloudData::CloudData() : SimObject()
{
initialize();
reset();
}
void CloudData::initialize()
{
m_d... |
83becc07e5cc127f37aa81511faff19c2ee6c505 | 77247678956e02f6e2668f42222f44b7a5518596 | /src/Basket.cpp | 96a4bb9ff63450f568fa7800d3441679d3b85383 | [
"MIT"
] | permissive | FedericoCoppo/salesTaxes | b350a92d2d5a287b63cbac49866a868ce01dcec8 | 79283744732a053d2e0032bbb64c4278bf6076ae | refs/heads/main | 2023-01-13T21:28:03.449324 | 2020-11-19T09:46:46 | 2020-11-19T09:46:46 | 312,568,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | Basket.cpp | /*******************************************************************************
File : Basket.cpp
Date : 13/11/2020
Author : Federico Coppo
Description : Basket class:
it represents a shopping card ready for the receipt
**********************************************************************... |
98b6b029af50897c435eb9dac25153bd9af9793a | 2d90b897854a3251f4e38c2f6f6f8871070fa2f3 | /main2.cpp | c0b24daeb16864de3a525a4dcf3b4a5e28e13e6f | [] | no_license | LvGuangzu/C-homework | fbfe933d5475c2c920e205d3893eb19794df1845 | fffccc1f56bccedb13462fbb149b65fa1a432305 | refs/heads/master | 2022-02-22T22:10:23.102222 | 2019-09-20T11:49:44 | 2019-09-20T11:49:44 | 208,951,182 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,073 | cpp | main2.cpp | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
void solveroot();
void Triangleproblem();
void judge();
void solveroot()
{
double der;
double m, n;
cout << "Please enter the coefficients of the equation you want to calculate in the order of a, b, c." ... |
d9012af2c4eb34eb97ffa23d2ba2e10805a4b533 | b0dd7779c225971e71ae12c1093dc75ed9889921 | /libs/spirit/example/qi/display_attribute_type.cpp | af7be3819a46a22e3ab0ee3ad6cc3365e57afa33 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | C++ | false | false | 761 | cpp | display_attribute_type.cpp | // Copyright (c) 2001-2010 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// This example implements a simple utility allowing to print the attribute
// type as it is exposed by an ... |
2a38d26a7df694c21a6384f1bb10fd77f9d900e3 | fef0bf62b0635630d3419824ae37f195fddb84ec | /trunk/app/srs_figure_app_st_socket.cpp | 1ab1055f13370915a0d0ce97b6df0a3605d1a711 | [
"Apache-2.0"
] | permissive | hu-ping/srs-figure | 215f9357c52cc135d7d8c8ac8935c4b5d07a3c73 | 940fc0fc31ce42d823707a8252535d19de1d0301 | refs/heads/master | 2021-01-15T17:08:02.607891 | 2016-05-09T06:57:49 | 2016-05-09T06:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,634 | cpp | srs_figure_app_st_socket.cpp | //
//
#include <srs_figure_app_st_socket.hpp>
#include <srs_figure_app_log.h>
using namespace srs_figure_st_socket;
static const long MAX_LENGTH_OF_QUEUE_TO_SOCKET = 1000;
#define TIME_OUT_LIMIT 1000000L * 30
SrsFiTcpServerSocket::SrsFiTcpServerSocket()
{
conn_fd = NULL;
ip_port = 0;
}
SrsFiTcpServerSocket::... |
a62a964ac30362e8bf05f1a92368ad5fbae8bb2c | 0621aabcfeac5e4a08d49aa3f791fe46f366a734 | /doc/Programs/OOExamples/MatrixVectorClass/WithTemplates/vectortemplates.h | 27bdc31a7b4e2cb789e57229cbec37e7cef10dba | [
"CC0-1.0"
] | permissive | CompPhysics/ComputationalPhysics | 16341df05a7094ea6442c98466a704249c7085dc | be73eb8bbb989a69fb27e87d7d2686451e7e81f9 | refs/heads/master | 2022-03-20T17:41:39.981703 | 2022-03-04T17:36:23 | 2022-03-04T17:36:23 | 48,985,734 | 287 | 146 | CC0-1.0 | 2020-12-04T12:55:37 | 2016-01-04T09:01:24 | null | UTF-8 | C++ | false | false | 3,895 | h | vectortemplates.h | // Vector class with templates
#ifndef _vectorclass
#define _vectorclass
#include <cmath>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cstdlib>
using namespace std;
template<class T>
class Vector{
private:
int dimension;
T *data;
public:
Vector();
Vector(int d... |
a25b53a242fb5ad0f58e1462a3d1e55ddd4b39b9 | eeed4cfbb20d9243c808ad25e5237c52fe6a6db6 | /3/step_3_1_11/src/node.cpp | 4828f5ab4219b038b95a68e86df13c74594f1b23 | [] | no_license | danil-tolkachev/stepik-ros | e9a77d911f473e896c333f58e43c6d4c59bef95a | 3b4ccc1f6c691897c1e98f136e4d8dd34c93fc4b | refs/heads/master | 2021-04-25T19:38:19.616832 | 2018-06-22T07:08:30 | 2018-06-22T07:08:30 | 108,755,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | node.cpp | #include <ros/ros.h>
#include <visualization_msgs/Marker.h>
#include <geometry_msgs/Point.h>
class Point2Marker
{
public:
Point2Marker()
{
sub = nh.subscribe("/input", 1000, &Point2Marker::callback, this);
pub = nh.advertise<visualization_msgs::Marker>("/output", 10, true);
counter = 0;
}
void cal... |
7b8115fa9da3827b983b57a8da61562b9d9e6371 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/PhysX/APEX_1.4/shared/general/HACD/src/dgGoogol.cpp | 666ed0ec9516167fcf6f3d372ed1380ca39214a7 | [
"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 | 9,828 | cpp | dgGoogol.cpp | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... |
d53aa6385d5f28933249337e29f4e018aa9dec94 | bbe94ef5ed5084721327831c48ce5b851ca8fe19 | /c++/src/problem_23.cpp | 09ebec3cc7da41c6027ed01c6b0d29c28c69619c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mk12/euler | 7f8329453f3012a9110604ef6ea17d3b6ac360a0 | 17dce67ea875e9091d4b086f37c5c244b6fed272 | refs/heads/main | 2021-12-23T14:27:04.383579 | 2021-11-14T02:07:40 | 2021-11-14T02:07:40 | 17,093,829 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | problem_23.cpp | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
// Project Euler: Problem 23
// Non-abundant sums
#include "common.hpp"
#include <vector>
namespace problem_23 {
long solve() {
typedef std::vector<bool>::size_type sz_t;
// Build a lookup table and a sequence of ascending abundant numbers. This
// ... |
c6dd54e9051dac44072c373fae2e925756347ad8 | 59381b99d07c953df6dec7479d22dbd16a22ff60 | /src/FrameBuffer.cpp | e7dde159560e429cf82a18a712d8b8ce28a77752 | [] | no_license | lewellen/proceduralEnvironment | 1842eddfd5dd34407344cc7012f951ae1e2a3aad | c77d16d2e2ab9413ea5b8c5d6739f6276e88d9c7 | refs/heads/master | 2021-01-20T02:11:21.678703 | 2017-04-25T16:17:57 | 2017-04-25T16:17:57 | 89,381,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,973 | cpp | FrameBuffer.cpp | #include <cstdio>
#include <stdexcept>
#include "OpenGL.h"
#include "FrameBuffer.h"
FrameBuffer::FrameBuffer(int width, int height, GLenum colorAttachment, GLenum depthAttachment) {
if (colorAttachment == GL_NONE && depthAttachment == GL_NONE)
throw new std::invalid_argument("colorAttachment and depthAtt... |
ae64f1f06641a7a4a2ccc624890a24abf07170d2 | 591d6598e689101db3aedea8e3c5c727797c6ede | /problems/2719_陶陶摘苹果.cpp | 9526eacd876d58611c21313a37fea657eb1d5dfb | [] | no_license | shenghuanjie/poj | b5e58a60bbb752d33a7a1ccb661a16ef2c156313 | 31f26ae797c3c400320bfe2e3df66fec0ecbea42 | refs/heads/master | 2020-08-16T02:39:46.010127 | 2019-10-22T01:05:09 | 2019-10-22T01:05:09 | 215,444,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | cpp | 2719_陶陶摘苹果.cpp | /*
2719: 陶陶摘苹果
http://bailian.openjudge.cn/practice/2719/
描述
陶陶家的院子里有一棵苹果树,每到秋天树上就会结出10个苹果。苹果成熟的时候,陶陶就会跑去摘苹果。陶陶有个30厘米高的板凳,当她不能直接用手摘到苹果的时候,就会踩到板凳上再试试。现在已知10个苹果到地面的高度,以及陶陶把手伸直的时候能够达到的最大高度,请帮陶陶算一下她能够摘到的苹果的数目。假设她碰到苹果,苹果就会掉下来。
输入
输入包括两行数据。第一行包含10个100到200之间(包括100和200)的整数(以厘米为单位)分别表示10个苹果到地面的高度,两个相邻的整数之间用一个空格隔开。第二行只包括一个100到... |
a391a8b22d869dade9bcede6e42c86c13b3b3b6a | 65549d29e1595c26a57b2137c0c1c77ac4ae142b | /B-BOS Backup/backup/Part 10/OS/include/hardwarecommunication/pci.h | fb224718ab32357b2c28a391662470917e79fbb9 | [] | no_license | Bradon-Barfuss/B-BOS-Bradon-Barfuss-Operating-System | 05bfb42ad044ca4a30b45a4478d8d7f883c5f6cf | 9556266fd85782bbc64fa4a05dae30f9b9a9aa26 | refs/heads/master | 2023-03-05T18:12:25.656689 | 2023-02-24T19:10:55 | 2023-02-24T19:10:55 | 262,191,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,708 | h | pci.h | #ifndef __OS__HARDWARECOMMUNICATION__PCI_H
#define __OS__HARDWARECOMMUNICATION__PCI_H
#include <common/types.h>
#include <drivers/driver.h>
#include <hardwarecommunication/port.h>
#include <hardwarecommunication/interrupt.h>
namespace OS{
namespace hardwarecommunication{
//this class will ... |
cba9ed96bd362e835d5c9089f9f2778bb9b41d28 | 01553d07828278cab0c77da9c1f6b6c3dc87f7c2 | /spojsolutions/CTRICK-20987475-src.cpp | f4af59b550b3111f045f6d5a3f31617aba3021d7 | [] | no_license | alphaWizard/competitive-coding | d6f0e01a2643947c0aa79af45687fbcb9d0fa24f | 95bb20b13cc1b06028451904c4aa8c076f5fb5c4 | refs/heads/master | 2021-05-05T01:29:47.856903 | 2018-04-08T13:31:06 | 2018-04-08T13:31:06 | 119,661,782 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | CTRICK-20987475-src.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
vector<int> v(n);
for(int i=0;i<n;++i)
v[i]=i+1;
for(int j=n-1;j>=0;j--)
{
int ctrev=j+1;
ctrev=ctrev%(n-j);
rotate(v.begin()+j, v.begin()+n-ctrev, v.end());
}
... |
f185a0ab1e4d9bb535494f0073a396686e46078c | 88c717c15b2ea4d10728ed44fa756c786d737fd9 | /src/server/include/StartCommand.h | ee959ebb58bbe93f56df3b2cb159122f83676e9c | [] | no_license | alexkartun/Client-Server-Reversi | dc6691eabcd8a55920cddc6f49716465eac8bd18 | 745bd5168ff01f112a9962d8f5989d324ead3c47 | refs/heads/master | 2021-09-04T06:21:14.008056 | 2018-01-16T17:02:00 | 2018-01-16T17:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | h | StartCommand.h | /*
* StartCommand.h
*/
#ifndef STARTCOMMAND_H_
#define STARTCOMMAND_H_
#include "AbstractCommand.h"
class StartCommand: public AbstractCommand {
public:
StartCommand(Lobby *lobby): AbstractCommand(lobby) { }
void execute(string args, int client_socket) {
string message;
string game_to_add = args; // game name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.