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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b20e06a3a5ac09360d933536d80f73424fadab78 | 858913743cab20c8a87dda037703808cdbdfab41 | /srcs/AEntity.class.hpp | 807a3bc11cdfe28691100ac0a1434246a33b7590 | [] | no_license | Arubinu/Rush00---Shoot-Em-Up | b0daf153bd2736dc190e2921c7f2ffcab31a3e3a | cd6aa2964da6de2110191596753deceec9eeadaa | refs/heads/master | 2021-01-18T16:51:53.245597 | 2015-01-12T10:41:34 | 2015-01-12T10:41:34 | 29,130,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,963 | hpp | AEntity.class.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AEntity.class.hpp :+: :+: :+: ... |
f438be64f10c5a28c228e9700aafec2abf414f15 | c3d5ad602cd0acb02c3c45fbf815e071f8a36421 | /p96---balance/balance.cpp | 079252ebb88dda07cea8e2b54a0547321ae475d2 | [] | no_license | kankanla/Cjiajia | a529f025860b9a1c51c0a6d42507421c40c33044 | 274d114fa90a1c17e7bc030c0598dbb96de2ed63 | refs/heads/master | 2021-04-04T03:45:48.578316 | 2021-02-21T06:00:46 | 2021-02-21T06:00:46 | 248,422,461 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | balance.cpp | #include <iostream>
int balance_owed; // amount owed
int main()
{
std::cout << "Enter number of dollars owed:";
std::cin >> balance_owed;
if (balance_owed = 0)
std::cout << "You owe nothing.\n";
else
std::cout << "You owe " << balance_owed << " dollars.\n";
return (0);
}
|
fe4cb2d1a0cf7aa0779a2b2634f9b4275a6d9564 | 7c556f3005250cbccc852ef8c517d2e5385b4247 | /OpcUaServer/opcua/src/protocol/binary_data_value.cpp | 0d59d199c5400a9375e25323e914f6d614780f4b | [] | no_license | kadirlua/OpcUaServer | 04cc2883d9d4de1a8cabdc1d173a08917ef2540e | 2f5affc7152f991ed1045d4758fe92d8bcfe055f | refs/heads/main | 2023-03-14T02:48:59.551073 | 2021-02-26T17:18:45 | 2021-02-26T17:18:45 | 342,634,352 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,824 | cpp | binary_data_value.cpp | // @author Alexander Rykovanov 2012
/// @email rykovanov.as@gmail.com
/// @brief Opc Ua binary session services.
/// @license GNU LGPL
///
/// Distributed under the GNU LGPL License
/// (See accompanying file LICENSE or copy at
/// http://www.gnu.org/licenses/lgpl.html)
///
#include "binary_serialization.h"
... |
ecfe33d99d8197d046593e9ed67fa096622fd585 | d9903208f0e4bb6f1bada07aac2dd3b26f15cda7 | /source/ZeroSampler.cpp | c785936dbd7dc440aee1fb8dc9957a72af4d63b0 | [
"MIT"
] | permissive | EnricoCorsaro/DIAMONDS | 616bd1113e95d71e0c642ca31f697d903e54b5c6 | c00d90297213368f1db97dfde2f43372df75353d | refs/heads/master | 2022-07-28T00:45:11.504874 | 2022-07-12T14:13:37 | 2022-07-12T14:13:37 | 76,955,254 | 7 | 4 | null | 2017-09-25T15:25:29 | 2016-12-20T12:37:15 | C++ | UTF-8 | C++ | false | false | 2,991 | cpp | ZeroSampler.cpp | #include "ZeroSampler.h"
// ZeroSampler::ZeroSampler()
//
// PURPOSE:
// Constructor. Sets initial information, logEvidence and type
// of prior and likelihood distributions to be used.
//
// INPUT:
// printOnTheScreen: Boolean value specifying whether the results are to
// ... |
a55cb126a276e21d0280a781aa03fcf3c9770ec8 | ee566f1e387d6c4009cb299a4d5f4c00bd3cc901 | /test/corecel/data/HyperslabIndexer.test.cc | f447f5fde253e4ced16fa56e6d2fb3dfabf4ac75 | [
"MIT",
"Apache-2.0"
] | permissive | celeritas-project/celeritas | 3d4f5aedd01c9c21b62ae0712c84f027e05179d3 | e7fe01331baf055393d78bdaceff8c1f7db4c9c4 | refs/heads/develop | 2023-09-01T14:10:32.210033 | 2023-08-31T21:14:20 | 2023-08-31T21:14:20 | 250,622,820 | 48 | 24 | NOASSERTION | 2023-09-14T17:11:38 | 2020-03-27T19:06:46 | C++ | UTF-8 | C++ | false | false | 3,212 | cc | HyperslabIndexer.test.cc | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020-2023 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//--------------------------------------------------------------------... |
c65dce56d6e4258bb4bb56db63665a28b2285f06 | 2a394cc6f908ee98ef94b5f4e3bf03c92d64ddc6 | /5/16340242吴宇祺Exp5/code/Matrix.h | 8d0dc040f5abeea4c2bc7308d59e8cb5f352a040 | [] | no_license | WuYuQi0301/Computer-Vision | c7d2b25e3421464113203c744d5b574a4758eaa1 | 0f37d7cf80ee812d01bcf61d0d5cfbb6d1025755 | refs/heads/master | 2020-04-03T18:39:40.809098 | 2018-12-01T11:28:07 | 2018-12-01T11:28:07 | 155,492,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | h | Matrix.h | #ifndef MATRIX_H
#define MATRIX_H
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "Point.hpp"
using namespace std;
#define MYDIM 3 //测试矩阵维数定义
//得到一个空矩阵
extern double** getAMatrix(int row, int col);
//得到三个点的值组成的矩阵
extern double** makeAMatrix(Point &p0, Point &p1, Point &p2);... |
3eb5d64c92d2193ebef42b1116b1a8b6c62f5733 | 6226d6aed3629aa4069c46971ffe764bb6c743f6 | /D3D9RenderSystem/MWD3D9VertexShader.h | 93f19ef87532805376c6456eb09c2e4b6a42bc2a | [] | no_license | Myway3D/Myway3D | 83c30258f1e3eae90e619269406acd0ddeac7887 | 39cf569993f62fc648cbba49ebf74b3f8a64e46a | refs/heads/master | 2020-04-22T20:24:15.817427 | 2014-03-09T14:25:23 | 2014-03-09T14:25:23 | 170,640,096 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 68 | h | MWD3D9VertexShader.h | #pragma once
#include "MWD3D9Mapping.h"
namespace Myway
{
} |
4286efb92e7815fca22f5444046653020b770a37 | 5a9fd26dd8d874cc338955bf1e2f99541669e88d | /include/warren/Feature.h | f025fc886a8ca5c17e92b6ed0761e4ef6d00ab00 | [] | no_license | buchanae/warren | 0f8dd84031fda9659189e808d46b3da0e6912e5c | 9044a8d24e35ef21672faf005372c39826568a4f | refs/heads/master | 2021-05-29T14:14:29.069758 | 2012-08-07T01:03:41 | 2012-08-07T01:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,140 | h | Feature.h | #ifndef WARREN_FEATURE_H
#define WARREN_FEATURE_H
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <boost/assign/list_of.hpp>
#include <boost/algorithm/string.hpp>
#include "warren/Attributes.h"
#include "warren/tokenizer.h"
using std::string;
using std::vector;
using b... |
7737145320a983dd96e173b5d229e532da16f88a | 3f8f0fc5a6a81739500f4bd91c33534171bca30a | /4_omp.cpp | 5d943aa253a50056aea8de535e11876e57547fc9 | [] | no_license | GolovkinMaxim/Parallel-computing | a3a5c28bd33cb7cb53251a14249af3f47673c5ce | 18185b2ccf1fd40cff1486625bb70e841962028a | refs/heads/master | 2022-11-03T12:34:17.164468 | 2020-06-22T14:21:11 | 2020-06-22T14:21:11 | 272,102,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,133 | cpp | 4_omp.cpp | #include <stdio.h>
#include <cstdlib>
#include <omp.h>
double f (double x, double y)
{
return x*x + (y-2) * (y-2);
}
int main(){
double a1, a2, b1, b2, h1, h2, *mins, minimum;
int n, num_threads;
a1 = 0.0;
b1 = 4.0;
a2 = -1.0;
b2 = 1.0;
n = 100000000;
num_threads = 4;
... |
6042ec77dd775bb54a26d78f69b703505b8fd2e6 | ad74f7a42e8dec14ec7576252fcbc3fc46679f27 | /AresSupernode/AresSupernodeUDPDispatcher.h | 66a72c28ec81def142105fe88f19d5363ecdbf02 | [] | no_license | radtek/TrapperKeeper | 56fed7afa259aee20d6d81e71e19786f2f0d9418 | 63f87606ae02e7c29608fedfdf8b7e65339b8e9a | refs/heads/master | 2020-05-29T16:49:29.708375 | 2013-05-15T08:33:23 | 2013-05-15T08:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | h | AresSupernodeUDPDispatcher.h | #pragma once
#include "..\tkcom\vector.h"
#include "..\tkcom\threadedobject.h"
#include "..\tkcom\Buffer2000.h"
#include "AresSNUDPHost.h"
class AresSupernodeUDPDispatcher : public ThreadedObject
{
class UDPDispatchJob : public Object
{
public:
Buffer2000* mp_packet;
string m_host_ip;
unsigned short m_port;
... |
5859df23f9045b046f82ea9eff09d84fe5037e3b | 8696404296a25637aa3c85ece2cfc38d8c46d8c6 | /Game/TeleportComponent.cpp | 7beb0ca309f343f74db94b3fb2a20ec7892991bf | [] | no_license | DylanDeWaele/DDWEngine | 5b3dbf67c144ff0b41ff7ba75638de6ebeaf90b4 | 877f0a279a06ded3f9e7cfadc57c42a4ec23b978 | refs/heads/master | 2021-04-08T18:35:11.354564 | 2020-06-14T16:53:42 | 2020-06-14T16:53:42 | 248,797,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | TeleportComponent.cpp | #include "GamePCH.h"
//Components
#include "TeleportComponent.h"
#include "BoxColliderComponent.h"
#include "TransformComponent.h"
void TeleportComponent::Update()
{
//If a player or enemy collides with the trigger, teleport to the teleport location
BoxColliderComponent* pBoxCollider = m_pGameObject->GetComponent<B... |
41e5dae781dcfdb76e0d0b6be5d1eec2909eaea5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5766201229705216_0/C++/imai0917/b.cpp | 22d765dd1ae9d9169114d4a08f38cbd015bf4d7e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cpp | b.cpp | #include <stdio.h>
#include <vector>
using namespace std;
FILE *fin, *fout;
int N;
int E[1010][2];
vector<int> T[1010];
void init(void)
{
int i;
for (i=1;i<=N;++i){
while (!T[i].empty()){
T[i].pop_back();
}
}
}
void input(void)
{
fscanf(fin, "%d", &N);
int i;
for (i=0;i<N-1;++i){
fscanf(fin, "%d %d", &... |
7824fc46ea1067976cbd4e7741db01028a742370 | 02c201b1afd2de7f8237adc3737734e19b77cd2b | /src/ir/lubs.h | afc5c067603a7073d88abd2cd7aca1240f4a601c | [
"Apache-2.0"
] | permissive | WebAssembly/binaryen | 1ce65e58489c99b5a66ab51927a5b218c70ae315 | 90d8185ba2be34fa6b6a8f8ce0cbb87e0a9ed0da | refs/heads/main | 2023-08-31T21:01:27.020148 | 2023-08-31T19:32:33 | 2023-08-31T19:32:33 | 45,208,608 | 7,061 | 768 | Apache-2.0 | 2023-09-14T21:41:04 | 2015-10-29T20:26:28 | WebAssembly | UTF-8 | C++ | false | false | 2,245 | h | lubs.h | /*
* Copyright 2021 WebAssembly Community Group participants
*
* 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... |
f8f81f946679beac8eed25cd9045354a796d0ba1 | 184587fd937b723cdea99e2e1f5653dcb58c9438 | /C++14/dp/lis.cpp | df52518e68093d8052eb8f3d21ddd3bc83934fba | [] | no_license | Samy-33/Competitive-Coding | 2e3373a0ad5a61a9e4138ef17d260803625e8620 | 0e1499cabc1a9ea645d0def046f9ea9483d58d75 | refs/heads/master | 2021-01-12T01:18:10.052683 | 2017-01-05T15:16:14 | 2017-01-05T15:16:14 | 78,368,451 | 1 | 0 | null | 2017-01-08T20:25:12 | 2017-01-08T20:25:12 | null | UTF-8 | C++ | false | false | 1,600 | cpp | lis.cpp | const int MAX = 1003;
int dp[MAX], prev[MAX], a[MAX];
// DYNAMIC PROGRAMMING APPROACH - O(n^2)
// dp[i] to be the length of the LIS(Longest increasing subsequence) which is ending at element with index i
int increasingSubsequece(int n) {
int maxLength = 1, bestEnd = 0;
dp[0] = 1;
prev[0] = -1;
for (in... |
40d3abb6c48ef36f9eb465cfaa4d8f5d88b530b0 | d20dd18bc27babe23d6d23e0c7439967f3c46862 | /XmlLib/SaxString.h | 19ac5bf5e5fabc06c0a691b0d3544cdf7abc8e1c | [] | no_license | Maetrim/DDOBuilder | 0de2c53c43fa881d6884cfc13374ab549bbdbc1b | bcd2700eba09805eee86b94285a5767ec652f09f | refs/heads/master | 2023-08-31T15:21:51.948242 | 2023-08-24T18:13:47 | 2023-08-24T18:13:47 | 97,280,896 | 83 | 31 | null | 2022-05-25T15:17:32 | 2017-07-14T23:58:46 | C++ | UTF-8 | C++ | false | false | 1,648 | h | SaxString.h | // SaxString.h
//
#pragma once
#include "XmlLibExports.h"
#include <string>
#include <ostream>
namespace XmlLib
{
class SaxString
{
public:
SaxString();
SaxString(const wchar_t * start, const wchar_t * end); // start up to not including end
SaxString(const wchar_t *... |
c1f64257c5e4efd478c6a2b80bb2ce7689b7cfb2 | 8b55fe6c8b0fde8af69a8dc25f46f05ce522580f | /include/sPlotsPdfsComparison.h | 825cf340859ac6b16c5c5f6314ac92833fda4482 | [] | no_license | VecbosApp/EgammaAnalysisTools | 8e2c9c417482302909fb6eb9b552180de055809b | e968db52750fcaf7e24c0e63a5d02669bec56f79 | refs/heads/master | 2021-01-25T07:28:09.824135 | 2013-04-03T07:03:01 | 2013-04-03T07:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,016 | h | sPlotsPdfsComparison.h | //////////////////////////////////////////////////////////
// This class has been automatically generated on
// Thu Apr 15 01:31:13 2010 by ROOT version 5.22/00a
// from TTree dataset/dataset with sWeights
// found on file: ../results/sPlotsTree/sPlots_tree.root
/////////////////////////////////////////////////////////... |
5e63ad0ea3b282654eeb89054673062f60c422ec | 8bf6e2bbe2784f8541a6faa490a7a63801397893 | /Smart_home/Smart_home.ino | 440a13d5bb6a0157f0be3d30eeacd5126a060632 | [] | no_license | Mrtony94/Smart-Home | 50f8c5e37846ccea4d5e452a6549c1c0785062dc | 53391b5662c3a1f180d1b8a4aaf4eb9989a248e3 | refs/heads/master | 2022-10-25T02:44:38.135776 | 2020-06-19T00:02:11 | 2020-06-19T00:02:11 | 273,363,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,599 | ino | Smart_home.ino | //Librerias
#include <Servo.h>
#include <Keypad.h>
#include <Password.h>
//--------------------------------------------------------------------------------------------------------------
//PINES
//--------------------------------------------------------------------------------------------------------------
//SE... |
b97664d9f33ff1cf8d5054920148a7a63af215bf | 0b3dcad5d7900581ee5f87e87f6457159f2fa24e | /Dynamic Programming/MinCost Path Matrix.cpp | d143e3316b276a7c81d281ca467f31021b991b4a | [] | no_license | SwarnenduGanguli25/DATA_STRUCTURES | dc292d5fb3d66ec051ff694e45173f414dc2d4d6 | 96d473c9ac3db5fcea9bf1d9fd260aa85ad4a1e1 | refs/heads/master | 2022-11-08T01:14:45.220745 | 2020-06-29T11:53:53 | 2020-06-29T11:53:53 | 266,082,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | MinCost Path Matrix.cpp | #include<iostream>
using namespace std;
int minn(int num1,int num2,int num3){
int smt=num1<num2?(num1<num3?num1:num3):(num2<num3?num2:num3);
return smt;
}
int minCostDP(int cost[3][3],int i,int j,int m,int n,int row,int column){
int dp[row][column];
if(i==m && j==n) return dp[i][j]=cost[m][n];
if(i>... |
b512070a0d64b7b011a134e4062c574caff1f41b | 682be4e1d2b5824a6b0b839468f74391e1332364 | /day01/ex03/ZombieHorde.hpp | 4485c787a0e85b6057ff35ed72f11cc6a604b0b3 | [] | no_license | lprunier/PiscineCPP | ddca3a647a43ce89c6f0c367cab73a5aaa94bb58 | c0dc564aac13c76d787e011b50ec0e0c0a55b7b1 | refs/heads/master | 2020-03-18T19:04:10.752920 | 2018-06-07T14:20:12 | 2018-06-07T14:20:12 | 135,132,207 | 0 | 1 | null | 2019-08-23T15:35:12 | 2018-05-28T08:27:48 | C++ | UTF-8 | C++ | false | false | 1,139 | hpp | ZombieHorde.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ZombieHorde.hpp :+: :+: :+: ... |
34b8ddf74cc2fa8309d7dabcd6c1e3e0f0d47908 | 5793887005d7507a0a08dc82f389d8b8849bc4ed | /vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt6735m/hal/sensor/seninf_drv.h | 0ce9cc55c0f8c74d1d208bdabefb38bb74b55526 | [] | no_license | wangbichao/dual_camera_x | 34b0e70bf2dc294c7fa077c637309498654430fa | fa4bf7e6d874adb7cf4c658235a8d24399f29f30 | refs/heads/master | 2020-04-05T13:40:56.119933 | 2017-07-10T13:57:33 | 2017-07-10T13:57:33 | 94,966,927 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,730 | h | seninf_drv.h | /********************************************************************************************
* LEGAL DISCLAIMER
*
* (Header of MediaTek Software/Firmware Release or Documentation)
*
* BY OPENING OR USING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AN... |
b94138bac1b9ecd2332a30fe7a53d0af55b9fc00 | 1dba1a2a78692d3d7a7cf449cc38dd94b868a29e | /Stream of Characters.cpp | d595c95e9106e941fff40c6c4fd9f37e1d873ca8 | [] | no_license | vikasatverma/LeetCode-August-Challenge | 53e733952e874b8b06addec81098096128957ce7 | 16749a1434ba1aa212709e65cc9cff0f33ad3ab2 | refs/heads/master | 2023-01-06T01:38:32.175633 | 2020-11-09T05:31:05 | 2020-11-09T05:31:05 | 285,593,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | cpp | Stream of Characters.cpp | class tirenode{
public:
//Words will only consist of lowercase English letters.
tirenode(){
children.resize(26, nullptr);
}
vector<tirenode*> children;
bool isEnd = false;
};
class StreamChecker {
public:
tirenode* root;
string str = "";
int maxLen = 0;
StreamChecker(vector<string>& words) {
root = new ti... |
b3466d973324d6a295081e010d6144c4b86741ec | b48710b5bcdc7632775301ca24f27d264cbde816 | /hull.cpp | 596627b22bfe58e46e1b4c7d47ee039cd765d6ad | [] | no_license | hhyc2/Uva | 7c241ce6e76e9548e91391d83604013813a8abfa | 7953d067498959f770e22d5f1ae68074a75655da | refs/heads/master | 2023-01-28T03:00:25.277907 | 2020-12-01T16:23:00 | 2020-12-01T16:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,439 | cpp | hull.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>
#define MAX_N 20001
using namespace std;
typedef long long int llt;
ifstream fin;
ofstream fout;
class point {
public:
llt x, y, dx, dy;
point(llt x = 0, llt y = 0) :x(x), y(y), dx(0), dy(0) {}
bool operator<(const point& p) cons... |
e6fc1c42094ef4620ba38f0abbb50e242028214b | a38954e126283c848c9c8ee9f0a5a584b2ffc1a7 | /src/Transfers/SynchronizationState.h | 80d1de5ae8210b5fb92e2934f640c30178f9baf2 | [
"MIT"
] | permissive | ConcealNetwork/conceal-core | ddf5adfc587358dbe52d73f58770932545cbd722 | 18cb15e356ae1d03fe2abfcab3ee952247a869aa | refs/heads/master | 2023-06-28T05:25:06.657878 | 2023-06-18T11:34:21 | 2023-06-18T11:34:21 | 131,538,892 | 250 | 111 | MIT | 2023-06-18T11:34:22 | 2018-04-29T23:42:44 | C++ | UTF-8 | C++ | false | false | 1,475 | h | SynchronizationState.h | // Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2017-2018 The Circle Foundation & Conceal Devs
// Copyright (c) 2018-2023 Conceal Network & Conceal Devs
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.... |
d512e1d80115be3b209b487b632cf239046f884b | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/ee/a635a75a390a2f/main.cpp | 8ef3afe77a7365d385ff405b8117222c3b1b9fa0 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | main.cpp | #include <memory>
#include <iostream>
#include <map>
#include <initializer_list>
std::shared_ptr<int> foo(std::initializer_list<std::pair<std::string, std::shared_ptr<int> > >) {return {};}
std::shared_ptr<int> foo(std::initializer_list<std::shared_ptr<int> >) { return {}; }
std::shared_ptr<int> foo(int) { re... |
83ba55b1a2ec7a5f8f65ba214c47be23b5c71509 | a17d5e594df40f2915d4d5b78ddde81c78934af6 | /vectorIterator.cpp | ae510655e7dabf3e41d188ab9507d34042434417 | [] | no_license | william00007/tp2 | 101274259ea48325c90ba7c3420ffbc7e07fb4c4 | 0eb07255cbdca340559fb22826bedb546a16c4fb | refs/heads/master | 2020-12-24T08:41:24.375034 | 2016-12-03T16:58:13 | 2016-12-03T16:58:13 | 73,327,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | cpp | vectorIterator.cpp | #include "vectorIterator.h"
template <class T>
VectorIterator<T>::VectorIterator(std::vector<T> v)
: vector_(v), index_(-1)
{
}
template <class T>
bool VectorIterator<T>::hasNext()
{
return index_ < int(vector_.size() - 1);
}
template <class T>
T VectorIterator<T>::next()
{
index_++;
return vector_.a... |
efc6100c5232a2d18920fd2620b2e55752347ddc | 087cbbd3099ff8fd8d2051c60461a0458333dbac | /contests/CFgym101982/D.cpp | 2264f6f83c2c511ccff8b9aef8330f7ee15cb957 | [] | no_license | 1998factorial/Codeforces | 1046ffb2dbee582191fa59e7290c53e902c0af5c | f5b8139810e0724828e6ce7e26f3f8228589b00a | refs/heads/master | 2021-07-05T21:34:45.053171 | 2021-04-10T06:21:33 | 2021-04-10T06:21:33 | 228,158,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MOD = 1000000009;
ll DP[130][130][1005] , f[130];
int N , K;
void add(ll& a , ll b){
a += b;
if(a >= MOD)a -= MOD;
}
int main(){
cin >> K >> N;
f[0] = 1;
for(int i = 1; i <= N; ++i)f[i] = f[i - 1] * 2 % K;
DP[0][0][0]... |
5ca9fd9c16c9c58575e0d17056ca49c6ae4d4bd3 | ec231b24eedf1d1b01c4bdfa76e8a39dc6fc3d19 | /AutoPrint/crawlDoc/crawlDoc/Printer.cpp | 8ce82de461914b1c4be8f68a351888638b7c4e64 | [] | no_license | asdlei99/WinProject | 1be5021c2ba1afaa831b214a8f163473d30b8971 | 3a95650b683be54f63937475e36676864a60b136 | refs/heads/master | 2020-05-29T20:59:33.957237 | 2018-11-02T08:27:02 | 2018-11-02T08:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,767 | cpp | Printer.cpp | #include "stdafx.h"
#include "printer.h"
#using "..\sendToPrinter.dll"
using namespace sendToPrinter;
using namespace std;
Printer::Printer()
{
hPrinter = (LPHANDLE)malloc(sizeof(LPHANDLE));
bStatus = OpenPrinter(NAMEOFPRINTER, hPrinter, NULL);
}
int Printer::addPrinter()
{
return 0;
}
void Printer::Clear()... |
c8c9d8c6ea00309bab66dd4962c63643792ace5e | bed05496e526a2716d6aa2ca7904c1b89c9058f3 | /CODECHEF/MAY18/testing.cpp | cbfac2741954820350936b188535845447c3921c | [] | no_license | dushyant7917/Competitive-Programming | 2e5b6141e87f42bb5dbb61db3b6bcb383c559c16 | d25bbb12235bdaf42435342e4865b5b0b6b37a31 | refs/heads/master | 2020-06-28T12:05:58.959849 | 2019-08-02T12:24:15 | 2019-08-02T12:24:15 | 200,230,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,163 | cpp | testing.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dbl;
#define fr(x,a,b) for(ll x=a;x<b;x++)
#define rf(x,a,b) for(ll x=a;x>=b;x--)
#define pii pair<ll,ll>
#define PB push_back
#define MP make_pair
#define mod 1000000007
#define gmax LLONG_MAX
#define gmin LLONG_MIN
#define INF 2e9
#de... |
302e37cc8ce5851d2e9ef2458f0d5051a5505837 | 444421ff992d4cb220d289d9c211145961c640f1 | /cppMarProg/Paradox/main.cpp | ce462c435760ffda5a5cef0eb0a33a8ba002c9fd | [] | no_license | nerzhul250/Marathons | c93e4fb8be7e73e0e4c5b0a534442c0f0b07e900 | 6074d5b1ac48e1199f619e8be43d89387db30a41 | refs/heads/master | 2021-07-03T22:58:27.113693 | 2020-09-07T16:23:40 | 2020-09-07T16:23:40 | 168,785,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
typedef pair<int,int> ii;
vector<int> real;
ii adj[105];
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
while(n!=0){
for(int i=0;i<n;i++){
string val;
int go;
int b... |
f56860c2984a76ef1badbf3f632a02e9a18b53b4 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1595491_0/C++/retep998/main.cpp | 4e238a084a6ec868bf73eecac7885d4c6fd3ecee | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 822 | cpp | main.cpp | #include <string>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <array>
#include <ctime>
#include <functional>
using namespace std;
char c[256];
int main() {
ifstream in("input.txt");
ofstream out("output.txt");
int cases;
in >> cases;
f... |
b8b83abc716563d7629737dc7571abf00361c88a | a7d0d90142c3535de5de62d4b4c41c3350601aa4 | /beng_beng Engine/CBaseApp.h | 956b76c2bc0ca386ccd157bb64fd2c5ce446ab2f | [] | no_license | hoisin/beng_beng | 828a693cee35b1bc6ebf09bb9e694f10c0d7cf36 | 3ded69da83eef12728f7d06bbebe29c4bb089373 | refs/heads/master | 2020-03-22T00:43:47.560836 | 2019-01-02T13:31:56 | 2019-01-02T13:31:56 | 139,262,018 | 0 | 0 | null | 2019-01-02T13:31:57 | 2018-06-30T16:06:16 | HTML | UTF-8 | C++ | false | false | 1,550 | h | CBaseApp.h | //--------------------------------------------------------------------------
//
// Base Application framework
//
// 03/11/2017
//
//--------------------------------------------------------------------------
#pragma once
#include <string>
#include <vector>
#include <windows.h>
#include "Errors.h"
#define DEFAULT_WIND... |
1e7a2207ca027b6c87f072659b2fa009cd908f32 | 61770154796c036cd1412bcdb3226e29237aa767 | /7-bit_manipulation/unique_no3.cpp | e2a7ec99724648d45247503f70809dbafca20e5e | [] | no_license | kkunalguptaaa/codingBlocks | fc0bf645932ba217b090417453e80d309f9113b3 | 472d1871a4348d938ab4973fb8e9f2bf67e4eab6 | refs/heads/main | 2023-01-05T23:05:52.409554 | 2020-11-07T11:43:34 | 2020-11-07T11:43:34 | 310,830,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | unique_no3.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
int unique_no3(vector<int> &vec,int n){
int max_num=vec[0];
int max_num_index=0;
vector<int> sum_bit(n,0); //initilise a vector with 0 n values
for(int i=1;i<n;i++){
if(max_num<vec[i]){
max_n... |
c80d96165c1f22a798737af19a78d90fc2c51d9f | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/3039.cpp | f664d5f9deab00356a59a46d9478fc5d6f945dbb | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | 3039.cpp | #include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;
typedef unsigned long long LL;
const int N=1000010;
int n,nxt[N];bool tag[N];
char str[N];
int main(){
//freopen("article.in","r",stdin);
//freopen("article.out","w",stdout);
scanf("%s",str+1);n=strlen(str+1);
int j... |
d102a942693f083e68c9f6e4b9858af6df7812de | 3f3a42f429f8bcd769644148b24c3b0e6e2589ed | /U2_3D/Src/main/U2Segment3D.h | 94d2d44efde30289a4b6b9d13963e449e3b71c9c | [] | no_license | DanielNeander/my-3d-engine | d10ad3e57a205f6148357f47467b550c7e0e0f33 | 7f0babbfdf0b719ea4b114a89997d3e52bcb2b6c | refs/heads/master | 2021-01-10T17:58:25.691360 | 2013-04-24T07:37:31 | 2013-04-24T07:37:31 | 53,236,587 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 788 | h | U2Segment3D.h | /************************************************************************
module : U2Segment3D
Author : Yun sangyong
Desc : GT, Section 5.1: Linear Components
GT, Section 9.1: Linear Components
************************************************************************/
#pragma once
#ifndef U2_SEGMENT_H
#define... |
bd76450c68d5180f76e26a96b0b3b918f3e2ee08 | c69539927ca23ae2837684c4d2e2ad4aac445117 | /RandomHubbard/rrg_random_hubbard.cc | ebb4f3f3c0d687842e879a654c14ae4088096770 | [] | no_license | brendenroberts/RigorousRG | 2ec94c306087e53481278e38900025419795724b | 8e1bd942f6347180be306963d9e73e9bb684dead | refs/heads/main | 2022-12-02T15:44:34.042900 | 2022-11-09T14:17:43 | 2022-11-09T14:17:43 | 61,067,364 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,725 | cc | rrg_random_hubbard.cc | #include "rrg.h"
#include "itensor/mps/sites/fermion.h"
#include <fstream>
#include <iostream>
#include <iomanip>
double dist(int i , int j , vector<double> dx , vector<double> dy) {
return sqrt((i+dx.at(i)-j-dx.at(j))*(i+dx.at(i)-j-dx.at(j)) + (dy.at(i)-dy.at(j))*(dy.at(i)-dy.at(j)));
}
int parseDisorder(str... |
100338376b721e7713e9f1248dec0739f69e409a | 416b5243781741c81e85f9dde2a8053e1958cf8c | /fsm/include/control_bus/states.h | 72b4244138741e5029246bb14f1bea2f48fb5153 | [] | no_license | chipsneutrino/chips-daq | 657450aef2b43ea4b38fd0f8a0d170e062ff03b9 | 5f6c15f534eddf5a2e2c7bd201c3d7178a5428d4 | refs/heads/main | 2023-06-02T03:16:37.262177 | 2020-05-21T18:12:21 | 2020-05-21T18:12:21 | 378,112,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | h | states.h | #pragma once
#include "control_bus/fsm.h"
namespace ControlBus {
namespace states {
class Offline : public FSM {
void entry() override;
void react(events::Connected const& e);
};
class Online : public FSM {
void entry() override;
void react(events::Disconnected const& e) o... |
6d84433a012531eabacc7ec5562407e26d9825c4 | dead9ba62a993f66dcfad13552a0b684f9342d9d | /src/graphics/cubemap.cpp | 23af8f2295b49056de38a6854495ccdce7c12bbf | [] | no_license | timostrating/PokeWorld | 32682cff9a54c6cf424c52d6f8622afb54fc1eca | 4c00c3dba9b875ff9ffb5c9920742f09735ada00 | refs/heads/master | 2021-06-24T15:51:29.497785 | 2021-01-16T21:03:47 | 2021-01-16T21:03:47 | 192,098,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,718 | cpp | cubemap.cpp | //
// Created by sneeuwpop on 08-12-19.
//
#include <iostream>
#include <vector>
#include "cubemap.h"
#include "../util/external/stb_image.hpp"
//Cubemap Cubemap::fromAssetFile()
//{
//
// return Cubemap(faces);
//}
Cubemap::Cubemap(std::vector<std::string> faces)
{
glGenTextures(1, &textureId);
std::cout... |
4c51faf8520555829d373e31c9d66c8fd176a965 | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/UnityEngine/AvatarTarget.hpp | 116e102fc4c09ff26d365b07480df2142ce1ab51 | [
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 4,435 | hpp | AvatarTarget.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "Syste... |
1193af089384b78a2b73c28e854c3fbd237cc286 | 5f95a1fb02a372bc49d5f6758727c9736781bfbb | /eyes_2018/SpritePixel.h | cf910d3359d78b0d98961ed97daacb13158d1466 | [] | no_license | pmrobotix/EYES | 52014d9246e7f950c3032ce7f63bc33e814c6c58 | 5c8043f02c840e52a6db96418dd88d9a499818ec | refs/heads/master | 2023-05-02T20:20:00.703705 | 2023-04-20T14:29:35 | 2023-04-20T14:29:35 | 85,198,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | h | SpritePixel.h | /*
* SpritePixel.h
*
* Created on: 8 avr. 2018
* Author: gmo
*/
#ifndef SPRITEPIXEL_H_
#define SPRITEPIXEL_H_
namespace eyes {
class SpritePixel {
public:
char mX;
char mY;
unsigned char mRed;
unsigned char mGreen;
unsigned char mBlue;
SpritePixel(char x, char y, unsigned char red... |
fe827886c198765f0f66657719dc1172958a12ff | c26f4e6bef5c01e924e981a99f0848c36287751c | /ArduinoTest/ARDUINO_CODE/ARDUINO_CODE.ino | e997ab96288197b652921e6ad030ea6a4b3bed50 | [] | no_license | rbalaz/liveproject3dglove- | cf82ef5a8cd06e6a08706f97f497ba17155bdef7 | 5422be6d2c254370a39ccb77dd613e4e2a454a85 | refs/heads/master | 2021-09-07T01:29:25.123133 | 2018-02-14T19:28:40 | 2018-02-14T19:28:40 | 106,589,845 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | ino | ARDUINO_CODE.ino | #include <Servo.h>
Servo servo1;
int servoPos = 0;
const int MAX_BUFFER_LEN = 30;
char rcvBuffer[MAX_BUFFER_LEN];
bool newData = false;
void setup()
{
servo1.attach(9);
servo1.write(0);
Serial.begin(115200);
Serial.setTimeout(100);
}
void loop()
{
receiveData();
controlServo();
}
void recei... |
2f1f6e1ff9c9f80e3b611993dcb47f83b66d1513 | ae55176b3fe4fc9b77ee0af71f142e174a65cf60 | /GameAI/steering/BoxCollider.cpp | f3daef11b25a17c0829560e015aff1b3c94c1721 | [] | no_license | theMagicDunky/EGP-410 | a055405067ecd345fccd3d8c6029249f2de64ce2 | 35ce0d4e427150d97321a3f7c3cc95aa70d11f83 | refs/heads/master | 2021-01-23T02:22:57.208580 | 2016-12-17T04:58:33 | 2016-12-17T04:58:33 | 68,652,319 | 0 | 1 | null | 2016-09-19T22:34:32 | 2016-09-19T22:34:31 | null | UTF-8 | C++ | false | false | 1,419 | cpp | BoxCollider.cpp | #include "BoxCollider.h"
BoxCollider::BoxCollider(Vector2D topCorner, Vector2D bottomCorner)
:mTopLeftCorner(topCorner), mBottomRightCorner(bottomCorner)
{
}
BoxCollider::~BoxCollider()
{
}
//calculates center using width length and adding half to the corrdinates of the top left corner
Vector2D BoxCollider::getCente... |
c2a168f8a8bcce9af5ae9a0e41b965b87368ba0f | 358168e463be15ca76f223229339af136cf33eb5 | /Enemy.h | a2a2f56779ba45dfa0a7b9d9098fa5b3b17ff779 | [] | no_license | josaph17/MyGame | 562686cba38693e09637d38e3fd97500934df98c | a23b33bb3933e1c0c6aa0b3e9caeb273ad028a5e | refs/heads/main | 2023-03-13T20:18:14.988790 | 2021-03-04T09:33:07 | 2021-03-04T09:33:07 | 321,710,925 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 447 | h | Enemy.h | #include <iostream>
#include "Matrix.h"
#include "Personage.h"
#include "Player.h"
#pragma once
class Enemy: public Personage
{
public:
Enemy(Matrix* /*_board*/, Player* /*_player*/);/*board не нужно иначе это будет другой board,
не важно, где он будет, в private или public*/
void GoDown();
void GoUp();
void... |
cd972e436ec56286c61d757091060df33b704eef | cd11bddfb93701d5d1df2848328cd9f6f3bcc750 | /src/net/smbclient.cpp | fa607f82dcb8d84d0992fba267c091792b8d8bc7 | [] | no_license | denniscaudell/scout | 193ca18aa2d68784314ced20f24235e3aaa9f401 | c992a05303e9b39e440a48dcc7a65d53c7d24b4f | refs/heads/master | 2021-04-27T12:58:07.902919 | 2017-11-25T10:25:25 | 2017-11-25T10:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,787 | cpp | smbclient.cpp | #include "smbclient.h"
/**
* @brief SMBClient::SMBClient
* @param parent
*/
SMBClient::SMBClient(QObject *parent) : QObject(parent)
{
this->pool = QList<QProcess *>();
this->hostsRemaining = 0;
}
/**
* @brief SMBClient::prepareResult
*/
void SMBClient::prepareResult()
{
// Iterate process and add res... |
528069af5bed69da27d4c126f77d3aab6fb02859 | 008606671393ce8bf51ebce7eb9f609735319874 | /src/AABB.h | 74bbb2498278cdd42587f0485ada2144927971f1 | [] | no_license | cpecoraro18/Game | 8eb7518d87713036c930c2eee506afbe653dfdf0 | 30a75dfd549277896dc8d07165fa3c1d9565d478 | refs/heads/master | 2021-07-13T10:51:30.100567 | 2020-08-21T21:59:23 | 2020-08-21T21:59:23 | 196,301,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | AABB.h | #pragma once
#ifndef SRC_AABB_H_
#define SRC_AABB_H_
class AABB {
public:
AABB(float x, float y, float width, float height);
AABB() {}
void setDimentions(float x, float y);
void setDimentions(float x, float y, float width, float height);
AABB Union(AABB a, AABB b);
float Area();
float rightside;
float lefts... |
c442421732a1502ab5aa2e53c98253db1f2011ed | 565e7cf2dd4a879dbc9fde81f9fac05d029260f1 | /Speaker.cpp | dd3eab22cd44705caeafb9d1f9f7ba3cc929bce4 | [] | no_license | TheresaBultinck/ProjectlabElektronicaICT1 | c7714665462db62169ef85013077db97e9ccd768 | b55ed287875089522d7cc7c85379d8d6e6e798e8 | refs/heads/master | 2021-04-18T18:42:31.843048 | 2018-03-23T13:47:14 | 2018-03-23T13:47:14 | 126,490,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | cpp | Speaker.cpp | #include "Speaker.h"
int Speaker :: frequency[17] = { 110, 110, 110, 98, 130, 110, 98, 130, 110, 165, 165, 165, 175, 130, 104, 98, 130 };
int Speaker :: length[17] = {480, 480, 480, 360, 120, 480, 360, 120, 960, 480, 480, 480, 360, 120, 480, 360, 120};
int Speaker :: delay[17] = {100, 100, 100, 75, 100, 100, 75, 100... |
e65b9b510f350d3f5ee713ed51b4374d36e8ff51 | a5c3b4d98ddc0d9f919fa5597580cceb39bd5072 | /week_4/2016201096GJC/src/HTMLParser.cpp | fe69dfb3e9a97def42d8a5bfed65ebfc61454e67 | [] | no_license | WhiteCatFly/Turing_Student_Code_2019 | 17f4ed781327706b14b66ef90b0b90478792915b | 4d744f6a3072dc9184c10c5daad60dee4a83a588 | refs/heads/master | 2021-06-15T02:32:07.977336 | 2019-07-05T07:06:32 | 2019-07-05T07:06:32 | 173,031,113 | 8 | 27 | null | 2020-01-09T01:44:23 | 2019-02-28T03:04:38 | C++ | UTF-8 | C++ | false | false | 3,016 | cpp | HTMLParser.cpp | #include "HTMLParser.h"
void HTMLParser::DownloadFromUrl(){
std::stringstream downloadOrder;
downloadOrder << "curl ";
downloadOrder << url_;
downloadOrder << " >> ";
downloadOrder << location_;
std::cout << downloadOrder.str() << std::endl;
system(downloadOrder.str().c_str());
}
HTMLParser::HTMLParser(stri... |
0027f8b98520e161c13787bb5dc43274215a8b85 | 7beb8f24e96cbe6e647b3657912c8d99d97f2ec0 | /codes/subset1.cpp | 004af5ecf002603a49647388ae88d05f41a82352 | [] | no_license | Yash0150/Competitive-Coding | 5fd3fa05d09b02084f241853dbd89c5d650cd0b8 | 13431f8f41565a844d54b1326e0ef96224eaff5f | refs/heads/master | 2020-11-24T12:27:54.976944 | 2019-12-15T07:06:42 | 2019-12-15T07:06:42 | 228,142,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | cpp | subset1.cpp | #include<bits/stdc++.h>
using namespace std;
int subset(string s){
for(int i=0; i<pow(2,s.size()); i++){
for(int j=0;j<s.size();j++){
if(i&(1<<j)){
cout<<s[j];
}
}
cout<<endl;
}
}
int main(){
string s;
cin>>s;
subset(s);
} |
bf75135c2e938cf513844b92d4035d0dc7f2a336 | ea5a6df3eb3345e0b579a91abe63d30d53854e00 | /prob_11988.cpp | 7815ded6e46250ddd051b7d2f82ab401bc55c4c5 | [] | no_license | abhicse32/UVa-Solutions | ce7032dc29cf37235ee44c4e34bddd4151524954 | 7dd80345f18401d36002a4dbcc74234bb414be2b | refs/heads/master | 2022-03-21T22:36:35.598712 | 2019-11-24T17:24:46 | 2019-11-24T17:24:46 | 93,602,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | prob_11988.cpp | #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <map>
#include <cstring>
#include <vector>
#include <stack>
#include <queue>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <iomanip>
#include <cmath>
#include <climits>
#include <list>
#define rep(i,a,b) for(i=a;i<b;++i)
#define ve... |
a9f05016f86eaaf8dda5d0ea0f21523a9de8e7d0 | 15d575dd84ac83c6175531ff405046a57791b9f6 | /vector.hpp | c9679efe291501d16b6ceff28b1185bc8c5b6c12 | [] | no_license | trash-repos/_foo_liquid_model | a59e396cba4014ba271303a868bc7d0c708d441f | 6f16ebddabc6bdc3b004d39a3f1d6ae97d1087a7 | refs/heads/master | 2021-01-10T22:10:42.475930 | 2014-05-03T21:39:51 | 2014-05-03T21:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | hpp | vector.hpp | #ifndef VECTOR_H
#define VECTOR_H
#include "math.hpp"
class Vector {
public:
float x;
float y;
Vector(float x, float y){
this->x = x;
this->y = y;
};
const Vector clone(){ return Vector(this->x, this->y); };
Vector times(float s);
Vector add(Vector v);
Vector add(Vector* v){ return this->... |
d2a2e91ba92fc8c40b3c0224fc13a4d81969deef | fac759e1b130227629cbfab3f7b339a4276b3c1a | /include/pxcblobmodule.h | 489e5cff390181b60d52165e853f07fe26ab7430 | [] | no_license | ks32/libpxc | a289dd04741ebe9c4fb51faa36558b41e7e4f5fa | 60ab38ac4e9f3d5fc3bb3e844b21247605102a49 | refs/heads/master | 2020-09-23T22:58:13.797052 | 2016-06-13T07:48:53 | 2016-06-13T07:48:53 | 250,139,376 | 0 | 4 | null | 2020-03-26T02:14:33 | 2020-03-26T02:14:33 | null | UTF-8 | C++ | false | false | 2,623 | h | pxcblobmodule.h | /*
Copyright (c) 2011-2015, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the followi... |
5fa2c7a77903e99a9ca17894a350eb4ce56cf1eb | 5d14e99d5090f019cb9ed18516a7325a67095ca6 | /ACM/2027/6946822_AC_0MS_204K.cpp | 00afd15d0979c8569f26d4c6c06b76e35d0abf45 | [] | no_license | jxlh999/Fantasia | 33e2543b56dd3626ebd6a1b8ccffc6f8c8af221a | f8494dfe86957c344f87707ae01c2a7e62036218 | refs/heads/master | 2020-06-06T15:26:08.159052 | 2013-02-17T14:19:09 | 2013-02-17T14:19:09 | 3,493,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | 6946822_AC_0MS_204K.cpp | #include <iostream>
using namespace std;
int main() {
int num = 0;
int x = 0;
int y = 0;
int i = 0;
char *result[100];
cin >> num;
for (i = 0; i < num; i++) {
cin >> x;
cin >> y;
if (x >= y) {
result[i] = "MMM BRAINS";
} else {
result[i] = "NO BRAINS";
}
}
for (int j = 0... |
20942fe532522a76968d61340ea68a0db17bce4d | b64471cfaaa3af165df272505dc9894056378262 | /source/kernel/membench/cache.h | e7af4b5ecff5d24a78821d42cf4f90e4c03f593a | [
"MIT"
] | permissive | PFLab-OS/Raph_Kernel | 94f39ecc2f7ceaf45284542d83ec3b55bc62c1a0 | 1ceab607ed0fde16286f49bc83aef840028b3ea4 | refs/heads/develop | 2019-07-31T01:27:27.534438 | 2018-04-29T03:49:40 | 2018-04-29T03:49:40 | 55,387,285 | 17 | 1 | null | 2018-04-29T03:49:40 | 2016-04-04T05:30:56 | C | UTF-8 | C++ | false | false | 2,268 | h | cache.h | /*
*
* Copyright (c) 2017 Raphine Project
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is... |
d1cb9b2bd6a529ade21ae089f462df8d62ee4ad4 | 74fc7c5d39baa6c30aa929e629ff60bf40500c61 | /test/unit-tests/metafs/mim/mio_handler_mock.h | 347fcf15bb98505b810931696ed888e9847d1347 | [
"BSD-3-Clause"
] | permissive | jhyunleehi/poseidonos | e472be680d0e85dc62f0e2c0d7356dbee74a3bd6 | 1d90e4320855d61742ff37af8c0148da579d95d4 | refs/heads/develop | 2023-07-13T03:37:29.754509 | 2021-08-23T15:26:08 | 2021-08-23T15:26:08 | 393,203,347 | 0 | 0 | BSD-3-Clause | 2021-08-20T00:04:14 | 2021-08-06T00:30:35 | C | UTF-8 | C++ | false | false | 244 | h | mio_handler_mock.h | #include <gmock/gmock.h>
#include <list>
#include <string>
#include <vector>
#include "src/metafs/mim/mio_handler.h"
namespace pos
{
class MockMioHandler : public MioHandler
{
public:
using MioHandler::MioHandler;
};
} // namespace pos
|
9af22c3a0189b3efe543479f40644e96de98956b | 07518b924a59ca49da1e027b98ef3757fb1c1518 | /GDW4_Game/Classes/Boss/Ability States/BossIdleState.cpp | 91e819edee2f7c82c075b8104eb1d408dfce55d9 | [] | no_license | MatKostDev/EchosOfArem-GDW4-Game | 5e5c26d646a25ff302c5fb46f11bd52181cc15fa | 50117cade970ca5f0943b82177fd6877c50cdf0b | refs/heads/master | 2021-10-25T09:59:30.147183 | 2019-04-03T18:35:15 | 2019-04-03T18:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,544 | cpp | BossIdleState.cpp | #include "BossIdleState.h"
#include "Boss/General/Boss.h"
//Static function initialize
int Idling4FirstBoss::numberOfCast = 0;
const int Idling4FirstBoss::maxNumberOfCastPerRound = 7;
Idling4FirstBoss::Idling4FirstBoss(Boss *boss)
: FirstBossState(boss), cooldownBeforeNextAbility{ 2.5f }
{
//Get the animation
cons... |
a6d2940b8838d2bc44183e2699ec4bf84ee4987c | d92936d392ead7413e203f169f821215b9af3166 | /labs/lab1/Radix/Radix.cpp | 60b78a1b3ee66417e369007d2c271e9958254751 | [
"MIT"
] | permissive | denis-petrov/oop | 1d98fc5b500106becc4db57575673a5e8dfa1547 | 6bd2679e8f2f39f41cf6520cbbeafa8c01c7bc96 | refs/heads/main | 2023-05-05T22:08:21.847355 | 2021-05-24T08:11:50 | 2021-05-24T08:11:50 | 337,420,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,070 | cpp | Radix.cpp | // Radix.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "Radix.h"
#include <cmath>
#include <iostream>
#include <optional>
#include <string>
struct Args
{
std::string sourceNotation;
std::string destinationNotation;
std::string value;
};
struct Error
{
bool was... |
6ade5fd8b0ddabd511659a2c6c5ae6faa75a6ea7 | 400fd356eb75d95ab35e8dcce2f5b03b3d272e83 | /DesignPatterns/c++_design_pattern/3行为/6备忘录/constraintSolverMemento.h | 8aaef7711bc23d1593bb35f9c146a1445bb2ca7a | [] | no_license | shandaming/Martial_arts | 4eba4c3856d0fbbcddc460790b4a06ba79a9c3ed | 896f10a7c457a9f166e7991e54943d46b6a953b5 | refs/heads/master | 2022-11-11T08:05:21.439745 | 2022-10-22T05:55:23 | 2022-10-22T05:55:23 | 116,259,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | h | constraintSolverMemento.h | #ifndef CONSTRAINTSOLVERMEMENTO_H
#define CONSTRAINTSOLVERMEMENT_H
class ConstraintSolverMemento
{
public:
virtual ~ConstraintSolverMemento();
private:
friend class ConstraintSolver;
ConstraintSolverMemento();
};
#endif
|
3003157deb7e0a9e8a930c79243c4de8eb61add4 | e25bbf96cbe3402967d0c730bfad9bd66d1c06e4 | /3rd Year IN613 C++ Programming/Assignments/JoelPickworthTetrisAssignment/TetrisAssignment/Cell.h | 4eb6187c8fdce598014bbc70425249c697997fea | [] | no_license | pickjd1/BITCourseWork-Year3 | 2939ce30a7e2e427321313658791ccd719838cf4 | cc5974a0d18df86885e85b82eb2e7524c5c6c6e2 | refs/heads/master | 2016-08-04T22:45:35.238179 | 2015-05-19T01:11:28 | 2015-05-19T01:11:28 | 35,251,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | h | Cell.h | #pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
ref class Cell
{
//cell fields
private:
//bool filled;
//Color c;
int row;
int col;
//cell... |
dac89317b776f4651014b55cf5114a2252735051 | 1f45bf1127ff868bf4d22753a65047d874c2ffb1 | /src/components/policy/test/policy/src/test_stress_policy_manager_impl.cc | 9a52bc3d1709a6a9757c81fb22125f30d026ac03 | [] | no_license | smartdevice475/sdl_core_v3.6_wince | 50207a89fa2bfe0487409e4ad3babae52e477b54 | 5fff3bd40f83517f89428895b3dbe069b0f2f262 | refs/heads/master | 2021-01-18T09:34:08.202701 | 2016-08-10T01:57:23 | 2016-08-10T01:57:23 | 55,580,033 | 2 | 0 | null | 2016-04-06T06:05:08 | 2016-04-06T06:05:08 | null | UTF-8 | C++ | false | false | 8,052 | cc | test_stress_policy_manager_impl.cc | /* Copyright (c) 2013, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condition... |
ad373e49aca90db1191741dd8c3f14d683c874f6 | c0356aa3b1904728696734293276c9e24e8b32bf | /Arduino/robomower/Ros_SubscriberLaser/Ros_SubscriberLaser.ino | 853bee309d07bd7c173035c5741e99bfe46cacfe | [] | no_license | parkersell/Robomower | fef43a7b68f379a43ea7fad8f69ef1895c130bd4 | 45805a6a993bcf7ff39d9588ce7507eea58c9940 | refs/heads/master | 2022-12-28T07:55:41.071364 | 2020-08-04T13:09:49 | 2020-08-04T13:09:49 | 301,860,448 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | ino | Ros_SubscriberLaser.ino | #include <ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose.h>
#include <sensor_msgs/LaserScan.h>
#include <std_msgs/Float32.h>
//include a list or array message for points of obstacles on point cloud
ros::NodeHandle nh;
sensor_msgs::LaserScan msg;
//list variable
void positionCallback(const... |
b1bd0b9a35526f2d0b3485e847080f399198b9a4 | fc770f723896e83e080495ab128b4d3e65c56ccb | /MyCode/Chapter 8/8Drill2/8Drill2/dec.h | 43f035172a63e427a0e1e28a7b4caa93bdbf9f47 | [] | no_license | p4lewandowski/ProgrammingPrinciples | 5d0946be1de3ed5becbf52ab5402ae9b0779d490 | 93b3e868f6af3e3dd5bee1b242efc8110ed6d1c1 | refs/heads/master | 2020-04-01T15:51:24.321892 | 2018-12-21T12:43:24 | 2018-12-21T12:43:24 | 153,355,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | dec.h | #include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
void swap_v(int, int);
void swap_r(int&, int&);
void swap_cr(const int&, const int&); |
7f0f7a6e5cf95e49c9d2135b603519d7941adb45 | a9e308c81c27a80c53c899ce806d6d7b4a9bbbf3 | /engine/xray/console_command_inline.h | 38aa652df6b84d8dd1642a89424eaedae8e8f821 | [] | no_license | NikitaNikson/xray-2_0 | 00d8e78112d7b3d5ec1cb790c90f614dc732f633 | 82b049d2d177aac15e1317cbe281e8c167b8f8d1 | refs/heads/master | 2023-06-25T16:51:26.243019 | 2020-09-29T15:49:23 | 2020-09-29T15:49:23 | 390,966,305 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | console_command_inline.h | ////////////////////////////////////////////////////////////////////////////
// Created : 13.02.2009
// Author : Andrew Kolomiets
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#ifndef CONSOLE_COMMAND_INLINE_H_INCLUDED
#define CONSOLE_COMMAND_INLIN... |
50956c548fcf53df9e8b0dd723a280e6e9515adb | f14471ad6993834266bf3328b4126d921c959c3b | /kokkos-kernels/src/blas/impl/KokkosBlas3_trmm_spec.hpp | 41a6d0d85222f0661ec65457baa26419abe616cc | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | sandialabs/compadre | 07b06f095ed0f171aba66839e8e01e619b7403ea | bf4cd8db7104a2102ee9af5fbc8962f43c6df876 | refs/heads/master | 2023-08-31T11:47:01.409672 | 2023-05-03T15:13:07 | 2023-05-03T15:13:07 | 165,897,408 | 8 | 1 | NOASSERTION | 2023-05-03T15:13:09 | 2019-01-15T17:52:40 | C++ | UTF-8 | C++ | false | false | 8,241 | hpp | KokkosBlas3_trmm_spec.hpp | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
b3874e0731c4c0d0573f72bed1e4e4245bfcac3d | b0b27e04c44c6e276ba8064958e6d6838b802954 | /Number Theory/primeFactoristion.cpp | 4be0fa81fb9c4600057aee0de6621160b42bb884 | [] | no_license | deveshjha489/template | 810b4c105aeaedcd877c082eddcfbfdfc40e0724 | bbd1785c03e14407b03d1de8c43782c5d6d8597f | refs/heads/master | 2022-12-24T05:06:57.107038 | 2020-10-01T17:37:57 | 2020-10-01T17:37:57 | 258,991,554 | 0 | 1 | null | 2020-10-01T17:37:59 | 2020-04-26T09:35:11 | C++ | UTF-8 | C++ | false | false | 869 | cpp | primeFactoristion.cpp | #include <bits/stdc++.h>
#define MAXN 100001
#define ll long long int
using namespace std;
//O(sqrt(n))
int numOfFactor(int n){
int count = 0;
while (n % 2 == 0)
{
++count;
n = n/2;
}
for (int i = 3; i <= sqrt(n); i = i + 2)
{
while (n % i == 0)
{
... |
2ddb4a95f4261a1cc5e28493e73d5b83c26c0f77 | 24df79b5d1b72963c345b2ae75712a1a3c1dbbc6 | /Classes/System/cursor.h | 8949683b44ae1aecf202350f6755a8a8e2b66502 | [] | no_license | ugonight/rifujin2 | d7a65128d937e4d0e0f8cd0442d05af3f8e20eb9 | 6deba35a6fefceea77c18e255fe33364431aea12 | refs/heads/master | 2021-01-19T19:26:47.282959 | 2020-03-31T13:06:33 | 2020-03-31T13:06:33 | 88,414,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | cursor.h | #pragma once
#pragma execution_character_set("utf-8")
#include "cocos2d.h"
#define CURSOR_NUM 8
class Cursor : public cocos2d::Layer {
private:
//cocos2d::Sprite* mCursorImg[CURSOR_NUM];
int mCursorNum;
bool mTouchNow;
bool touchEvent(cocos2d::Touch* touch, cocos2d::Event* event);
bool moveEvent(cocos2d::Tou... |
9f12dfc29a94410845da8e9ba04d00f104a71db8 | 0c7e20a002108d636517b2f0cde6de9019fdf8c4 | /Sources/Elastos/Packages/Apps/Dialer/src/elastos/droid/dialer/settings/DialerSettingsActivity.cpp | 4d695b20d4fda6ab23c951fb51add9e35c12f16f | [
"Apache-2.0"
] | permissive | kernal88/Elastos5 | 022774d8c42aea597e6f8ee14e80e8e31758f950 | 871044110de52fcccfbd6fd0d9c24feefeb6dea0 | refs/heads/master | 2021-01-12T15:23:52.242654 | 2016-10-24T08:20:15 | 2016-10-24T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,898 | cpp | DialerSettingsActivity.cpp |
#include "elastos/droid/dialer/settings/DialerSettingsActivity.h"
#include "Elastos.Droid.Preference.h"
#include "Elastos.CoreLibrary.Core.h"
#include "R.h"
using Elastos::Droid::Os::IUserHanlde;
using Elastos::Droid::Preference::IPreferenceActivityHeader;
using Elastos::Droid::Preference::CPreferenceActivityHeader;
... |
9e0d165a7e03977068405d4e2b400564d9b33951 | 79f5cdf88cdafe410db884b541984e3a2eb7acc0 | /Source/Games/Battleship/BattleshipManager.cpp | b2aa64c39b1702c12da9ec478d8408c76d305fb5 | [
"MIT"
] | permissive | gorkinovich/GAGC | 963782b4144be3fd94c976c1c5a777ff4d034b4c | 4f4517c216690d311e3ef3f23cf72d9b71f21815 | refs/heads/master | 2021-12-30T14:29:46.642944 | 2015-04-09T19:58:10 | 2015-04-09T19:58:10 | 33,688,201 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 15,563 | cpp | BattleshipManager.cpp | /******************************************************************************
Copyright (c) 2014 Gorka Suárez García
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, incl... |
33f5e71b8da8cb8ed41b46eb6a5276a548e5104e | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/chrome/browser/ui/webui/options/managed_user_learn_more_handler.h | 89cc25758544904e0fd61d3fabbfd1eff2742cbe | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 986 | h | managed_user_learn_more_handler.h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_LEARN_MORE_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_LEARN_MORE_HANDLER_H_
#in... |
df9e053a024ac2ba0e645b14b41c28abfc7a745b | 3797cd31e9b09ae0a48cbd54bb2a211752294977 | /CG - programs in CPP/curve drawing/CIRCLE.CPP | 7c5eefd8558bbf795f29dd24911b638c375b2c45 | [
"Apache-2.0"
] | permissive | ranjiGT/Ton-of-Fun-with-Computer-Graphics | a079b028a5fb1d54bb4b8b011b8ad58e8715d7eb | e65103f0d962d37bceb5241a49c002ec95bd0db2 | refs/heads/master | 2023-05-03T06:36:38.443041 | 2021-05-26T20:45:52 | 2021-05-26T20:45:52 | 370,773,286 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | CIRCLE.CPP | #include<stdio.h>
#include<conio.h>
#include<graphics.h>
void draw_circle(int r,int p,int q)
{
int d=(1.25-r),x,y;
x=0;
y=r;
while(x<y)
{
putpixel (x+320+p,y+240-q,WHITE);
putpixel (x+320+p,-y+240-q,WHITE);
putpixel (-x+320+p,y+240-q,WHITE);
putpixel (-x+320+p,-y+240-q,WHITE);
putpixel ... |
fe7b70c10ee55e5bc678e8842c164a651b7c03fe | f800ad9c5a45d47b689d6b08a9c50fbc4e7dfe3f | /inc/Graphics/Cursor.h | 735ea61c3981e415ceb05d6a383a33c01a937ebf | [] | no_license | toddsharpe/MetalOS | eeda64ed4bf933c6c21f9f0dc9674ca834383806 | 49832a02e14ddf1277b991efffe464a01ecc7ac5 | refs/heads/master | 2023-05-24T20:13:08.669451 | 2023-05-19T14:46:25 | 2023-05-19T14:46:25 | 207,470,032 | 39 | 0 | null | 2023-05-19T14:46:26 | 2019-09-10T05:08:11 | C++ | UTF-8 | C++ | false | false | 740 | h | Cursor.h | #pragma once
#include <cstdint>
#include <Graphics/FrameBuffer.h>
// Constant: font8x8_basic
// Contains an 8x8 font map for unicode points U+0000 - U+007F (basic latin)
namespace Graphics
{
class Cursor
{
public:
const uint16_t* GetMap() const
{
return (this->cursor8x8_basic);
}
private:
static con... |
dd28e493409f5698b657dd17eccee710be347a7a | f936f508e2c01b227706c2e1dd34d0f6e7a1221e | /src/sdl2/main_sdl.cpp | 7d83c9669e46c2d7c8808e8d3bd68d8b16919273 | [] | no_license | ComeDemolliere/SoCarre | 88449ece298c7fee2f6cbce1e408f34ba4aabf19 | 308d7e4687e5424c278aef9a9f75a70075b5a9bb | refs/heads/master | 2020-04-10T13:02:43.108336 | 2019-01-06T10:52:53 | 2019-01-06T10:52:53 | 161,038,189 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | main_sdl.cpp | #include "sdlJeu.h"
#include <iostream>
using namespace std;
int main (int argc, char** argv)
{
sdlJeu j;
j.sdlBoucle();
return EXIT_SUCCESS;
}
|
1074b52312b18ebd1c83ac9ceef71a4a9b36d7f3 | 51baeb1f56beaf6f00b6a405550c2ee768827752 | /source/_old_code/mainwindow.cpp | a0600e4c22123e7380a10c913d6a5def99b39372 | [
"MIT"
] | permissive | DarkZeros/FreedomDB | 15c1ec7332a76278dd91b4db640eaf800139a602 | 1c653ca99e2f753fb1a683f440511f914fe82d89 | refs/heads/master | 2023-04-14T14:45:01.287684 | 2021-04-13T01:43:46 | 2021-04-14T00:07:20 | 341,376,788 | 0 | 1 | MIT | 2021-04-23T15:35:03 | 2021-02-23T00:23:09 | C | UTF-8 | C++ | false | false | 1,873 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <functional>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
dbc_auto_logger("DB Client")
{
ui->setupUi(this);
//Attach the logger
dbc_auto_logger.attach(std::bind(&MainWindow::logs_callback, th... |
97c3025b9b7405e01a05b5d9871e80e058b370ad | 07a950800a4170115a9d037fc8e147d521e906a3 | /pattern/patterns/pattern28/p28.cpp | a48f72711a72caf706b5e113e8f295025fb2371c | [] | no_license | Smit6/AlgorithmQuestions | 39504444a70ea3d4c767e43c409287719544797b | adf8211a92262e6d927a0ace2ac2ca68f14d567c | refs/heads/master | 2020-03-25T16:53:29.031780 | 2018-11-15T09:24:40 | 2018-11-15T09:24:40 | 143,952,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | p28.cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main () {
int k;
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 5; j++) {
if (i <= 3) {
if (j >= 6 - i)
cout << "*";
else
cout << " ";
... |
eca33fe21b2ed6b44df7ce980bae421d2cfa14a2 | a756eed9030c5afa645436412d777a1774357c70 | /CP/june.cpp | 91007059dbbf56c1556db19fc159381608416035 | [] | no_license | jainsourav43/DSA | fc92faa7f8e95151c8f0af4c69228d4db7e1e5ce | deb46f70a1968b44bb28389d01b35cb571a8c293 | refs/heads/master | 2021-05-25T09:13:42.418930 | 2020-06-30T07:36:56 | 2020-06-30T07:36:56 | 126,943,860 | 0 | 1 | null | 2020-06-30T07:36:57 | 2018-03-27T07:07:51 | C++ | UTF-8 | C++ | false | false | 2,148 | cpp | june.cpp | #include<iostream>
#include<bits/stdc++.h>
#define mod 1000000007
#define mod2 1000000006
#define ll long long
using namespace std;
ll a[100001],b[100001],c[100001];
ll prea[100001],preb[100001],prec[100001];
bool comp(ll a,ll b)
{
return a>b;
}
int main()
{
int t;
cin>>t;
while(t--)
{
ll p,q,... |
2bf190976ca6fe3d81de800e42116bce1d2e5ce5 | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/UVA/450.cpp | 2b361a6b6f6a3cf0a5b00809850c331a6bff8b60 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,358 | cpp | 450.cpp | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <cstring>
#include <vector>
using namespace std;
struct data {
string s[8];
};
vector<int> I;
vector<data> D;
bool cmp(const int &A, const ... |
35f3f7e0b9e508625e8a857f4695fac0dfd85fc7 | 6840ae43a5940718926e74de4848a7153d176fd0 | /Software/Regional/Bibliotecas/ArduinoSensors/examples/Ultrasonic Sensors/HCSR04/HCSR04.ino | c60d4854e452b3f4e751f9ccc522f55433a4c0cb | [
"MIT"
] | permissive | rodigozeus/OBR-2017 | 91cc3f9680d2e5f5d94756b3063c3a905600e455 | 12c86cae5523ffc360d0658d08a0c3d84a21c100 | refs/heads/master | 2021-06-24T00:46:48.086896 | 2017-09-08T20:17:11 | 2017-09-08T20:17:11 | 208,912,693 | 1 | 0 | MIT | 2019-09-16T22:56:00 | 2019-09-16T22:56:00 | null | UTF-8 | C++ | false | false | 485 | ino | HCSR04.ino | #include <Thread.h>
#include <ArduinoSensors.h>
#include <sensors/PingUltrasonic.h>
/*
Echo and Trigger pins must be the same
to your connections on the arduino
*/
int echoPin = 12;
int triggerPin = 13;
PingUltrasonic myUltrasonic(triggerPin, echoPin);
void setup() {
Serial.begin(9600);
Serial.println("I'm ali... |
b577e77284239a37edfe23edb4cf780bbe6e6939 | 0c47cd869933d025bfab82ea064b69d7b1d203d7 | /ElectorsList.h | 48f9070aca98af63036eb0e944d1cd845690c6a0 | [] | no_license | keissar3/Election-system | 150f1389218c652d1741388f9ed5dfd2e3d8192f | 84d1b5690071d806d23320de2e5c76542c0fbe41 | refs/heads/main | 2023-03-10T02:29:12.325701 | 2021-02-22T15:27:06 | 2021-02-22T15:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | ElectorsList.h | #pragma once
#include "CitizenList.h"
#include "DynamicArray.h"
class ElectorsList : public CitizenList {
public:
ElectorsList() :CitizenList() {}
virtual ~ElectorsList() {}
ElectorsList(const CitizenList& citlist) :CitizenList(citlist) {}
void load(istream& in_file, DynamicArray<District*> disArray);
... |
05966f6a3e726142f4e079ff5a1d9abd1816a165 | 53c7be0b11e36b0cfec43b27e844b100df5f455b | /src/platform/platform.hpp | e905d981626d70853e468a630c2f4d7c068d0669 | [] | no_license | enigames/mirb | 39539fa2e086eac3d79ac7f44a90e2fcb0acec9c | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | refs/heads/master | 2022-01-28T15:46:44.326325 | 2012-06-29T18:16:13 | 2012-06-29T18:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | hpp | platform.hpp | #pragma once
#include "../common.hpp"
#include "../char-array.hpp"
#include "../runtime.hpp"
#include "../stream.hpp"
namespace Mirb
{
namespace Platform
{
enum Access
{
Read = 1,
Write = 2
};
enum Mode
{
Open,
CreateTruncate,
CreateAppend
};
size_t stack_start();
size_t stack_limi... |
39f21045211a123bda831af67f36bfc2ac92b3a7 | c86d1d27476ad5275e7b3dc20ea409d4bdb513c1 | /Homework/hw6/GameObject.cpp | 6f6d3607cd3a58c6ddd05ce02db881a2280d279e | [] | no_license | benjamin-weinberg/CIE2017 | 4581dd37c0f23a65d46e85d71c95506009466ab7 | ce77be515866eefc5bc1ee58a45a7398e5915008 | refs/heads/master | 2020-04-21T07:08:56.675219 | 2019-02-06T10:20:26 | 2019-02-06T10:20:26 | 169,385,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | GameObject.cpp | //
// Created by Johnson, Hans J on 4/22/17.
//
#include "CharacterBase.h"
GameObject::GameObject(const string name, const HealthStatus& hs)
:m_name{name}, m_HealthStatus{hs} { }
const string& GameObject::getName() const
{
return m_name;
}
const HealthStatus& GameObject::getHealthStatus() const
{
return m_Hea... |
3a7ca0a0a1f73f4a88b350c497550df5b5af0b1e | 4334b7da7337d01f1f8043e0d260fd2be99473d9 | /src/PartSelectionDialog.cpp | 0347134e0f9c174f6f6c7c85a3a701ba6e1f4d94 | [] | no_license | nightingalesystem/thrustTester | fae27295f32f71637e54393341f93dd7fc074c31 | 2f6584b24d23b3d95fc6b26a030e83aa7719663f | refs/heads/master | 2021-04-26T11:57:10.276945 | 2018-03-06T23:56:27 | 2018-03-06T23:56:27 | 124,006,128 | 0 | 0 | null | 2018-03-06T23:56:28 | 2018-03-06T02:05:50 | C++ | UTF-8 | C++ | false | false | 11,624 | cpp | PartSelectionDialog.cpp | #include <QUrl>
#include <QCloseEvent>
#include <QKeyEvent>
#include "json/json.h"
#include "PartSelectionDialog.h"
#include "ui_partselectiondialog.h"
#include "Log.h"
#include "Settings.h"
#include "util.h"
PartSelectionDialog::PartSelectionDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::PartSelectionD... |
7457209df279ac78a3ad4591be0763c12e0c35ed | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor3/2.57/rho | 4027c4b1da9ea58a4c4b9b6d163919e4991baed4 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,951 | rho | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
4aade3a11cce5b144739c8a775bc29313624b239 | 69e1e4c6986d03b73a0e557cab9ca13daae3fd0a | /source/zlauncher/CNewApp/ZUpdate.h | 6f2b5e45ddd2fdca97126aa83bc9d8d34e8be99c | [] | no_license | WhyWolfie/GunZ-The-Duel | 7985d9d17f77dbb91d9e9e50e7a25465be897ea8 | fb8f740f5b55ca2184ce0ec75927a738f6a39ac5 | refs/heads/master | 2023-07-24T17:15:13.845881 | 2023-07-12T08:50:43 | 2023-07-12T08:50:43 | 229,615,966 | 37 | 18 | null | 2022-12-15T10:33:13 | 2019-12-22T18:59:07 | C++ | UTF-8 | C++ | false | false | 5,210 | h | ZUpdate.h | /******************************************************************
ZUpdate.h
Corperation : MAIET entertainment
Programmer : Lim Dong Hwan
Date : 22.June.2005
*******************************************************************/
#ifndef _ZUPDATE
#define _ZUPDATE
#include "... |
1cef5432c11cae498c17154d5f0163949d6666bc | 5dc9ed490eea2b83bf563505d9c788db7ce466e3 | /2020-08-28git/ejemplo2.cpp | 126e415b44b8848d1ebfc4b847e84f6f65dca232 | [] | no_license | dspuertamo/2020-II-Prog | 65ce3d3e65b94c7c54bf93580c5c25ba387da5f4 | 6eaba0392563ab25c97ebafd5611ef46ecfeb32f | refs/heads/master | 2022-12-21T04:01:24.583464 | 2020-09-15T16:58:32 | 2020-09-15T16:58:32 | 292,115,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | ejemplo2.cpp | //Primer programa ejemplo c++
/*
dfadf
dhds
vhfmhcgmhcmc.
*/
#include <iostream>
#include <cmath>
int main(void)
{
std::cout <<"Hello World!\n";
std::cout <<"Hola Mundo!\n";
return 0;
}
|
8704e3c67f9b4117ee38bb0950f7e1d83a3b7b9a | 353734d55037587e0b8d999402d3b158168d1c51 | /searchRange.h | d423c787669f57b9b8af477be031fc973542b10d | [] | no_license | lixx1746/LeetCode | ba57c5085731e3d95164c47207ce5bf63de99449 | 1c752c7c77439accf590231be77cafe526b84342 | refs/heads/master | 2021-01-16T18:56:34.208928 | 2014-12-09T20:30:33 | 2014-12-09T20:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | searchRange.h | class Solution {
public:
vector<int> searchRange(int A[], int n, int target) {
int l = lower_bound(A, A + n, target) - A;
int r = upper_bound(A, A + n, target) - A;
vector<int> res(2, -1);
if(A[l] != target) return res;
return vector<int> {l, r - 1};
}
};
|
d77405124f2371844040b19e82d3ec717f959e11 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/05/e792041c071f3d/main.cpp | 126f63daa3241d135023f6f8d2f9ba6f9a80581c | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | main.cpp | #include <tuple>
#include <initializer_list>
template<typename T> struct Small_set {
Small_set(std::initializer_list<T>) { }
};
template< class... Values >
auto small_set( Values const... values )
-> Small_set< typename std::tuple_element<0, std::tuple< Values... > >::type >
{ return { values... }... |
b1934d87786bfb7e2e1d549623176b5723f886f8 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/WebKit/Source/wtf/text/TextCodecUserDefinedTest.cpp | 9442ab5a21092da40f44b700577fbf680e6e0c8e | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 1,763 | cpp | TextCodecUserDefinedTest.cpp | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "wtf/text/TextCodecUserDefined.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/text/CString.h"
#include "wtf/text/TextCodec.h"
#... |
de84be3aa7f216bfdcdd8bad5bd8ea0113e827ee | 5ec75208b0177d7c6e4bb406a8a288f298386d56 | /Practice/ProjectA/Calculate/calculate.h | 4a37fa5a236e03aa7b06820b5dbd41149b06f3df | [] | no_license | wolf-bolin/Jigsaw | 31d4c95ba06381eeba5b2d33c4230567c7fb7ae4 | d7ac175c0168d502b03dde58ea3159dbcf032b7b | refs/heads/master | 2021-01-20T17:34:36.954300 | 2017-07-13T13:43:03 | 2017-07-13T13:43:03 | 95,748,921 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 219 | h | calculate.h | #ifndef CALCULATE_H
#define CALCULATE_H
#include<iostream>
#include<vector>
#include<cmath>
#include<string>
#include<algorithm>
#include<sstream>
using namespace std;
string calc(string exp);
#endif // CALCULATE_H
|
33a70f9c8e85aec13deb3791ca14a7fd37f71c46 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoTracker/MkFitCore/interface/MkJob.h | 3f9b0dbd56cc7da2749baa29d66657e04b62b941 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 1,417 | h | MkJob.h | #ifndef RecoTracker_MkFitCore_interface_MkJob_h
#define RecoTracker_MkFitCore_interface_MkJob_h
#include "RecoTracker/MkFitCore/interface/IterationConfig.h"
namespace mkfit {
class MkJob {
public:
const TrackerInfo &m_trk_info;
// Config &config; // If we want to get rid of namespace / global config
... |
c7ba572efb79d9bf67483ae169b7e814116a7c63 | d73cf4af65fffc16c2326281fb7de3344566d6a1 | /TVMCHLib/AFCLogApi.cpp | ed3e7d656001ccce0b9f7e0ee65d9dbbbf29d34f | [] | no_license | yongchaohu/WH_DEVICE | c3299ddd63ff15ca5ba3fa476cb90eee01ddb541 | 5212d3b15dfcf5a542c0936ebf0e72ed66b85d05 | refs/heads/master | 2020-05-27T20:38:35.562316 | 2019-06-24T03:02:29 | 2019-06-24T03:02:29 | 188,782,571 | 0 | 0 | null | 2019-05-27T06:18:48 | 2019-05-27T06:18:48 | null | GB18030 | C++ | false | false | 3,512 | cpp | AFCLogApi.cpp | #include "StdAfx.h"
#include "AFCLogApi.h"
const char CrLf[3] = {13,10,0};
CAFCLogApi CAFCLogApi::theInstance;
CAFCLogApi::CAFCLogApi(void)
{
m_hFile = INVALID_HANDLE_VALUE;
m_strFileName = _T("");
m_strTracePath = _T("");
}
CAFCLogApi::~CAFCLogApi(void)
{
CloseLog();
::DeleteCriticalSection(&m_hLock);
}
v... |
0a62d51e63f4fac4de919c94cfb84d5c160f4587 | b6e9b157439011ea1602ed0ae4eeda45ab04f68a | /Banker.cpp | e7c789b19a74a396d47e29e4e48e7a9738934707 | [] | no_license | spisneha25/Banker-s-Algorithm | c8b0af4e280765fbba77142eab97191690df763b | 18330c0fa9cf5541f6122581de1a9cad92855064 | refs/heads/master | 2021-01-10T19:34:34.083478 | 2015-02-04T04:03:40 | 2015-02-04T04:03:40 | 30,280,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,305 | cpp | Banker.cpp | #include<iostream.h>
#include<graphics.h>
#include<conio.h>
#define MAX 20
void tblshp(int ,int a[MAX][MAX],int b[MAX][MAX],int c[MAX][MAX],int d[MAX]);
int nop, al[MAX][MAX],m[MAX][MAX],n[MAX][MAX],avail[MAX],result[MAX];
class bankers
{
private:
int nor,k,pnum,work[MAX],finish[MAX];
public:
bankers();
void ... |
05e6542dca8b6e6bb878b47070881387001a55c9 | 6671c1892d93f0dd9d9799c35b984f209ca5db28 | /C++/practice/inheritance_prac_4.cpp | 2b52369f1e0fe4170c3d10d97120d4b0b8fd7ffc | [] | no_license | kcarollee/Problem-Solving | 011417798f1c27e6e11e381bdfe61037497dfe0f | 2ff75cfdfe7e2cb1e59e255ea12c1b0beb6f55ec | refs/heads/master | 2021-11-13T07:18:00.039952 | 2021-11-07T09:45:50 | 2021-11-07T09:45:50 | 153,068,096 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | inheritance_prac_4.cpp | #include <iostream>
using namespace std;
class Base
{
private:
int baseNum;
public:
Base() : baseNum(20)
{
cout << "Constructor of Base called" << endl;
}
Base(int n) : baseNum(n)
{
cout << "Second Constructor of Base called" << endl;
}
void showBaseData()
{
cout << baseNum << endl;
}
};
class Deriv... |
d29ad5c16918a860cf49eb6bc9a8018823f585b0 | 6ab0fc072867b7f39f71dd6304f2671797ee5eb7 | /ButtonMidi2.ino | e2f2eb1740f34150ad9f7a02b42d65238d52f982 | [] | no_license | williamspmedia/typewritermidi | 55103cc3806fde7edfbc6af342907727edded299 | 2587a7204d9bc1bfab379c75a687e487744e6de9 | refs/heads/master | 2022-12-09T07:34:47.993149 | 2020-09-18T21:14:58 | 2020-09-18T21:14:58 | 258,038,449 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,258 | ino | ButtonMidi2.ino |
#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
#include <Wire.h> // Library for I2C communication
#include <LiquidCrystal_I2C.h> // Library for LCD
// Wiring: SDA pin is connected to A4 and SCL pin to A5.
// Connect to LCD via I2C, d... |
d567ad3da6816d2261dead82ded843068e294c2c | f153b04464e0bbe7c2db57f7b6c2d64d87f8953b | /leetcode/BinaryTreeMaximumPathSum.cpp | c8f39b4023a412a200d37e329d80f7357df74f39 | [] | no_license | alvas/ms_interview_100 | 82f4f7222db775c68b035dc616d812c63f3127a7 | 8587116a3c4227f71783e7dac42517b6561d17b0 | refs/heads/master | 2022-03-18T10:48:46.834899 | 2022-02-24T04:10:05 | 2022-02-24T04:10:05 | 16,854,684 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,289 | cpp | BinaryTreeMaximumPathSum.cpp | #include <iostream>
#include <vector>
#include "NormalData.h"
#include "Tree.h"
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int maxPathSu... |
2090e24a1c8b343a479302a62f11e4322b312e0a | aafa69798f6d0d38830c6d13bbf2fb9fa544d3be | /UVA/1124 Celebrity jeopardy.cpp | d6659abcead53965d5050b4ba684118496f3e202 | [] | no_license | anik-chy/OnlineJudges | 28f4cc6f2ff6206bc81d99955a8e218887d27674 | a057f2a4974d6cfc6fe3e628fd424a8ba928cafa | refs/heads/master | 2023-04-20T23:57:50.522983 | 2021-05-03T19:18:06 | 2021-05-03T19:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | 1124 Celebrity jeopardy.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main()
{
//freopen ("input.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
//system("notepad.exe input.txt");
string str;
while(getline(cin,str))
cout << str << endl;
//system("notep... |
eaad728063df4f6d25a0b2da3225d103ac81b22e | e366027ffef496d43350b044d0574127c512d690 | /src/xpcc/architecture/platform/board/al_avreb_can/al_avreb_can_serial.cpp | 1ac8d93b208c54f119620439bb065f03f449ca35 | [
"BSD-3-Clause"
] | permissive | roboterclubaachen/xpcc | aa504f3d0a8246861dd00ea437cc7b938a869669 | 010924901947381d20e83b838502880eb2ffea72 | refs/heads/develop | 2021-01-24T11:18:27.233788 | 2019-01-03T18:55:35 | 2019-01-03T18:55:35 | 3,626,127 | 163 | 51 | null | 2018-06-30T19:15:55 | 2012-03-05T10:49:18 | C | UTF-8 | C++ | false | false | 416 | cpp | al_avreb_can_serial.cpp | /* Copyright (c) 2016, Roboterclub Aachen e.V.
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
* ------------------------------------------------------------------------ */
#include "... |
3e77c0db6181eee75ca9c0e9e2968507a889623d | c66b1d5a698f67e7bac8c3d91169f4ba4c0c60cc | /src/uiInputs.h | 87e2f514bf3a7a887401f1d7c28bc9933555aea5 | [
"MIT"
] | permissive | dietmar153/OpenPixelMapper | e96ea01dae430d4346f44a2f7dedb78074156fb2 | 6521aa45517c6ccaf5685e8a89e6f269abaed298 | refs/heads/master | 2021-01-13T08:01:13.408617 | 2014-05-20T07:11:54 | 2014-05-20T07:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | h | uiInputs.h | //
// uiInputs.h
// openPixelMapper
//
// Created by Tobias Ebsen on 14/03/14.
//
//
#pragma once
#include "ofxUI.h"
class uiInputs : public ofxUISuperCanvas {
public:
uiInputs(float x, float y, float w, float h);
void setup();
private:
ofxUIImageToggle *inputChecker, *inputImage, *inputMov... |
6404168da3377ec7869c209be2ce4220dfd034bb | 255cd9f19d866576910650c45581873fcb9ae51f | /source/wrapper/tools/zet_debug.cpp | 82cdc798d6f7be61c6c9ad2c76066fd07215a2c6 | [
"MIT"
] | permissive | hassoon1986/level-zero | b1188435099d2b2e58f1d97cd46e310648f0ae4b | 875fef26e2a4a2eb9f4f61dc25e35f30362dc5e9 | refs/heads/master | 2022-06-08T21:30:32.449447 | 2020-04-14T20:42:08 | 2020-04-14T20:45:29 | 260,108,442 | 1 | 0 | MIT | 2020-04-30T03:53:28 | 2020-04-30T03:53:27 | null | UTF-8 | C++ | false | false | 19,451 | cpp | zet_debug.cpp | /*
*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* @file zet_debug.cpp
*
* @brief C++ wrapper of Intel 'One API' Level-Zero Tool APIs for Program Debug
*
*/
#include "zet_api.hpp"
#include "ze_singleton.h"
#define _STRING(s) #s
#define STRING(s) _STRING(s)
namespace zet
{
/... |
0c5640d1c9252ba55cf3e131d9509a4056a6d570 | 7f44649ed154669320be8866b7099aab34703425 | /ZZip/ZipHeaders.cpp | e6e9cf2810d5bce61416c235cd2ac30e4e74042e | [
"MIT"
] | permissive | azvenigo/ZZipUpdate | 84cb46ed06d034dab5421a9b461259d809b1f48b | 2f00b6eada227d8f711237dee36caa03a7033202 | refs/heads/master | 2022-11-03T00:57:42.991537 | 2022-09-27T06:51:19 | 2022-09-27T06:51:19 | 180,079,321 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37,286 | cpp | ZipHeaders.cpp | // MIT License
// Copyright 2019 Alex Zvenigorodsky
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p... |
8c375977760a73846b8e3d886d92f0abeb2933ef | f42f8c79eb74e97135903cedca042a4cdd35bce3 | /search_server.cpp | 45bab4c9a15cbcdd977aad4eb01bbcdad93678e2 | [] | no_license | VorkovN/coursera-red-belt | 25f136475631541208dbb87a9026410cb7e32ced | 645798ef52b1b0670739adfc45725a9d6569cff0 | refs/heads/master | 2022-12-09T11:15:13.559222 | 2020-09-18T15:02:43 | 2020-09-18T15:02:43 | 296,352,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,961 | cpp | search_server.cpp | #include "search_server.h"
#include "iterator_range.h"
#include <algorithm>
#include <iterator>
#include <sstream>
#include <iostream>
#include <numeric>
vector<string> SplitIntoWords(const string &line) {
istringstream words_input(line);
return {istream_iterator<string>(words_input), istream_ite... |
03fc6b832cbc6bbed02ca0a628bd3f3bd783a7c8 | 9ca6885d197aaf6869e2080901b361b034e4cc37 | /CondTools/RPC/src/RPCTempSH.cc | 2463ee4607e0d9545797d863d4c9b134687e7cd6 | [] | no_license | ktf/cmssw-migration | 153ff14346b20086f908a370029aa96575a2c51a | 583340dd03481dff673a52a2075c8bb46fa22ac6 | refs/heads/master | 2020-07-25T15:37:45.528173 | 2013-07-11T04:54:56 | 2013-07-11T04:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,283 | cc | RPCTempSH.cc | /*
* See headers for a description
*
* \author D. Pagano - Dip. Fis. Nucl. e Teo. & INFN Pavia
*/
#include "CondTools/RPC/interface/RPCTempSH.h"
#include<sstream>
#include<iostream>
popcon::RpcDataT::RpcDataT(const edm::ParameterSet& pset) :
m_name(pset.getUntrackedParameter<std::string>("name","RpcData")),
... |
a80c9854cb51edc7e4409931ea596bc5b80a2791 | 4d24cffbff8f60b00cd1780a96a12626399d1df8 | /text-justification.cc | 3d09cbf29169411608a1cf92f3dac0907e9f5fe9 | [
"MIT"
] | permissive | tyrowang/CC | a37a4d4925952f8b11b810f8cb47863b4a277a06 | 9be3602a40567187ee27eb744773f8092c36b6b6 | refs/heads/master | 2021-01-10T00:53:10.338843 | 2014-08-18T02:50:35 | 2014-08-18T02:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,113 | cc | text-justification.cc | class Solution {
public:
string cline(vector<string> &words,int left,int wordNum, int L){
string line="";
string space="";
int charNum=0;
for(int i=left;i<left+wordNum;i++){
charNum+=words[i].size();
}
if(left+wordNum==words.size()){
line=words... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.