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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c2cb5bb260e2f0a69cb107e8a0bf52f9dc7f568 | be284ec2c25db7663da06ff9157f9634a437c3de | /unittest/stdafx.h | fa430a548020d6d9e1dbe34d684255cf484cd8a4 | [
"BSD-3-Clause"
] | permissive | hi-eeprom/charls | 4dd28a8525c0ee3ede9d20c6a0606db63432718b | 5f1f2086f445fedc2fed797277b8e0e16281a62f | refs/heads/master | 2020-03-25T16:58:03.772735 | 2018-08-05T22:24:54 | 2018-08-05T22:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | h | stdafx.h | //
// (C) CharLS Team 2017, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#pragma once
#pragma warning(push)
#pragma warning(disable : 26432)
#pragma warning(disable : 26433)
#pragma warning(disable : 26439)
#pragma warning(disable : 26440)
#pragma warning(disable : 26443)
#pragma warni... |
62689f60e4e1fb0ef61ca67b9c54a0823acae3aa | e279602fd9195847e5a3e66059a733fe2aab131d | /TestBasalAreaLight.cpp | 5ce282f287b138d18c9b329c3c6de10847d4614c | [] | no_license | LMurphy186232/Core_Model_Tester | c79790cca322f119f9faec0c5b3d02730ec42676 | b27464daf579d86bc4f38287c7e6f813e65ced6c | refs/heads/master | 2023-08-25T01:34:00.495799 | 2023-08-16T16:41:52 | 2023-08-16T16:41:52 | 39,648,065 | 1 | 0 | null | 2023-08-03T12:59:21 | 2015-07-24T17:39:38 | C++ | UTF-8 | C++ | false | false | 72,930 | cpp | TestBasalAreaLight.cpp | //---------------------------------------------------------------------------
// TestBasalAreaLight.cpp
//---------------------------------------------------------------------------
#include "TestBasalAreaLight.h"
#include <gtest/gtest.h>
#include "Grid.h"
#include "SimManager.h"
#include "BehaviorBase.h"
#include "Tre... |
55fbadb3d3cbff521d87bbbcceefb72f497ccf73 | 90cc6a5afed181a9611bd831d5a0487685e67080 | /rendering/Geometric_Primitives.h | 5009e75c9b279647e2dfcb6ee7f45f027d9015a8 | [] | no_license | RezzaRect/SandBox | 1de493845757781c04edac79e9c045c3a5474325 | 6a5ced8159dd4606b9b6ac7caea714e425bd1a95 | refs/heads/master | 2020-05-21T15:03:49.868580 | 2017-04-14T22:55:30 | 2017-04-14T22:55:30 | 65,657,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | h | Geometric_Primitives.h | #ifndef GEOMETRIC_PRIMITIVES_H_INCLUDED
#define GEOMETRIC_PRIMITIVES_H_INCLUDED
//#include "obj_loader.h"
#include "Mesh.h"
//setup err create..?
int rgbToGrayscale(int r, int g, int b);
Mesh setupSphere(float radius, float latitudeBands, float longitudeBands);
Mesh setupCube(float cubeSize);
Mesh setupLowDensityPlane... |
0602b14a77ec0e7f8d82e6cfb63a369cf8c3cac6 | 7b1dba72bac15ec61738584e0877d63a57134b81 | /analysiscode_v2.1/include/LoadDVCS.h | b5de9a87c2726fcc69b4b4b3bc6137707458a45b | [] | no_license | kuantumlad/eg1dvcs_Analysis_v2 | 6983cfac008000e069cb4aae57e2bfe11af07360 | 02aa08c59cbdeb8f03207c7d8f4c0bfca31b5c91 | refs/heads/master | 2020-12-30T15:09:20.931235 | 2017-08-16T16:25:19 | 2017-08-16T16:25:19 | 91,117,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,608 | h | LoadDVCS.h | #ifndef LoadDVCS_h
#define LoadDVCS_h
#include "TROOT.h"
#include "TChain.h"
#include "TString.h"
#include "TFile.h"
#include "EventDVCS.h"
#include "TBranch.h"
#include <iostream>
class LoadDVCS{
public:
TChain *gChain;
EventDVCS dvcs;
TBranch *b_RunNumber;
TBranch *b_PeriodID;
TBranch *b_TargetTyp... |
cc7850c531f0cda8fcbcbdfc9a689a08b75e5afc | 157c466d9577b48400bd00bf4f3c4d7a48f71e20 | /Source/ProjectR/UpdateService/Auth/RequestPermissionsState.cpp | ebaf9570a3ac3bff744bb3aaae0b89d5cdcc5c19 | [] | no_license | SeungyulOh/OverlordSource | 55015d357297393c7315c798f6813a9daba28b15 | 2e2339183bf847663d8f1722ed0f932fed6c7516 | refs/heads/master | 2020-04-19T16:00:25.346619 | 2019-01-30T06:41:12 | 2019-01-30T06:41:12 | 168,291,223 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,623 | cpp | RequestPermissionsState.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ProjectR.h"
#include "RequestPermissionsState.h"
#include "RAuth.h"
#include "AuthStateMachine.h"
void URequestPermissionsState::OnEnter()
{
#if !API_NZIN
StateMachine->ChangeState(EAuthStateEnum::VE_GameServerLogin);
return;
... |
de30af5bcfd50b626170a85b2219743c170ff8da | ac41d2ccb549dc09ed34e5c0f4da403509abb5c3 | /src/DOFIndexed.hpp | 240ae82586ac4985fa093ac07c9915e6fd37ac26 | [
"MIT"
] | permissive | spraetor/amdis2 | c65b530dabd087d922d616bfaf9d53f4c8d5e3c4 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | refs/heads/master | 2020-12-24T15:51:03.069002 | 2016-03-06T14:42:53 | 2016-03-06T14:42:53 | 39,136,073 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,045 | hpp | DOFIndexed.hpp | /** \file DOFIndexed.h */
#pragma once
#include <cassert>
#include <vector>
#include "AMDiS_fwd.hpp"
#include "AMDiS_base.hpp"
namespace AMDiS
{
/** \ingroup DOFAdministration
* \brief
* Interface for objects that stores information indexed by DOF indices
* (like DOFVector or DOFMatrix). This interface i... |
d6d0e8b45103a560329c5e7f5c61e978349adcc4 | b581675ebe3633ea7d6e63ac7898335dc4dcd28c | /chef/MAXORD.cpp | f6c2bb215b07d409df57a800803b002c11cbcb6a | [] | no_license | udit043/little_bit_competitive | c219c1d77a48c87ac4b8384c5c09fdacbd1fe8c2 | b54279e75c54337bd4d89f9a44489bf8ad00635b | refs/heads/master | 2021-07-12T18:43:29.056528 | 2021-05-29T12:17:30 | 2021-05-29T12:17:30 | 86,187,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | MAXORD.cpp | #include <bits/stdc++.h>
using namespace std;
#define mx 100007
#define ll unsigned long long
#define sd(x) scanf("%d",&x)
#define pd(x) printf("%d \n", x)
#define sll(x) scanf("%lld",&x)
#define pll(x) printf("%lld \n", x)
int main()
{
int n, i, k, o=0, a=0;
sd(n);
for(i=0; i<n; i++)
{
sd(k);
... |
56f2505e9dcbcf219b340cbe36f29df7c7a00f15 | 681e5578721dabbc517262463cdb48f3630b7c29 | /src/plugins/Analysis/DCdEdxStudy_tree/DEventProcessor_DCdEdxStudy_tree.h | 32b54a9e818c1c5859e5c723151c0a4fb7e93727 | [] | no_license | JeffersonLab/sim-recon | d7a76e03887cfee255e1309ade73edb5a4f3bd87 | de076695f16956fe649366b53959c7582285001f | refs/heads/master | 2020-04-12T09:00:00.639534 | 2018-07-30T20:26:51 | 2018-07-30T20:26:51 | 39,176,669 | 15 | 20 | null | 2018-07-30T20:26:52 | 2015-07-16T04:35:19 | C++ | UTF-8 | C++ | false | false | 1,254 | h | DEventProcessor_DCdEdxStudy_tree.h | #ifndef _DEventProcessor_DCdEdxStudy_tree_
#define _DEventProcessor_DCdEdxStudy_tree_
#include <JANA/JEventProcessor.h>
using namespace jana;
#include <TFile.h>
#include <TTree.h>
#include <DVector3.h>
#include <particleType.h>
#include <DANA/DApplication.h>
#include <TRACKING/DMCThrown.h>
#include <TRACKING/DTrackT... |
265092857678bb73a4fa6d04926a8b7818e31088 | 4d28185e7a78a569f9a449f39f183cac3024f711 | /source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp | 3a9caaad74c86ea5103deb840c884a6bfecc2542 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | apple/swift-lldb | 2789bf44f648609a1674ee520ac20b64c95de072 | d74be846ef3e62de946df343e8c234bde93a8912 | refs/heads/stable | 2023-04-06T00:28:15.882479 | 2019-10-25T22:46:59 | 2019-10-25T22:46:59 | 44,838,862 | 780 | 291 | Apache-2.0 | 2020-01-10T19:28:43 | 2015-10-23T21:13:18 | C++ | UTF-8 | C++ | false | false | 1,345 | cpp | NativeRegisterContextNetBSD.cpp | //===-- NativeRegisterContextNetBSD.cpp -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
f6cf291c03fb2f31b9eba5f3f050d27341dc0453 | 967c06d5e91c62ebf12625f424680ca1550f2225 | /Qt_DataStructure/Tree/BinarySearchTree/binarysearchtree.cpp | 33e659a8c931ba9ddf4e3780777332b0eaeac0ef | [] | no_license | tycao/opencvgit | 45e26ea942fc08237aaed6f859da6789b11529af | 4da3942b3f1188bcdee0bdf4d0767700c15af83f | refs/heads/master | 2021-01-01T18:24:14.774618 | 2018-01-28T07:53:51 | 2018-01-28T07:53:51 | 98,324,366 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 296 | cpp | binarysearchtree.cpp | #include "binarysearchtree.h"
// 默认构造函数
BinaryNode::BinaryNode(int theElement, BinaryNode* lt, BinaryNode* rt)
: element(theElement), leftChild(lt), rightChild(rt)
{
}
// 获得结点里存储的数据的 接口函数
int BinaryNode::GetElement()
{
return this->element;
}
|
9305a20ba53c0b1e8c830d7f6b5401f1febc1664 | 01adde025fec5c63c0edd9bfa662bdb39fca15e8 | /software/satsim/energy-harvester/include/EnergyHarvester.hpp | bad1ed277d2f7e1052cf66075694b47d91f473ff | [
"Apache-2.0"
] | permissive | sausthapit/oec-asplos20-artifact | 023fd1a598e9f9e455c03ef28b57bc9aeb501a4c | 8966e88b04e7261f26ad0689ffcfe2d12efec711 | refs/heads/master | 2022-12-30T22:32:47.950265 | 2019-12-04T21:26:04 | 2019-12-04T21:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,223 | hpp | EnergyHarvester.hpp | // EnergyHarvester.hpp
// Energy harvester class header file
//
// Copyright 2019 Bradley Denby
//
// 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... |
495316ffa394bbbc043abbdb0074efa9685c9c23 | 89fc4899c426329cf4d41f024bf5deb4353017e5 | /src/controller/scan/ScanController.cpp | 334ac978e3d2efcd7ca9606f8de7358000f62f0d | [
"MIT"
] | permissive | seanngpack/swag-scanner-cpp | 770bbcbbcb8f1073963bab98ca8ac74b3648452c | afc905cbba40de424488d2b60bb0b506e5fee5f2 | refs/heads/master | 2021-05-18T18:01:48.558462 | 2020-10-27T06:02:44 | 2020-10-27T06:02:44 | 251,347,462 | 10 | 2 | MIT | 2020-10-27T06:02:45 | 2020-03-30T15:29:12 | C++ | UTF-8 | C++ | false | false | 1,485 | cpp | ScanController.cpp | #include "ScanController.h"
#include "ScanModel.h"
#include "Arduino.h"
#include "SR305.h"
#include "Visualizer.h"
#include "ScanFileHandler.h"
#include "Logger.h"
#include <utility>
#include <filesystem>
namespace fs = std::filesystem;
controller::ScanController::ScanController(std::shared_ptr<camera::ICamera> camer... |
6d3fffd70daf430b8c84497a85ff5309732a9df5 | a9010b46e7d70b958a85cfa2fb01fedc1c7ecb1f | /Lesson_4/task_3/task_3.cpp | 59a47233315905eb43273bc9bd58b160b6a7e60d | [] | no_license | OliynykArtem/NG_2021_Oliynyk-artem | b84f905a3ecdaf8e6cc946a324f2bcd9b4e129fc | d183ae0bb665e2d9644604cf976e54130749c603 | refs/heads/main | 2023-08-23T16:52:49.546612 | 2021-09-25T17:13:46 | 2021-09-25T17:13:46 | 383,277,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | task_3.cpp | #include <iostream>
using namespace std;
int main()
{
char inj_arr[1000];
// Message
cout << "Welcome!" << endl;
cout << "Please enter any line: ";
cin.getline(inj_arr, 1000);
cout << endl;
// Converting letters from lower to upper case
for (int i = 0; inj_arr[i] != 0; i++)
{
if ((inj_arr[i] >= 'a' && i... |
c580734b6808e99c0776d75c025f589790c7b998 | 71e0bd173aca1e37c4cd4e4809d660ee252328a1 | /usagewindows.cpp | 09884b4a6e26dd5d3855b2e102e238fd3bf58245 | [] | no_license | Xinyu-Wu-0000/Subway-System-QT | d85cb1169b60e8c11229506fe352060c795a7e0e | ea1de2abd69763deb9f372656a56cdde87e51a7d | refs/heads/master | 2023-01-06T17:22:04.674273 | 2020-10-30T18:39:28 | 2020-10-30T18:39:28 | 294,948,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | usagewindows.cpp | #include "usagewindows.h"
#include "ui_usagewindows.h"
UsageWindows::UsageWindows(QWidget *parent) : QMainWindow(parent),
ui(new Ui::UsageWindows)
{
ui->setupUi(this);
}
UsageWindows::~UsageWindows()
{
delete ui;
}
|
ef999ff626d6c9339d19bbab43da56893555b428 | 0e22e189d1d487ab3e8346746aa8e3a94526a5d5 | /TrainProvider/src/Providers/DeparturesProvider.hpp | 5c8b3a26cd13b4b2dcc3070f0859864c8572bafc | [
"Apache-2.0"
] | permissive | valiro21/FastTrainService | 6eb0415a4c470a3e2805063a8d2c63a408727d4b | 8b13b6f31a3b2bf22d179f97b1db97160dbb8fbb | refs/heads/master | 2021-01-20T11:45:31.092710 | 2017-01-27T21:26:35 | 2017-01-27T21:26:35 | 78,062,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | hpp | DeparturesProvider.hpp | //
// Created by vrosca on 1/21/17.
//
#ifndef FASTTRAINSERVICE_DEPARTURESPROVIDER_HPP
#define FASTTRAINSERVICE_DEPARTURESPROVIDER_HPP
#include "SingleQueryProvider.hpp"
#include <Calendar.hpp>
/** Returns trains that will depart after a given time at the given station
*/
class DeparturesProvider : public SingleQue... |
9bbba6539fddcd3126ec60781bec7cb9de9702b4 | cc46132e7a9a35d42bff5665315a3a11a98177c4 | /src/include/pyutils.hpp | 78ad88fcc04c6f5efff506fc35aa2b8f87b6b7f9 | [] | no_license | shion-h/PartitionAroundMedoids | 3b9f3bce25f8da787439b9adaf72ea152376b143 | f2eb9f010268a196a9de9bbca5dfd3ebdc850395 | refs/heads/master | 2023-01-12T16:08:56.819441 | 2020-11-15T01:59:23 | 2020-11-15T01:59:23 | 107,092,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,314 | hpp | pyutils.hpp | //
// pyutils.hpp
//
// Copyright (c) 2017 Shion Hosoda
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
#include <boost/python.hpp>
#include <iostream>
#include <vector>
#include <random>
#include <cmath>
namespace py = boost::python;
std::vector<std::vector<... |
8b5e860e84da8d1b35d20f1cfb52f2a727c1576d | e50b5f066628ef65fd7f79078b4b1088f9d11e87 | /llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h | 5db8fd93e9b8512c2a019f3ede9c0b6cfe01facc | [
"NCSA"
] | permissive | uzleo/coast | 1471e03b2a1ffc9883392bf80711e6159917dca1 | 04bd688ac9a18d2327c59ea0c90f72e9b49df0f4 | refs/heads/master | 2020-05-16T11:46:24.870750 | 2019-04-23T13:57:53 | 2019-04-23T13:57:53 | 183,025,687 | 0 | 0 | null | 2019-04-23T13:52:28 | 2019-04-23T13:52:27 | null | UTF-8 | C++ | false | false | 1,133 | h | DIAEnumSourceFiles.h | //==- DIAEnumSourceFiles.h - DIA Source File Enumerator impl -----*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------... |
2f32fdaaaf26d327e8f03938a265ffb630f614cb | 6343becde6901e0fcf3a791e719b9d2a08966be8 | /src/layout.cpp | 55d9e8f30061e077f0bb902863d32fe45d4c092c | [
"MIT"
] | permissive | xiu810/rive-cpp | 1bfd591eed9c80ec27a984d8b805ddb88754ee17 | bfb16907447239687ef6dee918eda9b87beffb6e | refs/heads/master | 2023-07-16T12:03:22.676575 | 2021-08-21T11:13:32 | 2021-08-31T23:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | layout.cpp | #include "rive/layout.hpp"
using namespace rive;
const Alignment Alignment::topLeft = Alignment(-1.0f, -1.0f);
const Alignment Alignment::topCenter = Alignment(0.0f, -1.0f);
const Alignment Alignment::topRight = Alignment(1.0f, -1.0f);
const Alignment Alignment::centerLeft = Alignment(-1.0f, 0.0f);
const Alignmen... |
7ece2e250be50b5848ee1f5bc6986fea57d3c8a7 | 4d23097a7b370c35160edfca642e2d37f532b518 | /Algorithms/MapGenerator/FSEGTAMapGeneratorParams.cpp | cb94b5d2a75e6b6750167b1a75094cfb2737ec73 | [
"MIT"
] | permissive | demensdeum/FlameSteelEngineGameToolkitAlgorithms | 2e68b54bc8366490d8640b6cf4c5349c1e5e820a | d042b70a89946510e97ef767f3ee9a731808cd18 | refs/heads/master | 2020-04-05T17:41:43.570630 | 2018-11-07T12:12:54 | 2018-11-07T12:12:54 | 133,219,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | FSEGTAMapGeneratorParams.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: DMMapGeneratorParams.cpp
* Author: demensdeum
*
* Created on April 25, 2017, 10:34 AM
*/
#include "FSEGTAMapGener... |
64d7f362a01045ee7878acdeb9922f3516a7e2ea | 409be0b4888249482bba2687ac89d036c515a7b8 | /lib/ve/profusion/lib/libviewplus/src/MyUnixUtils.hpp | 99a726a3e8c17f0c252ae4e06ab944cdc17aa2f6 | [] | no_license | lqhk/ve-cmu | c0758ac72268b06baa2b3cc1c3af5db7de945bbe | 32a7dc0c95deb73223ea6f3012daeb2ea449331d | refs/heads/master | 2021-01-19T16:25:08.303969 | 2012-12-02T07:04:39 | 2012-12-02T07:04:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,186 | hpp | MyUnixUtils.hpp | // ======================================================================
// MyUnixUtils.hpp
//
// Revision History:
// Rev.01 2008/08/05 The First edition
// Rev.02 2010/05/07 Change license to the modified BSD license
//
// This file is licensed under the modified BSD license.
//
// Copyright (C) 2008-2010 Dairoku Se... |
3b1a0ab6cc90661fb40a20f7b406f30e20518ac9 | 293902682d7ee13be81ada6c28ef6b840983ac33 | /CoralCommon/CoralCommon/Cipher.h | 19c67e67455533e6031e3f860ccd66d5eae5529b | [] | no_license | cms-externals/coral | d17cba45fff7f34d7a1ba13ab3bb371e0696c1af | a879b41c994fa956ff0ae78e3410bb409582ad20 | refs/heads/cms/CORAL_2_3_21py3 | 2022-02-26T18:51:25.258362 | 2022-02-23T13:19:11 | 2022-02-23T13:19:11 | 91,173,895 | 0 | 4 | null | 2022-02-14T13:20:11 | 2017-05-13T12:47:54 | C++ | UTF-8 | C++ | false | false | 594 | h | Cipher.h | #ifndef CORALCOMMON_CIPHER_H
#define CORALCOMMON_CIPHER_H
#include <string>
namespace coral {
class Cipher {
public:
static std::string encode (const std::string &text, const std::string &key);
static std::string decode (const std::string &text, const std::string &key);
static std::string u64enc(c... |
e3182766a06c76b8a061981b34009a04c7f2b906 | b77dd6dcb1f84fc249e0050013e6d74f2b3f039d | /include/shapes/ransac_Boctree.h | 2b18756b4e6ae667927e1dcce95bda96a1a5cb06 | [] | no_license | 3DTK/3DTK | fad4333832d5ee3c4fa43a0e3c2ab719bd7ec278 | bfc46d1b30b35a955ebde78c229ac40ee10e296c | refs/heads/master | 2023-08-10T01:58:20.472841 | 2023-07-28T11:54:42 | 2023-07-28T11:54:42 | 120,477,018 | 64 | 28 | null | null | null | null | UTF-8 | C++ | false | false | 9,309 | h | ransac_Boctree.h | /**
* @file
* @brief Efficient representation of an octree for ransac
* @author Jan Elsberg. Automation Group, Jacobs University Bremen gGmbH, Germany.
*/
#ifndef RANSAC_OCTREE_H
#define RANSAC_OCTREE_H
#include <stdio.h>
#include <vector>
#include <deque>
#include <set>
#include <list>
#include <iostream>
#incl... |
5e0865571fefb998a1a2e5a0ce92028b19a3ec4f | ea2c4866d73d0d74b8607cd8e64e16d3b254f95b | /src/Protocol.cxx | 32b7e7999ee9e1bb545e1f3db039393e62823d75 | [] | no_license | puneetk/Punisher | 1f2bc1486454af87bdaeb8f4dff2af624de3592e | f636dca33ae7347f4dc05f5ad1a6480d2fa3dd03 | refs/heads/master | 2021-01-16T20:43:45.367643 | 2012-02-11T00:53:57 | 2012-02-11T00:53:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cxx | Protocol.cxx | /*
* Punisher
* by Michael Spiegle
* 10.15.09
*
* Protocol.cxx
*/
#include "Protocol.hxx"
#include <string.h>
namespace Punisher {
Protocol::Protocol() {
request = NULL;
validator = NULL;
memset(&start_time, 0, sizeof(struct timeval));
memset(&end_time, 0, sizeof(struct timeval));
}
Protocol::Protocol(c... |
65d0b4e9e507c75dd0b888a862b68490e79c413a | 6366ca977ce7652cf50e561f2c63a49fd5b9e4f1 | /CPlusPlusCode/InterQiew/ItqInherit.cxx | 4a53f740843c0e87713496fe57e8a7fc6ccbd415 | [] | no_license | PhailedPhysicst/InterviewPrep | 5969725fb450c2079a1816e6027d954e07ab99ca | 3fd92ec3e7bcc74b66964967d394d5f5e58ebef9 | refs/heads/master | 2020-04-25T05:05:19.050288 | 2015-06-14T22:25:48 | 2015-06-14T22:25:48 | 37,376,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cxx | ItqInherit.cxx | #include <iostream>
class A
{
public:
A(int n = 0)
: m_i(n)
{
std::cout << m_i;
++m_i;
}
protected:
int m_i;
};
class B
: public A
{
public:
B(int n = 5) : m_a(new A[2]), m_x(++m_i) { std::cout << m_i; }
~B() { delete [] m_a; }
private:
A m_x;
A *m_a;
};
... |
f8963cf555446848469ebb99fa4823becab76c46 | d2190cbb5ea5463410eb84ec8b4c6a660e4b3d0e | /old_hydra/hydra/tags/apr07a/hyp/hhypXKine.cc | 2910bd6be2299e87d2973e41afda45bf4e301273 | [] | no_license | wesmail/hydra | 6c681572ff6db2c60c9e36ec864a3c0e83e6aa6a | ab934d4c7eff335cc2d25f212034121f050aadf1 | refs/heads/master | 2021-07-05T17:04:53.402387 | 2020-08-12T08:54:11 | 2020-08-12T08:54:11 | 149,625,232 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 9,593 | cc | hhypXKine.cc | //*-- AUTHOR : B. Spruck
//*-- Modified : 10/nov/2006 by B. Spruck
//_HADES_CLASS_DESCRIPTION
////////////////////////////////////////////////////////////////////////
//
// HHypXKine
//
// This is
// i) an ALGORITHM which updates the momenta using the HypKine Object
// ii) a SELECTOR which removes background using th... |
65b3f126318faa1a4038deebca04e407bb72c34e | 44ff9f9239894c93b1d430f9b50dcba48213538a | /Rec.ino | 1ec20086965617f071ccf399bb2be4cc84d59f09 | [] | no_license | baller4/ECE_387_Midterm_IB | 433e97e5216ba4b0fecfe7e27cb175cc4d619568 | d34c0f85f63856bc438e5c6a2b5e44e855aff998 | refs/heads/master | 2021-01-22T18:43:14.665067 | 2017-03-16T02:19:57 | 2017-03-16T02:19:57 | 85,108,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,949 | ino | Rec.ino | #include <VirtualWire.h> //for RF communication
#include <SPI.h> //for Digital Potentiometer
//Iniitializes message which will store data recieved from trasmitter
byte message[VW_MAX_MESSAGE_LEN];
//messageLength is to assist in recieving data
byte messageLength = VW_MAX_MESSAGE_LEN;
const int ledPin = 4; //an LED is... |
4fbe1ee157a6ac7d2477f901232adf597c7bf9dd | dc267510c2beff37b8cb64657ef43f5984de2c73 | /bohyoh/chap12/floating.cpp | e92baa16941f87df2b93b6d68e9c6ad0da4e957a | [] | no_license | sunglen/cpp | 375949dce14cc4f8ba457a72b5a8eedd2288d936 | 79d22872642fe4b3576fb8e789e94571d714154f | refs/heads/master | 2021-08-29T16:38:20.036076 | 2017-12-14T10:07:52 | 2017-12-14T10:07:52 | 114,233,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | floating.cpp | サソ// 豬ョ蜍募ー乗焚轤ケ謨ー縺ョ譖ク蠑
#include <iostream>
using namespace std;
int main()
{
int precision; // 邊セ蠎ヲ
double x; // 陦ィ遉コ縺吶k蛟、
cout << "螳滓焚蛟、シ";
cin >> x;
cout << "邊セ蠎ヲシ";
cin >> precision;
cout.precision(precision); // 邊セ蠎ヲ縺ッ譛蠕後∪縺ァ譛牙柑
cout.setf(ios_base::scientific, ios_base::floatfield... |
cef6c635c0cbada878da44043f9c74258f155ef1 | 6e809cd807ae46cb0037fc73d35861c4c804a559 | /src/bounce/renderer/render.cpp | 32e1a3f4542b92dafcf813e88bd9f022158157db | [
"MIT"
] | permissive | cbosoft/bounce | 78b46c3c121f8400149fe232b4b4200803e1a78c | f63e5ad1aabe201debf7a9a73525e93973c34932 | refs/heads/master | 2023-05-06T07:27:29.301254 | 2021-05-23T21:31:32 | 2021-05-23T21:31:32 | 352,585,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,637 | cpp | render.cpp | #include <bounce/renderer/renderer.hpp>
#include <bounce/physics/engine/engine.hpp>
#include <bounce/game/game.hpp>
#include <bounce/scene/scene.hpp>
/** @return Current GLFW window. Used when dealing with input. */
GLFWwindow *Renderer::get_window()
{
return this->window;
}
/**
* Check if the a render pass is ... |
82514b77c30cf2b62ce3168b43c03f1f9d8322c2 | f7f09782d15ee7bdd14e637bd717dfb8327bc57c | /2016Train/Peo4/F.cpp | e7e8199ac2387aa5af4638f9c00a33e6aa26d1db | [] | no_license | whywhyzhang/ACM-ICPC-Code | 14f3f6b0532c18da9694d7f70914a97e0983913f | d15bd475774ff104ebfe9504f8ea0acffdb5ddb0 | refs/heads/master | 2022-12-09T06:27:14.893967 | 2017-03-09T14:31:49 | 2017-03-09T14:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,518 | cpp | F.cpp | // ━━━━━━神兽出没━━━━━━
// ┏┓ ┏┓
// ┏┛┻━━━━━━━┛┻┓
// ┃ ┃
// ┃ ━ ┃
// ████━████ ┃
// ┃ ┃
// ┃ ┻ ┃
// ┃ ┃
// ┗━┓ ┏━┛
// ┃ ┃
// ┃ ┃
// ┃ ┗━━━┓
// ┃ ┣┓
// ┃ ┏┛
// ... |
1272e809145f3d2255a3860c4f2749f805777d4c | 69253c4d41655d673adbb19e80ffee5b12448689 | /test/PropertyTest.cpp | 3c1b0d231eb94a984995a7afb7c241d54f75b40d | [
"BSD-3-Clause"
] | permissive | cybergarage/uecho | d61a64a36f535ea966cdce5743975ffe1688e6b6 | 9475aadb1d440d3e61a60d6f22e8210a1aa54262 | refs/heads/master | 2023-09-01T06:48:12.927416 | 2023-05-07T05:38:46 | 2023-05-07T05:38:46 | 38,615,424 | 9 | 9 | BSD-3-Clause | 2022-02-22T09:23:41 | 2015-07-06T11:45:03 | C | UTF-8 | C++ | false | false | 9,482 | cpp | PropertyTest.cpp | /******************************************************************
*
* uEcho for C
*
* Copyright (C) Satoshi Konno 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <boost/test/unit_test.hpp>
#include <string>
#i... |
2218b9257f99b9f4421870957a3a374aa9c517b7 | d20cf7de868dfb2c53578a70d0dda21306167d72 | /data/raw/train/student_62/2324/2322/ShotPea.h | 32f93cbd405b07f8c4b7fe557dd81b0ff8ad6352 | [] | no_license | bulacu-magda/Alemia | 905a84ca79157fb657eb424e337b0303fd3323bd | 0fd019c4517064d300399feb94dbcb0f467e8d48 | refs/heads/main | 2023-03-01T17:41:08.788500 | 2021-02-05T08:00:35 | 2021-02-05T08:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | h | ShotPea.h | #pragma once
#include "Shot.h"
class ShotPea :
public Shot
{
protected:
ShotPea(wchar_t cSign, COORD Center) :Shot(cSign, Center) {}
public:
ShotPea(COORD Center) :Shot(PEASHOT, Center) {}
~ShotPea(){}
//Efect
virtual void Move(Panel&) override;
//Behavior
virtual bool Draw(Panel& panel) override;
virtual boo... |
849969a68c6d63311b52e083f2fd21a8b4303b76 | cf89a89d2bd5970e3504784d458734bd90e5627c | /04/ex01/RadScorpion.cpp | 53ead93704ffb6fbada1a22f2a55144320ef2033 | [] | no_license | CUAGAIN-95/CPP_Module | 9e69da847989fc9ef0ab563003fde26f50fe5e2f | b06cbbac23a4ad51f140050610803786f363e124 | refs/heads/master | 2023-06-03T17:36:09.152336 | 2021-06-18T14:43:23 | 2021-06-18T14:43:23 | 370,113,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | cpp | RadScorpion.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RadScorpion.cpp :+: :+: :+: ... |
a2ab56f839fcc6536e9e7ae652664908855a951c | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/admin/wmi/wbem/sdk/activex/controls/msgdlg/wbemerror.cpp | 8ac014fd02f727fa6c34322ce2063f146e45b793 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,433 | cpp | wbemerror.cpp | //=============================================================================
//
// WbemError.cpp
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
// Helper routine for core's error features.
//
// History:
//
// a-khint 5-mar-98 Created.
// ... |
420ca8efd039b0be0021c31f00ea640386d6018d | 3e85351787b37cf51d0bfe2bc8ac5aabe5755e0a | /src/eGPIO/eGPIO.cpp | 0569f718bf3f32e84c8f6bba008862c7744ab8a9 | [] | no_license | mroctavious/CentzonThinClient | 46c239d55c0cb9a9980975b6fb12d530c02fa510 | 8337c7ffd1753ba7285f1de052e2b048076c4245 | refs/heads/master | 2022-04-16T22:49:32.288460 | 2020-04-15T21:36:15 | 2020-04-15T21:36:15 | 256,041,639 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | eGPIO.cpp | #include "eGPIO.h"
#include <string>
#include <iostream>
eGPIO::eGPIO( string pin, string direction ):GPIOClass( pin ){
//Create the file for the specified gpio pin
this->export_gpio();
if( direction.compare("r") == 0 )
{
//std::cout << "Reading" << std::endl;
this->setdir_gpio("in");
}
else if ( direction.... |
e9941caea0eb94c95151186fdd279f23324d3a07 | ad6304b713fab3ca8ff018aad2df0d057e194300 | /URI/PARADIGMAS/1029 - Fibonacci, Quantas Chamadas.cpp | 9654ed8d32f5c974d60c497a06c4138cca3f85fb | [] | no_license | nicowxd/Competitive-Programming | d3f63b6eac4ccd508d194c8e6244f3d18bdca518 | de92532f753f6eeebe5dff18da8b10f3186bf107 | refs/heads/master | 2022-01-11T20:07:34.149034 | 2019-06-06T23:40:15 | 2019-06-06T23:40:15 | 115,149,544 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | 1029 - Fibonacci, Quantas Chamadas.cpp | // Autor: CarlosJunior<carloserratojr@gmail.com>
// Nome: Fibonacci, Quantas Chamadas?
// Nível: 2
// Categoria: PARADIGMAS
// URL: https://www.urionlinejudge.com.br/judge/pt/problems/view/1029
#include <bits/stdc++.h>
using namespace std;
int memo[50], cnt;
int fib(int x)
{
cnt++;
if (x == 0)
return ... |
689028e7ab0f8e0d275f7d1c2ca30f54f0f0ed9d | f3da51bde59afd55b24462156c2338b2a687a64e | /src/Inventory.h | 0841c42bdf9e7d3f0749c37b3dd0578508e52b1d | [
"MIT"
] | permissive | ScaredStorm/SpaceGame | c8dcfe134207a4a1156dbf36dabf4fbdf62a5d13 | 136df0e173b07ebc3f6a0b7c2370edeb7c120af8 | refs/heads/master | 2021-01-19T10:02:49.877528 | 2017-04-10T14:23:24 | 2017-04-10T14:23:24 | 87,812,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | Inventory.h | #pragma once
#ifdef _WIN32
#include <SDL.h>
#include <SDL_image.h>
#else
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
#endif
#include <stdio.h>
#include <vector>
#include "TextureManager.h"
#include "DisplayContainer.h"
#include "Camera.h"
class Inventory
{
public:
Inventory();
~Inven... |
8db5ce77492293323fb385244c64ffd53fec89d4 | 18e49bc109a47cd2e6ec430ed222ee95ead3c081 | /Chapter006/006-008/006-008.cpp | 61c51cff31884f31ea675504076f7a5f457aa600 | [] | no_license | mobuhiko/C-PrimerPlus | 144b9ec638cc22c26732dcbc396ae24bda4194fa | 1d5d145a04b57f8b51bd5b4d33d43aa5b66def73 | refs/heads/master | 2022-11-29T15:30:34.856765 | 2020-08-07T08:03:56 | 2020-08-07T08:03:56 | 265,569,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | 006-008.cpp | #include <iostream>
#include <cctype>
#include <string>
#include <fstream>
#include <cstdlib>
using namespace std;
int main()
{
ifstream inFile;
inFile.open("Sample006-008.txt");
// check whether reading the file successfully
if(!inFile.is_open())
{
cout << "Fail to open\n";
exit(... |
d9e74e5bf3791bccd3f9989c676c53527c351cc8 | 67abbc3f0dd24c7f4e5efb90e161ebc27a0b4dde | /Arduino/BLE_MPU6050_MPU9150.ino | 07b844c871464c6472a6703d6c24d461dd4cd4b8 | [] | no_license | Kapil19-dev/Energy-Expenditure-1 | 482616eb10ad8740ceac409b198c637344e74b81 | bd38b2de4850aa8fb70e874150728d982f2d96fa | refs/heads/master | 2022-11-10T23:50:45.629494 | 2020-06-25T16:49:24 | 2020-06-25T16:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,918 | ino | BLE_MPU6050_MPU9150.ino | #include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>
#include <Wire.h>
#include <iostream>
#include <string>
// Register names according to the datasheet
#define MPU9150_ACCEL_XOUT_H 0x3B // R
#define MPU9150_ACCEL_XOUT_L 0x3C // R
#define MPU9150_ACCEL_YOUT_H ... |
73bf91a0ad6ce5da5ab95aaba783c34ae709804c | 311da5b17c18be34422ae55a12c4d6e8ec3a0767 | /src/grid/grid_2D_cyln.cpp | f5d8dbf2878679a81d8d98752cfbd60492acc7d9 | [] | no_license | Knights-Templars/pubsed | f3d17df709f5e0d4c556a59fd80d38c4370b0979 | f124d000b0d8eedae86a6cee4253a1eb4c202665 | refs/heads/main | 2023-05-09T19:26:17.747010 | 2020-07-20T22:29:53 | 2020-07-20T22:29:53 | 445,101,129 | 1 | 0 | null | 2022-01-06T08:47:19 | 2022-01-06T08:47:19 | null | UTF-8 | C++ | false | false | 19,910 | cpp | grid_2D_cyln.cpp | #include <cstdlib>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <math.h>
#include <cassert>
#include <limits>
#include "hdf5.h"
#include "hdf5_hl.h"
#include "grid_2D_cyln.h"
#include "physical_constants.h"
#ifdef MPI_PARALLEL
#include "mpi.h"
#endif
namespace pc = physical_constants;
using... |
2ece25c479175433b28bbfe4b768ac7840413f9a | 858f2c4950912eb2f46e1d16a1a9be136a453f75 | /homework2/prt/src/proplist.cpp | b37d4ccd402519638b44218909013806099f0c59 | [] | no_license | Crocs512/GAMES202-HW | 0ba7f77a902176e3439c5e4e8cb34823c6798c77 | 6008695ed1015ac0580a4afab8257e527c1b1cbf | refs/heads/master | 2023-06-11T05:22:29.146228 | 2021-07-05T15:19:17 | 2021-07-05T15:19:17 | 373,748,933 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,527 | cpp | proplist.cpp | /*
This file is part of Nori, a simple educational ray tracer
Copyright (c) 2015 by Wenzel Jakob
Nori is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
Nori is distributed in the... |
5b28b8758aed8646f4c549fbdc1e4d41f8f4c5fe | d671b95eb67aadb84bcfdaf84520ba6dc47c68d9 | /ESP8266_WifiConection/lib/Net_Manager/Net_manager.cpp | 872966b9d30c08a00a216e965e19a301ce15d473 | [] | no_license | MarioBritoMay/Esp8266_Codes | 98f110e042b211c5e73f66acc1f0161a996e089f | 5f89c518c9fb38dcf0977d8da5f373a403a5d4b7 | refs/heads/master | 2023-01-03T11:03:34.825518 | 2020-09-29T00:38:25 | 2020-09-29T00:38:25 | 299,453,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,451 | cpp | Net_manager.cpp | #include "Net_manager.h"
#include <htmlPage.h>
#define SERVER_PORT 80
ESP8266WebServer server(SERVER_PORT);
String message = "";
void configurePage()
{
server.send(200, "text/html", htmlPage + message + htmlPageEnd);
}
Net_manager::Net_manager()
{
ssidAP = "ESP_red";
wifi_Status = 0;
}
void Net_manage... |
06efe8f2794554e3e8c7936d442ec1c13864d5d7 | 7d7efaf156c201ee742b51b0d7b6122abd3236d2 | /math_util.h | f8d5afbb1eff61c75ecc57fafe271672a7aba1d7 | [] | no_license | jrobble/kalman-filter | efbc711e10f70670e6228203c07e6b2153b9ff93 | ef698b665f68af0b73cdb040db3eb5222b8d8b83 | refs/heads/master | 2021-01-19T17:13:31.442565 | 2009-05-14T09:59:08 | 2009-05-14T09:59:08 | 32,262,597 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,431 | h | math_util.h | #ifndef MATH_UTIL_H
#define MATH_UTIL_H
// limits library not fully implemented in Open Watcom, so use Visual C++ 2008 compiler
#include <limits>
#include <iostream>
// Visual C++ 2008 compiler has no pow(int,int) implementation
int pow(int a, int p) {
return (int)(pow((double)a,p));
}
// el... |
0cf5303260183a39fa1b27b8077665be354d8a83 | 6e8a49958b525f10f213d26374a8bebce2d46cd0 | /SpaceInvaders/SpaceInvaders/Player.hpp | e45b275a82985381f13c8f2c64312c2627c1d046 | [] | no_license | Mnaukal/SpaceInvaders | f28651d45c2761d6d39deed3d78e18ec6254ca62 | 0b29cdcf073f61d5a198bd6bf4dbc8a52d9102f9 | refs/heads/master | 2020-04-13T02:10:10.829697 | 2019-02-18T14:21:53 | 2019-02-18T14:21:53 | 162,895,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | hpp | Player.hpp | /*
Player.hpp - code for user controlled player
*/
#ifndef player_hpp_
#define player_hpp_
#include "Game.hpp"
#include "Rocket.hpp"
#include "InvadersConstants.hpp"
#include "GameObjectManager.hpp"
class Player : public GameObject
{
private:
sf::Sprite sprite;
int width, height;
float shootTime;
public:
float S... |
763d971404b26a349d42e3c46b2d3027bffb7dce | 37608e72c40794f39719b87aa4962e2c6fe798ad | /curb_project/src/trtmodel.cpp | 1873c5b7659575836a828edbe5b7b03fc1e5e046 | [] | no_license | maomaoding/TensorRT_convert | 4addf0c08b3d75206521d3b9b72770be688e37d5 | 6a76cdef7a8a36938045792fef86fde5cc8e334a | refs/heads/master | 2022-04-13T17:42:06.274614 | 2020-04-09T07:12:41 | 2020-04-09T07:12:41 | 254,284,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,277 | cpp | trtmodel.cpp | #include "trtmodel.h"
nvinfer1::DimsCHW TRTmodel::getTensorDims(const char* TensorName)
{
assert(engine != nullptr);
return static_cast<nvinfer1::DimsCHW&&>(engine->getBindingDimensions(engine->getBindingIndex(TensorName)));
}
void TRTmodel::caffeToTRTModel()
{
// create the builder
nvinfer1::IBuilder* bui... |
31ed581d6f2d593d31e356a1d2eee128d80808ba | 042a27949aad6d7570186c11b236736238258f7b | /GameProject/Engine/Components/Component.cpp | 831205dd53bbf4b43166cf200c6524d77b795853 | [] | no_license | TheoBerlin/GameProject | 793a9aeaf24ce2a70c31fd4e55aa0c229c20c3d2 | f135675592c7f1f6e3f2ecec546bada531ad7265 | refs/heads/master | 2021-07-05T06:49:32.464376 | 2020-08-23T14:39:10 | 2020-08-23T14:39:10 | 166,996,599 | 4 | 2 | null | 2019-03-20T13:52:44 | 2019-01-22T13:12:28 | C++ | UTF-8 | C++ | false | false | 807 | cpp | Component.cpp | #include "Component.h"
#include <Engine/Entity/Entity.h>
#include "Utils/Logger.h"
Component::Component(Entity* parentEntity, const std::string & tagName)
{
this->tagName = tagName;
this->setHost(parentEntity);
}
Component::~Component()
{
}
std::string Component::getName()
{
return this->tagName;
}
Entity * Co... |
48152fe435e0f35bd489783cad71345d97bf4388 | 402d3f05d5c2716d17928ec66077f5eb584ee294 | /GLFWIntro/GLFWIntro/MyEngine/Camera/MyEulerCamera.h | b6dd1ae4d52fd517d3ad06fceebcc226fe6dde1c | [] | no_license | animeshbaranawal/LearningOpenGL | dfd6b96641c287bb7fb887dc0e0984f0120e6802 | 84f882413e37505061dd80718fce8f9a2e984189 | refs/heads/master | 2021-06-23T18:54:35.271845 | 2019-02-25T17:13:53 | 2019-02-25T17:13:53 | 135,611,878 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | h | MyEulerCamera.h | #ifndef MYEULERCAMERA_H
#define MYEULERCAMERA_H
#include "MyCamera.h"
class MyEulerCamera : public MyCamera
{
public:
/**
* @brief We define MyCamera as a singleton class
* API to return an instance of MyCamera class
* @return MyCamera* - instance of MyCamera class
*/
static MyCamera* getInstance();
/**
* ... |
98c73cb09940e4ef96f41c711564d8b25dd19ad0 | 535e550c253b99f563962427f1dc840f26662f8f | /cartest.ino | ccc19d99448061f238546f042b57317b740da37e | [] | no_license | azimah-133/COMP501-Research-Report | 4b582d970fbec9d288ac6e184ecd6266cfe030f9 | b6031b787b5fa4dbd57660d2b9f155c7b9e12e7d | refs/heads/main | 2023-01-21T09:35:43.870821 | 2020-11-16T07:44:59 | 2020-11-16T07:44:59 | 313,223,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,142 | ino | cartest.ino | //the right motor will be controlled by the motor A pins on the motor driver
const int AIN1 = 13; //control pin 1 on the motor driver for the right motor
const int AIN2 = 12; //control pin 2 on the motor driver for the right motor
const int PWMA = 11; //speed control pin on the motor dri... |
558d35a51354f23f042b2367f02ccd2d849fba95 | 5e11a1fc9f0f25650bab60bd19428fc96ac4869b | /20170731/morning/templateStack.cc | 22dbd88b844d91124bd5aa3247452cc8ac40e2f9 | [] | no_license | colinhp/WangdaoCPP | eb0e98b9b53ac87dca97cea26675218704f7a485 | d787fefcf87508d629927e7573f90eb71118ac12 | refs/heads/master | 2021-12-15T11:21:04.701947 | 2017-08-18T01:39:43 | 2017-08-18T01:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | cc | templateStack.cc | #include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
template <typename T,int kSize = 10>
class Stack
{
public:
Stack()
:_top(-1)
,_arr(new T[kSize]())
{}
~Stack();
bool empty() const;
bool full() const;
void push(const T &value);
void pop();
T top();
... |
28cd30b0e082f864ce5ccdb83902d5fd00e06b57 | 5d504ef315f93a742efb249ff1c8698527e8e779 | /test/02_scope_guard.cpp | 249462717c721b3c340b74891aa4a8fa032145e1 | [
"MIT"
] | permissive | nakat-t/scope-cpp11 | 0612e6b6a8254b17d7ec0b7b6db2908f0cf56958 | ae6cc87cfe9c16c9bc1e03647728f84cf4d67c69 | refs/heads/master | 2020-11-24T05:38:08.660641 | 2019-12-29T14:17:41 | 2019-12-29T14:17:41 | 227,988,490 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,748 | cpp | 02_scope_guard.cpp | // MIT License
//
// Copyright (c) 2019 nakat-t <armaiti.wizard@gmail.com>
//
// 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... |
cba2a61e093a9292eaf05ca347abd331f84a58d4 | c6149792e471e0badca575c95532a70e7ab3df26 | /DemoDirectX/GameObjects/Enemy/Enemy3/Enemy3.cpp | 3dd3bf1cc341c0de51a36d8f4cf28df56e9f8133 | [] | no_license | duyuit/Aladdin2 | b9067432970ce7ee1c134a5b65212b85d8146dbb | c8461bfca48b6de786faea6ebed10d587384e3a4 | refs/heads/master | 2021-10-28T15:03:06.536526 | 2019-04-24T06:51:59 | 2019-04-24T06:51:59 | 109,827,304 | 0 | 0 | null | 2017-12-19T10:20:16 | 2017-11-07T11:35:12 | C++ | UTF-8 | C++ | false | false | 10,614 | cpp | Enemy3.cpp | #include "Enemy3.h"
vector<RECT> Enemy3::LoadRECT(Enemy3State::StateName state)
{
vector<RECT> listSourceRect;
RECT rect;
switch (state)
{
case Enemy3State::Die:
rect.left = 342; rect.top = 23; rect.right = rect.left + 29; rect.bottom = rect.top + 30; listSourceRect.push_back(rect);
rect.left = 383; rect.to... |
aa7b2d0e1227fcb06beb0ebc1f51ade707b586f2 | 181f5cd8fa14eae47ec1cb665331ed57ef8384f3 | /Linklist/utils.cpp | 3878f8db240402bbd53e4df82b9f2c5a48710d54 | [] | no_license | mofeilu/leetcode | 6480a0e5fcc810f9ab0514da07101d24a901bf96 | d39b0ffd6833fc022e87176fbd22d6962f380da2 | refs/heads/master | 2020-04-09T06:28:00.470105 | 2018-12-09T18:52:41 | 2018-12-09T18:52:41 | 160,113,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,810 | cpp | utils.cpp | #include "utils.hpp"
TreeNode* createTree(std::vector<std::vector<int> > const & vals)
{
TreeNode* root =NULL;
if (vals.size() == 0) return root;
if (vals[0].size() == 0) return root;
if (vals[0][0] == INT_MAX) return root; // this means it's null
root = new TreeNode(vals[0][0]);
std::vector<... |
9fe0bc6b57d164f5bd56574cca72da918861a3ff | 751fd10f1bbd8924bbc206c2f2a4ad0edebd9d66 | /Data structures CSE-2003/Find the element that appears once in sorted array/ele_occ_once.cpp | aa770be81939db74c23ba47b68c6d615cbee1715 | [] | no_license | awarirahul365/CSE-2003-Data-Structures-and-Algorithms | 0570a8e0f40ad8f491b65c512af36e9afa103ebd | e30cdbcb2eef0eea69d785064907d70797cbca4a | refs/heads/master | 2022-09-13T00:57:21.884336 | 2022-09-06T18:06:30 | 2022-09-06T18:06:30 | 248,284,321 | 1 | 1 | null | 2020-10-01T07:14:15 | 2020-03-18T16:27:00 | C++ | UTF-8 | C++ | false | false | 1,274 | cpp | ele_occ_once.cpp | #include<iostream>
#include<vector>
using namespace std;
int main()
{
int t;
cin>>t;
int arr[10000];
vector<int>vect;
vector<int>out;
int n;
int con=0;
int cur_con=1;
int res;
for(int i=0;i<t;i++)
{
cin>>n;
for(int j=0;j<n;j++)
{
... |
6577be801e489c13d253bb36ace876d70d83ff23 | 8838c73f6c041e153a1993ba142e1feab038c4bb | /resonance_audio/dsp/spectral_reverb_test.cc | 015159fa1c0cdd17842842323fb2cde17309390d | [
"Apache-2.0"
] | permissive | resonance-audio/resonance-audio | 429bb71aa141f4632032a55046cc2d9206835c87 | 4556a46afd4ffae092aa281bfd072eb0279d3a29 | refs/heads/master | 2023-03-08T20:55:24.586054 | 2022-09-08T16:03:57 | 2022-09-08T16:03:57 | 125,184,446 | 490 | 117 | Apache-2.0 | 2022-09-08T16:03:59 | 2018-03-14T09:03:03 | C++ | UTF-8 | C++ | false | false | 13,838 | cc | spectral_reverb_test.cc | /*
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
5edc4fd05997eb1dbab0d858db6b7ac2d66fca49 | 7dca8fc2aa415c6aef959126e268085a28781db1 | /SSM_practice/practice-day1/solve/2018.cc | a6fb2a6a826357338811ef9b9c21e8118b4a4f5f | [] | no_license | Gnob/algorithm | e94ccaf0975568a76bebeb43f0c94f81a3366dd4 | 266b4cc966ee3648ece5380fdb0d31fdfcb0e719 | refs/heads/master | 2021-08-03T02:20:53.773013 | 2016-07-15T16:46:55 | 2016-07-15T16:46:55 | 60,790,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cc | 2018.cc | /*
[bdoc #two-pointer]
[/bdoc]
*/
#include <iostream>
using namespace std;
int main()
{
int N; cin >> N;
int left, right;
left = right = 1;
int sum = 1;
int cnt = 1;
while (right < N &&left <= right)
{
if (sum < N)
{
right++;
sum += right;
}
else if (N < sum)
{
sum -= left;
left++;
}... |
263f3869aed24142cb177539a7a3d1c60a3ba458 | 00fe5140380a28ec51b1da703589eaca40b3f071 | /hawi.cpp | 908bb99f0960f8704ff79b42cf8c8b0ecb7a989e | [] | no_license | SecC-SWEG2012Batch-G1/admin-menu | 0072cb77257096e7e6d9526659c79019ccbc15c4 | 7a97de1daf2427f822fb12d69a1634c063843695 | refs/heads/main | 2023-07-19T21:02:49.374250 | 2021-09-04T13:05:18 | 2021-09-04T13:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | hawi.cpp | #include<iostream>
using namespace std;
struct product{
int product_id;
string product_id_add;
string product_name;
int quantity;
float price;
float discount;//by percent
string product_type;
}add_pro;
void add_product(product added_pro);
//void show_add_product(product added_pro);
void Admin... |
e703a07f6117906c9877983cd023ad2a1e5e73cb | f3a9174535cd7e76d1c1e0f0fa1a3929751fb48d | /SDK/PVR_AK_AnimBlueprint_functions.cpp | 20f0498b194100d8e58cf2485287b9d5a3b60c68 | [] | no_license | hinnie123/PavlovVRSDK | 9fcdf97e7ed2ad6c5cb485af16652a4c83266a2b | 503f8d9a6770046cc23f935f2df1f1dede4022a8 | refs/heads/master | 2020-03-31T05:30:40.125042 | 2020-01-28T20:16:11 | 2020-01-28T20:16:11 | 151,949,019 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,543 | cpp | PVR_AK_AnimBlueprint_functions.cpp | // PavlovVR (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function A... |
9148b7d42fc6fc8f2ebf61dbed56a5c79c1987e6 | 8ec51293aa31a1a2c8502cd9a6c0bcce55976e3b | /treap/treap.cpp | 0d3d4edd483169e5c89792f965ba8764c69debd6 | [] | no_license | learn22coding/templates | beefef411b706974f8ca899f3c18a600ffdc106b | 475c58776019a777497fbb845f08b0df3e731f5d | refs/heads/master | 2023-03-16T12:26:04.967220 | 2020-08-11T02:29:05 | 2020-08-11T02:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | cpp | treap.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
#include<ctime>
#define pre(x) kth(root,rank(root,x)-1)
#define next(x) kth(root,rank(root,x+1))
#define update(x) s[x]=s[ch[x][0]]+s[ch[x][1]]+cnt[x]
using namespace std;
int n,tot,root;
int ch[100010][2],rnd[100010],val[100010... |
8bcc07bf4c83e42e215422ab41faadd498afcb1c | 3fb4a4450fee9427e0c17f7e4db58a07d38d88e6 | /BST/BST.h | bd6c143db47c3827e542289b8117e1d4f11a1e0d | [] | no_license | weienjun/GetHub | bae149506285cfdbd3458310915f66eb0b4c29d4 | 250aaa32fb582023d9dd45e67dd281bc7b2d8230 | refs/heads/master | 2021-10-08T18:48:39.135895 | 2018-12-16T06:48:22 | 2018-12-16T06:48:22 | 111,115,489 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 10,502 | h | BST.h | #pragma once
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
template<class T,class V>
struct BSTNode{
T _key;
V _value;
size_t _count; //节点作为根节点对应的节点数目
BSTNode<T,V> *_left;
BSTNode<T,V> *_right;
BSTNode(T key,V value)
:_key(key)
,_value(value)
,_count(1)
,_left(NULL)
,_... |
8da11e58f12c7e00b1fa8eae441a897b95507b72 | 39cdb6ff35231538ef25c565181981ccf237cc30 | /programmers_level_2/together_photo.cpp | 5d157d3af01ad1296bdd6e64978e9d152bbb4e97 | [] | no_license | dittoo8/algorithm_cpp | 51b35321f6cf16c8c1c259af746a9f35d5ba8b76 | d9cdda322d3658ffc07744e4080c71faeee6370c | refs/heads/master | 2023-08-03T14:49:08.808253 | 2021-02-16T04:13:53 | 2021-02-16T04:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,568 | cpp | together_photo.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
// 전역 변수를 정의할 경우 함수 내에 초기화 코드를 꼭 작성해주세요.
int solution(int n, vector<string> data) {
int answer = 0;
vector<char> friends;
friends.push_back('A');
friends.push_back('C');
friends.push_ba... |
6e6131e6bb5bbe059651fd47f42647fa1e52075e | a8eaebbb9f24fc92c19fc71880c1569246427dc0 | /_10032.c++ | 9263af7e7e878ff2bafeec3d8d5ce0fc46404b0d | [] | no_license | KingJoo/swExpertAcademy | aa1e6bca33c7a929eb99b993175315f3fe2b2caa | bc7ffdfc1cbfc6e942394da10dd0d8489a025ed3 | refs/heads/master | 2023-08-10T21:38:33.559194 | 2021-09-28T13:42:39 | 2021-09-28T13:42:39 | 410,418,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | _10032.c++ | #include<cstdio>
int T,n,k;
int main(){
scanf("%d",&T);
for(int t=1;t<=T;t++){
scanf("%d%d",&n,&k);
printf("#%d %d\n",t,n%k==0?0:1);
}
return 0;
}
| |
7ac6890142ca360652026ab6542813c031f7596f | 0019f0af5518efe2144b6c0e63a89e3bd2bdb597 | /antares/src/servers/app/FontStyle.cpp | ca86f40cd6bd1c0ddfa403e1070b5afcd0f98917 | [] | no_license | mmanley/Antares | 5ededcbdf09ef725e6800c45bafd982b269137b1 | d35f39c12a0a62336040efad7540c8c5bce9678a | refs/heads/master | 2020-06-02T22:28:26.722064 | 2010-03-08T21:51:31 | 2010-03-08T21:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,739 | cpp | FontStyle.cpp | /*
* Copyright 2001-2008, Antares.
* Distributed under the terms of the MIT License.
*
* Authors:
* DarkWyrm <bpmagic@columbus.rr.com>
* Axel Dörfler, axeld@pinc-software.de
*/
/** Classes to represent font styles and families */
#include "FontFamily.h"
#include "ServerFont.h"
#include "FontManager.h"
#inc... |
29eed442d9bdb95290fc22267f2bd532b39a9ae8 | fa889d051a1b3c4d861fb06b10aa5b2e21f97123 | /kbe/src/server/tools/guiconsole/guiconsoleDlg.cpp | 45f821d077b127fdd20cb477055185a39ae4669e | [
"MIT",
"LGPL-3.0-only"
] | permissive | BuddhistDeveloper/HeroLegendServer | bcaa837e3bbd6544ce0cf8920fd54a1a324d95c8 | 8bf77679595a2c49c6f381c961e6c52d31a88245 | refs/heads/master | 2022-12-08T00:32:45.623725 | 2018-01-15T02:01:44 | 2018-01-15T02:01:44 | 117,069,431 | 1 | 1 | MIT | 2022-11-19T15:58:30 | 2018-01-11T08:05:32 | Python | GB18030 | C++ | false | false | 47,932 | cpp | guiconsoleDlg.cpp |
// guiconsoleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "guiconsole.h"
#include "guiconsoleDlg.h"
#include "StartServerWindow.h"
#include "network/bundle_broadcast.h"
#include "network/message_handler.h"
#include "server/components.h"
#include "helper/console_helper.h"
#include "xml/xml... |
c3024e072729588b721e9971f69cf404e37ac4b2 | b677894966f2ae2d0585a31f163a362e41a3eae0 | /ns3/ns-3.26/src/flow-monitor/model/flow-probe.cc | 5b07632463d3cb8dc9cd4709cb11c4912478842b | [
"LicenseRef-scancode-free-unknown",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | cyliustack/clusim | 667a9eef2e1ea8dad1511fd405f3191d150a04a8 | cbedcf671ba19fded26e4776c0e068f81f068dfd | refs/heads/master | 2022-10-06T20:14:43.052930 | 2022-10-01T19:42:19 | 2022-10-01T19:42:19 | 99,692,344 | 7 | 3 | Apache-2.0 | 2018-07-04T10:09:24 | 2017-08-08T12:51:33 | Python | UTF-8 | C++ | false | false | 3,575 | cc | flow-probe.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (c) 2009 INESC Porto
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation;
//
// This program is distr... |
d18f2a33bb6ecc5eeab306581847a5ac8f49af89 | 7f4ced713c77090b7b00b8a35fd627ccbe7c46df | /fir/src/Error.h | 28a1afac99876f32d0d2746b34d145d5921bbe56 | [
"MIT"
] | permissive | wahudson/fpgadata | 73fd935c348a20c61b846c696470e9cdbfb663d5 | affc89b29df357b3d0b0f8c7101faba10532018b | refs/heads/master | 2021-05-23T05:46:11.072392 | 2020-07-03T23:15:06 | 2020-07-03T23:15:06 | 94,909,726 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 494 | h | Error.h |
#ifndef Error_P
#define Error_P
//--------------------------------------------------------------------------
// Error class
//--------------------------------------------------------------------------
class Error {
private:
static int Error_cnt;
static std::ostream *cErr;
public: // Class Methods
... |
7a9a0149a205ac031995cfdd931b1f6f0d84a47c | 3f6fe98e64f6ddbc409379f2ad9a5964208792dd | /DynammicProgramming/maximum_non_negative_product.cpp | a556444c9950c0b41d62170b95e9176a7a42bc84 | [] | no_license | pranav1698/Competitive-Programming | 2ca9fa65ea381c283f163ff4992a2903f6d8a6b3 | 67faa52c59a2c8683bc94a7a0e13aed4481d1243 | refs/heads/master | 2022-12-27T21:51:54.048922 | 2020-10-04T18:41:53 | 2020-10-05T18:41:53 | 265,039,796 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | cpp | maximum_non_negative_product.cpp | // Maximum Non Negative Product
// SlothyCoder16
// September 27, 2020
class Solution {
public:
int mod=1e9+7;
int maxProductPath(vector<vector<int>>& grid) {
int m=grid.size();
int n=grid[0].size();
vector<vector<long long>> minDp(m, vector<long long>(n, LONG_MAX));
vector<vect... |
0ccc4f3219de674c4a9c4eff7d4b79ef6b15eac6 | 2b32dc262038a24e8145d4895eb93032e4dfe9ed | /Emulation-of-AIMD-algorithm/32plots.cpp | 32a5e5026c85b88811d89683d82d429297d4c29c | [] | no_license | sagar324/Computer-Networks-JAN-MAY-2021 | 9533f30f5cd74071d0fcfc9c447b05f83cfa97fc | aece227aafe9a3e9e851cc4e9c0dc1bbd12f8b91 | refs/heads/main | 2023-07-02T05:21:44.981306 | 2021-08-10T14:39:19 | 2021-08-10T14:39:19 | 394,685,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | 32plots.cpp | #include <bits/stdc++.h>
#include <random>
using namespace std;
double Ki,Km,Kn,Kf,Ps;
double MSS=1;
double RWS = 1000;
double tot;
double itr=0;
string filename;
double cwnd;
double ssthresh=0;
int prob(){
std::random_device rd;
std::mt19937 generator(rd());
std::bernoulli_distribution distribution(Ps);
if(d... |
0085cdb089a83f9ba3abb0da7f7fa775cf53e49e | 8b7820d05f983f60d82030cfe210cdaf3e3591f0 | /inc/blocked_container.h | 0748bf4b68db17657f014fd6ae6bc533138a7d98 | [] | no_license | neverlandjt/sheeppl | 381df1bb204f6ae2ad055f7a8ae130ef74f91763 | 8550253f09a7012976ba4b9ca62c879763a995cf | refs/heads/main | 2023-04-25T06:53:14.597746 | 2021-05-20T10:17:00 | 2021-05-20T10:17:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | blocked_container.h | //
// Created by ytymchenko on 07.05.2021.
//
#ifndef SHEEPPL_BLOCKED_CONTAINER_H
#define SHEEPPL_BLOCKED_CONTAINER_H
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/seriali... |
3e0e27c933292e09e0e1ce017ee80af802b6c2c0 | 7157875cf79cc8b5d926307d9a8c774ba6d99523 | /menu_diagnosisRepairSystemRetrieveData.h | d923afbfec376853ffba3d4ff6643aa86b6013ee | [] | no_license | Tomev/NASA-Universal-Tool-Pro | 19a6495ceb390a7960f1950ccb4af14175004dae | 9fba886133dd999ef011d5a3b443b58fc0705ae1 | refs/heads/master | 2021-01-15T18:50:53.618200 | 2015-07-23T20:16:09 | 2015-07-23T20:16:09 | 39,590,169 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,559 | h | menu_diagnosisRepairSystemRetrieveData.h | #ifndef MENU_DIAGNOSISREPAIRSYSTEMRETRIEVEDATA_H
#define MENU_DIAGNOSISREPAIRSYSTEMRETRIEVEDATA_H
#include <QDialog>
#include <QSize>
#include <QTimer>
#include <QStringList>
#include <QDirIterator>
namespace Ui {
class menu_diagnosisRepairSystemRetrieveData;
}
class menu_diagnosisRepairSystemRetrieveData : publ... |
859907147e0fe95224f58f72c0a158503d0f0eb8 | 82c41f5231a8d022b675e5e0718680bebf48c8ce | /level2/recursionAndBacktracking/coinchangeComb_1.cpp | 0cb640e9db65cb8deb3155f6fb0088ae7dc5405d | [] | no_license | Namanmittal0007/DsaLevel1 | 9a5a5e2239eeae764a7512769db9528dd767929e | fd9e3df1bbe61c1d6ced9cc67c67798cb057cf96 | refs/heads/master | 2023-07-15T03:32:05.287858 | 2021-08-25T20:27:18 | 2021-08-25T20:27:18 | 320,229,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | coinchangeComb_1.cpp | #include<bits/stdc++.h>
using namespace std;
void coincomb1(int idx,vector<int> coins, string ans, int cursum, int tarsum){
if(idx==coins.size() || cursum>tarsum){
if(cursum==tarsum){
cout<<ans<<"."<<endl;
}
return;
}
coincomb1(idx+1, coins, ans+to_string(coins[idx])+"-",... |
03b547c0ef64fd43d07a635400fa2908f15a1440 | 7b91434d55d6bef1e3b2fdcd26b07fd62e3b73b1 | /UnnamedEngine/Sources/Engine/Base/Resource/Serializer.h | 180aa5de9b56b5f665b2dfda05f1350b98fc10bd | [
"MIT"
] | permissive | ryanannis/UnnamedEngine | 9af75727f4fff3b8b1a0035f56e5079306185c9e | 44a9eaaef6284f7d93e7f42fd2e693d37d528e0f | refs/heads/master | 2022-08-13T10:41:54.776792 | 2020-05-21T06:53:02 | 2020-05-21T06:53:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,296 | h | Serializer.h | #pragma once
#include "Engine/Base/Common/Common.h"
#include "PropTree.h"
#include "Engine/Base/Resource/ResourceType.h"
#include <string>
#include <vector>
class Resource;
class ComponentBase;
class EntityResource;
#define SERIALIZE(serializer, name, var) \
if(serializer.GetSerializationState() == SerializationSta... |
bfda70d6d83ac508f7342601649fd6cba6bd164e | af473fdef22da719c79362d19faba6512f04e1d7 | /src/ix_pagehandle.cc | 6d0d8bb09039836cec22015af3ef3c965839aa68 | [] | no_license | deadstone03/RedBase | 037b724e5f0f5c19ccd077d258bfd65da947acbf | 72f007dadc5753bd8b846f786d5bf00f19f67c76 | refs/heads/master | 2021-01-11T02:24:00.826915 | 2016-11-01T06:21:09 | 2016-11-01T06:21:09 | 70,967,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,724 | cc | ix_pagehandle.cc | #include "ix.h"
#include "ix_internal.h"
#include <cstring>
IX_PageHandle::IX_PageHandle() {
}
IX_PageHandle::~IX_PageHandle() {
}
RC IX_PageHandle::InsertEntry(void *pData, const RID &rid) {
if (this->phdr->slotCount == this->m) {
return IX_PAGE_FULL;
}
// insert should be keep the order.
int i;
for (... |
42a5a075f6c138c707278cef3def5526af23a2f0 | 10ed4e10d25c7a059a6c03370b5b5239ef28c6ef | /GameTemplate/Game/main_processing.h | 5998b4290dd8283e93dbc420361a4d5a50d26c34 | [] | no_license | kbc23/SchoolFestivalGame | 5ce8fef2f516a049235a9a33b3c52b4e05d757df | 980951db690281b62f929ead240cf2a546e3b937 | refs/heads/master | 2023-09-05T02:12:16.904380 | 2021-10-18T03:25:08 | 2021-10-18T03:25:08 | 373,381,747 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 7,305 | h | main_processing.h | #pragma once
#include "font_render.h"
#include "sprite_render.h"
#include "fade.h"
#include "sound_BGM.h"
#include "sound_SE.h"
#include "constant.h"
class Title;
class ModeSelect;
class PlayerSelect;
class CPUStrengthSelect;
class Game;
class Result;
class GameCamera;
class MainProcessing : public IGameObject
{
pu... |
3308abf9289404adbb73e853d35da1a3a657f322 | 00d5f08d7e17c09a302ac540053525080152a870 | /LeetCode/lc_238.cpp | c251403938d5ffe901626c30da27fd8b6517e72b | [] | no_license | HubbardHuang/data_structures_and_algorithms | 6fea8670ed909e89ff5206c09cec61ee1ede71e2 | b50552383420e263c95dd02f81e0bf2478b4679c | refs/heads/master | 2020-04-19T14:33:59.847703 | 2019-08-12T13:11:38 | 2019-08-12T13:11:38 | 168,221,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | lc_238.cpp | /*
Title: Product of Array Except Self
Description:
Given an array nums of n integers where n > 1,
return an array output such that output[i] is equal to
the product of all the elements of nums except nums[i].
Example:
Input: [1,2,3,4]
Output: [24,12,8,6]
Note: Please solve it without division and in O(n).
Follow ... |
3f61cea4aa00ead0f95b90f869f88e2b39df2125 | b4f42eed62aa7ef0e28f04c1f455f030115ec58e | /messagingfw/msgtestproduct/email/imap/src/T_IsImapMessageHeaderOnly.cpp | 1a2a611ab5e8acaeb063a8e089f583a364d9c586 | [] | no_license | SymbianSource/oss.FCL.sf.mw.messagingmw | 6addffd79d854f7a670cbb5d89341b0aa6e8c849 | 7af85768c2d2bc370cbb3b95e01103f7b7577455 | refs/heads/master | 2021-01-17T16:45:41.697969 | 2010-11-03T17:11:46 | 2010-11-03T17:11:46 | 71,851,820 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,832 | cpp | T_IsImapMessageHeaderOnly.cpp | // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/e... |
25c0bb1b408b5c8706402713a6396b079439b309 | 71fd4437ce3c964dde078b9a13d6e89a27a08e3a | /LaumioAnimator/animations/pulsingcoloranimation.h | c26d7ed2dfe1759bd3502500106cbd4d4ddd5aea | [] | no_license | haum/laumio_animator | 107b512e80f2d845ce9e8305b07907f16881497a | 365d7a56ccdc8863546a1230793b48b48c055055 | refs/heads/master | 2020-04-06T07:11:41.271954 | 2016-08-27T04:19:35 | 2016-08-27T04:25:58 | 65,077,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131 | h | pulsingcoloranimation.h | #ifndef PULSINGCOLORANIMATION_H
#define PULSINGCOLORANIMATION_H
#include <QObject>
#include <QColor>
#include <memory>
#include <cmath>
#include "animation.h"
/*
JSON format :
{
"delay" = <NB>,
"duration" = <NB>,
"frequency" = <NB>,
"fromStart" = <NB>,
"lowerColor" = "<COLOR>",
"pulseSignal"... |
84af4a6ec7b7dea667dc65682e93f51ddd4d39af | fa5a51b8a1ea1e6d97d2c8831c72f5b1b5aaca74 | /Game/AnimationSprite.cpp | 9f7812627b88ee12dc90de1102ebeddd4b2fbafe | [] | no_license | otakuto/STG | 6ab15162a5df9485837fc4549e7e7d8998f20d0b | c3f1f7872fa677199ffc4d275d4a6b29112663f6 | refs/heads/master | 2016-09-05T17:24:37.347679 | 2014-05-27T17:44:47 | 2014-05-27T17:44:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,713 | cpp | AnimationSprite.cpp | #pragma once
#include "stdafx.hpp"
#include "AnimationSprite.hpp"
AnimationSprite::AnimationSprite(LPDIRECT3DDEVICE9 const & direct3DDevice, std::vector<LPDIRECT3DTEXTURE9 const> const & texture, RECT const & range, D3DXVECTOR3 const¢er, bool const additive, int const interval)
:
direct3DDevice(direct3DDevice),
te... |
11934a0df6d1a97b196c72fcaf3b6b907611098d | db5faa187eacebd8be27bdd971bba455aa30cd55 | /cpp/algo/itrv/mincount.cpp | 36d7cb4f71a956910fa676793731416836ab9100 | [] | no_license | ajaygh/go | 7a9eb303b28770778993c91df8e62f32d0ee65cb | 6057017eb38fea669396832a15dd2aa43f652e2e | refs/heads/master | 2020-12-30T16:14:29.603814 | 2017-12-12T07:49:35 | 2017-12-12T07:49:35 | 90,964,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | mincount.cpp | #include <iostream>
#include <map>
#include <limits.h>
using namespace std;
int main() {
int n;
cin >> n;
int tmp;
map<int, int> mapNum;
for(int i = 0; i < n; i++){
cin >> tmp;
mapNum[tmp]++;
}
int min = INT_MAX;
for(auto el: mapNum){
if(min > el.second)
min = el.second;
}
cout << min << endl;
re... |
13b21d618272a0058adad6aaf85632128bb06a54 | 7f4346156601c4b43f879294bda58baefa10d820 | /MessageHandler.h | 7934bdbeac403f015c4ae0c7aec02afb898088d0 | [
"MIT"
] | permissive | andreasabt/linux-abt | 8b3361fbe4d99548f5d4bf5e402e2dfd07e32d04 | 8ed377b983540f3c462aedfddc170c8e5a1cad8a | refs/heads/master | 2021-01-15T18:46:30.074464 | 2013-06-14T20:04:14 | 2013-06-14T20:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | MessageHandler.h | #ifndef MESSAGEHANDLER_H
#define MESSAGEHANDLER_H
#include <vector>
#include <ctime>
#include <sstream>
#include <stdio.h>
#include <string>
using namespace std;
class MessageHandler {
public:
MessageHandler(string msg);
~MessageHandler() {};
string sender;
vector<string> message;
int... |
b2150a2ad981ca2b59ed1be391b1d970fe5317b9 | c5af905e54185fb350b969d9a1c7abbc5bfd5cc1 | /Milestone-3-Managers/CustomerItem.cpp | 9307405104676358d2acc0389d5f5b0cfc008211 | [] | no_license | PhillypHenning/OOP345-MileStones--1-4 | 3ed4950e0a221ccbe6f8e498e6620071635f1e4a | 501c24afbef3328a00b24c8cba538130aa9eecbc | refs/heads/master | 2021-01-12T09:33:11.878550 | 2016-12-11T18:43:19 | 2016-12-11T18:43:19 | 76,192,347 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | CustomerItem.cpp | // Phillyp Henning
// 055829147
#include <iomanip>
#include <iostream>
#include "CustomerItem.h"
#include "Item.h"
CustomerItem::CustomerItem(const std::string& pName){
// Task 1 : Sets name to the name received or to an empty state if no name was specified.
// Task 2 : initalizes filled to false and... |
5662a7ef7f27e5cb97cb518b4467b90e300fcad7 | 3edc52629e045938eb0db853a64ebd488df33209 | /OpenGlEngine/main.cpp | 3c0e918c25d533d39db9dc61a05fa1e10bc90658 | [] | no_license | paulbaudy/OpenGlEngine | 7cbc07ff899ead5f49c584264214921568082988 | 2149185fdf66825f6b1f9bf462357730f16fabd3 | refs/heads/master | 2021-01-13T15:05:41.178216 | 2016-12-15T17:18:08 | 2016-12-15T17:18:08 | 76,302,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,778 | cpp | main.cpp | // Include standard headers
#include <stdio.h>
#include <stdlib.h>
// Include GLEW
#include "glew.h"
// Include GLFW
#include <glfw3.h>
GLFWwindow* window;
#define TINYOBJLOADER_IMPLEMENTATION
#include "Mesh.h"
#include "Camera.h"
GLuint LoadShaders(const char * vertex_file_path, const char * fragmen... |
d13e7c6848e9d00130c62a846ca0de746bdfae73 | 60dff076fae5d36af71af1066ac7eb4f833d2f2f | /onnxruntime/test/util/include/test_utils.h | 388db559fc82d8c273be3c49311c97c1d475bd0d | [
"MIT"
] | permissive | NervanaSystems/onnxruntime | 79e60f9c6feb8c147868d27de8077a276755cc90 | 96b3c09e2a5e0a5b4f98ed9059a719d9c7b73724 | refs/heads/master | 2023-06-22T02:55:35.250834 | 2023-01-03T22:54:46 | 2023-01-03T22:54:46 | 162,268,647 | 1 | 3 | MIT | 2021-01-14T12:56:23 | 2018-12-18T10:09:13 | C++ | UTF-8 | C++ | false | false | 1,008 | h | test_utils.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/framework/framework_common.h"
#include "core/framework/execution_provider.h"
#include <memory>
#include <string>
#include <vector>
namespace onnxruntime {
class Graph;
namespace test {
// re... |
0a5f75a2ad220e35a3e0b982348334a6d1c8b61c | 3959f58fceadfdcde967863e8f5b995971bde489 | /Babbar_series/Sets and Map/Basic/kthMissingUnsortedO_n.cpp | 3128a3cf68ab07f07ac7511f7ac544d2472b5243 | [] | no_license | ParagSaini/Competitive-Practice | 4591ad85455c37f54b6251ff00f1a7766bd68ea5 | 02b0f22269c4ce0646ddfb2c3c04edded9d08e17 | refs/heads/master | 2023-06-23T18:22:25.811560 | 2021-07-23T18:36:49 | 2021-07-23T18:36:49 | 367,043,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | cpp | kthMissingUnsortedO_n.cpp | #include<vector>
#include<iostream>
#include<algorithm>
#include<unordered_set>
using namespace std;
void findMissing(vector<int> ar, int k) {
unordered_set<int> missing;
for(int i=0; i<ar.size(); i++ ) {
missing.insert(ar[i]);
}
int maxi = *max_element(ar.begin(), ar.end()); // findi... |
c0477f3e43efdad496f7fbd35bef030acb3390a8 | 8824d24b73a355e41e9914280ee1e46f3163f457 | /tmp/grog-dialoguejs/dialogue.cpp | ec8953db007ec2a4e64151e706262298dd05d51b | [
"Zlib"
] | permissive | pombredanne/EDGE-2 | fe621cbab7c189cd91e2514a946e0f355a82c010 | b09f82a65a7ee594f1a544141814647e087b250a | refs/heads/master | 2020-12-28T06:57:04.628369 | 2015-12-29T13:49:37 | 2015-12-29T20:57:20 | 48,853,467 | 1 | 0 | null | 2015-12-31T15:20:00 | 2015-12-31T15:20:00 | null | UTF-8 | C++ | false | false | 8,527 | cpp | dialogue.cpp | /* gnu.txt
0 Hi! Welcome to OSSland! Is this your first visit? [1,2]
1 Yes, I just arrived -> 3
2 No, I've been here before -> 4
3 Awesome! Have fun! -> 5
4 Hey, welcome back -> 5
5 Do you want to be my friend? [6,7,8,9]
6 Yes -> 10
7 No -> 11
8 Maybe -> 12
9 Not sure -> 12
10 Great! -> 13
11 Awwww -> 13
12 Please! -> ... |
07d0ca5208133b206ba5e6d5b0b33f1ae806a33a | 70a59f9585056ea09cb79b99af1ca79fa4fa5ff8 | /src/utils/exception/InvalidIntegerNumberExcep.cpp | 5a0f5871c69c35bf3ac0f4a49acc38d87aad34bc | [] | no_license | chris-ondemand3d/MPS-Qt5 | 564df86c587d7a860f25eab62ec9e96fa97aea5c | c4cde85b2481c944f14f0c3bb0daf9ef33675e22 | refs/heads/master | 2021-01-23T16:12:29.728967 | 2013-10-07T11:14:04 | 2013-10-07T11:14:04 | 49,045,479 | 2 | 1 | null | 2016-01-05T06:00:01 | 2016-01-05T05:59:59 | null | UTF-8 | C++ | false | false | 396 | cpp | InvalidIntegerNumberExcep.cpp | #include "InvalidIntegerNumberExcep.h"
InvalidIntegerNumberExcep::InvalidIntegerNumberExcep(const string& message,
ExcepType execpType,
const string& strValue):
... |
a7203465590be47f3660cd0fb764ec136921aaba | 0cbbdadd92428cb18fc0c53cd7c94a94cff16c3a | /SourceCodes/BirdsWatchingApp/hmi/mainwindow.cpp | 0653fe4848669ea075c7a2d787de67069b93f071 | [] | no_license | FoMB/BirdsWatching | eced7e2c4021cef3a51d171cd6795087c2bfaf8c | eca6e82194e7ae85a239b836966c22a109ddc321 | refs/heads/master | 2020-07-13T09:39:04.932320 | 2015-07-20T10:02:53 | 2015-07-20T10:02:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "windows.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
//, dlgChooseBird(new QChooseBird(this))
{
ui->setupUi(this);
serviceThread = new QThread();
qDebug()<<"main thread id = "<<QThread::cu... |
488fc46b048b5d4feac90651ffbb6ecc607315d1 | 7afe8e3343c33c9be3289416349f61fb5757be29 | /repos/homeworkLab2303/homeworkLab2303/Vehicle.cpp | 3160595e17873d7fe9c5a78b5f1f05a80ee9c847 | [] | no_license | agenta007/Coding-Exercises-CPP | 5555e2f934f93b1c05b44dc58e8eb0c9b0203725 | 6e02ecfd98f91c561413f7bd1ba97ece6a0e5e60 | refs/heads/master | 2023-05-06T08:35:28.756116 | 2021-05-31T12:28:20 | 2021-05-31T12:28:20 | 372,497,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | Vehicle.cpp | #include "Vehicle.h"
Vehicle::Vehicle(string vehType, int tyres, int doors)
{
this->vehType = vehType;
this->tyres = tyres;
this->doors = doors;
}
Vehicle::Vehicle(const Vehicle& objRef)
{
vehType = objRef.vehType;
tyres = objRef.tyres;
doors = objRef.doors;
}
void Vehicle::operator=(const Vehicle& r... |
00265559ec4ef77b841255c3fa96d67ad872d970 | 902cd44ea6d0fb5b98b5d24ef9500525616e398f | /CPP/uglynumber.cpp | cfc54c5bb970c5532ded187f5a477b6820f525eb | [] | no_license | aparna2198/datastructures | 911470d3a8cfc3af1de5aa2ae3a780a701879ace | 9440fe09802a02cdebb30f9a587e9f3c1175d1f2 | refs/heads/master | 2023-08-05T22:57:04.428377 | 2021-10-06T14:01:30 | 2021-10-06T14:01:30 | 414,234,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | cpp | uglynumber.cpp | #include<stdio.h>
/*algorithm implies take two variables i and count
loop until count is less than nth position of ugly number
increment i evertime of the loop
increment count only when ugly fucntion returns 1
keep on incrementing i untill n>count and upuntill count is greater
than n increment count only when ugly fuc... |
629e0fb6be5428184519f7e5f5e240ab74e5dd58 | d5c25932f52e7e06b405f799dc21c573baff4c20 | /ch2/s3/nocows.cpp | c8b7b5244107fc0f3b23712163ef919d71f7fe99 | [] | no_license | sketchc89/usaco | 672b5e2b83049adaaa16e04aeea472703f696649 | 1d265b58d363d471dd870d4c0ef05d3d8f1bfbde | refs/heads/main | 2023-04-18T18:38:19.860841 | 2021-04-28T16:15:01 | 2021-04-28T16:15:01 | 318,516,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | nocows.cpp | /*
ID: sketchc1
LANG: C++14
TASK: nocows
*/
#include <bits/stdc++.h>
using namespace std;
constexpr int64_t MOD = 9901;
int main() {
// i/o
ifstream fin("nocows.in");
ofstream fout("nocows.out");
int numNodes, height;
fin >> numNodes >> height;
vector<vector<int64_t>> dp(height + 1, vector<int... |
d5a99143460312cc2427833d240ff177d9135c7e | 78db5d2e4350a4f950efb78a76608b6cbc999e46 | /BuilderPattern.cpp | c6486cfb75ee03773de8df93b35d334ad477cf38 | [] | no_license | zhuoshen617/DesignPatterns | 65f029a9c8ac67a087e4a33663ed521a33f59bc0 | e57cc500a84b00a13827958a2f5ec394c4953673 | refs/heads/master | 2021-07-21T22:55:23.682762 | 2017-10-31T18:56:31 | 2017-10-31T18:56:31 | 107,199,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,287 | cpp | BuilderPattern.cpp | #include <iostream>
#include <string>
#include <memory>
using namespace std;
//Builder Pattern (Has A)
//when you want to build an object which is made up from other set of objects
//this pattern usually are used together with template pattern as shown below
//we are building a Robot here
//the Robot is composed of a... |
bb054b275f1104a2c052c58b103aad779604d691 | e71a818ff8eee7b3ef74610130b02f23924c10a7 | /examples/BlockingProgramMemoryRtttl/BlockingProgramMemoryRtttl.ino | cf28266d55526553ace58fdf3062d6de96b0a26f | [
"MIT"
] | permissive | end2endzone/AnyRtttl | 8dca13436260b8d026017d10704f13612a38ca8f | 1bd707cd6ebea7bc8f840d1656b0c84959c117f8 | refs/heads/master | 2023-08-17T04:40:51.378057 | 2023-08-07T19:36:12 | 2023-08-07T19:36:12 | 151,838,849 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | ino | BlockingProgramMemoryRtttl.ino | #include <anyrtttl.h>
#include <binrtttl.h>
#include <pitches.h>
//project's constants
#define BUZZER_PIN 8
const char tetris[] PROGMEM = "tetris:d=4,o=5,b=160:e6,8b,8c6,8d6,16e6,16d6,8c6,8b,a,8a,8c6,e6,8d6,8c6,b,8b,8c6,d6,e6,c6,a,2a,8p,d6,8f6,a6,8g6,8f6,e6,8e6,8c6,e6,8d6,8c6,b,8b,8c6,d6,e6,c6,a,a";
const char arkanoi... |
9253206433a96acc88646245fb629212c3cc787b | 284adc59ad34aaaae545182cd72cc46397d05e77 | /Timer.h | eaa9a09d3e491b3df7785a358d49aff796d5d6e0 | [] | no_license | syifan/CRVehicle | a7eed14e3bf27c5e0626e44d9e008e9a851f00dc | 590d69a5b30cb2ab6be04c09a74de6d6c47f7f3f | refs/heads/master | 2021-05-27T20:38:30.000631 | 2013-12-01T01:52:18 | 2013-12-01T01:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | h | Timer.h | #ifndef TIMER_H
#define TIMER_H
/**
* A singleton that controls the simulation time
*/
class Timer{
public:
static Timer& getInstance();
static bool advance();
static double getTimeStep();
static double getCurrentTime();
private:
Timer();
Timer( Timer const& );
void operator=(Timer const&);
double n... |
1ffc3a7897e99e412c19fb148b422db8aa782c04 | c28715501f479c441feaa472c4d4e10037fe8a11 | /IntModel/main.cpp | 081bb2e68c44c56ce020502b3ce913877e645111 | [] | no_license | abbaril/Qt-C- | b5ac635e4ebf52074c0150799cce221efdd9e2c2 | 4484633e2874c68fd8dc95ef03816eed17bb35ea | refs/heads/master | 2021-05-01T07:35:29.915709 | 2018-02-11T19:41:04 | 2018-02-11T19:41:04 | 121,159,608 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | main.cpp | #include "intmodel.h"
#include <QApplication>
#include <QListView>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
IntModel model(25);
QListView list;
list.setModel(&model);
list.show();
return a.exec();
}
|
29f2b12fc1ecdbea829dd0e31875d615a7f106c5 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Event/EventInfoMgt/EventInfoMgt/ITagInfoMgr.h | c8ecb2b9cd36d610e43a1200798916d9f5e8b3dc | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,583 | h | ITagInfoMgr.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef EVENTINFOMGT_ITAGINFOMGR_H
# define EVENTINFOMGT_ITAGINFOMGR_H
/**
* @file TagInfoMgr.h
*
* @brief This is a Athena service which manages detector description
* tag information. It maintains a TagInfo object in the Detector
*... |
eead4677c72cd7262592b9863a8275758aa8b413 | 42447a20673b1ca9b3abf818182c125e4ee4dcfd | /Src/Application/FaceBeautificationAppUI.cpp | b0e3b083e98bfab8bab0b196ea7159e8f1f12732 | [] | no_license | feengg/magic3d | 3a3da02872f148a389a4a2789ff63ba2f271d3aa | f5bf517d6a1d1d5fbcb49a50b3db4d42e41cd692 | refs/heads/master | 2020-04-15T05:59:15.543318 | 2014-08-16T09:19:59 | 2014-08-16T09:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,800 | cpp | FaceBeautificationAppUI.cpp | #include "FaceBeautificationAppUI.h"
#include "../Common/ResourceManager.h"
#include "Tool/LogSystem.h"
#include "../Common/AppManager.h"
#include "../Common/ToolKit.h"
#include "FaceBeautificationApp.h"
namespace MagicApp
{
FaceBeautificationAppUI::FaceBeautificationAppUI() :
mpLeftImageTexture(NULL),
... |
dc262b37f8e894c79f0b396f3c8b700ffc32cc00 | dc1e3c2f4c6190ce5b3672970fa3c46de5481f96 | /2020-11-20/array_adress/main.cpp | a5997900a8f2f19af4e6247b3a722722704b3f8b | [] | no_license | ing181/Programmering-1-20-21 | b5e96bf148d45765bad622b9698422437f10ebb8 | 37af5fb30a2e2cc9329fc343842bcc28e55df7cd | refs/heads/master | 2023-03-08T02:40:54.696757 | 2021-02-26T09:05:27 | 2021-02-26T09:05:27 | 289,943,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,885 | cpp | main.cpp | #include <iostream>
using namespace std;
// Arayer som argument till funktioner
// Som visas i exemplet nedan
// när en array skickas som invärde till en funktion
// KOPIERAS INTE ARRAYEN
// VI TALAR OM FÖR FUNKTIONEN VAR ARRAYEN FINNS
// FUNKTIONEN PÅVERKAR DET SOM FINNS PÅ ADRESSEN
// VI SKICKAT TILL FUNKTIONEN
void ... |
c2bf723d29e357da820ab15e80ccbe9dd49d40e7 | bda34633491b808b2dddd292a885186b4dedc7e6 | /304/num_matrix.cpp | 8b988847eb6613ace4a73b0ebf79097c052df61a | [] | no_license | berneylin/LeetCode2019Spring | 3990561862faddf8f294d5750e4ac4c5fcba2953 | 000f8fb2b00d4d5c6bfec9abb11b7f6158ad9ba8 | refs/heads/master | 2021-07-07T00:14:10.898739 | 2020-08-17T18:03:23 | 2020-08-17T18:03:23 | 167,664,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | cpp | num_matrix.cpp | #include<vector>
using namespace std;
class NumMatrix {
public:
NumMatrix(vector<vector<int>>& matrix) {
this->mMatrix = matrix;
if(!this->mMatrix.empty() && !this->mMatrix[0].empty()){
vector<vector<int> > sumArray(matrix.size(), vector<int>(matrix[0].size(), 0));
for(int... |
99aac93cfe78e5a99a944ea664fb2978fd177e3a | 46dbf792b70d765364d9af64a4b97df91c23e2a6 | /Project2/BulletObject.cpp | e7fce50a04a5efb20c8660287f0266a0818ec791 | [] | no_license | minhhieu3001/game_tank | e371876e8f3180a1955f0be6e60cd0167459db48 | 612fbea4ff94add41be16e3a78bfa665ef22b56c | refs/heads/master | 2022-08-21T18:10:13.980849 | 2020-05-18T13:50:16 | 2020-05-18T13:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,939 | cpp | BulletObject.cpp | #include"BulletObject.h"
BulletObject::BulletObject()
{
rect_.x = 0;
rect_.y = 0;
x_change = 0;
y_change = 0;
is_move_ = false;
}
BulletObject::~BulletObject()
{
}
void BulletObject::Move(const int& x_max_, const int& y_max_) //di chuyển trong phạm vi map
{
if (bullet_direction == DIR_RIGHT)
{
rect_.x +=... |
bc5a84d54eec8681e1a01b580e59de5e43898b9e | 5a1876836b8014111363eaf52120fc5e05dd40d2 | /Petrozavodsk Winter-2021. North American Contest/C.cpp | aae57b48af53bf6d51f0454b01a8a7e7856f52e3 | [] | no_license | wcysai/Continued-Story | afb197ef8393882595a7a0579e3a11026dd8ecca | e7845f9c65e8eb837ab6f923676851e06453681d | refs/heads/main | 2023-06-18T00:58:25.364645 | 2021-07-14T07:35:27 | 2021-07-14T07:35:27 | 301,825,686 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,509 | cpp | C.cpp | #include<bits/stdc++.h>
#define MAXN 300005
#define INF 1000000000
#define MOD 1000000007
#define F first
#define S second
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
int n;
string str;
ll ans[4][MAXN];//LRUD
int calc_score(int x,int y)
{
return (max(-x,x)+1)^(max(-y,y)+1);
}
int x[MAXN],y[M... |
a918e01aed290bc80c2bb58f221344217abcf84e | 44cb8e84cd090115b18b046d7d403ae841dc0fd1 | /Problem9/main.cpp | 4fe43e650a330725f8bc19747a7a1e11cb41961f | [] | no_license | mnuecht/ProjectEuler | 58bd5ae3e06caf56ba45ee04afbc27a508677569 | aa9e4f63bbe81375e03aafcd96262d857f221724 | refs/heads/master | 2020-03-28T01:14:27.677277 | 2018-02-11T03:08:53 | 2018-02-11T03:08:53 | 63,992,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | main.cpp | #include <stdlib.h>
#include <stdio.h>
using namespace std;
#define RESULT 1000
bool isPythTriplet(int a, int b, int c) {
return (a * a == b * b + c * c);
}
int main() {
for (int a = 1; a <= RESULT; a++) {
for (int b = 1; b <= RESULT - a; b++) {
int c = RESULT - a - b;
if (isPythTriplet(a, b, c)) {
pri... |
f1d9800a3ff2867f0e5c0bdbe8f4b182ac4ff24e | d9d4a9c18e5a473e60fc34afff8ec4aaa2f88707 | /examples/Terminal_MP3_Player/Terminal_MP3_Player.ino | 573e4488e7a508ef2ef31c9cde3f97f501e53bbb | [] | no_license | mu-opensource/MoonBot | f9e4ccd12ac3c67b882e9e4f591b823784a587db | 41c01289d5ea710eaa492dbbca00f95e6b92e074 | refs/heads/master | 2020-05-17T10:57:24.413805 | 2019-12-20T07:53:52 | 2019-12-20T07:53:52 | 183,672,017 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,138 | ino | Terminal_MP3_Player.ino | /*
WT2003 S Terminal_MP3_Player
This example makes an MP3 player that can be controlled from the terminal window on a computer.
It exposes the full set of commands that are available for the WT2003S
Using the WT2003S MP3 Decoder IC on the SparkFun breakout board with Arduino Uno
Hardware Connections:
WT2003S ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.