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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ce2ed7a600db1251fd9f905f1a1edb14f5aaaa3 | 765508b2ee94abf3f8c8e1b7a83f5af0351c95ab | /particlenet/particlenet.Shared/Particle.cpp | b2c48606da27cc16a92cbb26a4ed3759d9103937 | [] | no_license | ChrFr/Particlenet | 0c9f18bfd97c5c4caa41cc88d81005f4e3f5e867 | d278e4762b63f3da6c4cb413586d954f252ba475 | refs/heads/master | 2016-09-06T07:38:49.423509 | 2015-07-10T09:52:55 | 2015-07-10T09:52:55 | 38,196,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,268 | cpp | Particle.cpp | #include "Particle.h"
Particle::Particle(float x, float y, float size, int c, int r, float forceRadius, float maxDistance) : startSize(size), size(size), c(c), r(r), forceRadius(forceRadius), maxDistance(maxDistance){
z = 0;
kDir = ofVec2f(0, 0);
pos = ofVec2f(x, y);
startPos = ofVec2f(x, y);
}
void Particle::ada... |
39dc6846003b1eda498ec055a52a8ce1360cb3e5 | fd2e6b0d6f8260d6b1fd5c42dbbe6ec1e6f944e9 | /Semester 4/Operating Systems/Priority_P/include/CirQueue.h | 968e1882d245a70898fd9195b63d76255b48d9ec | [] | no_license | surbhim18/bsc-lab | 583d18343ca46395e2d0778a618f06f6dc42dfa3 | d28849099766d9e83cc42117ff35c49eaada919e | refs/heads/master | 2021-04-09T14:34:20.723991 | 2018-04-17T19:00:51 | 2018-04-17T19:00:51 | 125,528,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | CirQueue.h | #include "Process.h"
#ifndef CIRQUEUE_H
#define CIRQUEUE_H
class CirQueue
{
Process *que;
int front;
int rear;
int maxSize;
public:
CirQueue(int n);
void enqueue(Process p);
Process dequeue();
void display();
bool isEmpty();
~CirQueue();
};
#endif //... |
c6ab01e2044e9b662f91657ff0e668c1ea9b8f97 | fc271125e22e6bb8aa18cbc20435c191d19df302 | /Iniciante/1134.cpp | 3490b5511a1e8968610c48ec821c57f9b80bcb9a | [] | no_license | joaosoaresaalm/URI | e77e7bdeef330f4521f80307be24218691c19d9e | cad96586b7fb8a51d2ad5881e62ae20ba7f59488 | refs/heads/master | 2020-11-26T18:53:55.727217 | 2020-01-30T11:53:05 | 2020-01-30T11:53:05 | 229,178,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | 1134.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int op;
int alcool = 0, gasolina = 0, diesel = 0;
while(1)
{
cin >> op;
if (op == 1) alcool++;
else if (op ==2) gasolina++;
else if (op == 3) diesel++;
else if (op == 4) break;
else continue;
... |
7907152bd2b27433d4e47feffa7bba33ae077886 | b0d0057f969e6ec27599e1263d065f5483ab1d3a | /Elliot Zork/Room.cpp | ee14bf4f952b54cc8157c42e40457a78c3371d11 | [] | no_license | dawidK5/cs4076-zork | 12a67c1dda1532e3d423b186a4125923fafbd0f0 | 29709bb099b127720cc8e461aec65d9f91a38b02 | refs/heads/main | 2023-04-02T18:21:30.368491 | 2021-04-12T00:53:55 | 2021-04-12T00:53:55 | 339,717,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,853 | cpp | Room.cpp | #include "Room.h"
// #include "Command.h"
#include <iterator>
#include <iostream>
#include <vector>
Room::Room(QString roomName) {
this->roomName = roomName;
}
void Room::setExits(Room *north, Room *east, Room *south, Room *west) {
if (north != NULL)
exits["north"] = north;
if (east != NULL)
... |
218e31d6165645d52d28e6d14949058d08930b13 | 7b21c821b5c7a477d82dc6c9411f69baecdbfbe3 | /libs/jsRuntime/tests/V8PlatformRuntimeTest.cc | 5829fc0a3fe9fe90dbb0bbd0cf79cd77cfba95a4 | [
"MIT"
] | permissive | v8App/v8App | 8b8208070d10ea8784a9112a8d0a15c43dc98263 | 96c5278ae9078d508537f2e801b9ba0272ab1168 | refs/heads/main | 2023-08-17T05:03:55.265998 | 2021-12-01T06:53:08 | 2021-12-01T06:53:08 | 242,415,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,825 | cc | V8PlatformRuntimeTest.cc |
// Copyright 2020 The v8App Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
#include <iostream>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "third_party/bazel-runfiles/runfiles_src.h"
#include "v8.h"
#include "V8Platform.h"... |
74281c253238b2f9d5d2f1f0e2755c9e670f6a89 | 4db41701f8f0c0b5e8439c1b4d281bdd89460fdd | /cmake-build-debug/mechanisms/generated/default/hh_cpu.cpp | 486a89dd52c3206f32d65ca0a52c897365b9def4 | [
"BSD-3-Clause"
] | permissive | anstaf/arbsimd | ad72ded1918dfbf4123d860caa690f72945e6fc4 | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | refs/heads/master | 2023-08-31T23:02:30.278479 | 2021-11-11T09:41:10 | 2021-11-11T09:41:10 | 425,749,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,627 | cpp | hh_cpu.cpp | #include <algorithm>
#include <cmath>
#include <cstddef>
#include <memory>
#include <arbor/mechanism_abi.h>
#include <arbor/math.hpp>
namespace arb {
namespace default_catalogue {
namespace kernel_hh {
using ::arb::math::exprelr;
using ::arb::math::safeinv;
using ::std::abs;
using ::std::cos;
using ::std::exp;
using ... |
50413a5db48edb0348718fa3db4ec0dab2e291e3 | e6ff2d9edcc72805cf16f22b298456b4639e7d94 | /A-set/474A. Keyboard/474A. Keyboard.cpp | 85e5afacd75951ddd021f1ef6f4c51b0d1000a05 | [] | no_license | AhmedRamadan6/Codeforces | 075808bef5aecb6e66f8ec5e694af495df7d5324 | efd61d610243160381491f44702b5634b004e5fb | refs/heads/master | 2022-04-16T16:16:04.750130 | 2020-04-16T05:38:11 | 2020-04-16T05:38:11 | 255,195,318 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | 474A. Keyboard.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s1 ="qwertyuiopasdfghjkl;zxcvbnm,./",s2;
char c;
cin >> c>>s2;
for(int i=0,L=s2.size(),p;i<L;i++)
{
p=s1.find(s2[i]);
if(c=='R')
cout << s1[p-1];
else
cout <... |
82570f485b4c2e4888d424c63df08289a3e934db | 4d76581f0f1b9ac51f9565f58625f87dba811275 | /Weather_Station_NoRTC_14_07_2022/IP_address_run.ino | 4684b649ea5b7c275a5ef62957ff1de7a62c5b03 | [] | no_license | BortSerg/ESP8266-Meteo-Station | ffcfcaf3d2c36903f59ca4b6dd191a3dd0f3fd90 | d82ece1e0595a19b30098c81d44ba8d56706fc58 | refs/heads/master | 2022-12-05T03:28:41.433011 | 2022-07-14T17:23:47 | 2022-07-14T17:23:47 | 226,630,842 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,508 | ino | IP_address_run.ino | void IP_address_run() //бегущая строка выводит IP адрес
{
String IP_ADDRESS; //строка для получения IP адреса
int8_t banner_IP[18]={}; //массив хранения IP адреса для бегущей строки
if (Wi... |
307064cb22bb1dba1419a527ebc10b59fcf7612d | a17207bda73fe017746b90f1d85e96f0326454aa | /week_03/backjoon/jclim/BOJ_2563.cpp | bc7c92831fd6f7253851fae8c9fa178657538107 | [] | no_license | st102/2020-1st-St102-Algorithm-Sprint | 6ad494edb626b63533c8ac00f23d1a16f913bd2b | 85a9d961895170f47da85df84dde99ea5a545861 | refs/heads/master | 2022-12-20T16:12:58.098292 | 2020-10-06T07:52:44 | 2020-10-06T07:52:44 | 289,298,228 | 0 | 1 | null | 2020-10-10T06:28:17 | 2020-08-21T15:07:03 | C++ | UTF-8 | C++ | false | false | 497 | cpp | BOJ_2563.cpp | #include <iostream>
#define MAX 100
using namespace std;
int papers;
bool board[MAX][MAX];
int cnt;
int main(int argc, char** argv)
{
cin.tie(NULL);
ios::sync_with_stdio(false);
cin >> papers;
for (int i = 0; i < papers; i++) {
int x, y;
cin >> x >> y;
for (int j = 0; j < 10; j++) {
fill(board[y + j]... |
1af868332fd1da7d21c52f4cc7018fce6ab31116 | dd3d11771fd5affedf06f9fcf174bc83a3f2b139 | /BotCore/DofusProtocol/GameActionFightTriggerEffectMessage.cpp | 05d24bde18c41c830a43ab6d53a9ed8fe3072916 | [] | no_license | Arkwell9112/arkwBot | d3f77ad3874e831594bd5712705983618e94f258 | 859f78dd5c777077b3005870800cb62eec1a9587 | refs/heads/master | 2023-03-17T12:45:07.560436 | 2021-03-16T11:22:35 | 2021-03-16T11:22:35 | 338,042,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | GameActionFightTriggerEffectMessage.cpp | #include "GameActionFightTriggerEffectMessage.h"
void GameActionFightTriggerEffectMessage::deserialize(ICustomDataInput &input) {
this->deserializeAs_GameActionFightTriggerEffectMessage(input);
}
void GameActionFightTriggerEffectMessage::deserializeAs_GameActionFightTriggerEffectMessage(ICustomDataInput &input) {... |
1dac5a150eb8d8fffb72323e0a202f0ea84d6b9c | e9ad30a15692b24d71e21efc4da8ca6b37b6460f | /Source/TerrorTrains/AmmoDrop.cpp | 31721ca5c85d78ddd094b05d947c8af2ce72a0bf | [] | no_license | Buwaka/TerrorTrains | 12ee73c24f297214eab62bcd0483e4c03f876d6e | c24863a551801df616f48073a664df49c25e7268 | refs/heads/master | 2020-09-04T04:21:16.893032 | 2019-11-05T04:07:20 | 2019-11-05T04:07:20 | 219,655,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | AmmoDrop.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "AmmoDrop.h"
#include "AmmoComponent.h"
#include "PlayerCharacter.h"
AAmmoDrop::AAmmoDrop()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCa... |
794bb701b32ddfd9ea5d3d0ef70fac529436947e | bb5f2c59818b18554316e15cdbced53a61877ef5 | /theia-changes/src/theia/sfm/transformation/align_point_clouds_test.cc | 4f49df73213bb5733b6e81811c39e818eb3b788e | [] | no_license | rajvishah/ViewGraphSelectionFramework | 69d9978637b073094be2010d74e287ac14617a24 | 532f0229f3418af8a163080b79205fab2701acf1 | refs/heads/master | 2022-02-18T17:34:42.146340 | 2019-09-13T07:35:27 | 2019-09-13T07:35:27 | 208,216,406 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,713 | cc | align_point_clouds_test.cc | // Copyright (C) 2013 The Regents of the University of California (Regents).
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above... |
6a06912865aa6c786a0899781fc3e87e8df928de | 7da3a246f0eaf7d829bd791ea61966906af2edf3 | /ccodechecker.cpp | ef6ee9b23fdf91f1877210bc8deaa6b4c7b51f20 | [] | no_license | alexmikhalevich/Turing-Machine-interpreter | ce03988e440d763bd50f3b117d2ed1218dad2c27 | 7b4a7ada25a78a87ceb92bfd4915c6bbb193a32c | refs/heads/master | 2021-06-25T17:42:23.309056 | 2015-05-04T19:36:32 | 2015-05-04T19:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | ccodechecker.cpp | #include "ccodechecker.h"
CCodeChecker::CCodeChecker(const QString& text)
{
cc_code = text;
//TODO: replace [01]. Maybe should be any sequence of characters
cc_correctLineExpr = QRegExp("\\(q[0-9]{1,}\\,[01]\\)\\->\\(q[0-9]{1,}\\,[01]\\,[RLN]{1,}\)");
}
bool CCodeChecker::is_correct() const
{
}
QVector... |
e6c309158a22f338ddab678c4f104c846b8748af | 5793887005d7507a0a08dc82f389d8b8849bc4ed | /vendor/mediatek/proprietary/hardware/mtkcam/feature/hdr/1.0/tests/camera3test_fixtures.h | 0d781fd6f2ab671899497faa531351f606ff65b5 | [
"Apache-2.0"
] | permissive | wangbichao/dual_camera_x | 34b0e70bf2dc294c7fa077c637309498654430fa | fa4bf7e6d874adb7cf4c658235a8d24399f29f30 | refs/heads/master | 2020-04-05T13:40:56.119933 | 2017-07-10T13:57:33 | 2017-07-10T13:57:33 | 94,966,927 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,907 | h | camera3test_fixtures.h | /*
* Copyright (C) 2015 MediaTek Inc.
* Modification based on code covered by the mentioned copyright
* and/or permission notice(s).
*/
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... |
1ecfe3d624b3c1f16ed91d5da08b8fc83d3b2746 | db0da227137c5819bdff6da365c3dff7ad484092 | /2017-2018_ACM-ICPC_NEERC_ Southern_Subregional_Contest/ALL_CODE/C.cpp | ae0c9908961735a52c18cffc34ae491916788851 | [] | no_license | hzy9819/ICPC-Problem-Code-Solution | 79351c4a86c113742ab4431ab3581691a87274eb | 7e6ffc0019cc40291456c129f0b541f7e58137a3 | refs/heads/main | 2023-03-30T05:26:55.686854 | 2021-04-10T09:52:56 | 2021-04-10T09:52:56 | 356,527,484 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | cpp | C.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
typedef long long ll;
ll f, T, t0;
ll a1, t1, p1;
ll a2, t2, p2;
int main() {
scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d%I64d%I64d", &f, &T, &t0, &a1, &t1, &p1, &a2, &t2, &p2);
if(f * t0 <= T) {
puts("0");
return 0;
}
ll tle = (ll) f * t0 - T;
ll dt1 ... |
3a9e7d67431a38d7540d7adff74f865baf93f901 | 23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f | /从算法到程序(第2版)/Chapter03/split.cpp | 6583eb000bc342ed7232cd423fa119b043ddf3f7 | [] | no_license | IgorYunusov/Mega-collection-cpp-1 | c7c09e3c76395bcbf95a304db6462a315db921ba | 42d07f16a379a8093b6ddc15675bf777eb10d480 | refs/heads/master | 2020-03-24T10:20:15.783034 | 2018-06-12T13:19:05 | 2018-06-12T13:19:05 | 142,653,486 | 3 | 1 | null | 2018-07-28T06:36:35 | 2018-07-28T06:36:35 | null | UTF-8 | C++ | false | false | 367 | cpp | split.cpp | #include <iostream>
using namespace std;
int split(int n, int m)
{
if (n == 1 || m == 1) return 1;
else if (n < m) return split(n, n);
else if (n == m) return split(n, n - 1) + 1;
else return split(n, m - 1) + split(n - m, m);
}
int main()
{
int n;
while (cin >> n)
cou... |
3a1eb1c2979ef94d9bdf484350dacd01b33c272e | 771fcb3be5f1d0a442a5f6ec2947309b7b9f9ffa | /MemPool.h | d8e09d3c1d458b29d64d3e49ea9d526787f00186 | [] | no_license | qixianbd/class_design | 506db7b7bad636ef1399e940d91e7836af7ad4db | 6afdf13f486caab82613a7df038c0fa9f7af381b | refs/heads/master | 2016-08-05T06:55:08.221282 | 2014-10-22T13:54:03 | 2014-10-22T13:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | MemPool.h | /*
* MemPool.h
*
* Created on: 2014年10月19日
* Author: qmwx
*/
#ifndef MEMPOOL_H_
#define MEMPOOL_H_
struct BitMapMem{
void* bitPtr;
size_t blockNum;
size_t blockSize;
void* blockArrayPtr;
};
class MemPool{
private:
void* basePtr;
size_t totalMemSize;
enum UNITSIZE{KUNIT = 1024, MUNIT = 1024*1024};
... |
103cf5bd3c9fd31118ca3b2988dfcf67da31ab12 | 6c1313416066d48842802b7b8eb696935c2dbde2 | /QBert/src/Components/CoilyMovementController.cpp | c0611dfc77277b1a7bd48d4eb068beb97580c9d1 | [] | no_license | MilanDierickGD/QBert | c242a22afca9af31180665992a231ce2189db2cd | c49a626de47179e248e80b9c24c2425adc216593 | refs/heads/master | 2023-05-14T01:37:49.376784 | 2021-06-06T23:20:33 | 2021-06-06T23:20:33 | 372,919,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,705 | cpp | CoilyMovementController.cpp | #include "CoilyMovementController.h"
#include "ScoreComponent.h"
CoilyMovementController::CoilyMovementController(const MovementControllerData data,
const TileState preferredTileState,
const Heirloom::WeakRef<Heirloom::GameObject> parent)
: MovementController(data, preferredTileState, pare... |
95a9f455c65db52686196393426145ba7020c271 | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /external/skqp/src/gpu/ccpr/GrCCCubicShader.h | ffb91039698ba6a3f43f6034aa5d0204a78dcb0e | [
"BSD-3-Clause"
] | permissive | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | C++ | false | false | 2,561 | h | GrCCCubicShader.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrCCCubicShader_DEFINED
#define GrCCCubicShader_DEFINED
#include "ccpr/GrCCCoverageProcessor.h"
/**
* This class renders the coverage of convex closed cubic segment... |
23ef8a69b0db65681658454dacf39c98f2998cba | 6dac9369d44799e368d866638433fbd17873dcf7 | /src/branches/01032005/input/DirectX/DI8Keyboard.cpp | dd2cf8bee29228142282860d1bc45f914ab64408 | [] | no_license | christhomas/fusionengine | 286b33f2c6a7df785398ffbe7eea1c367e512b8d | 95422685027bb19986ba64c612049faa5899690e | refs/heads/master | 2020-04-05T22:52:07.491706 | 2006-10-24T11:21:28 | 2006-10-24T11:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,559 | cpp | DI8Keyboard.cpp | // DI8Keyboard.cpp: implementation of the DI8Keyboard class.
//
//////////////////////////////////////////////////////////////////////
#include <DI8InputDeviceDB.h>
#include <InputMapping.h>
/** DirectInput8 Keyboard Constructor */
DI8Keyboard::DI8Keyboard(int DeviceID): InputKeyboard(DeviceID){}
/** Direc... |
ee4d2172c5bbd169a7ea32768f7f6552d7d07aae | 877f0ffaba231368fedbe84514d84fbbcf2c01f7 | /codeforces/887-B/887-B-32026465.cpp | 20ab738edaae36da16cee998e3b3cb3190b9ebee | [] | no_license | AyushAgnihotri/Practise | cb113191b7d958c95c92a296dcb73e64fdd22ef9 | 7822e20233e683004965a6287285097d85734aa8 | refs/heads/master | 2021-03-27T08:45:32.755018 | 2018-03-08T14:43:47 | 2018-03-08T14:43:47 | 119,174,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,191 | cpp | 887-B-32026465.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n,i,j,x,k;
int a[1000];
memset(a,0,sizeof(a));
vector <int> v[3];
scanf("%d",&n);
for(i=0;i<n;i++) {
for(j=0;j<6;j++) {
scanf("%d",&x);
v[i].push_back(x);
}
}
for(i=0;i<n;i++) {
for(j=0;j<6;j++) {
a[v[i][j]]=1;
}
... |
4c74d69f3d8fd093f6633c2b079152155549ccbe | 2129f512bb3746ae3a98a4d844840af02f75ec11 | /algo/제출.cpp | b210231cad223b5a34cbc2c11f904ed073741273 | [] | no_license | 201511011/algo | 5a9f281e619f89caadbd983aa77d6c03574a132f | 8cc578fa1a30f96185f1b3a55c9b41643e338aac | refs/heads/master | 2020-03-18T06:57:23.912042 | 2018-05-22T13:13:43 | 2018-05-22T13:13:43 | 124,238,357 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 993 | cpp | 제출.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
int n;
int m;
//vector <int> c;
int c[500001];
//정렬되어 있는 vecotr c에서 val2가 몇개 있는지 찾아보고 그 수를 return 한다.
int card(int val) {
return (upper_bound(v.begin(), v.end(), val) - v.begin()) - (lower_bound(v.begin(... |
57f8595bcbda2beb193bfa57076f66d0369d3ea7 | 3da1c543033ab5b20de0398395681011ea2c39b5 | /C++ basics/pointers/dynamic_mem_all_weak_ptr_c++.cpp | 2f6c96249e46918c798b050ae69fafacce6f7bd1 | [] | no_license | arnabs542/CP | f2a27d6134c10b60eedc5b61aed98d821a4d6126 | 6f585b2f8c540257c2b3605089e4608b63820d1a | refs/heads/master | 2023-06-27T19:18:31.715213 | 2021-04-27T04:46:58 | 2021-04-27T04:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | cpp | dynamic_mem_all_weak_ptr_c++.cpp | #include<bits/stdc++.h>
using namespace std;
weak_ptr<int> weakPointer()
{
return weak_ptr<int>();
}
int main()
{
weak_ptr<int> wip();
if ( wip == nullptr )
cout<<"wip = nullptr"<<endl;
else
cout<<"wip : default initialized "<<endl;
// cannot be checked if its value is nullptr ... |
07ef1eb27bea64d81e06420b72222fc1d2f7c284 | 141e294aac683c178b1e8cc4a97ed65fc7315020 | /src/ui/terminal/linux_input.hpp | 555f9d03e060508b169ee660fb61b86e893df334 | [
"MIT"
] | permissive | tiehuis/mpe | f8813969560b6120c6ed8e60d3c339a413ca2947 | 6bc0e671926c8634466a362a962aa4ec5733bc87 | refs/heads/master | 2021-01-10T02:32:57.772827 | 2016-02-20T09:49:42 | 2016-02-20T09:49:42 | 52,259,374 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | hpp | linux_input.hpp | ///
// linux_input.hpp
//
// A thing wrapper around the linux/input.h header. This allows us to have more
// fine-grained control over keyboard state than we could otherwise obtain with
// getc and friends, which do not tell us anything about the state of a key.
#pragma once
// File inclusions will usually require th... |
a0460118ba37463900d1fcb248cf65744e8e3ebd | d1a836826572c7038e5be3e5c9c52744e89d32b5 | /beaker/stmt.hpp | 170cec4835020296f04c5aa9ddb0470e4664b4f5 | [
"Apache-2.0"
] | permissive | catastropher/beaker | 0e65494fb981bfc924ed2c8b070a30cfc6c0cbf4 | 72f2a2f71d58c4c91eaf7c5fca35c3f0720103a9 | refs/heads/master | 2021-01-16T20:01:52.863372 | 2015-12-17T17:46:34 | 2015-12-17T17:46:34 | 50,617,951 | 1 | 0 | null | 2016-01-28T22:18:01 | 2016-01-28T22:18:01 | null | UTF-8 | C++ | false | false | 6,951 | hpp | stmt.hpp | // Copyright (c) 2015 Andrew Sutton
// All rights reserved
#ifndef BEAKER_STMT_HPP
#define BEAKER_STMT_HPP
// The base class of all statements in the language.
struct Stmt
{
struct Visitor;
struct Mutator;
virtual ~Stmt() { }
virtual void accept(Visitor&) const = 0;
virtual void accept(Mutator&) = 0;
};
... |
cb2594e07456384c43e8b6acfc80fe26fd34de60 | c844e434ba81dafcb739f5f983cf65581a4da660 | /RtmpClientPlayer/rtmpplayer/FlvStreamToH264.cpp | dad87375f99079420b562b231f3383adfdb3a368 | [] | no_license | wwtghx/AV-Live | fc9763a7f91769283f54ec48b35c2add419898f2 | 188f302cef074df82e703394b8589a709c003129 | refs/heads/master | 2021-07-22T20:05:34.715003 | 2017-11-03T03:56:07 | 2017-11-03T03:56:07 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,798 | cpp | FlvStreamToH264.cpp | #include "FlvStreamToH264.h"
//----------------
static int csH264StartCode = 0x01000000;//H264内容间隔标识00000001
#define HTON16(x) ((x>>8&0xff)|(x<<8&0xff00))
#define HTON24(x) ((x>>16&0xff)|(x<<16&0xff0000)|x&0xff00)
#define HTON32(x) ((x>>24&0xff)|(x>>8&0xff00)|\
(x << 8 & 0xff0000) | (x << 24 & 0xff000000))
boo... |
2fb093297d59600337b739d64d2b3dc1d0d1f2d4 | a65b1ba6939f1de6dbf2f39b18762501a0c99a8b | /Symulacja_Cyfrowa/logger.cpp | 4133f73fd0a20eb5c978d2536690ad36af29794e | [] | no_license | SzPi1946/Symulacja_Cyfrowa | e0da197fd00c14cffd537ca362ed56ae27b0b839 | a5033198a4f4f0eff0bc9abaeb4813726673c3ec | refs/heads/master | 2021-05-25T08:11:18.095265 | 2021-02-23T11:51:27 | 2021-02-23T11:51:27 | 253,733,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | logger.cpp | #include "logger.h"
#include <iostream>
Logger::Logger()
{
txt_file_.open("date_txt.txt", std::ios::out);
}
Logger::~Logger()
{
}
void Logger::set_level()
{
int a;
std::cout << "Info->1 Debug->2 Error->3 ";
while (true)
{
std::cin >> a;
if ((a >= 1) || (a <= 3)) break;
}
if (a == 1)... |
48125c758d65f4fa23da04735ddf08f005d9dc12 | 8355f9d0804cb458b51ff1acd82d5677aedbd38c | /排序/希尔排序.cpp | a4cff6007b4bfd63d9fb53c09f84930ceed1454f | [
"MIT"
] | permissive | jiaqiangwjq/Algorithm-learning | 88f8477fc8383b32c485dc33372ac2b13f6a9e80 | 7190ce1ec866d8b40d89224db86e3ae09b02c4b2 | refs/heads/master | 2022-05-05T11:42:46.151962 | 2022-05-03T03:11:32 | 2022-05-03T03:11:32 | 147,054,179 | 0 | 0 | MIT | 2019-03-19T09:18:31 | 2018-09-02T04:27:01 | C++ | UTF-8 | C++ | false | false | 375 | cpp | 希尔排序.cpp | /* 希尔排序 */
void shellSort(ElemType arr[], int n){
int h = 1;
while(h < n / 3)
h = 3 * h + 1;
while(h >= 1){
for(int i = h; i < n; i++){
/* 这一部分其实就是插入排序 */
ElemType e = arr[i];
int j;
for(j = i; j >= h && e > arr[j-h]; j -= h)
arr[j] = arr[j - h]; /* 按从小到大顺序排序 */
arr[j] = e;
}
h /= 3;... |
25b2b5b556fe13e7eb87396a7466215e6a0a0a30 | 3e05c702f35fedb7ee38dffdd760c7f897bc4823 | /Protocol/CMSMessage/GenericCMSMessage.h | 9b170e60084c37333013aa76eef93023e7577b09 | [] | no_license | supersaiyanmode/CMSServer | f69120ae60a0da1c1b9ef6abbb5d96673238f219 | 78b9f2e8a3d11833a57b588fda5e662a1a4e3225 | refs/heads/master | 2021-01-20T17:26:59.908681 | 2013-07-14T12:45:51 | 2013-07-14T12:45:51 | 60,729,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,358 | h | GenericCMSMessage.h | #ifndef GENERICCMS_MESSAGE_H
#define GENERICCMS_MESSAGE_H
#include "Header/CMSHeaderSet.h"
#include "../../Util/IO/InputOutputCapable.h"
#include "../CMSDestination/CMSDestination.h"
#include "../CMSDestination/CMSDestGroup.h"
class GenericCMSMessage: public Serialisable{
CMSHeaderSet standardHeaders,customHeade... |
5d652532502c700452dd4b603620fcc8baef5b37 | 3a0f15f7dcecb91239592e081ea54e118343d278 | /RishEngine/include/Rish/Scene/System/NativeScriptSystem.h | 919cf142d76898e1af5cbf5f92165295edc0a5f2 | [] | no_license | JBrown88/dod | 547d53d451f97205d65a272b4a9961d6ff571339 | 703a1a0e89291abae4999334aa0101bd9df78d01 | refs/heads/master | 2023-02-18T22:41:26.649143 | 2021-01-06T14:14:30 | 2021-01-06T14:14:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | h | NativeScriptSystem.h | #pragma once
#include <Rish/rlpch.h>
#include <entt/entt.hpp>
namespace rl {
class Entity;
class Scene;
class NativeScriptSystem
{
public:
static void RegisterScene(const Ref<Scene> &scene);
//
static void OnInit();
static void OnUpdate(float dt);
static void OnScenePlay();
static void OnS... |
5720ef531b1e9071a1d3259dcbf0d5d41238d4d6 | 91163a89a11fec5aa522866d960c4bb0b919395d | /Week-3-Greedy Algo/Maximum Salary (Largest Number).cpp | a9f18240e271a658bbaa067969a80a8174064084 | [] | no_license | Siddhartha-bit/Algorithm-Toolbox-UC-San-Diego---Coursera | d08b49deb0e807e35b3e3b70b7969f0d142bb93e | 9181e162ba93fd621422a8776d26b97df84ac873 | refs/heads/master | 2023-04-11T04:28:36.513090 | 2021-04-19T00:19:47 | 2021-04-19T00:19:47 | 359,279,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | Maximum Salary (Largest Number).cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int myCompare(string X, string Y)
{
string XY = X+(Y);
string YX = Y+(X);
return XY>YX;
}
void findmax(vector<string> v)
{
sort(v.begin(), v.end(), myCompare);
for(int i=0;i<v.size();i++)
{
... |
0433890951163525d5505bd890c61cdfb707c76f | 2c73ba5a19926fbd7a631a041699baa2bad672d9 | /CPP_2019_CA2_TS_AR/Store.h | 2073e26101a53ca1320542351257d61cc5d109c1 | [] | no_license | TheReverseBrother/CPP_CA2_Pair_Project | 390699957469cc3e9076236e2d5d9ae7d4d12018 | bce1658d522bc5a78bf78bbd32f7d19a844cf86c | refs/heads/master | 2020-11-26T02:08:31.186206 | 2020-01-16T01:38:39 | 2020-01-16T01:38:39 | 228,933,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | h | Store.h | #include "pch.h"
#pragma once
class SalesAnalysis;
class Sale;
class Stockitem;
using namespace std;
class Store
{
private:
map<int, StockItem> stock;
map<int, Sale> sales;
list<SalesAnalysis> analysisList;
public:
Store();
~Store();
bool addStockItem(StockItem& item);
bool addSale(Sale& sale);
bool addAnal... |
818b16a8dd122c79ac743153e962982ed211fa2b | 6a30000555121c5f9468d0792d6c25d5f98f33af | /r_method.h | e6396c1533665c13fe1b138106d3c509b8bde9aa | [
"MIT"
] | permissive | q66/neothyne | 3a153ccaac7c4cfccbf80668f7cfa7d85de7ff05 | c62c7f80803920510e71d27b94e7d20c8744ed41 | refs/heads/master | 2020-04-06T06:48:03.500136 | 2015-07-27T13:52:14 | 2015-07-27T13:52:14 | 39,314,123 | 0 | 0 | null | 2015-07-18T22:01:29 | 2015-07-18T22:01:29 | null | UTF-8 | C++ | false | false | 1,449 | h | r_method.h | #ifndef R_METHOD_HDR
#define R_METHOD_HDR
#include "r_common.h"
#include "u_string.h"
#include "u_vector.h"
#include "u_optional.h"
namespace m {
struct mat4;
struct perspective;
}
namespace r {
struct attribute {
GLuint index;
const char *name;
};
struct method {
method();
~method();
void e... |
880935e8e47779ca8c99c78491eef8a0ed857789 | 1792785b0e9a1740e16af382ba4add83325ac4b9 | /Review/621/SR/Client_Framework/Engine/Headers/VIBuffer_TriColor.h | e9ad169af6fc87d4d18d55eca75e2fd6a5a865c2 | [] | no_license | hscho00/SR_TEST | b52e863a97717f6ebbbd96bcdeb213322f1110e7 | 4c27417d9529f7e01993e027ca8dd5686389b756 | refs/heads/main | 2023-01-24T05:25:42.991178 | 2020-11-25T07:26:09 | 2020-11-25T07:26:09 | 313,191,317 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | VIBuffer_TriColor.h | #pragma once
#ifndef __VIBUFFER_TRUCOLOR_H__
#define __VIBUFFER_TRUCOLOR_H__
#include "VIBuffer.h"
CODEBEGIN(Engine)
class ENGINE_DLL VIBuffer_TriColor final :
public VIBuffer
{
private:
explicit VIBuffer_TriColor(_lpd3dd9 pDevice);
explicit VIBuffer_TriColor(const VIBuffer_TriColor& other);
virtual ~VIBuffer_... |
6dad81a130929e87e6faebf6e9ba5bc269cfb0d0 | cdac79a20519d19cae8e5a266d8f85f3ceb43c54 | /driver_customhmd/AMDEnc/public/samples/CPPSamples/common/DeviceOpenGL.cpp | fcf0822791eb7c374743a1bc5e69947aa7d7ff7d | [] | no_license | sencercoltu/openvr-customhmd | e145c7c45a1a95ca7979760df5716f1fc5874dda | 89c7fce78d37760c8b94e1aa41cfc5894fa47d53 | refs/heads/master | 2020-04-16T02:23:37.309564 | 2018-02-20T19:55:19 | 2018-02-20T19:55:19 | 64,423,981 | 57 | 19 | null | 2017-05-24T01:12:46 | 2016-07-28T19:53:10 | C | UTF-8 | C++ | false | false | 5,568 | cpp | DeviceOpenGL.cpp | //
// Notice Regarding Standards. AMD does not provide a license or sublicense to
// any Intellectual Property Rights relating to any standards, including but not
// limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4;
// AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and M... |
d04e4e66c0ac811fa2eb91c5016d92e8810952fa | 98d021e89ffc0e2743725112204a997dee643c18 | /gtb/bandit_tree/stop/src/gspan.cpp | e2ff9ee9eca387a752faf263571cf5eeabefe94e | [] | no_license | sirasirasira/feature_search | 424cffbb8174af2a327f7396b3f22a44b27226ce | bf894a7c92db58ce309866ed09ea0152d723f76e | refs/heads/master | 2020-09-18T06:06:27.440124 | 2020-01-20T14:37:52 | 2020-01-20T14:37:52 | 224,133,113 | 0 | 1 | null | 2019-12-13T15:38:17 | 2019-11-26T07:50:41 | Groovy | UTF-8 | C++ | false | false | 12,630 | cpp | gspan.cpp | #include "Gspan.h"
#define CLASS Gspan
#include "Database.h"
extern Database db;
extern Setting setting;
void CLASS::makeRoot(const vector<ID>& targets) {
// std::cout << "makeRoot" << std::endl; // debug
Pattern pattern;
DFSCode dcode;
dcode.labels = Triplet(-1, -1, -1);
dcode.time.set(0, 0);
root = {dcode};
... |
312a6a472b9553db87606a0628e2b11613721c4d | becab621d309a0939faa56406083788898a3afae | /EngineReal/ModuleTexture.cpp | 701f28f47d5da216420543c0f365eee430edf2c1 | [] | no_license | telmiuse/1Assigment | 501fa80b4583af067b3fbe46d353be33daeaf66c | 1a46191637af6ab9dfcb73ce06f7835ab4eb398d | refs/heads/main | 2023-01-21T11:30:59.690239 | 2020-11-30T18:34:10 | 2020-11-30T18:34:10 | 313,981,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | ModuleTexture.cpp | #include "ModuleTexture.h"
#include "ModuleModel.h"
#include "ModuleIMGUI.h"
#include "Program.h"
#include "Globals.h"
#include "Application.h"
#include "GL/glew.h"
#include "MathGeoLib/MathGeoLib.h"
#include "IL/il.h"
#include "IL/ilut.h"
#include "Leaks.h"
ModuleTexture::ModuleTexture()
{
}
ModuleTexture::~ModuleT... |
412a89192ee073c08962c1a89543d22a249d216d | bb108c3ea7d235e6fee0575181b5988e6b6a64ef | /mame/src/mame/includes/pastelg.h | c5843c5d69a12b78b863091a5286f59fd14a268d | [
"MIT"
] | permissive | clobber/MAME-OS-X | 3c5e6058b2814754176f3c6dcf1b2963ca804fc3 | ca11d0e946636bda042b6db55c82113e5722fc08 | refs/heads/master | 2021-01-20T05:31:15.086981 | 2013-04-17T18:42:40 | 2013-04-17T18:42:40 | 3,805,274 | 15 | 8 | null | 2013-04-17T18:42:41 | 2012-03-23T04:23:01 | C | UTF-8 | C++ | false | false | 941 | h | pastelg.h | class pastelg_state : public driver_device
{
public:
pastelg_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
UINT8 m_mux_data;
int m_blitter_destx;
int m_blitter_desty;
int m_blitter_sizex;
int m_blitter_sizey;
int m_blitter_src_addr;
... |
e606bc2773801f4de62a9c505311faf46fce9068 | 4b267f6e40b8d837a88a4462cf4c8c5f54c441c7 | /TEST1_IGEKA/mainwindow.h | afb255e70ab144052266bb522ca0b8142c7e4316 | [] | no_license | adallpl/Search-Directory | 530ed1210d1edcd4cb7102d7365f5b1abea59e79 | 7086f0139fd5283e2600cf955e36b61767421faa | refs/heads/master | 2021-01-01T18:00:38.855431 | 2017-08-08T20:23:52 | 2017-08-08T20:23:52 | 98,223,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDir>
#include <QDebug>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QString all_string;
private slots:
void on_pus... |
008a74e40576a095eb67e940e42f7c047fc0e8d4 | b8f6c1368863e0953459afb4de36240314577bbc | /MT/src/MDraw/MTextureManager.cpp | 863077968724545e755f653eb1f8f20799c40537 | [] | no_license | yuedaregone/winmt | 5ed50f4b4553abab064205e96a284af8093fac8d | f716b379b6d9bef474e7ef56af902c0be16cba27 | refs/heads/master | 2023-07-20T23:21:38.492130 | 2019-12-26T11:14:55 | 2019-12-26T11:14:55 | 229,531,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | MTextureManager.cpp | #include "MTextureManager.h"
#include "MTexture.h"
#include "MDefine.h"
#include "MBuiltInImg.h"
MTexture * MTextureManager::LoadTexture(const char* name, bool buildIn)
{
if (m_textures.find(name) != m_textures.end())
{
return m_textures[name];
}
MTexture* tex = new MTexture();
if (buildIn)
{
ImgStruct* img... |
a095f87185787c7b8813105b9e631a2f1731c011 | 107db934db600f02f496ad30d1cbf3f919005473 | /LightsDriverProMiniNoSensors/LightsDriverProMini.ino | fed615c3bfc7e909072f6cd08a446a9297444e03 | [] | no_license | sh4dov/arduino | 106a8f43ce8621a4cd7191a7c5552e33f000fb6b | 2ba4e096e39643d316363732b7d64768693f704a | refs/heads/master | 2023-05-26T16:15:01.772897 | 2023-05-12T10:50:37 | 2023-05-12T10:50:37 | 54,305,397 | 0 | 0 | null | 2023-03-07T15:45:27 | 2016-03-20T07:14:49 | C++ | UTF-8 | C++ | false | false | 2,242 | ino | LightsDriverProMini.ino | #include <EEPROM.h>
#define TIME_RESOLUTION 100
#define MAX_VAL 255
int leds[] = {10};
byte ledsCount = 1;
bool ledsOn = true;
byte currentLedVal = 0;
byte expectedLedVal = 100;
unsigned long nextRead = 0;
int incPin = 7;
int decPin = 8;
int signalPin = 13;
int signalVal = 0;
bool signalState = false;
void setup(... |
9f0f3ccd53b9ce2b2e40ac342cb77347a6f246d1 | adf1b14d45ea915d5c1bbe8f6fb1af072c4a63de | /main.cpp | 8ae259250e181659cd5efcdab9a0c24b68f73bc6 | [] | no_license | koruss/Progra-1-Estructucturas | b990869b7970f72e65e39b42f005b3da8b6e3c91 | 1da9127cd32dd5bffd66d32209ca9922d05710e1 | refs/heads/master | 2020-05-17T15:40:32.812885 | 2019-05-08T23:35:15 | 2019-05-08T23:35:15 | 183,797,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | cpp | main.cpp | #include <iostream>
#include "dlinkedlist.h"
#include "trie.h"
#include "bstree.h"
#include "bstreedictionary.h"
#include "kvpair.h"
using namespace std;
int main()
{
// BSTreeDictionary<int,int> *dic =new BSTreeDictionary<int,int>();
// dic->insert(5,50);
// dic->insert(1,10);
// dic->insert(6,60);
//... |
bb52f3583c40906e83c4716dd9418f2484004a61 | 68043808bde6c0aacad24aa8f053feebd3cfc906 | /TsPrintFrame.h | f6f1872438db66b502439bece6bc9a0671d07342 | [] | no_license | HappyEliane/PMS | 5ed8d743a58e67dac342270544f8fa94022a2d29 | 384d4bf7ddcea8201e649b7fa86674dcca9abc9e | refs/heads/master | 2021-01-16T19:19:57.021624 | 2015-07-10T11:11:36 | 2015-07-10T11:11:36 | 38,875,989 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 981 | h | TsPrintFrame.h | #pragma once
#include "TsPrintView.h"
#define UM_TS_PRINT WM_USER+1
#define UM_TS_BEGIN_PRINTING WM_USER+2
#define UM_TS_END_PRINTING WM_USER+3
// CTsPrintFrame 框架
class CTsPrintFrame : public CFrameWnd
{
DECLARE_DYNCREATE(CTsPrintFrame)
protected:
CTsPrintFrame(); // 动态创建所使用的受保护的构造函数
virtu... |
857cd2447ab382e0a37701280cb61748e2b1d942 | 4fd9f29b20e26b7cc80d748abd8f1dcd94fbbfdd | /Software rasterizer/Luke Thatcher/3DRasterizer/src/Intro3D/AlignAlloc.h | cf2bd6d15362d0cbb9bb184d819c8854d8b9b99f | [] | no_license | Kochise/3dglrtvr | 53208109ca50e53d8380bed0ebdcb7682a2e9438 | dcc2bf847ca26cd6bbd5644190096c27432b542a | refs/heads/master | 2021-12-28T03:24:51.116120 | 2021-08-02T18:55:21 | 2021-08-02T18:55:21 | 77,951,439 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,858 | h | AlignAlloc.h |
// Original Reference:
// http://webcache.googleusercontent.com/search?q=cache:pjjhCdBmUSAJ:ompf.org/forum/viewtopic.php%3Ff%3D11%26t%3D686
// The original reference has recently been removed from the internet. This reference has been found as the alternative:
// http://code.google.com/p/blademaster/source/brows... |
c0352f34f85152800981b1a73bc25372cd9c04e5 | 74ef02d2e5f8f16a1dfd30242140127f019ca1ca | /src/oatpp-websocket/WebSocket.cpp | 023568406275904ca26d45bad4efc237cb7d6850 | [
"Apache-2.0"
] | permissive | oatpp/oatpp-websocket | c34998bcd0d1d7002323937789b513fdd8d2e695 | d95c8ee6262d5e8051099018983715ebf4873db5 | refs/heads/master | 2023-04-04T23:32:43.896674 | 2022-04-27T11:54:56 | 2022-04-27T11:54:56 | 166,122,295 | 68 | 29 | Apache-2.0 | 2022-04-27T11:54:58 | 2019-01-16T22:33:29 | C++ | UTF-8 | C++ | false | false | 13,522 | cpp | WebSocket.cpp | /***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
1b79e671433e983790b44b97d25a3c5d2b484ee9 | 27a9208e100540c0f019a7b7dc39129796fef651 | /SpaceSim/Graphics/RenderSystem.h | 8566ebb2847facbd5a6694921a7917690c85e9de | [] | no_license | NightCreature/SpaceSim | 09cd94a5382c92a5cc5385c5e533daa8bbd8b649 | bda51a4454ebb0dbc2f8c9605073f0c3d7f7e2c7 | refs/heads/master | 2023-05-26T07:16:43.045731 | 2022-07-27T03:00:19 | 2022-07-27T03:00:19 | 20,378,638 | 3 | 1 | null | 2022-07-27T03:00:20 | 2014-06-01T14:14:26 | C++ | UTF-8 | C++ | false | false | 5,796 | h | RenderSystem.h | #pragma once
#include "Application/GameWindow.h"
#include "Core/MessageSystem/MessageObserver.h"
#include "Core/Resource/RenderResource.h"
#include "Core/Thread/Job.h"
#include "Core/Thread/JobSystem.h"
#include "Core/Thread/Timer.h"
#include "Core/Types/Types.h"
#include "Gameplay/particleemitter.h"
#include "Gamepla... |
c87b7ca1902c89083d275700b98f2f877767fc61 | fcb4fe039e43e302a583e4224341cae17c00ad68 | /Movies/logo.cpp | 8dffe8498a0240cc01bca974b16d5791ee67b6aa | [] | no_license | Anastation67/dsba-itop2021-hw1 | b25a4c6944aeacd7082db1d73ea5b2c29e73ab22 | 450cc2ec8541d2d5ad7c6004c562895806742090 | refs/heads/master | 2023-06-08T18:46:03.036000 | 2021-06-20T16:15:03 | 2021-06-20T16:15:03 | 366,973,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,980 | cpp | logo.cpp | #include "logo.h"
#include <QPainter>
#include <QPainterPath>
Logo::Logo(QWidget *parent) : QWidget(parent)
{}
void Logo::paintEvent(QPaintEvent *e)
{
QPainter *p = new QPainter(this);
p->setPen(Qt::black);
p->setBrush(QBrush(QBrush(Qt::black)));
QRectF rect1(70.0, 150.0, 180.0, 120.0);
... |
75f592f19e0f4c4cd8d9a27b309ede1a67c9c743 | 660f80c548c920c4222bb4af1676edfb8f6ce301 | /DirectX/Component/Text.cpp | 58329fc0aded36e48c29df3bc677891666971524 | [] | no_license | soelusoelu/DirectXBase | a2fd4c163f5a73ecf738e8ccae45cebddb4b3762 | 029cd93b913ca75be1fda11a1f9ab2c6774cda97 | refs/heads/master | 2020-11-28T12:12:03.970203 | 2020-06-20T00:13:41 | 2020-06-20T00:13:41 | 229,805,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,559 | cpp | Text.cpp | #include "Text.h"
#include "../Device/DrawString.h"
#include "../Device/Renderer.h"
#include "../GameObject/GameObject.h"
#include "../GameObject/Transform2D.h"
#include "../Utility/LevelLoader.h"
#include "../Utility/StringUtil.h"
Text::Text() :
Component(),
mText(""),
mPosition(Vector2::zero),
mScal... |
23b0ce5f6d811c45a6ec8055ce5ebc19f46412d2 | aa78ede78f08eecde9a78fe1066b81e47ae19390 | /Server.tests/Database/tst_chatdatabasemanager.h | 32de68ba657441ed8652c5f344d03735f1924683 | [] | no_license | MafiaMakers/Backend-server | 51c342d6e202194b47e183310e348643cbff5d31 | 1fdc213e841d78aca3b5f70bca45684664e32435 | refs/heads/master | 2023-01-12T04:57:25.511124 | 2020-11-02T12:53:50 | 2020-11-02T12:53:50 | 254,849,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | h | tst_chatdatabasemanager.h | #ifndef CHATDATABASEMANAGERTESTS_H
#define CHATDATABASEMANAGERTESTS_H
#include <QTest>
#include <QObject>
#include "Database/chatdatabasemanager.h"
namespace MafiaTests {
namespace DatabaseTests {
class ChatDatabaseManagerTests : public QObject
{
Q_OBJECT
public:
explicit ChatDatabaseManager... |
bc3b659d0bbbfb75e747e3d10731717b011a1dfb | 6cfaea3f0c2fb89d8c1428a7a8a14dd1b3e86226 | /cs162/Week4/Assignment2/main.cpp | 35f0987d7622a9c1288e17d0b7483998f314522e | [] | no_license | nix858/osu | e8bedd4bf737a16b050b4d70ab461926c7852b08 | 7b116b9e41d63e75ae4db72fc0790de7f2d368fd | refs/heads/master | 2021-01-18T14:18:19.582621 | 2015-03-17T07:05:57 | 2015-03-17T07:05:57 | 31,139,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,435 | cpp | main.cpp | /*********************************************************************
** Program Filename: shoppingList.cpp
** Author: Nicole Parker
** Date: 1/28/2015
** Description: This is a grocery list program. The program contains a
item class, listManager class and groceryList class. Item class contains
item infor... |
224b17c0c89feb9a386b4fe97fff24f0d180333c | 3a737ba0d3454f5269b1b39b521c50c7b2e4bd4c | /includes/VirtualMachine.hpp | 62ed59b1680aada396ff39b319e4fd76e15151ef | [] | no_license | liderako/abstract-vm | 4056a89a641ed7e18eee708f4b8930cfe01ae37c | bc4ef4ee5d311b10973fa3312ba86d74d6c7052e | refs/heads/master | 2020-04-13T07:21:22.993013 | 2018-12-29T17:51:14 | 2018-12-29T17:51:14 | 163,049,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,944 | hpp | VirtualMachine.hpp | #ifndef VIRTUALMACHINE_HPP
#define VIRTUALMACHINE_HPP
#include <iostream>
//#include "interface/IOperand.hpp"
#include "Parser.hpp"
#include "OperandFactory.hpp"
#include <vector>
//enum eTypeAction{Pop, Dump, Add, Sub, Mul, Div, Mod, Print, Exit, Push, Assert};
class VirtualMachine {
public:
VirtualMachine(); /... |
fac8c05a3cba0f05ec066841a51d6bb5da3caed0 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_3145_httpd-2.0.63.cpp | fe1e73dac5e4c3c90cdab8287eb9ca3cc162d7a4 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | httpd_repos_function_3145_httpd-2.0.63.cpp | apr_status_t apr_sendto(apr_socket_t *sock, apr_sockaddr_t *where,
apr_int32_t flags, const char *buf, apr_size_t *len)
{
return apr_socket_sendto(sock, where, flags, buf, len);
} |
42e4b0f899b202082e0af1ba8d831f5ca7de0abc | 6b273054a7324b16d359ec0fe474e7cc0480e34e | /src/cs-gui/ScreenSpaceGuiArea.hpp | 6968529fbcae82139e4cc71f65c50d10f53f9639 | [
"MIT",
"LGPL-3.0-only",
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"DOC",
"LicenseRef-scancode-ubuntu-font-1.0",
"BSL-1.0",
"Apache-2.0",
"LGPL-2.0-only",
"NTP",
"libtiff",
"WTFPL",
"curl",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-happy-bunny",
... | permissive | octfx/cosmoscout-vr | d620493d3df499714529136ecab21febb56aeb71 | 7a9f7a26f657db173bf56a026a41f0f4dd28fd8e | refs/heads/master | 2021-10-09T09:05:21.395710 | 2021-03-30T07:43:01 | 2021-03-30T07:43:01 | 206,268,944 | 0 | 0 | MIT | 2019-09-04T08:22:21 | 2019-09-04T08:22:21 | null | UTF-8 | C++ | false | false | 2,595 | hpp | ScreenSpaceGuiArea.hpp | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... |
bded476716feadf5fd2e46bd207fb9f50f85acaa | 1dd397fa88b66877c669711f8a479c2fe61de440 | /src/solvers/smt1/smt1_conv.h | c362c7a4971ccd87698ba99655f2276c17ed1c39 | [
"MIT",
"BSD-2-Clause"
] | permissive | fanhy2114/yogar-cbmc | bc707ccb927f6e5a2c23c188619e7bb997d9369e | 4e61ef2853158bf183f9fe31b12bf048cefa643a | refs/heads/master | 2020-04-17T10:27:50.033647 | 2019-12-30T13:43:35 | 2019-12-30T13:43:35 | 166,502,179 | 1 | 1 | NOASSERTION | 2019-01-19T03:32:21 | 2019-01-19T03:32:21 | null | UTF-8 | C++ | false | false | 5,671 | h | smt1_conv.h | /*******************************************************************\
Module: SMT Version 1 Backend
Author: Daniel Kroening, kroening@kroening.com
Revision: Roberto Bruttomesso, roberto.bruttomesso@unisi.ch
\*******************************************************************/
#ifndef CPROVER_SOLVER_SMT_CONV_H
#defi... |
873d72c4fd85d622b7896ba19381c4f7dd7b61b1 | 820b6af9fd43b270749224bb278e5f714f655ac9 | /IO/XML/vtkXMLFileReadTester.h | a9cf7066e63fb479c42e13e10135aae820dd26ba | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | C++ | false | false | 2,041 | h | vtkXMLFileReadTester.h | // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
/**
* @class vtkXMLFileReadTester
* @brief Utility class for vtkXMLReader and subclasses.
*
* vtkXMLFileReadTester reads the smallest part of a file necessary to
* determine whether it is... |
c46dba581e6864f8d3f5d0572ee5e55557e40218 | 113b2a52ae63773c99a8ba5222bdcc29936a1a5f | /include/axl_sys/axl_sys_Process.h | c79284479d1edd6f1619562cc918539016149993 | [
"MIT"
] | permissive | vovkos/axl | 3347e30cdd10cc7e806a33c36b22aa0fc26b5de8 | 028f576278f88e71e0442e0e7a0a60b88c0180e9 | refs/heads/master | 2023-08-08T01:35:23.049150 | 2023-08-02T05:49:27 | 2023-08-02T05:49:27 | 76,837,541 | 3 | 3 | MIT | 2019-04-22T02:55:50 | 2016-12-19T07:11:51 | C++ | UTF-8 | C++ | false | false | 1,421 | h | axl_sys_Process.h | //..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/axl/... |
684cff0529d79082624c635aaad35a011fe6673f | 6f4fac9f5e207a8fc883addfd3a9526a369cedb1 | /hamin/Greedy/Ex_14717.cpp | 57da6f2d2aef4978aa23076ec0014c540fc244f8 | [] | no_license | suhyun1/problem-solving | 3e4da30142c9d1614e6d784583833afd540c0aa9 | 710b5e8705d31b89315239f9020d7df8b0bceafd | refs/heads/master | 2023-07-15T17:16:40.593141 | 2021-08-22T14:49:12 | 2021-08-22T14:49:12 | 206,473,228 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | Ex_14717.cpp | #include <iostream>
using namespace std;
int getScore(int a, int b) {
if (a == b) {
return a + 100;
} else {
return (a + b) % 10;
}
}
int main() {
int a, b; // 영악한 영학이의 두 카드.
int i, j; // 불쌍한 상대편의 두 카드.
int cards[20] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
cin >> a >> b;
... |
c38f120d3e8d9ba3d24b951802b14e998fa8e894 | 5a7d3db1f4dc544d47430dcecf9de5ae2990fe88 | /.emacs.d/undohist/!home!sirogami!Programming!compe!CF!round!481!f.cc | cd27b712c7bd52f96268e08e714ae41cbfff899c | [] | no_license | sirogamichandayo/emacs_sirogami | d990da25e5b83b23799070b4d1b5c540b12023b9 | c646cfd1c4a69cef2762432ba4492e32c2c025c8 | refs/heads/master | 2023-01-24T12:38:56.308764 | 2020-12-07T10:42:35 | 2020-12-07T10:42:35 | 245,687,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,901 | cc | !home!sirogami!Programming!compe!CF!round!481!f.cc |
((digest . "ac88c20155b301b6e4305216cc07f191") (undo-list nil ("<" . -3019) ((marker . 3019) . -1) ("<" . -3020) ((marker . 3019) . -1) (" " . -3021) ((marker . 3019) . -1) 3022 nil (3034 . 3035) nil (3030 . 3034) nil (3028 . 3030) nil (3024 . 3028) nil (3022 . 3024) nil (3021 . 3022) nil (3019 . 3021) nil (3014 . 301... |
3086bcccb12ac6bb91558181b4c5c6d1b86d4562 | d3a866847e7feeb4d1893bd7b3794af6bcbf68ed | /Algorithm/prime_numbers.cpp | 1433f1eb3e657252f61716e07814136adc94b1d6 | [] | no_license | sodrulamin/UVA | b1c7e88ea34e723a6ab9ec7170959e866c5ec729 | d2a6e09ba4d6aabbb06b1080ec41466e26dce4dd | refs/heads/master | 2020-07-18T08:47:59.317865 | 2019-10-16T08:22:40 | 2019-10-16T08:22:40 | 206,215,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | prime_numbers.cpp | #include <iostream>
using namespace std;
bool isPrime(int n)
{
int i = 2;
while(i * i <= n)
{
if(n % i == 0)
return false;
i++;
}
return true;
}
int main()
{
int n1 = 2, n2 = 1000;
for(int i = n1; i <= n2; i++)
{
if(isPrime(i))
{
... |
e9689b99cd206ace9b85bd4824271dcb650c735d | b0339b452cedb4378055c926aa96de13d7659c28 | /fill_color_bmp/lib_fill_img.h | eb82fdc3c759ce905c7478114f85269397031cfe | [] | no_license | Kolsha/oop_solutions | d6e0852c2766482ce28a06b519a370674fa691dd | a182e1f47b85a5e94807d49186f6526df07d7f0f | refs/heads/master | 2021-01-24T23:51:59.294832 | 2018-01-25T21:24:27 | 2018-01-25T21:24:27 | 82,028,248 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | lib_fill_img.h | #ifndef LIB_FILL_IMG_H
#define LIB_FILL_IMG_H
#include <iostream>
#include <ctime>
#include <opencv/cv.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utility.hpp>
bool img_flood_fill(const char* in_fn, const char* out_fn,
const CvPoint seed, const CvS... |
a1ef025f0ce7766d6e0e89d64ff286be14cdf699 | 5925604475bdb9106e2ea8550770df9108748f64 | /yare/CameraManipulator.h | 1c627b65ec8607ee2574cf96da52a4ca3877c0ee | [] | no_license | y20Lion/yare | 6f15e5c14e4faba895a742519528ec6c69808701 | 80b15b400f11b5d80fc538a377492b8a039f2af8 | refs/heads/master | 2020-12-25T17:03:45.246285 | 2017-05-13T11:34:50 | 2017-05-13T11:34:50 | 56,537,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | CameraManipulator.h | #pragma once
#include <glm/vec2.hpp>
#include "Camera.h"
namespace yare {
enum class CameraAction {None, Zoom, Pan, Orbit};
class CameraManipulator
{
public:
CameraManipulator(PointOfView* manipulated_pov);
void motionStart(CameraAction action, double x, double y);
void motionEnd();
void mouseMotio... |
5cee5a40fde549becb184ef2ff516564cfabb482 | 9e3d45b585f230002555583261d0315028e6cb39 | /Operating System/PC-semaphores.cpp | e6fed53d4b2661cd5d5264ab6d5db292239d0d07 | [] | no_license | jsureka/IIT-Courses | d8f9a66e11537f96222a6f31b46f879a3acafcfd | e9698a6d75c3980aaa679dfd901dd4fc2806bcce | refs/heads/main | 2023-05-02T04:12:42.002460 | 2021-05-18T07:11:12 | 2021-05-18T07:11:12 | 368,251,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | cpp | PC-semaphores.cpp | #include<bits/stdc++.h>
#include<pthread.h>
#include <unistd.h>
using namespace std;
#define N 0
#define bsize 8
int coun= -1;
int buffer[8]={0};
int blank=8;
int full=0;
int t1=0;
int t2=0;
bool locked = false;
int s=0;
bool testnSet( bool *target)
{
bool rv = *target;
*target = true;
return rv;
}
void w... |
0237dc73b4033c8ed96056bf73a4e4ea78233d9a | d42a67f7fb5dd4cd9cf3c14d91578fdb913a3a85 | /libap/AsioPiwik.hpp | cddfd8eb919c60171df65f379995a788fd44042e | [] | no_license | m4xw/libap | e85452fc34e0dd8086ee5d65b91e051ad6972c3b | ec0cc6ce14d1d9d009f7361a3a99a07a25359e2a | refs/heads/master | 2020-04-14T13:09:00.537500 | 2016-12-27T00:25:44 | 2016-12-27T00:25:44 | 163,860,426 | 2 | 0 | null | 2019-01-02T15:49:52 | 2019-01-02T15:49:52 | null | UTF-8 | C++ | false | false | 4,375 | hpp | AsioPiwik.hpp | // Copyright (c) 2016 Mosalam Ebrahimi
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publi... |
f9d9f10ed43c84883500bd84a8eae7cad8cdb004 | e8b856d987faa6a05e6e34fe8a3b79fc056a6c97 | /SortList.cpp | 8bf80e086758db167dd5b93d22e7132efb676fe8 | [] | no_license | BeyondCC/LeetCode | d7edb21aad09b33c747f5432995b1925363f8eaa | edf5170d60368c94e38a59395f019cc6088f2bfe | refs/heads/master | 2021-01-18T21:12:09.460587 | 2016-05-15T06:12:52 | 2016-05-15T06:12:52 | 26,055,080 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,799 | cpp | SortList.cpp | // Source : https://oj.leetcode.com/problems/sort-list/
// Author : Cheng Chen
// Date : 2014-07-06
/**********************************************************************************
*
* Sort a linked list in O(n log n) time using constant space complexity.
*
***************************************... |
a082ec9f3a36d050346bc34d21e230d925197ce4 | 2d2a1bbf0de45298446be9625581dc38b91e18b4 | /1281.SubtractTheProductAndSumOfDigitsOfAnInteger.cpp | b737de5c1502da2603e79a7044bf9a0eeb19f2e5 | [] | no_license | MarinYoung4596/LeetCode | 68c88d057d4ac64eab89b7d81451b993b46e8865 | 87adcedce34f46b44610659a7b9741046b54e98f | refs/heads/master | 2021-01-17T14:09:52.035467 | 2020-09-13T08:10:58 | 2020-09-13T08:10:58 | 33,536,898 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,219 | cpp | 1281.SubtractTheProductAndSumOfDigitsOfAnInteger.cpp | /*
Given an integer number n, return the difference between the product of its digits and the sum of its digits.
Example 1:
Input: n = 234
Output: 15
Explanation:
Product of digits = 2 * 3 * 4 = 24
Sum of digits = 2 + 3 + 4 = 9
Result = 24 - 9 = 15
Example 2:
Input: n = 4421
Output: 21
Ex... |
fe29d2d8b7dc7cd4034c78826c485ede85432dc7 | 8c4ceba2df6de50cbbcf39ec9c0d1d2543948b9b | /Polygon.cpp | 9d1ebb79a3134a3c2495d4c9402f9d043b76891c | [] | no_license | czhnju161220026/Graphics-final-project | 010e01043815e291587e5b190f8843e482fff289 | 7475a519d69b2239512b6b85425ea85555ec634b | refs/heads/master | 2020-04-12T07:58:38.452107 | 2018-12-20T14:54:56 | 2018-12-20T14:54:56 | 162,377,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,137 | cpp | Polygon.cpp | #include "Polygon.h"
#include "line.h"
#include <QPainter>
#include <cmath>
#include <QDebug>
#include <QPainter>
Polygon::Polygon() {
qDebug() <<"New Polygon";
attribute = POLYGON;
finished = false;
rotateDegrees = 0;
}
Polygon::Polygon(QVector<QPoint> points) {
for(int i = 0;i<points.size();i++)... |
7717428793f3b29075c5825c965a9054a915ef62 | b92643ad120a6cbb0384559a742f1464bd2c6d9e | /Practice Programs/classes_and_objects1.cpp | 143c035931ec41af232ffad2c13a096fa6689a11 | [
"MIT"
] | permissive | C-Nikks/CPP_Language_Programs | 985ae7338980750a3c5c21259d094d4317759387 | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | refs/heads/main | 2023-08-06T15:57:19.992949 | 2021-10-05T04:00:42 | 2021-10-05T04:00:42 | 413,667,219 | 0 | 0 | MIT | 2021-10-05T04:00:16 | 2021-10-05T04:00:16 | null | UTF-8 | C++ | false | false | 507 | cpp | classes_and_objects1.cpp | #include <iostream>
using namespace std;
class Complex
{
private:
int a, b;
public:
void set_Data(int x, int y)
{
a = x;
b = y;
}
void show_Data()
{
cout << "a = " << a << " and b = " << b;
}
Complex add(Complex c)
{
Complex temp;
temp.a = a +... |
ba9e18643083d9d30f8338f655459d52e2e6898c | 63290e68182559a5bf4877cdd5b65bab7d3f66e0 | /1007_dna_sorting.cpp | e455e9da6f9604dda3fdb5511cfc8392d4dec7ae | [] | no_license | PizzaL/poj | d91289763353c70bcddb0b06b9adbc7d2745ef28 | 4b00429026546e1daeea2ebd892dfae016097b5a | refs/heads/master | 2021-01-13T09:34:45.303307 | 2018-03-01T04:09:18 | 2018-03-01T04:09:18 | 72,066,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | cpp | 1007_dna_sorting.cpp | #include <iostream>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;
struct DNA {
string sequence;
int sortedness;
};
bool operator<(const DNA& lhs, const DNA& rhs)
{
return lhs.sortedness <= rhs.sortedness;
}
int sortedness(string str)
{
int res =0;
for (size_t i=0;i<str.length()-1;... |
c60ab70188af6e3f49969086888cc2cd203fd423 | 777d99b9e30187992e5c1fbf45203665ddac440f | /flexview/usb/usbdevice.h | c92f781b62951ea0405665cf98b211120caab88f | [] | no_license | lxyppc/lxyppc-serial | e21c565c28008b7e65dc9f8f4f0e53506f88d0f2 | 9fbb49438a72abd60745d6ee39248f392785402d | refs/heads/master | 2021-01-18T14:14:03.616721 | 2014-02-27T12:56:52 | 2014-02-27T12:56:52 | 32,802,284 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | h | usbdevice.h | #ifndef USBDEVICE_H
#define USBDEVICE_H
#include <QList>
#include <QStringList>
#include <stdint.h>
#include <QThread>
class UsbDevice : public QThread
{
public:
UsbDevice();
bool openBySN(const QString& devSN, int epForRead = 0);
bool openByPath(const QString& path, int epForRead = 0);
bool close(... |
850c37a19c923f79a0623fcbd94bf26d5013e648 | 060b507dedc0934a3b3ee16ffc59f2f4ae52654d | /queue_problems/kill_process.cpp | 2896962236973b57b3cfe19ad3e3986bbdfc302f | [] | no_license | quicktwit/leetcode | e295f6f0334e9b6c5d2f7324a58e43f34588d5e0 | cfc27d0ae1a3d436a2462308d244fcd913c40fab | refs/heads/master | 2021-01-07T19:18:20.313602 | 2020-02-29T09:44:39 | 2020-02-29T09:44:39 | 241,794,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | kill_process.cpp | /*
* Written by Alok Pratap <https://github.com/quicktwit/>, 2020
*/
/*
Result is: Time Limit Exceeded
*/
class Solution {
public:
vector<int> result;
queue<int> q;
vector<int> killProcess(vector<int>& pid, vector<int>& ppid, int kill) {
q.push(kill);
result.push_back(kill);
while(... |
1ba5451536443e0bb0cdc59dfccf7a09bfa7cfce | c704d37530eff224bba4a8bea0c0d9c94a1d6536 | /segundo departa/almacen/almacenClass.h | 1e5e94eb58bfcf06f823bcc77fb4211ce5a1a38a | [] | no_license | asta-kun/1er-Ingenieria | a3d64721efcb7dccfbe5b717764697c12d1c5e65 | 78629742a0bde2031652cd9f7df28aa025fac727 | refs/heads/master | 2021-08-22T11:29:11.118401 | 2017-11-30T04:09:00 | 2017-11-30T04:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | h | almacenClass.h | class Almacen{
private:
//prototype de metodo
char name[100], expiry_date[50], code[20], price[10];
int count;
public: //publics
Almacen();
//sets
void setName(char*);
void setExpiry(char*);
void setCode(char*);
void setCount(int);
void setPrice(char*);
void setResta(int);
void se... |
07b0eb6e2aa17adbfa2c90d880271fe9631c19f0 | 7964b5ad6beba2fd122c29ed0e8b78f2350649fa | /src/codeforces/1428C.cpp | 45905d45429f31c4129983259dded85ef0bf3b18 | [] | no_license | jswildcards/up-project | ca97e1e5d143bbc885cf0d109b699fdf4bf96504 | 01cf02df7afc184563c0abf1c3d651e61cdcfeee | refs/heads/main | 2023-03-30T07:56:52.944984 | 2021-01-25T14:32:47 | 2021-01-25T14:32:47 | 325,830,806 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | 1428C.cpp | #include <bits/stdc++.h>
using namespace std;
int solution(string s)
{
stack<char> q;
for (char c : s)
{
if (c == 'A' || q.size() <= 0)
q.push(c);
else
q.pop();
}
return q.size();
}
int main()
{
int t;
string s;
cin >> t;
int result[t];
for (int i = 0; i < t; i++)
{
cin ... |
d3d2b80433a1b15875aa2bb47d579f0e6a9edfd8 | 43d70f700d3818bfc1460cae7b398fa20b505b69 | /GameTemplate/GameTemplate/Game/scene/Result.h | f6f69c98bf46ef2fc7121284c3c9915b6ce247f4 | [] | no_license | murakami0703/Game | 34c397676fca607ebc4fb47968a02dfcc741d292 | e48d34909adc1801e3826ab880178c7bcd651e39 | refs/heads/master | 2021-07-07T00:22:25.115257 | 2020-11-19T11:38:02 | 2020-11-19T11:38:02 | 209,429,583 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,906 | h | Result.h | #pragma once
class Result : public IGameObject
{
static Result* m_instance;
public:
Result();
~Result();
//インスタンスの取得
static Result* Result::GetInstance() {
return m_instance;
}
//更新
void Update();
private:
void BackMove(); //背景スプライトの移動処理。
void SpriteMove(SpriteRender* m_sprite); //スプライトの下降移動処理。
... |
fa0cb95083c6e94d67a62ee404ead69b36872848 | 849f25325133cbc969d029a1687a9fe8177c0bb6 | /Source/SDL2_Package3/SDL2_Engine.h | 8e6168edaf15eed0cb4dbf33b49dba927f2eac79 | [] | no_license | AnTAVR/SDL2ThirdPacking | 13e5954c4014c6be311f043ed392d35443f36cd6 | a8555e5d8b7724c4e4a67b87f7d0fd4d5f3c27d7 | refs/heads/master | 2021-10-19T03:38:21.649545 | 2019-02-17T14:26:27 | 2019-02-17T14:26:27 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 900 | h | SDL2_Engine.h | ///////////////////////////////
// this class is a Engin in SDL2.start of the program from here
// 程序从这里开始
// 引擎类
// 2018年6月23日 23:50:52
// by 水华宝箱
#ifndef _SDL2_ENGINE_H_BOX
#define _SDL2_ENGINE_H_BOX
#include <SDL2/SDL.h>
#include <SDL2_SceneManager.h>
#include <SDL2_Package.h>
#include <SDL2_Renderer.h>
#include <S... |
3b7097640827dbbdec4dc6ffcac4c5c769221ff2 | 4cb309cf92be99ce4065cedfb2aea6dfba5ddbc5 | /rect.cpp | 919ca0089af890773b70da08ccdd6d589698a31a | [] | no_license | 8BitsCoding/GraphicsViewevent | 5a7e8b882fba5f822cbb3468b932dabaa1ba3e6a | 66d715835dc5dd55214c1547d18d67367ba06bf9 | refs/heads/master | 2022-04-09T02:49:22.287619 | 2020-03-01T03:02:01 | 2020-03-01T03:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | rect.cpp | #include "rect.h"
#include <QDebug>
#include <QGraphicsSceneMouseEvent>
Rect::Rect()
{
}
void Rect::keyPressEvent(QKeyEvent *event) {
qDebug() << "Rect Item : Key press event";
QGraphicsRectItem::keyPressEvent(event);
}
void Rect::mousePressEvent(QGraphicsSceneMouseEvent *event) {
qDebug() << "Rect It... |
14b4a83f3baa4c6bbf31558501b0d3c0530573ca | 926d3ee667146080fefd7a44565bcd6d4aa6e348 | /PloucsMessengerWeb/SizeGrip/vsizegrip.cpp | acdd392c73c1efea1ed358038ea71c5a82f397fe | [] | no_license | Goutye/PloucsMessenger | 2d962b2f6598b4318c4369037071f309075a1a37 | e242188af1a5456f85787aa74ff326461d809e07 | refs/heads/master | 2021-01-01T18:07:46.478763 | 2015-10-29T00:19:38 | 2015-10-29T00:19:38 | 42,401,425 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | cpp | vsizegrip.cpp | #include <QCursor>
#include <QApplication>
#include <QMouseEvent>
#include "vsizegrip.h"
#include <QDebug>
VSizeGrip::VSizeGrip(QWidget *parent) : QSizeGrip(parent)
{
}
VSizeGrip::~VSizeGrip()
{
}
void VSizeGrip::mousePressEvent(QMouseEvent *ev)
{
oldX = ev->globalX();
QSizeGrip::mousePressEvent(ev);
}
voi... |
c29be42bd4f6071955af161a94dd8ab1e28433a0 | a76fc4b155b155bb59a14a82b5939a30a9f74eca | /ProjetTomEval/tomeval/Convert.cpp | 72f81f3959ec2acb25cecbd5e251c0f528bec5fc | [] | no_license | isliulin/JFC-Tools | aade33337153d7cc1b5cfcd33744d89fe2d56b79 | 98b715b78ae5c01472ef595b1faa5531f356e794 | refs/heads/master | 2023-06-01T12:10:51.383944 | 2021-06-17T14:41:07 | 2021-06-17T14:41:07 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,842 | cpp | Convert.cpp | // Convert.cpp: implementation of the CConvert class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "tomeval.h"
#include "Convert.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
/////////////////////////////////... |
77c42bfdf0f411e9f51b532f9c6e0d2d55bf0339 | 367c1bebd44cd39a85985755818d63cfba1f9592 | /address.cpp | 09533a3d5e52de9e12db508097695775569ef2de | [] | no_license | ns7447/searching-techniques--address | 23c0261bc734319b16c5cb56a89f9d0f74681bf6 | ab5ace70094fe4571ced03c591db5ab909f0f378 | refs/heads/main | 2023-07-30T18:52:30.763932 | 2021-09-14T04:48:41 | 2021-09-14T04:48:41 | 406,227,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | address.cpp | #include <iostream> using namespace std; int main()
{
string name[10] , num[10] , place[10]; int t;
cin >> t;
for (int i = 0; i < t; i++)
cin >> name[i] >> num[i] >> place[i]; string s;
cin >> s;
int flag = 1;
for (int i = 0; i < t; i++) if ( name[i] == s )
{
cout << "Name Mobile Number City" << endl;
cout << name[i] <... |
c5d590af7805ffb3840b28a7a63e6186a44eb92c | 12c7208310f990111cff5caeb4898ba99efc2534 | /myString.cpp | b63c9700282525a5b5fa5492a1e1fe85d87750e8 | [] | no_license | tonishree/myString | 3c31a91626e3948629830183891f559056b2f5c3 | 9ad988dc5bb7b9a58c2816dab6fdbe476583316e | refs/heads/master | 2020-04-09T19:01:58.843183 | 2018-12-05T14:44:14 | 2018-12-05T14:44:14 | 160,531,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,422 | cpp | myString.cpp | #include "myString.h"
#define lengPlus 16 //So ki tu cong them moi lan
myString::myString()
{
this->capacity = lengPlus - 1;
this->size = 0;
this->string = new char[lengPlus];
this->string[0] = NULL;
}
myString::myString(size_t leng)
{
this->capacity = leng + lengPlus - 1;
this->size = 0;
this->string = new ch... |
d040caaddad9313d7ec9d64b5c08bb1b6bda0b5c | 3188a6b0286163951d35fbe34732843bbd137180 | /tesseract_rviz/src/environment_monitor_properties.cpp | 76ddb9bf0c72c1f7fde1cdc470f8440b1365093a | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | marrts/tesseract_ros2 | bb71bd1f08aff54a99a0511cead8689ea172fb88 | daa1cc0dfb2e3693bdbdbc13d1cca8ea7a3e9dbc | refs/heads/master | 2023-07-20T00:55:49.653267 | 2023-06-19T21:10:58 | 2023-06-19T21:10:58 | 199,026,539 | 2 | 2 | Apache-2.0 | 2023-03-29T22:32:38 | 2019-07-26T14:00:54 | null | UTF-8 | C++ | false | false | 16,393 | cpp | environment_monitor_properties.cpp | #include <tesseract_rviz/environment_monitor_properties.h>
#include <tesseract_rviz/ros_scene_graph_render_manager.h>
#include <tesseract_rviz/ros_contact_results_render_manager.h>
#include <tesseract_rviz/conversions.h>
#include <tesseract_qt/common/component_info.h>
#include <tesseract_qt/common/component_info_manag... |
56a7d089c8be0a273c5db370f458a653b207802c | b8e75751ad78a676ab3f59ab5b1b913ddc4dd101 | /src/rpc_client/src/IRpcServer.h | f63fb6f1b98785680739313dbaa41c2572b02e81 | [] | no_license | dwerdwer/anti | faaf7b3407555e5f8d30092b0616920cb43cf3d1 | 54b4af98b74b35c1dad7116e76d2160f6e15667c | refs/heads/master | 2021-10-20T03:06:25.279123 | 2019-02-25T09:19:05 | 2019-02-25T09:19:05 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,305 | h | IRpcServer.h | #pragma once
#include <string>
#define IN
#define OUT
class IRpcMessage;
// IRPC 接口
/////////////////////////////////////////////////////////
//
// RPC server 接口
typedef void* DATAPTR;
//
// Socket连接接口,IO处理
//
class IRpcConnection
{
public:
// 发送回应数据
virtual int SendResponse(IRpcMessage *... |
d8635aac590f15492e2440731c72ebf5b22bc833 | eff6407d09454434d1801ac0299d87daa5024f24 | /CPP_BASIC/09_OOP/stack5.cpp | cc00a8889077e8674c59904fdb75a012c60dfaa6 | [] | no_license | JeongKwonHo/cplusplus | e8a38422ad0a5827eb7d75a7b80214681303728d | f402564ec53f99e85fd14d4ed78cbeb1a2e19cac | refs/heads/master | 2020-03-20T03:56:00.786785 | 2018-10-04T14:19:06 | 2018-10-04T14:19:06 | 137,164,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | cpp | stack5.cpp |
//Stack을 만들면서 객체지향의 기본 개념을 이해
//총 10단계의 과정 중 5단계
/*
*
1. 접근 지정자
- private : 멤버 함수에서만 접근 할 수 있다.
- public : 멤버 함수가 아닌 함수에서도 접근할 수 있다.
2. 정보 은닉(information hiding)
- 멤버 데이터를 외부에서 직접 접근할 수 없게 하고, 멤버 함수를 통해서만 접근가능하게 한다.
- 외부에 잘못된 사용으로부터 객체가 불안해 지는 것을 막을 수 있다.
- Stack을 사용하는 사람은 push()/pop() 함수만 알면 되고, Stack의 내부... |
a60d444b04432a428db1095332a566cb5d6a9b35 | dde228822c0bc40745feca9fb49dc54a81fbe325 | /include/nn/techniques/rel.hpp | f535def8c4d5b48c758475557f59506f6c6cc50e | [
"MIT"
] | permissive | shibii/nn | 6abecefebcde36f96ba8277c883624b6dcc05195 | 2022ec423c3bfe179997630d6ba705aeaabdd918 | refs/heads/master | 2020-09-12T14:34:22.643374 | 2019-12-18T15:10:16 | 2019-12-18T15:10:16 | 222,454,449 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | hpp | rel.hpp | #pragma once
#include <arrayfire.h>
#include <cereal/types/polymorphic.hpp>
#include "../cereal_archives.hpp"
#include "../feed.hpp"
#include "../weightless_stage.hpp"
namespace nn {
class ReL : public WeightlessStage {
public:
~ReL() = default;
ReL() = default;
void forward(Feed &f) override;
void backward... |
c7dbdcfa228828baf190ee3dfa2541e013c840f7 | b08a4eeabc5495d24f309d9a9ea6da7104277f4a | /All Them Pixels/All Them Pixels/Map.cpp | 8ad083f6d4dc712bbaf7416ca366852bc02d1f66 | [] | no_license | Kanel/AllThemPixels | f776b49005eeff7cb99e32184c86dfcea55c2339 | 61be150419c46ac2a832a06f95f3bdc3af3c7125 | refs/heads/master | 2021-01-10T19:32:32.066249 | 2013-09-22T17:07:52 | 2013-09-22T17:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131 | cpp | Map.cpp | #include "Map.h"
Map::Map() : storage(0)
{
layers = 0;
}
Map::Map(Vector2f position, int layers, float hexagonRadius, Hexagon::Style style) : storage(0)
{
HexagonGrid grid(Hexagon::PointyTopped, hexagonRadius);
int tiles = HexagonGrid::getNumberOfTiles(layers);
this->mapVertexCollection = new VertexCol... |
f91cad65ff51834e5f904a8adf2b6318d652bcde | 8188e0742ec3e8b9a75519359a8676602944b023 | /Basic/1055/s.cpp | 67e9c6ebd3afd208ae0e9312749b9ade82da2f59 | [] | no_license | wujinggrt/PAT | 0718e01195cbc755ccac1f10b29e15d7d42cbe02 | d7d49ac4c798dd0f2c676774f8842cdc6de24e56 | refs/heads/master | 2021-07-15T22:11:39.109637 | 2019-06-10T13:48:34 | 2019-06-10T13:48:34 | 152,895,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,565 | cpp | s.cpp | #include <algorithm>
#include <utility>
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int k;
cin >> k;
if (k == 0 || n == 0) {
return 0;
}
vector<pair<string, int>> vec;
for (int i = ... |
33f69c4cb5b7062003bee5266c616bd04a50e6a5 | ec25cf34ea1cc98f3d24722c8a0b4a9f2f7f945b | /include/WClient.h | 2c4383878029cedfea71de7989a82e57191e2184 | [] | no_license | danjom/IOTQRDevice | 557e1d5019cb31a845f92cf35b699b84eda6afbd | 043cdd95f0a80c8c2d39c78d00673623c5015f1a | refs/heads/master | 2023-05-25T08:43:08.560419 | 2020-08-10T19:10:34 | 2020-08-10T19:10:34 | 273,404,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | h | WClient.h | #include <Project.h>
#include <WiFi.h>
#ifndef WCLIENT_H
#define WCLIENT_H
class WClient {
public:
WClient();
bool online();
void startClient(String ssid, String pass);
void setTimeout(unsigned long time);
private:
bool status;
int WAITSEC;
int TIMEOUT;
... |
25a9e10d49864203cdaaccfef82326368f7751a1 | 9db3f95fa51d48df90839c03abb849de58d6f26a | /graphics/animation/Joint.cpp | 0417fc620820055730df12bbe40f8e44c34a5b8e | [] | no_license | Gangeur69/Voxel | 84e88afaa0e7a4067b0b1a635a93709bcfbfb6dd | 8e18b1b8004520f6ae22bcceddfbd796f207ed07 | refs/heads/master | 2020-08-29T17:08:00.296728 | 2019-10-28T17:46:11 | 2019-10-28T17:46:11 | 218,105,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,641 | cpp | Joint.cpp | #include "Joint.h"
namespace gt
{
namespace doubovik
{
namespace graphics
{
namespace animation
{
Joint::Joint()
{
}
Joint::Joint(int index, const String& name, const Matrix4x4& localDefaultTransformation)
{
this->index = index;
thi... |
f88f17329f2ac4578aaf20ef299ea7ea3333082d | 6a8da3e7f5ab88a8fdf42dd5cba5e136fa85f1a9 | /Dynamic Programming/Longest Common Subsequence/Problems/Sequence Pattern Matching/Wildcard Pattern Matching Linear Time and Constant Space.cpp | f121d02e3e5334c384147acd01eb2ca98fefb610 | [] | no_license | devedu-AI/Data-Structure-and-Algorithms8 | 350590bcb88e630b8302fb353e4ab4be98b5b284 | 59dfe54b5e1e599ac3453447dd1b533cc4020901 | refs/heads/master | 2023-05-12T04:27:41.087267 | 2021-05-31T18:20:24 | 2021-05-31T18:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | Wildcard Pattern Matching Linear Time and Constant Space.cpp | //https://www.geeksforgeeks.org/dynamic-programming-wildcard-pattern-matching-linear-time-constant-space/
class Solution{
public:
/*You are required to complete this method*/
int wildCard(string pattern,string str)
{
int m = pattern.size();
int n = str.size();
int i=0,j=0,index_str=-1... |
dea516b270d541e9294bbeff2b3ea3abd80a1ab9 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir521/dir3871/dir5864/dir6285/dir6579/file6608.cpp | 4ab4d7152494dca2eec1c77804a5b6268903ac81 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | file6608.cpp | #ifndef file6608
#error "macro file6608 must be defined"
#endif
static const char* file6608String = "file6608"; |
f8eea60a777428c23c1bcb7c0bdd77c51384e71d | e44154034dcf72ff810c64f9e3e54904c75974ed | /src/base/process/Process.h | e0f730714c97ab4917be1c5ad3890f42f8ce571d | [] | no_license | sunshinejunge/neptune | 788371bd10bea3867b7de1aee18d43e6195d0754 | 0ca655e24342b206823957892d7a18f51e97ba47 | refs/heads/master | 2020-12-22T05:26:31.597532 | 2020-02-29T12:56:49 | 2020-02-29T12:56:49 | 236,682,019 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | h | Process.h | #ifndef NEP_BASE_PROCESS_P_H
#define NEP_BASE_PROCESS_P_H
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "base/log/Log.h"
namespace neptune {
namespace base {
class CProcess {
public:
... |
bbe6a0c46a480134692be382beb1fe34f03a55d3 | 1fb357bb753988011e0f20c4ca8ec6227516b84b | /LeftRightSymmetricModel/src/LeftRightSymmetricModel.h | b24196523717a74845090fa4232944b99c60d47b | [
"DOC"
] | permissive | silvest/HEPfit | 4240dcb05938596558394e97131872269cfa470e | cbda386f893ed9d8d2d3e6b35c0e81ec056b65d2 | refs/heads/master | 2023-08-05T08:22:20.891324 | 2023-05-19T09:12:45 | 2023-05-19T09:12:45 | 5,481,938 | 18 | 11 | null | 2022-05-15T19:53:40 | 2012-08-20T14:03:58 | C++ | UTF-8 | C++ | false | false | 9,247 | h | LeftRightSymmetricModel.h | /*
* Copyright (C) 2016 HEPfit Collaboration
*
*
* For the licensing terms see doc/COPYING.
*/
#ifndef LEFTRIGHTSYMMETRICMODEL_H
#define LEFTRIGHTSYMMETRICMODEL_H
#include "gslpp.h"
#include "StandardModel.h"
#include "LeftRightSymmetricModelMatching.h"
class LRSMquantities; // forward reference to the class t... |
a9d3209a0677243a9f8faea0b921ec0175e0f1b6 | ad946b7070898df6df97f0aa91cff6d9bd49b4a3 | /IP.h | f9533ec78b2605be09dee2cb338d6e2612887c9a | [] | no_license | vinay-y/Connect-4 | 7a35882ec5617e6c2d2e4d8c8ecebb5e174128d9 | 896a2194a8288dc5259f8eb97b8c8c82491d8509 | refs/heads/master | 2020-12-29T01:42:52.623896 | 2015-10-02T09:21:07 | 2015-10-02T09:21:07 | 43,544,354 | 2 | 0 | null | 2015-10-02T09:11:27 | 2015-10-02T09:11:27 | null | UTF-8 | C++ | false | false | 4,006 | h | IP.h | #include <iostream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <vector>
#include <string>
#include <cstring>
#include <ctime>
#define RED1L 150
#define RED1H 179
#define RED2L 0
#define RED2H 10
#define YELLOWL 20
#define YELLOWH 38
#define REDSATL 100
#define SATH 255
#defin... |
0f02a9ef396532fd67a3f9b46c7c642389887d7e | 9030ce2789a58888904d0c50c21591632eddffd7 | /SDK/ARKSurvivalEvolved_Wyvern_Character_BP_ZombiePoison_functions.cpp | a9e8f674cab625ca231c8186c50415e4442ff01b | [
"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,694 | cpp | ARKSurvivalEvolved_Wyvern_Character_BP_ZombiePoison_functions.cpp | // ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Wyvern_Character_BP_ZombiePoison_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------... |
4efd72cff3939b6f857ead2d102e4797d26f9004 | 6d2536c4a5203f445cb84e5e22c3b8ed950c54b2 | /AirDispRemote/t5-neith/AirDispRemote/source/AirDispRemotecommonop.cpp | 109f7e85c4fe4b2b8c8eadbb99b49457e2dc992a | [] | no_license | isliulin/AirDisplay | 8588a91d02b4ddba71a173cbe9b0ac5348c9bbb7 | 418dc1eaf340d715c438122058625201ba17a401 | refs/heads/master | 2022-04-16T04:03:51.727280 | 2019-05-15T10:13:53 | 2019-05-15T10:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,145 | cpp | AirDispRemotecommonop.cpp | #include "StdAfx.h"
#include "AirDispRemotecommonop.h"
#include "networksetuplogic.h"
#include "videologic.h"
#include "messageboxlogic.h"
#include "menulogic.h"
IAirDispRemoteCommonOp::IAirDispRemoteCommonOp(void)
{
}
IAirDispRemoteCommonOp::~IAirDispRemoteCommonOp(void)
{
}
void IAirDispRemoteCommonOp::RegLogic... |
30e4926a7cd46ef0ccba7ecc7ab378ff3c277129 | 02f9c1beaf3b460e12301c58fac65401cecdfd3a | /Leetcode/algorithms/25-Reverse Nodes in k-Group.cpp | 848222dd982f62c9148cd31d827875b1698c3a7a | [] | no_license | SongRb/OnlineJudge | afa822c611979368b34b7d4aca25187cea17f34e | c18c8869fa48f419fb7f7be0d2108ea1f8537bf8 | refs/heads/master | 2021-01-19T23:52:49.276262 | 2018-10-28T13:08:22 | 2018-10-28T13:08:22 | 89,045,174 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | 25-Reverse Nodes in k-Group.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* reverseKGroup(ListNode* head, int k) {
if(!head) return head;
ListNode* p = head;
ListNode* pr... |
6778ff3c7a6311bd8f9a0ec032d568519c01936d | 1cfd0b154f05498c3bae47247e77acb598fb8cfb | /Codeforces/B_MISC/Inbox.cpp | ef6a5a4d13edd8df343bf6f687100f99d0b544f1 | [
"MIT"
] | permissive | 0xWOLAND/CompetitiveProgramming | 291e9e628788a0e14fd6638f6010e589b670d136 | 6dd47e56693e4fb0600a30a16453978fd52d584e | refs/heads/main | 2023-08-21T23:51:29.758793 | 2021-10-13T04:06:43 | 2021-10-13T04:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | cpp | Inbox.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a;
int n; cin >> n;
for(int i = 0; i < n; i++){
int k;
cin >> k;
if(k == 1){
a.push_back(i);
}
}
int ans = a.size();
for(int i = 1; i < a.size(); i++){
ans += min(a[i] -... |
4549358ec1051d5a1e76b33fed2a0e2fbb2f5f8d | 2dc35e76c78bf51901f91006ec6235e0d27f6038 | /018/1803/1803.cpp | 98efef056b470ec438c938ff8aa9eef1aac9d25a | [] | no_license | davidenglishmusic/comp2618_labs | f32b45bd9af5ecc03ac9b43622a6fd75604db30f | 46ee1500affa0352549a9dc3d31c76b7432a10af | refs/heads/master | 2020-03-31T00:38:26.651271 | 2015-05-23T23:31:18 | 2015-05-23T23:31:18 | 34,176,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | cpp | 1803.cpp | #include <iostream>
#include <string>
#include "equality.h"
#include "banana.h"
using namespace std;
int main()
{
int intA = 5;
int intB = 5;
int intC = 6;
cout << boolalpha;
cout << "intA: " << intA << " is equal to intB: " << intB << "? " << isEqual(intA, intB) << endl;
cout << "intA: " << int... |
438075028ff2213b436d7d60d3094d0461231207 | 0c7e20a002108d636517b2f0cde6de9019fdf8c4 | /Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/tsp/PKIStatus.cpp | 52cde2846ed61192c6d860fa0e1865e4b73ba566 | [
"Apache-2.0"
] | permissive | kernal88/Elastos5 | 022774d8c42aea597e6f8ee14e80e8e31758f950 | 871044110de52fcccfbd6fd0d9c24feefeb6dea0 | refs/heads/master | 2021-01-12T15:23:52.242654 | 2016-10-24T08:20:15 | 2016-10-24T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | cpp | PKIStatus.cpp |
#include "org/apache/harmony/security/x509/tsp/PKIStatus.h"
namespace Org {
namespace Apache {
namespace Harmony {
namespace Security {
namespace X509 {
namespace Tsp {
CAR_INTERFACE_IMPL(PKIStatus, Object, IPKIStatus)
PKIStatus::PKIStatus(
/* [in] */ Int32 status)
: mStatus(status)
{
}
ECode PKIStatus::Ge... |
5facfb04baa01a7b651ae9b5ae477a9f72b780f6 | d9cfe5dd9bcbd5e168c780c0f4ede892b9e9df63 | /pfs.legacy/include/pfs/limits.hpp | 78e8449bce93adb5fe1e66be5a74a235df9e809a | [] | no_license | semenovf/archive | c196d326d85524f86ee734adee74b2f090eac6ee | 5bc6d21d072292dedc9aa4d7a281bc75a1663441 | refs/heads/master | 2022-05-30T11:04:17.315475 | 2022-04-27T03:33:56 | 2022-04-27T03:33:56 | 130,155,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,029 | hpp | limits.hpp | /*
* limits.hpp
*
* Created on: Nov 24, 2015
* Author: wladt
*/
#ifndef __PFS_LIMITS_HPP__
#define __PFS_LIMITS_HPP__
#include <limits>
#include <pfs/bits/assert.h>
#ifndef PFS_HAVE_LONG_DOUBLE
# if defined(LDBL_MIN) \
|| defined(__LDBL_MIN__) // valid for gcc
# define PFS_HAVE_LONG_DOUBLE 1
# en... |
1d6d7c5cb8357f357d1e0fe2bf921be6fb07aacc | f3ec26e7a05a994337741e733e6bfa70fb1a92ce | /pycuda/cuda/pycuda-helpers.hpp | e8dcb69cdae8e6dc3cfd489ffe23415ac5549eca | [] | no_license | zoulianmp/pycuda | 0cb9a140e4783c6f683df3a6f9bd3d2e8b769a0a | e82424c5aaa3fbd3e12746de9d8e52276f672c71 | refs/heads/master | 2020-04-06T05:15:14.929736 | 2014-10-08T16:57:19 | 2014-10-08T16:57:19 | 25,259,235 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,589 | hpp | pycuda-helpers.hpp | #include <pycuda-complex.hpp>
#ifndef _AFJKDASLFSADHF_HEADER_SEEN_PYCUDA_HELPERS_HPP
#define _AFJKDASLFSADHF_HEADER_SEEN_PYCUDA_HELPERS_HPP
extern "C++" {
// "double-precision" textures ------------------------------------------------
/* Thanks to Nathan Bell <nbell@nvidia.com> for help in figuring this out. */
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.