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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcd486866fd4f42604ccae795a1e872f8b14d31f | fffbab67902c901602a260834d6a61dbd22fdad1 | /src/movement/src/base_twist.cpp | c8f314350216948880e40167b4bdba621f9be163 | [] | no_license | NewYdd/DetectRobot | 5b5e8243b651207edb2b48bebb8c61e7e3f0fb24 | 45e40728b1612f9c73dd70e389c63e338f2ff884 | refs/heads/master | 2021-01-20T12:56:41.243845 | 2017-02-21T11:19:59 | 2017-02-21T11:19:59 | 82,670,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | base_twist.cpp | /*This node will convert the linear and angular velocity command to individual
motor velocity target.The target velocity are published at a rate of the ~rate Hz
and pulish timeout_ticks times velocity after the twist message stop*/
/**Note: since the same slide wheel has same speed ,so just two wheel variables
... |
080a57f21971c5e0b2ebae293c71e92370f7c9ec | c69f53d439e98a5603fd5b51bb0eb531ef69a934 | /Platformowka/bullet.h | 685ac498c81d00c33fb9bad13e057fb24207cc34 | [] | no_license | Azurioo/Somesimplegame | 7784b8cb40c4b0bfbdbbe463c80e057b3325f76d | d5ba68c4c63896f16141b84ce7ef7a21e52378bd | refs/heads/master | 2020-04-14T17:00:49.022737 | 2019-01-03T12:39:50 | 2019-01-03T12:39:50 | 163,967,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | h | bullet.h | #pragma once
#include <SFML/Graphics.hpp>
class bullet: public sf::Drawable
{
sf::CircleShape shape_;
float shape_radious_{ 3.0f };
float shape_velocity_{ 0 };
std::string shape_direction_;
bool destoryed_{ false };
bool wall_hack_{ false };
int bullet_durability_ = 7;
sf::Vector2f velocity_{ shape_velocity_... |
aa0d2ddc2ac86469feb3627e665e98c071f89127 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/interpol/include/functions/simd/bsearch.hpp | 995cb4e7c265794c7460e31ef6d3bc5909a168df | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 239 | hpp | bsearch.hpp | #ifndef NT2_INTERPOL_INCLUDE_FUNCTIONS_SIMD_BSEARCH_HPP_INCLUDED
#define NT2_INTERPOL_INCLUDE_FUNCTIONS_SIMD_BSEARCH_HPP_INCLUDED
#include <nt2/interpol/functions/bsearch.hpp>
#include <nt2/interpol/functions/generic/bsearch.hpp>
#endif
|
9c647a0f2701ef3fb58fcaae7feb78f10015be33 | 4d2bae21685dbe97e8eb5ba9c7e8e9d847bcfbdb | /Visual_Studio_2013/Projects/sdclient/clientcom/ActionHandler.cpp | 272a4caf417a6836afc498d11cacd73a0ff553e4 | [] | no_license | jamesxucq/Server_Workspace | b744a26ae739e2fa7e5b3053334f1ddae3af458d | fc1b58716132eb5ec398b939813ef52fb68d5cad | refs/heads/main | 2023-05-26T20:57:41.730820 | 2021-06-17T05:42:58 | 2021-06-17T05:42:58 | 377,662,201 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,450 | cpp | ActionHandler.cpp | #include "StdAfx.h"
#include "AnchorBzl.h"
#include "third_party.h"
#include "ShellLinkBzl.h"
#include "ExecuteTransmitBzl.h"
#include "ActionHandler.h"
// 文件发生改变,触发同步事件
#define SET_ACTION_EVENT { \
if(!m_dwLastActio) NExecTransBzl::SetWaitingEvent(); \
m_dwLastActio = GetTickCount(); \
}
//
CActionHandler::CActi... |
b06afc58c99f3de8ad489a814dcee98f2f6d0fd9 | 0abb6765c4fe79141f517f28786b6190c99aed76 | /codeforces/938/938A.cpp | 04bdfdc3df56998732bcef040e9d0e7b1488da7a | [] | no_license | BlitW0/cp-codes | 26b3492997a6c6e613fd38b30846391773784bb2 | 16c7c5cc47a6ad8e2e69035d470e6aa2b47ff33a | refs/heads/master | 2020-07-16T04:00:01.467520 | 2019-09-01T18:18:08 | 2019-09-01T18:18:08 | 205,714,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | 938A.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n; cin >> n;
set <char> vo; int fl;
vo.insert('a'); vo.insert('e');
vo.insert('i'); vo.insert('o');
vo.insert('u'); vo.insert('y');
char prev, c; cin >> prev;
cout << prev;
for(int i = 1; i < n; i++)
{
cin >> c;
if(vo.... |
f3206d39585099a52c52efce977f8dc41dd09700 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/webid/federated_identity_identity_provider_registration_context.cc | 771750e8fa911ed4d953e303e3f3f20abbdbb462 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 3,500 | cc | federated_identity_identity_provider_registration_context.cc | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/webid/federated_identity_identity_provider_registration_context.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/content_s... |
a6b95873598310c3b3bd6e0d355125af5e6fe78c | 6e3d0b8919dc94bc78d1ca36a2e239f09b6ee7bc | /include/CathodeHit.hh | 353e71d6d65c4ba6edd0c34378a73dc27ff143c9 | [] | no_license | alicelynch/PlasticScint_Fibre | 6c0941f97b540365cd8b88b04777bd3fba11a3d6 | 802d60850da881dc2bf2d59dc36e8d4b9e600ea0 | refs/heads/master | 2021-01-10T20:28:46.466001 | 2015-03-25T14:22:59 | 2015-03-25T14:22:59 | 32,801,673 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,806 | hh | CathodeHit.hh | #ifndef CathodeHit_h
#define CathodeHit_h 1
#include "G4VHit.hh"
#include "G4THitsCollection.hh"
#include "G4Allocator.hh"
#include "G4ThreeVector.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class CathodeHit : public G4VHit
{
public:
CathodeHit();
~CathodeHit();... |
b500912b86b011355695c761b98ae55a0533fc3f | bd04463061c9c1ab45d44ce1856a3e82f4a73f18 | /stdlib/public/Darwin/Foundation/NSError.h | 01e9f2b259a508b48ce216612af3f1481fff1e6a | [
"Apache-2.0",
"Swift-exception"
] | permissive | swift-embedded/swift | 633dc5302a3bb88c500d84dbc50ed31ec6e52092 | 385ee9dafe6431ebec9b871b81ef389c2ead5668 | refs/heads/embedded-5.1 | 2022-05-07T11:57:23.429204 | 2020-01-12T23:14:25 | 2020-01-12T23:14:25 | 212,096,608 | 11 | 6 | Apache-2.0 | 2022-11-26T23:19:49 | 2019-10-01T12:58:43 | C++ | UTF-8 | C++ | false | false | 1,827 | h | NSError.h | //===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
89133683e94a5621a8de347b12d08bb0976fca13 | 64058e1019497fbaf0f9cbfab9de4979d130416b | /c++/src/objmgr/split/blob_splitter_parser.cpp | 4dc9e6aa66df7a6c220acbecd11cb9f0ebe7149f | [
"MIT"
] | permissive | OpenHero/gblastn | 31e52f3a49e4d898719e9229434fe42cc3daf475 | 1f931d5910150f44e8ceab81599428027703c879 | refs/heads/master | 2022-10-26T04:21:35.123871 | 2022-10-20T02:41:06 | 2022-10-20T02:41:06 | 12,407,707 | 38 | 21 | null | 2020-12-08T07:14:32 | 2013-08-27T14:06:00 | C++ | UTF-8 | C++ | false | false | 21,659 | cpp | blob_splitter_parser.cpp | /* $Id: blob_splitter_parser.cpp 369165 2012-07-17 12:12:12Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Governmen... |
4cce85c95713b96eece5c9b2f2982d0bb72d8b54 | 074ea8f703b9b993466269d3e4ae512f9bd70a57 | /AEDs-01/leonardoAguilar_roteiro4/leonardoAguilar_ex30.cpp | aaaaab7f7c6010ec59a9c6b8347041cb7cd8ade9 | [] | no_license | leonardoamurca/BSI | ed8f2dbd4bad867fb2f5bea813bc52d219b8958e | d8a8e025ab535c758529652479ea6448d7fe6342 | refs/heads/master | 2021-06-11T03:35:50.736700 | 2019-04-04T00:01:31 | 2019-04-04T00:01:31 | 128,274,716 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,151 | cpp | leonardoAguilar_ex30.cpp | /*
Leonardo Aguilar
Calcula o número de combinações e arranjos de n objetos diferentes, onde p
objetos são escolhidos de cada vez.
Entrada: N e P
Saída: Número de combinações e arranjos
*/
#include <iostream>
#include <locale.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
int main(){
//Inclusão de ... |
03c20bd48bdaf0a98cfbb0e1b20b4bd5c27da774 | ba56b4ecfbf637ead7138bfd7cc206f38a68e2cc | /SimpleArraySum.cpp | 8446ab8f9f641886d188ffb6ea1edd7ebbf80729 | [] | no_license | AzizulTareq/virtual-judge | dd305f0bcab4516040af0fbb5faf831803748cf4 | db11bfdb9a4a24c2641353fbc0dde995dff20a2c | refs/heads/master | 2020-06-09T23:47:51.157708 | 2019-09-02T13:25:14 | 2019-09-02T13:25:14 | 193,529,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | SimpleArraySum.cpp | #include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int ar[n];
if(0<n)
{
int sum = 0;
for(int i=0; i<n; i++)
{
cin>>ar[i];
sum += ar[i];
}
cout<<sum;
}
}
|
04fecdcd2b682f0c4932d5754f48b38d8ee97180 | 4fa9c944984bdd7b9439a2d27f7f93b7c5ebfc10 | /app/sys/sys_core/src/ecal_sys.cpp | 7fec83e2b6318fe75b8546b84de6085303b7e1bf | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-proprietary-license",
"BSL-1.0",
"LGPL-3.0-only",
"LGPL-2.0-only",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | continental/ecal | 99f58902e01c791a8b5f7a72699631c179569062 | cb11fbef1b394d6d4336ff0e6e187f45799811b6 | refs/heads/master | 2022-08-14T23:34:39.725494 | 2022-07-28T17:39:27 | 2022-07-28T17:39:27 | 518,888,778 | 6 | 4 | Apache-2.0 | 2022-07-28T17:39:28 | 2022-07-28T14:56:12 | null | UTF-8 | C++ | false | false | 24,196 | cpp | ecal_sys.cpp | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2020 Continental Corporation
*
* 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
*
* ... |
1f1900999da68942044acde1e564af04a7f04fac | fb4c7407f26c57a0151ce49b67d40e404ea069f7 | /week6/28.cpp | df20a6623286cb5e5decbfca723b18f082d3ce66 | [] | no_license | yudeeeth/Pdfquestions | 1a6539e55824f961207818961844ef77d4c1437b | 818a1ee50c6406ec62a13bbefc24ba329c54e881 | refs/heads/master | 2023-05-09T16:40:08.875451 | 2021-06-05T11:19:35 | 2021-06-05T11:19:35 | 352,121,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | 28.cpp | Node* LCA(Node *root, int n1, int n2)
{
//Your code here
// static Node * sol;
// int left = 0;
// int right = 0;
// if(root->left)
// left = LCA(root->left,n1,n2);
// if(root->right)
// right = LCA(root->right,n1,n2);
// int val = 0;
// return sol;
if(n1>n2)
{
i... |
74d8e66659f82ee31b68a6888ca388bc18408ec9 | 341c3ba28add59467d4e86e84f0a65eb8347e1dd | /src/pinFunction/pinFunction.h | 545fb2fd93b434c99d0e3b1ddb1816bbcefabc06 | [] | no_license | bootchk/embeddedDutyCycle | 83b55e9c9bd7b52225c19819f4cc611f88766f27 | 835d5bbedd90a4a6529501e5bf6553adca5669d9 | refs/heads/master | 2021-06-09T18:50:07.215196 | 2019-11-17T17:24:33 | 2019-11-17T17:24:33 | 137,768,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | h | pinFunction.h |
/*
* Framework understands that pins are held during LPM4.5.
*
* Abstracts configuring GPIO pins for the framework.
*
* The framework drives configuration.
* Both the framework and the app defines configurations.
* IOW, this configures pins owned by the framework, and gives app chance to configure pins owned by... |
5d404c86c89429fa5c5129a8206e9e86605032b9 | 8bacc0c3089a7bb14fa80dd8151457079acb635a | /gui/MainWidget.hh | c845b5cba609f01f395ac6795a98707ae592992a | [] | no_license | charvoa/cpp_babel | 75ff1a1d2603b3f646a7ca2ff3f59f461fe174a5 | 8f39b86e5e07ba68bc67dda97506cfb0936cc957 | refs/heads/master | 2021-01-17T16:36:35.435370 | 2015-11-08T20:38:47 | 2015-11-08T20:38:47 | 43,375,858 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | hh | MainWidget.hh | //
// Widget.hh for in /home/nicolaschr/TP/qt
//
// Made by Nicolas Charvoz
// Login <nicolaschr@epitech.net>
//
// Started on Sat Apr 4 20:48:39 2015 Nicolas Charvoz
// Last update Sun Nov 8 18:14:28 2015 Nicolas Charvoz
//
#ifndef MAINWIDGET_HH_
# define MAINWIDGET_HH_
# include <QApplication>
# include <QObj... |
b97b1fef94f45f2a060a8a1d1f63f3a8d6fe877a | 305c4d331a5bbb65ffc09d7dbf1f3ec60b30c180 | /ManageLEDBrightness/ManageLEDBrightness.ino | 0df475a28dbf43fe87aacb0742f10b3c0dc824c7 | [] | no_license | kkalla/arduino | cf2f6fc1536b17978e9fdda56b321def02489cc2 | c51b3e718f4f04fbdf37c0a47ca89f356cc88e60 | refs/heads/master | 2022-04-20T14:14:50.291403 | 2020-04-10T12:00:52 | 2020-04-10T12:00:52 | 254,608,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | ino | ManageLEDBrightness.ino | void setup()
{
}
void loop()
{
for (int i = 0; i < 256; i++){
analogWrite(9, i);
delay(10);
}
for (int i = 256; i > -1; i--){
analogWrite(9, i);
delay(10);
}
}
|
d29d8a69dda160428e2c978f3bfb4c125abcec1b | afdcb4ae6ab7ea2f7d9ed2cde544c5da3e08e7c6 | /Classes/EnemyToanChanStudent2.h | 01961e1c47d4c13e579e723739fbaad81559cb1e | [] | no_license | a3845021/thecondorheroesCC2D | cc1dc65aa8107d998f67711e64d36915569bcb01 | 892700981ccaff72b0c52bd1a8bd8afcf46084aa | refs/heads/master | 2020-04-26T02:56:16.415172 | 2017-05-30T09:51:13 | 2017-05-30T09:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | h | EnemyToanChanStudent2.h | #ifndef __ENEMY_TOANCHAN_STUDENT2_H__
#define __ENEMY_TOANCHAN_STUDENT2_H__
#include "EnemyToanChanStudent.h"
#include "Slash.h"
USING_NS_CC;
using namespace spine;
class EnemyToanChanStudent2 : public EnemyToanChanStudent
{
private:
public:
CC_SYNTHESIZE(float, scaleEnemy, ScaleEnemy);
CC_SYNTHESIZE(Slash*, sl... |
192a681bea26c8d6f237e1cb2e5a70d1b5d61f7b | d3e419f4a7f67e678edd8576909e91b62c3ddf7b | /WinPCK/PckControlCenter/PckControlCenter.cpp | 9eb38f6777c18cf0f08c5addf6f203f90c742379 | [] | no_license | tsingui/WinPCK | 9cd0efd6135b7d6f8f6ea04d430cb47f899d2bb4 | d58c3beb32de01dec35bf41d8d88b072adcf1010 | refs/heads/master | 2020-03-28T00:12:41.619789 | 2018-07-06T04:25:38 | 2018-07-06T04:25:38 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,236 | cpp | PckControlCenter.cpp | //////////////////////////////////////////////////////////////////////
// PckControlCenter.cpp: 用于解析完美世界公司的pck文件中的数据,并显示在List中
// 头文件,界面与PCK类的数据交互,控制中心
//
// 此程序由 李秋枫/stsm/liqf 编写,pck结构参考若水的pck结构.txt,并
// 参考了其易语言代码中并于读pck文件列表的部分
//
// 此代码预计将会开源,任何基于此代码的修改发布请保留原作者信息
//
// 2012.10.10
////////////////////////////////////... |
7a029c94a4d265283275274180708a5f4e16f8a2 | dd642e0b82a2579b4210160b2e52e5edd240b9e9 | /client.cpp | 024b35004bec0b4fdc88c31fd3378376e878bb7d | [
"MIT"
] | permissive | mras0/funtls | d88f52a63319bf11da5a205a884e8accd16164a4 | a16c6fde92cf247876a0761a6ca3ed538b2ad0c2 | refs/heads/master | 2021-01-16T19:00:35.105969 | 2015-12-17T19:47:57 | 2015-12-17T19:47:57 | 34,807,373 | 3 | 0 | null | 2015-11-01T21:29:02 | 2015-04-29T17:17:51 | C++ | UTF-8 | C++ | false | false | 3,711 | cpp | client.cpp | #include "https_fetch.h"
#include <iostream>
#include <util/test.h>
#include <util/ostream_adapter.h>
using namespace funtls;
int main(int argc, char* argv[])
{
try {
if (argc < 2) {
std::cout << "Usage: " << argv[0] << " https-uri [cipher...]\n";
return 0;
}
// L... |
f0687be17f54ddbac65b2cb95a68cfa361ae2a72 | fc159fbf5ade2a7fa1139a721091681a9bc70386 | /src/model/mesh.h | b78a72a50b66e5f51fd3d7dd52d8eb2b9e3ffc67 | [] | no_license | mathijs727/OpenCL-Path-Tracer | 04ec41cc68ef9f1fb3a0bca241e762ae7da06888 | aa7424235949465f47ec914410edb7584714a0c2 | refs/heads/master | 2021-08-27T16:37:45.877930 | 2021-08-16T12:24:59 | 2021-08-16T12:24:59 | 131,981,943 | 12 | 1 | null | 2018-08-10T15:18:04 | 2018-05-03T10:52:15 | C | UTF-8 | C++ | false | false | 2,706 | h | mesh.h | #pragma once
#include "imesh.h"
#include "material.h"
#include "opencl/texture.h"
#include "transform.h"
#include "vertices.h"
#include <filesystem>
#include <glm/glm.hpp>
#include <optional>
#include <vector>
struct aiMesh;
struct aiScene;
namespace raytracer {
class Mesh : public IMesh {
public:
Mesh(const std... |
9c5c7f8a21714cd7befee5aa4505b9df10c03a96 | 610b9bf9de94fa58f52533981dc399057d9c0ece | /d4_Abstract_and_subtype_polymorphism/ex1/main.cpp | 29002e382fbcd0965ae6afed3774a6fb1f214d24 | [] | no_license | skuppers/cpp | fd1761f534c6bdca6c241bada930c8806688792c | e3715e5029b9e8157154397c7931eaf74c7e3888 | refs/heads/master | 2023-01-10T00:42:26.560639 | 2020-11-03T11:58:42 | 2020-11-03T11:58:42 | 305,417,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | main.cpp | #include "PlasmaRifle.hpp"
#include "PowerFist.hpp"
#include "Character.hpp"
#include "RadScorpion.hpp"
#include "SuperMutant.hpp"
int main(void)
{
Character* me = new Character("IceGamer");
std::cout << *me;
AEnemy* scorp = new RadScorpion();
PlasmaRifle* pr = new PlasmaRifle();
PowerFist* pf... |
635585b9eea49f27b9adf1d9882106ee41aca9e3 | b1aef802c0561f2a730ac3125c55325d9c480e45 | /src/ripple/beast/insight/Counter.h | b16b04081fc11238dbc0f2d29b5856f383162a93 | [] | no_license | sgy-official/sgy | d3f388cefed7cf20513c14a2a333c839aa0d66c6 | 8c5c356c81b24180d8763d3bbc0763f1046871ac | refs/heads/master | 2021-05-19T07:08:54.121998 | 2020-03-31T11:08:16 | 2020-03-31T11:08:16 | 251,577,856 | 6 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | h | Counter.h |
#ifndef BEAST_INSIGHT_COUNTER_H_INCLUDED
#define BEAST_INSIGHT_COUNTER_H_INCLUDED
#include <ripple/beast/insight/Base.h>
#include <ripple/beast/insight/CounterImpl.h>
#include <memory>
namespace beast {
namespace insight {
class Counter : public Base
{
public:
using value_type = CounterImpl::value_type;
... |
ff4c287d349cdfab853570950305657c031ddff0 | 45a8bc30bd0f777e22c5fb67e3f6414bd1c4dd48 | /test/operations_test.cpp | b30e3f7e42795bf4c6e85174362ae4f2cf2c230b | [
"Apache-2.0"
] | permissive | staticlibs/staticlib_unzip | 9c3eb5036ad5e98248ec74100e38d8124ca5c6bf | 4605b7d48eec2b937e0b541551cb80b530dfba13 | refs/heads/master | 2020-12-29T02:37:35.887800 | 2020-03-29T19:59:50 | 2020-03-29T19:59:50 | 44,112,910 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,466 | cpp | operations_test.cpp | /*
* Copyright 2015, alex at staticlibs.net
*
* 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 ag... |
b51e00ea32b321e181e2ebc769605da356cbc35d | 934b653895d6c1942cf9bbd834e50591d896029a | /client/CoolChat/CoolChat/main.cpp | 3cb2abf65b9fa000be816b2f5b96730e3965ab55 | [] | no_license | Penguinang/CoolChat | 21f6eed46494d3ad8d6b71e6e0a7025cfde3478d | 7deb2ea08325c439d8816ebec1f990d67d272458 | refs/heads/master | 2020-03-22T07:28:35.487191 | 2019-04-02T09:25:53 | 2019-04-02T09:25:53 | 139,702,742 | 1 | 3 | null | 2018-07-16T02:37:42 | 2018-07-04T09:50:25 | C++ | UTF-8 | C++ | false | false | 309 | cpp | main.cpp | #include "loginwindow.h"
#include <QApplication>
#include <iostream>
using namespace std;
//#define null nullptr
int main(int argc, char *argv[])
{
int c = 0;
c+=1;
int b = 0;
b+=0;
QApplication a(argc, argv);
LoginWindow w(0);
w.show();
return a.exec();
}
|
406e8f184f0d49e626eae37195486409f533c8ec | 92d68b9391df1e7163c09ade3087e310e69509a3 | /src/modules/OpenCvWrap/Image.h | d7fa49bdc0be44fce7f8695360c62d05df46a253 | [] | no_license | akira103150146/ImageProcessPractive | fa78f5febfda00692c63d6d36a0b10bf9dc80ce4 | f7139ccd5dea704b4464b4072b811d51e6bef524 | refs/heads/master | 2021-04-10T09:16:38.240037 | 2020-04-12T07:13:17 | 2020-04-12T07:13:17 | 248,926,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | h | Image.h | //
// Created by akira on 2020-03-28.
//
#ifndef IMAGEPROCESSING_IMAGE_H
#define IMAGEPROCESSING_IMAGE_H
#include <opencv2/core/mat.hpp>
#include "string"
#include "Common.h"
using namespace std;
using namespace cv;
namespace wrap {
class Image {
public:
explicit Image(const string &path);
... |
df32bd99dc2fd4c94f493a16f86c6df7044b8a7e | 5e274ad2fbf7829245c0820b61deebc4479ed546 | /0이아닌마지막수/0이아닌마지막수/main.cpp | 903389ae11f32417faff298b207e23d01868464d | [] | no_license | DaEunKim/ClassCpp | 0d693b7372508bcc8201c47a3a10de8830a63e6c | b4648f22e68e093898573287736299ae61f272a9 | refs/heads/master | 2021-01-18T19:57:23.471846 | 2017-06-19T08:26:50 | 2017-06-19T08:26:50 | 86,922,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,915 | cpp | main.cpp | //
// main.cpp
// 0이아닌마지막수
//
// Created by 김다은 on 2017. 3. 31..
// Copyright © 2017년 김다은. All rights reserved.
//
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <vector>
using namespace std;
int main(void){
ifstream inStream;
inStream.open("/Users/Dani/Documents/ClassCpp/0이아... |
d2e5b3c69825f4377ba7f10668b3ade6dc383b71 | ef9b0691b4907164aea9bb2efaadfbde586b8d88 | /MonsterChase/Engine/Core/SmartPointers/SmartPtr.h | ad5c26fbddd118e41dc591aa3531638dba2274cc | [] | no_license | RajeshChilagani/2D-Game-Engine | 921ef5d9723c52441bddced80765b91ac49acea6 | 3053dca9927dd34aaa7c8d21ff89c581d38d66de | refs/heads/master | 2021-05-22T21:18:05.372308 | 2020-05-09T23:57:32 | 2020-05-09T23:57:32 | 253,100,462 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,206 | h | SmartPtr.h | #pragma once
#include <assert.h>
template <typename T>
class WeakPtr;
struct RefCount
{
int m_SmartPtrs;
int m_WeakPtrs;
RefCount(int i_SmartPtrs, int i_WeakPtrs) :m_SmartPtrs(i_SmartPtrs), m_WeakPtrs(i_WeakPtrs) {}
};
template <typename T>
class SmartPtr
{
friend WeakPtr<T>;
template<typename U>
friend class Sm... |
bdf08929babdecdbaa8d6d8924c7f1f0791bf39d | 0ad65770c5a2ad784dd93b227b1b8452519fb51f | /MINI/PortManipulation_MINI/PortManipulation_MINI.ino | b526f31cb7c920c839ae26312ad914eb42c4b620 | [] | no_license | CONTROLLINO-PLC/CONTROLLINO_Library | 1b0f1e4200c7b4dce984c4a77a496ffd0089983d | 79c186925871ae903b82b9039881ea8a65036be6 | refs/heads/master | 2023-06-08T09:10:33.168793 | 2023-03-01T13:13:29 | 2023-03-01T13:13:29 | 77,842,416 | 149 | 62 | null | 2023-06-06T17:31:57 | 2017-01-02T15:20:57 | C++ | UTF-8 | C++ | false | false | 4,323 | ino | PortManipulation_MINI.ino | #include <Controllino.h> /* Usage of CONTROLLINO library allows you to use CONTROLLINO_xx aliases in your sketch. */
/*
CONTROLLINO - Port Manipulation for MINI, Version 01.01
The sketch is relevant only for CONTROLLINO variant MINI!
Turns on and off four digital outputs of CONTROLLINO, which also blinks... |
e65d96cd8d5562ee78f0972fdeaafd2802641ee4 | a5f51fe915e1a7fcd7d7c2adb6698233a2fb71de | /nds-trainer-tool/Task.h | f746a08989ddcd5feea24798e6c284fca97bde7a | [] | no_license | luxalpa/nds-vocabulary-trainer | f7abb20bb6feff4a7026a4e3707011cf7d46be04 | 015fc724f73826233133d87c5af5692a441978c7 | refs/heads/master | 2022-02-14T15:44:38.633969 | 2019-06-23T16:11:11 | 2019-06-23T16:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | h | Task.h | #ifndef TASK_H
#define TASK_H
#include <QCommandLineOption>
#include <QDebug>
class QString;
class Task
{
public:
Task(QCommandLineOption option) : opt(option) {}
QCommandLineOption opt;
virtual void run(QString outdir, QString param) const = 0;
virtual ~Task() {}
};
#endif // TASK_H
|
e3f6d825106fb8b7614e358659e5678e4713078e | 45bb72f0c9c6805e4a8a18f29d27747e47a7c497 | /Hyperion/Hyperion.ino | ecaa4b2f4a334b333ac0e95862cd0dc79726ffb6 | [] | no_license | dwaxemberg/hyperion | 442842a3a5fbad485a82d7114202c0d0f8373fb6 | 20be606b2b68e828c1c116d68f7e72c33577f727 | refs/heads/master | 2021-06-11T23:40:40.487465 | 2017-09-03T07:30:24 | 2017-09-03T07:30:24 | 28,143,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,977 | ino | Hyperion.ino | #include <GU7000_Interface.h>
#include <GU7000_Serial_Async.h>
#include <Noritake_VFD_GU7000.h>
// VFD constants
static const long BAUD_RATE = 38400;
static const uint8_t SIN = 1;
static const uint8_t BUSY = 23;
static const uint8_t RESET = 22;
// LED constants
static const uint8_t RED = 10;
static const uint8_t GREE... |
3f01954983c72e086e5b35684a707f5ffb4663b5 | 9563e51bc05404811f27d47ce5889e36c86b400e | /sources/Scientist.cpp | bc29efa37f4f6bba8fe80429df72296e874a4690 | [] | no_license | yurig93b/pandemic-b | 44f828049a5f4beca165609b1eadb06b13828788 | 34bbfa05b6e94ffc1a69c988e78cd34100388c92 | refs/heads/main | 2023-04-21T21:06:43.533772 | 2021-05-23T16:01:55 | 2021-05-23T16:01:55 | 368,439,244 | 0 | 0 | null | 2021-05-18T07:28:11 | 2021-05-18T07:28:10 | null | UTF-8 | C++ | false | false | 476 | cpp | Scientist.cpp | //
// Created by Yuri Grigorian on 05/05/2021.
//
#include "Scientist.hpp"
using namespace pandemic;
Scientist::Scientist(Board &b, City c, int cards_needed) : Player(b, c), cards_needed(cards_needed) {};
Player &Scientist::discover_cure(Color c) {
if (this->cards_needed < 0) {
throw std::runtime_error(... |
77aadb86c06577bb4d6f3b34cfa66f204a302a89 | e93b2162b055bf1b80aa9d9fa7027754884c2946 | /I-PARCIAL/Multiplicaciones de Matrices Dinámica/Homework 07 Dinamix Matrix Multiplication/Deber Multiplicacion Matrices dinamica/Operations.h | cee3b75aaf81053fad0c4fefb7960029a31929e2 | [] | no_license | AndresRomeroCollaguazo/-Team3-DataStructure-3688 | 92a3a43d69ecfbd2375752fa6e5bac5de1b7984e | 0d5070d920b9e1f6fa359126c32b62f696e5cdce | refs/heads/main | 2023-07-14T14:14:51.657615 | 2021-08-25T12:03:42 | 2021-08-25T12:03:42 | 369,020,337 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | Operations.h | #pragma once
#include "Matrix.h"
#include "Validation.h"
class Operations
{
public:
/**
* @brief Reserva memoria para la matriz
* @param longitud
* @return la dirreccion de una matriz
*/
int** segment(int);
/**
* @brief Inicializa la matriz en cero
* @param matriz_a
* @param longitud
... |
673f387a044f650a8ef20813fed492cfd9b5c018 | 3f53579ee0c08fd9d98d43ff6c10a513046eff22 | /etc/C/pixel/FrameBuffer.cpp | 7d7accf843430b5aa79152bbb91a276f0b18dc5b | [] | no_license | Cortan122/cortan122.github.io | c43eca20b4b99fbfb2f4c68e3e8374f5728cda89 | b3c67473dc15d2b44b0d1fa14f1e97414a5328b3 | refs/heads/master | 2023-06-21T16:43:33.877921 | 2023-06-07T12:51:38 | 2023-06-07T12:51:38 | 81,677,273 | 0 | 0 | null | 2018-03-17T14:36:25 | 2017-02-11T19:38:32 | JavaScript | UTF-8 | C++ | false | false | 3,914 | cpp | FrameBuffer.cpp | // FrameBuffer.cpp
//
#include "FrameBuffer.h"
#define LZZ_INLINE inline
using namespace std;
bool const FORCE_SQUARE_FRAMEBUFFER = true;
Vector2::Vector2 (int _x, int _y)
{
x = _x;
y = _y;
}
Vector2::Vector2 (int (a) [2])
{
x = a[0];
y = a[1];
}
Vector2:... |
8eb74e215687988d43875a4862de2f68e115f1e5 | 826b084855d189ca33b8795c95f7610b646484d9 | /Final Project/Final Project/Final project/bird.cpp | 6a1cd6fbd826ef54ae57c6c50cb2b252b3994ae8 | [] | no_license | bk202/OpenGL_3D-angry-flappy-bird | 9e0cc1ed6369fcc96c557f34007d049ffd180080 | 114e9d1236f6d3170c64ab546b486701809f137c | refs/heads/master | 2021-01-13T03:58:05.786934 | 2017-01-06T00:12:29 | 2017-01-06T00:12:29 | 78,157,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | cpp | bird.cpp | #include "bird.h"
bird::bird(const char* objpath)
{
obj3dmodel::obj3dmodel();
obj3dmodel::read(objpath);
}
bird::~bird()
{
}
void bird::moveUp()
{
vz = SPEE;
}
/**/void bird::idle(bool rotate)
{
if (!rotate)
{
x += vx;
y += vy;
z += vz;
vz -= g;
lz = vz * 40;... |
18cd5261ce81d9ad0c48a876e9fe803b5c8d3e1c | 9030ce2789a58888904d0c50c21591632eddffd7 | /SDK/ARKSurvivalEvolved_TradeOption_LootCrate_Base_classes.hpp | 5e20b044e0725723bfe64e0d11652c7ec68e879d | [
"MIT"
] | permissive | 2bite/ARK-SDK | 8ce93f504b2e3bd4f8e7ced184980b13f127b7bf | ce1f4906ccf82ed38518558c0163c4f92f5f7b14 | refs/heads/master | 2022-09-19T06:28:20.076298 | 2022-09-03T17:21:00 | 2022-09-03T17:21:00 | 232,411,353 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,554 | hpp | ARKSurvivalEvolved_TradeOption_LootCrate_Base_classes.hpp | #pragma once
// ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_TradeOption_LootCrate_Base_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------... |
573b93bc798a0a1ef1380ead7956ee9ffc95d543 | ea1921fdbd111cb6ff0dcb6b14dbe91dd4dbbd93 | /Qt/projet/qml/UserInterface/QtQuick-UserInterface/appcore.cpp | 341ca556e3b7f3de70b4d3599efcd4ebaf2a25be | [] | no_license | Julien-Delsol/projet | 4b12d7ced8ce0a22af933d02dfd611fab763a7fe | c7b8ce8a7ada27b8e7f186c06cabbd7025060650 | refs/heads/master | 2020-09-07T04:47:18.995552 | 2017-06-15T10:03:36 | 2017-06-15T10:03:36 | 94,421,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,288 | cpp | appcore.cpp | #include <QDebug>
#include "appcore.h"
#include "candidat.h"
#include "parser.h"
#include "fsfile.h"
#include "encoder.h"
AppCore::AppCore(QObject *parent) : QObject(parent)
{
m_candidatModel = new CandidatModel(this);
m_candidatSearchListModel = new CandidatSearchModel(this);
}
CandidatModel *AppCore... |
e7a6656dfe90f497b28a604fcece76127ca0bf9f | 5e00242dc035fdab6aa6bbb40c6d7e6c119ad8e6 | /Vault/Codeforces Rounds/EDUCFR57/EDUCFR57B.cpp | 40edbc477f88a82e2c63818f9ce7e88bd41529bd | [] | no_license | AkiLotus/AkikazeCP | 39b9c649383dcb7c71962a161e830b9a9a54a4b3 | 064db52198873bf61872ea66235d66b97fcde80e | refs/heads/master | 2023-07-15T09:53:36.520644 | 2021-09-03T09:54:06 | 2021-09-03T09:54:06 | 141,382,884 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | EDUCFR57B.cpp | #pragma comment(linker, "/stack:252457298")
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
const long long Mod = 998244353LL;
int n; string s;
void Input() {
cin >> n >> s;
}
void Solve() {
long long ans = 1;
if (s[0] == s[n-1]) {
string Z = s;
sort(Z.begin(), Z.end());
if (Z[... |
43df0b289e686db30195db474d562921f011c32e | e5f1b940a7802d0aad3447626f9d8ecf08a5629b | /ss-workloads/dsp-benchmarks/svd/svd.h | 5b27378b60494027d23ee280405b308c586faee1 | [] | no_license | lasseaeggen/stream-specialization-stack | 75167d3b570a53c1d7f13554c9d3a64c85a2d8ee | 74379e0ef3bc4433328a78d88b005cb097f87a3f | refs/heads/master | 2020-07-30T09:45:38.507397 | 2019-09-20T10:50:33 | 2019-09-22T16:31:13 | 210,178,516 | 0 | 0 | null | 2019-09-22T16:26:44 | 2019-09-22T16:26:43 | null | UTF-8 | C++ | false | false | 395 | h | svd.h | #ifndef svd_h
#define svd_h
#include <assert.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <complex>
#include <iostream>
#include <iomanip>
#define BN 4
#define NN (_N_ + BN - 1)
#define eps 1e-5
using std::complex;
struct complex_t {
float real;
float imag;
};
void s... |
b49a8f5aec9041c86b8f24b8f96bf3862a39259d | e36128cfc5a6ef0cef1da54e536c99250fc6fd43 | /Libs/src/YXC_AVKernel/NetTrans/live555/liveMedia/FlvFileSink.cpp | f66ed1679f55a479186032648a89f27fe6ab7501 | [] | no_license | yuanqs86/native | f53cb48bae133976c89189e1ea879ab6854a9004 | 0a46999537260620b683296d53140e1873442514 | refs/heads/master | 2021-08-31T14:50:41.572622 | 2017-12-21T19:20:10 | 2017-12-21T19:20:10 | 114,990,467 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,573 | cpp | FlvFileSink.cpp | #include "FlvFileSink.h"
#include "OutputFile.hh"
#include "H264VideoRTPSource.hh"
//Media define
#define VIDEOH264 0x01
#define AUDIOPCMU 0x02
FlvFileSink::FlvFileSink(UsageEnvironment& env, FILE* fid,
char const* sPropParameterSetsStr,
unsigned bufferSize, char const* perFrameFileNamePrefix)
:FileSink(env,fid,bu... |
daf7a0dd7ff19b107beeeeced6c6e703117264a4 | 8ee0be0b14ec99858712a5c37df4116a52cb9801 | /Server/SHO_LS/SHO_LS_LIB/CLS_SQLThread.h | d4cf4504476d0ffd8c89bdb074ae98751d94076f | [] | no_license | eRose-DatabaseCleaning/Sources-non-evo | 47968c0a4fd773d6ff8c9eb509ad19caf3f48d59 | 2b152f5dba3bce3c135d98504ebb7be5a6c0660e | refs/heads/master | 2021-01-13T14:31:36.871082 | 2019-05-24T14:46:41 | 2019-05-24T14:46:41 | 72,851,710 | 6 | 3 | null | 2016-11-14T23:30:24 | 2016-11-04T13:47:51 | C++ | UTF-8 | C++ | false | false | 1,175 | h | CLS_SQLThread.h | #ifndef __CLS_SQLTHREAD_H
#define __CLS_SQLTHREAD_H
//-------------------------------------------------------------------------------------------------
#include "CLS_Account.h"
#include "CSqlTHREAD.h"
//-------------------------------------------------------------------------------------------------
class CLS_S... |
44140205d89c0f460b1519b19e809fab3b05c823 | ca5dab81afe7533226419d57274a1e06047642ad | /personaje.cpp | 3d2b4ab25beb26eeb0f9001c9ddbfd9e8198f139 | [] | no_license | bryanb4/burbuja-14 | d6d9fb299e8fa99f5737bd3c2df97209bf0b0bcb | f3e9919f9915975e60a0a67d6b2b477f6a5b7252 | refs/heads/main | 2023-01-13T16:07:22.970080 | 2020-11-21T23:49:00 | 2020-11-21T23:49:00 | 314,925,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | personaje.cpp | #include "personaje.h"
Personaje::Personaje()
{
}
Personaje::Personaje(const string &nombre,
const string &tipo,
float fuerza,
int salud)
{
this->nombre = nombre;
this->tipo = tipo;
this->fuerza = fuerza;
this->salud = salud;
}
void Personaje::setNombre(cons... |
92f01ff14557fba5bd851a7cabba1a8abb85d2f5 | 8e8384d943f8a6beee63b0ffccef1a4259f30e2a | /tests/StridedArrayProxy/StridedArrayProxy.cpp | 4c1415dfb3d68c6d45793ef06a0b58881a3c499c | [
"Apache-2.0"
] | permissive | KhronosGroup/Vulkan-Hpp | 48dd33d4ef4a89ebac00f4b01d1f8531ac81858e | 57d54a0ba62d4d162d9e53832dd3880ac3cc527a | refs/heads/main | 2023-08-17T01:39:11.620855 | 2023-08-16T06:37:43 | 2023-08-16T06:37:43 | 61,292,682 | 3,038 | 443 | Apache-2.0 | 2023-09-07T16:42:48 | 2016-06-16T12:51:55 | C++ | UTF-8 | C++ | false | false | 8,348 | cpp | StridedArrayProxy.cpp | // Copyright(c) 2018, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
d1c0ff9fe43adb9116da4bb34d570d2ca90c73cd | cddf012871e063e718573b8c90dcf898d2d435bd | /R6.InstrukcjeWarunkoweOperatoryLogiczne/if.cpp | e85d759ced6a90116e611117a492661fd4ffd043 | [] | no_license | Adam-Czerwinski/Szkola-Programowania-CPP | 5fc589264d0eca8f41c58fc28d69f6471e865150 | 84819b954a6337486b5ef7bf683bbf9662ee1ebc | refs/heads/master | 2021-06-16T15:56:38.190186 | 2021-02-10T23:04:53 | 2021-02-10T23:04:53 | 154,380,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | if.cpp | #include <iostream>
#include <windows.h>
using namespace std;
int main()
{
SetConsoleCP(1250);
SetConsoleOutputCP(1250);
setlocale(LC_ALL, ".1250");
char ch;
int spaces{};
int total{};
cin.get(ch);
while (ch != '.')
{
if (ch == ' ')
spaces++;
++total;
cin.get(ch);
}
cout << "W zdaniu jest " << ... |
bc55a48b934cb2e7dd3feb0508d1dcefadbbabde | cf6568fbb78557b20e29411cc548ebd6e848deec | /Code/BZOJ4034 树链剖分 + 线段树.cpp | 2bd751dea616c08d519564c6085559e5008f96c3 | [] | no_license | jiewei15/Demo | 4d01cabbbf4c83e08214bbf5a25c8dfb7ef14691 | e7f21d35308c75c58dfa289bc36527ed2c0922be | refs/heads/master | 2020-08-02T22:19:01.080165 | 2019-09-29T07:19:56 | 2019-09-29T07:19:56 | 211,523,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 804 | cpp | BZOJ4034 树链剖分 + 线段树.cpp | #include<stdio.h>
#include<string.h>
#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
using namespace std;
typedef long long LL;
const int maxn = 1e5 + 5;
int n, m;
int last[maxn];
int id;
int pos[maxn], mx[maxn], v[maxn];
int bl[maxn], size[maxn], fa[maxn];
ll tag[4*maxn], sum[4*maxn];
vector... |
375a59fdad7e29e283acd3be2646f89cb25cac38 | 8f2f8d980053758c75557de2f76f231090f3ab64 | /playground/ABCoptim.h | dbfc2e61b50190d56b161657b31989a50e8f7d98 | [
"MIT"
] | permissive | gvegayon/ABCoptim | 1e4a846fbe1237d6fd5bfeb30b7e911f77ac373b | fe867006254754f3825da2221a7527d883b0f55f | refs/heads/master | 2023-06-10T08:51:27.122871 | 2023-05-26T00:30:42 | 2023-05-26T00:30:42 | 13,732,591 | 31 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 10,893 | h | ABCoptim.h | #ifndef abcoptim_h
#define abcoptim_h
#include <Rinternals.h>
#include <Rcpp.h>
using namespace Rcpp;
/* Constant definitions */
#define MAX_D 10000
#define ABC_MAX_LIMIT 1e+300
typedef double (*ptrFun)(NumericVector x);
using namespace Rcpp;
/* Constant definitions */
#define MAX_D 10000
#define ABC_MAX_LIMIT 1e+... |
6efd5e69dab40fd3ff5a13d9f790af125ad94f6e | 43062f4152dbfab3aa97be5a3a1924b9d3340407 | /ObjectOrientedProgramming(C++)/MenuProject/CIntKnapsack.h | 62470cb4301c67a16e4dd4939470b76f74a6b2f9 | [] | no_license | mateuszwtulich/studyProjects | b13c0d20fbf7d47210a0600e3ae5953831a54c1e | 7dc8cd6a3358f087db799e0f04162ffa1aefda46 | refs/heads/master | 2020-05-04T21:19:25.558844 | 2019-06-05T17:33:10 | 2019-06-05T17:33:10 | 179,472,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | CIntKnapsack.h | #pragma once
#ifndef CIntKnapsack_h
#define CIntKnapsack_h
#include "CGeneticAlgorithm.h"
#include "CKnapsackProblem.h"
#include "CCommand.h"
class CIntKnapsack : public CCommand
{
public:
CIntKnapsack();
~CIntKnapsack();
void vRunCommand();
};
#endif
|
49dd42ad61cde5a43ae59511a5551c8998415405 | 1bcef9151554261bd3e0438bcced6d69f5641ad7 | /Navigation_Communications/com_test_using_both_modules/com_test_using_both_modules.ino | 30ebac2ccbba81623c877e3d3e8afe3af3c9cec2 | [] | no_license | ariathefirst/UCDhyperloop | bdcdf9aa4b869c902eb286be9f63180567a95eba | a70ab0adefd26b8f469bf46a0e89467f69bfb52a | refs/heads/master | 2021-04-26T22:07:24.389351 | 2018-09-08T21:42:55 | 2018-09-08T21:42:55 | 124,024,828 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,355 | ino | com_test_using_both_modules.ino | #include <CAN.h>
char pnmatic_states[4];
void setup() {
Serial.begin(9600);
//digitalWrite(2,HIGH);
while (!Serial); Serial.println("CAN Sender"); // start the CAN bus at 500 kbps
while(!CAN.begin(500E3)) {
Serial.println("Starting CAN failed!");
}
// CAN.setPins(3,4);
Serial.print("ok");
}
void reciev... |
74585216446dbb3493d1840c4e4ce33b35428440 | ac75558b13b1eb5a220ea7b84739c87ad50f6da5 | /Problems/BFS/LOJ 1094.cpp | b7c0f2343073105ba840028c9c337790a062ed6f | [] | no_license | Anik-Modak/CompetitiveProgramming | 670a53f323292b16484ca28f340e123e8da8fcff | 3fa0b9712f6bb4879d53a066fa16274e480b31a4 | refs/heads/master | 2022-03-22T06:21:30.654964 | 2019-12-10T12:58:35 | 2019-12-10T12:58:35 | 184,308,402 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | cpp | LOJ 1094.cpp | #include<bits/stdc++.h>
#define MX 30002
using namespace std;
vector<int>ed[MX+5],cost[MX+5];
int lev[MX+5];
bool mark[MX+5];
int bfs(int st){
int i,j,f,v,mx;
queue<int>q;
q.push(st);
memset(mark,0,sizeof mark);
mark[st] = 1;
lev[st] = 0;
mx = st;
while(!q.empty()){
f = q.fr... |
1018497a975c99643c74b4bf9db3e5a8cc992113 | ceee2fe32f3e08d7dab4724ea02c5970907710d5 | /include/extras/helpers/MarchingCube.h | 20343f53ea580346da0b88745c9c0d289596fef8 | [] | no_license | GUI-Graphics/engine | 3b41763cc9c3810e99322084fe458f38b789c1f5 | d50c35d7c5ce0d15b8b194c21f63dcfc753fbde8 | refs/heads/master | 2020-12-24T08:03:43.894157 | 2016-08-17T04:43:23 | 2016-08-17T04:43:23 | 57,565,112 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 967 | h | MarchingCube.h | #pragma once
#include "math\Vector3.h"
#include "core\BufferGeometry.h"
namespace engine
{
class MetaBall
{
public:
MetaBall(float radius = 1) : radius(radius)
{ }
public:
float radius;
Vector3 position;
};
/** Marching Cube算法绘制等势面,这里用来绘制meta ball
* 参考http://paulbourke.net/geometry/polygonise/
*/... |
7a797fc19cf934a31e7e62700eb0122d1e622509 | 90954e798783647fd9645f9b72edcb18c7c7a0be | /population_nobles.cpp | 546d0b0d5ac7cd18d9c54f6193540fd5b9be71df | [
"Zlib"
] | permissive | mattregul/df-ai | 386c79e6ba8f6bf9f6f9f3f00b6bfe9b5abca086 | 9e74c015e173b9f67cf95e45fdb0ce02e987f1df | refs/heads/master | 2020-03-26T23:51:53.456477 | 2018-08-21T14:15:50 | 2018-08-21T14:15:50 | 143,019,242 | 0 | 0 | Zlib | 2018-07-31T13:38:21 | 2018-07-31T13:38:21 | null | UTF-8 | C++ | false | false | 8,033 | cpp | population_nobles.cpp | #include "ai.h"
#include "population.h"
#include "plan.h"
#include "modules/Gui.h"
#include "modules/Units.h"
#include "df/entity_position_assignment.h"
#include "df/historical_entity.h"
#include "df/historical_figure.h"
#include "df/squad.h"
#include "df/squad_schedule_order.h"
#include "df/ui.h"
#include "df/unit_s... |
8c5e0122fbdd79769f06613afee88b729c2039d5 | 29f87adb9d8413e90b364179fe98f95242819d38 | /TextFile/TextFile.h | 5f3d25388f427924a17f84d244075a5648d65bd6 | [
"Unlicense"
] | permissive | pmachapman/Tulip | d05f069c2ec11b900711c1be5a12e0dbe1bb40e1 | 2123145132faff5e0d606af8626007d8e9ffe3a3 | refs/heads/master | 2023-01-29T10:19:01.249474 | 2023-01-17T06:09:23 | 2023-01-17T06:09:23 | 130,920,566 | 0 | 1 | Unlicense | 2023-09-05T19:06:38 | 2018-04-24T22:28:13 | C++ | UTF-8 | C++ | false | false | 1,091 | h | TextFile.h | #ifndef _TEXTFILE_H_
#define _TEXTFILE_H_
class CTextFile
{
public:
// ctor( s )
CTextFile(const CString& ext = _T(""), const CString& eol = _T("\n"));
// dtor
virtual ~CTextFile();
// File operations
BOOL ReadTextFile(CString& filename, CStringArray& contents);
BOOL ReadTextFile(CString& filename, CString&... |
c38328444681e51f7eac769eeea44b4142acbc00 | 6233e2a00b388b0c6825b769a8fea3413b41effe | /greeter/src/main/public/greeter.hpp | f37a687e21049d84293b85c401a6129c819fbd0d | [
"MIT"
] | permissive | Ben1980/gradleNativ | bd0032b3521c5f31abccb78f970d43b3877d5e3a | 507eb47c515ded308af04d3781308d2771d83f6d | refs/heads/master | 2021-06-12T04:29:55.023551 | 2021-03-15T06:46:11 | 2021-03-15T06:46:11 | 140,710,010 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 509 | hpp | greeter.hpp | #include <utility>
#ifndef _GREETER_H_
#define _GREETER_H_
#include <string>
#ifdef _WIN32
#ifdef GREETER_MODULE_EXPORT
#define GREETER_API __declspec(dllexport)
#else
#define GREETER_API __declspec(dllimport)
#endif
#else
#define GREETER_API
#endif
class GREETER_API Greeter {
public... |
be3c38635810f0e9a5234579d8860b1d98427163 | be4f131713e4712c44b40357aa986bff45601505 | /CoreLib.Extension/JsonSerializer.h | b6dad62b05ae715bec21dd38b9eebce218a00cd0 | [
"MIT"
] | permissive | xsjames/JxCode.CoreLib | 831b3a2f25aa1edc68f4faad34f181a29fe51fef | f3eb619d7655120883b31f9859e5da718aca8925 | refs/heads/main | 2023-05-27T06:36:21.746977 | 2021-06-14T08:45:25 | 2021-06-14T08:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | JsonSerializer.h | #ifndef CORELIB_JSONSERIALIZER_H
#define CORELIB_JSONSERIALIZER_H
#include "../CoreLib/CoreLib.h"
namespace JxCoreLib
{
class JsonSerializer
{
public:
static string Serialize(Object* obj);
public:
static Object* Deserialize(const string& jstr, Type* type);
template<typename T>
... |
447233caf1d67e9fea398a5357de4442f4ba7073 | e4f93511118eac6514eafdcd7a17163aaf97ebfe | /neat/man/Innovation.cpp | e120495463c3f06c333d498cb9565f3107b92238 | [] | no_license | RolandQuest/NEAT | 504488fb2802d1a286da0c88d65544be07fbe0ce | 84930631a40e3e82f8b6e0d1acfc43ecaba3f7a2 | refs/heads/master | 2021-05-21T07:13:13.815418 | 2020-05-02T14:48:02 | 2020-05-02T14:48:02 | 252,596,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | Innovation.cpp | #include "man/Innovation.h"
namespace neat
{
Innovation::Innovation(int from, int to, int newNodeId){
_FromNode = from;
_ToNode = to;
_NewNode = newNodeId;
}
int Innovation::From(){
return _FromNode;
}
int Innovation::To(){
return _ToNode;
}
int Innovation::NewNodeId(){
return _NewNode;
}
} |
ca8ad65a398d3d3e4e15912f28e91451144453ff | 0af4b02c221a2e18dedb8c8206af254813b1372c | /cx.cpp | 30a24cc06f19a4c2f27fab1fc7cba9f575fb4b88 | [] | no_license | ActorExpose/LoadDllShellcode | 0ed85a680b3e057641b304778d4d149f89aa410f | 531ae44b443088455ba4199b23257168f9f1114a | refs/heads/master | 2021-05-28T00:26:15.119687 | 2014-01-21T01:39:35 | 2014-01-21T01:39:35 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,494 | cpp | cx.cpp | // cx.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <Windows.h>
typedef struct _LSA_UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, UNICODE_STRING, *PUNICODE_STRING;
__forceinline DWORD __declspec(naked... |
171647a4d84d586f1c4837fcff3d29c58bdde690 | 919f251c1baafdaab20e7c74d9e8c17c57b0abd2 | /Repeater.ino | a19d75cd9f3f2811938530f034c35382930172ed | [] | no_license | DELindberg/ArduinoH5Project | e8a95ea26a981fd30c8398f0af598b0068ecf427 | 9a8c888a9410f52af147ade5e7ce359297b705a5 | refs/heads/master | 2020-03-28T01:04:33.566210 | 2018-09-05T12:27:29 | 2018-09-05T12:27:29 | 147,474,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | ino | Repeater.ino | void Repeater()
{
static int RecordingCountdown = 100;//Recording interval
static int IntervalCountdown = 0;//Duration between blinks
IntervalFromAnalog = analogRead(potentiometerPin) /100;
if(IntervalCountdown <= 0)
{
NumberOfBlinks++;
//Serial.println(NumberOfBlinks);
IntervalCountdown = Inte... |
e852d8147f633070c64a67f141293b0fcf6bc346 | ad934eeba2ac2a3c1d49b02af864790ece137034 | /Training/20160901训练赛/F - 副本.cpp | 299ee2cc81f4de72062b02194a36be4c94d3f987 | [] | no_license | xiang578/acm-icpc | 19b3d8c7771b935293749f5ccad0591cde8fc896 | 6f2fdfc62bd689842c80b1caee2d4caf8162d72f | refs/heads/master | 2022-01-12T12:28:43.381927 | 2022-01-12T04:20:44 | 2022-01-12T04:20:44 | 39,777,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,629 | cpp | F - 副本.cpp | /* ***********************************************
Author :Maltub
Email :xiang578@foxmail.com
Blog :htttp://www.xiang578.com
************************************************ */
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#incl... |
fd6fef74e688e3a89b296428f66e569cd4484731 | d37733921c7606bb9c7272b1dcb250436773bd66 | /3184.cpp | 935b46f7ba914f0f68d421a0bb5606ca0ac882d6 | [] | no_license | MountainBaek/PS_ | 323ad83c2b369f51fab860484f868dc96ba57651 | 115f5c830e528c99a104fee7be2d484cffa07b32 | refs/heads/main | 2023-08-11T10:21:17.280428 | 2021-10-02T01:27:17 | 2021-10-02T01:27:17 | 412,660,883 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,224 | cpp | 3184.cpp | /*3184번 양*/
#include <iostream>
#include <string>
#include <queue>
using namespace std;
struct pnt { int rr, cc; }temp;
int R, C;
string Map[250];
int area_chk[250][250];
queue<pnt>wolf_Q;
queue<pnt>sector;
int wolf, sheep, wolf_cnt, sheep_cnt;
int drc[] = { 0,0,-1,1,-1,1,0,0 };
int area_bfs(int r,int c) {
temp.rr = ... |
e7e728dd77e657bee0e0e0c4874edfc4f171a2de | 0fd0e16a9dee7c3eceefe6e42c2530751c7f0583 | /LSDC/app/src/main/cpp/Context.cpp | 19d0b1ca37fbd61cbf4c33b0aaa4ea66a6ac68d7 | [] | no_license | LadySDev/LD48-LSDC | 568b6195ff3b0f101420178c364ca54dcc3d895f | fe3b3549af9aa5e13b242ab3c494f477532235db | refs/heads/main | 2023-04-10T03:01:52.040477 | 2021-04-25T18:56:21 | 2021-04-25T18:56:21 | 361,051,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,036 | cpp | Context.cpp | #include "Context.h"
Context::Context(AAssetManager *assetManager, int width, int height) {
mWidth = width;
mHeight = height;
mUiShader = new Shader(assetManager, "render/shader/ui/uiVS.txt", "render/shader/ui/uiFS.txt");
int nbTexture = 5;
mTextures = new GLuint[nbTexture] ();
glGenTextures(... |
56dd3a89573da88bd659ec41282455403d41bffd | 39f078fe1a88726789e8e75a41edad5d99ecdfd0 | /mul_op.cpp | d9f22cdf660b6621ce0342557d63ee76bbb85d2a | [
"MIT"
] | permissive | senior-sigan/reverse_polish_calc_cpp | c2669f0c310703079bd3c420785e8cc451fec754 | 39a847317a6cb065eb1eb735698de5f5d746c6ea | refs/heads/master | 2021-04-10T12:11:42.684157 | 2020-03-22T10:22:55 | 2020-03-22T10:22:55 | 248,934,174 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | mul_op.cpp | #include "mul_op.hpp"
#include <iostream>
std::string MulOp::GetName() const {
return "*";
}
double MulOp::Apply(const std::vector<double> &args) const {
return args[0] * args[1];
}
unsigned int MulOp::GetArity() const {
return 2;
}
MulOp::~MulOp() {
std::cout << "~MulOp" << std::endl;
}
|
53e57644e2b0df10e1cf3ae486ca37ea9a8e39a9 | 299e906b3c7c373b9f26522cc3832e383c8589c1 | /Oving8/Person.h | 77864bb4a7e07787fe6c9aa96f00d2c7de0ff35a | [] | no_license | alexaoh/procAndOOP | e8067b33a865146b1d6bcc7a6a473bf019245c4e | af6c34811ccc5ad4c39a8ba539c519956c43661f | refs/heads/master | 2022-08-23T23:26:58.756948 | 2020-05-23T11:22:29 | 2020-05-23T11:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | h | Person.h | #include "std_lib_facilities.h"
#include "Car.h"
#pragma once
class Person{
string name;
string email;
Car* car;
public:
Person(string noim, string mailAddress, Car* carro = nullptr):name{noim}, email{mailAddress}, car{carro}{};
string getName() const { return name; };
string getEmail() const ... |
0588bd780457ad03330cfa6f002457d70a46038b | cfb84ab82685c0ba50cfd09f761571b2646eaad4 | /practice4/jacobi_mpi.cpp | 8a3ef37f3185926e9139bab1ed36585cd465cf0c | [] | no_license | lampadovnikita/ParallelBasics | 95ee8a4db26ffb7308590da86b53e5949a7179f6 | 3331cb54af8dc1065edecdf1b464a08fa9310dc9 | refs/heads/master | 2021-01-06T15:46:13.477180 | 2020-05-03T08:32:47 | 2020-05-03T08:32:47 | 241,384,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,493 | cpp | jacobi_mpi.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <cmath>
#include "mpi.h"
using namespace std;
const int MAIN_PROC_RANK = 0;
const int LOWER_PROC_RANK_TAG = 100;
const int UPPER_PROC_RANK_TAG = 101;
const int X_LOCAL_START_TAG = 102;
const int X_LOCAL_END_TAG = ... |
313b2d1c845502c81254c9c6696a18b0b8d00ecd | 35c813e2ffc09eeff29f3afbba20dc545732b5f4 | /ThunderborgDriver.hpp | f4a238d94b9d5a0fc6d74532e69f25617c26171d | [] | no_license | tyler124/thunderborg_driver_cpp | eeb647f957468a10f14a499ec2750c9bfb608950 | 9a756fa569ea411289f2ee4ff8f14253f33af497 | refs/heads/master | 2021-04-26T23:23:02.276535 | 2018-03-06T14:21:10 | 2018-03-06T14:21:10 | 123,983,576 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,461 | hpp | ThunderborgDriver.hpp | #ifndef THUNDERBORG_DRIVER_H
#define THUNDERBORG_DRIVER_H
#include <stdint.h>
//Return statuses
const int32_t DRIVER_SUCCESS = 0;
const int32_t DRIVER_ERROR = -1;
const int32_t DRIVER_UNINITIALIZED_ERROR = -2;
//Max motor power
const uint8_t PWM_MAX = 255;
const uint8_t FORWARD = 1;
const uint8_t REVERSE = 2;
const ... |
4440da55102ab92b3e50eb84576a8d19fc622d53 | e231b75394fcfc6dd6351ae413051a7bef9b2796 | /code/base/pair.h | 04489eef0f08388d5a334cab2170671fddca7293 | [] | no_license | NeonWindWalker/neon_engine | 5a9dfd1258455aedaf9e05dd770e2ece80fbe4e4 | 2bd86014538d3ba04dcd037df17d1e568ee446bf | refs/heads/master | 2016-09-10T00:26:43.494393 | 2014-08-11T21:44:56 | 2014-08-11T21:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,954 | h | pair.h | #pragma once
#include "comparator.h"
#include "hash.h"
namespace Base
{
template<class t_Key, class t_Value>
struct Pair
{
t_Key key;
t_Value val;
INLINE Pair(){}
INLINE Pair(const t_Key& k, const t_Value& v) : key(k), val(v) {}
INLINE Pair(const Pair& other) : key(other.key), val(other.val) {}
INLINE Pair& op... |
1d5ed9663472a5cdc2da99d7320da990a8835cf9 | 2f152ca3533e05d3d851fa9d5d618b631fa1ac5d | /include/virus_cloud.h | d49f0f604b831cd9028e2e4db26dd0a3b08a8fec | [] | no_license | PixelRetroGames/MalwareWarfare | 27d6cc63ef404a8936e1e14e11c6f6d417f0e33a | b5986a1692d4d3295388d6955ba975f2aeaea86e | refs/heads/master | 2022-09-22T18:22:06.544230 | 2022-09-18T10:28:16 | 2022-09-18T10:28:16 | 126,689,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | virus_cloud.h | #ifndef VIRUS_CLOUD_H
#define VIRUS_CLOUD_H
#include "virus.h"
class Virus_cloud: public Virus
{
private:
int spawn_delay=0;
public:
void Load(char *filename,int _id);
void Print(bool taking_damage,int _frame,int x,int y,int angle,int state,Texture *_screen);
int Get_spawn_delay();
};
#endif // VIRUS_CLOUD_H
|
433d5c81d593c1ba56447f3fb35c899491a1e82a | e29d0f8bf7abde1ad5b3f7a75c3fc969101467bb | /ProcessScheduler-CS3/BSTMultimap.tpp | 1640436643585a8ef942d178ec8989795968812a | [] | no_license | LiamHas/ProcessScheduler-CS3 | ba66e22c4518d8357950c24a9a166922b3744314 | 676d5c83a2c2e3658f70393578995bedc9a2c4da | refs/heads/master | 2020-12-04T06:34:34.263871 | 2020-01-03T20:20:31 | 2020-01-03T20:20:31 | 231,658,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,195 | tpp | BSTMultimap.tpp |
#include "BSTMultimap.hpp"
#include <string>
#include <iostream>
#include <queue>
using namespace std;
template <class key_t, class val_t>
BSTMultimap<key_t, val_t>::BSTMultimap()
{
sentinel = 0;
root = sentinel;
numItems = 0;
}
template <class key_t, class val_t>
void BSTMultimap<key_t, val_t>::insert... |
a4487abdfd9304dd46811596ea76c80faf121d1a | 2299bc97d636469163dfbe1820cb97f5a0e70020 | /tests/benchmark_tests/gauss_legendre.h | 97b95fda3c3826e2f3e0f889dcfb7ad22e12609a | [
"MIT"
] | permissive | RomeoMe5/posit-bfloat-testsystem | c11d04184ab8fa2d97a35c7076bd35c90692bac9 | 074f925b83282dc3e75f1dd337d379da21498593 | refs/heads/master | 2022-08-08T22:55:29.728425 | 2020-05-30T11:06:38 | 2020-05-30T11:06:38 | 268,061,813 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,932 | h | gauss_legendre.h | #pragma once
#include "test_type.h"
#include "bench_math.h"
namespace benchmark {
namespace test_gauss_legendre {
template <typename DataType>
DataType GaussLegendre(size_t n) {
DataType next_a, a = 1.0f;
DataType next_b, b = 1.0f / sqrt(2);
DataType next_tt, t = 1.0f / 4.0f;
DataType next_p, p = 1.0f;
for (int ... |
739d41cbdad2bc4b974784de0441417d642a3d2a | b343a8af79507e88a2b077fd36f4f7a4b1d20b4d | /src/Chip8.cpp | e47bb0793a74c66cd2a3610e6f0d9b29dbea5753 | [
"MIT"
] | permissive | DubiousCactus/Cheap8 | 33bdda396db5b73a91a92db06656af582958061b | 243dccf46e5e6e5fef5f5ca2c4d27e50e7fa330c | refs/heads/master | 2021-09-20T03:22:07.724699 | 2018-08-02T13:22:41 | 2018-08-02T13:22:41 | 140,206,187 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,394 | cpp | Chip8.cpp | /*
* Chip8.cpp
* Copyright (C) 2018 transpalette <transpalette@arch-cactus>
*
* Distributed under terms of the MIT license.
*/
#include "Chip8.h"
#include "Keyboard.h"
#include "Screen.h"
#include "Timer.h"
#include <chrono>
#include <condition_variable>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#... |
ed3e8295f3049274b1c261e22a5f84a67a1d2751 | 21f2530b2e2687c9d1c551518cff431ab806a250 | /14_Binary_search_algorithm/MinMaxDivision.cpp | 7ae38f114d55bc064804ebe9f8b441370dc4923a | [] | no_license | kurbakov/codility | e6c3a43861bc9822605539abcf56f70541aab325 | f2d49aca1d477a2fa8ecdc565d370e5880437eac | refs/heads/master | 2021-01-19T15:55:14.654148 | 2017-09-25T16:15:46 | 2017-09-25T16:15:46 | 61,124,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | cpp | MinMaxDivision.cpp | #include "iostream"
#include <vector>
//=====================================================================
// https://www.martinkysel.com/codility-minmaxdivision-solution/
bool block_size_is_valid(std::vector<int> A, int max_block_cnt, int max_block_size){
int block_sum = 0;
int block_cnt = 0;
for(uns... |
1e87f7d12230a4b9c267ff96436e8f7b55a415ff | 1cb795d49bae14eb45b6a63d0d680192da1551f3 | /sketches/smart-deadbolt-adapter/AdapterOrchestrator.h | 3b90874196acc4269aad22dd8fa840067ea1c04c | [
"MIT"
] | permissive | mcvangelder/smart-deadbolt-adapter | d6161309db270eaae10dc924a64d2c7da5217367 | 31f92a7091aaf453303331288aa6a07a0ffd250f | refs/heads/develop | 2020-11-30T06:36:16.992272 | 2020-01-07T23:37:06 | 2020-01-07T23:37:06 | 230,333,843 | 0 | 0 | MIT | 2020-01-07T23:37:07 | 2019-12-26T22:06:21 | C++ | UTF-8 | C++ | false | false | 1,730 | h | AdapterOrchestrator.h | #ifndef AdapterOrchestrator_H
#define AdapterOrchestrator_H
#include <EEPROM.h>
#include <nfc-mifarereader-i2c.h>
#include <statemachine.h>
#include "InterruptProxy.h"
// #define ADPT_ORCSTR_DEBUG
const uint8_t MAX_UID_BYTES = 7;
const uint8_t NUM_ADAPTER_STATES = 7;
class AdapterOrchestrator : public virtual Stat... |
9034ef02711afe488948f32fe1febdd98731c08a | 2860f21caa1ac3c74e43683836c63830adb26666 | /Controls/DKSampleCtrl.h | 9614a59ae9417e468c7b94ae751e3917e64fb497 | [
"Apache-2.0"
] | permissive | stoanetwork/VTS | f34878e4a294c5bba29cdabd78ca95b1a837f420 | c80f98bd18874e4288766205aeef4d90810a27c6 | refs/heads/master | 2023-08-19T18:59:31.335832 | 2021-04-20T12:12:36 | 2021-04-20T12:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | DKSampleCtrl.h | #pragma once
// DKSampleCtrl
#define DKSampleCtrl_CLASSNAME _T("DKSampleCtrl1.0") // Window class name
class DKSampleCtrl : public CWnd
{
DECLARE_DYNAMIC(DKSampleCtrl)
public:
DKSampleCtrl();
virtual ~DKSampleCtrl();
BOOL Create(const RECT& rect, CWnd* parent, UINT nID,
DWORD dwStyle = WS... |
396ea47b521e320802d2e773ca6e5e511ea0bb23 | 63b94e2f5a031a2d07edae158a0c2bd6086a96a6 | /AnimationFSM/PlayerMachine.cpp | 9ba8a78430b8c32c46784faf1389a14480698837 | [] | no_license | Becle-Denis/PRATICAL4_FSM_2 | dc419bad8a2a1e8318fe59e109a96ef459f751c1 | 23f4b1a2715e3436df11365f6b32cb97956a6db5 | refs/heads/master | 2020-09-03T12:52:25.445606 | 2019-11-11T10:44:51 | 2019-11-11T10:44:51 | 219,466,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | PlayerMachine.cpp | #include <PlayerFSM.h>
#include <Idle.h>
PlayerFSM::PlayerFSM()
{
m_current = new Idle();
}
PlayerFSM::~PlayerFSM() {}
void PlayerFSM::setCurrent(State* s)
{
m_current = s;
}
State* PlayerFSM::getCurrent()
{
return m_current;
}
void PlayerFSM::setPrevious(State* s)
{
m_previous = s;
}
State* PlayerFSM::getPre... |
e58c407ae6a22b69796a8313ba7767a30fd040db | b2593d3ebe62296c24dd86d4864d4445000d67cc | /3Dactiongame/3Dactiongame/Quaternion.cpp | da52b9cd5da9bc6f71a47dce281bb8070b09263c | [
"Unlicense"
] | permissive | verysabakan/MusouActionGameProject | 1a672e5a0186fcfe260078a174601b19d7935bd8 | bd948f08c9b25e8b6644ae08d845a2fb114074b1 | refs/heads/master | 2022-12-19T15:04:21.759610 | 2020-09-17T02:38:44 | 2020-09-17T02:38:44 | 262,962,713 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,736 | cpp | Quaternion.cpp | //------------------------------------------------------
// @brief クォータニオンを表す構造体
// 2020 5/28 Ryosuke Iida
//------------------------------------------------------
#include "Quaternion.h"
Quaternion Quaternion::operator*(const Quaternion& q)const
{
Quaternion ret;
double d1, d2, d3, d4;
// x
d1 = x * q.w;
d2 = ... |
c97ca4fc7d8de49120dfb078727bc600aebe185b | 35078f4d6567399acc2198a6ffe27c6107b10efd | /ones_and_zeros_sort/main.cpp | b4a636a69f83dc39ac59cfb5ae720b42f12c7fdf | [] | no_license | yevkk/algorithms | e66cab0fb17f7a098ef5cf7fb2ed6721d52e13a2 | 8bf617dc7d32ea8e6003e9f84e2e1d55c2014729 | refs/heads/master | 2021-07-07T13:52:18.526828 | 2020-12-05T08:20:21 | 2020-12-05T08:20:21 | 214,805,372 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,648 | cpp | main.cpp | #include <iostream>
template<typename T>
class Node {
public:
int key;
T data;
Node() = default;
Node(int Key, T Data) {
key = Key;
data = Data;
}
};
template<typename T>
class DataSet {
private:
int capacity;
void grow_capacity();
public:
int size;
Node<T> *ele... |
d456b573ea8fe89a87e53734aad12287ac6aa990 | 82820dad618359811d1bc91f16772c999b0e419d | /together/YumaTheCompanion/main.cpp | 257190b3e160f27f6ccee8f2dfa3a00e31a9123c | [] | no_license | HouariZegai/github-do-not-ban-us | 26f92a0f8a3f6ae45485c8b8b902049568babde3 | 69862b433be116cd84a0554f54050759283f9ad4 | refs/heads/master | 2020-06-25T02:47:52.306500 | 2019-09-03T09:05:05 | 2019-09-03T09:05:05 | 199,175,755 | 4 | 0 | null | 2019-09-03T09:05:07 | 2019-07-27T14:34:48 | PHP | UTF-8 | C++ | false | false | 2,051 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
#include <unistd.h>
std::string github_do_not_ban_us = "\n\
\n/**//*i//**//**//**//H*//**//**//*b//**//**//**//**/\
\n/*G//**//**//t*//**//**//u*//**//**//**//**//e*//**/\
\n/**//**//**//**//**//**//**//b*//**//*E//**//q*//**/\
\n/**//**//**/ ... |
2c809c11b6fcdcd782d61955018cf700b143e6ae | 8ee673adea24e774f787edbd991546d8c6911b8f | /Simple1945Like/Simple1945Like/gameobjects/characters/Boss/BossRight.cpp | 1043c2c890fef0859949967543acb50578add07e | [] | no_license | oneofthezombies/Simple1945Like | faa7b0882a5082c999d2428bd306041d87145b90 | 8c54ffb32a8f98d9c5963f3987d6acc2d95db85e | refs/heads/master | 2020-03-26T02:27:23.412811 | 2018-08-11T23:44:00 | 2018-08-11T23:44:00 | 144,411,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,706 | cpp | BossRight.cpp | #include "stdafx.h"
#include "BossRight.h"
#include "Constants/Constant.h"
#include "Utilities/CommonMacroFunction.h"
#include "gameobjects/Projectiles/Bullet.h"
using Const = ConstantTable;
BossRight::BossRight() :
Enemy()
{
}
BossRight::~BossRight()
{
}
void BossRight::Init()
{
Enemy::Init();
auto ri... |
337d081c3043db9ec45516dd003f3b8f66b3d33c | 1ef1b55e747f8683d5a58ef2468dd6f5d414061b | /Algorithms/Warmup/Compare the Triplets/Solution.cpp | e6b76c9d3ee6fe59df60c10318ecf8784286a788 | [
"MIT"
] | permissive | zdmohib/HackerRank | afeca61f08c04f87ed191ce6f9f7c707eb457f86 | e486bd3a78477313175bf753689c00656fba9562 | refs/heads/master | 2022-09-16T09:45:18.196770 | 2020-06-04T11:43:02 | 2020-06-04T11:43:02 | 269,344,892 | 0 | 0 | MIT | 2020-06-04T11:46:06 | 2020-06-04T11:46:05 | null | UTF-8 | C++ | false | false | 543 | cpp | Solution.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int i,a[3],b[3],ans[2],alice=0,bob=0;
for(i=0 ; i<3 ; i++)
{
cin>>a[i];
}
for(i=0 ; i<3 ; i++)
{
cin>>b[i];
}
for(i=0;i<3;i++)
{
if(a[i]>b[i])
{
alice++;
}
else if(a[i]<b[i])... |
af6b0044b61d7c1bf31cf806113fc04e1d1f8001 | 751fcfa0bf45ca78dabf6150b546c2ebae62379c | /LiteBase-TF2/LiteBase-TF2/src/Core/SDK/Include/TF2/iclientmode.h | 23c1823963fc3b72825eea114b644a94689c4fb1 | [] | no_license | michrblx/litebase | ea3831271dbf3f34d923131db51b148817017a45 | d41cc5d17f3cedcedfc077d4acd1cd48e093d58e | refs/heads/main | 2023-08-31T21:44:05.430378 | 2021-04-07T11:31:25 | 2021-04-07T11:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,887 | h | iclientmode.h | #pragma once
#include "baseentity.h"
#include "baseplayer.h"
class CUserCmd
{
public:
virtual ~CUserCmd() { };
int command_number;
int tick_count;
QAngle viewangles;
float forwardmove;
float sidemove;
float upmove;
int buttons;
byte impulse;
int weaponselect;
int weaponsubtype;
int random_seed;
short mous... |
c58214ed10b9957b4780f0a61495d96c6db93254 | d2f967e5d9e3f79bd428b43b22dc305173c68e3b | /ADRES/adres_zarf_yazdir_batch_open.h | 422b22847612d3d337d03b4f05236db32d70abe6 | [] | no_license | adakteknoloji/E9 | 44886f1799b72ee98293245b23a87a53914be62e | 41ed314ae97482de6716d5d4b2e6b521ac11e528 | refs/heads/master | 2021-01-01T17:57:03.914973 | 2014-04-11T11:26:12 | 2014-04-11T11:26:12 | 4,817,418 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | adres_zarf_yazdir_batch_open.h | #ifndef ADRES_ZARF_YAZDIR_BATCH_OPEN_H
#define ADRES_ZARF_YAZDIR_BATCH_OPEN_H
#include "etiket_sablonlari.h"
class QString;
class QWidget;
void OPEN_ADRES_ZARF_YAZDIR_BATCH ( int record_id, QString printer_name , QWidget * parent );
QString GET_ADRES_ZARF_ETIKETLERI ( int record_id,... |
ffb643ddf2a7f11f4f320a84decf6ccd4970efe2 | 02dd918b5c8102ac4c059352d75c9933c2de0c05 | /estrutura_dados/struct_exemplo_11.cpp | 752a449317acc983c9dfc93b0c783c158f04d513 | [] | no_license | f-nely/estrutura-dados-estacio | ee09683a3279fa06356d74f7f567dbf3c306324a | ccb7642e6ea8e6ca5f3006867561820fa01deb73 | refs/heads/main | 2023-06-12T01:53:43.493052 | 2021-07-02T11:30:36 | 2021-07-02T11:30:36 | 373,593,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | cpp | struct_exemplo_11.cpp | #include <iostream>
#include <cstring>
#include <cstdlib>
#include <cctype>
using namespace std;
struct cad
{
char nome[31];
int idade;
};
void maiuscula(char func[]);
cad entrada();
void exibe(cad func);
int main()
{
cad funcionario;
funcionario = entrada();
exibe(funcionario);
return 0;... |
8bc3fe998894a236d4fc7c62cb233508e8796afe | 5de130e4a7ac736a3f0249c48838ee5a12eaadc8 | /main/include/RGB.h | fa48ed68b6384acd57d4a9a516c6257600056a46 | [] | no_license | Sipanazat/esp32-rgb-homebridge | 1c0777266592afd9bc929763a111a201a78deb48 | 38d57e0149d5bada6bbb0f14e78b14c53122fbcc | refs/heads/master | 2021-12-14T18:29:17.294759 | 2017-05-18T11:36:13 | 2017-05-18T11:36:13 | 394,344,240 | 1 | 0 | null | 2021-08-09T15:29:02 | 2021-08-09T15:29:02 | null | WINDOWS-1252 | C++ | false | false | 650 | h | RGB.h | /*
* RGB.h
*
* Created on: 2017Äê1ÔÂ9ÈÕ
* Author: xieyi
*/
#ifndef MAIN_INCLUDE_RGB_H_
#define MAIN_INCLUDE_RGB_H_
#include "driver/gpio.h"
#include "driver/ledc.h"
#ifdef __cplusplus
extern "C"{
#endif
class RGB {
private:
uint8_t rv=255,gv=255,bv=255,brightness=100;
ledc_channel_config_t ledc_channel... |
8b13cca87dc4490944d08cef80a725928b19f905 | b268d3851ca046c80cc2e052d8b853f19b59d3fb | /GameEngine/src/math/Matrix2x2.inl | 8f3e7d0138916d0ded0fb379ed2b576b8587c757 | [] | no_license | windless1015/CppGameEngine3D | 03419c01baafc2b941649954c1549f155b396172 | a26d830b8cd795eb797a3284038a03786ac2dc64 | refs/heads/master | 2022-03-27T10:15:55.351490 | 2016-03-16T19:22:55 | 2016-03-16T19:22:55 | 473,269,117 | 1 | 0 | null | 2022-03-23T16:24:37 | 2022-03-23T16:24:36 | null | UTF-8 | C++ | false | false | 1,922 | inl | Matrix2x2.inl | Matrix2x2 Matrix2x2::adjugate(const Matrix2x2& matrix)
{
return Matrix2x2(
matrix.c1r1 , -1 * matrix.c1r0,
-1 * matrix.c0r1 , matrix.c0r0);
}
float Matrix2x2::determinant(const Matrix2x2& matrix)
{
return matrix.c0r0 * matrix.c1r1 - matrix.c1r0 * matrix.c0r1;
}
Matrix2x2 Matrix2x2::inverse(const M... |
cd266bb9cd078f91d4a66bafd103b9ab590712da | e3d18183c7d58bad73debd29157d79685d8828c0 | /include/vo_relocate/vo_relocate.h | e814b3105d0734d30b6a3f7d5d4e582f093d8965 | [] | no_license | vampire2017/vo_relocate_function | b892a187bfc3a52eaeba32d9c03d857bb9ac534e | de07c9917e0ae7ce583ea3921d13aff8c1890828 | refs/heads/master | 2020-03-11T03:04:24.567829 | 2018-04-16T12:10:37 | 2018-04-16T12:10:37 | 129,736,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | h | vo_relocate.h | /*
* brief: come on
* author: Created by bpeer on 18-4-16.
*/
#ifndef VO_RELOCATE_VO_RELOCATE_H
#define VO_RELOCATE_VO_RELOCATE_H
#include "ros/ros.h"
#include <iostream>
#include <string>
#include <map>
#include <sys/time.h>
#include <chrono>
#include <boost/timer.hpp>
#include <opencv2/core/core.hpp>
#include <... |
c06a73c85438451435ef8adb3e41aba43076a324 | 4f7795a9a93ec8756320c9fe00d4aba6d2c3332e | /crud.cpp | 901ba951217ae290b686989363c56dca86459cff | [] | no_license | sathwikmatsa/ToyDBMS | 6fb71ca6539fb5b0f773fe0103134e752f24d185 | 3ade77c153c9ee7028e510388ffd8872ee3bad06 | refs/heads/master | 2020-04-08T03:00:33.828049 | 2018-12-01T08:48:11 | 2018-12-01T08:48:11 | 158,957,905 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,850 | cpp | crud.cpp | #include <iostream>
#include <cstddef>
#include <map>
#include "crud.h"
using namespace std;
vector <heapObject*> HeapObjects;
database Database;
ofstream logfile;
bool LOG;
void garbageCollector(){
if(LOG) logfile<<"func: garbageCollector() file: crud.cpp\n";
int l = HeapObjects.size();
for(int i = 0; ... |
9f75489abe3cb67b9ae761e5957ebfd0d51ab0ef | 483255eebf46a12460a9349fdfb78a5e7d1c1048 | /homeworks/ProjectionOntoGradients/templates/projectionontogradients_main.cc | cb16a8b21fcfe83aa245df2890d8e057fcf3b1c9 | [
"MIT"
] | permissive | erickschulz/NPDECODES | 5460331cb4c608ff922658c9beb1e31b4b6c9b2e | 47b4fe6d60640a10bfe0ed085d67a3ccdadac831 | refs/heads/master | 2023-05-03T09:46:22.047387 | 2023-05-01T07:27:10 | 2023-05-01T07:27:10 | 184,058,364 | 32 | 64 | MIT | 2023-04-28T14:58:23 | 2019-04-29T11:28:34 | C++ | UTF-8 | C++ | false | false | 1,140 | cc | projectionontogradients_main.cc | /**
* @file
* @brief NPDE homework ProjectionOntoGradients code
* @author ?, Philippe Peter
* @date December 2019
* @copyright Developed at ETH Zurich
*/
#include <lf/assemble/assemble.h>
#include <lf/mesh/test_utils/test_meshes.h>
#include <lf/uscalfe/uscalfe.h>
#include <Eigen/Core>
#include <iostream>
#inclu... |
fe70bb8b1cd61e55a5951b218a78395edefc6645 | 73a26279ba8ae07e0d590e32b7278d03f5e88f92 | /Leetcode/Q924.cpp | 4b7ca10480264cdd770582bc8d834a5f821762d6 | [
"Unlicense"
] | permissive | goldsail/Leetcode | 202bbde0d0a495e4abaa5d318df9044dfddb6625 | f23029637f3a16545f15abcd8eafa8eadd56f146 | refs/heads/master | 2023-02-13T17:59:43.809067 | 2021-01-05T08:58:23 | 2021-01-05T08:58:23 | 89,422,818 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,406 | cpp | Q924.cpp | class Solution {
public:
int minMalwareSpread(vector<vector<int>>& graph, vector<int>& initial) {
auto temp = getConnectedComponents(graph);
vector<int> ccMap = temp.first; // the i-th node belongs to the ccMap[i]-th connected component
vector<int> ccCount = temp.second; // the j-th... |
0aaeecab6c0b4badec933c2873160d504d024ec1 | dc54341f0de2e6bb28772e2dd5571e8aa91fadfb | /Firmware/microbit/microbit-dal/BLE_API/source/GapScanningParams.cpp | 20c9d56646e5e242832e229588ed8c940bac8b98 | [
"Apache-2.0",
"MIT"
] | permissive | hansj66/micro-bot | 453ade2d6706351d5378aee9757cc417d2df1dcb | 955995dd051f67189d093bed9e4a8dfd194c506c | refs/heads/master | 2022-10-11T08:22:36.071372 | 2020-02-29T20:41:32 | 2020-02-29T20:41:32 | 231,663,190 | 13 | 2 | Apache-2.0 | 2022-09-08T15:38:06 | 2020-01-03T20:50:39 | C | UTF-8 | C++ | false | false | 2,223 | cpp | GapScanningParams.cpp | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... |
fbbe2c5a36054b11b4aa63fe5848f599562c2020 | 34b3623dbd185b9d8e6bc5af787ff656ebb8f837 | /finalProject/results/test/test_lowRe/spline/spline1/9/phi | 2bc389f837fb98340aeb43374e7a926e3448929f | [] | no_license | kenneth-meyer/COE347 | 6426252133cdb94582b49337d44bdc5759d96cda | a4f1e5f3322031690a180d0815cc8272b6f89726 | refs/heads/master | 2023-04-25T04:03:37.617189 | 2021-05-16T02:40:23 | 2021-05-16T02:40:23 | 339,565,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370,691 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
9533097d4304e76346885cc1aa03f576b893e156 | b5d6bef867559a53ac6cd82b65624458dd20214f | /programmers/두 개 뽑아서 더하기.cpp | 2ca163f004ff502d9f0882898956d5cc648ecffa | [] | no_license | jingnee/algorithm | cfb33ab5c5243c2d7752746aadfa9d3017f63072 | 3c99db64c3840a3696bd188b5fbb6b54990303c4 | refs/heads/master | 2022-06-22T22:15:36.838947 | 2022-06-09T09:22:04 | 2022-06-09T09:22:04 | 231,215,092 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | 두 개 뽑아서 더하기.cpp | #include <string>
#include <set>
#include <vector>
using namespace std;
set<int> s;
vector<int> solution(vector<int> numbers) {
vector<int> answer;
for(int i=0;i<numbers.size()-1;i++){
for(int j=i+1;j<numbers.size();j++){
s.insert(numbers[i]+numbers[j]);
}
}
for(auto a : s)... |
d5e6cb8fe55c58eb6b67d9663fba2c8bfb7d6239 | 06c15fb5309f624a6b82d9b11ecc4d222566f7ae | /microduino/hardware/Microduino/avr/libraries/_03_Microduino_nRF_RF24Network/examples/sensornet/DuinodeV3.h | 7a3d03a6bff77b25cacee5b7cf587ffddbc6a84b | [] | no_license | tigerlet/Mixly_Company_Extend | 406d10c948069df9f77a7c05130f97eb09ee4c6c | b924108e37fac26708f27a27109701bfe1486b04 | refs/heads/master | 2020-11-29T11:25:08.944662 | 2019-12-12T09:58:40 | 2019-12-12T09:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | DuinodeV3.h | #ifndef __DUINODE_V3_H__
#define __DUINODE_V3_H__
/**
* @file DuinodeV3.h
*
* Contains hardware definitions for RF Duinode V3 (2V4)
*/
#define PINS_DEFINED 1
#define __PLATFORM__ "RF Duinode V3/V4 (2V4)"
const int rf_irq = 0;
const int led_red = 3;
const int led_yellow = 4;
const int led_green ... |
e83d54aaf19d407d2218f87915923d17311005fb | 13b2cc3bd61740a812ef589a5950b41f88d0e20a | /Flappy/main_state.h | 78c754653071116997fb5f6ae03e2b8f4e7f9235 | [] | no_license | alexisjauregui/FappyClone | b2eba36ec12c32e0f3cb53b3697e1c09dc2f8cf6 | ae6eb086c40c1490700a5deedfd53892b031c169 | refs/heads/master | 2020-05-30T00:45:08.156403 | 2015-09-06T04:50:10 | 2015-09-06T04:50:10 | 41,954,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | main_state.h | //
// Created by Alexis Jauregui on 8/28/15.
//
#ifndef FLAPPY1_MAIN_STATE_H
#define FLAPPY1_MAIN_STATE_H
#include <iostream>
#include "game_state.h"
#include "game.h"
class main_state: public tiny_state
{
public:
void Initialize(sf::RenderWindow* window);
void Update(sf::RenderWindow* window);
void Re... |
6e3e5be8e4058b1adcfd4ef72609a1753e3b838a | 1f5c8bdd1c15a94e2b0c6cdc389d83d0937de82a | /Temp/il2cppOutput/il2cppOutput/Bulk_Mono.Security_1.cpp | ab75b3824fff140d4cb9102655406df5515d4d34 | [] | no_license | White-Wlof/Pull_Action | 8798e0767180269bfe686abc5bb9110c53e39346 | 587d3b9bd1c5d12507563fad450e31bad897c176 | refs/heads/master | 2021-01-10T14:36:15.399060 | 2015-11-25T02:30:51 | 2015-11-25T02:30:51 | 46,396,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 110,974 | cpp | Bulk_Mono.Security_1.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
// Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate
struct TlsServerCertificate_t755;
//... |
de80d1491269a958da71ac08ddaff776d082cdc1 | 25233db2ce312f4a3287d2132dbd99800e13979c | /StealthFactor/code/engine/frontend/FrontendManager.cpp | 92e5b7ac45a03175395f1260ff62c529e3df027e | [] | no_license | KoltesDigital/Game-Architecture-Epita-2018 | f0512b2b5f5aef17be4e59fba04b9e2ec0e49487 | 3c1a75640f5ae5d9b099445ce3b24000375e4634 | refs/heads/master | 2020-03-11T18:04:03.834444 | 2017-06-17T07:47:02 | 2018-06-18T23:49:33 | 130,165,931 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,821 | cpp | FrontendManager.cpp | #include "FrontendManager.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <engine/backend/Map.hpp>
#include <engine/assets/AssetsManager.hpp>
#include <engine/frontend/Prefab.hpp>
#include <engine/frontend/components/Camera.hpp>
#include <engine/frontend/components/Transform.hpp>
namespace engin... |
8c75342974e2f3f5ca26a12810e8473f25239ffc | a90262e67958502e95ea6595c99fb1931ae6c82e | /LT045901/LT045901.cpp | 2944c80b231374ac44bbe6ca38621693b8cf496a | [] | no_license | to0d/leetcode | 63fe604ca27013879bc81de5f3281e9af4cb376a | 24bada160f28cfc00ad089001c95106b7a0722a6 | refs/heads/master | 2023-08-19T22:53:58.762277 | 2023-08-13T02:00:01 | 2023-08-13T02:00:01 | 63,608,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | cpp | LT045901.cpp | #include <lt_help/lt.h>
class Solution {
public:
bool repeatedSubstringPattern(string s) {
int size = s.size();
if( size <= 1 )
return false;
char c = s.at(0);
for(int i = 1; i <= size/2; ++i)
{ if( s.at(i) != c || (size % i) != 0 )
... |
1360304cf54d418c131a7378defd17254c65ce4b | 40ad916847eb350b53abe10cc5921828ca21dc3c | /Tile.cpp | e4ba98312f68126d26ad78b222248b167e934a41 | [
"MIT"
] | permissive | Daizee/spitfireii | af5b7cb266fa25f5f06d0dcd630b7c5924d66a86 | 9d77f8f752da794a39baf4aea316618db4e6795d | refs/heads/master | 2020-04-24T16:03:23.608372 | 2013-10-27T05:42:02 | 2013-10-27T05:42:02 | 13,892,577 | 1 | 2 | null | 2013-10-30T10:00:52 | 2013-10-26T23:06:01 | C++ | UTF-8 | C++ | false | false | 2,434 | cpp | Tile.cpp | //
// Tile.cpp
// Project Spitfire
//
// Copyright (c) 2013 Daizee (rensiadz at gmail dot com)
//
// This file is part of Spitfire.
//
// 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 with... |
38b0bb57923fdd9fd78ed8c51f9bb6fc41fbccfe | d6955e45ef7d6ef5836de9677cdcfbb23e82029f | /include/TraceProcessor.hpp | 6f96faf051e481ca6ef160ec9a47c78341852a0d | [] | no_license | cthornsb/SimplePixieScan | 71f54858a00fbd7766a7b4439335afe304ee5f15 | f3bf430157d5a82f3268e8717d0e7df408f3f04a | refs/heads/master | 2020-04-03T20:17:32.327949 | 2019-09-27T23:59:20 | 2019-09-27T23:59:20 | 40,027,720 | 1 | 3 | null | 2015-12-21T22:01:43 | 2015-07-31T22:44:18 | C++ | UTF-8 | C++ | false | false | 721 | hpp | TraceProcessor.hpp | #ifndef TRACE_PROCESSOR_HPP
#define TRACE_PROCESSOR_HPP
#include "Processor.hpp"
class MapFile;
class TraceProcessor : public Processor{
private:
TraceStructure structure;
Trace waveform;
Plotter *tof_1d;
Plotter *tqdc_1d;
Plotter *filter_1d;
Plotter *maximum_1d;
Plotter *maxADC_1d;
Plotter *stddev_1d;
P... |
096d20cedd0d6a9c71b8888f3079884054a9f1f1 | 1c390cd4fd3605046914767485b49a929198b470 | /luogu/P7072.cpp | 95bcc77345c8475d71e817c11177ae7e98c20a75 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | P7072.cpp | #include<bits/stdc++.h>
using namespace std;
int c[601];
int n, w, x;
int main()
{
scanf("%d%d", &n, &w);
for (int i = 1; i <= n; i++)
{
scanf("%d", &x);
c[x]++;
int s = max(1, i * w / 100);
for (int j = 600;; j--)
{
if (s > c[j])
{
s -= c[j];
}
else
{
printf("%d ", j);
break;
... |
da6f5274bd77ca6945cef7daa9b527d9bc6bad72 | a9f4c6196bccb91c7df9bb94722fb2fa590b2e6a | /RiegaBotPub.ino | d5396048b709412a7c98e3793689fb9eba490742 | [
"MIT"
] | permissive | fmdavid/RiegaBot | 4f5d9933b03d72e138b5814f7ae66a7d62c17506 | 702f99ed2c0bceba77d4e3b57f5f865212d45d5c | refs/heads/master | 2020-03-25T06:35:28.355712 | 2018-08-04T20:01:44 | 2018-08-04T20:01:44 | 143,512,021 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,714 | ino | RiegaBotPub.ino | #include "WiFiEsp.h" //Libreria para comunicarse facilmente con el modulo ESP01
#include "SoftwareSerial.h"
#include <TM1637.h>
// PINES
// Configuración del ESP
#define PIN_RX 11
#define PIN_TX 12
// TM1637
#define CLK 3
#define DIO 2
// 74HC595
const int latchPin = 9 ; //Pin conectado a ST_CP of 74HC595
const... |
05ef09c2ecd53356d92587f398418356eb3d1d31 | 5b9b5ff6b0cfa25d8141e2c95da671d4c4557d32 | /sources/initialize_widgets.cpp | f0cff30181efa931b346a9d2b09373c964a7ad48 | [] | no_license | Guernouille/ffix_rng_masters | 421775cee989f8f39bba8b529d55f0d8de7df84a | 16968c6e955af230b608116431562ef16f12358d | refs/heads/master | 2021-01-10T17:40:13.642269 | 2016-01-29T21:21:02 | 2016-01-29T21:21:02 | 50,680,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,612 | cpp | initialize_widgets.cpp | #include "mainwindow.h"
void MainWindow::initialize_display()
{
ui->LCD_Seed1->display("2404");
ui->LCD_Seed2->display("0001");
}
void MainWindow::initialize_labels()
{
ui->img_block_1_1->clear();
ui->img_block_2_1->clear();
ui->img_block_3_1->clear();
ui->img_block_4_1->clear();
ui->img_b... |
d90fafe42c0eeac0c1f4b4d989453e125c0d090a | 8929c305fc101641cbb615f5f4108a36d9aae9bb | /subsetsum.cpp | e1551d574f9b333370c5495443d91b28103ff09c | [] | no_license | rresol/Practice | 629403d32bc0e2d80ad3769527ca6ab8338593c0 | 13b9bb892af6a051b23db5023a906078849365be | refs/heads/master | 2021-01-12T18:06:27.145251 | 2017-10-04T10:06:11 | 2017-10-04T10:06:11 | 71,325,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | subsetsum.cpp | #include<iostream>
using namespace std;
int ans[1000];
int subsetsum(int a[],int start, int n, int sum,int j)
{
if(sum<0)
{
return 0;
}
if(sum==0)
{
return 1;
}
if(start==n&&sum!=0)
return 0;
for(int i=start;i<n;i++)
{
ans[j++] = a[i];
if(!(subsetsum(a,i+1,n,sum-a[i],j)))
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.