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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbaaa05ac9f6d62faf63b0ac9913a505e68b4ef4 | 8dd704e6c87309800b0a7a795df181cd563c0bb7 | /Source/MuthM/Private/UMGBase/MusicManagerUIBase.cpp | 107daf557e0db02cb4f7bdbcc945325ba83c4703 | [] | no_license | Jack-Myth/MuthM | 2f2ec6da3f14e3039a82178dad23b5ce24f785d0 | d3ebe7f9316fc44542c8330b073f8dba9a1a5d07 | refs/heads/master | 2020-04-03T10:22:54.841332 | 2019-05-12T15:25:59 | 2019-05-12T15:25:59 | 155,191,358 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,877 | cpp | MusicManagerUIBase.cpp | // Copyright (C) 2018 JackMyth. All Rights Reserved.
#include "MusicManagerUIBase.h"
#include "MuthMBPLib.h"
#include "UIProvider.h"
#include "MusicImportationUIBase.h"
#include "MuthMGameInstance.h"
#include "Kismet/GameplayStatics.h"
#include "GameHAL.h"
#define LOCTEXT_NAMESPACE "MuthM"
TArray<FMusicInfo> UMusicM... |
8ec1ba7eee60f9979bbf054624465e6433595d55 | 06e4db0fd47b18c35ab4f7c0f3f8239f7bf086a8 | /Contest/Topcoder/DIV1_easy/756_NewBanknote/main.cpp | 29ecaf38b5257fb7d0d3d722a2be6f46cb20538a | [] | no_license | StevenMaMei/Competitive-Programming | 4ad6dce42a67ff8077a1142d0cc5ef2b0ceafe96 | 463f9fe91e3e2d900f6def24920012a1b8ffa431 | refs/heads/master | 2022-12-04T17:38:30.012751 | 2020-08-25T00:20:52 | 2020-08-25T00:20:52 | 216,122,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | cpp | main.cpp | #include <bits/stdc++.h>
#define ff first
#define ss second
#define fore(i,a,b) for(int i=a,colchin=b;i<colchin;++i)
#define pb push_back
#define ALL(s) s.begin(),s.end()
#define FIN ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define sz(s) int(s.size())
using namespace std;
typedef long long ll;
class NewBank... |
4a1455c2bce09bfa20790c00b10919a9cc6593e0 | 4cb0f2cfb9ec3ec8c851f83ff3ea73ca5a62aa70 | /democodebase/pt/d3d9/rendering/shading_program_fwd.h | e138fb1a2fb76fb6d4c18a2efffc92fe9890f9b2 | [] | no_license | Codarki/Pyrotech_2016 | 99733bb543621d755dc0451cee86e3988021a1e2 | 5e7a71b9ec751061285f3f784e861ac8f2726ee1 | refs/heads/main | 2023-05-30T08:11:30.626406 | 2021-06-24T23:13:53 | 2021-06-24T23:13:53 | 380,065,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | shading_program_fwd.h | #pragma once
#ifndef PT_D3D9_RENDERING_SHADING_PROGRAM_FWD_H
#define PT_D3D9_RENDERING_SHADING_PROGRAM_FWD_H
#include "pt/std/memory.h"
namespace pt { namespace d3d9 { namespace rendering {
class shading_program;
using shared_shading_program = std::shared_ptr<shading_program>;
}}} // namespace pt::d3d9::rendering
... |
a97d2aa64286778d53f810932855a5dafbe5dc65 | 2fb8fb6cde8aeba59c585728af92fd334f0ae9c9 | /tdt-project/src/helpers/AnimationHelper.cpp | 7be735cedf3f8fc162acfa08abb3268918070ec1 | [] | no_license | Dzejrou/tdt | dca548441fe8ef18c5a69c8cd7e5b1eae11fbe20 | 209bb5ac6c8c4adc63927719d1e29ac1233b69aa | refs/heads/master | 2020-12-28T22:11:21.150592 | 2016-11-17T19:16:34 | 2016-11-17T19:16:34 | 37,917,717 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,369 | cpp | AnimationHelper.cpp | #include <map>
#include <Components.hpp>
#include <Cache.hpp>
#include <systems/EntitySystem.hpp>
#include <gui/gui.hpp>
#include "AnimationHelper.hpp"
#if CACHE_ALLOWED == 1
static tdt::cache::AnimationCache cache{Component::NO_ENTITY, nullptr};
#endif
const std::string& AnimationHelper::get_animation_name(ANIMATION... |
6a11ff77581c1aac6974e15a869c91d99a31b72b | 4490e615a756d3f5f99ca7cad478040beeca9375 | /Borland C++/Unidad III/A1103168.cpp | f45539fe9daa28ec85ac84a430ae3ceaf25382af | [] | no_license | misaeladame/programacion-estructurada-con-almacenamiento-persistente-de-los-datos | 04162ae22a48909aa743bdd3992067cef98ef205 | 7e7016dd50d958406e17174d90715e4fc6bfc0a2 | refs/heads/main | 2023-06-11T00:44:16.261384 | 2021-07-02T00:39:07 | 2021-07-02T00:39:07 | 382,189,717 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,313 | cpp | A1103168.cpp | // CENTRO DE BACHILLERATO TECNOLOGICO industrial y de servicios No 4
// MÓDULO 1 DE LA ESPECIALIDAD DE PRORGAMACIÓN
// Archivo A1103168.CPP
// PROGRAMA APLICACION DE PUNTEROS
// Lenguaje C++
// Alumno: José Misael Adame Sandoval Gpo:11 NL:03
// Titular: Ing. Juan Antonio Yañez Palafox
#include<iostream.h>
#include<... |
4fb019003480b5813f59e53e38295eae20553fbe | 6b54e6130c580b5db35a3051adc7e3b78ebdab89 | /c++/main.cpp | fd78628bcfa351b842bf610122ae5d32b7edb701 | [] | no_license | healther/pynbody | b541a3d855bd1e2beb0a28cacab7c7425393cd91 | 7aa9f2e3def584ad6c02a0ab25faf5f68acd5695 | refs/heads/master | 2021-01-18T19:28:55.574604 | 2018-01-15T14:58:33 | 2018-01-15T14:58:33 | 16,617,242 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,941 | cpp | main.cpp |
#include <iostream>
#include <ctime>
#include "system.h"
int main(int argc, char const *argv[])
{
std::cout.precision(17);
int n = 5;
System s1("../test.data");
std::clock_t begin = std::clock();
// System s1(n);
int interactions_brute = s1.run();
std::clock_t end = std::clock();
dou... |
f1c1d7d06f459758959c9c8ad971a314adbbd014 | 39959a8d76e9eeaa3e56d62fe35a804776dafb80 | /nsefocontract_reader.h | bfec8432b2fa45b7bba23611d951fb70a1f4f802 | [] | no_license | Ankur-Chauhan/PortfolioGenerator | 6f9344e6fe7066e415e328014a5211d58afbfdcb | 9a21ece9fd4c3f1f4fd8c437d788e1d71d2e8077 | refs/heads/master | 2020-05-05T02:30:06.517091 | 2019-06-13T07:52:58 | 2019-06-13T07:52:58 | 179,640,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,494 | h | nsefocontract_reader.h | #ifndef _NSEFO_CONTRACT_READER_H_
#define _NSEFO_CONTRACT_READER_H_
#include <iostream>
#include "filereader.h"
#include "struct_char.h"
class CNSEFOContractFileReader : public CFileReader
{
enum ENUM_NSEFO_COLUMN_ID : uint16_t
{
CONTRACT_TOKEN = 0,
CONTRACT_ASSETTOKEN = 1,
CONTRACT_I... |
86c043461989da45c95ea63aae6d68e5ff0029ad | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/move/core.hpp | 35fa24e76fb9c96409052140dccbfa45a736b893 | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55 | hpp | core.hpp | #include "thirdparty/boost_1_55_0/boost/move/core.hpp"
|
5a157592d86fd7fe8ca9bab5c05b51b8500de868 | 5252a1403e08410272a39c781ebb1b2ebedf74a0 | /src/Response.h | a38c27f76665530d189f0b0c1322e02d86d59f63 | [] | no_license | kosiachenko/SimpleRPC | aa6a3976a06954455360ce380228c2f8d37a0b9b | d4a36ba1843719371eda47e49f0a3a4bf4db0f6f | refs/heads/master | 2021-01-19T11:52:13.393963 | 2016-11-11T06:25:56 | 2016-11-11T06:25:56 | 69,771,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | h | Response.h | #ifndef RESPONSE_H
#define RESPONSE_H
#include <stdint.h>
#include "Point.h"
class CartesianResponse {
public:
int32_t transactionId;
int32_t resultCode;
double distance;
int readFromBuf(char buffer[]);
int writeToBuf(char buffer[]);
};
class MidpointResponse {
public... |
5a61288aae496d91ead9585ab31b312ad88eb115 | 9dd71b679d59f003884e45d96226c0827037647e | /src/MOGL/Rectangle.cpp | 19115dd53119d275373e1e39b7c4fed3792c3958 | [
"MIT"
] | permissive | llop/hummingbird-MOGL | 1bb7cd333e217d303d26b70a354568c39b480db2 | e2b723ec9a3762aac650c6335809f55972d9f91a | refs/heads/master | 2021-01-22T01:58:26.846741 | 2016-04-20T13:27:06 | 2016-04-20T13:27:06 | 56,935,813 | 0 | 0 | null | 2016-04-23T18:58:58 | 2016-04-23T18:58:58 | null | UTF-8 | C++ | false | false | 1,941 | cpp | Rectangle.cpp | #include "Rectangle.hpp"
#include "MultimediaOGL.hpp"
namespace mogl
{
Rectangle::Rectangle (double width, double height, const sf::Color& color):
p_width(width),
p_height(height),
p_color(color)
{}
void Rectangle::init()
{
float vert[12] = {
0. , 0. ,
p_width , 0. ,... |
e225d75357995a0a149944b2e4bb8515263e7c27 | 967b53eb03404fe6efa9d2b23de297c3f4d1a821 | /SNMPv3TestApp.cpp | 6e0a9fab7bfe633aa1e2c098b507e83bab863c9b | [
"MIT"
] | permissive | paulorb/SNMP-Samples | 154c301ae5663652661fa2774c89aa51f349636d | a733829cc65db7171c28e10cd2a31ffbd497bb06 | refs/heads/master | 2021-05-06T07:52:37.467873 | 2017-12-12T10:29:07 | 2017-12-12T10:29:07 | 113,974,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,928 | cpp | SNMPv3TestApp.cpp | // SNMPv3TestApp.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <net-snmp/net-snmp-config.h>
#define HAVE_STRING_H 1
#define HAVE_WINSOCK_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRTOUL 1
#define HAVE_STRTOL 1
#define HAVE_STRDUP 1
#define RETSIGTYPE void
... |
9b60b7dda2b8cf51110f0a6d42c6cd1aba2a1b7a | 06b5b0d8c7f33ced4ce5ed8589098fef0da73ad5 | /POC_MSI_EXPLOIT_BY_HUOJI/global.h | 25bdf30261c1a4fe780db485605b85c6e7142e01 | [] | no_license | fengjixuchui/Heuristic_antivirus_engine_by_huoji | df0aec8f355fca913a0b2ae1b7e490a82b796b5a | fbd70441f44007c6e785db11bdab96208fcf8666 | refs/heads/master | 2023-02-03T02:41:43.079587 | 2020-12-23T07:00:48 | 2020-12-23T07:00:48 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 474 | h | global.h | #pragma once
#include "head.h"
#include "pe_action.h"
class globalvar
{
public:
csh hanlde_capstone;
uc_engine* uc_engine;
uc_hook hook_code;
uc_hook hook_mem;
uc_hook hook_mem_unmap;
uc_hook hook_mem_write;
uc_hook hook_sys_call;
std::vector<sim_process> process; //虚拟的进程列表
std::unordered_map<uint64_t, std::st... |
8f17e9cdd75d5722729429a24b8019e45eae2b2f | 2c1789716f89a6a4bcd2a572e4d49cbc0b4cdb76 | /chaos_engine/include/Event.hpp | 075c49a9cdd76e7f2fdb78c742f9ec4f1b395910 | [] | no_license | stawrocek/chaos_engine | c2b2a57e9c4e3e8abf6ccf18b4f3f63a399777af | 4632ada28b7bbe6f1993d48dc7371100c2712020 | refs/heads/master | 2020-05-22T06:58:00.765737 | 2017-12-05T21:23:59 | 2017-12-05T21:23:59 | 64,597,097 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,120 | hpp | Event.hpp | #ifndef EVENT_HPP
#define EVENT_HPP
namespace chaos{
struct CHAOS_EXPORT KeyboardEvent{
enum KeyCode{
Key1='1',
Key2='2',
Key3='3',
Key4='4',
Key5='5',
Key6='6',
Key7='7',
Key8='8',
Key9='9',
KeyA='A',
KeyB='B',
KeyC=... |
0c29c86fd9eb225f2d9271b282fff447e9fc5d49 | 0a2e80252d1a359d30e042f0ea9a07621862b35c | /FixedIncomePricingLib/LIBOR.h | a0bce0493640edd523714f4fdb2c03af247a5090 | [] | no_license | qli128/FixedIncomePricingLib | d942e6a00448221b6c0a2891b60f6364088bf183 | 51f86ea8cc41f3c2d3bfed48ea56d27654d09bc3 | refs/heads/master | 2022-04-22T17:39:10.877341 | 2020-04-26T18:48:46 | 2020-04-26T18:48:46 | 259,465,264 | 0 | 0 | null | 2020-04-27T21:53:36 | 2020-04-27T21:53:35 | null | UTF-8 | C++ | false | false | 1,081 | h | LIBOR.h | //
// LIBOR.h
// AdvCMidTerm
//
// Created by YinManlin on 2020/4/17.
// Copyright © 2020 YinManlin. All rights reserved.
//
#ifndef LIBOR_h
#define LIBOR_h
#include <vector>
#include <string>
#include "OIS.h"
class LIBOR : public IDiscount
{
public:
// read in data
boost::gregorian::date today;
std::... |
985ed27ab8a1fda53efa6127e5d9ecb1e5777cdd | 09ea547305ed8be9f8aa0dc6a9d74752d660d05d | /example/lastfmplaylistserviceplugin/lastfmplaylistserviceplugin.cpp | d8d25b1c947558ca992b85d5f3001c247589e086 | [] | no_license | SymbianSource/oss.FCL.sf.mw.socialmobilefw | 3c49e1d1ae2db8703e7c6b79a4c951216c9c5019 | 7020b195cf8d1aad30732868c2ed177e5459b8a8 | refs/heads/master | 2021-01-13T13:17:24.426946 | 2010-10-12T09:53:52 | 2010-10-12T09:53:52 | 72,676,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,265 | cpp | lastfmplaylistserviceplugin.cpp | /**
* Copyright (c) 2010 Sasken Communication Technologies Ltd.
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal... |
27916c89758091ff316f2dcfb66a9d46204cae4e | e7ea3bd5fe44237785968aabeb698fa240df5e77 | /src/boomerang/frontend/ppc/PPCFrontEnd.h | b21b6d18ffd24bcc70a7c4ca90da3582d3c8fbaa | [
"BSD-3-Clause"
] | permissive | powerbf/boomerang | 88ccc6823c5804773bfd29f18cfc7f7140365045 | a56379e246dd509b9fda5d27f1bbf8b5a9e8741f | refs/heads/develop | 2020-04-10T09:25:54.713694 | 2018-12-09T13:13:49 | 2018-12-09T13:13:49 | 160,936,028 | 0 | 0 | NOASSERTION | 2018-12-09T11:50:28 | 2018-12-08T12:16:18 | C++ | UTF-8 | C++ | false | false | 1,075 | h | PPCFrontEnd.h | #pragma region License
/*
* This file is part of the Boomerang Decompiler.
*
* See the file "LICENSE.TERMS" for information on usage and
* redistribution of this file, and for a DISCLAIMER OF ALL
* WARRANTIES.
*/
#pragma endregion License
#pragma once
#include "boomerang/frontend/DefaultFrontEnd.h"
/**
* Con... |
2c211c2e2520c4d18e4cf52e6f2cd3cb5ff25362 | 89f50ef35094128902548859bce5dc2cd662b123 | /src/Dragon.cpp | 12ff601d5130fb02339eb78ec80f0f91f35e9f1a | [] | no_license | pmeade/dragons | 67407bcaa1941e5892462ced6da2da253ac3ddd3 | 9f21a53736f4bc0dd058905487b16fda4b554864 | refs/heads/master | 2020-04-28T20:18:00.549372 | 2019-04-17T04:31:00 | 2019-04-17T04:31:00 | 175,539,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70 | cpp | Dragon.cpp | //
// Created by Patrick Meade on 2019-03-07.
//
#include "Dragon.h"
|
33d99471b9c245642a3f093ee8cff37024278da5 | 08fd6feb2638d85bb6adc493e1cc84a2783c7674 | /sys/easynet_condition.cc | e397688fe252b49e6b8b15735b69d6b6794f766f | [] | no_license | garyluojian/easynet | ccf8cfb51ebe820ee5ce8c326a06020b842bf70a | 9cebe750a220b8c8f6405455f6ec023b2063554a | refs/heads/master | 2021-06-12T14:54:11.953280 | 2019-01-13T12:20:11 | 2019-01-13T12:20:11 | 96,901,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cc | easynet_condition.cc | #include "easynet_condition.h"
#include "easynet_mutex.h"
#include <time.h>
#include <errno.h>
namespace easynet
{
namespace sys
{
void easynet_condition::wait()
{
int rc = pthread_cond_wait(&_native_cond_handle,
_mutex_handle.get_mutex_native_handle());
}
... |
5d265ebc2eb8711d77d8c596dc8143b126308647 | ed66f90f96d76c0beb7687acef130d69c61ae919 | /swri_profiler/swri_profiler_tools/src/profiler_msg_adapter.cpp | ec243d95b142119fe674846e03bd41b94b9a4176 | [
"BSD-3-Clause"
] | permissive | RLWBruins/boxcuttingrobot | 2b32727aa9ffc27fc3387f3f48cadd1c2714cfb8 | cfefe569150fd96944ad113996bcf569bdff932a | refs/heads/master | 2020-11-27T14:00:20.855161 | 2019-12-21T19:24:28 | 2019-12-21T19:24:28 | 229,473,770 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,853 | cpp | profiler_msg_adapter.cpp | #include <swri_profiler_tools/profiler_msg_adapter.h>
#include <swri_profiler_tools/util.h>
namespace swri_profiler_tools
{
ProfilerMsgAdapter::ProfilerMsgAdapter()
{
}
ProfilerMsgAdapter::~ProfilerMsgAdapter()
{
}
void ProfilerMsgAdapter::processIndex(const swri_profiler_msgs::ProfileIndexArray &msg)
{
const QS... |
a69157a0fa6c03813aef6ec3df3ddbfedd112485 | 8e45543c50288165bc5c04640b97dc71c2f3daf7 | /3B_Pulsador_tone/3B_Pulsador_tone.ino | 71b7afe9cc0285822fcc0c08e61a05717a734c0a | [] | no_license | ingJE/CatedraRobotica | 09a9828095d908e7f4e6d63519978eb8daaf1b0b | 5f99b5db615cbe8583326dd03b9cf5bd1632a647 | refs/heads/master | 2020-09-12T06:31:13.710994 | 2019-11-18T15:38:50 | 2019-11-18T15:38:50 | 81,767,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | ino | 3B_Pulsador_tone.ino | /*
Pulsador Zumbador
Sistema para controlar un zumbador con un pulsador
Hardware:
Pulsador pin 2
Zumbador pin 12
*/
// constantes que no cambian se usan para establecer los pines
const int pulsadorPin = 2; // el numero del pin del pulsador
const int buzzerPin = 12; // el numero de pin del zumbado... |
6ff2b3769e51936c43536c555e9d069676b45571 | f4202aca203ca63c8ee485954314bb9b7562e777 | /src/Entitatmobil.h | 4fa73e07dd8d727685e6767a60cee7bc54977b0e | [] | no_license | utrescu/Gol | adb7feae1f42c5b2866bd70aa45742fd1aae42ea | 042226db30bb5e8ddc132397c41ec5909805c724 | refs/heads/master | 2021-05-09T19:37:19.271029 | 2019-06-03T13:48:17 | 2019-06-03T13:48:17 | 118,652,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,037 | h | Entitatmobil.h | /***************************************************************************
* Copyright (C) 2006 by Xavier Sala *
* utrescu@xaviersala.net *
* *
* This pr... |
8467af5ee852e6b3d778bc052ea5ab0af4631c25 | cecfda84e25466259d3ef091953c3ac7b44dc1fc | /UVa Online Judge/volume123/12366 King's Poker/program1.cpp | 24ace3fe39d4f0f264c6f2d042f9b410b252d4a3 | [] | no_license | metaphysis/Code | 8e3c3610484a8b5ca0bb116bc499a064dda55966 | d144f4026872aae45b38562457464497728ae0d6 | refs/heads/master | 2023-07-26T12:44:21.932839 | 2023-07-12T13:39:41 | 2023-07-12T13:39:41 | 53,327,611 | 231 | 57 | null | null | null | null | UTF-8 | C++ | false | false | 2,219 | cpp | program1.cpp | // King's Poker
// UVa ID: 12366
// Verdict: Accepted
// Submission Date: 2021-12-09
// UVa Run Time: 0.000s
//
// 版权所有(C)2021,邱秋。metaphysis # yeah dot net
#include <bits/stdc++.h>
using namespace std;
const int SET = 3, PAIR = 2, UNPAIR = 1;
struct hand
{
int A, B, C;
hand (int a = 0, int b = 0, int c = 0)... |
3347ee7e43363c689061bfd8596c5ff42e27b638 | 9186363f9f517857c565347238b52cd29e13e6bb | /SpringMassMesh.h | df977f9bb937d060ab7373908a363263f3171204 | [
"MIT"
] | permissive | aWilson41/TetrahedralSpringMassSim | 7616abe284423b85130f87bc3381a0bbdc0b7f8e | f37a56547c4d07d9b30e3da1ed9c3a1ca63bb981 | refs/heads/master | 2021-09-10T13:27:40.679223 | 2018-03-26T23:48:39 | 2018-03-26T23:48:39 | 125,916,498 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | h | SpringMassMesh.h | #pragma once
#include "Engine\MathHelper.h"
#include "Engine\Polygon.h"
#include "Spring.h"
#include "Particle.h"
class SpringMassMesh : public Poly
{
public:
void setupSpringMesh();
void setupSpringMesh(GLuint* indices, int size);
void update(GLfloat dt, GLfloat g);
void calculateNormals();
protected:
std::vec... |
3e78d6db38a7477df76902eb66c132ea668b3f7c | 4a92d9c414cfde2e89ab72b48ec775779846a668 | /NinAtHome/HighFrame/HFCommon.h | 5ea4f0d518ea6f47315b2c93a0a5820e36d1a1da | [] | no_license | HIBICUS-CAI/BowAndArrow | bc5e287c09873eb8565f954b5b9fccd5ca68f62b | d3face3a6b7c5ca613e19a43838e4edaaf864621 | refs/heads/master | 2023-08-23T11:21:51.804797 | 2021-10-11T02:30:25 | 2021-10-11T02:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | h | HFCommon.h | //---------------------------------------------------------------
// File: HFCommon.h
// Proj: NinAtHome
// Info: HighFrameに対して必要なヘッダーファイル
// Date: 2021.06.09
// Mail: cai_genkan@outlook.com
// Comt: NULL
//---------------------------------------------------------------
#pragma once
#include "main.h"
#define APP_FP... |
dc43993ef1bf88351e6024bf8e69d64679878a46 | 978d8cbca5d97bb8d463ac53720ffba77a548d71 | /include/ouchilib/units/si.hpp | e6a66f84f4bc6dba06bf49d6744b0f7a88db1796 | [
"MIT"
] | permissive | ouchiminh/ouchilib | b29a077d7e925a2e7e0630a9ac13be7b4f7d230b | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | refs/heads/master | 2021-06-24T19:00:39.614613 | 2020-11-13T15:55:15 | 2020-11-13T15:55:15 | 174,334,491 | 1 | 0 | MIT | 2020-07-27T08:33:48 | 2019-03-07T11:49:59 | C++ | UTF-8 | C++ | false | false | 2,149 | hpp | si.hpp | #pragma once
#include "units.hpp"
namespace ouchi::units::si {
struct length {};
struct mass {};
struct time {};
struct intensity {};
struct thermodynamic_temperature {};
struct amount {};
struct luminous_intensity {};
using si = system_of_units<length, mass, time, intensity, thermodynamic_temperature, amount, lumi... |
1b62e2af9d668734d804659445aa314a99374007 | 00d6a671ab47dd9d67f576322ca4616afba8162b | /lru_cache.h | 6d3cbdd5dc0091afb438200cfe167fbe520c36a8 | [] | no_license | poorvaja23/RPC-based-Proxy-Server-1 | 441cf67bb9b2d5f9973022c8aec10bd74f356c00 | cd98b2f50b049ecdb44bd7be33603766ce524ade | refs/heads/master | 2021-01-13T15:31:01.854430 | 2015-03-30T04:06:19 | 2015-03-30T04:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 918 | h | lru_cache.h | #ifndef lru_cache_H
#define lru_cache_H
#ifndef CACHE_MAX_SIZE
#define CACHE_MAX_SIZE 1048576
#endif
#include <string>
#include <map>
#include "lru_queue.h"
class lru_cache
{
int MAX_SIZE;
int size;
std::map<string, string> dictionary;
queue lru_queue;
std::map<string, queue_element*> queue_ptrs;
public:
lr... |
e43f40542b8736991c3ef3f900746006450421a7 | a071753a94d6d247bdfc8468661e99046a92e376 | /level_zero/tools/test/unit_tests/sources/sysman/temperature/linux/test_zes_temperature.cpp | 13a9f8a5ee8dabefc4f027ccd6e4fee4db723669 | [
"MIT"
] | permissive | JacekDanecki/compute-runtime | dd17bd773dc5a97fee38259d35bf103eaa006176 | 156c55e6a61c84d78ea530970c3092c94f055ffc | refs/heads/master | 2022-03-22T02:24:10.485771 | 2021-05-21T11:30:24 | 2021-05-21T11:37:22 | 119,974,462 | 1 | 6 | MIT | 2019-03-26T17:26:08 | 2018-02-02T11:37:53 | C++ | UTF-8 | C++ | false | false | 14,826 | cpp | test_zes_temperature.cpp | /*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/test/unit_tests/sources/sysman/linux/mock_sysman_fixture.h"
#include "level_zero/tools/test/unit_tests/sources/sysman/temperature/linux/mock_sysfs_temperature.h"
namespace L0 {
namespace ult {
std::str... |
149df8dfe3aae5536afbffbb0b70530e71e1f34d | 6457beb5e94adce53f145bf4389eb3169d47e266 | /src/algorithms/insertion_sort.cpp | ff498a47b04faa6712fcb263f41b14e25bc29e26 | [] | no_license | thevojacek/AlgorithmsVisualisation | 7b72e32424093d6c8bb75ad130f2b013f276ee92 | 3ad222e34e2d6e8578565c0e841fb3b14b7e00c2 | refs/heads/master | 2023-04-02T14:01:49.884018 | 2021-04-16T13:46:26 | 2021-04-16T13:46:26 | 270,092,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | insertion_sort.cpp | #include "insertion_sort.h"
#include "../utils/thread/thread.h"
AlgorithmFunction insertion_sort() {
return [](vector<int>* array){
if (array == nullptr) return;
thread_utils::sleep_thread(20);
for (int i = 1; i < array->size(); i++) {
int j = i;
int tmp = array->at... |
14c13ac70cf90c531fbb7f454e98d43c8becca19 | efc129216f321f85720f6fdfd5663a5c344a67ab | /mpgame/Game_local.h | 13cd6e0768c4fed2a179febc7f15927e5a822a53 | [] | no_license | Stradex/q4-librecoop | 70d27054d303d847a5016b14e3286d1c267618ea | cd0c47e5f1b499bf146b65ae7d3d1e84eb95eb1f | refs/heads/main | 2023-03-14T01:17:59.154888 | 2021-02-25T06:36:48 | 2021-02-25T06:36:48 | 341,447,640 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 62,212 | h | Game_local.h | #ifndef __GAME_LOCAL_H__
#define __GAME_LOCAL_H__
// RAVEN BEGIN
// jsinger: attempt to eliminate cross-DLL allocation issues
#ifdef RV_UNIFIED_ALLOCATOR
inline void *operator new( size_t s ) { return Memory::Allocate(s); }
inline void operator delete( void *p ) { Memory::Free(p); }
inline void *operator new[]( size_t... |
ce1ae1867fd1325500acbd0643963f326dd3e9f7 | 342695543c11684e3e312a69b5fb3c29cc434c28 | /ui_alilogincircling.h | b86c94321dc9ba13ffb6393be2fe7806e975ca6b | [] | no_license | Mr-MoRL/- | 8fd338365abe97f490c4f7daa05f6d6493dff6bc | 77fd27a5c43c6e3e83bc9188bd4781da3fca3187 | refs/heads/master | 2022-04-17T21:11:31.990774 | 2020-04-10T12:59:35 | 2020-04-10T12:59:35 | 254,629,131 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,933 | h | ui_alilogincircling.h | /********************************************************************************
** Form generated from reading UI file 'alilogincircling.ui'
**
** Created by: Qt User Interface Compiler version 5.8.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********************************... |
9c693fa4782ff515b240ea8cb11cec5b5e648344 | 86acd48da71f0faa0642c99173b9cf31b51ca5e5 | /examples/A. Modul IO Aktif High/04. Set Reset/O2_Set_Reset_Variabel/O2_Set_Reset_Variabel.ino | bd037b20165e43943c64df36ce0e96b97da1f64d | [] | no_license | dianartanto/PLCArduinoku | 3b48af462f567247a768d72cf544f5637c12649d | 968e515f429659de1d180aaea2cb3348b87d8893 | refs/heads/master | 2021-01-19T08:59:28.804031 | 2015-04-14T05:52:40 | 2015-04-14T05:52:40 | 33,913,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | ino | O2_Set_Reset_Variabel.ino | /*
1.Rangkaian:
Modul Input Output Aktif High.
Kaki Input : X1, X2 (kaki A0 dan A1 Arduino)
Kaki Output : Y1 (kaki D2 Arduino)
Alat Input : Tombol 2x
Alat Output : Relay 1x
2.Program:
X1 Y1
1 ||-------] [--------------(S)-------||
|| X2 Y1 ... |
84cbdcdc41cd0622667545b7697245d61bfae8e5 | d66458d42fc34b442e19970af4bdf0d4e143450f | /PTRecordFile.h | fe8fb07b0a01bccaa0c6c1aa3cb68998481a53d0 | [] | no_license | KirillKomarov/CristallModel | 0d04f8d1ddb0371472df5a1e0751c9e9228d9eaf | e5995a797f4addf14a71e7864017d954d40d2d60 | refs/heads/master | 2021-01-19T12:52:15.775250 | 2017-04-12T11:06:57 | 2017-04-12T11:06:57 | 88,054,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | h | PTRecordFile.h | #pragma once
#ifndef MYALGEBRA_H_
#define MYALGEBRA_H_
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <Eigen/Eigen>
//#include "ProgramConstant.h"
void recordVector(Eigen::VectorXd& vector, std::string adress, std::string name, std::string format);
void recordCollection(std::v... |
249cee22bb2e16c95a91595d9517aff5432eeaa8 | e5ae1568208504221116057dadaa8fb23db39eb6 | /kundendaten/src/window_neue_bank_anlegen_glade.hh | a00e594a11b7ae8634413e2a5a701fc94eff2110 | [] | no_license | cpetig/manuproc | 025dce0f63cc56db36e8b4e613154eda859094b8 | 1bbfb9e214792cd3537bf59e5e3a93dcab6f6d59 | refs/heads/master | 2021-05-31T06:23:51.799144 | 2007-01-11T14:18:16 | 2007-01-11T14:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | hh | window_neue_bank_anlegen_glade.hh | // generated 2005/6/24 11:37:58 CEST by christof@vesta.petig-baender.de
// using glademm V2.6.0
//
// DO NOT EDIT THIS FILE ! It was created using
// glade-- kundendaten.glade
// for gtk 2.7.0 and gtkmm 2.6.3
//
// Please modify the corresponding derived classes in ./src/window_neue_bank_anlegen.hh and./src/window_neue... |
e11e1171a1f7974e6a866fd354c59e9a2ebdcfee | 2bce17904e161a4bdaa2d65cefd25802bf81c85b | /codeforces/193/B/B.cc | 5d333508c2d6c999f21f70540cbb448cd3600b77 | [] | no_license | lichenk/AlgorithmContest | 9c3e26ccbe66d56f27e574f5469e9cfa4c6a74a9 | 74f64554cb05dc173b5d44b8b67394a0b6bb3163 | refs/heads/master | 2020-03-24T12:52:13.437733 | 2018-08-26T01:41:13 | 2018-08-26T01:41:13 | 142,727,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | cc | B.cc | #include "bits/stdc++.h"
#include <assert.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define PB push_back
#define MP make_pair
const int MOD=1000000007;
#define endl "\n"
#define fst first
#define snd second
const int UNDEF = -1;
const ll INF=1e18;
template<typename T> inline bool chkmax(T &a... |
7084bb363d6eaad5976d72974f4994267341a18f | 1fe97875709e1c5e68ede59fbe6975ac52b306e3 | /session-2/howtostart.cpp | 1aeb23ab1b506fbe356e212966c5334173f42e29 | [] | no_license | kronsi/howtogetanerd | 2155bb6d220dd687ed0c70a2eb25bd7603b4427f | 8a1f069a36b9bc4f34f0d1d0aeabe7a655cbbe0c | refs/heads/master | 2023-06-03T17:10:03.554479 | 2021-06-25T11:36:58 | 2021-06-25T11:36:58 | 358,292,560 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | howtostart.cpp | #include <iostream>
using namespace std;
int main()
{
int number1;
int number2;
cout << "Gib eine Zahl ein: ";
cin >> number1;
cout << "Gib eine zweite Zahl ein: ";
cin >> number2;
cout << "Summe: " << (number2 + number1) << endl;
//cout << (number1 + number2) << endl;
return 0;
} |
83c86937e7c55981bb1bfe6e6db99fe7c500c110 | 8d831f0e7bdf007b7ffd17059986a2bde1028ca4 | /TEST.cpp | 3ce5b8c1f1b8fda68f43a87e278f76155c6d8d87 | [] | no_license | anushka7244/cpp | b3f33cb173fafacd1f20309a40a0988ba6dfaf2c | 5d29052149fcce19ac4af05a92734301576b9475 | refs/heads/master | 2023-08-07T07:29:00.025797 | 2021-10-05T06:37:09 | 2021-10-05T06:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | TEST.cpp | #include <iostream>
using namespace std;
int main()
{
int input ;
while( cin >> input && input != 42 )
cout << '\t' << input << '\n' ;
while( cin >> input ) ;
} |
7f703c449ba3104427fca602e4ca62050f1c66f9 | 0fb5d0ed28894b4effc41fce1e783790dda61004 | /cppcache/src/ClientMetadataService.hpp | ce6209df1a5586de7fd614a171fc35315806f88d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown"
] | permissive | mmartell/geode-native | 9760e5b8cdd638dbca69e0919be602482518bee3 | fa6edf5d3ad83c78431f0c5e2da163b7a0df5558 | refs/heads/develop | 2022-05-26T06:23:13.244763 | 2021-03-05T21:25:49 | 2021-03-05T21:25:49 | 81,501,967 | 0 | 0 | Apache-2.0 | 2021-03-05T21:31:43 | 2017-02-09T22:37:58 | C++ | UTF-8 | C++ | false | false | 8,161 | hpp | ClientMetadataService.hpp | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
1f7369e272eeeb69933d332918e710392e00145f | f0347b369c3f9b5b353b35048016bff76f22a5b9 | /530/sol.cpp | 63529e29fafb4a8fb1df93d90f022aca5ce0e473 | [] | no_license | 546Archie/Leetcode | a8224c6127a0afd270cb2397a667d148020c9492 | 366cfc6ffaff98fa4bf79209d9de7b60d5ed49b9 | refs/heads/main | 2023-06-08T21:50:48.440032 | 2021-06-26T03:48:44 | 2021-06-26T03:48:44 | 330,677,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 804 | cpp | sol.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int diff = INT_MAX;
TreeNode *pre = NULL;
void dfs(TreeNode *root){
//go left a... |
8e5cd012c9ae20d61acc40bcf8c051abede5109a | c0ff488af82adfb20d712d21e08414ef9998c4e3 | /Src/Cust/Stm32/F429/Bsw/IoHwAb/IoHwAb_Cfg.cpp | b9dfaca828259628ec63e31303d206a196c1e2bb | [
"BSL-1.0"
] | permissive | einChi20/autosar-framework | 9905381fff6f010985a423d566190e0ec29aad5b | abcf11970470c082b2137da16e9b1a460e72fd74 | refs/heads/master | 2021-05-28T20:40:26.477118 | 2015-03-13T09:25:02 | 2015-03-13T09:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | IoHwAb_Cfg.cpp | ///////////////////////////////////////////////////////
// Copyright 2014 Stephan Hage.
// Copyright 2014 Christopher Kormanyos.
// Distributed under the Boost
// Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt )
//
#include <Bsw/Io... |
9edf4075bd88050b06db4335422a6ada9bc766d8 | 0bcd663651be17ffbdf9ab2ab5be4ae53a9b9e61 | /lab3/B.cpp | 910e2340367aa81b4690233cc71c7721cfdfa211 | [] | no_license | VankaTaganai/Discrete_Math_ITMO | 599ff71104c8794d4afbd6d678f1252041744c28 | 4f248fdbf052559b78a586aa9b115fcadb6a13f9 | refs/heads/master | 2021-02-11T04:32:07.250527 | 2020-05-23T08:21:51 | 2020-05-23T08:21:51 | 244,454,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
#define ff first
#define ss second
const double eps = 1e-6;
const int inf = 1e9 + 7;
const ll mod = 999999937;
const int maxn = 400 + 7;
int main() {
#ifdef LOCAL
freopen("in.txt", "r",... |
ad645d5a8b1aaa969d68f0a66bc3ab8165c66716 | d33b8d890b189253707df91687fce4a237c5cfe9 | /dcc/dcc/dcc/io/file_reader.h | 067ddc6eb7af296e2318fe28f4a7ea0cd9c96615 | [] | no_license | bqqbarbhg/dcc | c38d504a42f0cdd3549b238de24ad5ad18c41587 | 09f91ed89ba2a22466a8067a50b7909af7fe97ce | refs/heads/master | 2021-01-18T15:17:06.095813 | 2013-05-05T22:36:58 | 2013-05-05T22:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | h | file_reader.h | #ifndef _DCC_IO_FILE_READER_H
#define _DCC_IO_FILE_READER_H
#include <fstream>
#include <dcc/file.h>
namespace dcc { namespace io {
class FileReader
{
public:
FileReader(FileReader&& reader);
FileReader(File& file);
// Reads a sinlge character from the file
// Updates the files newline indices
// Returns 0 on... |
f2fe6747492296cdbe070020f4ef794539efb5ae | 92e67b30497ffd29d3400e88aa553bbd12518fe9 | /assignment2/part6/Re=110/22.5/U | afd54659b9518b01128e95f36cb2a8f72db7695f | [] | no_license | henryrossiter/OpenFOAM | 8b89de8feb4d4c7f9ad4894b2ef550508792ce5c | c54b80dbf0548b34760b4fdc0dc4fb2facfdf657 | refs/heads/master | 2022-11-18T10:05:15.963117 | 2020-06-28T15:24:54 | 2020-06-28T15:24:54 | 241,991,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 62,403 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
fe833b16486826b49779d021ddb59ba8dd070dd1 | 1012ed7a2e231215c59ffc99acb68e7d2e5efe12 | /src/SigPro.cc | f729fceabd8ffc3330097d09f917737e78c484a4 | [] | no_license | jford22/sigpro | 042385bdfc24e86249bb32636a358d4f9f25beab | 4f6fa28b7a276780d440bd2d18ea357248e7ba20 | refs/heads/master | 2020-09-11T19:29:51.390196 | 2019-11-24T04:01:22 | 2019-11-24T04:01:22 | 222,168,022 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cc | SigPro.cc | #include <iostream>
#include "SigPro.h"
#include "TxRxMeta.h"
#include "SigProTestInputGenerator.h"
#include "Target.h"
#include "TargetDecorator.h"
#include "NoiseDecorator.h"
#include "SignalDecorator.h"
#include "SignalImpl.h"
#include "Signal.h"
#include "Channel.h"
SigPro::SigPro():
signal(),
control_set... |
29aa8561141e046eb5bb391367d86aa6ced35613 | 79bd639c75da41ef50549141eb19ad1327026dd5 | /gui/retracer.h | 402e809da9d20e03218f9b8e61a5492d23040ae1 | [
"MIT"
] | permissive | apitrace/apitrace | 0ff067546af346aa623197491e54d4d0f80ca887 | 00706d1a395ab6570ab88136fffb3028a3ded3bd | refs/heads/master | 2023-08-18T14:51:16.977789 | 2023-08-07T17:51:44 | 2023-08-11T08:18:20 | 1,611,530 | 2,097 | 452 | MIT | 2023-08-25T16:49:59 | 2011-04-13T21:37:46 | C++ | UTF-8 | C++ | false | false | 2,677 | h | retracer.h | #pragma once
#include "trace_api.hpp"
#include "apitrace.h"
#include "apitracecall.h"
#include <QThread>
#include <QProcess>
class ApiTraceState;
namespace trace { struct Profile; }
struct RetracerCallRange
{
qlonglong m_callStartNo{0};
qlonglong m_callEndNo{0};
};
class Retracer : public QThread
{
Q_... |
40b89c780c59f4c4def8aa01db88fb3130dab3f4 | d447c6389c32d8e6f4003ea55c6ba1ceac26b28d | /FontDumy/Inc/LGTypeDef.h | 2dc74cca8cbe797b553615ee8981d60797c6a68d | [] | no_license | aorura/fontLength | f1e06d5490e0efc61abdc8b793b75bb1caaf1ea9 | 09c9ef5ba79231f0ced4a0a070b944285d97d379 | refs/heads/master | 2021-01-10T13:56:05.394672 | 2015-12-29T11:50:50 | 2015-12-29T11:50:50 | 48,418,621 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 9,905 | h | LGTypeDef.h |
// CARINFO3 Team. LABORATORY, LG ELECTRONICS INC.,
// Copyright(c) 2012 by LG Electronics Inc.
//
// All rights reserved. No part of this work may be reproduced, stored in a
// retrieval system, or transmitted by any means without prior written
// permission of LG Electronics Inc.
//
// \file LGTypeDef
... |
bd705b870b39767c1d9ef56a2bc288bd7054bb0b | ff26883d46d3af70ead32fdabd5f7a4187c835f7 | /Practice_Level1_Cpp.cpp | 45ac72bc4fd09acf258e94ba6939fd968e010b45 | [] | no_license | soy567/Algorithm_practice | 940f22120d6a11fd1d667fb8a8c07e3472672075 | c343cbf8e485a01c662f94c6feadbd26fe690903 | refs/heads/master | 2020-11-27T12:07:54.710070 | 2020-02-22T05:08:23 | 2020-02-22T05:08:23 | 229,432,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,740 | cpp | Practice_Level1_Cpp.cpp | //문제 - 문자열 압축
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int solution(string s) {
int answer = 0;
int min_sub = s.size();
for(int i = 1; i <= s.size()/2; i++){ //2중 반복 이용 각 길이별로 잘라 길이 구하기
string a, b, ans = "";
int sub_len = 1;
a = s.substr(0, i); ... |
2f39fd3e13da147ba87cff357d68c6c94a5df60c | 4217ad2034022e63967f936f0bc2c375df62d110 | /ABC13x/ABC139/A/ans.cpp | 564c85f0f1e8888b0dd3ea899f9bdf04912dbf5e | [] | no_license | sealddr/MyAtCoder | 53b734124d08e479885274f4fd576d99683b50c8 | 3b9914115fd93503c04477233c5404a5f44f1378 | refs/heads/master | 2022-07-04T01:02:19.690485 | 2022-05-28T13:55:47 | 2022-05-28T13:55:47 | 239,226,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | ans.cpp | #include <iostream>
#include <string>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); ++i)
int main(void) {
string s, t;
cin >> s >> t;
int cnt = 0;
if(s[0] == t[0]) ++cnt;
if(s[1] == t[1]) ++cnt;
if(s[2] == t[2]) ++cnt;
cout << cnt << endl;
return 0;
} |
4785c7156341d1f39255ed7567540fdbbcb992e0 | 527a89c21076d4c61f81965ce04727067b6ebefe | /perlin.hpp | 6060cd1c6d1472cea45a074ca3067e4490ce9f92 | [] | no_license | daRoyalCacti/Raytracing | df35f15d2ead02053c1af58068391a6b11286ae0 | 7a13837a05e1f18fcc3cc87e878ba60d653b989a | refs/heads/master | 2023-06-25T21:54:22.637310 | 2021-07-12T23:49:25 | 2021-07-12T23:49:25 | 316,123,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,204 | hpp | perlin.hpp | #pragma once
#include "vec3.hpp"
#include <algorithm>
#include <numeric>
class perlin {
static constexpr unsigned point_count = 256;
std::array<vec3, point_count> ranvec; //array to hold the noise
//was original a double array, now vec3 to help with smoothing the noise
const std::array<int, point_count> p... |
5ca714fe39c9c37e8259df21d91e2d68a8a0a55a | e81d8f24860ece7d1ed987b2ef929b39df46642d | /Primero/1 Cuatrimestre/FP/Sesión 8/Ejercicios de clase/11_Tipo Conjunto.cpp | 4433bbe91f3aa2595179132f5a50096f7fa51e96 | [
"MIT"
] | permissive | Duckboy117/DGIIM | e338a6664d8e7ab62bca0974b52883de925fe4b8 | b4044149b03b7d81f87d7994360646dddb109342 | refs/heads/master | 2023-01-28T02:21:36.339205 | 2020-12-07T23:50:59 | 2020-12-07T23:50:59 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,032 | cpp | 11_Tipo Conjunto.cpp | /* Programa para trabajar con
conjuntos. Permite introducir
elementos en un conjunto, calcular
la unión y la intersección.
Se asume que el usuario
ha introducido previamente los
datos iniciales */
// TENGO QUE CORREGIR LOS DOS ÚLTIMOS
#include<iostream>
using namespace std;
struct TipoConjunto... |
8f25867d94960b6fe8fe9ff85067c597bc01f67d | 81a79b2b835f885990641feff068c10601ac92a2 | /TextStream.h | 02a62694afd7cd0ba80021748f05666abe3abb7a | [] | no_license | Paulware/RoboticsLibrary | 31339a2025b34ff69af0d7edf73a965eeee2ab1b | c4f4ada36665456d5e8b4213f9e1b7afbb89c11d | refs/heads/master | 2021-01-21T16:35:00.941094 | 2018-09-02T04:07:53 | 2018-09-02T04:07:53 | 95,407,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | h | TextStream.h | #ifndef TextStream_h
#define TextStream_h
#include <SoftwareSerial.h>
class TextStream : public SoftwareSerial {
public:
TextStream (int pin) : SoftwareSerial (pin,20) {
begin (9600);
};
TextStream (int rxPin, int txPin) : SoftwareSerial (rxPin,txPin) {
begin (9600);
};
TextStream() : Softw... |
63735ff2042c30b49e50888303b6fc08e611b92f | d1cee40adee73afdbce5b3582bbe4761b595c4e1 | /back/RtmpLivePushSDK/boost/boost/accumulators/statistics/weighted_tail_quantile.hpp | d7481f83f3ab16fbc0db30424d505e6031882043 | [
"BSL-1.0"
] | permissive | RickyJun/live_plugin | de6fb4fa8ef9f76fffd51e2e51262fb63cea44cb | e4472570eac0d9f388ccac6ee513935488d9577e | refs/heads/master | 2023-05-08T01:49:52.951207 | 2021-05-30T14:09:38 | 2021-05-30T14:09:38 | 345,919,594 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,804 | hpp | weighted_tail_quantile.hpp | ///////////////////////////////////////////////////////////////////////////////
// weighted_tail_quantile.hpp
//
// Copyright 2006 Daniel Egloff, Olivier Gygi. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if... |
6e7e12f55b78a8d44efc9d881017dbbf17893ff7 | 26f6f9a290182e1ffa8f8554b2f9f498b17004f0 | /LeetCode/0022.generate-parentheses/generate-parentheses.cpp | 5dbbc618971021e863c759d9521e5486a148ea56 | [] | no_license | ZhaoxiZhang/Algorithm | bb2d0f4a439def86de86de15f5cb91326e157fe0 | 6f09e662f4908f6198830ef1e11a20846ff3cacb | refs/heads/master | 2021-01-01T19:42:02.668004 | 2019-09-07T14:55:14 | 2019-09-14T08:08:39 | 98,655,367 | 13 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | generate-parentheses.cpp | class Solution {
public:
vector<string> generateParenthesis(int n) {
vector<string>res;
string str;
generate(res, str, n, n, 2 * n);
for (auto val : res) cout << val << endl;
return res;
}
void generate(vector<string> &res, string str, int left, int right, int size){... |
3724eee2afe18abfef660454bd5321c1f8370235 | 38efa38f256860e7a6e178bd32de7d169af0efe4 | /Tests/VectorCopyBenchmark.cpp | 5c3082e44f5a1588566181d424dd44856a33ee87 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | dmitriano/Awl | 6231b654a6320b8707d340d30287bda5f1415339 | 2fff3dd60ca58b1f8e760ca3ee48e7bd46a2693d | refs/heads/master | 2023-08-25T06:38:16.267534 | 2023-04-17T11:37:15 | 2023-04-17T11:37:15 | 72,160,204 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,956 | cpp | VectorCopyBenchmark.cpp | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Product: AWL (A Working Library)
// Author: Dmitriano
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <... |
85b4bbf32ffaa8cbbf439d030f698f791bd5b321 | df7bda815b74bd40df4324c562336aa0742ba5ec | /include/utils.hpp | cc43a1b991040839506155c641f1d3a9e2feb212 | [] | no_license | Phil25/boomer_bot | 844647d3f698dee31aec031d6290fe6c4313e34d | 4d1a567f36bfbd17f2ca9bdcf2b540773dd46988 | refs/heads/master | 2020-12-03T18:20:18.538873 | 2020-01-02T17:26:50 | 2020-01-02T17:26:50 | 231,427,700 | 0 | 0 | null | 2020-01-02T17:22:04 | 2020-01-02T17:22:04 | null | UTF-8 | C++ | false | false | 2,339 | hpp | utils.hpp | #ifndef DUMB_REMINDER_BOT_UTILS_HPP
#define DUMB_REMINDER_BOT_UTILS_HPP
#include "types.hpp"
#include <nlohmann/json.hpp>
#include <cpr/cpr.h>
#include <iostream>
#include <fstream>
namespace bot::util {
inline static const std::string user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Ge... |
859240a0f61af10e903f5898add055d3e6552de4 | d84508e288d340160fd26890497622c87a49a23f | /motor/position_control/motor_pins.ino | da1afe8d37f19cab944076bc55f9533ce0601f75 | [] | no_license | kevin-roark/dartbot | 9dd88081a13c9ee5ee959f9ad92ec35f11b70e11 | f3815ac2bade6398dc486fe93a60845da5564afd | refs/heads/master | 2021-01-21T07:48:01.126848 | 2015-05-10T15:55:38 | 2015-05-10T15:55:38 | 31,699,097 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,659 | ino | motor_pins.ino |
// pin configuration
#define motor1Enable_pin 2 // enable - turn on to go home -- green
#define motor1Position_pin 3 // input a - low to go to position 1, high to go to position 2 -- white
#define motor1Homing_pin 4 // input b - make HIGH to set home position -- purple
#define motor2Enable_pin 5 // purple
#define mot... |
61f492d3a9ae857f64d37b0c92521556c1d9f315 | 3c3202165332fbbf8d8e4ed0b72c8a4c46481cdc | /SdlAnimatedSprite.h | 2e97b51237c2beb650252484e95e23392e6c0ba7 | [] | no_license | asdlei99/sdl-playground | 1435e0dc5eb62bb74baf59780247a765f3900114 | 16067d84b886c1e84a34622dfb41c3ca32d39ae2 | refs/heads/master | 2020-09-15T02:33:07.754416 | 2017-12-28T06:14:48 | 2017-12-28T06:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | SdlAnimatedSprite.h | //
// Created by victor on 12/24/17.
//
#ifndef SDL_PROY_SDLANIMATEDSPRITE_H
#define SDL_PROY_SDLANIMATEDSPRITE_H
#include <utility>
#include <vector>
#include <map>
#include "SdlTexture.h"
#include "SdlException.h"
class SdlAnimatedSprite: public SdlTexture{
public:
SdlAnimatedSprite();
~SdlAnimatedSprite() ove... |
32ec2e4faa431f61428bbad2bae281186a0e19b3 | dd6147bf9433298a64bbceb7fdccaa4cc477fba6 | /8382/Rocheva_Anna/lab5/loggers/Adapter.cpp | 1d3a1697201b6281e343843cece8c1a49fb5c7a4 | [] | no_license | moevm/oop | 64a89677879341a3e8e91ba6d719ab598dcabb49 | faffa7e14003b13c658ccf8853d6189b51ee30e6 | refs/heads/master | 2023-03-16T15:48:35.226647 | 2020-06-08T16:16:31 | 2020-06-08T16:16:31 | 85,785,460 | 42 | 304 | null | 2023-03-06T23:46:08 | 2017-03-22T04:37:01 | C++ | UTF-8 | C++ | false | false | 423 | cpp | Adapter.cpp | #include "Adapter.hpp"
void Adapter::setLog(std::string logString) {
if (!logger)
return;
logger->setLog(logString);
std::string log = "\nField status:\nCells without units: " + std::to_string(field->getHeight()*field->getWidth() - field->getNumUnits()) + "\n";
logger->addLog(log);
}
void Adap... |
e94c5325977c6cb00714fd52648e343384a3af7d | af5f60eaa6f88161902f38945f3c03bab695e1b8 | /asst1/easybj.h | 2ee1c157385da4a18842932474147805812d12c5 | [] | no_license | pbugash/EasyBlackjack | 6e067e7a61ddc7eb38dcaceb7cc08c6d4c84b127 | 2b3f56dec817855516df17339b5268371a9f18a1 | refs/heads/master | 2022-06-23T13:06:59.577250 | 2022-03-24T02:45:13 | 2022-03-24T02:45:13 | 219,583,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,464 | h | easybj.h | /*
* easybj.h
*
* Header files for Easy Blackjack.
*
* Note: change this file to implement Blackjack
*
* University of Toronto
* Fall 2019
*/
#ifndef EASYBJ_H
#define EASYBJ_H
#include <string>
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;
class ... |
e35fa3ebf3c420f947c2d8b00976dc2a7d24ce83 | 252f4523cd15409113fe89b7472fe9a4e6931e98 | /Sources/Radio&Motor/ServerB1/ServerB1.ino | 5267ca7064fbbb1419425887d2d0b07f9fd141bc | [] | no_license | TNUA-NMA-Graduate2018/logoutTaipei_part5 | 7bc9b65266f5f5ec91c2751aa02017e56e163d05 | 55fd6a4ed1568836b725bcff7e34cf12b6e4e5fa | refs/heads/master | 2021-09-14T02:04:18.634720 | 2018-05-07T12:53:48 | 2018-05-07T12:53:48 | 116,146,164 | 0 | 0 | null | 2018-01-05T08:16:59 | 2018-01-03T14:29:52 | Max | UTF-8 | C++ | false | false | 3,958 | ino | ServerB1.ino | #include <SPI.h>
#include "RF24.h"
#include <Servo.h>
#include <Wire.h>
#include <SoftwareSerial.h>
boolean inputString = 1;
boolean stringComplete = false;
//SoftwareSerial mySerial(6, 5); // RX, TX
Servo myservo;
int Mode = 1; //輪椅模式
int ModeChanged = 1; //輪椅模式確認 1互控
//0自控 1互控
const int servoPin = 8; // the digital... |
97f156f3c7aa887afa2844f5cf5c466e98074d3c | e039afdf038bd09ba2c77db006e1ff937874c660 | /common/task_queue.h | 60b629241633289d7fac2d8cb357deb9f9921fa7 | [
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | godmoves/HappyGo | f15e54321c887d1e7acc3d939d0c242a54221dbc | 8c813d10315660626f18e3985bbcb87ea5c684a5 | refs/heads/trt5 | 2021-06-26T11:55:09.515275 | 2019-03-10T09:27:18 | 2019-03-10T09:27:18 | 133,219,042 | 11 | 2 | NOASSERTION | 2019-03-10T09:27:19 | 2018-05-13T08:31:14 | Python | UTF-8 | C++ | false | false | 2,696 | h | task_queue.h | /*
* Tencent is pleased to support the open source community by making PhoenixGo
* available.
*
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License");
* you may not use this file except in compliance with the License.
* You may ... |
e3ebe2a38fff263b50b57ef740047c071864362a | 53c3c3ee9f51556f64375076a677ef892c6d3654 | /fancy_core/Rendering/RenderPlatformObjectCache.h | d55ea8301089bebec51b8de53d2e1fecca561ba5 | [] | no_license | domme/FANCY | 75133d47bb6c349e8d6ce60cc7777fcd907a1bb2 | f6451ead9a4758b16bee3f019e6fbff7487a5f70 | refs/heads/master | 2023-06-24T15:49:59.992434 | 2023-06-18T21:02:06 | 2023-06-18T21:02:06 | 7,263,701 | 29 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | RenderPlatformObjectCache.h | #pragma once
#include "EASTL/hash_map.h"
namespace Fancy
{
template<class T>
class RenderPlatformObjectCache
{
public:
virtual ~RenderPlatformObjectCache() = default;
virtual void Clear() = 0;
protected:
std::mutex myCacheMutex;
eastl::hash_map<uint64, T> myCache;
};
}
|
91e093f4604ead178018c5eb614be4fb885259bc | de5f745686f58902816385ba33937dc63f2cd53f | /js/spidermonkey-ios/include/jsval.h | d146d207e014b028d5ea1ee92ea72a16de9226bc | [
"MIT"
] | permissive | csdnnet/hiygame | cb70c41f46c00cf1c46b0158d7a1c7fbccb94973 | 4ffe66c7d17e3588bc54d30959079ea0f6f85714 | refs/heads/master | 2021-01-22T07:39:09.767963 | 2012-07-14T05:12:43 | 2012-07-14T05:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,956 | h | jsval.h | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=4 sw=4 et tw=99 ft=cpp:
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use ... |
7b7c83f4e54702c3ce19a7ad6853f6defa4bfb59 | 8dde6b62ee37febc9dc0103d4f822ed1900991b3 | /src/tree/Invocation.h | 8fc0dbc5be5bdac6970f6941718504ca72791290 | [] | no_license | mikhaylova-daria/Compiler | 8523bb7457661868f4fec12a9bad31fa73c2f6f9 | bde698a24b40dcf8e06781c8f461e09631e241d7 | refs/heads/master | 2020-12-24T06:51:30.483318 | 2016-05-25T13:36:56 | 2016-05-25T13:36:56 | 42,936,340 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,663 | h | Invocation.h | //
// Created by nicolai on 20.10.15.
//
#ifndef MINIJAVACOMPILER_INVOCATION_H
#define MINIJAVACOMPILER_INVOCATION_H
#include "Expression.h"
#include "Indentifier.h"
// Arguments of function call
class CExpressionList : public IToken {
const std::string name = "CExpressionList";
public:
CExpressionList(Loc... |
a2142a7fe806b587acd28720f988532136efd8c9 | 7ed7151f5523aba4d747a69920ebd193d6ac891b | /平成26年/其他图论/HDU5036 可达矩阵位图.cpp | aa65ebe6b4481abdf27ab56a15dfc72a8186fe5a | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | zjkmxy/algo-problems | 5965db9969855f208ae839d42a32a9b55781b590 | 7f2019a2ba650370e1e7af8ee96e6bfa5b4e3f87 | refs/heads/master | 2020-08-16T09:30:00.026431 | 2019-10-22T05:07:07 | 2019-10-22T05:07:07 | 215,485,779 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,801 | cpp | HDU5036 可达矩阵位图.cpp | /*
考虑每一个点可以被它和他的所有直接和间接的父亲删除,假设这些点一共有k个,那么它就有1/k的概率被炸开。
加和即可。
*/
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<queue>
using namespace std;
#define MAXN 1005
#define MAXM 1000005
#define LOGN 32
typedef unsigned long DWORD;
typedef DWORD MATRIX[MAXN][32];
MATRIX mapar... |
dae625ec2ccf8eb3c42551b9f7c23a816da76cfe | 5b16adb0c7191950207eded95c6fa455b2e21775 | /DirectX9Game/DirectX9Game/directx.cpp | 7f6f3af1723d0a29f868831dee91f56089f2cad8 | [] | no_license | makiOG/directx | eb43f1526ca2d492bb3ef7d2cae6002c580fec1e | 0714c30e6a1d06a51f6d5d25343f3ca781733726 | refs/heads/master | 2022-04-25T01:52:01.269898 | 2020-04-16T20:24:45 | 2020-04-16T20:24:45 | 254,839,694 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,833 | cpp | directx.cpp | #include <d3d9.h> //DirectXを使えるようにする
#include"stdafx.h"
#include"draw.h"
//グローバル変数
LPDIRECT3D9 g_pD3D = NULL; //Direct3Dへのアクセス
LPDIRECT3DDEVICE9 g_pD3DDev = NULL; //ビデオカードへのアクセス
HRESULT InitD3D(HWND hwnd)
{
//Direct3Dを使えるようにする
if (NULL == (g_pD3D = Direct3DCreate9(D3D_SDK_VERSION)))
{
return E_FAIL;
}
//ディスプレ... |
b541418f8dec676b70c5b87281320414acccc2da | 464367c7180487bba74097d6b229174b53246676 | /riscv/src/VmasControlBlockRISCV.cc | e1a06fc07ffbb031aa45c79649da5b9d1c7a7bfa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | openhwgroup/force-riscv | 5ff99fd73456b9918a954ef1d29997da2c3f2df7 | 144fb52a99cde89e73552f88c872c05d2e90b603 | refs/heads/master | 2023-08-08T14:03:54.749423 | 2023-06-21T02:17:30 | 2023-06-21T02:17:30 | 271,641,901 | 190 | 53 | NOASSERTION | 2023-09-14T01:16:08 | 2020-06-11T20:36:00 | C++ | UTF-8 | C++ | false | false | 18,403 | cc | VmasControlBlockRISCV.cc | //
// Copyright (C) [2020] Futurewei Technologies, Inc.
//
// FORCE-RISCV is 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
//
// THIS SOFTW... |
bd9576ec912dda8bf803e051d67e814c400fcf8e | 96d2e1697d7f7f84fccca4cc6830af5440f3e399 | /链表/链表/单项链表.cpp | 21841e9144b5b9e879df2ba1418a863a846f2692 | [] | no_license | casen330/PAT-problem | 556f74e677fa77dab095d103a8d5764ef7068102 | 08c08aeb2f71fd0abedcb15030328949e59ebef9 | refs/heads/master | 2021-01-19T19:01:42.361193 | 2017-07-20T07:18:00 | 2017-07-20T07:18:00 | 88,394,923 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,993 | cpp | 单项链表.cpp | #include<iostream>
#include<vector>
using namespace std;
struct Node
{
int val;
Node *pNext;
};
//单向链表类
class LinkList{
public:
LinkList(){
head = new Node;
head->val = 0;
head->pNext = NULL;
}
~LinkList(){ delete head; }
void CreateLinkList(int n); //创建链表
void InsertNode(int position, int d); //在指定位置插入... |
b13d9cc0131d5f8ad074ab1dc89a623282f45104 | 9fa4e2dfb22a1aa901b5ee47a6a593bd7f70ee99 | /DirectX12/01.Project/Engine/MRT.cpp | b679836bc3747433cb2b28de590cf7d0354cf25c | [] | no_license | Dahye11/TheIsland | 1e6650723ace6d38f6bf17bf0949458834905f06 | 08fe44d305dc076897905523bbd8f95748b89d6e | refs/heads/master | 2022-12-23T09:28:38.760857 | 2020-09-22T22:34:01 | 2020-09-22T22:34:01 | 298,494,711 | 0 | 0 | null | 2020-09-25T07:04:13 | 2020-09-25T07:04:12 | null | UHC | C++ | false | false | 5,198 | cpp | MRT.cpp | #include "stdafx.h"
#include "MRT.h"
#include "Device.h"
#include "RenderMgr.h"
CMRT::CMRT()
: m_arrRT{}
, m_tVP{}
, m_tScissorRect{}
{
}
CMRT::~CMRT()
{
}
void CMRT::Create( UINT iCount, tRT * arrRT, Ptr<CTexture> pDSTex )
{
// DepthStencilTexture 가 없다.
assert( nullptr != pDSTex );
m_iRTCount = iCount;
me... |
c8bd4b41263d305eb902296fb5c8f0f259d81c4f | 7394b3ae6c77b5ca3cbf30961521c894d89902f6 | /rotate-cube-new.cpp | e212a6d4950eb8c699b6c20d6f50fa8efa2a5a6a | [] | no_license | zhangbo0216/Computer-Graphic-Project | b83eeff70ef1ce49e014e0eaf231dae2928f01d9 | 1276ed2f139b87f4ee21dc64552ffde772e720bc | refs/heads/master | 2020-12-25T13:07:30.061971 | 2016-05-19T02:58:33 | 2016-05-19T02:58:33 | 56,887,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,038 | cpp | rotate-cube-new.cpp |
#include "Angel-yjc.h"
typedef Angel::vec4 color4;
typedef Angel::vec4 point4;
std::string filename;
GLuint Angel::InitShader(const char* vShaderFile, const char* fShaderFile);
GLuint program,program2,programfire; /* shader program object id */
GLuint floor_buffer,shaded_floor_buffer; /* vertex buffer obje... |
921394c45803d11317b3d18be2aa2d708fa66cae | 9f9dcb9b496bd729ad7dd5734ff2f008372adb4d | /main.cpp | 0d1ef148baaae8aecaf0d3babad48df46aab2713 | [] | no_license | kovach/ptimomtfvcfpsb | 2688865c312f6f28a4d0bf6e100e88606adac38b | d080da13fa954542de1b4b8ae5dd71e58b7c821f | refs/heads/master | 2016-09-14T06:14:52.619923 | 2016-05-21T18:27:07 | 2016-05-21T18:27:07 | 58,882,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,307 | cpp | main.cpp | #include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/System/Vector2.hpp>
#include <iostream>
#include <sstream>
#include <cmath>
using namespace std;
int maxValuation = 4;
string titleString = "PETER THIEL IS MADE OF MONEY\nA VC Fueled Post-Singularity Brawler\n\nPRESS A TO START";
sf::Color valua... |
40f7aa95cdd7f748720d164114d8a6ddecf7a98a | e1dfab36813f54341e7c5418923b23c7a67e7992 | /collision.cpp | 85d08cbb332c39c7e8cb2a059d37ff7de5b3a350 | [] | no_license | bennettliu/20questions | f3398d1ff5e2cdbe61a45b959db669a5e11a2c4b | 4aeb59efccfb0d3db3bdb828f81cc14f61d28415 | refs/heads/master | 2020-04-11T07:06:43.908909 | 2018-12-13T07:37:22 | 2018-12-13T07:37:22 | 161,601,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | cpp | collision.cpp | /*
* Authored by Bennett Liu on October 22nd, 2018
* collisions.cpp checks for animals with the same characteristics in the data provided in Animals.csv
*/
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
//Create and initialize all needed variables
... |
4dc0aad00606328d20aad561b5760f3330fe5592 | a3e1a101673c56e4ced1b5600612b25b145eb472 | /beakjoon_algorithm/beakjoon_algorithm/CodingTestExam/String_tokenizer.cpp | 2e237df8a1c9fbca4b3f80c7fa495df5ee3d2434 | [] | no_license | gwanhyeon/algorithm_study | a95f3f2d559899f734b52d2d6e89d5f0125cebdf | f01af94919946e5adbdd7cb688cc2c1cf54cbbdc | refs/heads/master | 2022-01-07T21:34:56.297147 | 2021-12-29T16:02:02 | 2021-12-29T16:02:02 | 162,471,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | String_tokenizer.cpp | //
// String_tokenizer.cpp
// beakjoon_algorithm
//
// Created by kgh on 06/03/2019.
// Copyright © 2019 kgh. All rights reserved.
//
// substr은 거기부터 시작해서 몇개인지 여부
#include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
int main(void){
string str ="ABCDEFG";
cout << str.substr(... |
af00fc3164ae97c48a2f469237ae01c4f96a79de | 07ba7fde9da83edd3744557972b4b411af1b577d | /src/buzecommon/PresetManager.cpp | 9c926b84507f6aa48235d1c00bd49ef78e964613 | [] | no_license | clvn/buze | d10edad5b319ca62c1401e710acedc22897b9027 | 4d7d406e87bda3b57b7631149fe63f9bd2ac3eec | refs/heads/master | 2021-09-16T01:39:40.697834 | 2018-01-06T15:45:28 | 2018-01-06T15:45:28 | 115,177,320 | 8 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,650 | cpp | PresetManager.cpp | /*
This file is part of the Buzé base Buzz-library.
Please refer to LICENSE.TXT for details regarding usage.
*/
#include <windows.h>
#include <string>
#include <vector>
#include <cassert>
#include "presetmanager.h"
#include "FileReader.h"
using namespace std;
PresetManager::PresetManager() {
}
size_t PresetMan... |
6ee313a63505ce6a005d8ae04dfee0732fd917af | 318359fab659766e7a7a2eb9595c42e079a098a2 | /cliques/algorithms/neighbourhood.h | 56aed4b32330216815bcfc3b9b1ca0e3d28e9fa8 | [] | no_license | zenna/cliques | 4bb74d9be36f6c66187f616ce71cb318deb98b11 | e260394a6b1dd592d1de69b56b173a8d96c248c6 | refs/heads/master | 2021-03-24T09:14:15.916808 | 2014-11-25T09:45:25 | 2014-11-25T09:45:25 | 3,921,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,423 | h | neighbourhood.h | #pragma once
namespace clq {
/**
@brief Find all (single node moveset) neighbours of a partition
Finds neighbours of a partition where a neighbour is a partition
which can be created by moving one node into an adjacent group
or by isolating it into its own group.
Basic algorithm: Iterate through edges, for ea... |
73012812cfb570ff0295f9a2a7bfd789b73d7286 | a9737652983dcb5b00af1cda699df8cb9780eef9 | /assets/code/usaco/3-1-4.cpp | dcd88c55d51ada85562ffd06ae65dee516263d0b | [] | no_license | acshiryu/acshiryu.github.io | d46594717253b76937db5fd7a565ea060b1c1a30 | 766d463e2620554300f22546eaed35d0dde8e564 | refs/heads/master | 2020-03-28T18:54:44.704006 | 2019-12-07T08:50:48 | 2019-12-07T08:50:48 | 27,806,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | cpp | 3-1-4.cpp | /*
ID:shiryuw1
PROG:rect1
LANG:C++
*/
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;
int ans[2505]={0};
struct prog{
int llx,lly,urx,ury,color;
}rect[1005];
int area;
void DFS(int lx,int ly,int rx,int ry,int t)
{
if(t==0)
return ;
if... |
2d60a153388f45092313186dba57102d176a33e4 | 2d04881d317a358c9215b82e4744806d330ba40c | /.tutorials/zetcode.com_sources/05_Events_in_wxWidgets/01_A_simple_event_example_(Event_table)/button.cpp | 1be2ed167a3351b0f0d02d489d4c76ab0c98b93f | [
"CC0-1.0"
] | permissive | Y2Kill/VSCode-wxWidgets-MinGW-W64-template | 2035f935b3262b7f5c12053e9267cf41c64301f8 | 6263a547ddb54b6a2fd4fb0836c91b790f8980d7 | refs/heads/main | 2023-06-24T09:56:24.878103 | 2021-07-19T14:06:02 | 2021-07-19T14:06:02 | 386,356,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | button.cpp | #include "button.h"
MyButton::MyButton(const wxString& title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(270, 150))
{
wxPanel *panel = new wxPanel(this, wxID_ANY);
wxButton *button = new wxButton(panel, wxID_EXIT,
wxT("Quit"), wxPoint(20, 20));
Centre();
}
void MyButton::OnQuit(w... |
ae3104c0f1a1e18be790e9d24fb3cf11ab290976 | ece426c1b6def615feeec9dcfd4ec5611f7f49bd | /exercises/ex2/GameOfLife/GameOfLife/Effect3.h | 994e3941edfaa693e104bfda2f9cab81552e078e | [] | no_license | fcin/JiPPP | 3011e37a48da7b4500098121b68b635848d90777 | 05042b08da5b37193e4b62377255943177d45c45 | refs/heads/master | 2020-04-08T08:03:59.748708 | 2019-01-18T18:24:36 | 2019-01-18T18:24:36 | 159,163,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | Effect3.h | #ifndef EFFECT3_H
#define EFFECT3_H
#include "Board.h"
#include "Effect.h"
#include <vector>
class Effect3 : public Effect
{
public:
Effect3();
virtual void apply(const Board** boards, unsigned int x, unsigned int y, unsigned int dx, unsigned int dy, int boardId) override;
};
#endif |
90c3d59c48d093c09458ff3996c059f45d4a37e0 | 114d28dda688013551be7f5632168ca293ab9d08 | /contests/9/GreedyKnapsack/ReadWriter.h | b4ba9e30874f0dfd58ff2fea945dc011311ce95c | [] | no_license | zilzilok/sharaga_ads | 4f342347f0fd706c77fbb5285159bd94fda7a67c | a5b3dadf186a5ae99ae88c9b011280ccc9de963e | refs/heads/master | 2023-05-27T21:50:47.977763 | 2021-06-06T21:17:38 | 2021-06-06T21:17:38 | 244,006,512 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | h | ReadWriter.h | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
bool comp(std::pair<int, int>& left, std::pair<int, int>& right)
{
if (left.first != right.first)
return left.first > right.first;
return left.second > right.second;
}
class ReadWriter
{
private:
std:... |
5ab491fc6b200eed2aae29776880039af5d4383b | f8d89506738959775ca8dbe3610b410621ddffe8 | /Status.h | 686c1ba97f52feb9daec66f6721b1c512adf0922 | [] | no_license | quitesb/Projeto-INF112 | 13599704f98637bc28fb557bcc77bcbfbff49145 | 5a6d11a7b3e78ef10e9ecea78a6e0fdf5329b302 | refs/heads/master | 2023-06-12T10:46:34.976704 | 2021-07-08T14:01:37 | 2021-07-08T14:01:37 | 384,139,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | h | Status.h | #ifndef TEAM_3_STATUS_H
#define TEAM_3_STATUS_H
#include <iostream>
#include "Arquivo.h"
#include <time.h>
#include <chrono>
#include <cstdlib>
#include<ctype.h>
#include <vector>
class Status
{
private:
public:
int cadastrar(std::string id);
static int gerar_status();
//ATUALIZAR DADOS NO ARQUIVO ES... |
1692f2a91da28ea046a4f5d6a6bad3ab7fc681cc | 0ce683fe8f588ffe7239d849eabdcc704f10a2f1 | /two-lanes-detection/computer_vision/include/computer_vision/getLanes.hpp | 38672a6fbba59b1fde8d039270c6f3ef43738477 | [] | no_license | g41903/PEV-MediaLab | fcc27bf49e6ed796812271eeed990e55ae8b720e | 502fe99ba51c8bf6b721ce65557cd950d90b4bd9 | refs/heads/master | 2020-04-22T08:27:31.986244 | 2016-08-24T14:02:02 | 2016-08-24T14:02:02 | 66,322,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | hpp | getLanes.hpp | #ifndef GETLANES_HPP_
#define GETLANES_HPP_
#include <opencv2/opencv.hpp>
#include "misc.hpp"
using namespace std;
using namespace cv;
// input image size
extern int image_width;
extern int image_height;
// Hough transform
extern int thres_num_points;
// clustering of lines
extern int thres_cluster_delta_angle;
e... |
02fa20ca96b7e333adfa6f5005b89603fd17fdb2 | 657f4307db3cbc4c8dc07eb8d6933aa78f442fc9 | /examples/animated-shapes/animated-shapes-example.cpp | b4b8a390f870da6c034698445958e2f5f02fe2b9 | [
"Apache-2.0"
] | permissive | vcebollada/dali-demo | 391a3513e169b30fcbf4040f815dad72a346e073 | 7b49cad5a47b88c3cf74f1c27b25d46257ffeb48 | refs/heads/master | 2021-02-10T14:56:22.691896 | 2020-02-27T13:39:29 | 2020-04-14T21:55:22 | 244,391,645 | 0 | 0 | Apache-2.0 | 2020-03-02T14:29:24 | 2020-03-02T14:29:23 | null | UTF-8 | C++ | false | false | 20,940 | cpp | animated-shapes-example.cpp | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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... |
a4f60ec29edec0db8e02fbf19aed11b5f9c4a451 | e85cae6dba42a427ddfc1be49fe4155ed557de93 | /HW2/HW3.cpp | 2e94ac5050cfce01c647eb5d557da9ab60d939a3 | [] | no_license | neilmmalu/ADSA | 72a912382e9bd3063b25a43538e9dc80c7bf68ae | 044fad17b2368a641a96880595e0a5e52a5f152e | refs/heads/master | 2023-01-19T16:44:46.411418 | 2020-11-25T20:18:52 | 2020-11-25T20:18:52 | 292,622,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,455 | cpp | HW3.cpp | //HW3 Name: Neil Malu
//SUID: 635692900 NetID: nemalu
//HW3: Implement DFS and BFS as described in class.
//Due: 11:50PM, Wednesday, September 23.
//You should not add more functions.
#include <iostream>
#include <vector>
#include <queue>//bfs, in-queue
#include <stack>//dfs
using namespace std;
class pos {
public... |
9bbd604944a165930ae3d2d769254726a8df0989 | 1043a363946e9e5dcfb16ded06bca5f3dd8adc1d | /a.cpp | b8c62ff4e1dca314c4c1cfb401916004f9f24a2c | [] | no_license | yunfuliu/TestRepository | e5594dc89741e48c453fd5e7901b731ae7ce8780 | e38a08e6e01fd195baccb23867a1b62d7f8ad1d0 | refs/heads/master | 2020-05-02T19:44:36.797458 | 2014-04-01T15:01:16 | 2014-04-01T15:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 96 | cpp | a.cpp |
void main(){
}
void speedupfunction(){
}
=======
this is type from master
>>>>>>> master
|
56d057a6b85688b8cb1089d3deb9b50914e48a9c | eaa0e6c89f2ee0e5f3990edc0621e9d4caf92d97 | /src/runtime_lib/infra_julienne/priority_queue_gapbs.h | 85cbdcc81a5c289f60f22d1023b3296172c9a80b | [
"MIT"
] | permissive | ldhulipala/graphit | 4fc4060c6de26caa559096681e2176e730ac647c | 708cb2947518d6aebaa62407ebe97d08a9030f4d | refs/heads/master | 2020-09-10T22:03:05.422041 | 2019-11-15T21:10:38 | 2019-11-15T21:10:38 | 221,845,762 | 0 | 0 | NOASSERTION | 2019-11-15T04:44:56 | 2019-11-15T04:44:55 | null | UTF-8 | C++ | false | false | 1,836 | h | priority_queue_gapbs.h | #include <algorithm>
#include <cinttypes>
#include "platform_atomics.h"
#include "bucket.h"
/**
* Phase-synchronous priority queue with dual representation
* Representation 1: When using thread-local buckets, there is nothing stored in the data strucutre. It merely holds the current bucket index, next bucket index ... |
74d602db51957d884d977073463b7ac5fb6923e7 | 4fe94c6c37eda3fcdff737c3db2b9e01dad5d89d | /red_belt/w1/deque_from_vectors.cpp | e1a0b51a52654bfe04732d0e799da92dbc10f498 | [] | no_license | KushnirDmytro/cpp_belts_coursera | a2a3b070a6162b2dc96fb00a65f6f3074068aa26 | 7ada0052c19efbe2a1a6c8252e8816046b4a755c | refs/heads/master | 2020-07-18T21:59:46.134029 | 2020-01-18T15:33:13 | 2020-01-18T15:33:13 | 206,320,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,733 | cpp | deque_from_vectors.cpp | //
// Created by dkushn on 05.09.19.
//
#include <vector>
//#include <exception>
#include <stdexcept>
//#include "test_runner.h"
using namespace std;
template <typename T>
class Deque{
public:
Deque() : front_vec{}, rear_vec{}{
}
explicit Deque(const vector<T> &init_vector) : front_vec{}, rear_vec{ini... |
dad90262e5ca0b272de2a38369262e96b8aa5d4a | 8f6ab66b5483b835c80a04397bd6b0d7a91656cb | /atcoder/abc139/d.cpp | 9a14d3b1eaf5a628116a2e1788e36942813deb86 | [] | no_license | shirobrak/procon | 8121f877c55c215e5eb550d23890bac9823007a2 | 8f3c3ece3adcdee635eaf5f297c959c6e556542f | refs/heads/master | 2020-12-09T05:45:57.776620 | 2020-01-11T08:55:36 | 2020-01-11T08:55:36 | 233,210,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | d.cpp | #include<iostream>
using namespace std;
int N;
int main() {
cin >> N;
long ans = 0;
if(N > 1) {
for (int i = 1; i < N+1; i++) {
if (i == 1) {
ans += 1;
} else if (i == N) {
ans += 0;
} else {
ans += (long)(i);
... |
b1786cd2d2f589c515d3c232394a3f2989ebc062 | 23f6f2dad406ba576d4c97f7dbba1516a04583db | /CreationalPatterns/AbstractFactory/Product/ConcreteProductB1.h | b1cdfebadab5eb6c3c6c3c86d33bdb7e069dd142 | [] | no_license | sacdar/CPP-Design-Patterns | 7618b50aeb12d04e27f3d5fe75faf9823bd8e30c | 84de7263d31c78a7eeede000d0604e953a4e0961 | refs/heads/master | 2021-01-10T20:10:06.588221 | 2015-02-13T08:23:49 | 2015-02-13T08:23:49 | 30,695,425 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | ConcreteProductB1.h | #ifndef _CONCRETEPRODUCTB1_H_
#define _CONCRETEPRODUCTB1_H_
#include "AbstractProductB.h"
// ConcreteProductB1
class ConcreteProductB1 : public AbstractProductB
{
public:
void printProduct();
};
#endif /* _CONCRETEPRODUCTB1_H_ */
|
7db4e85009231c8c0e3b700a0c25f35004110dae | b33750e0f06dd220f5a8bc67a7e2dacd5194fb6a | /1__searching_countsort_on_29-7-17/problems_given/bond_fond.cpp | 94bf94fb347fb5d0fc73b746b6d818d92efe3198 | [] | no_license | dbads/CC_class_codes_mnnit | 30a190916ec2d7ec8bed3d53c0acced6783682dc | 723eb894d27e8c17600570101d9059e26d6f3626 | refs/heads/master | 2021-04-27T03:03:40.657076 | 2018-06-11T17:59:07 | 2018-06-11T17:59:07 | 122,708,464 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | cpp | bond_fond.cpp | #include<bits/stdc++.h>
using namespace std;
#define lli long long int
lli pow2(int x,int a);
int main()
{
lli i,n,c,d;
lli a,b,t;
scanf("%lld",&t);
while(t--){
scanf("%lld",&n);
a=log2(n);
b=a+1;
c= pow2(2,a);
d= pow2(2,b);
if(abs(n-c) > abs(n-d)){
printf("%lld\n",abs(n-d));
}else{
printf("... |
1adb69ffed3b6e060aba6cdeeb06e18f32a5fa81 | 0a8588d8e9df1dfaec54224fe6d55cc5b8091257 | /uva/11727-CostCutting.cpp | 27f3b180cf827a4e7aa3c37ed13bb609916dc8af | [] | no_license | skalyanasundaram/BrainTuners | 17e686e540bad3e809c78e0a9462e95fc12b5370 | 2605550e18750485b693804c3d83c3c97706362b | refs/heads/master | 2021-01-06T20:41:45.395191 | 2019-02-04T08:45:36 | 2019-02-04T08:45:36 | 12,889,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | 11727-CostCutting.cpp | #include <iostream>
using namespace std;
int main() {
int T, input[4], res, other;
cin >> T;
for(int i = 1; i <= T; i++)
{
cin >> input[0];
other = 0;
res = input[0];
cin >> input[1];
if (input[1] > res)
{
res = input[1];
... |
64368293c35743a1ee400cc51d2734905e8088f1 | a0783ab314f2ca6ba564adc6aae35115c0c9dc67 | /Progetto-03/Info e Slide/seiot1920/arduino/modulo-lab-4.1/test-esp-basic/test-esp-basic.ino | 4d8abc49bc2a8e075734f9742486b20303dff64d | [] | no_license | VladMattiussi/IoT-project | a8052f377c324dd7b91f6720eafc224d4396975e | ad7821f9b6b670301c617ac3e944e9dd5c3cf533 | refs/heads/master | 2023-08-14T06:47:14.426164 | 2021-09-22T11:58:09 | 2021-09-22T11:58:09 | 409,186,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | ino | test-esp-basic.ino | /*
* Note about ESP
*
* - D2 <=> GPIO4
* - boud rate: 115200
*/
#define LED_PIN 4
void setup() {
pinMode(LED_PIN, OUTPUT);
Serial.begin(115200);
Serial.println("READY");
}
void loop() {
int value = analogRead(A0);
Serial.println("Value: " + String(value));
digitalWrite(LED_PIN... |
2a3504c1df04474dbaeab4e63e8fc1635cdb7885 | f5d5f5bcb94db0a28cd844d1bde598fc3eb166b7 | /--Print last 10 lines.cpp | 6f38cfec0bbf563f796c25182dd1b13fb55516ef | [] | no_license | rajan596/iCode-Competitive | 991e0046f78eb0e8d09dc578541006413819e9a8 | dbd95a65e04e19758f0bda8514da737d8225e1f5 | refs/heads/master | 2021-03-30T18:29:34.956817 | 2017-08-13T10:57:50 | 2017-08-13T10:57:50 | 54,173,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | cpp | --Print last 10 lines.cpp | #include<bits/stdc++.h>
using namespace std;
void printLastLines(char *s,int n){
if(n<=0) {
fprintf(stderr , " N must be >=0 ");
return;
}
char *pos=strrchr(s,'\n');
int cnt=n;
while(cnt--) {
while(pos>s && *pos!='\n'){
pos--;
}
while(pos>s && *... |
3fa51ab88a83fb7e429a0d322e286bdc95720d99 | ff9315e16393d34e42992aa6f2f942e4f851dd58 | /DB/ApplicationPassword.h | de36ec9d841d5d2f31383ca084fe63390a9960de | [] | no_license | razeghi71/passman | c90e911aae2ade1a42b7fa1c398a70cb9e0048e8 | 5a9ef3e1a0cebb3f44115cabf86974d3cb2b4afe | refs/heads/master | 2021-01-10T04:59:46.689412 | 2016-01-25T19:52:27 | 2016-01-25T19:52:27 | 49,785,147 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | h | ApplicationPassword.h | #ifndef APPLICATION_PASSWORD_H
#define APPLICATION_PASSWORD_H
#include <string>
#include <odb/core.hxx>
#include "Application.h"
#include <odb/nullable.hxx>
#include <vector>
using namespace std;
#pragma db object
class ApplicationPassword
{
friend class odb::access;
ApplicationPassword () {}
#pragma db id au... |
438a9b4d5d32b1ef402a32e5a648d6038b3b13dd | 81172c6d4c116095d8f12821c45b46d0659efe62 | /demo/echo_client.cc | 29a28c6468a8e591d726d7ed6aabe8386bffcc56 | [] | no_license | wumulun/grpc-etcd | ac21fa33ecc7ea42a8d978dd0cf824ec32038d90 | 7ae2280a9d3a7e7f4e89ec347aac8a1a4e633f97 | refs/heads/master | 2022-12-05T19:18:35.987765 | 2020-08-21T01:26:26 | 2020-08-21T01:26:26 | 276,841,965 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cc | echo_client.cc | #include"echo_client.h"
int main(int argc, char** argv) {
CClientServiceFind client_impl("localhost:2379");
client_impl.Run();
return 0;
}
|
4bf8637c94e35936c6def78f20cde1854fe0945d | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /tms/src/v20201229/model/Tag.cpp | 2b55f311f852d0b00d717f71a2778e0001b467c5 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 3,739 | cpp | Tag.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
aad04da9c5cd53034b956ae6d92e0224d7d340c3 | 8432cf3674956449302109a412a91ac821dbd9d3 | /src/Memory_DummyDeviceMethod.cpp | f9503ddc112466cb65faf77757757b1476973e28 | [
"MIT"
] | permissive | hkduke/InternalHack_ImGui | 74759108d67957f2e62d26a9deda18a217e86507 | 1c019987e9ebc2082ef97cd537c8a4eee5fe198c | refs/heads/master | 2020-06-12T13:26:50.602251 | 2019-03-14T13:29:13 | 2019-03-14T13:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | cpp | Memory_DummyDeviceMethod.cpp | #include "Memory_DummyDeviceMethod.h"
Memory_DummyDevice::Memory_DummyDevice() : d3d9(nullptr), d3d9Device(nullptr)
{
tempWindow = new Window("TempWindow");
LPDIRECT3D9 d3d9 = Direct3DCreate9(D3D_SDK_VERSION);
if (!d3d9)
throw ERROR;
D3DDISPLAYMODE displayMode;
if(FAILED(d3d9->GetAdapterDisplayMode(D3DADAPTER... |
08214e79d69de62f697054d7d38b27c760e9d22c | 1b3a2ad0690a78e6c2b0c3d742c25e0f4862d380 | /ch11/copy.cpp | 829cfc8d19a20efc4869bddcc1ba793701c5c055 | [] | no_license | whytui/code4cpp | 547c1b59b42b727ef66ae6640f40870fddce774d | 0633ee657c6fe1f790ccafd17463c1a38f66977d | refs/heads/master | 2023-08-22T23:46:33.579686 | 2021-09-25T13:07:38 | 2021-09-25T13:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | copy.cpp | /*
* 作者:刘时明
* 时间:2020/6/14-22:18
* 作用:
*/
#include "ch11.h"
void copyArray();
void copyVector();
void copyDemo()
{
copyVector();
}
/**
* 拷贝数组
*/
void copyArray()
{
int arr1[] = {1, 2, 3, 4, 5};
int arr2[] = {0, 0, 0, 0, 0};
// 第一个不复制
copy(arr1 + 1, arr1 + 5, arr2 + 1);
for (int i : arr2)
... |
cd330025217104ac1d51f358197031d9e9424100 | f8c0b8a0ae169b6a86c08b3e4dcfc9a69f4a77d1 | /src/Scripting/LuaCpp/LuaCpp.hpp | 3708b2bf5d56044ef425f937c6f231181ca76e23 | [
"MIT"
] | permissive | lvseouren/Swift2 | a25ca01b24dd77b162ece98a1374041fe70bb9f7 | 3dd898c0ca6f508fbf37f5e507c2998378de89e0 | refs/heads/master | 2021-01-21T05:36:14.638937 | 2015-01-19T02:46:05 | 2015-01-19T02:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | hpp | LuaCpp.hpp | #ifndef LUA_CPP_HPP
#define LUA_CPP_HPP
#include "Details/State.hpp"
#endif // LUA_CPP_HPP
|
9247b9f8fce1baf9df477b05843feba6d504547d | c2c9e9bd2644d89e573e50e00993a2c07076d2e2 | /Common/dslIniKey.cpp | 64121433286e0ad80da2f5e168063e1aa8da5560 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | TotteKarlsson/dsl | eeab84f4b6d0c951d73ff275b734b503ddb081c0 | 3807cbe5f90a3cd495979eafa8cf5485367b634c | refs/heads/master | 2021-06-17T11:38:02.395605 | 2019-12-11T17:51:41 | 2019-12-11T17:51:41 | 166,859,372 | 0 | 0 | NOASSERTION | 2019-06-11T18:45:24 | 2019-01-21T18:17:04 | Pascal | UTF-8 | C++ | false | false | 1,078 | cpp | dslIniKey.cpp | #pragma hdrstop
#include "dslIniKey.h"
//---------------------------------------------------------------------------
namespace dsl
{
IniKey::IniKey(const string& key)
{
setupKey(key);
}
IniKey::~IniKey()
{}
void IniKey::reKey(const string& key)
{
setupKey(key);
}
ostream& operator<<(ostream& stream, const ... |
e61f60b8ea6aafb1cc094954ecbe6acd53ea3e9f | 52d7351122723fe21f28fff717908a506f545a74 | /include/XmlFieldWrap.class.h | 26b1aff7184fb59515a8032fbf550b0aa2c696ee | [] | no_license | shureg/xml_serialisation | dcd4a916272ebcf1dca7aa870140c3223cae3366 | c37d9f876a232a28f079009f4ebdb07efd7f9fd1 | refs/heads/master | 2021-01-20T07:02:21.939889 | 2010-11-03T23:04:12 | 2010-11-03T23:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 966 | h | XmlFieldWrap.class.h | // =====================================================================================
//
// Filename: XmlFieldWrap.class.h
//
// Description:
//
// Version: 1.0
// Created: 09/10/2010 03:50:44 PM
// Revision: none
// Compiler: g++
//
// Author: Alexander Kabanov... |
10542d1243253b74f2389b5e896af26e98d72b8a | a077943855cf1ac32ab4c2ff2311fb6966cbaee5 | /ApCore/Events/POG/PogEvent.cpp | 426d2b9868409fda327ef8caaa254df70e400277 | [] | no_license | GeorgeKaraszi/Aphelion | 58da7bae17872e0a54edafa4e9ed76e4dacf28c3 | 127a356155103383ac8a84deb7e52b5857eb0690 | refs/heads/master | 2023-04-28T12:09:16.870017 | 2021-05-02T22:32:14 | 2021-05-02T22:32:14 | 305,194,039 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,037 | cpp | PogEvent.cpp | #include "PogEvent.hpp"
#include <ApInclude/fast_atio.hpp>
#include <ApCore/Core/TeamManager.hpp>
#include <ApData/Sql/Models/Event.hpp>
#include <ApData/Sql/Models/Item.hpp>
#include <ApData/Sql/Models/Loadout.hpp>
#include <fmt/color.h>
namespace ApCore::Events::POG
{
void PogEvent::Reset()
{
m_current_team ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.