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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b6ed8cfb958513b90816758e66dd0febc931702 | cd4ffc557898fe6699cf05322563c12767d8e8df | /includes/Map.hpp | 0ecd0b820015dc69ea47035b2798ea97772e6ff3 | [] | no_license | FlorentGru/Bomberman | 85c5e1bacffa421a0db1c853917a9b462c6c8a7b | 98af80fce05e762107e30dcab287423834d3c54a | refs/heads/master | 2022-01-06T08:14:03.713722 | 2019-05-29T13:21:15 | 2019-05-29T13:21:15 | 191,163,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | hpp | Map.hpp | /*
** EPITECH PROJECT, 2018
** Bomberman
** File description:
** Map.hpp
*/
#ifndef MAP_HPP_
#define MAP_HPP_
#ifdef _WIN64
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
#include <boost/multi_array.hpp>
#include "GameObject.hpp"
class Map
{
private:
irr::IrrlichtDevice *_device;
... |
33fc188ab7719c5cc499fe83c4c32b7cc34e4dd9 | b102a2fc5d40cb2ec4ffa53c74aeb6a33fa02734 | /figures/Rhombus.cpp | 722525fafab03de79f576e6d043add902183bc13 | [] | no_license | nothingelsematters7/TP_Task1 | 511213612170b9509eb472ff282b20f32b067759 | d4ff66d2e6d8a3d09a6a802fa4e0da3e1303af50 | refs/heads/master | 2020-04-02T16:41:57.406212 | 2011-10-18T10:25:01 | 2011-10-18T10:25:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 787 | cpp | Rhombus.cpp | ///////////////////////////////////////////////////////////
// Rhombus.cpp
// Implementation of the Class Rhombus
// Created on: 16-Oct-2011 17:54:56
///////////////////////////////////////////////////////////
#include "Rhombus.h"
Rhombus::Rhombus(){
}
Rhombus::Rhombus(const QPoint & center, const QPoint &... |
9a963982dc9e9b672f8a72c114a0abbd96075602 | 6ac51d0dd5b593436e064d44fd767174c5cf54ec | /Assignment_2-7.cc | ea51290c6d0bce968bf529b740466cbededbd4a5 | [] | no_license | ie03-aizu-2019/ie03project-powerpuff | 1ee1f6e83b2a27ab3716d096d88a82517422626b | 1c009733e2432797693d1306a68750597ca54e97 | refs/heads/master | 2020-05-07T11:55:03.858635 | 2019-08-03T13:18:52 | 2019-08-03T13:18:52 | 180,480,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,785 | cc | Assignment_2-7.cc | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <string>
#include <limits>
using namespace std;
#define INF (1<<21)
#define SIZE 1000
#define TRUE 1
#define FALSE 0
struct Point{
double x;
double y;
};
struct Line{
Point p1, p2;
int m1, m2;
};
struct Qdata{
char q1[5],q2[5]; /... |
4392ae56530580d9d24fb59d5d6c657317c28455 | 277566560415d6ab3ccfebd7fb0104dea5119c8f | /work/src/mqtt/mqtt.cpp | 6c3280c5ea80d4cb7e3bceb6fa00f723cb09dcc4 | [] | no_license | notepi/rabbitmq_work | 7348663a14d60845b7defa2ff817e53a69c43889 | d2bb62a581cd53f0a69a258fbbb8efa45b2b83d9 | refs/heads/master | 2021-01-12T09:30:58.295581 | 2017-01-05T08:56:34 | 2017-01-05T08:56:34 | 76,177,211 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,597 | cpp | mqtt.cpp | #include "mqtt.h"
#include "MQTTClient.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *ADDRESS = "tcp://localhost:1883";
char *CLIENTID = "ExampleClientSub";
volatile MQTTClient_deliveryToken deliveredtoken;
/*
int nKeepAliveInterval, //心跳保持时间
int nCleanSession, ... |
f035495c8590511c810abf9ff84b4527e24d0ba9 | d1e99605802154e8ab9072875d7e33b6e04934cb | /Concurrency/Week 2/test.cpp | 9368e54cfd5df79a9ecf24b5bba78e42edafd63c | [] | no_license | AnotherFoxGuy/NHL-Jaar-2-Machine-Intelligence | b6592d75b6db8441bd5159e95b8cf61507959b9d | 42eba585ff0b7c64a462bf721a7b610b96e94c91 | refs/heads/master | 2020-09-08T17:44:29.277299 | 2019-12-09T10:14:20 | 2019-12-09T10:14:20 | 221,199,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,434 | cpp | test.cpp | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include "tbb/task_group.h"
#include "ThreadPool.h"
using namespace std;
vector<string> getNames();
vector<string> MergeSort(vector<string> list);
vector<string> MergeSortTP(vector<str... |
ec60791635f44ef29f9a48d532711d5b374da77c | 537ea8dbedac7a9ad966c904ffc0fe6b419db7eb | /SIMM/Software/SIMM/mainwindow.h | 0eece35d036671d314715c04404a9ca43e5faf8f | [] | no_license | capantoja/SIMM | 9905eea0089cab148a83ab1a014d4d3ac4c55373 | c1753a9cf66c1e9154b6544e18a1f016ec57e407 | refs/heads/master | 2021-01-10T19:19:18.054843 | 2014-08-10T17:27:30 | 2014-08-10T17:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,902 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtGui>
#include <QPushButton>
#include <QCheckBox>
#include <QListWidget>
#include <QSlider>
#include <QCursor>
#include <QTimer>
#include <QPixmap>
#include <QIcon>
#include "SlidingStackedWidget.h"
namespace Ui {
class MainWindow;
}
class ... |
f36d50fa939f0d609d6a6919bae6408d67368101 | 5487ceabd21d32d2529a7bf4181684fa3a25fcc7 | /pstnd/PstnCaller.cc | 7d8f06442b5d3554a513d26739b0ff44f9a49e84 | [] | no_license | yangjiandagege/E3PhoneBox | 43758ead71eb1456846885891164be3d3a01cab1 | 1c98de4d9c8c0bec86641b625e2127da291a9c12 | refs/heads/master | 2021-01-09T21:52:25.595952 | 2016-03-30T05:00:39 | 2016-03-30T05:00:39 | 55,033,821 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,485 | cc | PstnCaller.cc | /**
* @file: PstnCaller.cc
* @auth: lishujie
* @brif: PSTN caller work with engine
*/
#ifndef _PSTN_CALLER_CC_
#define _PSTN_CALLER_CC_ 1
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <limits.h>
#include <fcntl.h>
#include <linux/input.h>
#include <map>
#inc... |
0d85c169e1e7e5d2a3834ddac07d76379145d04a | fd368810b29b76210998a7d5cb73913f0f1e2c81 | /src/PerformanceTimer.cpp | 3eeea7e5d040e61938af518e1eae2de5e526e7df | [] | no_license | uakfdotb/tsharesim | ac014da0efb19d6c7903d43ccbd064f8fe41a718 | af6b30ac0e8137178f4661c946d7bfa794223a42 | refs/heads/master | 2020-12-24T16:23:38.500526 | 2017-03-21T22:51:30 | 2017-03-21T22:51:30 | 19,193,975 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,019 | cpp | PerformanceTimer.cpp | /**
* Copyright 2010-2011 Sebastiaan J. van Schaik
*
* This file is part of PWAHStackTC.
*
* PWAHStackTC is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... |
4da3e2e77b89d912cf4e3accc2ca6fc0d2de2a81 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-swf/source/model/SignalExternalWorkflowExecutionDecisionAttributes.cpp | b3d6e71f6187d64f566a270ff9f81dd153c70322 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 2,364 | cpp | SignalExternalWorkflowExecutionDecisionAttributes.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/swf/model/SignalExternalWorkflowExecutionDecisionAttributes.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws:... |
b4cfc4d3331b96849fc6d37ed2a4f1f8bced10da | 449b2203800a6fe10f94261ba460c246add41894 | /baza.h | 93b42f6c1e3a65de36a2370aab0c06f004369907 | [] | no_license | AzamatIshmuratov/1_lab_qtInterface | ab35ced7081d6b301e46c2901075b75a70376aaa | bf60ac3bc801acfa78cd06f175cab2ad5a000baa | refs/heads/master | 2020-03-18T00:56:39.363413 | 2018-05-20T14:31:12 | 2018-05-20T14:31:12 | 134,105,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | h | baza.h | #ifndef BAZA_H
#define BAZA_H
#include <QDialog>
namespace Ui {
class Baza;
}
class Baza : public QDialog
{
Q_OBJECT
public:
explicit Baza(QWidget *parent = 0);
~Baza();
signals:
void firstWindow();
private slots:
void on_pushButton_clicked();
void on_piramida_clicked();
void on_quick_... |
2f3244d974d6782e63f7a8690aae719c273e440f | 4044f44c9a1639a8157f458f7ea25326af2d4ccc | /Ins401/Ins401/devices_manager.cpp | 176bc62ac82b3645f0fb9684a0c7a39f425356e2 | [] | no_license | daichenghe/Ins401_tool | 628fb5be483f2e81d1a1cec80c3ecd1d0c37b777 | 987d3f7402f3ad9fd3dd970973cbc0d383728320 | refs/heads/main | 2023-08-13T09:01:22.325449 | 2021-10-12T01:24:46 | 2021-10-12T01:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,770 | cpp | devices_manager.cpp | #include "devices_manager.h"
#include <mutex>
#include <QNetworkInterface>
#include <QtEndian>
#include <QDateTime>
#include "common_function.h"
devices_manager * devices_manager::m_instance = NULL;
std::once_flag devices_manager::m_flag;
devices_manager::devices_manager(QObject *parent)
: QObject(parent)
, sr... |
556bb3d475699151ec05a39f9dc349cb02d26caf | 52a76b7c32f47dbe31d0510f04cfc98e5f355fc4 | /src/buffer.cc | 0495c4c67283c6f24a5f4fdf92d0a076d56ae365 | [
"Apache-2.0"
] | permissive | ConnectionMaster/amber | 90d5dd47f7f60891838cc8e18bfc72939f40e8e4 | cea300d8e6b46f7aa329b20214e0b3bafb586734 | refs/heads/master | 2021-06-22T08:52:53.167380 | 2019-04-25T15:22:50 | 2019-04-25T15:22:50 | 183,471,300 | 1 | 0 | Apache-2.0 | 2021-01-23T01:53:39 | 2019-04-25T16:26:52 | C++ | UTF-8 | C++ | false | false | 7,457 | cc | buffer.cc | // Copyright 2018 The Amber Authors.
//
// 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... |
2d7022f67cd04700165d5f806777bf71f6386cf9 | e0256367fc9796a0c3b3a94117f5e604cfb5f67f | /src/Actor.cpp | bf600c70e94ff2d25330287baa52968704173222 | [] | no_license | rroa/Asteroids | 5be257fef895ab7c9e8a1f53b1acc868d8c6b5f8 | 2dbf478e25bb8089fce89d62dbb2d828423f3d5d | refs/heads/master | 2020-12-24T18:12:50.799989 | 2014-10-10T15:58:45 | 2014-10-10T15:58:45 | 25,042,725 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | cpp | Actor.cpp | #include "Actor.h"
#include "IncludeGL.h"
#include "Utility.h"
#include <algorithm>
#include <cmath>
namespace asteroids
{
inline float wrap( float x, float min, float max )
{
if( x < min )
{
return max - ( min - x );
}
if( x > max )
{
return m... |
703b52bca255527282310084bbee91bac54024c8 | 26536d182e2b530f0d085ceac0bd251d61100dfd | /scripts/ita_scripts/hrs_ac/conv_bg.cc | 52a5b831d2950bdcc670e0ca5313e605b2daa77d | [] | no_license | itabasi/replay | 7a657f4cbcd780bb2ce603ae4d08eda58a3158f4 | 0b140954c9287fdadd2b14eaf2a359a59eac4997 | refs/heads/main | 2023-06-22T21:30:35.470857 | 2021-07-20T10:25:25 | 2021-07-20T10:25:25 | 387,748,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,334 | cc | conv_bg.cc | /*
conv.cc
Auther K. Itabashi
2018 Sep. 19th
Convert tritium_rootfile to AC hist
*/
const double ch2ns = 0.05; // ch --> ns
void conv(){
int run,evn;
cout<<"run number (defolt(-1):93267) "<<endl;
cin>>run;
cout<<"Event number (Max: -1)"<<endl;
cin>>evn;
if(run<0){
run=93276;
}
double E,M... |
03ee3102ae0c89c299cfe0a85bcf9c69bde8beaf | 39fe085377f3c7327e82d92dcb38083d039d8447 | /core/sql/ustat/hs_cont.h | 59b19015908ced6800f0a7c13249972c024bba33 | [
"Apache-2.0"
] | permissive | naveenmahadevuni/incubator-trafodion | 0da8d4c7d13a47d3247f260b4e67618c0fae1539 | ed24b19436530b2c214e4bf73280bc8e3f419669 | refs/heads/master | 2021-01-22T04:40:52.402291 | 2015-07-16T00:02:50 | 2015-07-16T00:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,900 | h | hs_cont.h | /**********************************************************************
// @@@ START COPYRIGHT @@@
//
// (C) Copyright 1996-2014 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... |
0727eeb951f2bffd75f3ef8b85efb6d721c46442 | 7757ef13eacb2adb0a7108bca865b5b23c3bbc6c | /SHELTER_/ProjectShelter/loginwindow.cpp | 19ea8bcd30eba8991be8d4ed693f22520b95cfe8 | [] | no_license | tobiaszpuslecki/Shelter | 4d60124cc9ab6fd4d2c6f0be27be930d1eec72c8 | 3a813e86feabb969ce654160c1286d5d74407217 | refs/heads/master | 2020-08-02T00:10:36.005786 | 2019-09-26T19:59:32 | 2019-09-26T19:59:32 | 211,170,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | loginwindow.cpp | #include "loginwindow.h"
#include <QFile>
#include <QTextStream>
#include <fstream>
loginWindow::loginWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::loginWindow)
{
ui->setupUi(this);
}
loginWindow::~loginWindow()
{
delete ui;
}
void loginWindow::on_pushButtonLogin_clicked()
{
// QFile ... |
cb8cb1521afd1bad024ba3bf438ce9438e27d12e | 83e5a03beff28b824839c1d066c462adbdd0894c | /栈的压入弹出序列.cpp | 4b1544af98127c40374d591adfc7ac9a1f1f9b95 | [] | no_license | LisaJing/Offer_Practice | a7d3e97db606fc5a574ca1f3ec68d2f8009d0c58 | 4521a3c62e8aaa6727afd625024e68f37c82ab04 | refs/heads/master | 2021-01-20T14:38:51.187779 | 2017-05-18T09:27:44 | 2017-05-18T09:27:44 | 90,638,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | 栈的压入弹出序列.cpp | /*
题目描述
输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否为该栈的弹出顺序。
假设压入栈的所有数字均不相等。
例如序列1,2,3,4,5是某栈的压入顺序,
序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出序列。
(注意:这两个序列的长度是相等的)
*/
class Solution {
public:
bool IsPopOrder(vector<int> pushV,vector<int> popV) {
int push_size = pushV.size();
int pop_size = popV.size(... |
8f0692526a054e5007bd93a7a323a44bb375183f | 2bbf04bde4585ea4217f65a0037ff824007ada77 | /PensPencils.cpp | 9c25e27942fc678a9fdbd44d8e30ffb01109c6dd | [] | no_license | knight-byte/Codeforces-Problemset-Solution | 7e0dea73a3906434faf4e59dbc8dd5269b09a688 | cdac3669cc14385ed43f19621ba72a055a52c76c | refs/heads/main | 2023-04-09T00:06:27.062577 | 2021-04-28T05:28:24 | 2021-04-28T05:28:24 | 340,555,681 | 1 | 1 | null | 2021-02-20T03:50:47 | 2021-02-20T03:50:46 | null | UTF-8 | C++ | false | false | 534 | cpp | PensPencils.cpp | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int t;
cin >> t;
while (t--) {
int a, b, c, d, k;
cin >> a >> b >> c >> d >> k;
int pen=0, pencil=0;
if (a%c!=0 || a<c)
pen = a/c + 1;
else
pen = a/c;
if (b%d!=0 || b<d)
... |
10f753fd2ae0f28b54e2f06866d76996acf97e9d | bef51711b6dadbe831ca217e571000b707eac210 | /Arduino/SuperParkRFScannerv2/HelperFile.ino | 6cd4f0124080d6abaa71f8d4f8d2497005bb5cfe | [] | no_license | markwiliz30/LagotronicsProjects | eb71b5cdb5dc343921be191ee379e1740e49ac5b | 0f9c88f874e40d9af7fee077dbc9aa2b316f4282 | refs/heads/master | 2022-07-06T15:35:45.492788 | 2019-09-23T03:29:45 | 2019-09-23T03:29:45 | 164,364,238 | 0 | 0 | null | 2022-06-22T20:40:55 | 2019-01-07T01:52:31 | C# | UTF-8 | C++ | false | false | 992 | ino | HelperFile.ino | String readRFID()
{
content = "";
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? "0" : ""));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
return content;
}
void udp_check(){
int packetSize = Udp.parsePacket();
i... |
c468024035242eb68a16b9834d3254a7102c365b | f8083f1ac05ecb07b93c58af98eaf78e8eab9367 | /others/asakatsu/2020-08-09/E.cpp | 454ba87eec37770922b22f592b19211fb5d1bd62 | [] | no_license | itohdak/AtCoder | 4f42ccc7b2b7f71d0d51069bd86503ee0f4b3dbf | 9ee89bac3ced919b94096ffd7b644d3716569762 | refs/heads/master | 2021-06-24T14:42:54.529474 | 2020-10-16T18:41:27 | 2020-10-16T18:41:27 | 134,136,836 | 2 | 1 | null | 2020-02-07T12:45:10 | 2018-05-20T09:26:13 | C++ | UTF-8 | C++ | false | false | 938 | cpp | E.cpp | #include <bits/stdc++.h>
#include "/home/itohdak/AtCoder/000/print.hpp"
using namespace std;
#define ll long long
#define ld long double
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,n-1,0)
#define a... |
52be3040b4c51b9829ea45602105a6b43d4cc6e4 | 43aaabd5e6d8a6be69973a8942c918b7b14e87cf | /SeaBattle/Cell.cpp | e70155ef44de0b5392353d6bfe50e7d1a7de00fe | [] | no_license | alex-nikitin-dev/SeaBattle | 6ebe9beaaf95f8489182c5aef310904c42259895 | 70cc70570c2cf2c257fe1e1e5b77c4c70a266141 | refs/heads/master | 2023-01-22T15:04:00.899638 | 2019-12-21T06:29:28 | 2019-12-21T06:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | Cell.cpp | #include "stdafx.h"
#include "Cell.h"
#include"GameColors.h"
void Cell::SetDisabled()
{
_isDisabled = true;
}
bool Cell::IsDisabled() const
{
return _isDisabled;
}
Cell::Cell(const MatrixPoint gPoint, const bool visible, const CRect rect, const GameFieldItemMark mark) :
Cell(gPoint, visible, rect, mark, CellState... |
3609f5240080990e86660fdd954d5c66b4828bf8 | 1ceed49a59cc104695732b404ce3f195ae3d4954 | /sem 1/7.35/main.cpp | 01da23405d311b183c87ac88b496cb06013c43b6 | [] | no_license | pawellazicki/C_Homework | 60804b4627082c9ff4edb1d8b5b38af37825ecf2 | 725e59ce635fa8c908d2d4d74610ac7cda5ba73a | refs/heads/master | 2020-05-29T16:57:05.415139 | 2019-05-29T16:01:21 | 2019-05-29T16:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 794 | cpp | main.cpp | #include <stdio.h>
#define N 1000
#include <math.h>
float average(int tab[], int siza)
{
int i;
float suma=0;
for(i=0;i<=siza;i++)
{
suma+=tab[i];
}
return suma/siza;
}
//-----------------------------------------------
float stdDev(int tab[], int siza)
{
int i;
float odchylenie=... |
4399291b12927effb537027fb6ba02a2797408c4 | 2a33180671b65cae49803d941ab1d18e42f16d3b | /PoetryWall/Software/test/test.ino | c2238fda198ab428b30bf64ec817707f60a5a7e4 | [] | no_license | re-innovation/JoFairfaxStudio | 43ecd27eac2717da910c6dd8270aff8fa4cb9730 | e470742624849856024b80b4f077601510d925ba | refs/heads/master | 2021-06-02T16:18:37.931780 | 2021-04-25T15:20:07 | 2021-04-25T15:20:07 | 45,674,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | ino | test.ino | /*
* Stepper_Poetry_Nano_Stepped_v4
*
* test.ino
*
* Small sketch for quickly testing small bits of functionality
*/
/*
* 3rd party libraries
*/
#include <AccelStepper.h>
#include <TaskAction.h>
#include <SoftwareSerial.h>
/*
* Arduino functions
*/
#define STEPS_PER_REV (6245L)
#define NUMBER_OF_WORDS... |
1cae422e9dc24e57a1e0b8e5c8c67f27b943951d | b27cbf59c03f69ad03219fddfa2d38a8fccd8141 | /src/ContentsInjectedBundle/audio/GstAudioDevice.h | e42618d383cc8025dbc6d562d0704a7f104d927f | [] | no_license | luisgabriel/drowser | d5257d14203da4b43762b916516c5f1517909341 | 9c18416970cd8cc3669a557e54942315335108b9 | refs/heads/master | 2021-01-17T22:25:58.721358 | 2013-10-04T22:34:26 | 2013-10-10T18:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | GstAudioDevice.h | #ifndef GstAudioDevice_h
#define GstAudioDevice_h
#include <gst/gst.h>
#include <NixPlatform/Platform.h>
class GstAudioDevice : public Nix::AudioDevice {
public:
GstAudioDevice(size_t bufferSize, unsigned numberOfInputChannels, unsigned numberOfChannels, double sampleRate, Nix::AudioDevice::RenderCallback* render... |
e22023fe53e39286ec93ccd52880c539b719220f | 8d294c2c22b42d0f8ec52a5cbcaedf6f5a3d90f5 | /Longest_Palindromic_Substring/Longest_Palindromic_Substring/main.cpp | b6c530dabd8774ff802715c2d5f3c04924001ce1 | [] | no_license | xhe12/Leetcode | 91a3b28ea1fb4d620a4462f3b72f93023c319a82 | 8249fcd4eae3d01c1fca95c39c8ea6626ac73838 | refs/heads/master | 2020-09-19T21:54:05.844776 | 2020-02-03T21:47:54 | 2020-02-03T21:47:54 | 224,306,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,482 | cpp | main.cpp | //
// main.cpp
// Longest_Palindromic_Substring
//
// Created by Sharon He on 1/13/20.
// Copyright © 2020 Sharon He. All rights reserved.
//
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
string longestPalindrome(string s) {
if(s.size()==0){retur... |
f8cb27bef2498ca0ecc711b4d7cc2f748307e545 | 9cf74c0f1b01eaaee00a1b4a2bdf0b459a944baa | /oota/ROM.cpp | aed4e56da7ee9e02a12196af1844e0cf945f5c7e | [] | no_license | kadapallaNithin/oota_mcu | 82b4597e839dbba03675ae2d7c8962704000f172 | 912450a970fd2972b7d1c168f4b37b8d533ba9ca | refs/heads/master | 2023-03-07T13:34:18.453901 | 2021-02-18T17:12:56 | 2021-02-18T17:12:56 | 281,722,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,449 | cpp | ROM.cpp | #include "ROM.h"
/*
* cash_bytes (actually can't bcz attacker can get all the cash along with key) help when attacker gets key and don't use it.
* Server gives same key to user.
* After user starts transaction, if only product_key is used to authenticate,
* attacker can finish the transaction.
*
*
* ... |
731b543672d47f6f8c7cd6ad0bf3195aa38dc61a | c827d89450df5c99e2f120bd59e3a29d6945286e | /leetCode/Univalued-Binary-Tree.cpp | aea97b4ac2fda505eec1ea2624c010a4fadc8bdc | [] | no_license | WilliamNTN/Coding-Interviews | 7ea02fa941828c10d036faaa2ced80c84b428777 | ec73d8752a09351a78ede39987366bed59e28d1c | refs/heads/master | 2020-04-03T03:13:32.255156 | 2019-02-13T12:58:57 | 2019-02-13T12:58:57 | 154,980,087 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | Univalued-Binary-Tree.cpp | //A binary tree is univalued if every node in the tree has the same value.
//Return true if and only if the given tree is univalued.
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
... |
cbfee3676c65e49770659d7b1004fa2f043928cf | a97752b8d83d28d7a6eb0580a26dbb3c8afeacaf | /samp/sampActor.c++ | 6349cd08f0b26e9b3e24a53ddb09954c8eadd509 | [
"MIT"
] | permissive | camilleg/vss | 1135b46d2775e448508075c1eff2372eb49e207e | b99bb5281a8cc09cf7045fb6c9315e74e281ec86 | refs/heads/main | 2023-06-07T00:13:59.320038 | 2023-06-06T21:02:04 | 2023-06-06T21:02:04 | 8,169,388 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,458 | sampActor.c++ | #include "samp.h"
ACTOR_SETUP(sampActor, SampleActor)
sampActor::sampActor() :
VGeneratorActor(),
defaultLoopFlag( 0 ),
defaultSampleStep( 1. )
{
strcpy(defaultDirectory, ".");
setTypeName("SampActor");
}
sampActor::~sampActor()
{
unloadAllFiles( /* beFirm = */ true );
}
// Don't use a default file name becaus... | |
24e2fbaf00d97aab194a0ae326fa17fe7d4165be | 5a056f3d71ec523a425832d645bb6a7ee2bd4255 | /day20/main.cpp | 6e5ed28e53b77e101080d58308b099d54a46595e | [] | no_license | ErwanDL/aoc2020 | 94ed08c2e1662924c102f0939bd0a26ed2e21522 | 76baf7a625da2b4c4b870b2881993688ea5860bc | refs/heads/master | 2023-02-05T16:57:06.265224 | 2020-12-25T15:07:30 | 2020-12-25T15:07:30 | 319,031,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,311 | cpp | main.cpp | #include <algorithm>
#include <array>
#include <cmath>
#include <exception>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using Pixels = std::vector<std::vector<char>>;
std::vector<std::pair<int, int>> MONSTER_HASH_SIGNS... |
8168efef73410a91a998452a35773be9db47709d | 79e1e1c99007f8a56a8debfef1d5f2116c83f4a9 | /src/physics/Force.h | a4a512ae09f9e6790220a4890b400369ae0bbe0a | [] | no_license | haoxiangmiao/FEM-2 | b766dbe8668a3507bd782703d7bd7a18f4b37593 | 76861c5f54f984bbf2c0696ef670254ba214bf9b | refs/heads/master | 2022-03-31T12:16:07.180525 | 2020-01-21T23:24:52 | 2020-01-21T23:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | h | Force.h | /**
FILE: Force.h
AUTHOR: Jose P Escobar
DESCRIPTION: This class describes a POINT NODE, in order to expand this into traction and body forces, we would have to have a proper geometrical
description
*/
#ifndef FORCE_H
#define FORCE_H
#include"../algebra/Vector.h"
class Force... |
8d82c68afe9e8325bf3681b994cec28eb6c06f7a | 48b46a918187edbb7821c711cdb71a0d2b56e82d | /faceDetectWCP/faceDetectWCP/FaceDetection.h | 748cf662643510850384358998b9f5851ae8c5aa | [] | no_license | sulinux/dataProcesss | fa4e9a88f11333e3c69842a0db59f78dbc0e4bbd | 320bd7843192ca33e7b19be11e52034e6fb4524c | refs/heads/master | 2021-01-04T02:37:52.405314 | 2015-06-26T16:10:20 | 2015-06-26T16:10:20 | 38,120,679 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 837 | h | FaceDetection.h | #pragma once
#include <opencv/cv.h>
#include <vector>
using namespace std;
#ifdef FACEDETECTION_EXPORTS
#define FACEDETECTION_API __declspec(dllexport)
#else
#define FACEDETECTION_API __declspec(dllimport)
#endif
#define FACES_MAX 50
// 此类是从 FaceDetection.dll 导出的
class FACEDETECTION_API CFaceDetection
{
public:... |
f991a7fddfaf22df9cdfdd8d7a2792da524b0e6f | 18208c77878369809d4a7b7b2cee2e9d3a0a0bad | /ThirdParty/gearmath/gearmath/MathPrerequisites.h | 65922e60b3a25fb3a5ae7184d169658acd5e237c | [
"MIT"
] | permissive | hipiPan/effects | 416c914966a2fe1cb96e9d599f889e14755f9d5f | d9003f71e6fb485d054fb198cfdf5b944e2e158f | refs/heads/master | 2021-06-26T02:07:41.917096 | 2021-02-16T14:15:16 | 2021-02-16T14:15:16 | 207,339,054 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 276 | h | MathPrerequisites.h | #pragma once
#include <cmath>
// std::sin,std::cos都以弧度为单位
#define PI 3.1415926
// 角度转弧度
inline float radians(float degrees)
{
return (PI / 180.0f) * degrees;
}
// 弧度转角度
inline float degrees(float radians)
{
return (radians * 180.0) / PI;
} |
07a81683129253e749b48c42ebacb8d53686ca0b | 4d8186e72060fb9100afb48467d8f48aa735a758 | /cs148raytracer-public/assignment8/Assignment8.cpp | 0d271db887092a262f1928551911e0659d2f8b4f | [] | no_license | oankarberg/CS148_final_image | b862a4df065e6133de1292e9255e0fa411be8fdb | ac454c047fbcfe21b9d0f615fa3f2ff8ecad2d10 | refs/heads/master | 2021-03-27T20:35:42.006778 | 2015-12-06T21:09:56 | 2015-12-06T21:09:56 | 46,755,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,554 | cpp | Assignment8.cpp | #include "assignment8/Assignment8.h"
#include "common/core.h"
const bool DEBUG_ON = false;
std::shared_ptr<Camera> Assignment8::CreateCamera() const
{
const glm::vec2 resolution = GetImageOutputResolution();
std::shared_ptr<Camera> camera = std::make_shared<PerspectiveCamera>(resolution.x / resolution.y, 56.6... |
e869b8f21c4232adfdb6ccdac99cae806a70360f | 8d06926a13cf074b52b9300fab848facebe14f37 | /CodeForces/Global Round CF 10/E/main.cpp | 04d43dd008abfc0907914cfd4be34b2b481aae87 | [
"MIT"
] | permissive | MuhamedAbdalla/MyProblemSolving-Contest-Solutions | 60273075ead4a24f6ecfd4cb29abec55f35523b8 | ad66158da86d00f32a58974c8bed29a7407c08e9 | refs/heads/main | 2023-01-01T02:07:12.100459 | 2020-10-18T17:00:40 | 2020-10-18T17:00:40 | 300,402,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<vector<long long>> v(n, vector<long long>(n));
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
if(i & 1) {
v[i][j] = (1ll << (i + j));
}
}
}
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
... |
f1b4bda013f69897fef73c0145c89d217426b288 | cf09c29b2df636690886d0e8765c5e739752fa7d | /reversal array.cpp | eecd67247de11f7a826038f69a6593a97e421aa6 | [] | no_license | codeingwolf/array-operation | df8613b961fd7bf9d743def6fb02244a28b64a5d | 862eca698c650cf6a14b9f6108f00551ce0e55cc | refs/heads/main | 2022-12-24T13:05:29.101174 | 2020-10-03T14:07:44 | 2020-10-03T14:07:44 | 300,657,715 | 0 | 3 | null | 2020-10-03T14:07:45 | 2020-10-02T15:26:33 | C++ | UTF-8 | C++ | false | false | 272 | cpp | reversal array.cpp | #include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
scanf("%d",&n);
scanf("\n");
int arr[n];
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
for(int i=0;i<n;i++)
{
printf("%d ",arr[n-1-i]);
}
}
|
4dff872de53102c26bec3e7fd7ce1b7803ebe5f8 | d542979d70c3ee01c4878490d4cf643769c15a18 | /leetcode_train/Solution_295.cpp | 4aa408056b5eb331a9e3ae279fdde9886df2f91e | [] | no_license | lijiaxin-dut/leetcode | 1f08f0ecc88ce1069e46a965884b2c4ecd55931f | a707110de92276a3fc9eb42c857d752db64ca113 | refs/heads/master | 2022-12-31T14:23:03.679701 | 2020-10-12T11:49:30 | 2020-10-12T11:49:30 | 295,137,478 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,721 | cpp | Solution_295.cpp | #include<queue>
#include<functional>
using namespace std;
//Median is the middle value in an ordered integer list.If the size of the list is even, there is no middle value.So the median is the mean of the two middle value.
//
//For example,
//[2, 3, 4], the median is 3
//
//[2, 3], the median is(2 + 3) / 2 = 2.5
//
//... |
20c389cd9e6780d5cfcd2e5f2d8f14e7ca384c8f | df3e12ef111c9663d318634468e70a7f7ad322e7 | /src/engine/state/serialize/UnitHandlers.cc | 5a51c74207708afa4af869d29e28b5e3a33bb363 | [
"MIT"
] | permissive | aburgm/freeisle | 6fc51933d2c4bbc50fcdd34cb5228293dacedda1 | 5175897b31e471b4cf9bc2a9be7a88f8b4201d2a | refs/heads/master | 2023-08-31T23:29:11.059159 | 2021-10-21T20:34:02 | 2021-10-21T20:34:02 | 367,865,333 | 1 | 0 | MIT | 2021-10-20T21:20:56 | 2021-05-16T11:49:08 | C++ | UTF-8 | C++ | false | false | 14,707 | cc | UnitHandlers.cc | #include "state/serialize/UnitHandlers.hh"
#include "def/serialize/CollectionLoaders.hh"
#include "def/serialize/CollectionSavers.hh"
#include "def/serialize/ShopDefHandlers.hh"
#include "def/serialize/UnitDefHandlers.hh"
#include <numeric>
namespace freeisle::state::serialize {
namespace {
class StatsLoader {
pub... |
a801e1251dac19c08cae3758e2c9af13250c2d6d | 04dc925359249447de99d3844fdc88d531288888 | /n ch.cpp | 139bd79ce29387ed3a626ee659dc143dc5a4d830 | [] | no_license | SamarNegm/Problem-Solving | 2e09bee084cc4d9e27867906a1f437bd8d02351d | 28114c1b38c49f6106b543a2cad01b386f31899a | refs/heads/master | 2022-09-12T13:55:18.072549 | 2020-05-30T00:21:56 | 2020-05-30T00:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 110 | cpp | n ch.cpp | #include<iostream>
using namespace std;
int main(){
char var;
int y;
y=var
cout<<++y;
return 0;
}
|
711c43c0c0ed7f55d8a8e923a8ca8be4ad183446 | 5489fc366c328f427111ff8590977ee4cfe61691 | /KaiboCapture/XiaozaiFilters/UploaderInputPins.cpp | d35a311900c5f47b7c92c9dcf2054f71a8373129 | [] | no_license | sharkka/xzcapture | 71e19b20473298cf695ee49bd9b984c20a5d9a4d | 9c743ebf445e94ac1b052901e1a29d760cdafef5 | refs/heads/master | 2020-12-31T06:32:35.700687 | 2016-04-19T07:30:08 | 2016-04-19T07:30:08 | 56,567,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,416 | cpp | UploaderInputPins.cpp | #include "stdafx.h"
#include "Config.h"
#include <commdlg.h>
#include "FilterGUIDs.h"
#include "dvdmedia.h"
#include <strsafe.h>
#include "Uploader.h"
#include "UploaderInputPins.h"
//
// Definition of CFMPEGInputPinBase
//
CFMPEGInputPinBase::CFMPEGInputPinBase(CXiaozaiPushFilterImp *pSUPeR,
__in_opt LP... |
3035e7e7da4bc00be5132956afb0b55cfd32bb0a | ce11dc0db50aa7bc27284c26678c54d92d0ebf3c | /Rectangle.h | 9d9c5c765c3af0d75bc911da25238b7515cae5cd | [] | no_license | longbefer/Radiosity | 33e4ff08c47ca766c9fb572b6625caea61680935 | b2d7a7f73d439f9335fd4cebf56c1d0323f70924 | refs/heads/master | 2023-06-04T04:00:23.314387 | 2021-06-17T00:09:19 | 2021-06-17T00:09:19 | 355,954,006 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,670 | h | Rectangle.h | #pragma once
#include "GameObject.h"
namespace User {
class Rectangle :
public GameObject
{
public:
Rectangle(const Point3d& point, const Vector3d& a, const Vector3d& b, const Normal& n) :normal(n) {
this->point[0] = point;
this->point[1] = point + a;
thi... |
2c7d9dc24de69e4ec683ef8c91628073a46744c8 | 0dd9cf13c4a9e5f28ae5f36e512e86de335c26b4 | /LeetCode/leetcode_assign-cookies.cpp | 7bd1f37bc4e567edad1c906204a6d9675ac36c21 | [] | no_license | yular/CC--InterviewProblem | 908dfd6d538ccd405863c27c65c78379e91b9fd3 | c271ea63eda29575a7ed4a0bce3c0ed6f2af1410 | refs/heads/master | 2021-07-18T11:03:07.525048 | 2021-07-05T16:17:43 | 2021-07-05T16:17:43 | 17,499,294 | 37 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 483 | cpp | leetcode_assign-cookies.cpp | /*
*
* Tag: Greedy
* Time: O(nlgn)
* Space: O(lgn)
*/
class Solution {
public:
int findContentChildren(vector<int>& g, vector<int>& s) {
if(g.size() == 0 || s.size() == 0)
return 0;
int ans = 0, gid = 0;
sort(g.begin(), g.end());
sort(s.begin(), s.end());
for(int ... |
46c63bf3218c84531ed8ee437183f564f167d9de | dfcb7c622e3738fbddce31ec2892ab26419f1823 | /PRACTICAS/skeleton/sistema_escaleras.h | d69443d003173b4123046ed6077420a99a417952 | [] | no_license | ramirezpulidojavier/INFORMATICA-GRAFICA | 51b64f2f626998e5d77d0037ae6e043fff49da08 | fc28b952790fc4b3e2dcb217832c2b36d6f57810 | refs/heads/main | 2023-06-14T16:39:13.855445 | 2021-07-10T18:39:01 | 2021-07-10T18:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | h | sistema_escaleras.h | #ifndef SISTEMA_ESCALERAS_H
#define SISTEMA_ESCALERAS_H
#include "escaleras.h"
/*****************************************************************************//**
* CLASE QUE CREA DOS ESCALERAS PARA SER ANIADIDAS LUEGO AL CUERPO DE LA FIGURA COMO COMPLEMENTO
*
* [USADA EN "CUERPO_EQUIPADO"]
************... |
c6ba444a17468cadbdaeb0175308fc2a33038554 | bc746d8869b523462532a3a3ff0668a03fedae9f | /client/include/audio/Audio.hpp | 10a28480967be6d71e1e1e2c403ff148d28a3847 | [] | no_license | Kilio22/Babel | 90f0684f048cd52fafa64ce12dedce3f30f5939a | 3175a65718acb17b576de3ae3966d0f7cb215bab | refs/heads/master | 2023-01-31T03:18:46.139354 | 2020-12-14T20:25:26 | 2020-12-14T20:25:26 | 309,203,350 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | hpp | Audio.hpp | /*
** EPITECH PROJECT, 2020
** B-CPP-500-REN-5-1-babel-kylian.balan
** File description:
** Sound
*/
#ifndef SOUND_HPP_
#define SOUND_HPP_
#include <QtCore/QMetaType>
#include <array>
#include <cstring>
#include <vector>
#include <cstdint>
namespace Babel::Client::Audio
{
const int SampleRate = 48000;
const ... |
6548d3dc2b8056c785df89eb719cf6f8bd1392ba | 02c5e5bd90f240c849188f1f6686401bb58a7e7a | /TP3/Calendar.cpp | d0ad3850117aa996040dc18db60f6a5621acb607 | [] | no_license | Elivrio/TP_LOA | 74bb4bbec84ca34addc5d2ff8b62d400bc094baf | ea102ff030e1d29a7ebe0845c1233a31ef0371dd | refs/heads/master | 2020-08-16T07:38:48.933282 | 2019-11-20T11:01:49 | 2019-11-20T11:01:49 | 215,475,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | Calendar.cpp | #include "Calendar.hpp"
Calendar::Calendar(Date d, Horloge t): today(d), time(t) {}
void Calendar::add_second()
{
if (time.increment_second())
{
today.increment_date();
}
}
void Calendar::add_hour()
{
if (time.increment_hour())
{
today.increment_date();
}
}
void Calendar::print_today() const
{
today.pri... |
87c54744f098fa572e045019cdcb0e5d5e8ab43f | 6d0f222221827d80dbee905fe796ce3cbdae8b3b | /arachnophobia/basket.h | 083627efbaeab17fd39752b1643811ff8bd78db2 | [] | no_license | othmanemouzhi/OpenGL | 2b63a990e3fe1f2fef63319418a233b5248fbcc5 | e5f0b34de8881eefa5e49ec3d32f90655e30933f | refs/heads/master | 2021-05-27T03:42:28.366977 | 2014-01-27T04:26:22 | 2014-01-27T04:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | h | basket.h | #ifndef BASKET_H_
#define BASKET_H_
class Basket {
public:
float w;
float cx, cy;
int clr;
Basket(float x, float y, float width,int c){
cx = x;
cy = y;
w = width;
clr = c;
}
void draw(){
//float x = cx, ... |
1befe4cf54faec065934f68be57ddce2edc3b2b9 | 8942194bdb3d741c3152ac723d714567e2017db7 | /ECG_Solution/src/Shader.cpp | ff646be500ca02e2a10493238f03aa9cd6a44fb8 | [] | no_license | linkhack/ECG_2018 | 9e7d96beab7ff067f54c7aa91c0857216bada914 | e1b132300169ea2c794fbbd7820c59c5f711c738 | refs/heads/master | 2020-04-23T11:17:14.104896 | 2019-02-17T14:25:35 | 2019-02-17T14:25:35 | 171,131,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,458 | cpp | Shader.cpp | #include "Shader.h"
void Shader::handleError(GLuint shaderId)
{
GLint maxLength = 0;
glGetShaderiv(shaderId, GL_INFO_LOG_LENGTH, &maxLength);
// The maxLength includes the NULL character
std::vector<GLchar> errorLog(maxLength);
glGetShaderInfoLog(shaderId, maxLength, &maxLength, &errorLog[0]);
// Exit with fai... |
ac862a5d9430c6b99a21f896b0424a33a83cbfe0 | f2fbdab67c4219b3dafaf2484b1080e9c7144405 | /src/MCP23017.cpp | 293675d99a05ccba80f596179a11d09cf778f760 | [
"MIT"
] | permissive | kevinl8890/arduino-mcp23017 | 07964d51f6be504f8cb39cb6aa27af7678224e0c | a6c5569e82fa23e423bf372d0bdddf933f5a5e5b | refs/heads/master | 2021-02-13T10:24:55.712183 | 2019-11-28T10:04:18 | 2019-11-28T10:04:18 | 244,687,953 | 0 | 1 | MIT | 2020-03-03T16:36:05 | 2020-03-03T16:36:04 | null | UTF-8 | C++ | false | false | 4,846 | cpp | MCP23017.cpp | #include "MCP23017.h"
MCP23017::MCP23017(uint8_t address, TwoWire& bus) {
_deviceAddr = address;
_bus = &bus;
}
MCP23017::~MCP23017() {}
void MCP23017::init()
{
//BANK = 0 : sequential register addresses
//MIRROR = 0 : use configureInterrupt
//SEQOP = 1 : sequential operation disabled, address ... |
a64b6e8464c539da3128446d80dbae72b7194b98 | 8fc3e8c55be3ed15b3b022715cfadd2b0e280022 | /test/src/gevm_mixed.cpp | 53622c71e81388f35f0ea895fa8472ca428f7794 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | xyuan/etl | 0bea41fd2af8a8e57b99b3e440b91fcb289dd194 | 8cc5b7eaf56f1d9f9f78d337d64339731ffe2a94 | refs/heads/master | 2022-12-07T07:10:07.126564 | 2020-09-04T16:30:58 | 2020-09-04T16:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,727 | cpp | gevm_mixed.cpp | //=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... |
6f6fe1ae98ce0134166f4e86f0faedc4a26e3f96 | 2d6fbc7e358bec4834aa269f905ee572a9fd441f | /C++/deque.cpp | 030e017534704aeb6eabba7136e4aa82f3684f46 | [] | no_license | rummansust/Code-Template | d9b7f840ab8960e2ca58ed056d9422b773226da0 | 7226cd13eaddeb6405818d64b6f1ba9eaea728ed | refs/heads/master | 2023-09-04T07:46:11.793444 | 2023-07-24T13:11:51 | 2023-07-24T13:11:51 | 115,458,280 | 0 | 0 | null | 2023-07-24T13:11:53 | 2017-12-26T22:10:03 | C++ | UTF-8 | C++ | false | false | 1,368 | cpp | deque.cpp | #include <cstdio>
#include <iostream>
#include <deque>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <cstdlib>
#include <cstring>
#include <string>
#include <ctime>
#include <sstream>
#include <algorithm>
#define clr(a,x) memset(a,x,sizeof(a));
using namespace std;
deq... |
1fb8f73fce4cb93540767a2d6c2563fe3f4ef017 | 306b5a47d33d0846ce40ceaf15e599913cfa23de | /You-Utils/option.h | 48e384151cd4f51fa6299d59b33105d160e81d02 | [
"MIT"
] | permissive | digawp/main | 52b30a583aff3230f791381920a2f489fc9b598c | f7def04b9c8f3ba50dbcc3a75f7cbed2c2b4d7d0 | refs/heads/master | 2020-11-30T01:44:48.056487 | 2014-11-10T15:33:22 | 2014-11-10T15:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | h | option.h | //@author A0097630B
#pragma once
#ifndef YOU_UTILS_OPTION_H_
#define YOU_UTILS_OPTION_H_
#include <boost/optional.hpp>
namespace You {
namespace Utils {
/// Implements an option type. This means that either the null value or an
/// actual value is contained within.
///
/// To test whether there is an actual value, c... |
2fbe7caa71b8cecd793be736ff5d7ce21e58fd66 | ee013236c2115b3cb92ca90aab3d5bf81362fec4 | /Server/Breeze/Shared/Net/ZmqEngine.cpp | 32e971e18de789115a4c4db61feac41846c7bf4d | [] | no_license | wuqunyong/Timeline | 58558d72f0f6371d1f904befe4656e61905b6291 | 6605a0868d4aef28a321f959ba52115b1ab5565d | refs/heads/master | 2020-12-30T10:50:03.716947 | 2014-02-17T09:45:11 | 2014-02-17T09:45:11 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,420 | cpp | ZmqEngine.cpp | /*
Copyright (c) 2007-2011 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Softw... |
a4cdad553bf527702a57a451733a18b90e089497 | d001abba19711d678f2ba09dfbd5c84357be6bb0 | /src/contest/aoj/1142/1142.comp.cpp | 4937a263569a9a4dccd891cb6b4aeedf3fa248c4 | [] | no_license | cormoran/CompetitiveProgramming | 89f8b3ceda97985d32b8cd91056b49abeb243e6f | fa0e479ab299f53984fa7541d088c10c447fb6e4 | refs/heads/master | 2020-04-17T19:59:49.724498 | 2020-03-28T15:46:26 | 2020-03-28T15:46:26 | 65,995,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | 1142.comp.cpp | #include<iostream>
#include<vector>
#include<cassert>
#include<string>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<tuple>
#include<numeric>
using namespace std;
typedef pair<int,int> pii;
typedef long long ll;
typedef ll in... |
79b80a552dffa1e7bab70f03f7299150e1bcc370 | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/VersionCompatibilityCheck/UNIX_VersionCompatibilityCheck_TRU64.hxx | 559f575cf4e013e213a1ff94600cbb40379aec55 | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | hxx | UNIX_VersionCompatibilityCheck_TRU64.hxx | #ifdef PEGASUS_OS_TRU64
#ifndef __UNIX_VERSIONCOMPATIBILITYCHECK_PRIVATE_H
#define __UNIX_VERSIONCOMPATIBILITYCHECK_PRIVATE_H
#endif
#endif
|
5bed774afda08ec6988b92c3dcbe8d4a1d60ed58 | efb67bb3558ed4476087b002f3575d43af57b183 | /app/dataHandler.cpp | c022cf7b7693037aa93639eb24e99a441d637940 | [
"MIT"
] | permissive | vijay4313/human-detection | 5823a8d5e3792ed19d7d6105865eef1a28a4fb13 | bdaeccf9d193fe51be71854a0aa2251ca67f69e9 | refs/heads/master | 2020-03-31T15:19:29.882964 | 2018-10-17T06:54:50 | 2018-10-17T06:54:50 | 152,332,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,197 | cpp | dataHandler.cpp | /**
* Copyright 2018 Venkatraman Narayanan
* @file dataHandler.cpp
* @author Venkatraman Narayanan (vijay4313)
* @date 10/14/2018
*
* @brief DataHandler class implementations
*
* @section DESCRIPTION
* Generates the class modules for
* DataHandler class necessary for importing
* LiDAR scans
*
... |
148de12702beb2457c4ad4da2c97722f14273cb1 | 820554c77b70088b25724824170478b4c60f33b3 | /Client/Client.cpp | 93b24d27a1369094a16d5c45cfc8a8be01af57a0 | [
"MIT"
] | permissive | pajon/build-age | ff169e0d3081d0a8c53509296c5d62c523d05f9c | 334ab7dfd19efea1b5f83eaaa5c60473307dba43 | refs/heads/master | 2020-05-17T12:03:55.396033 | 2014-10-31T14:53:03 | 2014-10-31T14:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | Client.cpp | //
// Game.cpp
// GAME
//
// Created by Patrik Štrba on 20.12.2012.
// Copyright (c) 2012 Patrik Štrba. All rights reserved.
//
#include "Client/Client.h"
#include <cstdio>
void Client::init() {
Debug::log("INIT");
// INIT WINDOW
WSFML *window = WSFML::instance();
// CREATE CONTROL
c... |
d65bb0da358f5590b8abab91903886816481a86b | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_1746_collectd-5.6.1.cpp | 6e0dd258bbe9dc9ce1c6a689d9cfc05f0f7dec60 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | collectd_repos_function_1746_collectd-5.6.1.cpp | void module_register (void)
{
fc_register_match ("empty_counter", (match_proc_t) {
.create = mec_create,
.destroy = mec_destroy,
.match = mec_match,
});
} |
2f6b320cc4a353c649de1ffdcb04ba712617dbd7 | 10f6b6044a8575fa465988cf3379030f1b3234b8 | /Cpp/interleaving.cpp | be3cea2f3683d33a9a9cb4a53d012384f472f5ae | [
"MIT"
] | permissive | Manuel4131/CandCppFT | c4902361d0d31e09c288f1a19bccc0036da9ae15 | e88a8312db4b5fea44b5225809a6ba8059289d4e | refs/heads/master | 2016-09-10T15:01:06.957309 | 2015-03-18T13:28:00 | 2015-03-18T13:28:00 | 14,777,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,640 | cpp | interleaving.cpp | #include <stdio.h>
#include <iostream>
#include <algorithm>
void printArr(int *intArr, int length);
void swap(int *a, int *b);
using namespace std;
int main()
{
int intArr[10]={-16,-1, -8, -6, -9, -3, -11, -12, -7, 14};
int oddNumbers= 10/2;
int count= 0;
int *oddPtr= intArr;
int *evenPtr= intArr + oddNumbers... |
37573a05f0bae42c4541e379a8852773fae6dd30 | a1af03e3ae36990a2959b052b26f2a216d62de39 | /Homework 3/autocompleter.cpp | 4f730217ef5aa2d08fcf02f688004998ca54a074 | [] | no_license | RaulCisne/CMPE-3330 | 68d3bbee5b14a989952c4428d34d605b2f9e4cdd | 5afba1a907723d2d2ac16552fbae69c40c98e100 | refs/heads/master | 2020-04-30T13:13:57.509591 | 2019-03-21T02:07:17 | 2019-03-21T02:07:17 | 176,850,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,960 | cpp | autocompleter.cpp |
#include "autocompleter.h"
#include <vector>
#include <string>
#include <cassert>
#include <fstream>
#include <iostream>
using namespace std;
Autocompleter::Autocompleter(string filename) {
ifstream f;
f.open(filename);
assert(f.is_open());
string line;
Entry A;
while (getline(f, line))
{
bool done... |
084d7ab4748e3acd8d5988902c04e42f946aea5c | 226ecdd15c183b01976b1ca6ec3ce3e8373bd754 | /src/throughput_vex_bidder.h | 2631e1e8f1a21a3fb89e89f1176b58789465163a | [
"CC0-1.0"
] | permissive | sga001/vex | af8237c6285133292a4eca13e021d5b362320eee | fb4e8890ebb307ce35f6d38ef0dc15f0bb046b54 | refs/heads/master | 2021-01-17T07:25:36.566521 | 2016-07-01T18:22:34 | 2016-07-01T18:22:34 | 38,913,447 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | h | throughput_vex_bidder.h | #ifndef _TPUT_VEX_BIDDER_H_
#define _TPUT_VEX_BIDDER_H_
#include "vex_bidder_server.h"
class throughput_vex_bidder : public vex_bidder_server {
public:
throughput_vex_bidder() {}
~throughput_vex_bidder() {}
virtual void do_a_write(strbuf data) {
// Do nothing.
}
void run_experiment(int iterations, in... |
ca0111252da10854b198a39c765488f03f5eb0e2 | 0f22604018ba9458bcef5e50fd9b9d1b25603904 | /test.h | 3387b7ad172e512587b483b2865ff240f8ba122a | [] | no_license | MuzaffarSoliyev/discrete_optimization | f86fae04aad60f042316767e1af8bf0c4315f212 | 4ab77c94aac2e46af26f811f44fa347aa01a4093 | refs/heads/master | 2022-12-06T01:58:29.795012 | 2020-08-23T14:55:23 | 2020-08-23T14:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | h | test.h | #pragma once
#include "object.h"
#include "Generator.h"
#include "task.h"
#include "TASK_OPTIMIZ.h"
#include <ctime>
#include <iostream>
#include <fstream>
class Test
{
clock_t begin, end;
double time_1, time_2;
ofstream f;
public:
Test() { f.open("out.txt"); f.clear(); }
~Test() { f.close(); }... |
9a64d26b6f937013e21db8a2da4dfa1322d4c6f9 | 6cfd73d4918ea055db30f6e3c3252e930234767a | /GameServer/MonsterItemMng.h | e4477140609fbd8839fd7e6c5ef0f1197085264d | [
"MIT"
] | permissive | neyma2379294/IGC.GameServer.SX | 138b1ff8019c9c2e83efebe75b8b2899be357255 | 44d77f47598b15c6adb297edba9035561c4fec74 | refs/heads/master | 2021-05-11T07:41:17.590766 | 2017-02-21T17:31:28 | 2017-02-21T17:31:28 | 118,029,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,691 | h | MonsterItemMng.h | #ifndef MONSTERITEMMNG_H
#define MONSTERITEMMNG_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "zzzitem.h"
#define MAX_ITEM_IN_MONSTER 1000
#define MAX_LEVEL_MONSTER 255
#define MAX_MAGIC_IN_MONSTER 100
struct __tagMONSTER_ITEM_DROP_PRATE_
{
int m_Level;
int m_MagicBook;
i... |
81952c60c79013e5c7a8f3a12846275144e54ff0 | 78bfdc8712b453afa5b062203bd8243606981b86 | /code/host/Peripherals.cpp | 74746c2c3c1dc04561856e84ee2b5a558a05343e | [] | no_license | idaohang/gpsrobot | 3e078fdf929d670bbe3ac9a9c57e1a3376ebb225 | f9d8d221e745e71257661ac9096b14fa80cba102 | refs/heads/master | 2020-04-01T17:35:11.708565 | 2011-06-16T21:36:04 | 2011-06-16T21:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,543 | cpp | Peripherals.cpp | #include "StdAfx.h"
#include "peripherals.h"
#include "MainFrm.h"
#include "TouchScreenDlg.h"
// Global Threads
UINT TestRxPeripheralDataThread(LPVOID param);
UINT RxPeripheralDataThread(LPVOID param);
// Global variables
CPeripherals::CPeripherals(void)
{
m_serialPortHandle = 0;
m_serialPortOpen = f... |
fee7ba55c4358e1841f57e88572a7c065f665128 | 2a83b4a5b6c48ddf685057a9c2c5e7f2040ba705 | /map-editor/Source/TileSelection.cpp | 711eaef4dab45b8fa08537670fda01f205883aa6 | [] | no_license | roneiberlezi/one-real | 6c7dee2cd30b531dfc4480a63db6785592258863 | e4e7ef17fac4ef858ddf68ee568b01bd6247017d | refs/heads/master | 2021-05-08T03:49:51.391577 | 2017-10-26T23:09:25 | 2017-10-26T23:09:25 | 108,337,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,153 | cpp | TileSelection.cpp | //
// TileSelection.cpp
// Map Editor
//
// Created by Ronei Berlezi on 27/09/14.
// Copyright (c) 2014 Ronei Berlezi. All rights reserved.
//
#include "TileSelection.h"
TileSelection::TileSelection(int tileWidth, int tileHeight, int maxXposition, int maxYposition){
maxPosition.x = maxXposition;
maxPositi... |
812663a5b32ddc98b50685cec8190b054bce05c6 | ca0d65a2519697f1fab4d0467271e032f72feed5 | /darts-x86/omp2cd-examples/benchmarks/CoMD-master-openmp/initAtoms.output.darts.h | 32927b32276e5e36bf2629697e8ffe85852c8f55 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jandres742/omp2cd | fca943f38e77ff9d32d066c6713e4556cf30fd54 | 15f64d65c41a1b9238af81fe2627c1b8e12ceca7 | refs/heads/master | 2020-12-24T11:09:41.811053 | 2017-06-28T19:23:40 | 2017-06-28T19:23:40 | 73,186,762 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,288 | h | initAtoms.output.darts.h | #ifndef _initAtoms_output_darts_h_
#define _initAtoms_output_darts_h_
#ifndef __DARTS_
#define __DARTS_
#endif
#include "constants.h"
#include "darts.h"
#include "decomposition.h"
#include "decomposition.output.darts.h"
#include "initAtoms.h"
#include "linkCells.h"
#include "linkCells.output.darts.h"
#include "memUtils... |
8d879901c35ffbf3c218dd1f8ec766e7d610d374 | 0d2d3bad66b920d0fd35f9a4aa44d5bc119eaf59 | /count/component.cpp | 18d69829c5f7c084496a2477d12d40b0342ad1ba | [
"MIT"
] | permissive | DINoMe-Project/cryptominisat | 3f58806e1729b854004c49542ce810b16d65e4c8 | ad7a4ab7ffdffa1d24041da288486d02cec1e212 | refs/heads/master | 2023-07-02T04:28:05.212402 | 2021-08-13T01:55:44 | 2021-08-13T01:55:44 | 286,884,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,502 | cpp | component.cpp | #include "count.h"
#include "cryptominisat5/cryptominisat.h"
#include "cryptominisat5/solvertypesmini.h"
#include "src/solver.h"
class DisjointSet { // to represent disjoint set
vector<int> parent;
public:
DisjointSet(int n) { parent.resize(n, -1); }
int Find(int l) { // Find the root of the set in which element... |
9010b71b239e535e1e619c2ff3f8797e40925bc4 | c7975d5da94018c3808232c768c1653a6f35f716 | /test/SemaTemplate/derived.cpp | 1fb9401c94c263d8f61a99b1aa447fda5a7e65e4 | [
"NCSA"
] | permissive | KhronosGroup/webcl-clang-dev | 66ad15a8f6513b2951379767e8ab47ea5d53d70c | 922c5e35f708caeb763132c14bf8dfc11b472a0a | refs/heads/master | 2023-08-31T21:29:45.730191 | 2013-09-09T09:12:03 | 2013-09-09T09:12:03 | 10,248,087 | 13 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | derived.cpp | // RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T> class vector2 {};
template<typename T> class vector : vector2<T> {};
template<typename T> void Foo2(vector2<const T*> V) {} // expected-note{{candidate template ignored: can't deduce a type for 'T' which would make 'const T' equal 'int'}}
template<type... |
039aa10a2bdf0808622a4497c0efce572cbfa813 | a0c4ed3070ddff4503acf0593e4722140ea68026 | /source/CAIROLE/STG/EXP/EXPPSI.CXX | 997b6c0edd99c64a3b5f50b88c9e23460ec428e7 | [] | no_license | cjacker/windows.xp.whistler | a88e464c820fbfafa64fbc66c7f359bbc43038d7 | 9f43e5fef59b44e47ba1da8c2b4197f8be4d4bc8 | refs/heads/master | 2022-12-10T06:47:33.086704 | 2020-09-19T15:06:48 | 2020-09-19T15:06:48 | 299,932,617 | 0 | 1 | null | 2020-09-30T13:43:42 | 2020-09-30T13:43:41 | null | UTF-8 | C++ | false | false | 10,536 | cxx | EXPPSI.CXX | //+--------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2000 - 2000.
//
// File: exppsi.cxx
//
// Contents: CExposedPropSetIter implementation
//
// History: 21-Dec-92 DrewB Created
//
//-----------------------------------... |
46318b54d99a5056e5632aa116802d75d8153f70 | c1a59a421bd71d39ee00ef7dc7a0a66496aefb6e | /fileHandler-Test.cpp | 358bec2f23994f06ee234fa71a88100344c9e5f5 | [] | no_license | cleanCoder1999/Diploma-Thesis-Project | 2348b4c7e1b2de380a3061b1594f05867a2cc7a0 | 28d60409642ffaef31301b51ff190e53afe8c657 | refs/heads/master | 2020-07-23T16:32:29.196624 | 2019-09-10T18:15:24 | 2019-09-10T18:15:24 | 207,330,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | cpp | fileHandler-Test.cpp | ////
//// Created by lucas on 10/11/18.
////
//
//#include <stdlib.h>
////#include <iostream>
////#include <fstream>
//
//
//#include <sstream>
//
//#include "fileHandler.h"
//#include "disc.h"
//
//// alles funktioniert, c++ is nais
//int main(void)
//{
// std::string filepath("/home/lucas/MMP-CrackTest/01_file");
... |
e4e3bfa164942ae7deb5f3fbb7a52303d89a3d90 | 9f84be51f9df8cab2a69b9b6651ff38bb774707f | /Fist.h | ffd792414e05d7e370258855e6df500ffec53aa3 | [] | no_license | borankux/rock_scissor_paper | b183ea8e22fe9713e84684c4abf1ceb446424902 | aa84cb22037fff80989017a2d991dc51a161f287 | refs/heads/master | 2020-10-01T06:50:41.245099 | 2019-12-12T15:57:37 | 2019-12-12T15:57:37 | 227,482,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | Fist.h | #include <iostream>
#include <stdio.h>
#ifndef ROCK_FIST_H
#define ROCK_FIST_H
class Fist {
public:
Fist();
static const int ROCK = 1;
static const int SCISSOR = 2;
static const int PAPER = 3;
static const int WIN = 1;
static const int LOSE = -1;
static const int DRAW = 0;
const ... |
7920abb2cc8cd35216e6bdccb07c3d6289e449d1 | 626816aa642f80120b2d39911f44f70a4bc6cec2 | /src/mainwindow.cpp | 19539999ee45557faacd4311deb25738f54ed1bd | [] | no_license | SaintRoge/Cows-Bulls | 0d5d2b6ef0700953d912a38831f1fb1c5c52a1cb | 75acc111aa03cceee9c0987fa5d65ea15779dbd7 | refs/heads/master | 2021-04-29T07:36:11.414150 | 2017-01-03T20:00:48 | 2017-01-03T20:00:48 | 77,948,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,738 | cpp | mainwindow.cpp |
#include "mainwindow.hpp"
MainWindow::MainWindow(sf::RenderWindow *window) {
m_window = window;
std::cout << "Menu created" << std::endl;
m_choiceClock.restart();
m_fullscreenClock.restart();
m_choiceTime = sf::Time(sf::seconds(0.2f));
m_fullscreenTime = sf::seconds(2.f);
m_menuArraySize = 2;
m_s... |
a3fbdded69208380a7da1d983aa9f586495e7d33 | f405e85ad76ac1ccdf001ae66b954efe96c6ad16 | /cpp/pointer.cpp | 37018e7daf53d78ebbed74edbdaff9e396a573c4 | [] | no_license | daiyanze/notes | fdea3a0a7667269e54d056033f9fdf44ff848d97 | eb9379d190546bfcaf79796320486cd5e1fd74f3 | refs/heads/master | 2021-01-21T10:19:49.664121 | 2017-07-03T08:32:15 | 2017-07-03T08:32:15 | 83,408,884 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | pointer.cpp | #include <string>
#include <iostream>
using namespace std;
int main(){
int sum = 5;
int* sumPtr = ∑
cout << "Address of the pointer is " << sumPtr << endl;
cout << "Data at memory address is " << *sumPtr << endl;
int badNums[5] = {4, 13, 4 ,1, 3};
int* numArrayPtr = badNums;
cout << "Addres... |
f04f42d41f16d9a02295bd01408bdb31d67ec6cc | df92ce6faadc533921e1a5b8438ebdc998353282 | /examples/RacingGame/imgui_sdl2_context.h | 99bb755f17763efdf1a22082a06eccf4419587ce | [
"MIT"
] | permissive | Peixinho/Pyros3D | 5bf00eb8dba80176941a4fe2cf112182707b95d9 | 59d1663c212fbb45cde3a87ac46f9ff40c6aaffa | refs/heads/master | 2022-04-30T22:48:11.057181 | 2022-04-26T16:31:37 | 2022-04-26T16:31:37 | 48,172,013 | 21 | 4 | MIT | 2021-05-30T22:26:36 | 2015-12-17T12:02:21 | C++ | UTF-8 | C++ | false | false | 499 | h | imgui_sdl2_context.h | #pragma once
#include "imgui/imgui.h"
#include "imgui/examples/imgui_impl_sdl.h"
#include "imgui/examples/imgui_impl_opengl3.h"
#include "../WindowManagers/SDL2/SDL2Context.h"
namespace p3d {
class ImGuiContext : public SDL2Context {
public:
ImGuiContext(
const uint32 width,
const uint32 height,
... |
79db436db2df1d217d7289b2c4ac725a2030d707 | 36fecc102668040132f024d43c90b632ab0fe99e | /Problem of The days/potd-q16/potd.cpp | c0aba0232070a17714fe7017dc540152597e45a2 | [] | no_license | YerongLi/CS225 | 705e995f48f45aabfb6b787db693367c46ffca5f | dc271b3801dabee6d6974453754036a1c71de011 | refs/heads/master | 2021-02-27T04:00:05.412906 | 2019-04-29T22:27:39 | 2019-04-29T22:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | potd.cpp | #include "potd.h"
#include <iostream>
void insertSorted(Node **head, Node *insert) {
// your code here!
if(*head==NULL)
{
*head=insert;
return;
}
else
{
Node *temp = *head;
if(insert->data_<temp->data_)
{
std::cout<<"pass 1\n";
*head=insert;
insert->next_=temp;
r... |
ec3a76b1f2a060d1d254ce55b166055c0d93e137 | a318d812ca99a90afba435313e68bd19865e8418 | /C++/RSAServer/RSAServer/server.cpp | 62e7fe14aaae952b01eaa6049a01d691e383747b | [] | no_license | Capprin/tech-crypto | a8349ee93d551c6fcd07e08bea89cea326b7dcf5 | 4bd8177e829306f348e73a2d28d03c91f98762eb | refs/heads/master | 2020-07-11T14:56:03.082672 | 2017-06-28T19:43:09 | 2017-06-28T19:43:09 | 94,271,660 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,179 | cpp | server.cpp | ///////////////////////////////////////////////////////////////////
// //
// RSAServer //
// //
// Author: Juice //
// //
// Description: An implementation of RSA on the server side //
// //
// Created 6/11/17 for iD ... |
9d4756f2c392b4fc2f19554617a84a42f72c6cb9 | 7c2571234ce5dda7a293327f69bc5affcbaa8195 | /CPPEleven/GetTime.cpp | 1c46c0d06627bb26da3ce1db57116072fe5c026a | [] | no_license | romanm777/C-11 | e7d730c5be4762dbcccd2e186eeb89d05aca88b4 | 39345fa48a3ff2e63822394c66a7bea6edbe3733 | refs/heads/master | 2021-01-24T18:39:00.532810 | 2017-05-04T07:32:16 | 2017-05-04T07:32:16 | 84,464,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | GetTime.cpp | #include "stdafx.h"
#include "GetTime.h"
__int64 get_time( )
{
//return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
time_t temp;
time( &temp );
return (__int64)temp;
}
MyTime get_time_ex( )
{
MyTime temp;
time( &temp.m_time );
temp.m_clo... |
2f8a37b095673f1ac88880b3e496d6c16436a52e | d309414f349f369c07a48cd39a4549af665ce2ec | /project1/main.cpp | 14e98151f171019c86e1c7bb15af7f98482660bc | [] | no_license | DevinBrewer/cosc-2030 | 49289ac9c63e63e94ebcde1d039dc9a1ebe304e6 | 93b2071c86349c458823f81c73d35b25975533e0 | refs/heads/master | 2020-04-06T20:40:08.973637 | 2018-12-10T19:44:35 | 2018-12-10T19:44:35 | 157,779,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | cpp | main.cpp |
/*
Date: 10/24/18
Name: Devin Brewer
Desc: COSC_2030 Project #1; Blood Sugar
main.cpp
This file will contain the main function and handle all subprograms
*/
// Add the necessary imports
#include <string>
// Include the day class
#include "week.h"
int main() {
// Define the main variables to be us... |
2f68f151a134efe9e8126ef82e3430f56024d025 | fa2c1dbe3e20b32f30de0279529031bd278776b6 | /codechef/SnackDown2019/addition.cpp | 4865541f784fcae0d4b1d1bd71672be7cda48886 | [] | no_license | wxnn08/RepLord | f36440b5a3592a56dc6ded2a3eb9dee055d9b83b | 2981c4722cdd199bf75fcce37d729e0770740c54 | refs/heads/master | 2021-06-05T05:31:33.349754 | 2021-01-30T19:54:04 | 2021-01-30T19:54:04 | 124,475,433 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | addition.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define eb emplace_back
#define mk make_pair
#define fi first
#define sec second
#define fori(i, a, b) for(int i = int(a); i < int(b); i++)
#define cc(x) cout << #x << " = " << x << endl
#define ok cout << "ok" << endl
typedef pair<int,int> ii;
typed... |
87d236b80572e66d995f7c0fcf9e4f5d3bc997fe | f90ecdb621751de13525c2f8077ed08a952bfe96 | /age_elseif.cpp | 5c421fa0669219724b74fde8018c9415279a06ef | [] | no_license | JupiterJack/age_elseif-statement | b3fbfcb427557485479e3e1ae5979fac24194fa9 | 9cc8bc88d4dee7d06137e79bc19994f28b3ae31d | refs/heads/main | 2023-06-12T13:53:59.101225 | 2021-07-05T21:25:16 | 2021-07-05T21:25:16 | 383,267,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | age_elseif.cpp | #include <iostream>
int main()
{
int earl;
int tyler;
std::cout << "Earl, how old are you? \n";
std::cin >> earl;
std::cout << "Tyler, how old are you? \n";
std::cin >> tyler;
if ( earl < tyler && ( 100 >= earl && 100 >= tyler ) )
{
std::cout << " I guess tyler is the eldest. " << std::endl;
}
else if (... |
ec265fd7d9050f1c3095079685937e0c0b772c88 | 89520498a8f661cfff73d43843b95a468a5e56b5 | /Projects/!includes/Stack/stack.h | 7bd1c46b73c6ea2c90d69c6e28d8fa082abb5f50 | [
"MIT"
] | permissive | Yonas-A/CS-003A | 0e7a47c4a71ec815e9a0bd16a2aac621c580cad9 | e3c1da7d9c6f8b3e5695741156fcfa22ec6390f0 | refs/heads/main | 2023-05-31T16:35:56.146193 | 2021-06-18T22:29:13 | 2021-06-18T22:29:13 | 378,275,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,772 | h | stack.h | #ifndef STACK_H
#define STACK_H
#include "../../!includes/Linked_List/linked_list.h"
template <typename T>
class Stack
{
public:
class Iterator {
public:
friend class Stack;
Iterator( node<T>* p = nullptr) : _ptr( p) { } //default CTOR
T& operator *( ) { ... |
c5fcb8250e95551b0f7cf9d5f4cb8aa0d2c03cfd | e45f197f56ec6d81728e7aa857a536db9220f9e4 | /SkProjects/GNSS_Viewer_V2/WaitReadLog.cpp | f46f3cb147d68201640feac39a80bba3983820ea | [] | no_license | asion0/AsionGitCodes | 82bfbaf5bf14eebeb375f3d83ecbcee5c45989ad | 7f493fb2a67e053387026a5652fc28f53e76f73c | refs/heads/master | 2016-09-10T20:12:25.665716 | 2013-12-31T09:11:47 | 2013-12-31T09:11:47 | 15,427,503 | 1 | 2 | null | null | null | null | BIG5 | C++ | false | false | 1,373 | cpp | WaitReadLog.cpp | // WaitReadLog.cpp : 實作檔
//
#include "stdafx.h"
#include "GPS.h"
#include "WaitReadLog.h"
#include "GPSDlg.h"
extern HANDLE waitlog;
// CWaitReadLog 對話方塊
IMPLEMENT_DYNAMIC(CWaitReadLog, CDialog)
CWaitReadLog::CWaitReadLog(CWnd* pParent /*=NULL*/)
: CDialog(IDD_WAITLOGREAD, pParent)
{
}
CWaitReadLog::~CWaitReadLog... |
912514bc8531899b5a7dc4622b3965828e3c4c10 | 88f244733be35ba4570ae03cbab6bf83872e6449 | /cppcrypto/cast6.h | 2fc7decf302362b8f6dceeadd8c413564fc76674 | [
"BSD-3-Clause",
"MIT",
"ISC",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | crashdemons-external/kerukuro-cppcrypto | 7577d97260a3c6210c3e55194eb0dfa961fb946b | 090d0e97280c0c34267ab50b72a2ffa5b991110b | refs/heads/main | 2023-03-15T01:13:17.793068 | 2021-03-03T00:34:29 | 2021-03-03T00:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,816 | h | cast6.h | /*
This code is written by kerukuro for cppcrypto library (http://cppcrypto.sourceforge.net/)
and released into public domain.
*/
#ifndef CPPCRYPTO_CAST6_H
#define CPPCRYPTO_CAST6_H
#include <stdint.h>
#include "block_cipher.h"
namespace cppcrypto
{
class cast6_256 : public block_cipher
{
public:
~cast6_256();... |
91a93ba585b4df679a2e2472c4a02bbecaafddb1 | b2de68de2f0e86e8bbbebbf48fed1dd574b1d231 | /jnitest/opcvl/op006.h | 80183ea04065509484010d071f28597de680d7e5 | [
"Apache-2.0"
] | permissive | wenyz/qwert | cce7349210a7ea46508545741dde1a6b0ae08545 | d659437d3fb66eaa00a705e8f80b860a66e17fc0 | refs/heads/master | 2020-03-11T02:15:57.498136 | 2019-04-29T16:00:17 | 2019-04-29T16:00:17 | 129,714,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 137 | h | op006.h | //
// Created by wenyz on 2018/12/29.
//
#ifndef JNITEST_OP006_H
#define JNITEST_OP006_H
class op006 {
};
#endif //JNITEST_OP006_H
|
6d0bd9171c0e7cab61c6b171f967a1433c09f707 | b5da2a0f570edc8c039ebbc3cb3f0711c854f162 | /VonFreyData2CloudModule/connectNetwork.ino | 0a9aac9a215588610c2653895b1f4e0441e96d72 | [] | no_license | iojoaomarcos/VonFreyData2CloudModule | 81af2b915ef231168b1ca671879d053ddf20cb1c | e825a7ce6153230c6251240dc08db6e916cef57c | refs/heads/master | 2022-11-08T11:08:20.845421 | 2020-06-20T14:22:56 | 2020-06-20T14:22:56 | 230,899,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | ino | connectNetwork.ino | void connectNetwork(){
//inicializacao do WifiManager e seus ajustes
lcd.clear();
lcd.print("AP Mode");
lcd.setCursor(0, 1);
lcd.print("Choose network");
WiFiManager wifiManager;
wifiManager.autoConnect("VonFreyModule SETUP");
//O ESP estara preso ate estar conectado, logo apos essa etapa:
Serial... |
dd1a7258a9602cf6e9d823adbb2cde6a9edf4bad | be84e7550ab393ee37055db99c09c9e76ce65894 | /include/imgproc/undistort.h | a3a53d4a1d7dd877dffb6ce14c6c5c924093d2a8 | [] | no_license | adas-eye/project5561 | d737916060f4822dc967f473147f4fe5737f5649 | 075f30340086f8ca89e430584bd06c50e7e654f3 | refs/heads/master | 2021-06-16T10:46:06.628900 | 2017-05-05T22:51:24 | 2017-05-05T22:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | undistort.h | #ifndef EYEMARS_IMGPROC_UNDISTORT_H_
#define EYEMARS_IMGPROC_UNDISTORT_H_
//#include <demo-parameters/parameters.h>
#include <types.h>
#include <geometry/camera-models.h>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
//#include <demo-parameters/parameters.h>
namespace EyeMARS {
t... |
7bab9ea5719440152473b6d8f6dd56c46a19250f | 3fe663f171af9c5b8d5fac984a201555f77e0bc6 | /Chili Framework old/Engine/Game.h | a4c6e4eab070d6a5783c918171f2f4990b3ab487 | [] | no_license | Anarghya321/Game-Development | c80a1f85427e29698efeb6f1ab966ff92eb71b3c | 56fa721ca0bbd26eeca6083c807c038cdfc1ab88 | refs/heads/master | 2021-07-15T18:18:14.256359 | 2017-10-22T15:03:01 | 2017-10-22T15:03:01 | 107,875,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,322 | h | Game.h | /******************************************************************************************
* Chili DirectX Framework Version 16.07.20 *
* Game.h *
* Copyright 2016 PlanetChili.net <http://www.planetchili.net> *
* *
* This file is part of The Chili ... |
5081177ffe4cd485d2b5431ccda71fc43ad6bef5 | 61d3d7864aadf9686bf8b67a6a52c6ce6218a32e | /C. Anton and Making Potions.cpp | 9e739330e6a65d843b0dda0ebf12437ab4289203 | [] | no_license | jonckjunior/Codeforce | c47dc45f0cfa7217d7ab713a39a6be107b7bc3ec | b49a6914fc57bbdd947f15906926d501672cd93e | refs/heads/master | 2021-09-11T23:31:58.115876 | 2018-04-13T01:23:08 | 2018-04-13T01:23:08 | 114,308,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,125 | cpp | C. Anton and Making Potions.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
vector<ll> fst, snd, numsnd, numfst;
int main() {
ll n, m, k; cin >> n >> m >> k;
ll x, s; cin >> x >> s;
for(ll i = 0; i < m; i++){
ll x; cin >> x;
numfst.push_back(x);
}
for(ll i = 0; i < m; i++){
... |
8aaa1b8e5bb93e4ce5153fee95d4428958eabf1b | 8c851bc72195ba16c2d868ed02fb3dfa347ddf01 | /Data Structures/21-6/djset.h | 1a07a9fe7386ef930c16cd99df0b945009feeb57 | [] | no_license | WilliamSampson44444/My-Projects | eab2ecfbaa70f22eb042f0746d8e8c0cd4de9604 | 8a5f74eeecac335976d2d68639512e2f430ab76b | refs/heads/master | 2020-04-03T23:46:46.246207 | 2018-10-31T22:48:32 | 2018-10-31T22:48:32 | 155,630,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | h | djset.h | /*
William F. Sampson
williamsampson44444@gmail.com
wsampson
Assignment 6: Amazing Sets
4/06/17
djset.h
djset class header file for Amazing Sets program.
Status: Complete
*/
#ifndef DJSET_H
#define DJSET_H
class djset{
public:
djset(){};//default constructor, to get around weird compiler stuff
dj... |
8fa371dc50cf852092b80571644f7d9f7ecc4ea5 | e49f7d1ed9101be4a31c35176e1c04d04a4c7ff3 | /main.cpp | d2e1672561c669d8d98770139087a909c5bdacab | [] | no_license | Peterb7/audio-video | e05011d7d2cac6af86cf3c657d01a376536de776 | e27fc71f1016da94192341a2339dbc7f2eb0f935 | refs/heads/master | 2020-12-25T14:33:05.504976 | 2016-08-24T21:28:50 | 2016-08-24T21:28:50 | 66,482,073 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 20,995 | cpp | main.cpp | //Wersja w której klatkę pobieramy z pliku
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/opencv.hpp>
#include <zmq.hpp>
#include <string>
#include <stdio.h>
#include <time.h>
#includ... |
924555f5106cecbcbd40d67c5e2acfda9ad2a7fb | 9259349cf885afa5c52908d9fdc60a06787c1688 | /Lex/Lex/NFA.cpp | 84e2cd3780c8e2d14a774a38166f6e2945793339 | [] | no_license | GreySky0012/Lex | b752de7b25ca4298a5fcbdb7cf6d3fbc58f5bbb8 | b78a396d69889980abf4984895f1c66aca880e58 | refs/heads/master | 2021-01-01T15:52:06.128346 | 2017-07-19T13:04:28 | 2017-07-19T13:04:28 | 97,716,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,109 | cpp | NFA.cpp | #include "NFA.h"
NFA::NFA(string RE,string action) :_RE(RE)
{
_start = new Statement(0);
Statement* end = new Statement(1, action);
_states.push_back(_start);
_states.push_back(end);
_statementNum += 2;
structRE(RE, _start, end);
}
NFA::NFA()
{
_start = new Statement(0);
_states.push_back(_start);
_statement... |
bba02fe65383d61ffc8fd52fe7ed20cd6b56367f | 92fd7a0f2d520f8fd8c1287a32a00d525046e98e | /filechooser.h | 4055ea878d24958765cbd673c59f26e51dad91a0 | [] | no_license | backarrowmecha/wisim | 3b1b048c829df6963cd1f27a1eea18e5b6a875fb | 282409a7fe9d35280a2648eb93d08f72d59d808e | refs/heads/master | 2022-01-24T11:05:01.099192 | 2019-08-14T06:34:14 | 2019-08-14T06:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | filechooser.h | #ifndef FILECHOOSER_H
#define FILECHOOSER_H
#include <qwidget.h>
class QLineEdit;
class QPushButton;
class Q3FileDialog;
class FileChooser : public QWidget
{
Q_OBJECT
public:
FileChooser( QWidget *parent, const char *name, int mode);
~FileChooser();
QString fileName() const;
QLineEdit *lineEd... |
bb35ffa88906cf4c748e7116863f8cb6715f8719 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /libPr3/logixng/stringactionmemoryxml.h | 9b97fb95e65778ad72b7e944bbdb8be2c8d0cb72 | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 647 | h | stringactionmemoryxml.h | #ifndef STRINGACTIONMEMORYXML_H
#define STRINGACTIONMEMORYXML_H
#include <abstractnamedbeanmanagerconfigxml.h>
class StringActionMemoryXml : public AbstractNamedBeanManagerConfigXML
{
Q_OBJECT
public:
Q_INVOKABLE explicit StringActionMemoryXml(QObject *parent = nullptr);
~StringActionMemoryXml() {}
StringAct... |
7a004dbbc40cde3d0380862f2065e769eaca2224 | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /GeeksForGeeks/DS/12. String/5.find-maximum-depth-nested-parenthesis-string.cpp | df74473d8707fec0eff331d52b2ac17843a32f3d | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | C++ | false | false | 519 | cpp | 5.find-maximum-depth-nested-parenthesis-string.cpp | // http://www.geeksforgeeks.org/find-maximum-depth-nested-parenthesis-string
#include <bits/stdc++.h>
using namespace std;
typedef stack<char> sc;
int maxDepth(string str){
sc s;
int M = 0;
for(int i=0; i<str.length(); i++){
if(str[i] == '('){
s.push('(');
}
else if(str[i] == ')'){
if(M < s.size())
... |
f388620e799fdadf70c5a43fe90bb10ad525e4b0 | 6f5a32909052014aca0736ac0a3a93b7b4dec284 | /codigo/gsm.ino | 6c3ca3fb9076077308030ff6a791a0090302e933 | [] | no_license | ProbBC/sensor-de-temperatura | 449a5ea981f3d68edefd7febff5041d0f6bceff5 | 0dbbb9788c6f864b6e7f85238113945dca566f29 | refs/heads/master | 2023-03-08T07:03:57.217712 | 2019-12-13T13:15:24 | 2019-12-13T13:15:24 | 342,268,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | ino | gsm.ino | #include <Sim800L.h>
#include <SoftwareSerial.h>
#define RX 10
#define TX 11
Sim800L GSM(RX, TX);
/*
* In alternative:
* Sim800L GSM; // Use default pinout
* Sim800L GSM(RX, TX, RESET);
* Sim800L GSM(RX, TX, RESET, LED);
*/
char* text;
char* number;
bool error;
St... |
e24dfaf492c6564b088278561b5c08603c38259f | 51e5dbdb9d075ffce5da0e4728febcc9fdd83ad0 | /Visitor/C++/Point.hpp | 7b61614758f2081d999dbc6b1b0a43a50a4e2472 | [
"Apache-2.0"
] | permissive | Ghabriel/DesignPatterns | e4f1ff95b20796f8039fa0a269601a59cb31e353 | d2a1933e3c75e4f48d0dae52795018012e17d22b | refs/heads/master | 2021-01-20T00:30:17.148565 | 2017-04-23T18:25:46 | 2017-04-23T18:25:46 | 89,142,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | hpp | Point.hpp | #ifndef POINT_HPP
#define POINT_HPP
#include <ostream>
#include "DrawableShape.hpp"
#include "Renderer.hpp"
class Point : public DrawableShape {
friend std::ostream& operator<<(std::ostream&, const Point&);
public:
Point(double x, double y) : x(x), y(y) {}
private:
double x;
double y;
void onD... |
22492b8cf5c9f27bf126870dc6155e33e41f5b60 | 79e672e1718b5a027dfb0a4ae946c0a5fbb35431 | /DogBreads/CDogWithoutMarks.cpp | 0242332af3f8ea2175f87bca896ffbabd15276bb | [] | no_license | Sotiraqi/OOP-Projects | c6a27b1faaf8463c2507a9ba297d936fc52e8709 | 7de808db3367d8d9ab3b6832255a29c66966d983 | refs/heads/main | 2023-03-17T20:35:03.909606 | 2021-03-24T14:05:43 | 2021-03-24T14:05:43 | 351,093,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | CDogWithoutMarks.cpp | #include "CDogWithoutMarks.h"
void CDogWithoutMarks::read()
{
cout << "Without marks:" << endl;
CDog::read();
}
void CDogWithoutMarks::print()
{
CDog::print();
}
|
6c2cdb4636bd0eae69f8ff450d0fe2495ca8fb7a | 175ab05cbd5db7d21d627197fcdcbea953c18103 | /firmware/include/ledDriver.h | 58d67446b49750d05865f23d74bf2c2bf7f655b9 | [
"MIT"
] | permissive | xiaju/micromouse-2018 | 65f93c979a7bfc035b5c27dc75e82d8a9093434a | a964f2b03ddf00e1839590c3788c098dc5d0e00a | refs/heads/master | 2021-04-06T20:05:31.739140 | 2018-03-10T18:52:21 | 2018-03-10T18:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,553 | h | ledDriver.h | #ifndef LED_DRIVER_H
#define LED_DRIVER_H
#include "i2cDevice.h"
namespace micromouse {
#define LED_DRIVER_DEFAULT_ADDRESS 0x40
// Registers
// Note that for all registers ending in "_L" are those representing a low byte
// and the high byte is at the next address (i.e., <reg>_L+1)
#define LED_DRIVER_MODE1 0x00
... |
4cfe1f2f9f12227273572286197e0678ade569b7 | e8e7d5ef312e796a714d6e5d799046d48b34b510 | /sistemski_softver/emulator/cpu.h | e45c2ff8e0d950d12d1d93943c9ecb5f798ec686 | [
"MIT"
] | permissive | cvetkovic/assembler-emulator | 7f05699fe45f4119eef1c78f6abfcc96e0796289 | 2be1e19557cf5f343fa4452a32764e767bd2500e | refs/heads/master | 2022-04-15T02:21:36.721238 | 2020-04-11T19:02:57 | 2020-04-11T19:02:57 | 185,253,884 | 2 | 0 | null | 2020-04-11T19:02:58 | 2019-05-06T18:53:14 | C++ | UTF-8 | C++ | false | false | 4,734 | h | cpu.h | #ifndef _CPU_EMULATOR_H
#define _CPU_EMULATOR_H
#include <cstdint>
#include <map>
#include <mutex>
#include <queue>
#include <thread>
#include "../common/structures.h"
#include "executable.h"
#include "interrupt.h"
#include "linker.h"
#define FLAG_Z 0x0001
#define FLAG_O 0x0002
#define FLAG_C 0x0004
#define FLAG_N 0x... |
ad6920ef634752a858dc826b63d70d6b24502528 | e18f125f6281c24ad302ef522f4092ca846d75e3 | /bigcube-c++/BigCube.h | 36b172d5bc76f542e5d36034a89f14e59f4c7553 | [] | no_license | syed/tc | 0ac16cf95ee77bf2cfd873abe88cbe230ce5633c | 6bf1ef0ec865e3eb5fcd33c9fef12ade2fc00bf4 | refs/heads/master | 2020-04-08T06:19:39.349515 | 2013-12-29T07:17:52 | 2013-12-29T07:17:52 | 3,890,080 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | h | BigCube.h | #include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cstdio>
#include <cmath>
using namespace std;
#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define FORIT(i,c) for (typeof((c).begin()) i = (c).begin();... |
c87d45cb0a7efbc691e428b5831b9ef1afdeb95b | afd95ee6e04ec08e32c9d85aa66f16bb0972105e | /window/draw.cpp | e9ea2c0aeb68b8d48e81c2750d65b32ee83cc43a | [] | no_license | doyoubi/2d-practise | df9cda1e0f71c9a971338bb2ea3a9bc07e11d6fc | a032236cb0988cc768674aa95d61c22e38ec4486 | refs/heads/master | 2021-01-01T19:42:22.245850 | 2013-08-11T15:26:52 | 2013-08-11T15:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,463 | cpp | draw.cpp | #include"draw.h"
#include"direct3D.h"
using _direct3D::drawpixel;
namespace _draw{
inline int DrawPoint(int x, int y, DWORD color)
{
extern D3DLOCKED_RECT lockedRect;
//检查所画的点有没有越界
if(x>=WNDWIDTH || y>=WNDHEIGHT)
return 0;
DWORD* pBits=(DWORD*)lockedRec... |
faee025c08fd7194b118a4cc7341d809a726bde0 | 2440be65b739980c568cd67f592dd4cad6643002 | /INDIGO/protobuf/src/google/protobuf/steamdatagram_messages.pb.h | d96a483210aec9954195afae4c5cd72336caa55c | [
"MIT"
] | permissive | supernoodled/smefs-Indigo-Remastered | f64dc62a6a17cb82dd23cd5e1b9f0867f4c9a4a6 | 2521ffd4fb87e51ffb32f556e50e8722674b1e06 | refs/heads/master | 2021-08-20T05:01:16.601303 | 2021-07-24T00:38:14 | 2021-07-24T00:38:14 | 158,638,733 | 7 | 2 | MIT | 2020-10-19T07:47:17 | 2018-11-22T03:40:37 | C++ | UTF-8 | C++ | false | true | 331,092 | h | steamdatagram_messages.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: steamdatagram_messages.proto
#ifndef PROTOBUF_steamdatagram_5fmessages_2eproto__INCLUDED
#define PROTOBUF_steamdatagram_5fmessages_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 200500... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.