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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f18213398d9c5aff3ad909c2445aeb79c71cc25 | 65ac6e2f4d52c44a6bf704df399c3f8468d75830 | /LabelStyleSql/labelstylesql.cpp | ef1db68bab1c08765d31259a94c576df4c5bdf20 | [] | no_license | xcyi2017/qt5 | 1d2980c8db1bf2c75ecdbc2799e92bf45b985ecb | bbc474e495a0ee14437384adf717aca4dbdc19a0 | refs/heads/master | 2023-01-19T19:42:34.489325 | 2020-11-29T02:28:28 | 2020-11-29T02:28:28 | 269,871,390 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,766 | cpp | labelstylesql.cpp | #include "labelstylesql.h"
#include "ui_labelstylesql.h"
#include <QSqlQuery>
#include <QSqlError>
#include <QDebug>
#include <QSqlRecord>
LabelStyleSql::LabelStyleSql(QWidget *parent)
: QWidget(parent)
, ui(new Ui::LabelStyleSql)
{
ui->setupUi(this);
}
LabelStyleSql::~LabelStyleSql()
{
delete ui;
}
... |
c4bf8d82b8bbaef16f5df4a3971a2c756a67fea9 | 6eb325ddd37870b4b7c283acbdd94fbb84df822d | /class/uva_10363.cpp | 125dcbc21fe94d5f812bae2252aef93568f5047c | [] | no_license | omerb01/CompetitiveProgramming | f1ea36d5e4644113bc3ed4ff57a1125d3d4c89f5 | 12ee726d5ca1651352aa026e0dc93c4c98e18a65 | refs/heads/master | 2020-05-02T08:34:07.823836 | 2019-07-06T07:53:24 | 2019-07-06T07:53:24 | 177,846,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,170 | cpp | uva_10363.cpp | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <numeric>
using namespace std;
typedef ... |
b4977c0a88823de81c48f46a8802fd0966c9dc7c | 7f77dd43595e3ff67d3f0d8c3cdba6fee0d5e5a7 | /House Robber/rober.cpp | 4cda167eb4257bd4b589e60add8ba0a0d7fbfa19 | [] | no_license | Algotice/LeetCode | e7e7d7d1607151ddc85cec3233ce787d8117bc1d | e83972450b59b131a73f7e8a8e80128ead200050 | refs/heads/master | 2020-04-01T05:46:38.894321 | 2015-06-12T13:19:34 | 2015-06-12T13:19:34 | 36,042,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | cpp | rober.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int rob(vector<int>& nums) {
int n = nums.size();
if (n == 0){
return 0;
}
if (n == 1){
return nums[0];
}
if (n == 2){
return nums[0] > nums[1] ? nums[0] : nums[1];
}
vector<int> f (n, 0);
f[0] = nums[0]... |
b8baeea7a7b6d6e3742e37553cd428cd01353013 | cdac59811ab655589d80c55067677a89d58bdd0d | /Voice Comparison/Core/src/TestExtraction/Pitch Test.cpp | 880c75a1be7b19ea38880fe2af26a3cef6e3c370 | [] | no_license | hungcaovu/Speech-Detection-with-an-Isolated-Word-Recognizer-using-HMM-and-GMM | 722c7a46930dd705857d7f6a33bd2424768cf3e2 | 4afca95a20c8cd74127855f56974ad8331b68b1f | refs/heads/master | 2020-05-30T04:41:52.792792 | 2020-01-16T07:58:03 | 2020-01-16T07:58:03 | 189,541,346 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,294 | cpp | Pitch Test.cpp |
#pragma warning(disable : 4996)
#include <Util\LogUtil.h>
#include <Extraction\Pitch.h>
using namespace std;
/*
int redirect_stderr(char *filename)
{
int fid = -1;
PRINT("Redirecting stderr to %s\n", filename);
fflush(stdout);
fid = _sopen(filename, O_RDWR | O_TRUNC | O_CREAT, _SH_DENYNO, _S_IWRITE);
if (fid... |
a8aa18bd143c5368be7e6e3f9ce7d668f334cf40 | de3f41614eb625aed918432e52878b41a5b71ec2 | /lib/Target/ELMO/InstPrinter/ELMOInstPrinter.cpp | 1b8484ee508dc5708857bd3242e95862e6fd4905 | [
"NCSA"
] | permissive | cpu-experiment-2018-2/llvm | c9129da35894493286ae85e5e323df009bbc31a0 | c470f57c64b063650c5a3eccde6405381ec80007 | refs/heads/master | 2020-04-09T16:42:13.750335 | 2019-11-01T12:19:45 | 2019-11-01T12:19:45 | 160,460,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | ELMOInstPrinter.cpp |
#include "ELMO.h"
#include "ELMOInstPrinter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/raw_ostream.h"
#define DEBUG_TYPE "asm-printer"
using namespace llvm;
#define GET_INSTRU... |
42c0a93d08ad7eac842b84f30dc9bd8678b0f3f2 | b56a077e1acd71f501b800dc18d82587c51cd657 | /software/libraries/u8g_teensy/u8g_teensy.cpp | 9fe264798768c80887ce5038991c007bf675ef7f | [] | no_license | c1t1zen1/O_C | ce3de5d5feb9542ece2a9dbc8b5e49f3f94ef742 | fa69ef92224159373c9823acc2ee49c0da4493a6 | refs/heads/master | 2020-12-25T02:40:05.917765 | 2016-01-05T10:52:59 | 2016-01-05T10:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,648 | cpp | u8g_teensy.cpp | #include <Arduino.h>
#include "u8glib.h"
#include <spi4teensy3.h>
#define _DC 6
#define _RST 7
#define _CS 8
uint8_t u8g_com_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr)
{
switch(msg)
{
case U8G_COM_MSG_STOP:
//STOP THE DEVICE
break;
case U8G_COM_MSG_INIT:
//INIT HARDWAR... |
e5eac310b9ca88b7e0642dcfb213863c0003851f | 6301e2e3669b5f194253e099527212cfe5e4fc92 | /leetcode/partition-list/partition-list.cpp | 2b16c1c72d56d4db11380682b20856d648ce234e | [] | no_license | jiongdu/Algorithm | 253ff365d812aefdd12f25970530775cb3b75e4d | 14e58057da7439d9818cfb9547d4b5713c1e1e26 | refs/heads/master | 2021-06-05T10:18:01.631658 | 2021-05-02T06:58:54 | 2021-05-02T06:58:54 | 62,377,889 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cpp | partition-list.cpp | /**************************************
* @author dujiong
* @date 2016.10.25
* @version V0.1
**************************************/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solutio... |
896cf755d9b11716e3839c4f8494e53db4549125 | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /DboClient/Client/Parser/DumpTargetConsole.h | 290225ababdb6b60de1dd995c126a47b197c9b0e | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | ISO-8859-7 | C++ | false | false | 819 | h | DumpTargetConsole.h | /*****************************************************************************
*
* File : DumpTargetConsole.h
* Author : HyungSuk, Jang
* Copyright : (ΑΦ)NTL
* Date : 2005. 12. 26
* Abstract : DBO dump target console
*****************************************************************************
* Desc ... |
a3fa710e23b9fe3ef3ba71510c45abb6c9474e4b | c32ee8ade268240a8064e9b8efdbebfbaa46ddfa | /Libraries/m2sdk/ue/sys/render/device/I_DeviceIndexBuffer.h | 0e03b8bd54b4e1e1cd8de2a89370cf106f9d78f1 | [] | no_license | hopk1nz/maf2mp | 6f65bd4f8114fdeb42f9407a4d158ad97f8d1789 | 814cab57dc713d9ff791dfb2a2abeb6af0e2f5a8 | refs/heads/master | 2021-03-12T23:56:24.336057 | 2015-08-22T13:53:10 | 2015-08-22T13:53:10 | 41,209,355 | 19 | 21 | null | 2015-08-31T05:28:13 | 2015-08-22T13:56:04 | C++ | UTF-8 | C++ | false | false | 845 | h | I_DeviceIndexBuffer.h | // auto-generated file (rttidump-exporter by h0pk1nz)
#pragma once
#include <ue/sys/render/device/I_DeviceResource.h>
namespace ue
{
namespace sys
{
namespace render
{
namespace device
{
/** ue::sys::render::device::I_DeviceIndexBuffer (VTable=0x01E91480) */
class I_DeviceIndexBuffer : public I_DeviceResource
{
... |
c62aa651936ae0a88e793508165b05e4e2e3f168 | e050dd75d29629b319d7865a71b9c8625995c713 | /BitMRC/include/Storage/QueryResult.h | 5c9d84d650d97f86ba6a553c760767b6d7137747 | [
"MIT"
] | permissive | Mees-Groenhuyzen/BitMRC | da53d621b44339ee4bc7cee034b8d81042e399dd | 249c0b015777a6db8daf4e1b854def30121be868 | refs/heads/master | 2021-06-20T03:40:19.818112 | 2017-07-26T17:45:58 | 2017-07-26T17:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | h | QueryResult.h | /*
* QueryResult.h
*
* Created on: 18.09.2016
* Author: steady286
*/
#ifndef QUERYRESULT_H_
#define QUERYRESULT_H_
#include <vector>
#include <stdint.h>
#include <Storage/QueryResult.h>
#include <Storage/QueryResultElement.h>
using namespace std;
#ifdef DEBUG_QR
#define QR_DEBUG(a) printf a;
#else
#define ... |
0227611cd0fd780700b74f521ec3cab8d58f60c1 | 827e5b75679f64929396490e7512152eff0f0851 | /SimulationCode/src/Main.cpp | 63a683c99b85276ed365288f4e963bb4bb95cf89 | [] | no_license | damian1996/N-Body-Simulation | f74b9e7b0b0859def86e4e0f9b89ee6e721ca221 | c7fb439381ccc46d6cf715dcefc2d7df9e998c4c | refs/heads/master | 2020-03-19T08:02:47.853930 | 2018-08-28T23:05:13 | 2018-08-28T23:05:13 | 136,170,841 | 0 | 0 | null | 2018-08-26T10:30:40 | 2018-06-05T12:01:34 | TeX | UTF-8 | C++ | false | false | 1,597 | cpp | Main.cpp | #include "Main.h"
using namespace std;
int main() {
int programVersion, numberOfBodies;
printf("Wybierz tryb wykonywania programu\n");
while (1) {
printf("1. Naiwny algorytm CPU\n2. Naiwny algorytm GPU\n3. Algorytm "
"Barnes-Hut CPU\n4. Algorytm Barnes-Hut GPU\n");
int res = scanf("%d", &progr... |
ad4d4c6f8519fbfcb16d31a637d10fa4620f7404 | 5999030bc27e8f7437b74d4281386920e9dc9e9b | /main.cpp | 513c733aa9120baa1e0b5dd890a1b28c6669c528 | [] | no_license | tsingcoo/main_em4_sb | 867152e73351592413ec5a5cf23e43ac5fc40556 | a27e319cb7216817ff50618cb9a5b542e6153293 | refs/heads/master | 2021-01-20T16:51:11.345818 | 2017-05-08T05:50:02 | 2017-05-08T05:50:02 | 90,852,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,844 | cpp | main.cpp | //
// main.cpp
// model 1
//
// Created by 王青龙 on 15/11/9.
// Copyright © 2015年 王青龙. All rights reserved.
//
//#include<iostream>
#include<string>
#include<fstream>
#include<sstream>
#include<vector>
#include<unordered_map>
using namespace std;
#define PROB_SMOOTH 1e-7
void readfile(string str, vector<vector<in... |
8f1be1be5f60d7c7cc2b8a433d48a17fa9d5fc84 | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Olympiad Solutions/URI/2469.cpp | afacb244613b387345a77af56be6cf4ca4c6576d | [
"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 | 632 | cpp | 2469.cpp | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/2469
#include <cstdio>
#include <map>
using namespace std;
int main(){
int n,i,resposta,vezes=0,davez;
map<int, int> mapa;
map<int, int>::iterator it;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&davez);
if (mapa.find(davez)... |
21675cab88ab8ad0ee36c1c1bdc4bd866721e612 | b2f72981730d8573f1a1f1fe6ba03a095d64c2d5 | /ordonnanceur/Conteneur.cpp | 6432ebd5989be7abd8560fa0d339077589fe7e5a | [] | no_license | Ghuillaume/STRE | bef6b5c6e95a5b018f5f76b6086b564c687d5ee7 | 2b038af069a3fcda4d42ab9f6d4ab3e1fb86956c | refs/heads/master | 2016-09-06T12:52:21.364510 | 2012-11-14T14:47:33 | 2012-11-14T14:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,561 | cpp | Conteneur.cpp | #include "Conteneur.hpp"
Conteneur::Conteneur() {
listeTP_ = new ListeTachesPeriodiques();
listeTA_ = new ListeTachesAperiodiques();
}
Conteneur::~Conteneur() {
listeTP_->erase(listeTP_->begin(),listeTP_->end());
delete listeTP_;
listeTA_->erase(listeTA_->begin(),listeTA_->end());
delete listeTA_;
}
void Con... |
aa8f05c35b11e7ac45ee98099750d570877895f8 | 9d1e141d4a2f1571e4b464cdfe4f01a838145999 | /sketchbook/tabor/weather_meter/weather_meter.ino | 8ef3a59d0142733953790cc458c6ba7c77d9712d | [] | no_license | fonorobert/electronics | 98dfe23373e9b22abf157f12896d36309945451e | b1e1d805e8fde8c1dbf42a8856d7b35c40e1232c | refs/heads/master | 2020-12-25T21:12:51.783725 | 2015-11-23T11:52:32 | 2015-11-23T11:52:32 | 37,719,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | ino | weather_meter.ino | #include "VirtualWire.h"
#include "temp.h"
#include "hum.h"
#include "wind.h"
#define aref_voltage 5
int tempPin = A0;
int humPin = A1;
int windPin = A2;
static uint8_t vw_tx_pin = 2;
void setup(void) {
Serial.begin(9600);
vw_set_tx_pin(vw_tx_pin);
vw_setup(1000);
}
void loop(void) {
int temp = tempMeter(... |
fca61d0bad4ade5a14a3d058beae223d762b7d71 | d4f9fe46a7e1cd780d1b605397d1cc732e9bef62 | /NQVTK/Rendering/SelectionView.cpp | 10104b1ee7e82ce86cbe6188b8f9b52d690d6483 | [
"MIT"
] | permissive | myousefi2016/nqvtk | 1a988474ee65b311456d12a5b87c125b72ad9024 | 8fd0593ae84d6df8b6adfc2970fa47d6c9e8d89c | refs/heads/master | 2021-05-28T16:15:59.359840 | 2015-03-14T11:21:22 | 2015-03-14T11:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | cpp | SelectionView.cpp | #include "SelectionView.h"
#include "Renderables/Renderable.h"
#include <set>
namespace NQVTK
{
// ------------------------------------------------------------------------
SelectionView::SelectionView(Scene *scene) : View(scene)
{
}
// --------------------------------------------------------------... |
aadf5c5430b3fb200d150a8e77ab0234fc4cef74 | 36416df9b523de68694723e133c72b76be197fa4 | /vector.cpp | 40e9c5d59be6d562e0e4ae99811e2c859980b2df | [] | no_license | QTTTTTTTT/SmallSTL | dae953c07413de3c0e762c2396a120785df77770 | d23f8c0dbb7d8e4fd0836a5bbdf6021370490aec | refs/heads/master | 2021-01-01T07:24:53.235316 | 2017-08-01T06:46:34 | 2017-08-01T06:46:34 | 97,567,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,332 | cpp | vector.cpp | #include "vector.h"
namespace SmallSTL{
template<class T,class Alloc>
vector<T,Alloc>::~vector(){
destroyAndDeallocateAll();
}
template<class T,class Alloc>
vector<T,Alloc>::vector(const size_type n){
allocateAndFillN(n,value_type());
}
template<class T,class Alloc>
template<class InputIterator>
vector<T,A... |
ad00884c3f846fb7ebe060632a769b5696a8c6fc | 59b60352c62e570a743537d51d4f14a39af2a00a | /NLEPreview/MatterView/Controls/ResListView.cpp | cfc725695aa3e89e1432e06cabba710ce8c479c6 | [] | no_license | LuckyKingSSS/preDemo | 32db4f771428ce2503925d3c34d6f54720709d10 | 020c78665561e639f4eb4a4ad86b63ee190a9637 | refs/heads/master | 2021-07-06T16:03:15.892541 | 2017-09-28T07:10:41 | 2017-09-28T07:10:41 | 105,114,136 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,150 | cpp | ResListView.cpp | #include "stdafx.h"
#include "ResListView.h"
#include "ListItemData.h"
#include <QPainter>
#include "FileOperation.h"
#include "ItemBaseView.h"
#include "NormalItemView.h"
#include "VideoItemView.h"
#include "ImageItemView.h"
#include "MusicItemView.h"
#include "EffectItemView.h"
#include "PathOperation.h"
/***********... |
524a0e81e3da6ca2a0084c02efe29b32d497d29d | 97068d171a1407a394c01e1fd540639a43baf870 | /tcp/TcpConnection.h | 5091e7d634df8ead762cee174da59bfa10cfaf39 | [] | no_license | round00/KYHttpServer | 8212ad49b31bc87614050d60cee6e7bdd03552be | 26fbca839552c1b789b588e06caf2b962c17fa96 | refs/heads/master | 2020-09-29T16:32:51.628909 | 2020-03-08T13:58:23 | 2020-03-08T13:58:23 | 227,074,056 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,863 | h | TcpConnection.h | //
// Created by gjk on 2020/3/3.
//
#ifndef KYHTTPSERVER_TCPCONNECTION_H
#define KYHTTPSERVER_TCPCONNECTION_H
#include <memory>
#include <functional>
#include "Buffer.h"
class CEvent;
class CEventLoop;
class CTcpConnection;
typedef std::shared_ptr<CTcpConnection> TcpConnPtr;
typedef std::function<void(const TcpCon... |
5e3b3b078713c05b1708ad3c97042ddad6388177 | 8b26ee63c2c1c898bb0a6924a35faab8164ccb9e | /modules/danlin_fontawesome/data/FontAwesomeData.cpp | e606f843ed1b3695d61b33ad1bde50e8cd5d3c50 | [
"MIT"
] | permissive | danlin/danlin_modules | 1d75535e0910f192f8289cacafebe1bb0e3ee7c1 | f688951aecb583a339a3709313bea67423c4366e | refs/heads/master | 2021-01-18T22:44:38.707426 | 2018-04-06T14:27:37 | 2018-04-06T14:27:37 | 22,116,135 | 13 | 8 | MIT | 2019-06-11T11:46:07 | 2014-07-22T18:38:50 | C++ | UTF-8 | C++ | false | false | 490,841 | cpp | FontAwesomeData.cpp | // IMPORTANT! This file is auto-generated see extras/AwesomeMaker
#include "FontAwesomeData.h"
static const unsigned char data[] = {0,1,0,0,0,13,0,128,0,3,0,80,70,70,84,77,107,190,71,185,0,2,134,144,0,0,0,28,71,68,69,70,2,240,0,4,0,2,134
,112,0,0,0,32,79,83,47,50,136,50,122,64,0,0,1,88,0,0,0,96,99,109,97,112,10,191,5... |
2fe5538a9d9d9dbd65f22f286cd28cb4e5e6cb81 | 70b94ad7f6fae978bdb6b49c7355f8edc3766c8a | /ACDC_DANKSKY.ino | 83518de3d42634b08509975117bccb7ce8ca3d32 | [] | no_license | rhardjo/arduino-fishbot | fd93d1ab7bfd07b20a8d64ee747f5570b1f22291 | a6e64e8a0d04c2d331b3dc8bcb53c0a00a7340c4 | refs/heads/master | 2021-01-13T02:37:39.560643 | 2015-06-10T10:18:23 | 2015-06-10T10:18:23 | 37,190,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,341 | ino | ACDC_DANKSKY.ino |
/* ---------- LIBRARIES ---------- */
#include <AFMotor.h>
#include <SPI.h>
/* ---------- CONSTANTS ---------- */
AF_DCMotor motorBL(1);
AF_DCMotor motorBR(2);
AF_DCMotor motorFR(3);
AF_DCMotor motorFL(4);
const int sonarPin = 2;
/* ---------- VARIABLES ---------- */
// Motor
int motorSpeed = 100;
int motorInte... |
0bac4188671ecc9cb62a22b5f9b99a6a0512f0f0 | 5dbb50e670c090863414287f92823d26b9bcc746 | /gang_audio_device.cc | e35a4768a9ad75bb20405fc3de015bf0268f9d1e | [] | no_license | empirefox/ffmpeg-wrap | 92a39e1c8683c9849f3e144ed262df05475f601c | 4581838c7fabf964a8af7cdc894eb326132e379b | refs/heads/master | 2020-04-18T17:30:06.076332 | 2015-12-15T15:25:23 | 2015-12-15T15:25:23 | 33,806,115 | 0 | 1 | null | 2015-04-19T11:11:46 | 2015-04-12T06:32:39 | C++ | UTF-8 | C++ | false | false | 16,151 | cc | gang_audio_device.cc | #include "gang_audio_device.h"
#include "webrtc/base/common.h"
#include "webrtc/base/thread.h"
#include "webrtc/base/timeutils.h"
#include "gang_spdlog_console.h"
namespace gang {
// Audio sample value that is high enough that it doesn't occur naturally when
// frames are being faked. E.g. NetEq will not generate th... |
6e581bf1feefae67fa7c0b036b57cac125ae0703 | f98b5478686b4c1fd6ce0b6a600c35ec9e406e73 | /Source/PV.h | b1aca009724c23d8252734c114e1e7642d8fef2a | [] | no_license | gracelzr/ECE-484 | 7efca2222071e7852ec6e7c86f4c0be5df9085e9 | 6e6e60ce753eb0b75a74f057ba8a15c96695afc1 | refs/heads/master | 2020-04-08T16:02:44.848841 | 2019-03-31T08:16:50 | 2019-03-31T08:16:50 | 159,502,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | PV.h | /*
==============================================================================
PV.h
Created: 26 Nov 2018 1:51:23pm
Author: grace
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
extern "C" {
#include "PV_core.h"... |
c873dd30dd6a0f88394029a09fcde2eea7383d12 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/ui/xwin/settingui/src/wifinetitem.cpp | 82e7708475a4ca3583829119e596a9ff11e6b7f5 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 2,925 | cpp | wifinetitem.cpp | #include "wifinetitem.h"
#ifdef IF_SUPPORT_WIFI
CWifiNetItem::CWifiNetItem(IListViewItemAction * pAction/* = NULL*/)
: xListViewItem(LIST_ITEM_TYPE_WIFI_NET, pAction)
, m_pStrengthIcon(NULL)
, m_pName(NULL)
, m_pConnectStatusIcon(NULL)
, m_pEncryptIcon(NULL)
{
}
CWifiNetItem::~CWifiNetItem()
{
}
... |
d71d97993581f1cb6c73565152652eeb214d47d6 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor3/1.38/T | f601847a84497e7297808a4ce4ef28669dbc3f4e | [] | 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 | 23,216 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
37cbdf64dd7d4db3167746f6355ae61e56018298 | 4a544f87fafe6729dc2e115dd6bb18f4481901d2 | /MP4Urn.h | 228d9d72a8f16d231b3ab4c6c3c67c9592e87de8 | [] | no_license | asdlei99/encode_mp4 | 208618b3b1e9834ddb486fc869d7b74bee5c323f | 8e54314c90d852b18f582ca79a9e67b467484bc8 | refs/heads/master | 2020-08-21T12:12:07.471000 | 2017-12-16T13:53:35 | 2017-12-16T13:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | MP4Urn.h | #pragma once
#include "MP4Box.h"
class MP4Urn : public MP4Box
{
public:
MP4Urn();
virtual ~MP4Urn();
void createMP4Urn(unsigned char ucVersion, std::string strName, std::string strLocation);
private:
unsigned char m_ucVersion;
unsigned char m_ucFlag[3];
std::string m_strName;
std::string m_strLocation;
};
|
41be0ed5e720b57afe5d427f878b8a5bcc848aab | 26567bc276074e5eccdbd79daaff378695fbca27 | /CSC8503/CSC8503Common/OrientationLock.h | 01a5c65d681b152d987e411fb761e14b0e673a9e | [] | no_license | sspike2/CSC8508_CW | ddbb300eabc3bb6ed64e699cdafaf571e8247d29 | 5072d18184396447ad6043c6b03538a78c12ef2c | refs/heads/main | 2023-03-01T23:18:54.238341 | 2021-02-03T17:29:16 | 2021-02-03T17:29:16 | 335,700,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | h | OrientationLock.h | #pragma once
#include "Constraint.h"
#include "GameObject.h"
namespace NCL
{
namespace CSC8503
{
class OrientationLock : public Constraint
{
public:
OrientationLock(GameObject* a, bool xLock, bool yLock, bool zLock)
{
objectA = a;
x = xLock;
y = yLock;
z = zLock;
lockedOri = objectA... |
a956091407801f3edf18892983591268c23ee98e | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/processor7/30/phi | b07774b68553e865cf09b62957c9366bd1a9c6e1 | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,223 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
692a40df280bad9e0638b5ac112bbc5d65c28d6b | 77bc4d919b11e8c3dbe5c8a6f689527f7535e79c | /LEBOMBS.cpp | 7d158ac83454478d29f7bd912e34acc1d634a786 | [] | no_license | DionysiosB/CodeChef | 3610626548089f667280f0e1713517d9ddd3927a | 8b4ddf58173df0e1577215c09adcc2c03d67ffca | refs/heads/master | 2023-09-04T05:03:40.767798 | 2023-09-02T17:17:14 | 2023-09-02T17:17:14 | 10,135,601 | 10 | 7 | null | 2020-10-01T04:54:41 | 2013-05-18T02:27:54 | C++ | UTF-8 | C++ | false | false | 597 | cpp | LEBOMBS.cpp | #include <iostream>
using namespace std;
int main(){
string input, shiftLeft, shiftRight;
int numCases; scanf("%d\n",&numCases);
while(numCases--){
int numBuildings; scanf("%d\n",&numBuildings);
getline(cin, input);
shiftLeft = input.substr(1,numBuildings-1)+'0';
shiftR... |
5617b3fbca2bcfe03eac6291dc913ed1d6a97b9d | 561ef87c682feea936a1622ddfb07e6aa7182807 | /utils-tests/tests.cpp | 92b8d00ae3905a5f0371f8abc036ca5fab6b650e | [] | no_license | deltadev/dpj | 80d5b584a0baa01aee007439f3c29e89d3a892f0 | 93c879c9a5696b305a1a0b39058093cfd3294d8f | HEAD | 2016-09-05T23:10:26.209537 | 2014-09-29T21:27:01 | 2014-09-29T21:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,691 | cpp | tests.cpp | //
// tests.cpp
// dpj-utils
//
// Created by Daniel James on 06/02/2012.
// Copyright (c) 2012 deltadev.co.uk. All rights reserved.
//
#include "tests.h"
#include <cmath>
#include <iostream>
#include <vector>
#include <array>
#include <sstream>
#include <string>
#include "prettyprint.hpp"
#include "histogram.h... |
2bb65ced9dc3c7650c406a5ff4da7dea60fef6c0 | 0e4e98b41c84c4f612b54c9d22d4ef9db8b3addc | /Source/TestUEProject/Data/GroupDefinitionAsset.h | 219dc1db8dfc9f4235b3a398be6cf7a84c55d045 | [] | no_license | nexon-97/UE-prototype-game | 5d397994d6e8c38e998d2fbc84497b625025bc56 | a087392bd74c8af531b595d36668673e95a99380 | refs/heads/master | 2021-06-18T01:13:09.365058 | 2021-01-30T21:52:33 | 2021-01-30T21:52:33 | 170,294,704 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | h | GroupDefinitionAsset.h | #pragma once
#include "NPC/NPCRelation.h"
#include "Engine/DataAsset.h"
#include "GroupDefinitionAsset.generated.h"
UCLASS(Blueprintable)
class UGroupDefinitionAsset
: public UDataAsset
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly)
TMap<FName, ENPCRelation> GroupRelations;
};
|
f601cc9a49ab7fbf289b37def563013a4ae7e60c | dcadb870545b50c2b8c7ce92e27fbb2684dd9e8d | /204_Tuberias/ej02.cpp | a4eaa5e97556d6b2945b27c307dcee982f4396b2 | [] | no_license | daviddavo/20asor | e1d34201a9f70a19f404111b5c61178593a0d8a7 | a702c43c6d13758546f74e5966a4e60d64c8c7c9 | refs/heads/master | 2023-04-20T04:01:16.811468 | 2021-01-16T11:35:45 | 2021-01-16T11:35:45 | 366,312,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,366 | cpp | ej02.cpp | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include "daverror.h"
/* Para la comunicación bi-direccional, es necesario crear dos tuberías, una
* para cada sentido: p_h y h_p. Escribir un programa que implemente el
* mecanismo de sincronización de parada y espera:
* - El padre leerá de la entrada ... |
32664cd44a87819810b8dbcc8d4c0c16e3c2b597 | 1b3ee9bf0741aca2745dd6720de1b5ec2c737055 | /Linked_01.h | 013a80250dfcee03eaa080c40205833566bfd72a | [] | no_license | kimehwa/untitled2 | ee80ab3671a57508ba470882eb49a59322c9d0be | bbecd2712e67358f586df0eaff7488ad8d3fa7d6 | refs/heads/master | 2020-06-26T06:51:24.423083 | 2019-07-30T03:03:11 | 2019-07-30T03:03:11 | 199,563,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | h | Linked_01.h | //
// Created by 管晓东 on 2019-07-27.
//
#ifndef UNTITLED2_LINKED_01_H
#define UNTITLED2_LINKED_01_H
class Linked_01 {
};
#endif //UNTITLED2_LINKED_01_H
|
471b83c8e1c562f6006aa4eb895314c83589e161 | ddfaa2e877f47f55d3e6480f3937d84215957a0d | /minicar_code/minicar.ino | ef5868e2884f03fc398dbc5dddb378fc227e3203 | [] | no_license | elegoogroup/miniCar | 24e7c251e209fff7f227c17bfca5e828044c12b7 | c321d9541d7940068feb3404d904595f0628e49a | refs/heads/master | 2020-05-29T21:15:01.985493 | 2019-05-31T01:28:29 | 2019-05-31T01:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,848 | ino | minicar.ino | #include <avr/pgmspace.h>
#include <Arduino.h>
#include "Pins.h"
#include "Ticker.h"
#include "PinChangeInt.h"
#include "Rgb.h"
#include <stdio.h>
#include "Music.h"
#include <EEPROM.h>
typedef unsigned long millis_t;
Ticker line_tracking;
Ticker key_mode;
Ticker ir_recevie;
Ticker voltage_measure;
int addr_line_tra... |
4588a302f0012039ad4bacc23430a60a3dd58158 | f0c9a2768ad21e570a380e5ec0521523f4434250 | /device/include/config_handler.hpp | 44f261784e84394f3c6468417b637beb34a01072 | [] | no_license | KitFung/BATsNet | 45396290ba910fa3217740adc6501631ec51cd69 | fc177e67cad337406bd50266984145fc6603f297 | refs/heads/master | 2023-02-26T14:35:29.156328 | 2021-02-09T07:39:46 | 2021-02-09T07:39:46 | 279,792,003 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 293 | hpp | config_handler.hpp | #pragma once
namespace common {
template <typename StateT, typename OutT> class ConfigHandler {
public:
ConfigHandler() {}
virtual ~ConfigHandler() {}
virtual OutT UpdateConfig(const StateT &old_state,
const StateT &new_state) = 0;
};
} // namespace common
|
71fbf83b9db9b62b23c01dea95e381dc71c6738c | f2db7d3aa295e27896e7e7271b9dd2f86aab4b33 | /Partie2/PCO_lab06/fileserver/requesthandler.h | d47b393bc1b80cf74e0c1b2fbbc9d966992bf226 | [] | no_license | jerozerbib/PCO_Labo5 | bd7595edea332374196b38fd3a367442184f61e0 | 822f79e078207b278679d3ce057edcf10085eedc | refs/heads/master | 2020-05-19T00:48:07.572217 | 2019-06-02T16:20:26 | 2019-06-02T16:20:26 | 184,743,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | requesthandler.h | #ifndef REQUESTHANDLER_H
#define REQUESTHANDLER_H
#include "request.h"
#include "response.h"
#include "runnable.h"
#include "abstractbuffer.h"
class RequestHandler : public Runnable
{
private:
Request request;
AbstractBuffer<Request> *responses;
bool hasDebugLog;
QString id_;
public:
RequestHandle... |
1ea22dcca4beafd625903223433f9117d9b4fe21 | 155b023b1f9b286064a20ede6320e3bd8fb77011 | /0127. Word Ladder/TimeExceed.cpp | 73000cf03288ec828e7da0857c33090b2219d145 | [] | no_license | zztttt/LeetCode | e34b01dafb11381beeaf1ffe607c310dd5134506 | 7f803bba7ae6e569833adca6294709fa1c494a93 | refs/heads/master | 2022-08-10T08:00:46.532738 | 2022-08-05T15:25:00 | 2022-08-05T15:25:00 | 165,406,546 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | TimeExceed.cpp | class Solution {
public:
int ladderLength(string src, string dst, vector<string>& dict) {
int dictLen = dict.size(), len = src.size();
if (dictLen == 0) return 0;
return bfs(src, dst, dict);
}
int bfs(string src, string dst, vector<string> dict) {
set<string> visited;
visited.insert(src);
int level = 1;... |
3f0568b48ce9b5ef8cbcc3754375b979d9835dfa | a29ec259efa2c2f13e24be86a4c6ba174780857d | /projects/tpfinal/RPGAction.cpp | 784e8b6f0a48b79d4750de7a836c61327f4b9f49 | [] | no_license | nlelouche/programacion2 | 639ffb55d06af4f696031ec777bec898b6224774 | 5ec9b29014c13786230e834deb44679b110351b4 | refs/heads/master | 2016-09-06T15:40:38.888016 | 2007-11-09T01:03:51 | 2007-11-09T01:03:51 | 32,653,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | RPGAction.cpp | #include "RPGCharacter.h"
#include "RPGAction.h"
//----------------------------------------------------------
// constructor
RPGAction::RPGAction()
{
}
//----------------------------------------------------------
// ejecuta la accion
void RPGAction::Execute(RPGCharacter *pCharacter)
{
//pCharacter->SetA... |
0f3dec0f9d0ac7d3f8f32862913a7d7acb3dbaa2 | f7e4dc8b8f38f8306c41324eab14f354f35230d5 | /codechef/easy/MAXDIFF.cpp | b27b43079147c521f16a9e60873a656b3490b092 | [] | no_license | SIRIUScoder1/competitive-programming | de076c4dd4979a735c6066a84f9b7b8ab356325b | 429f5ec5af45e75de8e0051644e3c6d83a9221e4 | refs/heads/master | 2021-01-20T18:04:06.999121 | 2016-08-25T12:37:10 | 2016-08-25T12:37:10 | 63,837,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | MAXDIFF.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int test,size,k,a[100000],sum1,sum2,l;
cin >> test;
while(test--)
{
cin >> size >> k;
for(int i = 0;i < size;i++)
{
cin >> a[i];
}
sort(a,a+size);
sum1 = 0;sum2 = 0;
if(k <= size/2)
{
... |
440f2fd63847af0b0ef56d62c630adc08147a136 | 4a88f399a239892968c826025654c262cc0a2122 | /20140717/set/WordCount.h | 9bc12949e75d74d6f079917cb8a29ad1e18b998f | [] | no_license | Beatrice7/what-i-learned-in-wd | ea99fe4720468d5702c209b9ee96cf143165f944 | ace120f3dc4bbd87232eaf6ca08a15ed0bcbc2b2 | refs/heads/master | 2021-01-23T14:05:28.902398 | 2014-10-14T01:09:03 | 2014-10-14T01:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | WordCount.h | #ifndef WORD_COUNT_H_
#define WORD_COUNT_H_
#include <string>
#include <map>
#include <set>
namespace SuQing
{
class WordCount
{
public:
WordCount(const std::string &filename);
void add(const std::string &word);
void print() const;
private:
void readExclude();
std::m... |
bfedd333c279746076f43b426260d6072e6ff1fc | cd665e30648d1da0f9560269fed857d801f7be98 | /even.cpp | f64f6fe25a8ce159a6b3ea451b2715196dcc3a5b | [] | no_license | Neetika23/Guvi_beginner123 | 9c71d1cafe21518ebb10d47502cf5cb426b83ed5 | 8e99a78ab26a74741492f7defae8fdd8efc80641 | refs/heads/master | 2020-04-01T11:02:35.750406 | 2019-03-17T14:25:48 | 2019-03-17T14:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | even.cpp | #include<iostream>
using namespace std;
int main()
{
int m,n;
cin>>m>>n;
if(m>0&&n>0)
{
for(int i=m+1;i<n;i++)
{
if(i%2==0)
cout<<i<<" ";
}
}
else
cout<<"Invalid range";
return 0;
} |
1872794d1f1598d674fc811902b00a9cb35d3edf | e8d56b2d9a635770e1fe5236fa01e9939e147f0a | /VS_Test/inherit_example/inherit_example/inherit_example/inherit.cpp | 6842570a20bbebbbd74a14badfe2e84b84d59e51 | [] | no_license | wangben85/CplusplusBasic | b5ee61b8ead9718bd1837df11758f99f39860db2 | 3c3a12800f22893da6025f5b22dc393ccfafd229 | refs/heads/master | 2021-07-09T15:00:15.733868 | 2021-04-23T09:17:12 | 2021-04-23T09:17:12 | 242,897,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | cpp | inherit.cpp | #include<iostream>
using namespace std;
class Base1
{
public:
Base1(int x = 1): m_x(x)
{
cout << "Create Base1" << endl;
}
~Base1()
{
cout << "Free Bsase1" << endl;
}
private:
int m_x;
};
class Base2
{
public:
Base2(int y = 2): m_y(y)
{
cout << "Create Base... |
4aee49618f4641777407d14700584af1dc0fd4ac | 76dfd0a93a672a0e08576744b57ed2b1f774102f | /symmeig.cpp | c2398f54ba4a6aeab03e6122077c1b12f89eb45d | [] | no_license | jruneson/quantumdot | 92b1c28a246091305a00c7b4bfca4a719f197379 | 1cbe2dddc27831304aafe49359fee7f679fcf780 | refs/heads/master | 2021-04-06T11:14:27.707739 | 2017-08-04T13:56:36 | 2017-08-04T13:56:36 | 83,317,918 | 0 | 0 | null | 2017-08-04T13:56:37 | 2017-02-27T14:16:22 | C++ | UTF-8 | C++ | false | false | 2,730 | cpp | symmeig.cpp | #include "symmeig.hpp"
void Symmeig::sort(int icr)
{
double sgn = 1;
if(icr==INCREASING)
sgn=-1;
int i;
for(int j=1;j<n;j++)
{
double x = d[j];
double eig[n];
for(int ii=0;ii<n;ii++)
eig[ii]=z[ii][j];
for(i=j-1;i>=0;i--)
{
if(sgn*d[i]>=sgn*x) break;
d[i+1]=d[i];
for(int k=0;k<n;k++)... |
7a9f468cfd300e1c9cf8df852035447b33246777 | 00571c79a77746f45cd0862b6ec905d03d594f2e | /nre/apps/vancouver/model/ps2keyboard.cc | 35aaf62486c1973daf067b8abc228a717d4d8b19 | [] | no_license | alinabi/NRE | 0a5534d9888d68585b810656f9bcbf748ad7cf5b | 0750dbb9f81bf1a6ec59cc703b01409e3829dc1d | refs/heads/master | 2021-01-21T00:55:58.548829 | 2013-01-18T07:09:07 | 2013-01-18T07:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,039 | cc | ps2keyboard.cc | /** @file
* PS2keyboard emulation.
*
* Copyright (C) 2007-2009, Bernhard Kauer <bk@vmmon.org>
* Economic rights: Technische Universitaet Dresden (Germany)
*
* This file is part of Vancouver.
*
* Vancouver is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... |
dcc8186dddbe2407a27282b578c198ab3aaa2648 | f54054008a9ac3c1f7bf1c763f288f516b608f16 | /butmau.cpp | aace9609747ef59c949570b64e97d8cf4a34a65e | [] | no_license | KhanhKitin/spoj_ptit | f5d1dc6aea83cbe19731024fcaa2dd75fed0c448 | 0b3971db3a2f88b0451482060f0415ceef911dc6 | refs/heads/master | 2022-04-21T04:08:42.266755 | 2020-04-20T16:30:01 | 2020-04-20T16:30:01 | 257,340,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | butmau.cpp | #include<stdio.h>
int main(){
int dem=0;
long long a[4];
for(int i=0;i<4;i++){
scanf("%lld",&a[i]);
}
for(int i=0;i<3;i++){
for(int j=i+1;j<4;j++){
if(a[i]==a[j]) dem++;
}
}
if(dem==6) printf("3");
else if(dem==3) printf("2");
else printf("%d",dem);
}
|
49fed3c334b29a1a3bfd0dea25ce248b21066865 | ab344e0d18b1d23c0f7530dc377cc1f169711c30 | /include/iQUAPI_TEMPO_template.h | 6bc21b16a6d307686105428674d882b1e4d37b18 | [] | no_license | anaghakv01/ACE | 6fcaec1cb284590bc44e8ef15c947256eb6d5e12 | 479326872df4a74a0ba8cbe78031aecc9ea8e6b7 | refs/heads/master | 2023-07-24T13:51:31.241873 | 2021-08-17T22:37:08 | 2021-08-17T22:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,733 | h | iQUAPI_TEMPO_template.h | #include "Simulation.h"
#include "MPG_Discretization.h"
/** Template to generate the two source files for the iQUAPI and TEMPO
binaries.
*/
int main(int args, char** argv){
Parameters param(args, argv, true);
if(param.is_specified("print_param")){
param.print(param.get_as_string("print_param"));
}
... |
9b34ea83bc3b7714c1434a7c5ff62b4a7ad3562c | 96dae00de134c84e58ca7c3a5420313fc484da10 | /ICPC_AlgorithmTemplete/数据结构/可并堆/左偏堆.cpp | e192dddfd54ec93bc96caef051ee9d28972c3ea5 | [] | no_license | meiyoumingzile/ICPC_AlgorithmTemplete | 62758cde771667bf8602b6e625456a36c8525ab7 | 2bcabeadd94e83acaffa0b90365c93468a8f0004 | refs/heads/master | 2023-08-16T23:06:22.774993 | 2023-08-13T08:47:01 | 2023-08-13T08:47:01 | 159,670,934 | 7 | 2 | null | null | null | null | GB18030 | C++ | false | false | 2,694 | cpp | 左偏堆.cpp | #include<bits/stdc++.h>
//#include<windows.h>
using namespace std;
#define ll long long
#define inf 1e-5
#define rg register
#define cint const int &
#define cll const long long &
#define cdou const double &
#define cv2 const v2 &
const int inv2=500000004;
const int INF=2147483647;////2139062143
const int MAX=100010;
c... |
0c31856c99ef54f8f5effcd5de1667dfbb5b8e19 | fb66a5cc43d27f33c85320a6dba8b9a8ff4765a9 | /gapputils/gapputils.cv/AamUtils.cpp | 3f422bc7d946a04e4215b7b92d80b1a7d817be4a | [] | no_license | e-thereal/gapputils | 7a211c7d92fd2891703cb16bf94e6e05f0fb3b8a | a9eca31373c820c12f4f5f308c0e2005e4672fd0 | refs/heads/master | 2021-04-26T16:42:58.303603 | 2015-09-02T21:32:45 | 2015-09-02T21:32:45 | 38,838,767 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,491 | cpp | AamUtils.cpp | /*
* AamUtils.cpp
*
* Created on: Jul 15, 2011
* Author: tombr
*/
#include "AamUtils.h"
#include <cassert>
#include <culib/lintrans.h>
#include <cassert>
#include "ImageWarp.h"
using namespace std;
namespace gapputils {
namespace cv {
void AamUtils::getAppearanceParameters(std::vector<float>* appearan... |
8c40c1853dcdf78fd2f2d31659fd8cc349dd4663 | f2c0259c672277d6f17a715e10f5e5ecdd00d605 | /smtk/session/polygon/qt/qtArcWidget.cxx | d9718329990332e419798de917edfbbb4c858eac | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kitware/SMTK | 83ff15620f801f12488ad238a4cf36f2998cfd14 | a16cf5393f91d97dca2db0c2bd46d21864152c66 | refs/heads/master | 2023-08-31T18:54:44.534709 | 2023-08-28T14:35:32 | 2023-08-28T14:35:50 | 28,104,084 | 50 | 30 | NOASSERTION | 2023-07-20T11:08:10 | 2014-12-16T20:02:07 | C++ | UTF-8 | C++ | false | false | 6,367 | cxx | qtArcWidget.cxx | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
6da20b9ab0ab819700ce25a7d5d999bb30c494a2 | 685c44d2cb28b2ecf2ec4d3f72aeb01d5d8384da | /APlay.hh | 34a5697b319b72b04864c4d9fa3a8465843d77d3 | [] | no_license | Ngob/bomberman | cde909326bedf7eb904abde595d5ddad2274bbd4 | 6a4f9f20660df90c75bedef8054f87785b58a3b1 | refs/heads/master | 2020-05-18T04:59:14.706664 | 2015-06-14T19:13:53 | 2015-06-14T19:13:53 | 37,425,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | hh | APlay.hh | //
// Iplay.hh for in /home/capot_r//tek2/cpp/proj/bomberman-2014-capot_r
//
// Made by romain capot
// Login <capot_r@epitech.net>
//
// Started on Tue May 24 10:05:58 2011 romain capot
// Last update Sun Jun 5 13:27:54 2011 antoine basset
//
#include "Game.hpp"
#ifndef __APLAY_HH__
#define __APLAY_HH__
clas... |
2de50a09570d82bdda3a068abe8291f239b3ed28 | b408ec401db547bcb0ebf8b39b982b3370afad60 | /pixie.cpp | 6e078632fef0582d54f055a1639b32f9689cba8a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | samizzo/pixie | ca5c25cb3b6edfcd033485245e809129f347bdca | cb40ce664ac68620628532c4a0b1722dd48e2035 | refs/heads/master | 2023-03-06T21:50:43.578715 | 2023-03-03T12:34:54 | 2023-03-03T12:34:54 | 145,707,019 | 28 | 3 | MIT | 2020-04-13T23:24:56 | 2018-08-22T12:36:52 | C++ | UTF-8 | C++ | false | false | 2,165 | cpp | pixie.cpp | #include <string.h>
#include <ctype.h>
#include "pixie.h"
#include <assert.h>
using namespace Pixie;
Window::Window()
{
m_keyCallback = NULL;
m_delta = 0.0f;
m_pixels = 0;
m_scale = 1;
assert(sizeof(m_mouseButtonDown) == sizeof(m_lastMouseButtonDown));
memset(m_mouseButtonDown, 0, sizeof(m_mo... |
cea41a12c43f6fb85853ea08349a88c0bcb5a379 | 1bc4b58e09c8c3b813baa9e96c9ca33fb8192a0b | /include/stm/utilities.ipp | 707706723c0164ab638795d0f315da17ab9f6c3c | [] | no_license | edwinsolisf/NeuralNetwork | 4e93fca4fdb29888da3c04d83df7267065f99e1c | a16af7df993920bbb6ad49cd50bea54f4e591c77 | refs/heads/master | 2023-06-24T00:50:47.291868 | 2021-08-02T02:19:33 | 2021-08-02T02:19:33 | 312,903,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,430 | ipp | utilities.ipp | namespace stm
{
template<typename _TYPE, unsigned int _ROWS, unsigned int _COLUMNS>
static void Print(const matrix<_TYPE, _ROWS, _COLUMNS>& mat)
{
std::cout << "[ ";
for (unsigned int i = 0; i < _ROWS; ++i)
{
for (unsigned int j = 0; j < _COLUMNS; ++j)
std::cout << mat[i][j] << (((i != _ROWS - 1) || (j ... |
9a7889f624a75c3c6133590694e43a1403c0e0d5 | ea8aa77c861afdbf2c9b3268ba1ae3f9bfd152fe | /newcoder37EE.cpp | 89bfc4f36f66a48980cf5f9c53510e4fb020fedb | [] | no_license | lonelam/SolveSet | 987a01e72d92f975703f715e6a7588d097f7f2e5 | 66a9a984d7270ff03b9c2dfa229d99b922907d57 | refs/heads/master | 2021-04-03T02:02:03.108669 | 2018-07-21T14:25:53 | 2018-07-21T14:25:53 | 62,948,874 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | newcoder37EE.cpp | #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int inf = 0x3f3f3f3f;
const int maxn = 100000;
int main()
{
int n;
while(cin >> n)
{
if (n <= 3)
{
cout << -1 << endl;
continue;
}
... |
9d833c187c83b927a82085f1ef7708a7020129c2 | 473b7c1990d5fb37773316e4abc452bb2aa3b9f4 | /Source.cpp | 6a9470179be0726c6bb818f8f4d8e88cd8b5edfd | [] | no_license | curiousTauseef/Card-Shuffling-and-Dealing-Simulation---CPP | cde914c0216a2e3f391a29cd6f56985eeda3e997 | 88844a4844a39279c63982c517923d851d759eb2 | refs/heads/master | 2020-05-01T15:51:44.838110 | 2018-12-10T07:40:43 | 2018-12-10T07:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | cpp | Source.cpp | // Fig. 18.2: fig 18_02.cpp from C++ How to Program - Deitel - 4th Ed.
// Card shuffling and dealing program using structures.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
using std::left;
using std::right;
#include <iomanip>
using std::setw;
#include <cstdlib>
#include <ctim... |
a19d8f21b52708ea0477228601c4e09d1d3d64ef | 02b6fddf13ef8d8faf0ca7f6b50094ca058ba6c5 | /week5_dynamic_programming1/2_primitive_calculator/primitive_calculator.cpp | 550241935eea9879550eae468d96aa5453a1de1d | [] | no_license | Professor322/algorithmic_toolbox | c38568f2098bff99f7b73d066abc0b9b6949e842 | be62952a3cff84824a79768adaf03dcc956123e6 | refs/heads/master | 2022-10-28T19:15:54.459014 | 2020-06-14T12:44:25 | 2020-06-14T12:44:25 | 260,571,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,588 | cpp | primitive_calculator.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <limits>
using namespace std;
using std::vector;
vector<int> optimal_sequence(int n) {
std::vector<int> sequence;
while (n >= 1) {
sequence.push_back(n);
if (n % 3 == 0) {
n /= 3;
} else if (n % 2 == 0) {
... |
74803dea0153f32d71301efbe879f63860df5516 | e46bd22112c15d9558ad9531deef183849636d62 | /LeetCode/30-Day Challenge/2023/February/Week 1.7 Fruit Into Baskets.cpp | 52687eea67e2e3cc2612596d65f502251989b288 | [] | no_license | jariasf/Online-Judges-Solutions | 9082b89cc6d572477dbfb89ddd42f81ecdb2859a | 81745281bd0099b8d215754022e1818244407721 | refs/heads/master | 2023-04-29T20:56:32.925487 | 2023-04-21T04:59:27 | 2023-04-21T04:59:27 | 11,259,169 | 34 | 43 | null | 2020-10-01T01:41:21 | 2013-07-08T16:23:08 | C++ | UTF-8 | C++ | false | false | 1,005 | cpp | Week 1.7 Fruit Into Baskets.cpp | /*******************************************
***Problema: Fruit Into Baskets
***ID: Week 1.7
***Juez: LeetCode
***Tipo: Sliding window
***Autor: Jhosimar George Arias Figueroa
*******************************************/
class Solution {
public:
int totalFruit(vector<int>& fruits) {
int n = fruit... |
37d9836c14ba6418d8c9fe0c4a94fac1fa015faa | c09baef3a623cba09a66f4f77dc7925f4e3649a0 | /menu.hpp | e6f88b1b76102976bcb9cc4fe8bbf79a03e8a366 | [] | no_license | OlaGie/SklepElektroniczny | e8458e3f24e3bf006f85e8c4cee3ade98e2c4c8d | 60780b7efbc31df16ceef74585a227f71d91eacb | refs/heads/master | 2021-01-10T15:56:13.821463 | 2016-01-03T23:00:34 | 2016-01-03T23:00:34 | 48,963,955 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 566 | hpp | menu.hpp | /*
================================================================================
Plik: menu.hpp
--------------------------------------------------------------------------------
Autorzy: xxx
Projekt: Sklep elektroniczny
Kompilator: Dev-C ++
Hardware: PC
Utworzony: 05.06.2014
----------------------... |
fd41eb813101e31c6908c4608a51c8ddf54b0ef6 | fef58dcd0c1434724a0a0a82e4c84ae906200289 | /usages/0xCD74233600C4EA6B.cpp | a9ea5f3066c776ffde8060a3a8da7ef076408315 | [] | no_license | DottieDot/gta5-additional-nativedb-data | a8945d29a60c04dc202f180e947cbdb3e0842ace | aea92b8b66833f063f391cb86cbcf4d58e1d7da3 | refs/heads/main | 2023-06-14T08:09:24.230253 | 2021-07-11T20:43:48 | 2021-07-11T20:43:48 | 380,364,689 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | 0xCD74233600C4EA6B.cpp | // am_penned_in.ysc @ L18321
void func_494()
{
if (!MISC::IS_BIT_SET(iLocal_115, 19))
{
func_502();
HUD::_0xCD74233600C4EA6B(0);
if (func_501("SCTV_HELI_HLP"))
{
HUD::CLEAR_HELP(1);
}
func_496(&(Local_112.f_184), 1, MISC::IS_BIT_SET(Local_112.f_1, 5), 0);
if (!func_376(PLAYER::PLAY... |
89cfce2e5da5a222db9e47961e19f701f0a3fc6a | 67d33599619ba82eaa7d694d6711687f7cbba7f2 | /interface/ProducersManager.h | 3846cc46887d3c78b0cf411a6f257ae326d4bd7b | [] | no_license | cp3-llbb/Framework | bd2ff553281137f2725fe047945699e00baa718e | fd03450f0ca1342050538be30efe6ad6d433d4b6 | refs/heads/CMSSW_8_0_6p | 2020-04-03T20:09:49.286442 | 2019-02-15T14:00:39 | 2019-02-15T14:00:39 | 35,434,040 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | h | ProducersManager.h | #ifndef PRODUCERS_MANAGER
#define PRODUCERS_MANAGER
#include "cp3_llbb/Framework/interface/ProducerGetter.h"
#include "cp3_llbb/Framework/interface/Producer.h"
#include <string>
#include <type_traits>
class ProducersManager {
friend class ExTreeMaker;
public:
template <class T>
const T& get(cons... |
db0f300b94f7fd3ea405e6cd00e74befe828f85f | d17903d6af46e5053521f87285a124a31ee8bd95 | /lever FYS9411/mange elektroner/montecarlo.h | 74c2d10ff75b3d82d46fb197bcb70aeb6f77ac9f | [] | no_license | mariebat/FYS9411 | 2ded4e31d17b1e941aecca2aac79508ead92d516 | 7f097cf883a3fa0ef2d090824799064d00906d7a | refs/heads/master | 2021-01-22T19:40:54.529047 | 2017-06-06T15:28:33 | 2017-06-06T15:28:33 | 85,224,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,718 | h | montecarlo.h | #ifndef MONTECARLO_H
#define MONTECARLO_H
#include <armadillo>
using namespace arma;
class MonteCarlo
{
public:
MonteCarlo();
MonteCarlo(int nEl, bool z, double A, int ncycles, double Omega, double ts); //use for importance sampling
MonteCarlo(int nEl, bool z, double A, int ncycles, double Omega, double ... |
69a2d4d668d8c3a4478a4f7f459fb8a86c4be7c9 | 5e37052b3bdd009b990df312ec4a8ae9acb2303b | /trinode.cpp | e7fbde6ed8d23f0d6b806b376ac19ecfb719cc11 | [] | no_license | AdhamNour/InvertedIndex | 26a741779e5673b91b43abdd871f776839e87631 | 0d0f9c23916555f7dee2306771a62200ca902396 | refs/heads/master | 2022-09-17T02:55:32.145669 | 2020-05-31T04:52:22 | 2020-05-31T04:52:22 | 263,547,214 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | cpp | trinode.cpp | #include "trinode.h"
#include <QFile>
#include<QTextStream>
TrieNode::TrieNode()
{
}
TrieNode::~TrieNode()
{
for (auto i = ChildNodes.begin(); i != ChildNodes.end(); i++)
delete i->second;
if (Files != nullptr)
delete Files;
}
void TrieNode::AddWord(const QString &word, const QFileInfo &File, int ind... |
da163bbeed2ede4f8b29da15cbdc474ce9187790 | 003675a2e2be3f835efd723626f0ee6d862e914f | /Codeforces/A/117A.cpp | 5638537476a86c3a9cd906277a4f3d53021fde52 | [] | no_license | AkibShahrear/Competitive-Programming | 6f4b26af1ae011d3cf45885dc86c4f64fca4334d | 7fba94f669881dd7e7cb63b264c288c380c5d544 | refs/heads/main | 2023-08-12T16:57:41.020418 | 2021-10-18T19:49:44 | 2021-10-18T19:49:44 | 323,955,265 | 0 | 0 | null | 2020-12-23T17:17:59 | 2020-12-23T16:49:51 | null | UTF-8 | C++ | false | false | 670 | cpp | 117A.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int , int> pi;
#define pb push_back
void solve()
{
int n , m;
cin >> n >> m;
int d = 2*m - 2;
for(int i = 0; i < n; i++)
{
int s , f , t;
cin >> s >> f >> t;
int p = t/d*d;
if(s ==... |
5623b8fdfd461d22a5d7c0e8258fe75a6efa9fb0 | 94dbc91d93df5778a2519a7112227c82f0600c65 | /common/command.cpp | 23dd8483c31f52bfa584ef14722080644f6d2146 | [] | no_license | kevinptt0323/NP-Project2 | 1a10e0e255784d7f1ffc79a2e4ff739c99234087 | c1a63b9df6d0f4ac4317bb1891e49b0042c23024 | refs/heads/master | 2020-04-09T07:35:59.872473 | 2018-12-03T09:12:15 | 2018-12-03T09:12:15 | 160,162,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | command.cpp | #include "command.h"
#include <cstring>
#include <string>
#include <glob.h>
command::command() : file_in(""), file_out(""), user_pipe_in(-1), user_pipe_out(-1) {
}
command::command(const char* _cmd) : command() {
char *cmd = new char[strlen(_cmd)+1];
strcpy(cmd, _cmd);
char *argv, *ptr;
argv = strtok_r(cmd, " ", ... |
3f4248aa5279eed62477ff627b43dd6254396e68 | 9a2cf82a9f705b03b1ce95136f03ba7bdf7c9b11 | /bzoj/1013 [JSOI2008]球形空间产生器sphere.cpp | 9c230123330ab3b60ccfc2836884d958d6263815 | [] | no_license | lowsfish/OI | de89c4431110941335a76a6fc47d52e73f445206 | b00ee073bc8c37ea5992ef1fbdf9fb953a82aef4 | refs/heads/master | 2020-03-19T04:09:38.804926 | 2018-06-02T09:04:53 | 2018-06-02T09:04:53 | 135,800,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | 1013 [JSOI2008]球形空间产生器sphere.cpp | #include<cstdio>
#include<algorithm>
#include<cmath>
const int MAXN=10+5;
const double eps=1e-10;
typedef double Matrix[MAXN][MAXN];
double po[MAXN][MAXN];
inline double sqr(double x)
{
return x*x;
}
void gauss(Matrix A,int n)
{
for(int i=0;i<n;++i)
{
int r=i;
for(int j=i+1;j<n;++j) if(fabs(A[j][i])>fabs(A[r][i]... |
0aaf218e8cd4320d4c514ed8c3afab98a664ff6d | eded95d9e891342b51a686a4ae13c1eea96e1583 | /ValidateBinarySearchTree.cpp | 84e39d500ab7c7b87fc79a835c0e374522098e2d | [] | no_license | suzhiyang/leetcode | caedddf3b6abb783f92bf91acb84e0e0ef664835 | dc1cbaf25f6c2d12021cfffce88e54f0a29510e6 | refs/heads/master | 2021-01-18T22:46:51.577537 | 2016-08-03T15:40:59 | 2016-08-03T15:40:59 | 14,562,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | ValidateBinarySearchTree.cpp | #include <iostream>
#include "ds.h"
// class Solution {
// public:
// bool dfs(TreeNode *root, int l, int h)
// {
// if (root == NULL) return true;
// if (root->val <= l || root->val >= h) return false;
// return dfs(root->left, l, root->val) && dfs(root->right, root->val, h);
// }
... |
d0a6f67cd6f1fdcf9f65b565401967381dff490e | 97bbfa4d150b05427b3aaad489aa3bb87a54b808 | /FlickrImageViewer/include/ph/TextureStore.h | 0f63dd8dfa72d5c50a016241a2f6996248b7b015 | [
"BSD-2-Clause"
] | permissive | audionerd/Cinder-Samples | f41fdd59e426359a098aa18cbe28340ba9951c5b | 73a24877c94fc10947b2ad1f0b0dbf085699ca8b | refs/heads/master | 2021-01-15T23:45:11.023931 | 2012-12-03T20:41:37 | 2012-12-03T20:41:37 | 7,808,727 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,150 | h | TextureStore.h | /*
Copyright (c) 2010-2012, Paul Houx - All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of sourc... |
f24f2a5c431566fe78ac085271c7388f8f23460d | 5d5baef098c65be072a7ce12899d320847e8636d | /Editor/energy_status_dlg.cpp | a5d3d8fb89869166a23911960f6e638ad59c0ef8 | [] | no_license | OlafvdSpek/xcc | e43bfdaf2fbac4c413fc7855ddf378b6d7975024 | 76adf95fc048d8c1143b3bcc8e777f870245680d | refs/heads/master | 2023-03-23T13:10:33.983570 | 2023-03-12T08:30:29 | 2023-03-12T08:30:29 | 44,600,393 | 44 | 18 | null | 2016-02-17T17:16:10 | 2015-10-20T10:59:00 | C++ | UTF-8 | C++ | false | false | 1,928 | cpp | energy_status_dlg.cpp | #include "stdafx.h"
#include "energy_status_dlg.h"
#include "xcc_structures.h"
Cenergy_status_dlg::Cenergy_status_dlg(const Cxcc_level& level)
: CDialog(Cenergy_status_dlg::IDD, 0),
m_level(level)
{
//{{AFX_DATA_INIT(Cenergy_status_dlg)
//}}AFX_DATA_INIT
for (int i = 0; i < c_side_id; i++)
m_power_in[i] = m_po... |
3abd2abca5c32ee69c92066f0e0535f2b3f131af | 564bddfa333cc31f847d68cd97ad5ecffaa30352 | /main/src/deps/gpusurf/gpusurf/src/gpu_stereomatch.h | 48ebb4714b8190c45ddbb873ffb58921ba41c3d0 | [
"Apache-2.0"
] | permissive | bhavitp/vtr3 | 11b452bd0a0f5233aed70cb6049620fa3bc1cb21 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | refs/heads/main | 2023-08-27T03:31:31.566239 | 2021-10-30T00:28:20 | 2021-10-30T00:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | h | gpu_stereomatch.h | #ifndef ASRL_SURF_GPU_STEREOMATCH_HPP
#define ASRL_SURF_GPU_STEREOMATCH_HPP
namespace asrl {
/**
* A function to find stereo matches between a rectified stereo pair of images that have had thier
* descriptors correlated.
*
* @param d_keypointsLeft Device pointer to the left keypoints.
* @param n_k... |
88b15e127e312429fc6beaae63e08c84d23a5ea0 | 2d6c0fd4a2e97a39df4c350162807d4f8ad55c6c | /src/matrix.cpp | 9de97951c68d9f10bb846d2d767c7b0c9a6c5440 | [] | no_license | gralm/Fraction | bbfa74c703f21947a16c5b37e423a4e65b2f1c50 | afff4691baf75eb69f14845fd150bc1142404cd9 | refs/heads/master | 2021-05-16T07:01:41.466289 | 2017-09-14T20:22:08 | 2017-09-14T20:22:08 | 103,572,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,549 | cpp | matrix.cpp | #include "matrix.hpp"
using namespace std;
template<class T>
void Matrix<T>::set(const Matrix<T> &M) {
for (int i=0; i<9; i++) {
x[i] = M.x[i];
}
}
template<class T>
Matrix<T>::Matrix() {
x = new T[9];
set(Unit);
}
template<class T>
Matrix<T>::~Matrix() {
delete[] x;
}
template<class T>
Matrix<T>::Matrix(co... |
649116247cc655d57c73a3e3b637ad56d2b5688d | ce74f818cd970f01a703fcecbbba833dc14a8ae6 | /voltage-sensor-with-esp32-wifi.ino | eab0aa7fbcb23f94fda061d1d742b4722a1b1471 | [] | no_license | Sandromesquita/ESP32 | 60ca0b4b16503fb81484faf5207777243f3101a8 | 9eedee73c3b2c68173022d6deca0cc4e442be9dd | refs/heads/main | 2023-05-05T07:30:09.253257 | 2021-05-24T18:56:37 | 2021-05-24T18:56:37 | 370,328,379 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,446 | ino | voltage-sensor-with-esp32-wifi.ino | #include <WiFi.h>
const char* ssid = "ATACON-2.4G";
const char* password = "05270902";
WiFiServer server(80);
int readPinSensor; //Variável para leitura da porta analógica
float volts, volts2; //Armazenar o cálculo
void setup() {
Serial.begin(115200);
pinMode(33, INPUT);
Serial.println();
S... |
a8df078ee86083e8d64f21d7cafc95eb4652846e | c29d3927edc897dca78865b4d19a243462f6ac93 | /hylafax/src/libhylafax/TypeRules.cpp | 54d9b8a7e5429c3f51fb1a4dc1c4ccd80bbd4611 | [] | no_license | trandaihiep/hylafax | f74b58935e8b4794fe809ad7ec8afedfd6afc937 | 1409e7664404db7887116a56fa47e9272e7b5883 | refs/heads/master | 2021-01-01T17:53:22.699025 | 2017-07-27T17:52:36 | 2017-07-27T17:52:36 | 98,186,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,499 | cpp | TypeRules.cpp | /* $Id$ */
/*
* Copyright (c) 1990-1996 Sam Leffler
* Copyright (c) 1991-1996 Silicon Graphics, Inc.
* HylaFAX is a trademark of Silicon Graphics
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the ... |
2d3e55e6e703c6bc8b7de4555a0d32419537bd00 | 4b8ed0675608801b3678d3826e24e7e7c405b9a9 | /BOJ/1261.cpp | 972112711a7a0cda738c72ddaf2fe4842ae54cbb | [] | no_license | youngwo-o/Algorithm | 33d8f4e056e54c6553ac06234b305b756160200c | 0a9c387df644f15782ab92f32dfff846eb509c31 | refs/heads/master | 2023-04-16T17:11:14.309247 | 2021-04-24T13:15:53 | 2021-04-24T13:15:53 | 264,844,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | 1261.cpp | #include <bits/stdc++.h>
#define MAX 100
using namespace std;
typedef struct _info {
int r, c, cnt;
}Info;
struct compare {
bool operator()(const Info& a, const Info& b) {
return a.cnt > b.cnt;
}
};
int N, M;
string arr[MAX];
int visited[MAX][MAX];
int d[4][2] = { {-1, 0}, {1, 0}, {0, -1}, {0, 1} };
void solut... |
ab66168cd9c97a1fa04f034e2387e3af9a66ca28 | a7b9ab2b2bf1302ba2d4267fd77916245f96fa00 | /assignments/program_4/main.cpp | d70bac5451fcdece42ffa133637c90999012b88d | [] | no_license | saikiranpalimpati/3013-Algorithms-palimpati | 448dfcbecefe6ba2d856114cbfdb7c30449d0e94 | 7772addf939b6b132163f71e396228b87b828fbe | refs/heads/master | 2023-07-20T05:40:46.374101 | 2023-07-07T05:19:11 | 2023-07-07T05:19:11 | 118,012,590 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,365 | cpp | main.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Title: Spanning Trees
// Files: csv.h, distance.h, edge_heap.h, graph.h,
// filtered_cities.csv, main.cpp
// Semester: (3013 Adv structures Algorithm) Spring 2018
//... |
351ebf25ce2e3410f072d71dd1b1b93911c7465f | 0a65d208bc5237583274656e2b12abd060953e7c | /Src/Turn.h | 40b4dbcb66a81734c77e029a3cfc31944b862e06 | [
"MIT"
] | permissive | acprog/kozel | 9065e079aebd8bdf7738a940bbc1de1e0d85e419 | 3617ebc82c4e855bdb6f1f18aa611fcb6ff5c781 | refs/heads/master | 2023-04-11T00:34:29.757838 | 2021-04-26T14:07:32 | 2021-04-26T14:07:32 | 361,771,622 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,393 | h | Turn.h | /* Kozel
Copyright (C) 2004
Author: Alexander Semenov <acmain@gmail.com>
*/
#ifndef TURN_H_
#define TURN_H_
#include "Kozel.h"
#include "card.h"
class player;
class card;
enum move_test
{
pass, // можно ходить
bad_suit,// ход не в масть
trump // первый ход козырем
};
//====================================... |
b5d1493f763b58a7942cdec9af28d9ff3139646d | 91b61b0a8ef30046cb9a168b9220b042893bebe8 | /Practica5/Ej2Ra/StringService.h | 36fae850cfafb9c457555a631aea825ebe42a7bd | [] | no_license | yosoyfucho/arq2 | 8bcd1cb70a2d090571933b187a139ab159a061b3 | 082864d124d48022ea40d2f35845ffff24816bae | refs/heads/master | 2020-06-04T21:55:37.471974 | 2015-05-12T07:48:01 | 2015-05-12T07:48:01 | 28,831,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,773 | h | StringService.h | // **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... |
f4a0f9809be613e4db587aa2bf47ba327466a3bf | 8b97a20de9ca5b9821bcb67bf1a038163b1cde1b | /source/debug.cpp | 3bd8380bc5b5eefc35102e57d316574fa77477c8 | [
"Zlib"
] | permissive | nevilc/YomiDS | 564c922a3de5aa075933ea963641d8959976b45f | e689b8a6feb7d5af3b1f66a8a073fb4bb18c6ae8 | refs/heads/master | 2020-05-30T18:05:57.825567 | 2011-09-30T06:49:46 | 2011-09-30T06:49:46 | 2,487,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | cpp | debug.cpp | #include "debug.h"
void dprint(const char* msg){
#ifdef DEBUG
nocashMessage(msg);
#endif
}
|
c964ad81c33bc15070e585062d4fa50635ad926f | b7302b693143b939ba2a2637629ad2be6870096c | /19_STL/0120_Queue.cpp | 7041f58071c348d5d088e56bc3b7c8c2fe36f62b | [] | no_license | abdulhathidev/CPlusPlus | 832f18e2f907315be961be60c6bdcd73eb1161d3 | 69584a4691bc00642ccdbf7e3d82de716d853c6c | refs/heads/master | 2021-02-17T13:12:53.288195 | 2020-05-15T07:35:19 | 2020-05-15T07:35:19 | 245,099,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | 0120_Queue.cpp | #include <iostream>
#include <queue>
using namespace std;
int main()
{
queue<int> vtr;
vtr.push(1);
vtr.push(2);
vtr.push(3);
vtr.push(4);
cout << "Iterator iteration " << endl;
deque<int>::iterator itr;
vtr.pop();
} |
a0546e43a620aadc22cba51325d9351ae242e262 | df4aa979e74131e8374a6958c38524ccf5807b51 | /fs_libclient.cpp | c12e751ef065ba840ec03cf067c942efb7d387b8 | [] | no_license | Maczaj/tin | d6f20dbf89b8288ec6e38668eafe35e5f2d97ecc | d157d3a30eb70ea2f91aa1e3e9907219f9489b22 | refs/heads/master | 2020-06-05T08:52:45.532046 | 2014-01-28T09:27:14 | 2014-01-28T09:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,199 | cpp | fs_libclient.cpp | #include "fs_libclient.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sstream>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include "fs_... |
18edbf5ab46198399965c83e33e37dd62ff8313e | 0311f53131299355e9757ca68bfe2aba0561f592 | /include/Chi2FitFigureOfMerit.h | cd9d8796ce44cfb0eadd43b33b32cacf722325e8 | [] | no_license | remizaidan/GeneticAlgorithm | ef85e6c0ec95bcc0864e08fd570559334c7cbdfb | 581067035ed1e74b36f48618d1183bfb922395a1 | refs/heads/master | 2021-07-12T20:35:38.345019 | 2017-10-15T22:48:48 | 2017-10-15T22:48:48 | 107,034,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,385 | h | Chi2FitFigureOfMerit.h | #ifndef CHI2FITFIGUREOFMERIT_H
#define CHI2FITFIGUREOFMERIT_H
#include "IFigureOfMerit.h"
#include <vector>
class IModel;
/**
* @brief Class implementing a \f$\chi^2/ndf\f$ figure of merit.
*
* The \f$\chi^2/ndf\f$ is computed by comparing a model to a dataset:
* - The data consists of \f$(\vec{x_i}, y_i)\f$ pa... |
4c83a30cc232de48f2d63a510e597efb192349b5 | d19298e8f6735938d43aef98edb876d93df90bdd | /Spelunky/Spelunky/Inventory.h | e4fd763c68d8f888405a57f409ec55ec893a2987 | [] | no_license | sleepppp/SpelunkyProject | 70c0ec0f9ff213e3872d021c7944f6641eef323b | 5f0e286d43f8bc0b8a721a43d403936a0918dd4f | refs/heads/master | 2020-05-01T04:07:27.181722 | 2019-05-08T03:47:05 | 2019-05-08T03:47:05 | 177,265,149 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 633 | h | Inventory.h | #pragma once
#include "GameObject.h"
class Inventory
{
static const UINT _maxItemCount;
private:
Synthesize(int, mBombCount,BombCount)
Synthesize(int, mGold,Gold)
Synthesize(class Player*, mPlayer,Player)
private:
vector<class Item*> mItemList;
class Item* mMainWeapon;
public:
Inventory();
virtual ~Inventory();... |
5b831877ebe0cdb8f92a256edc3e576bb85fbd4e | 2a9f612bf4464a2e558d41a997824a01bf9c08c6 | /JobTicket.h | bbb874315c03f9f2798f9ac52244d6eddc8a2cb3 | [] | no_license | yamamushi/lib-CppFCPLib-official | a88ff43c173f491325d7651fe8ebe77234bbad80 | 3a2f0a55c782bbe84e2035823987e22eb735de54 | refs/heads/master | 2020-05-19T19:02:24.838315 | 2008-01-30T17:48:02 | 2008-01-30T17:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,352 | h | JobTicket.h | #ifndef JOBTICKET_H__
#define JOBTICKET_H__
#include "Message.h"
#include "Exceptions.h"
#include "ServerMessage.h"
#include <vector>
#include <iostream>
#include <boost/shared_ptr.hpp>
#include "zthread/Guard.h"
#include "zthread/FastMutex.h"
#include "zthread/Mutex.h"
#include <boost/function.hpp>
namespace FCP... |
2dfeb73d231ae4130da77467432e4ca0a69f8830 | 57a1e16275297ab1717534317c7e75a0c9f8bdc9 | /trunk/utils/main_specdump.cpp | 7ae19b6de7a67ba27ed647723d98a29d6d9cfdca | [] | no_license | CCMS-UCSD/CCMS-sps | 8014c8d638fd7a9bcb5e2499e17a224da2aeb285 | d178b0dacc41e5660840fcaa5f034491fc82b39d | refs/heads/master | 2021-01-01T05:14:40.439091 | 2016-04-28T22:42:55 | 2016-04-28T22:42:55 | 57,243,146 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,873 | cpp | main_specdump.cpp | //
// main_specdump - stand alone executable for dumping spectrum data
//
#include "CommandLineParser.h"
#include "Logger.h"
#include "spectrum.h"
#include "SpecSet.h"
#include "SpectrumPairSet.h"
#include <stdlib.h>
using namespace specnets;
using namespace std;
// --------------------------------------------------... |
cfa19b08093a820655ca24d88dc36b25fde199df | 6f6a88ba519d9569b8bf17a1dd87537c24f28098 | /RecoDataProducts/inc/TrackSummary.hh | c11d9c294e7f6cd4f7f77911292c4233a1cda89a | [
"Apache-2.0"
] | permissive | Mu2e/Offline | 728e3d9cd8144702aefbf35e98d2ddd65d113084 | d4083c0223d31ca42e87288009aa127b56354855 | refs/heads/main | 2023-08-31T06:28:23.289967 | 2023-08-31T02:23:04 | 2023-08-31T02:23:04 | 202,804,692 | 12 | 73 | Apache-2.0 | 2023-09-14T19:55:58 | 2019-08-16T22:03:57 | C++ | UTF-8 | C++ | false | false | 4,966 | hh | TrackSummary.hh | // TrackSummary is a persistable class to communicate track
// reconstruction results to physics analyses.
//
// Andrei Gaponenko, 2014
#ifndef RecoDataProducts_TrackSummary_hh
#define RecoDataProducts_TrackSummary_hh
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include <ostream>
class... |
3adc54b9ea4aae97eed5c069ceb55ff0b24f58b9 | 2934ec58bb185843dd701db8848d9813397e35d5 | /src/Front/MainElements/addbuttonhover.h | 470b08fd6407804e6dbd96b3df6190336b5a137e | [
"Apache-2.0"
] | permissive | YagaTeam/Breeks-desktop | d72c49d94f65916ad9efd696f95002a73c2b45f1 | e01c8c88e25c30662806f2ab14f5b00675dbb8e5 | refs/heads/master | 2023-02-02T23:45:23.618796 | 2020-12-21T14:45:23 | 2020-12-21T14:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | addbuttonhover.h | //VIEW
#ifndef ADDBUTTONHOVER_H
#define ADDBUTTONHOVER_H
#include <QPushButton>
class AddButtonHover : public QPushButton
{
Q_OBJECT
public:
AddButtonHover(QWidget *parent = nullptr);
void enterEvent(QEvent *);
void leaveEvent(QEvent *);
private:
const QString styleSheetDefault = "border-image:url(:/Image... |
ad671907f4fc146603c80b600c8f6203f7ff7f7a | 18dd134398f830b8f31a5353e02e69bcd6f466c3 | /IOServerLib/PipeNetworkLib/DatabaseMgr.cpp | e64b5ce08d956210cd7470f6bb23f10409b31ce5 | [] | no_license | wfmdyh/wecan | 8b22e6423932acd02895f38b24bdc855320a3a6d | 71da5168d0e9ba7150fc2f2d4d55398b1d0cbf27 | refs/heads/master | 2021-01-09T20:11:30.661551 | 2016-06-22T06:43:56 | 2016-06-22T06:43:56 | 61,694,501 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,049 | cpp | DatabaseMgr.cpp | #include "stdafx.h"
#include "DatabaseMgr.h"
#include "DevPipeNet.h"
#include "DevPressureAlarm.h"
#include "DevMultipleParam.h"
#include "DataDef.h"
DatabaseMgr::DatabaseMgr()
{
}
//打开数据库连接
bool DatabaseMgr::OpenDB()
{
m_DBSession = gcnew Session();
return m_DBSession->Open();
}
//关闭数据库连接
bool DatabaseMgr::Clos... |
9a55c3fb30e2bfea30909d0c5732fd2f98a9c9a6 | ebfb9804b82a1e2052666ae881a86b64b59cd017 | /Modules/02_BatMan/Firmware/BatMan/src/chargeController.cpp | c2006e2d543a8844439341863ff94ee347bc94f0 | [] | no_license | hfjg/cucaro | 9e0f65c4043950ab16315d168094e20103a744e3 | ca5a1d4e5a35b2e298aa7308bc3b843e9d4c98a5 | refs/heads/master | 2022-12-14T15:38:42.986564 | 2020-09-09T15:22:04 | 2020-09-09T15:22:04 | 276,583,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,524 | cpp | chargeController.cpp | /* charge Control
*
*/
#include <Arduino.h>
#include "chargeController.h"
/**
Constructor
**/
chargeController::chargeController(
uint8_t pwmPin,
uint8_t pwmInverted,
uint8_t enPin,
uint8_t enInverted
){
_enPin = enPin;
_pwmPin = pwmPin;
_enInverted = enInverted;
_pwmInverted = pwmInverted;
// di... |
5e25d1ad764bc40f3643ab7f8f2ed84416466f24 | f806d792bf22bc8306a0926f7b2306c0b3dd4367 | /CS203/Lab 4/C.cpp | 89aba041af441fb87b070c1fc4ad3b0827295a42 | [
"MIT"
] | permissive | Wycers/Codelib | d7665476c810ddefd82dd758a4963f6b0e1b7ac1 | 7d54dce875a69bc998597abb1c2e2c814587c9b8 | refs/heads/master | 2023-03-05T13:57:44.371292 | 2022-09-22T02:23:17 | 2022-09-22T02:23:17 | 143,575,376 | 28 | 4 | MIT | 2023-03-04T22:05:33 | 2018-08-05T01:44:34 | VHDL | UTF-8 | C++ | false | false | 804 | cpp | C.cpp | #include <cstdio>
#include <queue>
using namespace std;
inline int read()
{
int x = 0, f = 1; char ch = getchar();
while (ch < '0' || '9' < ch)
{
if (ch == '-')
f = -1;
ch = getchar();
}
while ('0' <= ch && ch <= '9')
{
x = x * 10 + ch - 48;
ch = getch... |
810443774b8c98a47e05ee654e09c0eb834e49e4 | f8b018f9910c3944b2ec0eea35e589b9e2365b0c | /include/wx/charts/wxchartaxis.h | 195f5234d1dcfdedf49bf87316e50d471d234590 | [
"MIT"
] | permissive | sergiosvieira/wxCharts | b307562319511f96468d163a937087aad85cc478 | d918321b3cd5838af9dbc72ac23aef5e8bd3d619 | refs/heads/master | 2021-06-20T08:06:50.610302 | 2017-07-23T20:34:02 | 2017-07-23T20:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,530 | h | wxchartaxis.h | /*
Copyright (c) 2016 Xavier Leclercq
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, publish, distri... |
bb6f55764e4335bddc17ea935de10e681aec107c | 452c6d1c2cca5144972977a0ae50a5b72d695c28 | /union_disjoint.cpp | a3ad213e2d151d0ad0fb470bbbb9ae7ef2c258d0 | [] | no_license | tanya9020/APS2020 | 0a9707e639df6ff69608146c99d4d29388e69d60 | c24b1dae0376042ad222f8b633671ea6784122b4 | refs/heads/master | 2020-12-21T16:27:09.037561 | 2020-04-28T15:02:34 | 2020-04-28T15:02:34 | 236,489,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | union_disjoint.cpp | #include <iostream>
using namespace std;
#include <bits/stdc++.h>
void union1(int a[], int n, int u, int v)
{
int temp=a[u];
for(int i=0;i<n;i++)
{
if(a[i]==temp)
a[u]=a[v];
}
}
int find(int a[], int u, int v)
{
if(a[u]==a[v])
return 1;
else
return 0;
}
int... |
bc6764fd37c12394a628843a4ffd9788673d9020 | 5c93333a71b27cfd5e5a017f29f74b25e3dd17fd | /CodeForces/87B - Vasya and Types.cpp | 5ac0babdec99371fde136fdc5b05ecb99e44f3a2 | [] | no_license | sktheboss/ProblemSolving | 7bcd7e8c2de1f4b1d251093c88754e2b1015684b | 5aff87cc10036a0e6ff255ae47e68a5d71cb7e9d | refs/heads/master | 2021-05-29T03:29:28.980054 | 2015-03-11T10:06:00 | 2015-03-11T10:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,522 | cpp | 87B - Vasya and Types.cpp | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
#define repa(i,a,b,d) for(int i=a; i<=b; i+=d)
#define repd(i,a,b,d) for(int i=a; i>=b; i-=d)
#define repi(it,stl) for(auto it = (stl).begin(); (it)!=stl.end(); ++(it))
#define sz(a) ((int)(a).size())
#define mem(a,n) memset((a), (n), sizeof(a))
#define ... |
a160268222a1e4755eed1daa5ac7b182c1890a1b | 3edc478db837a27dbf8df7eded45df909dfe3cf9 | /URI online/2577.cpp | ce59663230b74953aad33be5729e4a276899d960 | [] | no_license | ronistone/Maratonas | b60ebeb9e7e9298399652df88faa83389bd94542 | 8bd0bedd476645081a09b19152a007ca1497fe20 | refs/heads/master | 2021-01-12T10:06:04.016208 | 2018-10-19T02:40:54 | 2018-10-19T02:40:54 | 76,360,276 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,192 | cpp | 2577.cpp | #include <bits/stdc++.h>
using namespace std;
#define UNVISITED -1010101
#define N 100100
typedef long long int ll;
map<int,vector<ll> > v_component;
map<pair<int,int>, bool> bridge;
int articulation_point[N];
vector<int> graph[N];
vector<ll> components_val;
vector<ll> components;
int parent[N];
int root_children;
... |
1eb52365a6cc7a42a1ae7595e8d6e7a30ef18b26 | 7524106d9776f24311be4e6050cedd2a10e31282 | /problems/xjoi.net/x1.4/x1174/main.cpp | 3dd59052080d7dacd90c07d3479e4bc195a8f59a | [] | no_license | Exr0nProjects/learn_cpp | f0d0ab1fd26adaea18d711c3cce16d63e0b2a7dc | c0fcb9783fa4ce76701fe234599bc13876cc4083 | refs/heads/master | 2023-04-11T08:19:42.923015 | 2021-01-27T02:41:35 | 2021-01-27T02:41:35 | 180,021,931 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | main.cpp | /*
* Problem #1174
*/
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
bool is_prime (int num)
{
if (num == 1) return false;
else if (num == 2) return true;
else if (!(num%2)) return false;
else {
int final = (int) sqrt(num) +1;
for (int i=3; i <= final; i += 2)
{
... |
13c2d07dd37eb751a97d009a189fda0414f444d2 | 868e8628acaa0bf276134f9cc3ced379679eab10 | /firstCrude2D/we123/h10/0.298/p_rgh | 27fbad5a7ff43c6e2bde3799b942c2a5177855dc | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 592,118 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
4f9096766742e90e4b7a1b16ebba3800bb66e1e3 | 7f6fcbdee329bdeb17ab0da52ac230a4fa9201e2 | /lab/demo_thrift/gen-cpp/YiService_server.skeleton.cpp | 669496842afc7821d9b6143224327f57a04ce473 | [] | no_license | Jevstein/dnpractice | d37e1cbcc4eab1799191a9dab9897519991bf6c6 | 238d051b5ddf7ce9e4f26897d65f435670425e68 | refs/heads/master | 2023-01-09T07:17:59.374220 | 2020-06-21T15:18:12 | 2020-06-21T15:18:12 | 154,630,992 | 0 | 2 | null | 2022-12-26T20:39:28 | 2018-10-25T07:50:06 | C++ | UTF-8 | C++ | false | false | 1,687 | cpp | YiService_server.skeleton.cpp | // This autogenerated skeleton file illustrates how to build a server.
// You should copy it to another filename to avoid overwriting it.
#include "YiService.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/T... |
b3b00ebd5b5ccdd46cb0db59699492a06fbcf86b | 9805e69ddb434de50bced715040da538032a4254 | /Registration_System_4_C.cpp | 9bbde672d3aee2810248c3f2b88acee3e4e4ab62 | [] | no_license | Vivekvar/Code-it-Out | 55b2609fd88fab2a408223b427f4eca75e928604 | 56f284b1f85417564f64a8cfe897939b5bd9465c | refs/heads/master | 2022-06-10T01:36:06.840960 | 2020-05-07T05:11:43 | 2020-05-07T05:11:43 | 255,251,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | Registration_System_4_C.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin>>n;
string s;
map<string, int>m;
while (n--) {
cin>>s;
if (m.empty()) {
m[s] = 0;
cout<<"OK"<<endl;
}
... |
1b3625adbf0b3d53f112fc8f39efad321145f5ff | addef918477eb71f9be2afe9558e1b98f5aa74c1 | /Codeforecs/3C.cpp | fc175ad08f176e18be13e80af51c31c7de9c0beb | [] | no_license | iammarajul/competitive_programming | 3977b9e1c15808d3a7084af7d1dd64c40a5dccb8 | 4d48578e48b3392bedf82b22281bb16c82ed2a1b | refs/heads/master | 2020-06-04T08:26:05.568287 | 2020-03-08T19:38:18 | 2020-03-08T19:38:18 | 191,943,679 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | 3C.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s[3];
int cnt1=0,cnt2=0;
cin>>s[0]>>s[1]>>s[2];
for(int i=0;i<2;i++)
{
if(s[i]=='X') cnt1++;
else if(s[i]=='0') cnt2++;
}
if(cnt2>4 || cnt1>5 || cnt2!=cnt1-1)
}
|
2be61372e811bd30de8202c05fd6e9c8ce5e6bd0 | fae3e1edb067d3b7208341d3179861bf42639787 | /Unit2.cpp | d4d20f37a46daf4ba4f567d707da01416bb34ed1 | [] | no_license | yuravons/Sale-real-estate | 2a72adabb04f70c45318d70c7551f9299d1fc03c | 64f253241029d7cdc171ce8e8b88411cfb7527d1 | refs/heads/master | 2020-04-06T20:13:43.501945 | 2018-11-15T20:10:22 | 2018-11-15T20:10:22 | 157,766,192 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 32,351 | cpp | Unit2.cpp | #pragma hdrstop
#include "Unit2.h"
#pragma package(smart_init)
#include <fstream>
#include <map>
#include <sstream>
using namespace std;
//перевірка чи стрічка є числом
bool isUint(const string &s)
{
return s.find_first_not_of("0123456789") == string::npos;
}
//приведення до типу string
string CColection :: toSt... |
006d1ba2486b8d88e38fd826ab776b0f9e7a64f6 | ffecc2faee340865d375270c4b3af358ceb2c8df | /src/plug/game/drawer/drawer_synth.cpp | 97d92be5b273c81c6030a82665bec6b90d811dcb | [
"MIT"
] | permissive | ompu/ompu | c81a184162ff7b166b85e8748b2aefd6b6869010 | c45d292a0af1b50039db9aa79e444fb7019615e9 | refs/heads/master | 2018-12-18T13:56:36.786538 | 2018-09-14T15:37:33 | 2018-09-14T15:37:33 | 103,842,388 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | drawer_synth.cpp | #include "ompu/plug/game/drawer.hpp"
#include <boost/core/ignore_unused.hpp>
namespace ompu { namespace plug { namespace game {
void Drawer::partial(ompu::ui::ModWheel const& c) const
{
boost::ignore_unused(c);
}
void Drawer::partial(ompu::ui::PitchWheel const& c) const
{
boost::ignore_unused... |
ebc7f8202cc17341f9ec35f47998f06e2fd7b616 | 9e9c547c04137d8b3c86697ec9dfbc3a66af2226 | /spintegers/cpp/sparseInt.h | d89628672eb9f486e507381b1dbd48a9a854be88 | [] | no_license | matthewjpyates/sparseintegers | 55d839fc3ee8207e1ce31c6431b6cd17fdaffcda | fe9d232da7eaf0399eb9deba2dbd15a64a3c5478 | refs/heads/master | 2022-06-11T02:05:59.421362 | 2020-05-01T09:10:43 | 2020-05-01T09:10:43 | 260,418,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,326 | h | sparseInt.h | #ifndef SPARSEINT_H
#define SPARSEINT_H
#include <vector>
#include <utility>
#include <string>
#include <iostream>
#include <math.h>
template<typename S=unsigned short, typename T=unsigned long>
//template<typename T=unsigned long>
class SparseInt {
public:
T topBit;
std::vector<S> diffs;
st... |
5401e1841550a08bc7a0b7a35f50b7d853b18aee | 181c548cbaa0c20607def382c18421296438b3a9 | /src/MyGlWindow.cpp | d9396e14a88de09d45e20fecc4f1652368c4cbf9 | [
"MIT"
] | permissive | kbladin/shading_tests | 04606e9caa9166e9d8cd2a5bbec5b8adaa656825 | a6bb8be87843ad4c49b7b6201e235ae84659c4c3 | refs/heads/master | 2021-01-10T19:41:27.923118 | 2019-02-25T06:21:50 | 2019-02-25T06:21:50 | 20,775,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,479 | cpp | MyGlWindow.cpp | #include <iostream>
#include <sstream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <AntTweakBar.h>
#include "../include/Scene.h"
#include "../include/MyGlWindow.h"
#include "../include/SettingsManager.h"
Scene* MyGlWindow::scene_;
bool MyGlWindow::mouse_pressed_;
TwBar* MyGlWindow::load_file_bar_;
MyGlWin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.