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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40c1407fbb73f991d5d7902c1f1a60e0407e42bd | e9110046ed99395e392e4d46d163234d708ece27 | /Lab1/Watkins-2630825-Lab-01/Lab1/exercise2/main.cpp | 33480a83daff548e68e0071802c8bf2209ce66aa | [] | no_license | csw112358/EECS_169 | db029d96cdff34ea3a016700d84d33dd8d442b97 | e8ffc2dbbf72f5cad7acb0fa3d3731b316d7d5f0 | refs/heads/master | 2021-05-14T12:25:51.996362 | 2018-01-05T17:17:04 | 2018-01-05T17:17:04 | 116,407,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | main.cpp | #include <iostream>
int main(int argc, char** argv)
{
std::cout << "My name is Chris Watkins.\nI am a physics major.\nMy hobbies are:\n\tReading\n\tCoding\n \tInvesting\nGoodbye" << std::endl;
}
|
8d7eb4d3be3e6a72fa7243425f876d238304c19e | 7633802e35480e1b44d3a557f5f62a9e5801976f | /DSA/merging.cpp | 2b0202e9bca54d684eafbe326224e0270c5c63c6 | [] | no_license | vaibhavagarwal47/Competetive-Coding-With-C- | 80740d9c3a7bd24fb2bc232e0921e33397f073a3 | a2983b106b8e13d6934a67c5619ca0cdb87ee8c3 | refs/heads/main | 2023-03-20T11:50:53.427504 | 2021-03-10T13:25:16 | 2021-03-10T13:25:16 | 329,033,317 | 0 | 0 | null | 2021-01-12T15:42:16 | 2021-01-12T15:42:15 | null | UTF-8 | C++ | false | false | 1,573 | cpp | merging.cpp | /*
#include<iostream>
using namespace std;
void merging(int n1,int n2,int m,int a1[],int a2[],int a3[],int index){
m=n1+n2;
for(int i=0;i<n1;i++){
a3[index]=a1[i];
index++;
}
for(int i=0;i<n2;i++){
a3[index]=a2[i];
index++;
}
for(int i=0;i<m;i++){
cout<<a3[i]<<" ";
}
}
int main(){
int n1,n2,m,a1[1000],a2[1000],a3... |
f6aac6d2c431a27e7eed8c3124a273f8b2f04c22 | 7b69439eb9d2cb081cb7671c46c52b76f92a7651 | /3-1_Po_LED_ctrl/PO_LED_ctrl/PO_LED_ctrl.ino | fe0b2de1c83408dfa9e8512dae0e83f103eb5e15 | [] | no_license | showoowohs/Po_Arduino_example | 4a013ef7377ecdbefeaca8dabd54bb2b423ce61a | 13e3adea81ebd8b3614c73ab6d4ebe7fe0220d4c | refs/heads/master | 2021-01-23T13:44:06.067524 | 2017-08-04T23:16:53 | 2017-08-04T23:16:53 | 27,001,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | ino | PO_LED_ctrl.ino |
//digital pin 2
//#define Po_LED 2
//digital pin 3
#define Po_LED 3
void setup() {
pinMode(Po_LED, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(Po_LED, HIGH); // 讓LED不亮
delay(2000); // wait for a second
digitalWrite(Po_LED, LOW); // 讓LED亮
... |
93c65b0a704455fefb917dcbc7c01f37b90789a5 | 3bdf849c236e3efe5a5799aeb1a4022d4b3b463c | /include/logger/file_log_writer.h | 375f8d0b02b4ffa3947e2b3dc3964f466a906263 | [] | no_license | code-dreamer/QtLogger | aa0a98cec22e1611747068b307b2e600a717f8e0 | b82861d53e3c1e8a3e235195e1ea0bb4849cb69c | refs/heads/master | 2021-01-10T18:40:35.762445 | 2015-01-22T09:58:35 | 2015-01-22T09:58:35 | 29,597,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | file_log_writer.h | #pragma once
#pragma warning(push, 0)
#pragma warning(disable: 4350)
#include <QFile>
#include <QTextStream>
#pragma warning(pop)
#include "logger/log_writer_base.h"
namespace logging {
;
class LOGGER_EXPORT file_log_writer : public log_writer_base
{
Q_DISABLE_COPY(file_log_writer)
public:
file_l... |
62616d533a5a8ec4c77b0a2384625aee95a03066 | 3944a12e2205499c06c5211327933ac6a4de8107 | /SarahPacketManager.cpp | e9676aa31a821465a435dbb941fccbf9c19a9ca6 | [] | no_license | saralaoui/EGPC | 31d5fe09988512e92d2c0a69fe1960e359a735b8 | 9840a17365ca0e34542b2c7295ea738ef8fa2aeb | refs/heads/master | 2021-01-01T20:05:11.143129 | 2013-10-02T02:47:11 | 2013-10-02T02:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,613 | cpp | SarahPacketManager.cpp | #include "all-include.h"
#include "SarahPacketManager.h"
/*class SarahPacketListener : public osc::OscPacketListener {
protected:
*/
void SarahPacketListener::ProcessMessage( const osc::ReceivedMessage& m,
const IpEndpointName& remoteEndpoint )
{
try{
// parsing single me... |
572f3a5ce3f229034e18c28139b0f484621e1946 | 7bb889330cd3fbbc1039074033d8b4027a3619d1 | /src/output/AtmosphereOutputer.cpp | d09ef66c3355233c2f09675b06638455bd5d2376 | [] | no_license | hgenet/dostem | 94e6799b1bfb2e7b14fb632dc4ae9f299b38b6a1 | 6975fcc6a6368c81ee9bb2fdb13bddbd900f9ccc | refs/heads/master | 2020-12-24T15:40:57.247827 | 2012-12-13T01:22:35 | 2012-12-13T01:22:35 | 7,157,463 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,255 | cpp | AtmosphereOutputer.cpp | /*! \file
*/
#include "AtmosphereOutputer.h"
AtmosphereOutputer::AtmosphereOutputer(){
reinit();
};
void AtmosphereOutputer::reinit(){
};
#ifdef ODAY
void AtmosphereOutputer::outputDayGridVars(const int & yrcnt){ // at end of execution of one grid
//int yrcnt= outputer->getYrInd();
tdrvGD... |
1f1f68913f88018a049d8ed0e5c62ccd4451e84d | e4a8425dd2eb2089a428ae8a4471264ccfb25c96 | /libs/dutils_image/src/dutils_img_pipe/auto_alg/image_sampling_float.h | c9a8da5934b2c429f8949ca0d51d4cfc5d8b4deb | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | TheImagingSource/tiscamera | b2175152740f6307041fc5fc60f551eedb3a6c95 | 0be2537f8816c5ec892a4ebe4ad0f196f26021e7 | refs/heads/master | 2023-09-01T12:01:36.979982 | 2023-07-12T04:52:39 | 2023-07-12T04:52:39 | 16,314,708 | 279 | 159 | Apache-2.0 | 2023-07-12T04:52:40 | 2014-01-28T14:53:28 | C++ | UTF-8 | C++ | false | false | 432 | h | image_sampling_float.h |
#pragma once
#include <dutils_img_pipe/auto_alg_params.h>
#include <dutils_img/pixel_structs.h>
#include "auto_sample_image.h"
namespace auto_alg::impl
{
// Sampling functions
void auto_sample_byfloat( const img::img_descriptor& image, image_sampling_points_rgbf& points );
void ... |
596caf6ab3f5707899ddcf95550f3800848d2e05 | 0758aa9b644cd866195c217017ebaaf849d31252 | /slatkisi/slatkisi.cpp | 1cfdb2b60c9c0ffb8877107a4d288193056f6333 | [] | no_license | SebastianLindmark/algorithms-and-kattis-problems | fedbf5d6645dac17caf9a149c64ec81fc0152396 | 41b093cb1e0778eccb95f0d0cfd538ea49a3d253 | refs/heads/master | 2020-04-03T11:28:33.856325 | 2018-10-29T14:11:21 | 2018-10-29T14:11:21 | 155,222,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | slatkisi.cpp | //Author Sebastian Lindmark
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main() {
long long int price;
long long int zeroes;
cin >> price;
cin >> zeroes;
long long int billSize = 1;
for (int i = 0; i < zeroes; i++) {
billSize *= 10;
}
long... |
8f244df224d7b03ae8b157adfce3c79733984ade | e6d1b71cb550681a1d85acc538c8ec19136f8285 | /src/mfast/instructions/int_instructions.h | c601367bd1b9dc1b4111bc5df8033cb5c65931f8 | [
"BSD-3-Clause",
"LGPL-3.0-only"
] | permissive | objectcomputing/mFAST | bea0f142a814845f47eaaabf54d6073fc23e9507 | d8036e0b7a765bd012b7a14ae30f077fbf9d1fa5 | refs/heads/master | 2023-06-28T00:31:45.004852 | 2023-06-19T16:38:15 | 2023-06-19T16:38:15 | 13,109,739 | 217 | 125 | BSD-3-Clause | 2023-06-19T16:38:16 | 2013-09-26T01:12:22 | C++ | UTF-8 | C++ | false | false | 3,824 | h | int_instructions.h | // Copyright (c) 2016, Huang-Ming Huang, Object Computing, Inc.
// All rights reserved.
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#pragma once
#include "field_instruction.h"
namespace mfast {
class dictionary_builder;
class MFAST_EXPORT integer_field_instruction_base ... |
79395df7c30bfb259b0f25ac77bff93435ff61f1 | 4262591e1586b909692756c48288e690af813b66 | /src/project/DOTATribe/src/BossScoreDataHandler.cpp | d85ef56df0bcc4b1782712121802d141e8423968 | [] | no_license | atom-chen/DotaTribe | 924a6df4463bffb6cc08df5d8d5cdb4a1a5740fb | 2f6409a78825250ffa38b18b9819dee3ec9d1182 | refs/heads/master | 2020-11-28T03:44:41.631302 | 2019-08-23T07:04:34 | 2019-08-23T07:04:34 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,617 | cpp | BossScoreDataHandler.cpp | //Name:BoseScoreDataHandler.h
//Function:Boss积分系统
//Author:fangjun
//date:20140215
#include "../include/BossScorePacket.h"
#include "../include/BossScoreDataHandler.h"
#include "../include/EventSystem.h"
#include "../include/EventTyper.h"
#include "../include/NFControlsManager.h"
void BSScoreRewardItem::decodePacket... |
9e062b22161717076ae1155aa39fe8dd26edd8d9 | b944e591878823545e77a334c4f19cce2214d271 | /Module_2/5_2fin.cpp | 249fc205b9c491cb92458260e880c9038cad56ed | [] | no_license | HustonMmmavr/Algoritms | 697df810f34cf0d27d118e8086beccbf004a6a31 | 3d51de2394a506e3e976e72fc54cb43e759764c4 | refs/heads/master | 2021-01-21T16:05:36.263191 | 2017-05-20T14:54:50 | 2017-05-20T14:54:50 | 91,874,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,159 | cpp | 5_2fin.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#include <list>
#include <vector>
using namespace std;
#define MEMORY_STEP 2
typedef long sizeT;
//////////////////////////////////////////////////////////////////////////
// Exception
class Exception
{
char message[1024];
public:
... |
d3247e51caebe634fa77b0f38a35587af4a81fec | 0103454b52923519a02260ade79ded03d345efa9 | /driver/port.build/module.scipy.sparse.dok.cpp | 333bc323082b9e9b9f44de37482b05be2f9fb366 | [] | no_license | podema/echo3d | 8c7722a942c187a1d9ee01fe3120439cdce7dd6b | 42af02f01d56c49f0616289b1f601bd1e8dbc643 | refs/heads/master | 2016-09-06T16:22:13.043969 | 2015-03-24T10:39:19 | 2015-03-24T10:39:19 | 32,747,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417,804 | cpp | module.scipy.sparse.dok.cpp | // Generated code for Python source for module 'scipy.sparse.dok'
// created by Nuitka version 0.5.5.3
// This code is in part copyright 2014 Kay Hayen.
//
// 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 ... |
384b3a81737440ef5b998877711e1398dbdbbfae | 20ca04aa81670212abaace11ead8906033bbcfc5 | /cpp/Euler2.cpp | 89839f5d74ca529614f38f56b4e19b070243dece | [] | no_license | Rahovec/TU_1kurs | 7e8bd1785c3d33e8b7581393c41f615a7d4a7640 | 02e91cec41d1c4615dc0e724f9526682ce1f0f64 | refs/heads/master | 2022-01-19T23:02:53.545189 | 2019-05-09T19:02:51 | 2019-05-09T19:02:51 | 108,681,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | Euler2.cpp | /*Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
Answ... |
5ae79b35734946dff306202efab4b485fdb64d71 | e38c357a31a1905370a03c8bf1ec791b6b171ea8 | /metody-numeryczne/cwiczenia-9/cwiczenia-9.cpp | 4622b1cc841d23cecbe41fc4fcf85c58b5b298dd | [
"MIT"
] | permissive | YaYanush/software-engineering | afeaaf8d68e7e2356a74614a7568e3085b9f0d3d | 30b5c3431a9034bf5850bf6a4992984027aeaed1 | refs/heads/master | 2023-04-13T19:16:46.535782 | 2021-05-05T19:39:47 | 2021-05-05T19:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | cpp | cwiczenia-9.cpp | #include <iostream>
#include "LCG_generator.h"
#include <vector>
#include <algorithm>
#include <numeric>
int main() {
LCG_generator gen(7);
std::vector<double> random_nums;
for (int i = 0; i < 10000; i++)
random_nums.push_back(gen.random());
//for (const auto& num : random_nums)
// std::cout << num << " ";
s... |
6c582752fa7c1df6a342504893c7d2473ddefbaf | a52f9f1165a97a161e371e5d2c72fdd61593341f | /external/pcl/include/pcl/Allocator.h | d0f79103edb64675ce3c81f65db1d5dcd840447d | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"Zlib",
"MIT"
] | permissive | AstrocatApp/AstrocatApp | 3c27d7b1c1413dbc531f8ed973da3d3d525f59ff | 0b3b33861260ed495bfcbd4c8601ab82ad247d37 | refs/heads/master | 2023-08-12T01:07:57.961008 | 2021-05-25T05:15:24 | 2021-05-25T05:15:24 | 335,548,027 | 2 | 1 | MIT | 2021-10-07T05:15:50 | 2021-02-03T07:53:32 | C++ | UTF-8 | C++ | false | false | 14,140 | h | Allocator.h | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.7
// ----------------------------------------------------------------------------
// pcl/Allocator.h - Released 2020-12-17T15:46:29Z
// --------------------------... |
57ed86a47fa64a9ccf8148062e3021ed70be7b06 | 45457cf6c730af6f10b985fb2098c6ab949d9873 | /old_core/WaveSynth.cpp | ea7fe1b1aaaeaa06997012832b104aa616db4632 | [] | no_license | abresee/note | 2691404bd7c9ae9679d2aa9bbd5eb18020018f6f | 3e249bde98dc0441bcbde3448e0f339d5b5706eb | refs/heads/master | 2016-09-05T16:29:56.052049 | 2014-01-23T23:05:51 | 2014-01-23T23:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,801 | cpp | WaveSynth.cpp | #include <cmath>
#include <numeric>
#include <iostream>
#include "WaveSynth.h"
//////////////////////////////
// Wave Inner Class Definition
//////////////////////////////
WaveSynth::Wave::Wave():
functor_(static_cast<double(*)(double)>(std::sin)){
}
WaveSynth::Wave::Wave(const Functor& functor_initializer):
f... |
f378011aff9f06181907259fb82ded7308f76163 | c5c217f252906de5d4e7bbff8a2f15a9629183bf | /src/main.cpp | 42b60723bbce40b367db767f70282d01b558ac09 | [
"MIT"
] | permissive | JolifantoBambla/Auto-Vk-Starter | d875f2cbdd83e5b7ac50d2562e06e973ea1652c6 | 05fae0fdd39ad341616785b2a2d384a825d360b8 | refs/heads/main | 2023-07-17T07:00:31.970191 | 2021-09-07T16:09:57 | 2021-09-07T16:09:57 | 326,689,793 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,369 | cpp | main.cpp | #include <iostream>
#include <vector>
#include "avk/avk.hpp"
class my_root : public avk::root {
public:
vk::Instance vulkan_instance() {
if (!mInstance) {
mInstance = vk::createInstanceUnique(vk::InstanceCreateInfo{});
}
return mInstance.get();
}
vk::PhysicalDevice &physical_device() overrid... |
66e170f25e460f9e3785f9ea0b40ea4d2955c811 | bba8ad0d783119c7d9a413b4ead7654ed074fc2a | /Volume009/00913 - Joana and the Odd Numbers.cpp | 44873c4b7e23c68b899705d38172314ad79672e3 | [] | no_license | m00p1ng/UVa-problem | 08d1298225a7d2bffef3e99ff33fd2f940d7924c | 9517304685e6681e7027335dbbea20f643d5fc37 | refs/heads/master | 2023-04-04T10:51:12.141260 | 2021-04-16T23:08:27 | 2021-04-16T23:08:27 | 81,700,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | cpp | 00913 - Joana and the Odd Numbers.cpp | #include <cstdio>
int main() {
long long n, l;
while(scanf("%lld", &n) == 1) {
l = (n+1)/2;
printf("%lld\n", 6*l*l-9);
}
}
|
9587894fc9afcdc2029e68f041abab465b718f5f | 8448cec98fe40583bd5d0198feba6a3132acc592 | /ACMICPC/울타리_1047_골.cpp | b9dae5742e71d3f6f0d51d570588d88e5e3c9daf | [] | no_license | Eunno-An/ACMICPC_boj | 69b4ec4dd1d4c9bd1b63155de3340c05abcc1a20 | 8ca889be49d521c25679497f669f94dcb2fb9733 | refs/heads/master | 2023-08-04T08:52:30.571753 | 2021-09-06T10:45:26 | 2021-09-06T10:45:26 | 331,949,296 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 2,025 | cpp | 울타리_1047_골.cpp |
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <climits>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include<iomanip>
using namespace std;
/*
- endl 대신 '\n' 사용하기
- cin... |
429df97f580a81caf59795ba1683c73ae58119fa | bd10600273b3c70a30fc03a5bd33da85754702bb | /packages/vpa2box/src/Search.inc | 9930790f49ed73f74ec3d7256b4a178e9c3e1186 | [] | no_license | ICCAT/software | 94dafdf918827b915d30bb12c77f28653481cfe8 | 61da036718ad4bab8f710e3407e8d3f78fa6d9f9 | refs/heads/master | 2020-04-15T11:43:12.835189 | 2019-04-04T14:53:49 | 2019-04-04T14:53:49 | 42,433,813 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 24,344 | inc | Search.inc | !---------------------------------------------------------------
SUBROUTINE ESTIMATE2 (p,step,nop,func,max,iprint,stopcr,nloop,iquad,simp,var,functn,ifault)
!---------------------------------------------------------------
! A PROGRAM FOR FUNCTION MINIMIZATION USING THE SIMPLEX METHOD.
! The minimum fo... |
63b73d62ef776cd14b8b5f285bfc0d4677315b4d | 81e04bcb675b9b268042b989466c04061dba5dde | /hardware/samsung_slsi/slsiap/camera/NXCameraHWInterface2.cpp | a4d816dc215e6c989a5733017cab7e4dfd64e453 | [] | no_license | ddanggzi/3d_glass | e4f0c1191b1e6d269d31e6d565ba2acbc6f6758f | 8f4dc0034521aded944fd8c97698f036bc0bca73 | refs/heads/master | 2022-11-29T22:43:36.822017 | 2017-02-22T01:50:11 | 2017-02-22T01:50:11 | 78,256,189 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 15,985 | cpp | NXCameraHWInterface2.cpp | #define LOG_TAG "NexellCameraHAL2"
#include <utils/Log.h>
#include <ion/ion.h>
#include <android-nxp-v4l2.h>
#include <nxp-v4l2.h>
#include <gralloc_priv.h>
#include <NXCpu.h>
#include <NXTrace.h>
#include "NXStreamThread.h"
#include "NXCameraHWInterface2.h"
// #define TRACE
#ifdef TRACE
#define trace() NXTrace t(__f... |
f69d4cdfc57ae1c0eabc9bb9e47f5ca44cada2f6 | e1951b7f7a739b96e961797f8849e58dcb41f00d | /falcon/tuple/to_tuple_pointer.hpp | 11b749072d7981050ffb516bf421f65d5c7d891c | [
"MIT"
] | permissive | jonathanpoelen/falcon | fcf2a92441bb2a7fc0c025ff25a197d24611da71 | 5b60a39787eedf15b801d83384193a05efd41a89 | refs/heads/master | 2021-01-17T10:21:17.492484 | 2016-03-27T23:28:50 | 2016-03-27T23:28:50 | 6,459,776 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | hpp | to_tuple_pointer.hpp | #ifndef FALCON_TUPLE_TO_TUPLE_POINTER_HPP
#define FALCON_TUPLE_TO_TUPLE_POINTER_HPP
#include <falcon/tuple/parameter_index.hpp>
#include <falcon/tuple/build_tuple_pointer.hpp>
# include <tuple>
namespace falcon {
using std::get;
/// Pointer tuple element
template <typename T, std::size_t... Indexes>
typename build... |
60f217c53e4bef07ef08df4955edab5218803837 | 1a283ec7b87dc77b86637baf9d99382127f42059 | /HDU_1062.cpp | cad1c741115e216084dff854f22a9a5a067dd27c | [] | no_license | he1l0world/Acm-trainning | c185ebae4498ce07529be044ec994d2c2826094b | acd6273eade71d50455e0c579744655cfa0a0851 | refs/heads/master | 2021-09-20T21:52:40.713255 | 2018-08-15T23:10:10 | 2018-08-15T23:10:10 | 111,166,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | HDU_1062.cpp | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
void rev(int begin , int end , string& a)
{
//cout << begin << " " << end << endl;
for(int i = begin,j = end; i <= j ; ++i , --j)
swap(a.at(i), a.at(j));
}
int main ()
{
int n;
string str;
while(cin >> n)
{
cin.get();
... |
deacb5067c1217dd9c93b3ab8e3ddb9f0f40cfe7 | af8b8a5caef751343f76a8f3bc5b297da6e518c9 | /ClassA.cpp | 3381e977ab898e6ddabea6d0725a2ba4e33e8c32 | [] | no_license | Matery1/Git-Workshop | 296adc5c7d69cf2e9a42c42655a0a795b1511378 | 53d6e1d570a29b7227cc8159250386187d691a80 | refs/heads/master | 2023-01-19T19:36:32.484684 | 2020-11-30T10:59:49 | 2020-11-30T10:59:49 | 315,321,826 | 0 | 0 | null | 2020-11-30T10:52:24 | 2020-11-23T13:20:11 | C++ | UTF-8 | C++ | false | false | 151 | cpp | ClassA.cpp | #include "ClassA.h"
#include <iostream>
ClassA::ClassA()
{
}
void ClassA::printName()
{
std::cout << "My name is Class A, hello you." << std::endl;
} |
aa3be730976d0c2985dfc7dd27a0c58a9d1b7aea | 5d6c9f936d1b78142cd38cd227ba68fc061da444 | /core/clientservice/csvideoprocess.cpp | 04241a47fbf4670e25ebad5563e00a517b3968c4 | [] | no_license | chenxz2016/wm | b02a66320543baa4214538e9b8029a91b7e5a565 | 1e50adf660a779e768a0d78745ecbab75a94deab | refs/heads/master | 2020-03-20T03:37:04.056810 | 2018-07-10T13:06:02 | 2018-07-10T13:06:02 | 137,152,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,593 | cpp | csvideoprocess.cpp | #include "csvideoprocess.h"
#include "clientservice.h"
#include "wmp_video.h"
class CSVideoProcessPrivate
{
public:
CSVideoProcessPrivate(CSVideoProcess *parent)
:p(parent)
,timeout(5000)
{}
void init()
{
p->setUniqueID(WMP_PROTO_VIDEO_ID);
}
CSVideoPr... |
6ca5298658a85914a7d2c7364e38b91559e27fcb | a6ef9674622f6e7c46ac31f4cfffbd568ff4f97e | /SteadyState_Rectangular_0_dt2t10000/processor2/6000/omega | fc2d17af00cea17facd7d2cb3561b8583a8082dc | [] | no_license | jhargun/FluidIP | 4c3f6d9a87ed8ce24ed692a9bf939a9ca04222f6 | d6e0f20c1f5e1f86c160497be9d632e6d17abbf7 | refs/heads/master | 2022-08-26T02:34:26.327956 | 2020-05-26T22:33:29 | 2020-05-26T22:33:29 | 266,886,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425,946 | omega | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
f56c5157a5cd8ba1d9be1e81436893ec5cf119de | 2456485fe469ab60f35198cf05cd5031c6feb4a4 | /algorithms/Return the Highest and Lowest Numbers.cpp | f4e3d31d2ad020d3bed6bcd6ef1c19dbb4e4251c | [] | no_license | namchokGithub/cplusplus-languages | 6fa82da776adeac3aacee7241468c391cc3a19d4 | 023a0c5ad2b5b71b7b49b332f136f4218dfd7bc8 | refs/heads/master | 2020-09-04T22:15:16.489711 | 2020-01-29T11:12:56 | 2020-01-29T11:12:56 | 219,906,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | Return the Highest and Lowest Numbers.cpp | /*
* File name: Return the Highest and Lowest Numbers
* Author: Namechok Singhachai
* Date create: 2019-11-5
*/
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
std::string highLow(std::string str) {
}
int main(int argc, char const *argv[])
{
cout << "There will always be at lea... |
cf98ebe88ab9df0cf029b66b634d6d3f02f63054 | 929eee8ed821e952aa4781abd414649ff6b61984 | /engine/diffuseshader.cpp | 43aaebf12a6c3103b102ccbf9df92c50b3ea84cd | [
"BSD-2-Clause"
] | permissive | comaralex/Chess2k17 | dfdd01a0ee859fee15af6569061a4811e398782c | 0c90ad1ec6416d4881932ca6588551d76ae3b8ac | refs/heads/master | 2021-01-21T10:48:53.670540 | 2020-07-24T14:26:36 | 2020-07-24T14:26:36 | 91,707,885 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | diffuseshader.cpp | #include "diffuseshader.h"
DiffuseShader::DiffuseShader()
: black::ShaderProgram()
{
auto& rm = black::ResourceManager::getInstance();
create(rm.get<black::Shader>("shaders/diffuse.vert"),
rm.get<black::Shader>("shaders/diffuse.frag"));
}
|
2b8c5cf1054288ef59edf6a09a1df05926525be2 | 00d79988701553bcfc84837d7335e111d1413ae3 | /Personal_projects_C++/Pokemon_TURN!/resources/algo.h | abdc2f7a056187b4310f8988c5183b3f370c2540 | [] | no_license | type-coder-engineer/Personnal-projects | 94e56be189f291a029bd5a814ca311caad5d39c5 | e67fec2767ebf429acf71aa960f2afc4a4e9c272 | refs/heads/master | 2020-04-12T07:20:44.786527 | 2019-01-02T07:31:31 | 2019-01-02T07:31:31 | 62,729,183 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 263 | h | algo.h | #ifndef ALGO_H
#define ALGO_H
#include <iostream>
#include <cmath>
class fun
{
public:
const int H;
const int L;
fun(int row, int column);
~fun() = default;
void init();
bool end();
int **map;
};
#endif // ALGO_H
|
5d0efc64146503f40aaac37ab47003ba9e4597c2 | ea2a37d8fb1423c984efb3aacbe10a16584ec70c | /addition.cpp | c4ce49869b52871d7baa6d28167b70deee01c5d3 | [] | no_license | Nazeer-Marri/BSIT-M | c03e22bdbf73a9cf9bb54b9217c7d2b453fd63f0 | 22304b11a5b994791dd7d1928527d16d19806a6d | refs/heads/main | 2023-04-29T05:11:16.936975 | 2021-05-07T03:49:28 | 2021-05-07T03:49:28 | 348,834,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | addition.cpp | #include<stdio.h>
int main()
{
int arr[]={1,6,0,3,8,9,0,2};
int i,count=0;
int n=8;
for(i=0;i<n;i++)
{
if(arr[i]>0){
arr[count++]=arr[i];
}
while(count<n){
arr[count++]=0;
}
for(i=0;i<n;i++){
}
printf(" %d ",arr);
}
return 0;
}
//int a[3][3],b[3][3],c[3][3],i,j;
... |
564db32808e8eada78d2f36f7b3909a2a514712e | 8c82f303ec7f26ff886ac26fc173750cfaf6074d | /thirds/qtcss/include/qtstylesheet.h | 9e492d466d886a79bcbc0f7f5115aeea546456b2 | [] | no_license | ruoxianSun/nestpp | c21a2ddee25ed60de6b3df2b671692bf949f91a3 | 5de0d1ff9e1df76e97c2db4a8370dfaf9c47f0e0 | refs/heads/master | 2022-11-27T11:47:01.822275 | 2020-07-22T02:55:49 | 2020-07-22T02:55:49 | 268,223,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,198 | h | qtstylesheet.h | #ifndef QTSTYLESHEET_H
#define QTSTYLESHEET_H
#include <QtWidgets/QStyle>
#include <qtcssparser.h>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProxyStyle>
#include <QtWidgets/QWidget>
#include <QtCore/QSet>
#include <QtCore/QObject>
enum PseudoElement {
PseudoElement_None,
PseudoElement_DownArro... |
00659bb3f80c7f40758b5fc38e8ca8572c61c7f9 | eb779e991ad97917a31e7e63c03d7ca5b8b5c34b | /1093 - Ghajini.cpp | 9005a2f265e3ef52503cf7f77b10970e2cf9cbde | [] | no_license | NaimHasanPappu/LightOJ | 48c6e51503080573c5f6be47a987e9a25bf3c5e8 | 8979baad975d3f2f0f0d8604ba370c4c40f92b59 | refs/heads/master | 2021-06-25T04:03:53.785018 | 2020-10-26T23:49:16 | 2020-10-26T23:49:16 | 142,655,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | 1093 - Ghajini.cpp | #include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define ulli unsigned long long int
#define Pi 3.14159265358979323846264338327950288419716939937510
int main(){
int T;
cin>>T;
for(int t=0; t<T; t++){
int n,d;
cin>>n>>d;
... |
44d30f68c1f359bff28163889495694302f5ab48 | dcb7d734f14e5ca341016e0482153219978f3617 | /src/python/cgp2d/cells/py_cell1.hxx | cadd6a1bb55d713705067f0d8aa9897936b699f9 | [] | no_license | DerThorsten/cgp2d | c029c2c55da563ee7f36783fa979be61972134d5 | deb5e6e60343db4eafa7a7f3e66e3b93cc1210cc | refs/heads/master | 2021-06-19T19:25:43.597532 | 2016-12-24T13:42:18 | 2016-12-24T13:42:18 | 13,634,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45 | hxx | py_cell1.hxx |
namespace cgp2d{
void export_cell1();
}
|
bfc22a6207e8cf679faf678a1e47843edc37eaba | c254f27c6546bf673af980ca20b98065f70d2af0 | /Tree/666-Path Sum IV/path_sum_iv.cpp | 60f22e570b7c5a71aecf7ca4daebd67f418aa78b | [] | no_license | JiaqiHe/Leetcode | d197f0fe5a57f44b83330c8a1c50896029321328 | f62bf39795321114dec782f33bddd94388388d11 | refs/heads/master | 2021-07-17T01:19:40.410619 | 2018-11-20T23:53:13 | 2018-11-20T23:53:13 | 106,220,325 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | path_sum_iv.cpp | class Solution {
public:
void dfs(int dict[], int &res, int cur_res, int i){
cur_res += dict[i];
if(i>7 || (dict[2*i] == -1 && dict[2*i+1] == -1)){
res += cur_res;
cout<<res<<endl;
return;
}
if(dict[2*i] != -1) dfs(dict, res, cur_res, 2*i);
... |
848959cd6ab60da9ac4991499fb71ea91549eb44 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /L1Trigger/DTSectorCollector/src/DTSectCollPhCand.cc | d6b95d635f6c90c9b8ed58263df7ce7c5c64c69b | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,353 | cc | DTSectCollPhCand.cc | //-------------------------------------------------
//
// Class: DTSectCollPhCand.cpp
//
// Description: A Sector Collector Phi Candidate
//
//
// Author List:
// S.Marcellini D.Bonacorsi
// Modifications:
// 11/06 C. Battilana: Class moved from Cand to PhCand
//
//
//---------------------------------------... |
28827f506b6920db2ca38bc625fb3669ca7eeaa3 | 40b0eb60a03e6e7d44655406aa72b84cd0fa62d6 | /BACKTRACKING ON MATRIX.cpp | 0a83275e92ce1509e41cbc6295b360f710a09620 | [] | no_license | welersonMelo/Algorithm-Design-Projects | 017b21f047d37bad2307d737eb7c8bcf144a172d | 5934ea95cbc5b9034d04ca53075dd7889fe17119 | refs/heads/master | 2021-05-08T08:24:35.232113 | 2020-02-27T13:27:53 | 2020-02-27T13:27:53 | 107,026,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | cpp | BACKTRACKING ON MATRIX.cpp | /*
Given C matrix N X M with walls(1), free spaces(0) and a start space (X) find the path to get out of the matrix and print it
Solution: Using a backtracking algortihm based on flood fill graph algorithm
IN:
C
N M
Matrix ...
2
5 4
1 1 1 1 1
1 0 0 0 1
1 0 X 0 1
1 1 0 1 1
3 4
1 1 1
1 X ... |
deb67537589c8175fe0a023d5cf4e130ffa09ac3 | b62f9e40297b9ba7fac22b835d25f5bf4608372a | /Benda.h | fc9eb9a16f46b4df9483a00972272aa910fed1c0 | [] | no_license | thareqmy/ArkavQuarium | 62196859e1c768ed804affdb917d2922ff29767a | 8c674296b58b901466539f77414dc2f93e2add25 | refs/heads/master | 2021-04-04T05:10:42.530785 | 2018-03-15T16:04:20 | 2018-03-15T16:04:20 | 124,706,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | h | Benda.h | #ifndef BENDA_H
#define BENDA_H
#include "
#include <iostream>
using namespace std;
class Benda {
private:
int x;
int y;
int speed;
public:
Benda(int,int,int);
virtual ~Benda();
void setX(int);
void setY(int);
void setSpeed(int);
void getX... |
607213284d609de7dc91fa7070b055bb780bd0e2 | 7a9220b2f1366389bf502158a9bbea06195af988 | /Autometer.ino | dc1610ca0a0ec2ddfdec1fcc41bf337444851126 | [] | no_license | faquin/Autometer | 97ba567ce9bc80e70d420b0fe35bd5cb566d76e4 | 3fe8aaf0363ef8adbab906df8ffe54fbff553e56 | refs/heads/master | 2021-01-11T14:43:52.743532 | 2017-01-31T22:23:34 | 2017-01-31T22:23:34 | 80,202,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,380 | ino | Autometer.ino | #include <RBD_Timer.h>
#include <RBD_Button.h>
#include <SoftwareSerial.h>
#include <TimerOne.h>
#include <avr/sleep.h>
/*
Version10 : Same as Version 6 for Arduino Micro.
The user press the side button to increment a timer value. When the rotating handle is down, the counter starts to decrease.
When it reaches... |
e6258df5013455d04699d30ef1a523ef3d88bda4 | 4a31e71683bf15025327d7fc84a6165a9db5c4ee | /src/task2.cpp | 5251c3ae74347b19c8a6f32cb52f3209610682d2 | [] | no_license | ShuvalovaNastya/C-lab-2 | 2022444913146a6dc13ca266b6b7680801c1ad60 | eca5072b072fe6c3913d201201a5aacdb8e58da9 | refs/heads/master | 2020-04-25T23:25:06.594689 | 2019-02-28T16:48:48 | 2019-02-28T16:48:48 | 173,144,874 | 0 | 0 | null | 2019-02-28T16:15:35 | 2019-02-28T16:15:34 | null | UTF-8 | C++ | false | false | 145 | cpp | task2.cpp | #include "task2.h"
int turn(int value, int secret)
{
if (value > secret)
return 1;
else if (value < secret)
return -1;
else return 0;
} |
86061cbd07e117023854e63c20486a82c25ecde1 | d54f7d0b8e4eadb53fb2773fe3bde9bb2a440c66 | /include/clpp/device_type.hpp | f09a68c3a14e57a15ee0b0ad55ac3c4bbb760d30 | [
"MIT"
] | permissive | Robbepop/clpp | 62725d85e606c6f5d6fe70e4b0ad5dde517a5946 | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | refs/heads/master | 2021-01-10T15:27:14.662314 | 2015-12-11T15:15:03 | 2015-12-11T15:15:03 | 36,579,333 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | hpp | device_type.hpp | #ifndef CLPP_DEVICE_TYPE_H
#define CLPP_DEVICE_TYPE_H
#include "clpp/detail/common.hpp"
namespace cl {
enum class DeviceType : cl_device_type {
#if defined(CL_VERSION_1_2)
custom = CL_DEVICE_TYPE_CUSTOM,
#endif
defaultType = CL_DEVICE_TYPE_DEFAULT,
cpu = CL_DEVICE_TYPE_CPU,
gpu = CL_DEV... |
34b8188019e880e268f73cf3612b08360cf149e1 | 08f03d6a390bccfb2052870f87693e3fdb4c6ca0 | /DeferredTasksExecutor.cpp | ff12d279947ed320826a13b29b40e1b4b5823f6e | [] | no_license | alexandr8s/DeferredTasks | 4dc1dc1c3ccc23358a3968dbd6c830a2a783e8cc | fa22c382290ec896562319396c22f45fb0fed56c | refs/heads/master | 2020-03-22T14:36:36.696048 | 2018-07-17T17:25:33 | 2018-07-17T17:25:33 | 140,192,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | cpp | DeferredTasksExecutor.cpp | #include "DeferredTasksExecutor.h"
template <class T>
DeferredTasksExecutor<T>::DeferredTasksExecutor(int thread_count)
{
cond_ready = false;
destroy_threads = false;
for (int i = 0; i < thread_count; i++)
{
threads.emplace_back(std::thread(&DeferredTasksExecutor::worker, this));
}
}
templ... |
781f715d6dc30479375769f71f8ee6484378881b | 40f6f140567a45f594991602c20d02ffa602206c | /nhn_next_IocpServer/IocpNetLib/Player.cpp | dc6d6ac1d952c58e8038b7c715798e8aa336e178 | [
"MIT"
] | permissive | sonyeo/com2us_cppNetStudy_work | 0f169c0dd66b81d4ab1ffcb3b27659c2d67a4ad7 | 992d4ecfe66b74e6547d108f570abb58c4294015 | refs/heads/master | 2020-12-13T05:50:58.021219 | 2019-10-29T05:53:29 | 2019-10-29T05:53:29 | 234,328,099 | 1 | 0 | MIT | 2020-01-16T13:38:16 | 2020-01-16T13:38:15 | null | UHC | C++ | false | false | 2,548 | cpp | Player.cpp | #include "ClientSession.h"
#include "Player.h"
Player::Player(ClientSession* session) : mSession(session)
{
PlayerReset();
}
Player::~Player()
{
}
void Player::PlayerReset()
{
FastSpinlockGuard criticalSection(mPlayerLock);
memset(mPlayerName, 0, sizeof(mPlayerName));
memset(mComment, 0, sizeof... |
e2a70dfca1d32f439425d0a2143a919256eed237 | 5fa325e0dd6d12d8a2fbaa01c792c0130c33cc5a | /src/runtime.cc | af7c9bb0009b60b20965ec09ec242990bf00b96a | [
"MIT"
] | permissive | celerity/celerity-runtime | 7fbc830cc8722d92a24188be99f6d6416cf4532c | 0a282f598b3611cff9fc65c37c8bd0cd5efa5a90 | refs/heads/master | 2023-09-03T13:04:00.002793 | 2023-08-28T10:04:32 | 2023-08-29T13:44:21 | 197,273,903 | 123 | 16 | MIT | 2023-09-14T11:04:28 | 2019-07-16T22:03:07 | C++ | UTF-8 | C++ | false | false | 10,053 | cc | runtime.cc | #include "runtime.h"
#include <queue>
#include <string>
#include <unordered_map>
#ifdef _MSC_VER
#include <process.h>
#else
#include <unistd.h>
#endif
#include <mpi.h>
#if CELERITY_USE_MIMALLOC
// override default new/delete operators to use the mimalloc memory allocator
#include <mimalloc-new-delete.h>
#endif
#in... |
6daaf3e4fc8fcac0e36827cea814f77e91849c0a | cc1b335c0c45c07d50329ebf1fa4fbf45ce6e813 | /magicfilter/src/main/jni/bitmap/JniBitmap.h | 54fff9ce03cf5e393bfa9001e0114842eec31da7 | [
"MIT"
] | permissive | Pluckypan/JNIApp | 5a1f20508b7859114447d3cca3164ffe990ebee1 | 91b0b6641f9df06fe3952e28730524ee0bcd70c1 | refs/heads/master | 2021-04-15T15:38:36.485111 | 2019-05-08T15:04:09 | 2019-05-08T15:04:09 | 126,438,512 | 0 | 0 | MIT | 2019-07-19T08:45:48 | 2018-03-23T05:42:14 | Java | UTF-8 | C++ | false | false | 294 | h | JniBitmap.h | #ifndef _JNIBITMAP_H_
#define _JNIBITMAP_H_
#include <android/bitmap.h>
typedef struct
{
uint8_t alpha, red, green, blue;
} ARGB;
class JniBitmap
{
public:
uint32_t* _storedBitmapPixels;
AndroidBitmapInfo _bitmapInfo;
JniBitmap()
{
_storedBitmapPixels = NULL;
}
};
#endif
|
99dcb9e22cfa8d66ce9af8b1f680df289dcde908 | 41295dbf9a61867d61e219cf0c99c159a942898e | /src_bk/Tracker.cpp | 4cdcc185287ff7e97734b146df98459eddbf07f2 | [] | no_license | eisneim/matchMovingLite | 46e3a5b7cf06fdfa76ee9c92a84ecf98fc75c0f8 | 3100ae3a9d77ba93bf2cb120043d3051e7ab73e9 | refs/heads/master | 2021-01-19T02:34:06.399934 | 2016-08-05T06:08:18 | 2016-08-05T06:08:18 | 63,653,155 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,472 | cpp | Tracker.cpp | #include "Tracker.h"
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/calib3d.hpp>
#include <math.h> // for sqrt, pow
using namespace std;
using namespace cv;
static const vector<string> ... |
714a8e5eab725371d7e2382f9242f2d9b358fe5f | b9352d382c5d0e2772f0a6cfb9802495cd893c10 | /src/AefLib/Linux/aefTcpServer.cpp | e90e01960651276fae569504269e69c83118f070 | [] | no_license | yackey/AEF-CI | 2b4cedc38cfe966b2993639aa5034ba2ad95e9fc | 9ae6ef30e3a0406394f13a1f7de268c8e5357786 | refs/heads/master | 2021-01-25T14:56:02.958430 | 2018-04-23T19:09:08 | 2018-04-23T19:09:08 | 123,736,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,686 | cpp | aefTcpServer.cpp | /****************************************************************************/
/*!
** \file aefLinuxTcpServer.cpp
** \brief VxWorks TCP Server class
**
** The routines in this file implement TCP server class/task to handle
** multiple client connections. A task will be created to listen for
** inb... |
e056a8b445ef3eacab3eee294aa9b639a2c28751 | fb0f9abad373cd635c2635bbdf491ea0f32da5ff | /src/coreclr/vm/classcompat.h | 2320318c954fbc5a1123f7be2ea75128844703d6 | [
"MIT"
] | permissive | dotnet/runtime | f6fd23936752e202f8e4d6d94f3a4f3b0e77f58f | 47bb554d298e1e34c4e3895d7731e18ad1c47d02 | refs/heads/main | 2023-09-03T15:35:46.493337 | 2023-09-03T08:13:23 | 2023-09-03T08:13:23 | 210,716,005 | 13,765 | 5,179 | MIT | 2023-09-14T21:58:52 | 2019-09-24T23:36:39 | C# | UTF-8 | C++ | false | false | 30,041 | h | classcompat.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ===========================================================================
// File: CLASS.H
#ifndef CLASSCOMPAT_H
#define CLASSCOMPAT_H
#ifdef FEATURE_COMINTEROP
/*
* Include... |
9bff634eb97001b8da60d030e4c2be43955e2591 | 0782f9e1df8b7eb0e0e9be12b0dd596c5a117887 | /src/Periodico.cpp | e54127c6882bc4e1fae7598dd99d57847276f7c7 | [] | no_license | gtroja/qjgo | 4084642c23aa6af3c8ae661cad0abb5930159d24 | e0b7b71be85c84b75fc8977f11e8ea401ebb4f4b | refs/heads/master | 2020-07-01T15:09:21.791333 | 2019-10-02T04:06:50 | 2019-10-02T04:06:50 | 74,335,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | Periodico.cpp | #include <stdlib.h>
#include "../include/Periodico.h"
Periodico::Periodico(){
time = NULL;
criado = 0;
ultimaVezAtualizado = 0;
}
void Periodico::atualiza(){
if(time != NULL)
ultimaVezAtualizado = *time;
}
void Periodico::setTime(unsigned int* t){
time = t;
criado = *time;
ultimaVezAtualizado = *time;
d(... |
c182ef40ffa8015e1f35c47874b61aafead2e156 | ce48dee9646cdd2cec100cef97abc68a8a36f5b9 | /cMotions.h | ba1b3619eb9edd337af9f79605ab33dcaa012bae | [] | no_license | srwing/starfield | af0b73a57c6840b44e68e356d7cb67688f9521b0 | 844d79ae6f39d7b7eb9c27cc6e4baa5d17639937 | refs/heads/main | 2023-03-14T03:36:20.212846 | 2021-02-28T20:26:05 | 2021-02-28T20:26:05 | 342,710,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,100 | h | cMotions.h | #ifndef CMOTIONS
#define CMOTIONS
//#include <windows.h>
#include <SDL/SDL_opengl.h>
#include <GL/glut.h>
#include <SDL/sdl.h>
#include <vector>
#include <math.h>
#include "Vec3.h"
#include "camera.h"
#include "cresponse.h"
extern CCamera camera;
extern GLboolean getResponse;
extern Vec3 stopPosition, startPosition;... |
6dcf03dedbe85f38ca164e1226dc9106b2db5e1a | 65233d7fa4e2f204e4f66863ae707268677dffb6 | /main.cpp | eff4496145d0746fc09e2a594c384be2d24d60ab | [] | no_license | mguillemot/kamaku.prototype | 48ab4506b264296190402fc4a83d6bb33d7cbd52 | c01f52f16539e3138d915c3f3fbd7d35bce59eac | refs/heads/master | 2021-01-01T16:34:33.169958 | 2007-04-11T12:47:42 | 2007-04-11T12:47:42 | 2,226,828 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 20,635 | cpp | main.cpp | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <stdexcept>
#include <string>
#include <sstream>
#include <list>
#include "bullet.h"
#include "SDL.h"
#include "SDL_ttf.h"
#include "SDL_mixer.h"
#include "settings.h"
#include "timer.h"
#include "sprite.h"
#include "s... |
b1d5c2cd9482bfacf17bfb8bac473f18d1722c9b | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-resource-groups/source/model/GroupConfigurationItem.cpp | fec4817ab7ebbe9c67d4e1befa96e01ea5660b35 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,868 | cpp | GroupConfigurationItem.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/resource-groups/model/GroupConfigurationItem.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namesp... |
b7a65ae9b24e31aae0dcc4594a71c2c222c0dcd1 | 513ce92db3c9099915e0a72413556ba557276598 | /Medium/smallest_difference.cpp | 12910c9750f8ee9b89ca1cc8f3c418c74c525006 | [] | no_license | nabanitabag/Algoexpert-solutions-in-Cpp | 0665236120e5ee0904b1c94c1e00324abc0761d8 | 503265574f72ddc2f4314aefa12effae104885a3 | refs/heads/master | 2023-04-09T15:57:59.802201 | 2021-04-25T06:18:09 | 2021-04-25T06:18:09 | 345,366,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74 | cpp | smallest_difference.cpp | vector<int> smallestDifference(vector<int> first, vector<int> second){
}
|
2171607deb5e025ab06a1a16440fae198642d77b | c1347ed26daebadb39b6c471588d04d068a7a661 | /UminekoPort/src/graphics/spritebatch.h | c070a4e78e06156951b02e0ed78925880d7ebfdc | [
"MIT"
] | permissive | seleara/UminekoPort | ba07165ff8127d4eee756c35d8932f1d12941f93 | da0c59a7462dba72e26146a8e2beb030984c0ad2 | refs/heads/master | 2020-03-11T16:07:49.451619 | 2019-01-05T00:35:06 | 2019-01-05T00:35:06 | 130,106,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | h | spritebatch.h | #pragma once
#include <vector>
#include "../data/vertexbuffer.h"
#include "texture.h"
struct Sprite;
struct Transform;
class TextureResource;
class SpriteBatch {
public:
void add(const Sprite &sprite, const Transform &transform);
void clear();
void render(const std::string &shaderName = "2d");
size_t size() con... |
d61f5856f3c720da95d542ec83aa8b858de43db9 | e4f93064a729d05ec4ae014038f59347ad191273 | /legacy/thread_RRT.cpp | 55284834687e928498df6bc40e8d09a72372c1f2 | [] | no_license | joschu/surgical | 221c349f8ba4e2c9c636931232821ce320004bac | 5b26795b0cc2cb8ba02e3a4a27d2c0568134d83e | refs/heads/master | 2021-01-17T22:52:12.573487 | 2011-07-19T00:56:31 | 2011-07-19T00:56:31 | 1,912,239 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,946 | cpp | thread_RRT.cpp | #include "thread_RRT.h"
#include <time.h>
Thread_RRT::Thread_RRT()
{
currNodes.reserve(MAX_NUM_NODES);
}
Thread_RRT::~Thread_RRT()
{
}
void Thread_RRT::planPath(const Thread* start, const Thread* goal, vector<Thread_Motion>& movements, vector<Thread*>& intermediateThread)
{
RRT_Node startNode = RRT_Node(s... |
62bed8c226e58ce09715e739ed5425f5af41f816 | ee20b7692d345474b647bfd89ce017582f734026 | /Test_polinom/gtesst.h | 2664c92ffc5b598b028111d667743443cf01652f | [] | no_license | MBarysheva/mp2-lab5-polinom | 7f7a271d70f0c54bb18ecc3a8f3ade508a5efd9b | ad1428d7497e7127fa0da1906a13664cf72d288c | refs/heads/main | 2023-04-24T08:59:49.611717 | 2021-04-26T14:29:06 | 2021-04-26T14:29:06 | 340,631,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,788 | h | gtesst.h | #pragma once
#include<iostream>
#include <string>
using namespace std;
template <class T>
struct TLink
{
T val;
TLink* pNext;
};
struct TMonom
{
double coeff;
int x, y, z;
TMonom(int x_ = 0, int y_ = 0, int z_ = 0, double coeff_ = 1.0);
bool operator < (const TMonom& m)const;
bool operator == (const TMonom& m... |
95bef12a0588e25ab769b40d1d19a6f087b3be8f | e36982e153d30a5a63642af4b407b127423f9521 | /Src/Plugins/org.vci.projectmanager/ProjectManager/NewPrjPage.h | aacfcb8c7801005de3836d79f107b6e86d876b18 | [
"MIT"
] | permissive | ZnWen/Script.NET | 23f9bc5eca42f4d5ea9f3dca578bc9bee9e4fc8b | 6214e00371b3c983ec68e0660b0c708a6d8b81e8 | refs/heads/master | 2023-03-21T10:05:01.210422 | 2017-09-25T15:11:15 | 2017-09-25T15:11:15 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,189 | h | NewPrjPage.h | #if !defined(AFX_NEWPRJPAGE_H__B99FAEF7_24EC_40DF_88E5_3E099C2F5D55__INCLUDED_)
#define AFX_NEWPRJPAGE_H__B99FAEF7_24EC_40DF_88E5_3E099C2F5D55__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NewPrjPage.h : header file
//
#include "kcsidebannerwnd.h"
//////////////////////////////////////////... |
3b2ca67982748e819129526be98486608c5307be | fd4f589282f1d514ddd0cf469b3dea9903aca237 | /9.IsSubsequence.cpp | 812ea0d956a1c1f2ae13da12786e1fed3aee5d4a | [] | no_license | iupriser/JuneLeetCodingChallengeCPP | 00824b06e27ede0833476437c3b3e1b6b54b4bcd | 4174d7c2242dc02063ccbe9863c0fdc5b509fb86 | refs/heads/master | 2022-11-21T09:25:03.002784 | 2020-07-01T07:54:22 | 2020-07-01T07:54:22 | 269,863,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | cpp | 9.IsSubsequence.cpp | class Solution {
public:
bool isSubsequence(string s, string t) {
if(!s.size()) {
return true;
}
int index = 0;
for(int i =0; i< t.size(); ++i){
if(t[i] == s[index]){
index++;
}
if(index >= s.size()){
ret... |
d5869c948bb55b46f306f219dd48d8d5f6dc8b46 | a9158651d4729854ec5b3f6a9da1a88e6599506f | /src/Graphique/MiniProjet/FenetreGL.cc | ab0eba4f9b49e90f478f1e2135be86bdd49d64aa | [] | no_license | Omegagoth/ProjectKaf | a758b57cd808dcd0becaa2eb9bef87a108946b37 | 81f9d9b47226f647d7cb0fc9847ccb57cf0b1c80 | refs/heads/master | 2021-01-11T03:42:51.632508 | 2016-10-04T16:13:33 | 2016-10-04T16:13:33 | 69,978,896 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | cc | FenetreGL.cc | #include "FenetreGL.h"
FenetreGL::FenetreGL(wxString titre, wxSize taille)
: wxFrame(0, wxID_ANY, titre, wxDefaultPosition, taille, wxDEFAULT_FRAME_STYLE & ~ (wxRESIZE_BORDER | wxMAXIMIZE_BOX)),
vueopengl (new VueOpenGL(this))
{
//On centre la fenêtre sur l'écran
Center();
//Et on l'affiche
Show(tru... |
3ddd95a161e59264c96d01f2b458e5150d7847a9 | 164ad25eca017ebc51ae72d46dd1f19f722c0c21 | /include/Model/GraphLayoutDAO.h | ef658859bc9a11556880872f92c2c3d7d588e23d | [] | no_license | jaro-prokop/3dsoftviz | 5cdcaa15158acdb335a441073ca2d26e1cd5b46d | 77332ef847529a8617247754c94621ebc6a90d2c | refs/heads/master | 2021-01-16T20:23:24.894745 | 2011-05-02T09:00:39 | 2011-05-02T09:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,181 | h | GraphLayoutDAO.h | /*!
* GraphLayoutDAO.h
* Projekt 3DVisual
*/
#ifndef MODEL_GRAPHLAYOUTDAO_DEF
#define MODEL_GRAPHLAYOUTDAO_DEF 1
#include "Data/GraphLayout.h"
#include "Data/Graph.h"
#include <QString>
#include <QMap>
#include <QtSql>
#include <QDebug>
namespace Data
{
class GraphLayout;
}
namespace Model
... |
c7bb1403ebc534ac2d53f32fab4041e7137e78c9 | d89a6a86fa406f757f04200f2c2ea3e88a178a32 | /Game/src/Library/SimpleLib/Helper.h | 1a81352faeea45b8309d313988f1700b07ba7f42 | [] | no_license | OogakiAkiya/AimHigherGoal | 58ab6d292f0abace9eef8e110102b825564d8b0d | 8f51d10feb5759f7be089e0316242b35213e3d3f | refs/heads/master | 2020-04-06T21:04:52.696434 | 2019-01-10T11:17:09 | 2019-01-10T11:17:09 | 157,791,876 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,625 | h | Helper.h | //==========================================================================================================
//
// Helper.h
//
// 制作者:鎌田
//
//==========================================================================================================
#ifndef Helper_h
#define Helper_h
//================================... |
a9d5a3336161a777ea986d103509b343d137d8aa | ca0d4751283e3c33455359cb8a8eed92cda69509 | /src/lexer.cpp | 222cab54c299260882510f9422ad8a84239ab13f | [
"MIT"
] | permissive | liwangqian/cpplua | 3910e775a742ef61ebf1cc4bbd7adafff59eef93 | f9b3486918c7c472e0c60d283f6a1eac164c6af1 | refs/heads/master | 2021-07-20T18:19:56.649267 | 2021-01-29T18:00:55 | 2021-01-29T18:00:55 | 234,737,610 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,276 | cpp | lexer.cpp | #include "lexer.h"
#include "keyword.h"
#include <cassert>
CPPLUA_NS_BEGIN
namespace __detail {
inline bool is_whitespace(char c)
{
return c == ' ' || c == '\t';
}
inline bool is_eol(char c)
{
return c == '\r' || c == '\n';
}
inline bool is_word_start(char c)
{
return isalpha(c) || c == '_';
}
inline ... |
3a8bee400481c7bcaf6dc099153daa54bba8d093 | 782e8b221d2d106a15a17e60e8620c7fed278429 | /cachelib/allocator/SlabReleaseStats.h | 9f6b3889c75d6c873ae3aa1667713a7845c3387e | [
"Apache-2.0"
] | permissive | ilkerhalil/CacheLib | d02985bba68af40c036fc12411efe317487c50de | d131b686ac135ea873dc4bb62e9133858eaad238 | refs/heads/main | 2023-08-18T07:39:27.272731 | 2021-09-11T02:49:48 | 2021-09-11T02:50:55 | 405,455,233 | 1 | 0 | Apache-2.0 | 2021-09-11T18:33:55 | 2021-09-11T18:33:54 | null | UTF-8 | C++ | false | false | 3,336 | h | SlabReleaseStats.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
ff08bb4a96160469a8fe52ae73d932b3a364ef08 | e85338f6d8666eb476698de5025c742b9b838a50 | /ojs/cc/egbobrd.cpp | 26e36681cc90b524a947e31c715190d2ae18a092 | [] | no_license | yancouto/competitive-programming | 8104bb3c45e0b385c2abb4cfcac14c35cce0619e | ac849e3aa858eea56b0aa6b7eb93e9a9e70f9475 | refs/heads/master | 2022-10-19T11:29:46.932829 | 2022-10-07T00:16:43 | 2022-10-07T00:16:43 | 66,641,933 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | egbobrd.cpp | #include <cstdio>
typedef unsigned long long ull;
const int MAX = 100009;
int n;
ull k;
ull solve() {
int i, x;
ull spent = 1, left = k;
for(i = 0; i < n; i++) {
scanf("%d", &x);
if(x <= left)
left -= x;
else {
x -= left;
int sp = (x + k - 1) / k;
spent += sp;
left = k - (x - (sp - 1) * k);
}... |
21c4392541f03794b8485ca95083393b15807ada | e8da394b1c6b5eb29eebe2f16e639d6acb11511f | /ECF/StatCalc.h | 57841632bec239e92df68e20f5a0d11cfa0cb346 | [
"MIT"
] | permissive | KarlaSalamun/ECF | 53a3a91e1f2926eb3cac32ff5c09b3bed34e942c | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | refs/heads/master | 2023-01-07T00:14:13.818244 | 2020-11-06T15:06:41 | 2020-11-06T15:06:41 | 310,567,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,309 | h | StatCalc.h | #ifndef STATCALC_H_
#define STATCALC_H_
namespace ECF
{
// constants for statistic values reference
enum stats
{ FIT_MIN, FIT_MAX, FIT_AVG, FIT_DEV, STAT_SIZE, STAT_TIME, STAT_EVAL, FIT_LOW, FIT_HIGH };
}
/**
* \ingroup evol population
* \brief Statistics calculation class.
*/
class StatCalc... |
37e04586462ba44592caefcb8c74d8ab6b43f5d7 | c9e78c8fb6a319ef533fc4e1c896facd3329b5d2 | /src/GLVertexArray.cpp | 089028d08fec31ad4d92509c97d600c15b3f1a40 | [
"MIT"
] | permissive | stonexjr/davinci | 1538bfee79bc9d419441e751b5143f0a1a780395 | 40793f19de0919e5d74ecb0de10524c4bd10f084 | refs/heads/master | 2021-03-27T16:48:40.858530 | 2017-10-20T01:39:31 | 2017-10-20T01:39:31 | 106,117,889 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,448 | cpp | GLVertexArray.cpp | /*
Copyright (c) 2013-2017 Jinrong Xie (jrxie at ucdavis dot edu)
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,... |
992d6e21bfdf5a50b03d769a6bc345e30c602965 | 8db2532351f51f111dfb94dc821c7d3660e97f84 | /task.h | 2dc6e9b118e11b197f386fa4cd423bf6cec860a2 | [] | no_license | Ellomo/EasyGUIForSomeTask | 05308d2c0ac7a51986dc4547174b2d4733656bd8 | 1ca0f89c29594f878fadfc82c461f8b2e528fdad | refs/heads/master | 2020-07-23T13:00:27.765976 | 2019-09-10T13:18:01 | 2019-09-10T13:18:01 | 207,565,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,802 | h | task.h | #ifndef TASK_H
#define TASK_H
#include <QThread>
#include <QtTest/QTest> // так как в условии указано, что задачи должны выполнять что-то
// подключенна библиотека для тестирования, будем использовать искуственную задержку
// необходимо не тольк оее заинклюдить, но и в в файле .pro указать "QT += testlib"
enum type... |
309b6f96bbf6c0fa5d28213574d70a1a4a33adf8 | 6aa9e6b1ffc7d253a417a05dc8af3ce18a695d4a | /main.cpp | 7ee66387ac76d8dfbda2453c6938b07dd9455816 | [] | no_license | wendell256/P3Lab-5_JonrryEnamorado | a3f8a7a7d65e3da321c1a96601343c89a713bdfe | 9aa4a3045d410366f0afcdcd6fb3c81beb6fc273 | refs/heads/master | 2020-03-27T05:33:22.566448 | 2018-08-25T00:07:24 | 2018-08-25T00:07:24 | 146,029,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,201 | cpp | main.cpp | #include "Ingredientes.h"
#include "Platos.h"
#include "Bodega.h"
#include "Clientes.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
void Administracion();
void Clientesl();
void CrearIngrediente();
void CrearPlato();
Bodega* bodega = new Bodega();
vector<Clientes*> clientes;
int ma... |
d61a6990b3e8b4540dd80f5e1fe09e9319a6e231 | fe6360bf697243c6c318836a3c64a9c1984b610b | /deprecated/physiCal/include/objectRef.h | e0f3561491c2d56becf871bf0f3b406091fac867 | [] | no_license | davidmueller13/vexx | 366cec96f4abac2e814176cd5d2ae75393561c0d | 9194877951c78cd3fde3e7fbe6d511e40c24f8eb | refs/heads/master | 2021-01-10T11:51:19.124071 | 2015-09-26T15:30:05 | 2015-09-26T15:30:05 | 43,210,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | h | objectRef.h | #ifndef OBJECTREF_H
#define OBJECTREF_H
#include "physiCalGlobal.h"
#include "object.h"
BEGIN_PHYSICAL_NAMESPACE
//! Represents an object in a cached frame, we only store positions of the involved elements, not velocity and such
class PHYSICAL_EXPORT objectRef
{
public:
//! a structure to hold a face
str... |
b51edde5de7ab12b37d1f977c15ad9a9e1adaa2c | eb71128abd894bb2ea471aab9661b13f2613300c | /PolyEngine/Engine/Src/GLMeshResource.hpp | 4d5cb9a9ceae560ecf1cc6028bf325eb2beab70e | [
"MIT"
] | permissive | Arputikos/PolyEngine | dda7dad9b9058230ce395e3cf092c4d38b267750 | 176e99a5ccdcef38461fcbf160ccfdc06916b003 | refs/heads/master | 2021-01-21T14:01:08.031438 | 2017-05-28T15:29:58 | 2017-05-28T15:29:58 | 91,818,208 | 0 | 0 | null | 2017-05-28T15:29:59 | 2017-05-19T15:11:01 | C | UTF-8 | C++ | false | false | 1,364 | hpp | GLMeshResource.hpp | #pragma once
#include <Dynarray.hpp>
#include <EnumUtils.hpp>
#include <Color.hpp>
#include "ResourceBase.hpp"
#include "GLTextureResource.hpp"
struct aiMesh;
struct aiMaterial;
typedef unsigned int GLuint;
namespace Poly
{
class ENGINE_DLLEXPORT GLMeshResource : public ResourceBase
{
public:
class ENGINE_DL... |
2ed8c1e1d5026aebf1844c47d120defa5c126880 | c0bd2095c4d87fd2b9ae73f128f2d693eea0ae46 | /HolaSDL/BulletsAsteroidsCollision.h | f3779534859a7d9764c80141231cd65c52980422 | [] | no_license | GonzaPM7/TPV_2 | 7cad4529d0953f2dabf030ebebc7f3b969961437 | c423bf331b280cd5ecfffe221f8bd3f20fbf00f9 | refs/heads/master | 2020-04-21T08:20:33.720145 | 2019-06-22T09:24:29 | 2019-06-22T09:24:29 | 169,416,688 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | BulletsAsteroidsCollision.h | #pragma once
#include "PhysicsComponent.h"
#include "Asteroid.h"
#include "Bullet.h"
#include "Messages_defs.h"
class BulletsAsteroidsCollision : public PhysicsComponent
{
private:
const vector<Asteroid*>* asteroids_ = nullptr;
const vector<Bullet*>* bullets_ = nullptr;
public:
BulletsAsteroidsCollision();
~Bulle... |
437c3d3b0da37e25a185fbab5b8a3adc6cbe1ecb | cfa354939347bce1cb7e47f704269d381f7585b9 | /data_structures/combined/pattern2.cpp | 7433582f43095a9ff828cd5a3f50d09c13654f39 | [] | no_license | akashtomer0786/algorithms | beb490b82b1f0b162cd30899514d57fcad58b2c0 | 894f58654d8b8ccd1f794e52d3155d3af071593b | refs/heads/master | 2023-07-20T11:12:28.045063 | 2023-07-13T11:15:47 | 2023-07-13T11:15:47 | 193,656,756 | 0 | 1 | null | 2023-07-13T11:15:49 | 2019-06-25T07:25:19 | C++ | UTF-8 | C++ | false | false | 399 | cpp | pattern2.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int space=n;
for(int i=0;i<n;i++){
for(int j=0;j<space;j++){
cout<<" ";
}
for(int j=0;j<2*i+1;j++){
cout<<"*"... |
9003aa1f93dac46d47f5bf74dd5c38154681d506 | cd213678fb67ec29df77473b4097848ed4d8f749 | /Estructura de Datos/LinkedStructures/tree.h | 49638b01ce83ad4c611caee5eb3bd575ff7a142a | [] | no_license | KelvinHelmut/ULaSalle | 772739026fde72571b6cbc6eaa3a5399d4d36132 | a1915917cdbb7eba8cc8d49fc52a8c0c163870f3 | refs/heads/master | 2020-04-15T04:41:13.215220 | 2015-10-26T04:27:15 | 2015-10-26T04:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | h | tree.h | #ifndef TREE
#define TREE
#include "linkedstructure.h"
template<class T>
class Tree : public LinkedStructure<T> {
public:
virtual void add(T) = 0;
virtual void show(std::ostream&) = 0;
virtual void dot(char* file) = 0;
};
#endif // TREE
|
3871accf85058eb5127d39841ea3acd07115aa32 | ecacebbd5b05ec3548fe77cb36ae0b9ed2308c29 | /tensorflow/core/kernels/conv_ops_sycl_common.h | 5865a94487b5fa1fef5fe6ab94befb8df855b2cd | [
"Apache-2.0"
] | permissive | gongyu/tensorflow | e6e12266a58aa2fd1851352f5a897c725a322281 | c230f52807b7670bbe3fe27746c3a232a538ac6c | refs/heads/master | 2021-05-18T03:25:23.100567 | 2021-02-06T10:13:57 | 2021-02-06T10:13:57 | 251,078,593 | 0 | 0 | Apache-2.0 | 2020-03-29T16:29:29 | 2020-03-29T16:29:28 | null | UTF-8 | C++ | false | false | 12,984 | h | conv_ops_sycl_common.h | #ifndef TENSORFLOW_USE_SYCL
#error This file should only be included when compiling with SYCL support
#endif
#ifndef TENSORFLOW_KERNELS_CONV_OPS_SYCL_COMMON_H_
#define TENSORFLOW_KERNELS_CONV_OPS_SYCL_COMMON_H_
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/core/platform/macros.h"
... |
e19e92911b2c79d47d186b8e43772046db5ecd22 | 3a5a2dc09a6a3fd49c65dcae0d39200af5ea5e3f | /src/monitor/EventMonitor.h | 250b209abcea281bbf78bcc60a126866834d2416 | [
"BSD-3-Clause"
] | permissive | intel/ixpdimm_sw | d72ec153471bedb9c95db119e5fc422be4c66cc7 | dbd3c99f3524ca6aff80f194ff0f67d4a543b9e3 | refs/heads/master | 2023-06-06T22:02:20.199697 | 2022-08-04T22:49:58 | 2022-08-04T22:49:58 | 46,385,178 | 17 | 7 | BSD-3-Clause | 2018-03-08T20:51:05 | 2015-11-18T00:47:04 | C | UTF-8 | C++ | false | false | 7,286 | h | EventMonitor.h | /*
* Copyright (c) 2015 2016, Intel Corporation
*
* 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 copyright notice,
* this list of conditions and the... |
a2b0ec0ef083a3827669c31941e227d2279a7eda | 6b51945368e0a643fabd554c7567fa5bc167d549 | /utils.ino | ebe4307bac74b3187c404fdbc02400d4f67d7bf9 | [] | no_license | labrache/MKR-AlarmClock | ac4500b445a4ec35bef6c863b2bf125548d7861a | c8ba6b77ad4a1c1041a2aef7ef9b0c0b94ef9383 | refs/heads/master | 2022-10-20T16:43:43.416430 | 2020-06-16T23:56:41 | 2020-06-16T23:56:41 | 272,836,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,499 | ino | utils.ino | #include <utility/wifi_drv.h>
#include <ArduinoHttpClient.h>
int volsegtimeout = 0;
int oldWstatus = -99;
bool data_read = false;
int read_status = 0;
bool waitForRedir = false;
bool gotRedir = false;
bool gotOk = false;
String newLocation = "";
void prepareHandleHeader(){
data_read = false;
read_status = 0;
go... |
3a1b055055a81909ca4f0e40efe74e2bedf1e0fe | 47ec47a5bb53e6a12bac91e97741e48ae460881d | /Computer Programming Year - II/An II OOP Labs/Zoo/Zoo/Reservation.cpp | 7e33acbe79b598c216282d962a37142ca1e6e384 | [] | no_license | zVoxty/University | ad97f3bc1ba7e850cad3725098b610e037eceb99 | 8d9822631a3c8c13506d528ab6a3cbf660a511d3 | refs/heads/master | 2020-12-29T02:42:53.186222 | 2018-05-17T05:52:44 | 2018-05-17T05:52:44 | 53,352,966 | 0 | 1 | null | 2016-05-31T09:19:08 | 2016-03-07T19:33:00 | HTML | UTF-8 | C++ | false | false | 120 | cpp | Reservation.cpp | #include "Reservation.h"
Reservation::Reservation()
{
animalsInReservation = 0;
}
Reservation::~Reservation()
{
}
|
9a2a8f97a2baa37b7802827b5e6816de89eef769 | 125a8a845f74950b68e6c0dfe613ae0cd0cd776c | /新增資料夾/complex data.cpp | 44906ddaa52bb88670b414ecba5c33269ab19226 | [] | no_license | Jack-0427/hw-program | cf06bc6ba02a1df1c03475f284e2c9893f61fa10 | ad9f0dce45ae4e0383268fa2e8c3f01483d1464f | refs/heads/main | 2023-08-11T11:12:22.626124 | 2021-09-17T18:46:26 | 2021-09-17T18:46:26 | 347,632,218 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | cpp | complex data.cpp | #include <stdlib.h>
#include <string.h>
#include <iostream>
#include <time.h>
using namespace std;
struct Contact{
char first[10];
char last[10];
int relation;
char phone[10];
};
char* firstname[20] =
{"James", "John", "Robert", "Jacob", "Oliver",
"Michael", "William", "Daniel", "Lucas", "M... |
05a0edbb3b7fb762f49a8655d984dd876f78aca7 | 332e3565b74df517f42653c82cda3eadaa9d15a8 | /soilmoisture_LCD.ino | 3605d1e9ba4009012cca1b0a8934f87f67dc0e4f | [] | no_license | drphloem/arduino-soil-moisture | ae37771706a088a57fc8e0dc45962efcfeb5b44e | 55551ace6ecf7ae7dbe85515349ddf89218ade77 | refs/heads/master | 2020-05-25T08:41:33.018706 | 2019-05-21T02:34:30 | 2019-05-21T02:34:30 | 187,718,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,192 | ino | soilmoisture_LCD.ino | #include <SoftwareSerial.h>
// include the library code:
#include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
#include <utility/Adafruit_MCP23017.h>
// The shield uses the I2C SCL and SDA pins. On classic Arduinos
// this is Analog 4 and 5 so you can't use those for analogRead() anymore
// However, you can connect ot... |
6290dbee8cd22d34d236b065472772382c11a7e5 | 19a20366ae1f25c4b2558409d94f5f0b3f04702d | /CheckersGame/src/SpriteBatch.cpp | 8c99063fe4458e2a94e3aacc44b1339f64e6690e | [] | no_license | hburnett/NetworkedCheckers | e81ed64b59145e64ec7aed72e0862e4017fd7e1c | 8daa368a7fa0eb6f32f9346e95dc80060c9e9718 | refs/heads/master | 2016-09-06T16:02:34.012652 | 2015-06-11T09:50:00 | 2015-06-11T09:50:00 | 37,038,084 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,298 | cpp | SpriteBatch.cpp | #include "SpriteBatch.h"
#include "SpriteBatch_Immediate.h"
#include "SpriteBatch_NonImmediate.h"
#include "Vec2.h"
#include "Game.h"
SpriteBatch::SpriteBatch(Game *pGame)
{
m_pGame = pGame;
m_fRed = 1.0f;
m_fGreen = 1.0f;
m_fBlue = 1.0f;
m_fAlpha = 1.0f;
m_topLeftUV.x = 0.0f;
m_topLeftUV.y = 0.0... |
ac9683d19c735c83aafb8a291ecbdb66911b0808 | 8fa1821f2c7a721b72202794e4e78fc48faae7fb | /include/BitSequenceFactory.h | e389c57c72f1d9acb51f7f2f5c2bb86171c62fff | [] | no_license | koniiiik/libmultialn | 48ce475f5c774226c3e169cc719cc69274f284a9 | ada245d4735cd8f4b93caf50c3e0924be6c13ee2 | refs/heads/master | 2021-01-10T22:11:25.696803 | 2012-05-29T23:02:46 | 2012-05-29T23:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,910 | h | BitSequenceFactory.h | #ifndef BITSEQUENCEFACTORY_H
#define BITSEQUENCEFACTORY_H
#include <BitSequence.h>
#include <BitString.h>
#include <BitSequenceDummy.h>
class BitSequenceFactory
{
public:
virtual ~BitSequenceFactory()
{ }
virtual cds_static::BitSequence * getInstance(
const cds_utils::Bi... |
edc88c7ebb0817ce23bb07cf866027fffea6404b | f7d632d674cef15e906d60caa4744021e773d4d8 | /Codeforces/C+=.cpp | e7dc41972c07ceebeec3ac31ebc2e1fcbd258f8a | [] | no_license | jAnist/competitive_programming | 4b8944a3871684c9ab419af35ebaad5e134de930 | 8f4430a67a8eb5cb4c78a4b73508ed0c727ab658 | refs/heads/master | 2022-12-18T07:30:39.869091 | 2020-09-17T17:06:44 | 2020-09-17T17:06:44 | 258,277,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cpp | C+=.cpp | /*
Question Link: https://codeforces.com/problemset/problem/1368/A
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
void solve(){
ll a,b,n,ans=0,mn,mx,res;
cin>>a>>b>>n;
if(a<b){
mn=a;
mx=b;
}else{
mn=b;
mx=a;
}
while... |
a0e4caee0abc0f618126d53623f69f2523906251 | c3524677697850f7be979396023f6f3893dbed61 | /hufftree.cpp | a2c024fbc28cce2e586c5c904cd9e88bd275174f | [] | no_license | JoicySoares/Huffman | b6e64e38066d6a11bde5388d655dfcf2ee37dbe3 | 37ca0ce5213aa41f3d2702b588abe7a3335ee979 | refs/heads/master | 2021-01-10T16:36:40.092833 | 2015-11-24T02:51:46 | 2015-11-24T02:51:46 | 46,719,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,101 | cpp | hufftree.cpp | #include "hufftree.h"
HuffTree::HuffTree()
{
m_root = new Node();
}
HuffTree::HuffTree(Node *root)
{
m_root = root;
}
HuffTree::~HuffTree()
{
delete this;
}
//Cria a árvore de huffman
void HuffTree::buildHuffTree(int *array){
QList<Node* > nodeList;
for(int i = 0; i<256; ++i){
if(array[... |
31a6f42a6a150649609879ccd4e8ad2dcd097db7 | c1ce8fa1976b4db87d137ce7541afdafbee01793 | /include/monitors/box_monitor.h | 4c7e5d8f2cda1441e2cbc29a7b27a0d2da190e6c | [
"MIT"
] | permissive | johnaparker/Qbox | 0b4a2b4c76248122c59e8da844d81ab5854d63fa | 7b8daf42dcc140448b2fa9e3ba7122bd69bbcb01 | refs/heads/master | 2021-05-23T20:39:46.605662 | 2020-09-09T02:40:47 | 2020-09-09T02:40:47 | 52,501,700 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,785 | h | box_monitor.h | #ifndef GUARD_box_monitor_h
#define GUARD_box_monitor_h
#include "rank_monitor.h"
#include "surface_monitor.h"
#include <vector>
#include <math.h>
#include "../field2.h"
#include "flux.h"
#include "ntff.h"
#include "force.h"
namespace qbox {
template <class T = DFT::all>
class box_monitor: public rank_monito... |
1167b56019ccfbc3eed6df5a0a0f7bbc9053051f | 38dc5cd70ba54abd7e369867d6ca85d445f37d8e | /branch-bound.cpp | 374892a3fbadcc7f64256a25ec07b81aa5abcc26 | [
"MIT"
] | permissive | albertopastormr/tsp-mog | b902b7699256be931d454db59144c7b75ebbdf2b | 23c61d23d21e48c0b18527f1875a86c3607125fc | refs/heads/master | 2020-04-09T18:53:07.854500 | 2018-12-29T22:40:44 | 2018-12-29T22:40:44 | 160,526,619 | 1 | 0 | null | null | null | null | ISO-8859-16 | C++ | false | false | 4,185 | cpp | branch-bound.cpp | // Grupo XYZ, Fulano y Mengano
// Comentario general sobre la solucioŽn,
// explicando coŽmo se resuelve el problema
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <assert.h>
#include <stdio.h>
#include <algorithm>
#include "Matriz.h"
using namespace std;
const int ... |
cdbcdca1d60cf78aee68ee578462c2ffa607d98a | 884d8fd8d4e2bc5a71852de7131a7a6476bf9c48 | /grid-test/export/macos/obj/src/openfl/display/Loader.cpp | 9f9825ab02461761370c6843358b6da2d99e0b58 | [
"Apache-2.0"
] | permissive | VehpuS/learning-haxe-and-haxeflixel | 69655276f504748347decfea66b91a117a722f6c | cb18c074720656797beed7333eeaced2cf323337 | refs/heads/main | 2023-02-16T07:45:59.795832 | 2021-01-07T03:01:46 | 2021-01-07T03:01:46 | 324,458,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 31,533 | cpp | Loader.cpp | // Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_Path
#include <haxe/io/Path.h>
#endif
#ifndef INCLUDED_lime_app_Future
#inclu... |
46058bd36b27c5902cc0cd1d71659fd88445169f | b71071f29f643c8ee4bf32e1f9951e0fb1f9712f | /mac.cpp | 1a89600dfa10ab8c82b0ca2878605d507ad7d588 | [] | no_license | simonaardal/Crypto-Calculator | 4bd93018fe9912c461e551e2db27c88d765b7d0e | a62e1cd7f354f44363281b85cbcf36a884deaa21 | refs/heads/master | 2023-02-10T21:44:04.299696 | 2021-01-08T16:41:37 | 2021-01-08T16:41:37 | 327,948,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | cpp | mac.cpp | #include "mac.h"
#include<QVector>
#include<math.h>
#include"calculations.h"
#include<iostream>
#include "symmetric.h"
QVector<int> findCaesarMAC(QVector<int> binary, int n, int K, QVector<int> IV_binary){
QVector<int> temp;
QVector<int> y_binary = IV_binary;
int y = 0;
int mult = 0;
for(int i = 0... |
3058d31b4e9449ddb3fc880079806c642286c035 | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/pushframework/3.1/PushFramework/private/StopWatch.cpp | a0685659600dda3f2b508d6da04fd18ac53d114d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | StopWatch.cpp | #include "StdAfx.h"
#include "StopWatch.h"
#ifdef Plateform_Windows
#include "StopWatchImpl_Win.h"
#else
#ifdef Plateform_Linux
#include "StopWatchImpl_Linux.h"
#endif
#endif
namespace PushFramework
{
StopWatch::StopWatch()
{
pImpl = new StopWatchImpl;
}
StopWatch::~StopWatch( )
{
delete pImpl;
}
void StopW... |
9a42314fa0209da75e34dee9ff5df69d187ee860 | 8be055a43ab98fd8ecc75dca3dd840fa3de337c2 | /lib/simple_handler.h | e5eb805c2d807f35d9a72e3edc5188b20affe0a6 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maxerickson/pyosmium | f99b5b7a4bf403915630b8f46463a86747cda688 | cdbfa0e6c797ac64c91a3105719e4eca15896be1 | refs/heads/master | 2022-04-16T03:23:44.646247 | 2020-03-24T20:26:24 | 2020-03-24T20:28:01 | 254,975,438 | 1 | 0 | BSD-2-Clause | 2020-04-11T23:45:29 | 2020-04-11T23:45:28 | null | UTF-8 | C++ | false | false | 5,337 | h | simple_handler.h | #ifndef PYOSMIUM_SIMPLE_HANDLER_HPP
#define PYOSMIUM_SIMPLE_HANDLER_HPP
#include <pybind11/pybind11.h>
#include <osmium/io/any_input.hpp>
#include <osmium/io/file.hpp>
#include <osmium/visitor.hpp>
#include "base_handler.h"
class SimpleHandler: public BaseHandler
{
public:
virtual ~SimpleHandler() = default;
... |
355250c93b80ff36b0eb556aadb04e0aaf3fd745 | e2edc0d70229999bba49082beabfec7b37c0f7a0 | /library/include/borealis/core/logger.hpp | b4ae19d191bd34e13bba26cd8ccb629747b329b5 | [
"Apache-2.0"
] | permissive | FaultyPine/borealis | 0ce3491bfd84a5f2a4aa7bede680cc8cdee3afd6 | 6053f78ec2eec829b4d9c9330cf3b5d591a7bfa2 | refs/heads/main | 2023-03-31T06:24:49.548748 | 2021-04-02T17:08:41 | 2021-04-02T17:08:41 | 354,082,478 | 0 | 0 | Apache-2.0 | 2021-04-02T17:05:26 | 2021-04-02T17:05:26 | null | UTF-8 | C++ | false | false | 2,343 | hpp | logger.hpp | /*
Copyright 2019 natinusala
Copyright 2019 p-sam
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 appl... |
1b98f16ec89d723b4cc5ad75cf6e685438fe1229 | 1d184886090316478bc63a4438901fc9f4d903d8 | /sql_connect/insert_cgi.cpp | e37097bcb52acfd63aba75a56fc29a9df5a3f475 | [] | no_license | jelly9/httpd | 85764b68d82dc25354a503197b8f06e424e5138c | ece0d67c24af7f8db783a249af9df1e967daeddf | refs/heads/master | 2020-04-07T10:15:04.997324 | 2018-08-09T16:58:07 | 2018-08-09T16:58:07 | 124,203,225 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,717 | cpp | insert_cgi.cpp |
#include "sql_api.h"
using namespace std;
void insertToDb(const char *arg)
{
char arg_buff[1024];
//name="a"&sex="man"&age="20"&hobby="coding"&school="SUST"
char *myargv[6];
char *start = arg_buff;
strcpy(arg_buff, arg);
int i = 0;
while(*start){
if(*start == '='){
... |
d7821bc5f1eb38c0bf1b8fed119f55afd14c31d4 | 2991ac96b1e5023a0131ba17b75e9ed97e65cda3 | /名表查找顺序.cpp | 36039c832cb704b6ea38cb1b1ef62f98a10963fc | [] | no_license | velonisa/CPP-ProgrammingBasics | 83d22852b6ea5a659155906341f8b3fe99a86493 | 81157950f3c8292d4cd7b376751c3fc33e4c5356 | refs/heads/main | 2022-12-19T17:28:36.462552 | 2020-10-04T16:31:56 | 2020-10-04T16:31:56 | 301,175,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | 名表查找顺序.cpp | #include<iostream>
#include<cstring>
using namespace std;
const int NAME_LEN=20;
const int TABLE_LEN=100;
struct TableItem
{
char name[NAME_LEN];
int age;
};
TableItem name_table[TABLE_LEN];
int linear_search(char key[],TableItem t[], int num_of_items)
{
int index;
for(index=0;index<num_of_items;index... |
d86d807f98a75986eac369f896e5506ce03d00f7 | 51a8b90cd68bb7ed03a452fb1341555ea366b93a | /IRC2/BrainFry.cpp | be77942b8d9db0ca872ef9c7557c0cfd515ff307 | [] | no_license | Amere/CompetetiveProgramming-Problems-Library | 2b833d79c8fc448a0703dd58e20740ba8623c609 | c076ff6e8ebe434583173b078ca648f20a5492fe | refs/heads/master | 2021-01-20T20:18:32.966625 | 2016-12-20T14:50:58 | 2016-12-20T14:50:58 | 61,013,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,366 | cpp | BrainFry.cpp | //
// main.cpp
// C++Workspace
//
// Created by Ahmed Amer on 5/30/15.
// Copyright (c) 2015 Ahmed Amer. All rights reserved.
#include <map>
#include <set>
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cmath>
#include <cstdio>
#include <vector>
#includ... |
80bf0ee4f22704cdd5ae8ccaf1c838e73086c53b | 8a769167db4ed400c1e9e8663eb86b85097428d2 | /xlors/outerfinderbynetengine.cpp | 8f28ccd468dc3a1e5b31283007f2aff98312cb56 | [] | no_license | d0cklng/YesMyLord | dfd106045be351228af27f2f9f8c2ae4b92db6ed | dd6e1415396af3acb40324170e5aba86de563130 | refs/heads/master | 2020-04-18T10:48:38.763836 | 2016-09-05T14:32:13 | 2016-09-05T14:32:13 | 67,426,628 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,208 | cpp | outerfinderbynetengine.cpp | #include "outerfinderbynetengine.h"
#include "jinassert.h"
#include "jinlogger.h"
#include "jinassistthread.h"
#include "jindatatime.h"
#include "xlors_share.h"
#include "jinpackhelper.h"
OuterFinderByNetEngine::OuterFinderByNetEngine(ISinkForOuterFinder* cb, const JinString &selfIdentify)
: IOuterFinder(cb)
... |
af07f1361bad4e899e7ede2e4277c2bbdda42af4 | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/chrome/installer/util/product_operations.h | 47fc616fa9d394e9a555c180ab3ce0842a93648e | [
"BSD-3-Clause"
] | permissive | denix123/a32_ul | 4ffe304b13c1266b6c7409d790979eb8e3b0379c | b2fd25640704f37d5248da9cc147ed267d4771c2 | refs/heads/master | 2021-01-17T20:21:17.196296 | 2016-08-16T04:30:53 | 2016-08-16T04:30:53 | 65,786,970 | 0 | 2 | null | 2020-03-06T22:00:52 | 2016-08-16T04:15:54 | null | UTF-8 | C++ | false | false | 2,380 | h | product_operations.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_
#define CHROME_INSTALLER_UTIL_PRODUCT_OPERATIONS_H_
#include <set>
#include <string>
#include <ve... |
61007d63287c7092920e306b93ea33732ebe5dbe | e73f4e7aafcc734a70fe4f956d2fcbd88dae3fd5 | /widgetchanger.h | 26b41ba6a219fc67aabdfb55c05d8c23d8149962 | [] | no_license | howardano/Qt-Text-Editor | ec448120b023a069344b6dc26a53ff75e0baa0cc | 182c4e649f81002be3a688e832a78f05cbe60d09 | refs/heads/master | 2020-09-27T17:49:53.195378 | 2019-12-11T08:52:58 | 2019-12-11T08:52:58 | 226,572,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | h | widgetchanger.h | #ifndef WIDGETCHANGER_H
#define WIDGETCHANGER_H
#include <QWidget>
#include <QDockWidget>
#include <QFileSystemModel>
#include <QtCore>
#include <QtGui>
#include <QTabWidget>
#include "mainwindow.h"
namespace Ui {
class WidgetChanger;
}
class WidgetChanger : public QWidget
{
Q_OBJECT
public:
explicit WidgetC... |
84e9bb18a54f4a0245016ccf4742356cfbff6c69 | 553d0e216df86f616e242f1f7c1a18df56b04397 | /Source/MemorySearch/PatternFinderSIMD.h | f88d75bcf20817b3fb619b11e79c5387ec14d99f | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | ClaudiuHKS/Osiris | ed2fc849daee4f5f7a88660fd7440c5a19bd1d17 | 189b97b1874108e75335272bfef5a15c442c0d19 | refs/heads/master | 2023-03-16T14:12:16.199569 | 2023-01-04T21:28:40 | 2023-01-04T21:28:40 | 209,620,977 | 1 | 0 | MIT | 2019-09-19T18:18:40 | 2019-09-19T18:18:40 | null | UTF-8 | C++ | false | false | 512 | h | PatternFinderSIMD.h | #pragma once
#include <cassert>
#include <span>
#include <string_view>
#include "PatternFinder.h"
class PatternFinderSIMD {
public:
PatternFinderSIMD(std::span<const std::byte> bytes, std::string_view pattern);
const std::byte* operator()() noexcept;
[[nodiscard]] std::span<const std::byte> getNotCheck... |
9dd7da0a75653e24d8b818b9cc310148d8f6e159 | de78b74157de4cd70d70b3747756c99554bcd6bc | /LeetCode/Top/Medium/PermutationInString.cpp | d51a2f575ee0fef4ccdccee1dfeb7262bfad1cf9 | [] | no_license | vidalmatheus/codes | ae1d5c31abf4f215c677109ef091221214c82758 | de9dfeb721df7a4a3036c32c1c83c02c7b53b8ac | refs/heads/master | 2023-02-09T15:32:04.713987 | 2020-12-21T15:04:00 | 2020-12-21T15:04:00 | 219,653,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | cpp | PermutationInString.cpp | #include <bits/stdc++.h>
using namespace std;
static int speedUp=[](){
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return 0;
}();
class Solution {
public:
bool checkInclusion(string s1, string s2) {
if (s1.size()>s2.size())
return false;
... |
a3dafad9f4acd2b370c4940b99622d1397863778 | 05ec468488278a55e77667454470c911e948d65b | /linerenderer.cpp | 36fd6ffd3ae52b00a7d6fbe60695590737f55ef5 | [] | no_license | cbabnik/graphics_engine | 0dc1a0d752b36160cb86bcb653216321bed2dd8d | 27d9e56c9f49a62bbd1a77a0c368c6fe43954d63 | refs/heads/master | 2020-06-09T15:38:07.212790 | 2017-07-06T07:16:12 | 2017-07-06T07:16:12 | 76,030,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,985 | cpp | linerenderer.cpp |
// Line renderer implementation using bresenham's algorithm
#include "linerenderer.h"
#include <cmath>
void LineRenderer::draw_line(Point2D p1, Point2D p2, Color color /*white*/ ){
if( ! clipLine(p1, p2) )
return;
unsigned char octant = transformOctant( p1, p2 );
int dx = p2.x - p1.x;
int two_dx =... |
5777a875f9dd00eb0bd8de6887c9740f1a27c905 | 8186e9740dd4e53afe442ad81580779994daafe9 | /Alg Math C++/Alg Math C++/1085 Escape in box.cpp | 9cd5a793c136613ca43b368a21579403e0126e72 | [] | no_license | ysryu63/Algorithm | 566b97eb0a720bb3e33841cd4f196f637062065e | 65f9febdece4c5dedcad0a57815b300eb219e370 | refs/heads/master | 2021-01-01T17:54:38.215392 | 2017-12-04T14:47:04 | 2017-12-04T14:47:04 | 98,196,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 231 | cpp | 1085 Escape in box.cpp | #include <iostream>
using namespace std;
int min(int x, int y) {
return x < y ? x : y;
}
int main()
{
int x, y, w, h;
cin >> x >> y >> w >> h;
int result = min(min(x, y), min(w - x, h - y));
cout << result;
return 0;
} |
6bf0162a70943ffb0818103077fd01aa5d78ba5b | b7e920b87426ff1bdbdffc80f3d28cf8212653a7 | /medium/smallest-string-starting-from-leaf.cpp | 99dff7f4bde4c646335777291e65b0c42830c8c4 | [] | no_license | mayankDhiman/LitCode | 69842446790cac4bc79d01c777b4023b53dfca17 | 99cd1a6f8e667a90c3f67cb7c807dbd649c83221 | refs/heads/master | 2021-07-10T11:53:33.577991 | 2020-12-30T14:23:07 | 2020-12-30T14:23:07 | 226,394,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | smallest-string-starting-from-leaf.cpp | // 988. Smallest String Starting From Leaf
class Solution {
public:
string res;
set <TreeNode*> vis;
void dfs(TreeNode* r, string c) {
if ((r -> left == NULL) && (r -> right == NULL) ){
c += char('a' + r->val);
reverse(c.begin(), c.end());
cout << c << "\n";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.