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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd91e2f0c29f4f5b9fe2cebe682ec4dfc8e18ca4 | 8c212ae13ff0538553fa2a3eb5260b7bf22ea55e | /libext/datetime.cpp | ef1c2e4c486296402613da0771fce61bed0693f1 | [] | no_license | ufasoft/el | 665a71999dab81346025a6bf38e070b4c9665326 | 157cdc355b2d343f4bd8818ed187c1d630f3c3e2 | refs/heads/master | 2021-01-18T22:04:14.480020 | 2020-12-18T15:35:00 | 2020-12-18T15:35:00 | 16,654,307 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 18,197 | cpp | datetime.cpp | /*###### Copyright (c) 1997-2019 Ufasoft http://ufasoft.com mailto:support@ufasoft.com, Sergey Pavlov mailto:dev@ufasoft.com ####
# #
# See LICENSE for licensing information ... |
d23bc37c1ac21aa65d4a184cb0714005b94a6b2d | 82fc6d4fcc3561216cdc90f6a73899866c8b386d | /CDAC_case_study/cdaccasestudy/src/preferences.cpp | 09c05fc48d32314d76ddfb779d6932b1b7444852 | [] | no_license | dhirajmandade/CDAC-case-study | b2311412f09d95e321bbec110fb78b907622beab | 5cc3bb20a5b068dbb5161483e058b98f4d3bb9e1 | refs/heads/master | 2022-06-11T17:55:21.369316 | 2020-05-01T06:05:05 | 2020-05-01T06:05:05 | 256,530,136 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | preferences.cpp | #include<string>
#include <iostream>
#include <sstream>
#include <fstream>
using namespace std;
#include "preferences.h"
preferences::preferences(){
}
preferences::preferences(int id,int preference,string course_name,string center_id){
this->id=id;
this->preference=preference;
this->course_name=course_name;
this->... |
1bfaa64ab2560f53a414b9e02de0c1eed8bad6cd | 0bffb010cf7b5c178d889ad63ba0f2ec9ecacbb5 | /View/CLI.h | 674ab6bb98fbe85fd986032cb39579a34e4bdcd3 | [] | no_license | yujiadong666/Dna-Analyzer | a6d19111e41f008ff17ded819a04f6768416c1ce | 989a9226c71f04ffcb21e49162aef4378809e50d | refs/heads/master | 2020-05-30T10:48:46.335651 | 2019-03-29T19:45:48 | 2019-03-29T19:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | h | CLI.h | #ifndef DNAPROJECT_CLI_H
#define DNAPROJECT_CLI_H
#include "View.h"
class CLI : public View {
public:
CLI();
~CLI();
void print(const string &s) const;
void start()const;
string prompt();
};
#endif //DNAPROJECT_CLI_H
|
85535e5ac90f671ba21d8605df90dffefc599d76 | 1afc853432f5d730663d18fe9268c6d955dd6279 | /include/Civil.h | 3e9ca029723e2fa629c212b769a5a5c1cdb0b3df | [] | no_license | mishadn/game_element | 49db496ba48c5711515b00faeedee711b21bbb74 | 0be939ee72713ab800008b09a8c5f56edc71b7fe | refs/heads/master | 2020-08-29T15:48:34.057878 | 2019-10-28T15:48:06 | 2019-10-28T15:48:06 | 218,080,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | Civil.h | #ifndef CIVIL_H
#define CIVIL_H
#include "Unit.h"
#include "gameSets.h"
#include <string>
class Civil : public Unit
{
public:
virtual ~Civil();
protected:
Civil(units::Units, Cell*, std::string, int, int);
};
#endif // CIVIL_H
|
fd16964cd7d45a9fef0e310ed5c38bb7b36a9915 | 0bc4186fee113a3c9e740f47a82ddb79b8dbe7ad | /Weekly Assignments/Week8/Sugar/src/Demos/RopeJointDemo.h | 77d478c717c148f2c49f091ce045ea5c33d042af | [] | no_license | uhhgoat/AngryBirdsPrototype | 8080db3f2115eff777c9a93b81c13c47dc9934ba | 4c7ba585386da70a0fe3f6f2ceb9589828f5e184 | refs/heads/master | 2020-12-28T14:41:41.463088 | 2020-02-05T05:33:51 | 2020-02-05T05:33:51 | 238,374,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | h | RopeJointDemo.h | // Rope Joint Demo
// AB 04/18
#ifndef _RopeJointDemo
#define _RopeJointDemo
class StickWood;
class GenericBlock;
class RopeJointDemo
{
private:
int segmentCount;
StickWood** pStickArray;
GenericBlock* pCeiling;
public:
RopeJointDemo();
~RopeJointDemo();
};
#endif _RopeJointDemo |
f9808cf1a5e51ab9cf7b8a8321a50789d3309b0d | 05293edcb204f04f3a784feecdb92710b1e9ca54 | /inc/vrt/dbt/opt/optimiser.h | dca12ac9d7ac2dd592bac1dfc09846d6943b794b | [] | no_license | tspink/vrt | 7bae933e11243c46b5c4aa9ebf69eae447390e08 | 1ef18332e8a7daea7c0f37614bf04c6d50ae3a56 | refs/heads/master | 2021-01-22T03:44:14.213823 | 2017-03-02T16:30:37 | 2017-03-02T16:30:37 | 81,453,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | h | optimiser.h | #pragma once
namespace vrt
{
namespace dbt
{
class TranslationContext;
namespace opt
{
class Optimiser
{
public:
bool optimise(TranslationContext& ctx);
};
}
}
}
|
699c4198a8d4a39dfb172ab12b5e89b8037c73cd | 952059f0a047efafa50bda0e25790394cb57ce7c | /src/Metil/Geom/Mesh.h | 09300616c3d823c1d5fa5a68db9ae22260200c6d | [] | no_license | hleclerc/Metil | 36011c7ad4a304b02f3a1ce1389a20c2498656fd | 280e1b5e47af33e49648a02c8f226bfb840f232b | refs/heads/master | 2021-01-17T07:23:20.239374 | 2016-06-09T09:57:17 | 2016-06-09T09:57:17 | 13,153,180 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | h | Mesh.h | #ifndef MESH_H
#define MESH_H
#include "Geom.h"
#include "MeshItem.h"
BEG_METIL_NAMESPACE;
/**
*/
class Mesh : public Geom {
public:
Mesh();
protected:
Ptr<MeshItem> item() { return static_cast<MeshItem *>( this->_item.ptr() ); }
};
END_METIL_NAMESPACE;
#endif // MESH_H
|
38f4b0531252b4686d9c4d8c2174440024d9bf42 | 88ae8695987ada722184307301e221e1ba3cc2fa | /v8/src/heap/collection-barrier.cc | 41dcf3a3b1257b65621bff828ac9332d6cbb23eb | [
"BSD-3-Clause",
"SunPro",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 4,393 | cc | collection-barrier.cc | // Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/collection-barrier.h"
#include "src/base/platform/mutex.h"
#include "src/base/platform/time.h"
#include "src/common/globals.h"
#incl... |
25d30c7db3dd4a4cf99616395fc9cc6c787ad1ea | c9e1b0bda09909b2fcc0e196a89cdaecc98744e8 | /libraries/MPU6050/MPU6050.h | ab8bf2c475c1a26db3b7a8c038c094efc4aa4261 | [] | no_license | eurichon/Arduino | 63fc72aac6060bc4b4e288fe7cd05f4ec39c0e82 | 6bb8751b20b73965afa99c90c9be778afb1a1163 | refs/heads/master | 2020-09-27T17:31:32.545590 | 2020-05-28T12:23:21 | 2020-05-28T12:23:21 | 226,570,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,390 | h | MPU6050.h | // MPU6050.h
#ifndef _MPU6050_h
#define _MPU6050_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "CircularBuffer.h"
#include "Wire.h"
#include "Register.h"
#define BUFF_SIZE 15
#define b 2.5
#define K 0.04
class MPU6050
{
public:
MPU6... |
29c3cadd01f1e9a8b43f92bdfdbdfb039e7ccf65 | 44c6adfa35f2291dd83d4a7e1c39a1ee585883ea | /src/c++/ten_threads.cpp | 7537ffe520adb2da3a327edad5c3d4244547de73 | [] | no_license | kagfupanda/Masters | 49a90abf82565ecb6da8f040e7686257a6795be5 | e9c45ef7ec20d4ddd89f2c4df52ff0ad4a65da6a | refs/heads/main | 2023-08-13T08:03:18.191379 | 2021-08-29T21:38:20 | 2021-08-29T21:38:20 | 401,147,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 888 | cpp | ten_threads.cpp | #include <iostream>
#include <thread>
#include <chrono>
void worker_thread(int i)
{
std::cout << "Worker thread " << i << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::cout << i << " woke up " << std::endl;
return;
}
void manager_thread(int i)
{
std::cout << "Manager thread " << i... |
d74727f2e6532ef88d22ec2e4cb88a2ab42c40c0 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_3793.cpp | c0c9285afce114283805ef49e1e6fc64be191100 | [] | 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 | 320 | cpp | Kitware_CMake_repos_basic_block_block_3793.cpp | {
CLONE(expirestr);
CLONE(domain);
CLONE(path);
CLONE(spath);
CLONE(name);
CLONE(value);
CLONE(maxage);
CLONE(version);
d->expires = src->expires;
d->tailmatch = src->tailmatch;
d->secure = src->secure;
d->livecookie = src->livecookie;
d->httponly = src->httponly;
} |
fdc24ecb781a7580192d50b057348ffbd9933e26 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/core/layout/layout_shift_tracker.h | 13f4bc5e5fe570d17e676355ee4ba0dae00c32d0 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 11,186 | h | layout_shift_tracker.h | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_SHIFT_TRACKER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_SHIFT_TRACKER_H_
#include "base/check_op.h"
#inclu... |
bc55533b62cad8b2267e68e31362e707a0b6e11f | 2b78ef08b38cca9aeb7a920e9dcf9fa76fb6e961 | /examples/LcdKeypadShieldI2C/LcdKeypadShieldI2C.ino | 12ba00cee8b1866ec3203e5f64b67573f941411d | [] | no_license | wmarkow/arduino-lcd-keypad-shield | c8ad2d2a73af6f6d4fdbccc441330399c27a7709 | 4cbb83905246855da80b4bf79a6dd8487ee8f9ab | refs/heads/master | 2021-01-17T10:18:23.893814 | 2019-03-10T21:46:30 | 2019-03-10T21:46:30 | 59,054,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | ino | LcdKeypadShieldI2C.ino | #include <LCDKeypadShield_I2C.h>
LCDKeypadShield_I2C lcd(0x3F,16,2);
void setup() {
lcd.init();
lcd.backlight();
// Print a message to the LCD.
lcd.print(F("Hello world!"));
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCur... |
6ae4792514dfe071d85832246915da50a8976fea | bf51ab908a611f42edd8df654eb43e0cabafa90a | /module02/ex01/Fixed.hpp | f96928f275f116b072be24330c6a2be3d6397482 | [] | no_license | samooyo/cpp | ad84a1f577232b0a64c206963f462c7448724197 | ab3e36542470a4388e5d45476044612b169fff76 | refs/heads/master | 2023-08-10T23:34:46.045284 | 2021-09-08T17:18:51 | 2021-09-08T17:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | hpp | Fixed.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: ... |
843e3aafe18000d4e2eb7cab64e8de76fcc0d3ba | 2651b7a8e1af9fa1e97ea26c4b7e600b11cd8318 | /cviceni07/Operator/Operator/Address.h | 5b8a8371a5ee152198a5c492598cfb2ac5917e50 | [] | no_license | LLetacek/ICPP1-2020 | 403ebef3e8c4e7de6c35dde8c5ee7381fbddd179 | 825a00fbfc4c82852a663bf0313bb5c92fe2a96a | refs/heads/master | 2023-05-29T08:13:45.946039 | 2021-01-01T17:20:18 | 2021-01-01T17:20:18 | 299,684,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | h | Address.h | #pragma once
#ifndef _ADDRESS_H
#define _ADDRESS_H
#ifndef _IOSTREAM
#define _IOSTREAM
#include <iostream>
#endif // !_IOSTREAM
struct Address {
public:
Address(std::string street, std::string town, int pin);
Address();
std::string GetStreet() const;
std::string GetTown() const;
int GetPin() const;
void SetStre... |
b5b683a09f077a77ea53ce991430824949e93276 | 26df6604faf41197c9ced34c3df13839be6e74d4 | /ext/stub/java/lang/ThreadLocal-stub.cpp | 60b75e6a940dd96b304950f70432de5e23b3610e | [
"Apache-2.0"
] | permissive | pebble2015/cpoi | 58b4b1e38a7769b13ccfb2973270d15d490de07f | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | refs/heads/master | 2021-07-09T09:02:41.986901 | 2017-10-08T12:12:56 | 2017-10-08T12:12:56 | 105,988,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,082 | cpp | ThreadLocal-stub.cpp | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/lang/ThreadLocal.hpp>
extern void unimplemented_(const char16_t* name);
java::lang::ThreadLocal::ThreadLocal(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
clinit();
}
... |
85ac5b785b8163f1fb991863e04c02141d1ee2b2 | c0fa97ed5e259da94e6d6396f78d2c3782ab1b46 | /source/rvg-join-parameters-f-forward-if.h | c6ac074d9098432cd4a3924adfac5b2b2d95ac57 | [] | no_license | hadryansalles/vector-graphics-renderer | 59a27b72a5e647fbb3c4b6601cd0235b36b9bd01 | 894136ce1436897e20ef00fcbd6bdf39eb7c312c | refs/heads/master | 2023-03-09T15:18:20.647791 | 2021-02-25T18:28:05 | 2021-02-25T18:28:05 | 232,360,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | h | rvg-join-parameters-f-forward-if.h | #ifndef RVG_JOIN_PARAMETERS_FORWARD_IF_H
#define RVG_JOIN_PARAMETERS_FORWARD_IF_H
#include "rvg-i-join-parameters.h"
#include "rvg-path-f-null.h"
namespace rvg {
//?? D maybe use traditional overloading here?
template <typename SINK,
typename = typename std::enable_if<
rvg::meta::is_an_i_join_parameters<... |
9fe4f7a2df461bfa73eb48b03c827f115cd04d99 | dabdaddf32562f0e1cbfd704667360fd4a85ab24 | /valkopat/src/States/EndState.h | 92b97ad59e8cc83ef017cf7657e004df6bb46d2b | [
"MIT"
] | permissive | PatrikValkovic/NibblesSemestralWork | 539505b1fd515a6c34c63ac8dbb10c4f50e37a0e | b50800b30fed969e7b2063274201d5af5dfa7a8c | refs/heads/master | 2020-07-15T08:13:46.282835 | 2016-06-07T15:23:34 | 2016-06-07T15:23:34 | 55,541,925 | 0 | 1 | null | 2016-06-08T11:25:26 | 2016-04-05T20:08:45 | C++ | UTF-8 | C++ | false | false | 828 | h | EndState.h | #ifndef CERVISEMESTRALKA_ENDSTATE_H
#define CERVISEMESTRALKA_ENDSTATE_H
#include "AbstractGameState.h"
namespace GameStates
{
/**
* States that represent end of game
*/
class EndState : public AbstractGameState
{
public:
/**
* Create new instance of EndState
* @param... |
4945f8d5951761ae2091228c8328cb2444251276 | f8a1af5d22c54c24c96c8b2b397eec9da7823f9f | /Include/xLib/Fs/Platform/Win/File_win.inl | b9214ef66ace4e681b3a3a7fd2a9af5fdcc2d37d | [] | no_license | RadyGo/xLib | 0780135045e01abf834e23a9267e5f8d1b424472 | af67f4614f86f9615dec299b32e94e45ffa1a3b3 | refs/heads/master | 2022-07-19T07:54:43.699010 | 2020-05-18T14:34:42 | 2020-05-18T14:34:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,566 | inl | File_win.inl | /**
* \file File.inl
* \brief file
*/
xNAMESPACE_BEGIN2(xl, fs)
//-------------------------------------------------------------------------------------------------
void_t
File::setMode(
cTranslationMode a_mode
) const
{
xTEST_NA(a_mode);
int_t iRv = ::setmode(_nativeHandle(get()), a_... |
712f600ca6e47c0bb3245165bb6847c577a6f1a6 | c942a1c59123f94438239f617d793d34fcdbb065 | /np/classifier.cxx | 8f9bd6e98807cd755583704242770331df5ed020 | [
"Apache-2.0"
] | permissive | cpackham/novaprova | e22ecc905ec9be4533997d986da96263adeaae33 | 770781f2b27f461c99342ed39547f69582f6a7ca | refs/heads/master | 2020-07-23T03:08:18.718816 | 2017-09-26T01:35:50 | 2017-09-30T04:21:39 | 207,429,070 | 0 | 0 | Apache-2.0 | 2019-09-10T00:21:32 | 2019-09-10T00:21:31 | null | UTF-8 | C++ | false | false | 2,252 | cxx | classifier.cxx | /*
* Copyright 2011-2012 Gregory Banks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
073b5cbccf34dfb12117a310b1c6d6170bce3c77 | e9646f746fa49659d51ac3f79ab3f9c077012010 | /symtab.h | fb4e6c31e5e46ea5b2cd752ecfd474111e5f2b6a | [] | no_license | ydr1997/CM | 1e4b7d92e52ef9efce2889f3225ddd7cdcf5af2b | 22754e45e9fb0838f0257f15f3674d69d327ef56 | refs/heads/master | 2020-06-02T07:28:10.919467 | 2019-06-10T02:27:50 | 2019-06-10T02:27:50 | 191,083,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | h | symtab.h | //
// Created by y on 2019-06-08.
//
#ifndef CM_SYMTAB_H
#define CM_SYMTAB_H
#include <vector>
#include <string>
#include "globals.h"
using namespace std;
/* SIZE is the size of the hash table */
#define SIZE 211
/*
* Tree-based implementation
* Linked list in each scope
*/
typedef struct SymbolRec {
strin... |
abfe6a69d11440c651496e0e0ac9dbc3befec8d0 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_repos_function_3345_git-2.4.9.cpp | cc0749f65fd8770cf67145b52527d54abcbf75ee | [] | 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 | 167 | cpp | git_repos_function_3345_git-2.4.9.cpp | int get_sha1_tree(const char *name, unsigned char *sha1)
{
struct object_context unused;
return get_sha1_with_context(name, GET_SHA1_TREE,
sha1, &unused);
} |
2d7336fddb868bec56c824d7d283178e214e4ac4 | 9f99b43584357fa3cdfca85ad032860b4f245193 | /SCICompanionLib/Src/MFCFrames/ScriptFrame.cpp | f2e83aeb51c10cea1b131a1b99ca3a86933661da | [] | no_license | Kawa-oneechan/SCICompanion | 6be789126ad6ca67b546228f35cc9eda3075b893 | c16ce500541145f8190112031104a38a05f87a46 | refs/heads/master | 2023-08-29T03:15:26.222530 | 2023-08-15T20:06:48 | 2023-08-15T20:06:48 | 155,107,541 | 15 | 3 | null | 2023-04-14T14:10:31 | 2018-10-28T19:28:15 | C++ | UTF-8 | C++ | false | false | 1,394 | cpp | ScriptFrame.cpp | /***************************************************************************
Copyright (c) 2020 Philip Fortier
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or... |
649df69212a94814aed37e39d06c9f83268be9c3 | 99a9bd07e3e7cb4e603746001f809a3418f7da04 | /Solutions/skyline.cpp | 0245ba6dfb2d8b377b3be9698c579f082780bb60 | [] | no_license | devedu-AI/InterviewPrep | afdc5db6036de36e2c44acbd1a9f38bf66515ad2 | 7318e36d762def3139aa66da8e04aa209bf71606 | refs/heads/master | 2023-08-21T18:40:59.439334 | 2021-10-02T08:20:45 | 2021-10-02T08:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | skyline.cpp | class Solution {
public:
// Solution hint : https://briangordon.github.io/2014/08/the-skyline-problem.html
vector<vector<int>> getSkyline(vector<vector<int>>& buildings) {
set<vector<int>> cp;
for ( auto x : buildings ){
cp.insert({ x[0] , x[1], x[2], 1});
cp.ins... |
05134b1f16a8a3c37afda64ed2b8633f5ad1c02b | 8f56704c21f9bd5a1a59c1e9755915f6723327ee | /Tema_6/arrayMemDin.cpp | ff6790b448648aa02a9dcda7e923d8bda16a0b76 | [] | no_license | rubenca01/c-projects | 292a75b9a8e8b96f4e5dd87c46e7e592a5282108 | aa30c324b6234ca5f48f5263484801b54bf606f1 | refs/heads/main | 2023-03-09T20:50:36.682556 | 2021-02-26T16:49:13 | 2021-02-26T16:49:13 | 341,111,911 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 729 | cpp | arrayMemDin.cpp | // Fichero: arrayMemDin.cpp
#include <iostream>
int main()
{
double *v;
int numComponentes = 3;
v = new double [2*numComponentes];
// Acceso especificando el índice
v[0] = 1.5; v[1] = 2.5; v[2] = 3.2;
v[3] = 5.6; v[4] = 7.9; v[5] = 11.3;
std::cout << "v = ("
<< v[0] << ", " << v[1] << ", " <<... |
51d6e835481300d4dd2a69266db8c4f3d737fac7 | 2ae114e5b2cabaf2dbf42ab5b89f0c95c04c9ba7 | /tests/utils/ProcessRunner.cpp | e4191040de7942ca9e08be032749f183dfe2d019 | [
"MIT"
] | permissive | Danleb/FileFaker | c58de7996d2ddc45f99f0d42018b9957c904151e | dbebeead5ca43860a049b20b4762756acee6d15c | refs/heads/master | 2023-03-14T05:52:29.609511 | 2021-03-04T11:13:31 | 2021-03-04T11:13:31 | 266,530,555 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,685 | cpp | ProcessRunner.cpp | #include <iostream>
#include <stdexcept>
#include <stdio.h>
#include <strsafe.h>
#include <sstream>
#include <tchar.h>
#include <Windows.h>
#include "ProcessRunner.h"
namespace utils
{
ProcessRunner::ProcessRunner(std::string filename) : m_filename(filename), m_is_process_output_ended(false)
{
ZeroMemory(&m_proce... |
d2d59d5ef618bd7a21c284a8dac41cdc52807841 | 5eeeef061d8c54a7d9a890b2d701620bbbedc327 | /udp.cpp | f06d7ed76fa8151d5f368a2c8a20b2707b0a4106 | [] | no_license | WeiS1394/NetAssistant | c29fe969a493dba7d2fca1c68501661c4c57165b | cf969b56a772cfe9c7ee195df0a1dbd285835638 | refs/heads/master | 2021-07-03T04:57:47.555632 | 2017-09-24T17:01:04 | 2017-09-24T17:01:04 | 104,661,214 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,220 | cpp | udp.cpp | /*
* 开启UDP协议,建立UDP服务器和UDP客户端
*/
#include "udp.h"
#include "myhelper.h"
#include "mainwindow.h"
#include <QMessageBox>
#include "app.h"
UDP::UDP(QObject *parent) :
QObject(parent)
{
}
/*
* 处理网络连接错误
*/
void UDP::connection_error(QAbstractSocket::SocketError err)
{
switch (err)
{
case 0:QMessageBo... |
14664ddf1ad2998724d1557e9995790dd363d6e2 | 98bb1ba9211f4b8b5a152814b956289fd3d59cd5 | /socket/ciwasocket.cpp | 7dc34820af03d6effd503af42940a4fb358e2304 | [] | no_license | HackerFave/shijue | 64a91b4d5b0899adea41b9b430e8c58b037946d5 | 0fc9310e8130c8a63a91359d1195c060a42c3ad7 | refs/heads/master | 2023-03-07T17:30:07.259462 | 2021-02-19T02:09:19 | 2021-02-19T02:09:19 | 328,842,915 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 14,876 | cpp | ciwasocket.cpp | #include "ciwasocket.h"
#include "qapplication.h"
#include "qsettings.h"
#include "uicommon.h"
#include <qmessagebox.h>
#include <QTcpServer> //监听套接字
#include <QTcpSocket> //通信套接字
#include <QJsonDocument>
CiWaSocket *g_ciwasocket = NULL;
CiWaSocket::CiWaSocket()
{
m_ismaster = NORMAL;
m_tcpserver = NULL;
m_tcpso... |
58a67fd2f75c062f2aebc6b2ff6b2f39aa68f177 | 7192ca4241dceb5ffa16dca8420812433f2471e1 | /thunder/Enemy02.cpp | 6d87b71b3e6a2286ebeabdf7de22c2d20165825a | [] | no_license | kong9812/thunder | 3d9f9676cb2bd823f0b768b25c3ec38c3846cf0f | 7a2275bbb9c07fdc6582767d97f23739266aa7aa | refs/heads/master | 2020-04-30T15:08:29.810364 | 2019-03-21T10:51:32 | 2019-03-21T10:51:32 | 176,911,901 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 11,710 | cpp | Enemy02.cpp | #include "main.h"
#include "basic.h"
#include "UI.h"
#include "EnemyBulletManager.h"
#include "Enemy02.h"
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
void Enemy02InScreen(float MapPos, ENEMY ... |
abda76e7a42caa81da4ef606c1c8ca7ad709fd59 | 455ecd26f1439cd4a44856c743b01d711e3805b6 | /java/include/android.view.ViewTreeObserver.hpp | 377bcd968a73a741384fb9e0d58e274752634efd | [] | no_license | lbguilherme/duvidovc-app | 00662bf024f82a842c808673109b30fe2b70e727 | f7c86ea812d2ae8dd892918b65ea429e9906531c | refs/heads/master | 2021-03-24T09:17:17.834080 | 2015-09-08T02:32:44 | 2015-09-08T02:32:44 | 33,072,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,124 | hpp | android.view.ViewTreeObserver.hpp | #pragma once
#include "../src/java-core.hpp"
#include <jni.h>
#include <cstdint>
#include <memory>
#include <vector>
#include "java.lang.Object.hpp"
namespace android { namespace view { class ViewTreeObserver_OnGlobalFocusChangeListener; } }
namespace android { namespace view { class ViewTreeObserver_OnGlobalLayoutL... |
189163cafd170697bdaaed58e51590f22367cd1f | dc88766d67755aaed03b653a9b9a71993b8d1863 | /ctl/dbmigrations/m0001_create_users_table.cpp | caaede41bac2abfbdbb4b6372c1af737bbe85020 | [] | no_license | Huessenbergnetz/Meldari | 1b6dd91fe9422e9f46db3aa33bc8d1f0f20725b1 | fe00233ef723b91f4a685acec5212848459c35bf | refs/heads/master | 2023-02-23T09:33:50.088039 | 2023-02-12T08:49:26 | 2023-02-12T08:49:26 | 166,388,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,761 | cpp | m0001_create_users_table.cpp | /*
* SPDX-FileCopyrightText: (C) 2022 Matthias Fehring <https://www.huessenbergnetz.de>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include "m0001_create_users_table.h"
M0001_Create_Users_Table::M0001_Create_Users_Table(Firfuorida::Migrator *parent) :
Firfuorida::Migration{parent}
{
}
M0001_Create_Users... |
c8bb0cf21ca37c6f8a73dae812402d612dfa7548 | f7e9665850bb02e81d6dc00e74fba3f82a56bc28 | /src/http/http_writer.h | 9b3fc3d58b5c7dff662288c8c1a2d87593f700ad | [] | no_license | Arachnid-27/servx | 0bc9ce3468249bf90d35762f5fd56c56d4cd6b8b | b880083581c404bdc2c076958e93af111bb31843 | refs/heads/master | 2021-01-20T07:40:06.852231 | 2017-09-14T08:13:30 | 2017-09-14T08:13:30 | 90,026,341 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 577 | h | http_writer.h | #ifndef _HTTP_WRITER_
#define _HTTP_WRITER_
#include <list>
#include "buffer.h"
#include "connection.h"
namespace servx {
class HttpWriter {
public:
HttpWriter(Connection* c): conn(c), end(false) {}
void push(Buffer* buf) { out.push_back(buf); }
void push(const std::list<Buffer*>& bufs) {
out.... |
0e515f9fe62627cc1122ff0359c1296ec602a835 | 7a20a5c9bd2b9f87b02f545f9e756ea35a8188dd | /BuiltIns/bdsp_builtin_delay.hpp | 72c532a58add6b2b4fe673b48e3ff1e5ef3945d0 | [] | no_license | lukehabermehl/blockdsp | 885ccaefea319f811c21418e5f59471b29ae433e | e0a24632415a5821dfbb3a285128824ec95c4cbc | refs/heads/master | 2020-04-12T05:43:29.324992 | 2017-02-18T22:59:00 | 2017-02-18T22:59:00 | 64,621,055 | 1 | 0 | null | 2016-12-06T03:05:14 | 2016-07-31T23:31:45 | C++ | UTF-8 | C++ | false | false | 1,217 | hpp | bdsp_builtin_delay.hpp | //
// bdsp_builtin_delay.hpp
// libblockdsp
//
//
#ifndef BDSP_BUILTIN_DELAY_HPP_
#define BDSP_BUILTIN_DELAY_HPP_
#include "bdsp_apu.hpp"
class BDSPSimpleDelayEffect : public BlockDSPAPU
{
public:
BDSPSimpleDelayEffect();
virtual void setupInitialState();
unsigned long getMaxDelaySamples();
virtua... |
d9efba58be5245ef66ce0583ef0383d2452b9e0b | 875ac8bfcdf6b4d8d212969342bb0c43ebce9aa9 | /Server/include/Server/messageconsumer.h | 3be2a56c5e950c3678eccd116cc36250daddf1b7 | [] | no_license | agkeramik/LearningSampling | 67e39f8de026a3ea25ae5368a1074ed3679bd399 | 69d4d9201ae596e2dbc33162577fc6ef8cabb6b7 | refs/heads/master | 2020-06-05T19:45:42.894468 | 2015-03-27T19:55:34 | 2015-03-27T19:55:34 | 30,485,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | h | messageconsumer.h | #ifndef MESSAGECONSUMER_H
#define MESSAGECONSUMER_H
#include "Thread/thread.h"
#include "Thread/wqueue.h"
#include "Server/workitem.h"
class MessageConsumer:public Thread
{
WQueue<WorkItem *> &queue;
public:
MessageConsumer(WQueue<WorkItem *> &_queue);
virtual void *run();
virtual ~MessageConsumer();
... |
6e0adb4866e438b2534232e40758d8d052d717df | 786665387cf591b1513c12ba198f3187039bd1d1 | /C++/Chapter_1/Lab1.7.1.cpp | 3cedc13e4e200b8ed0316225326c819d74256ef2 | [] | no_license | xTXXRx/C-and-CPlusPlus-Basic | 9e797265ea62563ecddebdabdf237e8c154e86b7 | 00bf8345785586b7eb6c326586af26048e60eeb4 | refs/heads/master | 2022-03-19T20:17:52.389996 | 2019-11-19T22:08:36 | 2019-11-19T22:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | Lab1.7.1.cpp |
#include <iostream>
using namespace std;
int main()
{
float firstNumb, secondNumb, thirdNumb, fourthNumb, fifthNumb;
cout << "Enter first numb : ";
cin >> firstNumb; cout << "\n";
cout << "Enter second numb : ";
cin >> secondNumb; cout << "\n";
cout << "Enter third numb : ";
cin >> thirdNumb; cout << "\n";
... |
d6c88193ad1ece86b928589a008cc371d71fc608 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/1272 2011-12-05 17 02 29.cpp | 479d4a705dfc48cc4d33580f7232c204d4ac2907 | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,012 | cpp | 1272 2011-12-05 17 02 29.cpp | ******************************
Author : townboy
Submit time : 2011-12-05 17:02:29
Judge Status : Accepted
HDOJ Runid : 5115881
Problem id : 1272
Exe.time : 31MS
Exe.memory : 968K
https://github.com/townboy
******************************
#include<stdio.h>
int a[110000],b[110000];
void... |
d306d0e72bd715c5749f74371d96a2f4337a779c | dc70f4908af7b32a76cb44a0bad0fbcabe1efc5d | /Solucion Etiquetas/main.cpp | 3198fff97a8c4511dcbf9322c8900915420b71e9 | [] | no_license | agemo999/ParalelaB58060 | 54dfb0956b2f7d1e4d175a0745489d0becd3ab12 | eac6aa078ed30c3403ac64ac470757c1c41a8093 | refs/heads/master | 2020-07-10T09:31:27.126470 | 2019-12-06T19:32:40 | 2019-12-06T19:32:40 | 204,232,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,463 | cpp | main.cpp |
#include <cstdlib>
#include <fstream>
#include <stdio.h>
#include <vector>
#include "Mapeo.h"
#include "Evaluador.h"
#include "buzon.h"
#include "Semaforo.h"
#include <cstdio>
#include <unistd.h>
#include <iostream>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/shm.h>
#include <stri... |
598aaf882312bfa737eed003d8be212de149e293 | ccb6d2726b7522af43004875e2e233bc1088774a | /carma/pipeline/DataCollectorN.h | 5f6abebb35b855d40f7cde954cfad4f20f851e36 | [
"FSFUL"
] | permissive | mpound/carma | a9ab28ed45b3114972d3f72bcc522c0010e80b42 | 9e317271eec071c1a53dca8b11af31320f69417b | refs/heads/master | 2020-06-01T11:43:47.397953 | 2019-06-07T15:05:57 | 2019-06-07T15:05:57 | 190,763,870 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | h | DataCollectorN.h | #ifndef CARMA_PIPELINE_DATACOLLECTORN_H
#define CARMA_PIPELINE_DATACOLLECTORN_H
#include "carma/correlator/obsRecord2/CorrDataConsumer.h"
#include "carma/util/PthreadMutex.h"
#include <string>
namespace carma {
namespace corba {
class Server;
}
namespace correlator {
namespace lib {
class CorrelatorData;
} //... |
f526ba60095e92cc51f80b1a974e9b746bf09f5a | b89e9833c98e1e03e765d4e9a0a0abca4442ec6e | /lectures/lec23-26/03-07/ex39/iterator.cpp | 02deefb1e497be5725153b18b534a2b75aaa77ee | [] | no_license | Jvlythical/ECS40 | 3abaf9468c4fee913480be80e083a1da05e9fb6b | cf005acfa9c1655b674e3e2d0feb26e7690dfb84 | refs/heads/master | 2021-01-10T18:46:54.458105 | 2015-09-21T06:08:55 | 2015-09-21T06:08:55 | 42,922,847 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 735 | cpp | iterator.cpp | // Demonstrating input and output with iterators
#include <iostream>
#include <iterator> // ostream_iterator and istream_iterator
using namespace std;
int main()
{
cout << "Enter two integers: ";
// create istream_iterator for reading int values from cin
istream_iterator< int > inputInt( cin );
... |
9d32948f3abd9a2d4f4d16d60e6e8b2c7e4c1208 | 7715ebc4a923709b7e5e1f4343fea386b0c8ad6c | /server/SignalHandler.cpp | 4731d130bd847fff44eb9bcd9693843426d25f28 | [] | no_license | ongonginging/service | 09547dcb2adef77ea7404ccbdbee62f46f6f85ef | deb45be884aaf44d4081ad64c82d960538333eb4 | refs/heads/master | 2020-07-08T02:24:56.383443 | 2015-10-10T08:46:10 | 2015-10-10T08:46:10 | 40,586,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30 | cpp | SignalHandler.cpp |
#include "SignalHandler.hpp"
|
d3b496176bc207d309fb447d225bc38fbd8f75d1 | f68c55921d04b5993497ba7c04f0f635717eeb31 | /Interview/FindTheives_JsonParser.cpp | 48eddf241e87018340250b25341121c40539de5b | [] | no_license | zhangruichang/Algorithm | f65edd35fddfaff68bab86478405e4d9bc55b41f | 81cd148e9864b173ae9823d0c49478d09c5adc26 | refs/heads/master | 2016-09-06T10:44:13.184651 | 2015-09-19T13:42:50 | 2015-09-19T13:42:50 | 40,401,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,508 | cpp | FindTheives_JsonParser.cpp | #include<set>
#include<map>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<ctime>
#include<cstdio>
#include<string>
#include<vector>
#include<climits>
#include<cstdlib>
#include<cstring>
#include<fstream>
#include<iostream>
#include<algorithm>
#include <unordered_set>
#include <unordered_map>
u... |
35c8796e85c64373bd4499c2261d958c59dbeccb | cb4b9964b9781972b90ee33b9f8f6a3bcde0a461 | /Main.cpp | 17461ca89ac3646862072e06915ed7143caf9d1f | [] | no_license | Taufik1997/Grupo3_Lab8 | 93c2d015a2d8ed3addfb90dcacd76996344ada0f | 695025299d5fb447527845554ee02103bfeac051 | refs/heads/master | 2020-06-10T06:07:18.147194 | 2016-12-10T00:30:51 | 2016-12-10T00:30:51 | 76,062,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,122 | cpp | Main.cpp | #include <curses.h>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <cstdlib>
#include "Escuadron.h"
#include "Soldado.h"
#include "Corazas.h"
#include "Arqueros.h"
#include "Asesinos.h"
using namespace std;
void cleanScreen();
int main(){
initscr();
start_color();
int contador = 0;
char opc[1... |
e80dba53df14eef10290210ffd051445f0f1b1dd | b2fb7f287e6c12f563dd3bc0ff287fd9077c3e74 | /C++/Linux/test/mySqlConnection/main.cpp | 293d6674ee8b132239b27967e62ab65959555b3e | [
"MIT"
] | permissive | DanyloSve/smartHouse | 3f3aa6f395e8a18beeafd9932fb50f83102931eb | e716591827ccb605b023f0429211cc996404f351 | refs/heads/master | 2020-12-05T01:08:13.449975 | 2020-05-24T09:57:58 | 2020-05-24T09:57:58 | 231,959,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,393 | cpp | main.cpp | #include <QCoreApplication>
#include <iostream>
#include <string>
#include <QSqlDatabase>
#include <QtSql>
#include <QTextStream>
int main(int argc, char *argv[])
{
QTextStream in (stdin);
//QCoreApplication::addLibraryPath("/home/daniel/GIT/test/testConnectionMySql/libqsqlmysql.so");
QSqlDatabase db = QSq... |
3cb31bbc81bfb23fb45ef42a0ebb5bd675d19216 | c64061926d36da454c2f69ef7835e112e378cada | /sport-prog/ch2/ch2_3_1.cpp | c5ff7c98caa6f2401ae5c455d0afb530df528848 | [] | no_license | farukshin/stepik | 179325b95261721eca00209230e9e68ca7354492 | d81a5eb7dcbc36925d0dfee7e451d60b681bc763 | refs/heads/master | 2022-12-05T17:25:01.390435 | 2020-08-29T17:49:35 | 2020-08-29T17:49:35 | 262,501,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | ch2_3_1.cpp | #include <bits/stdc++.h>
using namespace std;
#define ios_b \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
typedef long long ll;
typedef long double ld;
int a = 0, b = 0, res = 0;
int gcd(int a, int b)
{
if (a < b)
return gcd... |
d5acb6c0b00b5f8c41aa16b8b01367786b05c970 | b7cb90804d38d548b6c06cb449552fc6b33fcd62 | /ComponentCamera.h | 70c9fa87fe50667d1f8e06135229d11820beb3ee | [
"MIT"
] | permissive | MORTAL2000/Ezwix-Engine | 7435a1a99f75dbc54854384ab90d5a632edcd422 | 3e5bf38aa428608abd478cce005731861505c3cf | refs/heads/master | 2020-08-29T16:59:21.663341 | 2017-07-23T16:12:28 | 2017-07-23T16:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,537 | h | ComponentCamera.h | #ifndef __COMPONENT_CAMERA_H__
#define __COMPONENT_CAMERA_H__
#include "Component.h"
#include "MathGeoLib\include\MathGeoLib.h"
#include "Observer.h"
class ResourceFileRenderTexture;
class ComponentCamera : public Component, public Observer
{
public:
ComponentCamera(ComponentType type, GameObject* game_object);
~C... |
a0b841d8fbc9f33def9c9aa9215b5bc21f68087f | 4bbf93f1e13b4e4be157aa54a6042e7a35f07b18 | /tests/source/LightScene.cpp | 3c8d7306dc4ad34814ecfa75e9ab4b99e8ab0cf5 | [
"MIT"
] | permissive | singoonhe/peach3d | 39ce85c90ce08a91e45656387db65977dfb31016 | ac09379b3131cb01f34a59bd995c33fa14b9d563 | refs/heads/master | 2022-04-04T08:33:40.949312 | 2020-02-10T09:11:36 | 2020-02-10T09:11:36 | 224,649,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,680 | cpp | LightScene.cpp | //
// LightScene.cpp
// test
//
// Created by singoon.he on 3/8/16.
// Copyright © 2016 singoon.he. All rights reserved.
//
#include "LightScene.h"
bool LightScene::init()
{
// init sample list
mSampleList.push_back([]()->BaseSample* {return new DirLightSample();});
mSampleList.push_back([]()->BaseSam... |
1221e39b6b2c5146e025d48ab672f3939d633b67 | 9c60d0c8ef319d0e7a7583b604a5d380f13cf48f | /chapter_09/grader_w_classes/main.cpp | 8109aa658fe308a22811ff914a90c4abe361297d | [] | no_license | JackThorp/acceleratedcpp | a79155ad31f3cc18ea205f8f35092653bee355bc | 151f181c578177d05ca992dd05f705533c9cf834 | refs/heads/master | 2020-04-26T01:21:45.716033 | 2019-04-05T13:08:04 | 2019-04-05T13:08:04 | 173,201,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | main.cpp | #include <iostream>
#include "Student_info.hpp"
using namespace std;
double grade(double midterm, double final, double homework)
{
return 0.2 * midterm + 0.4 * final + 0.4 * homework;
}
double median(vector<double> vec) {
typedef vector<double>::size_type vec_sz;
vec_sz size = vec.size();
if(!size) {
... |
3a4ba115df85e4c7cf8d6e56a4a638e0ae35ffd6 | 158da2717e03d2eccdb0f5a737c72488a9e291d9 | /src/san_francisco_crime.cpp | 676e2d8f6f3c7420f30ad4ab99bc763684ffa135 | [] | no_license | Gnahue/san_francisco_crime | 830a77bebb9cf6f412ebc551df36129d4bd6f644 | 6965d0d2176a3891709c73495ca0a3c5fdf0ff50 | refs/heads/master | 2021-01-17T19:09:11.319464 | 2015-10-06T02:12:22 | 2015-10-06T02:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,801 | cpp | san_francisco_crime.cpp | //============================================================================
// Name : SanFranciscoCrime.cpp
//============================================================================
#include <iostream>
#include <fstream>
#include <sstream>
#include "./randomforest/dataanalysis.h"
using namespace std;
... |
22ce2c0ba4cf4d5e06cbbb7144b382d26468a738 | 39ee69301076fe46c53edf858dd472374fea51da | /DP/min_steps_to_1.cpp | 2b6277f98ed73552ce934ff06421f01f7e8ab650 | [] | no_license | imadi04/DS-CPP | b94cafc21abd38e1136ed4b2a427d09d6aa8cdf9 | d1ad1ebe8810e44f38f4c899516032f249b26dc4 | refs/heads/master | 2021-04-04T06:43:04.004649 | 2020-06-29T15:06:04 | 2020-06-29T15:06:04 | 248,433,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | cpp | min_steps_to_1.cpp | /*
Given a positive integer n, find the minimum number of steps s,
that takes n to 1. You can perform any one of the following 3 steps.
1.) Subtract 1 from it. (n= n - 1) ,
2.) If its divisible by 2, divide by 2.( if n%2==0, then n= n/2 ) ,
3.) If its divisible by 3, divide by 3. (if n%3 == 0, then n = n / 3 ).
Sa... |
8434713ff9757d04ecccb3e66ffbb87ef75f83c0 | c8990cd0efadd1009cc9418d363f50a27539d1ab | /source/BloodUnit.h | 3dbd098f9021e363ca63cb2c878dae862080bf99 | [] | no_license | elephantsguideme/Symula | a8e5c33ff5f8ce29df66887f7c2cda4f535bcde0 | 83e4ba597e6a9b686fcf153becd4655841c4a549 | refs/heads/master | 2020-03-11T11:49:57.754160 | 2018-04-18T00:23:36 | 2018-04-18T00:23:36 | 129,980,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | BloodUnit.h | #pragma once
#include "TimeEvents.h"
class BloodUnit
{
public:
BloodUnit();
~BloodUnit()=default;
//TeBloodExpired* te_expire; // this unit's projected destruction event
};
|
cf0a4253c987cf05ab78008625eb6898e441cc65 | 6ecbf084f558b37f0cee51c7226c1e116b5aa7bf | /SIR/.SIR/build_openmp_sse/src/bi/cuda/math/cublas.hpp | 00bd7b29fa1b6ea5ba05cf0ee00d300b85cd0a1d | [] | no_license | reichlab/bayesian_non_parametric | 364b12ad07b09e9a4386572bd47c709ad7629497 | c8d7eb7493addb919b8f7159768dc732ce1a1f35 | refs/heads/master | 2021-01-01T06:43:10.176687 | 2018-03-25T14:33:32 | 2018-03-25T14:33:32 | 97,492,688 | 2 | 0 | null | 2018-01-02T15:23:21 | 2017-07-17T15:38:01 | Python | UTF-8 | C++ | false | false | 2,857 | hpp | cublas.hpp | /**
* @file
*
* Macros for CUBLAS usage.
*
* @author Lawrence Murray <lawrence.murray@csiro.au>
* $Rev$
* $Date$
*/
#ifndef BI_CUDA_CUBLAS_HPP
#define BI_CUDA_CUBLAS_HPP
#include "../cuda.hpp"
#include "../../misc/assert.hpp"
#include "cublas_v2.h"
#include "boost/typeof/typeof.hpp"
namespace bi {
/*
* Map... |
b72af55f2b7acf8eb9a2566ce5e4164afe556b20 | 57b04e483fdc4a561b402a6a7032086bb69deaf7 | /Fjallvatten_esp32_blynk.ino | 49c606e59271239696f74727f49b6f9e2c86e8d5 | [] | no_license | linuskallander/Fjallvatten_esp32_blynk | 31ec5d609ccd5334063fb0864fea5d818066fdee | a1e75b2ec54a0bbdd160643c939dd71daa67c7b0 | refs/heads/master | 2021-04-03T09:25:36.190818 | 2018-05-22T04:37:14 | 2018-05-22T04:37:14 | 125,116,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,062 | ino | Fjallvatten_esp32_blynk.ino | /* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
// #define ESP_INTR_FLAG_DEFAULT 0
//#include <SPI.h>
#include "RTClib.h"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32_SSL.h>
// #include <BlynkSimpleEsp32.h>
#include <TimeLib.h>
#include <WidgetRTC.h>
#include ... |
c6161664992cd5a7184debada5ffb0e840c94701 | 5c93c93d46ae6b76dfd747e779d96bd0d71290d2 | /src/WitnessMissionNPC.h | 8b1da4e7b2eba043ba84e190db13b17c0553a3c2 | [] | no_license | RomanSery/positronic-emotions | 2726bb64ed090496b12ed33703b7752df824cf47 | 00275397e9cf0afd9be72e964fe806d9cc6a701a | refs/heads/master | 2022-01-17T03:36:49.419302 | 2019-07-24T00:07:34 | 2019-07-24T00:07:34 | 198,129,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | WitnessMissionNPC.h | //subclass of NPC
//represents the guard next to the first inspector character
#include "Npc.h"
class WitnessMissionNPC : public Npc{
private:
static bool isInvolvedInMission;
static bool talkedToPlayer;
static bool gotToEatingPos;
bool startTimer;
double time;
void updateAnimStatus(CXfil... |
dbf79e69ff45c913f34c47f670aa33c68fc4c97d | 1c30a7af853c976379b091fb6bdedaac95ca4598 | /V2/Firmware/N32B_v2.1/display.h | 9daebb46ccc63e6b5e4e86aa4b9ad21a06cc9ed5 | [
"MIT",
"CC0-1.0"
] | permissive | jaywalker76/N32B | 4a433b6a536262b1a6c54d9ee31d32d550da39ac | e51a14b2717bb316e8770509a7be0952ab14f1bf | refs/heads/master | 2023-03-26T13:50:35.698746 | 2021-04-01T13:34:35 | 2021-04-01T13:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,577 | h | display.h | /*
N32B Firmware v2.1
MIT License
Copyright (c) 2021 SHIK
*/
#ifndef N32B_DISPLAY_h
#define N32B_DISPLAY_h
class N32B_DISPLAY
{
public:
DigitLedDisplay display = DigitLedDisplay(16, 10, 15); // Display setup: (DIN, CS, CLK)
// Set the display brightness (1-15)
void setBright(uint8_t brightne... |
6fe12409a4a5f72dc32d683e9a923e09d8737811 | bfc60cc7c4bf9255c0c1b82f759fee1eefa75253 | /LEETCODE/Tree/Q993. Cousins in Binary Tree.cpp | 3674cb556b2dd0ee9489f2d0a6c86897351aae18 | [] | no_license | anushkaGurjar99/Data-Structure-and-Algorithms | aaffdd1dfaf0bdb27c070abd7f9b6b2ae540632a | c3d11d3b344b4041cd6137e857ce4d2cbef77daf | refs/heads/master | 2023-01-03T22:52:22.919771 | 2020-10-19T12:01:48 | 2020-10-19T12:01:48 | 239,680,964 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,401 | cpp | Q993. Cousins in Binary Tree.cpp | /*
* Author : Anushka Gurjar
* Date : February 2020
* flags : -std=c++14
*/
#include<bits/stdc++.h>
using namespace std;
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
*... |
8c3ab6cbb3258e136abdc202a5d9de1ce6591aa1 | 03c0ca08469df6cd92698d26d9d6173f883bc1f1 | /tools/calibrate_adxl345/calibrate_adxl345.cpp | 5a19dfe010df15c8fbc8bf329761e936b307b690 | [] | no_license | VIENA-IST/AHRS | c273081759dd01dffbae4be040b3099108553b81 | 45392735e5c4df21791ea12f9de97b98629a8500 | refs/heads/master | 2020-04-09T23:42:00.821381 | 2018-12-06T11:22:58 | 2018-12-06T11:22:58 | 160,664,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,789 | cpp | calibrate_adxl345.cpp | #include <ADXL345.h>
#include <Arduino.h>
ADXL345 accel;
int16_t ax, ay, az;
double ax_stOff=0, ay_stOff=0, az_stOff=0;
#define GRAVITY 256.0f
#define LED_PIN 13 // (Arduino is 13, Teensy is 6)
bool blinkState = false;
int I;
void setup() {
// join I2C bus (I2Cdev library doesn't do this automatically)
Wire... |
8705fefac92a022d6f6a1dddc99c215636bd5307 | 9ef4c2f8cb5f7610ba0dc221078b6f2f074ccedc | /Ghost.cpp | 9ac9a9d174d115056e92ca44f4c209cac2c59429 | [] | no_license | Fidelisus/PacManLinux | 59779e32ce5e28a3c0c30c16fb1f043344b574ca | 2b09a046dcff5340a244c57d82fde167e92cee76 | refs/heads/master | 2020-04-17T15:36:21.068647 | 2019-01-20T20:24:39 | 2019-01-20T20:24:39 | 166,705,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,432 | cpp | Ghost.cpp | #include "Ghost.h"
#include "GraphicSpawnItem.h"
#include <stdlib.h>
#include <time.h>
Ghost::Ghost(QString path, QGraphicsItem * parent)
{
loadImage(path);
loadImage(GREY_IMG_FILE);
setImage(path);
currentDirection = RIGHT;
plannedDirection = RIGHT;
stopped = true;
spawnWalker = true;
escape = false;
slowDo... |
5a88eb747ef93930a7edb0e6d67f2c641d9f6833 | 03194253d8790371447e5a82e672ce7484496eac | /android_ffmpeg/FFmpegDemo/ffmpeglib/src/main/cpp/ffmpeg9_yuvtoh264.cpp | 5db7bf70d8b324de72b6b24c8e1116d810eb2310 | [] | no_license | xingzhesun215/C_Android_AudioVideo_FFMpeg | c13829ba020bee2f248a9d1ab85a73aa04e24297 | 6dc98e5df7e2ef9d33a371218abd9b79ca1def42 | refs/heads/master | 2023-08-30T09:37:52.801373 | 2021-10-22T09:44:13 | 2021-10-22T09:44:13 | 342,739,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,122 | cpp | ffmpeg9_yuvtoh264.cpp |
#include <iostream>
#include <jni.h>
#include <string>
extern "C" {
#include "include/libavcodec/avcodec.h"
#include "include/libavformat/avformat.h"
#include "include/libavfilter/avfilter.h"
#include "include/libavutil/timestamp.h"
#include "include/libavutil/avutil.h"
#include "include/libavutil/mem.h"
#include "... |
cb3c176c707021f9948624c08a64da0d922d622f | 78918391a7809832dc486f68b90455c72e95cdda | /boost_lib/boost/geometry/srs/projections/proj/cass.hpp | fe8f4133d85ef1836587f13f54f419d2bfa78620 | [
"MIT"
] | permissive | kyx0r/FA_Patcher | 50681e3e8bb04745bba44a71b5fd04e1004c3845 | 3f539686955249004b4483001a9e49e63c4856ff | refs/heads/master | 2022-03-28T10:03:28.419352 | 2020-01-02T09:16:30 | 2020-01-02T09:16:30 | 141,066,396 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,879 | hpp | cass.hpp | #ifndef BOOST_GEOMETRY_PROJECTIONS_CASS_HPP
#define BOOST_GEOMETRY_PROJECTIONS_CASS_HPP
// Boost.Geometry - extensions-gis-projections (based on PROJ4)
// This file is automatically generated. DO NOT EDIT.
// Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2... |
e1f87afca12b4ef1682d81ee46ba1c5b8450490e | 439d28f761c1774f759fdf720c14ab2108bb93b8 | /UVa/314.cpp | aa444d158d3f4e8fc73f60eb56ec2f2ca8ac4d5c | [] | no_license | Chomtana/cptraining | 19fec94cd489c6117f49bd6d80642d60079276f1 | df380badd952dceb335525f03373738c35aa0b3a | refs/heads/master | 2021-01-09T20:53:24.758998 | 2020-04-11T04:10:48 | 2020-04-11T04:10:48 | 56,289,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,345 | cpp | 314.cpp | #include <bits/stdc++.h>
#define for1(a,b,c) for(int (a)=(b);(a)<(c);(a)++)
#define for2(i,a,b) for(int (i)=(a);((a)<=(b)?(i)<=(b):(i)>=(b));(i)+=((a)<=(b)?1:-1))
#define until(x) while(!(x))
#define all(x) x.begin(),x.end()
#define mp make_pair
#define subfunc(ret,name,args) function<ret args> name; name = [&] args
... |
7e86054edb0d08df9ebfdab9f2327379d45caae4 | 4ea70ddee4e5b0e8703f83ebb803550600747871 | /PO-zad3/Klasy/Wydawnictwo.h | 2e064aa21ebd08a07595edb8caf784a816e1b065 | [] | no_license | pgleska/C-Project | cc07604caec6bfa1e43969273e006c6fd19f4e06 | ebdfd86842e05a817a1f51c3b77809f39731b5d5 | refs/heads/master | 2020-09-11T18:25:53.041074 | 2019-12-01T20:25:53 | 2019-12-01T20:25:53 | 222,152,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | h | Wydawnictwo.h | #pragma once
#include <string>
using namespace std;
class Wydawnictwo
{
private:
int numerISBN;
protected:
string nazwa;
public:
Wydawnictwo();
Wydawnictwo(int, string);
~Wydawnictwo();
void setNumerISBN(int);
int getNumerISBN();
void setNazwa(string);
string getNazwa();
virtual void show();
Wydawnictwo& o... |
b23a75d8191791cbd99cf68de280c2bec202d344 | 442998b9a907fc9f2942fa9d81df816e8f8b9395 | /sources/EmbeddedRes/CodeSite/Nyx/NyxTraceViewer/QtTraceClient/Sources/ChannelsMgnt/ChannelsMgnt.hpp | a59fddf36757f57dddafc12e38b5f02744d83125 | [] | no_license | cobreti/MasterProject | 221109d302d09b21f7f7ff9ac2b31cd4ac9d92e4 | 21ba6fb2cb60c199c60a773e1beaa9c64f0cb67b | refs/heads/master | 2021-05-03T16:59:39.687140 | 2017-03-28T01:10:27 | 2017-03-28T01:10:27 | 34,697,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | hpp | ChannelsMgnt.hpp | #ifndef CHANNELSMGNT_HPP
#define CHANNELSMGNT_HPP
#include <QWidget>
class CChannelTreeItemDelegate;
class QTreeWidgetItem;
class CTracesViewCore;
namespace Ui
{
class ChannelsMgnt;
}
namespace TraceClientCore
{
class CTraceChannel;
}
class CChannelsMgnt : public QWidget
{
Q_OBJECT
public:
s... |
d81f8d9d468a3b220c06cadc344ff7bc58bed5e3 | a6376e1ada58384cdc0065ce5a4a96728e84f04f | /SDK/include/modules/plotting/qt/extendedtable.cpp | f62a3a625624a860e0498ea3a66acac2fa336edd | [] | no_license | widVE/Voreen | be02bac44896e869a6af083c61729d5e154c28f1 | c8a5c66f15d31f8177eeceefa19358f905870441 | refs/heads/master | 2021-08-17T23:46:19.556383 | 2020-06-22T20:21:11 | 2020-06-22T20:21:11 | 196,454,037 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,262 | cpp | extendedtable.cpp | /***********************************************************************************
* *
* Voreen - The Volume Rendering Engine *
* ... |
644644472cf706ae01ce08e074e6811e84fd41ef | e6ca731052d79229ca83e3edc8c486438ba0c7d2 | /src/Session.cpp | b2e28dcd7c76aba2c3fe2d6976b61d9d0c3e6d87 | [] | no_license | raz-mon/spl-hw1 | 415cdc25121a3bc0f5f67b6916558fff43b9d89c | 28879af6bf1689ef78276a2f6bdce2ad72a50234 | refs/heads/main | 2023-01-13T20:25:28.216681 | 2020-11-26T11:12:14 | 2020-11-26T11:12:14 | 310,576,772 | 0 | 2 | null | 2020-11-17T19:28:06 | 2020-11-06T11:20:56 | C++ | UTF-8 | C++ | false | false | 4,923 | cpp | Session.cpp | #include "../include/Session.h"
#include "../include/json.hpp"
#include <fstream>
#include <iostream>
#include "../include/Agent.h"
#include <string>
#include <vector>
using json = nlohmann::json;
using namespace std;
Session::Session():g(),treeType(Root), agents(),InfectedQueue(),cycle(){} // Empty CTR
Sessio... |
679f7450b0fdec64a4d7d86596a02a07e06f49dc | daf6773a0208ba57d8bbfcb34ab9e2cb02f31fd8 | /Module 2/T1/Resubmit/PmmResubmit.cpp | 8953aaa3bdbd0b42fe03fe1fc415b2c5bb6968cd | [] | no_license | NimduliAthukorala/SIT315 | 6d6e436cf6bee7b47cb015b882242e3cba69372e | aafa5eaa686486865f64c52f539a2310efe47035 | refs/heads/main | 2023-08-16T01:50:58.998857 | 2021-10-08T15:11:03 | 2021-10-08T15:11:03 | 393,244,405 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,361 | cpp | PmmResubmit.cpp | // import Libraries
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <chrono>
#include <pthread.h>
#include <fstream>
using namespace std::chrono;
using namespace std;
// set the number of rows and columns for the matrix
#define N 10
// set the maximum random value for matrix A and B
#define max_valu... |
df4715c7e64cd7aad400ff4c66ee3aa142c2a820 | 20638257ba94b79a76f35eb0e8219df99cc0e3bd | /SecuritySystem/SecuritySystem.cpp | f36bff5da144fe8512601c6fdcd5243193359535 | [] | no_license | rxaa/SecuritySystem | 54610633c0eecf73e30ad101e0c13673d1899d9c | a21c44c381ed467e0806acfbc4cf2dc96ae33fc5 | refs/heads/master | 2021-01-19T14:10:38.634456 | 2013-11-17T12:28:18 | 2013-11-17T12:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | cpp | SecuritySystem.cpp | // SecuritySystem.cpp : 定义应用程序的入口点。
//
#include "stdafx.h"
#include "SecuritySystem.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE,
LPTSTR,
int)
{
if (::FindWindow(0, t_t("Security System")) != 0)
{
df::msg(t_t("程序正在运行!"));
return 0;
}
df::Init(hInstance);
G::ReadMainIni();
MainConnecter::... |
8d18f2ce66f2cfb1d2b7a2474ebf74f07de2d53e | 8bcc008f5e7034545bfc8610ee0b67827dd2aa3e | /gui/querycatalog_window.h | 966054e09269732c48eab5e5091e27758eb2d43d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Xazax-hun/CppQuery | 0186692437d38606e54c95a31eb757e9075abb38 | e1b505351abbe1b770dc15b5173b2a9fa06f9866 | refs/heads/master | 2023-07-29T23:21:55.546796 | 2014-11-02T20:41:48 | 2014-11-02T20:41:48 | 16,381,035 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | h | querycatalog_window.h | #ifndef __QUERYCATALOG_WINDOW_H__
#define __QUERYCATALOG_WINDOW_H__
#include <QtWidgets>
#include <string>
namespace CppQuery {
/// \brief Query Catalog dialog.
///
/// This class displays the Query Catalog in a way that is determined by the
/// QueryCatalogModel class.
class QueryCatalogWindow : public QDialog {
... |
ad9ad1cf0e74419bc3afedf8ee2807e8f8309e20 | b507b6106ea1ef76d67655dfb6eb0226e42e2824 | /C++Projects/c++.all.samples/18.1.1genericity_swap.cpp | 656fb4d60354d016e6e464c8fd4ec78c1d55859a | [] | no_license | xuchaoxin1375/learnCpp_C | e85dd65ad30af7b355243962873b93c180c9e056 | 5515178e37a8977d9e1d1cfce580db6d5b1d5238 | refs/heads/master | 2023-02-08T22:14:27.671532 | 2021-01-02T12:31:03 | 2021-01-02T12:31:03 | 324,476,535 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 726 | cpp | 18.1.1genericity_swap.cpp | //program 18.1.1.cpp Swap函数模板(泛型实例)
#include <iostream>
using namespace std;
template <class T>
void Swap(T &x, T &y)
{
T tmp = x;
x = y;
y = tmp;
}
int main()
{
int n = 1, m = 2;
cout << "before swap():" << endl;
cout << "n=" << n << ","
<< "m=" << m << endl;
Swap(n, m); //编译器自动生成 void Swap(int & ,int & )函... |
b13f12a9e3cd9d1f4807349c13a4480ab640f72c | 59ca7d5096a25896418bc3706724f04b196348ff | /app/src/main/cpp/test.h | 08d8e895133aec1df82130a59c4f7ed4bb03eb82 | [] | no_license | aWhalefall/UntiyC | 104f0a0d313b2aa255127073b357135677f39bc2 | ce22c7d0dc12cf5bcb123687d56b43d844ef7cce | refs/heads/master | 2022-01-23T00:29:18.953572 | 2019-08-17T10:55:52 | 2019-08-17T10:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 137 | h | test.h | //
// Created by Administrator on 2019/8/17.
//
#ifndef UNTIYC_TEST_H
#define UNTIYC_TEST_H
class test {
};
#endif //UNTIYC_TEST_H
|
7071c8fc5eb20c09dacf6fa7882f64f41b58065b | e862261e1d96518c5ba41610169347a3ba685af4 | /Terrain/Method/Frustrum.h | cf0fe2fac1d81dacd6cf4c8ee1f8e930b3cc8966 | [] | no_license | Paltoquet/Terrain | 5e9b0c29053a6ebd7dc140c81eec8a904448563f | 420e02f1634a10540ab7ae048bc479d2a7a119f9 | refs/heads/master | 2021-09-07T23:50:55.713163 | 2018-03-03T15:05:41 | 2018-03-03T15:05:41 | 113,674,600 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | h | Frustrum.h | #pragma once
#include <directxmath.h>
using namespace DirectX;
class Frustum
{
public:
Frustum();
Frustum(const Frustum&);
~Frustum();
void Initialize(float);
void ConstructFrustum(XMMATRIX, XMMATRIX);
bool CheckPoint(float, float, float);
bool CheckCube(float, float, float, float);
bool CheckSphere(float,... |
04334b34210f619295997602dd0c588d56f0806c | 12fd110111f88687035b6484b8e69d86c160a08e | /ACM/Prime/10200.h | 0a3dcb524c6d291a5f8c5d4603f09842b61c3feb | [] | no_license | RobertChenKFC/ACM | 58303b39a89266c5377e8875bff03fa0728b2c4a | c5cf1bab543b33cd56db72c49d7428019c365ee7 | refs/heads/master | 2020-05-22T01:11:47.333003 | 2016-10-28T16:15:47 | 2016-10-28T16:15:47 | 60,898,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | 10200.h | // Prime Time *AC*
#include <iostream>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;
#define FORMULA(X) ((X) * (X) + (X) + 41)
const int MAX_N = 10000;
const int MAX = FORMULA(MAX_N);
const double EPS = 1.e-10;
const char NOTHING = 0, IS_PRIME = 1, IS_CORRECT = 2;
int main() {
bool ... |
a0c1e49dc56121fe4052d0950ed0f7ec8a47b51b | dd4f474ecc48f309941879b761dba5f4c5d5b912 | /ManyKitArduino/MK_ArduinoLC_I2C.cpp | 9de0f667e60e0c2b2e1b86fd1711cd9bee11f4dd | [
"Unlicense"
] | permissive | manykits/ManyKitArduino | e0d776676d4aa92bc1ce3bd5c6925f574ec50066 | f4dc989a1c04fe9111abc9974c487aa138f27286 | refs/heads/master | 2020-04-29T02:37:52.409040 | 2019-08-25T02:14:33 | 2019-08-25T02:14:33 | 175,777,789 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,679 | cpp | MK_ArduinoLC_I2C.cpp | // MK_ArduinoLC_I2C.cpp
#include "MK_Arduino.h"
#if defined MK_SCREEN_I2C
uint8_t bell[8] = {0x4, 0xe, 0xe, 0xe, 0x1f, 0x0, 0x4};
uint8_t note[8] = {0x2, 0x3, 0x2, 0xe, 0x1e, 0xc, 0x0};
uint8_t clock[8] = {0x0, 0xe, 0x15, 0x17, 0x11, 0xe, 0x0};
uint8_t heart[8] = {0x0, 0xa, 0x1f, 0x1f, 0xe, 0x4, 0x0};
uint8_t duck[8... |
baaeed2c529ee686b2b17b995eeeb8c58d210d09 | 63004b6870d71809ee3a6dd9dab09608e15c7f42 | /mainwindow.h | c2fe1b8cbfdf2d1ec9acfa4c512bf52887719fcf | [
"MIT"
] | permissive | talhaHavadar/QtSerialPortComm | 6422d9892f441ca01ae72eafbdcdfd91c48423a9 | 70eec2404d8db7cd41616797537833061ef385ef | refs/heads/master | 2021-01-18T03:33:29.725210 | 2017-03-22T10:22:31 | 2017-03-22T10:22:31 | 85,814,232 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSerialPortInfo>
#include <QSerialPort>
#include <QList>
#include <QMessageBox>
#include <QCloseEvent>
#include <QTimer>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(... |
b3bdd1eb928a6df7689b0e957128599e60fe31f6 | 94a1ae89fa4fac16b3d2a6c56ca678d6c8af668a | /include/ircd/m/dbs/event_column.h | 1b069c855748dae8a619a8b0ae22fc5cb70cc4ff | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | matrix-construct/construct | 99d677d0c2254cac2176d80690bbfd02b18a8658 | 0624b69246878da592d3f5c2c3737ad0b5ff6277 | refs/heads/master | 2023-05-28T12:16:23.661446 | 2023-04-28T05:33:46 | 2023-05-01T19:45:37 | 147,328,703 | 356 | 41 | NOASSERTION | 2022-07-22T03:45:21 | 2018-09-04T10:26:23 | C++ | UTF-8 | C++ | false | false | 3,935 | h | event_column.h | // Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2019 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice... |
d6ec2444dcf02f980822b13eb43ab6a5eca58fee | 8ae9bdbb56622e7eb2fe7cf700b8fe4b7bd6e7ae | /llvm-3.8.0-r267675/tools/lldb/include/lldb/Target/StackFrame.h | b44340e91be1879a049d38e8bff0013e6ba3e007 | [
"NCSA"
] | permissive | mapu/toolchains | f61aa8b64d1dce5e618f0ff919d91dd5b664e901 | 3a6fea03c6a7738091e980b9cdee0447eb08bb1d | refs/heads/master | 2021-09-16T00:07:16.731713 | 2017-12-29T04:09:01 | 2017-12-29T04:09:01 | 104,563,481 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,034 | h | StackFrame.h | //===-- StackFrame.h --------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
8a1a0a3f11210d93220fb701838da757c6f0b80c | 9e1bd202bf6c723c58dbf351faf6a30951af793f | /include/actor_manager.hpp | 1e619c7d5fa9fafcfca69ee7b54fa08538eef4c3 | [] | no_license | akkaze/dsps | fcef1f42016b2d4fd77a71608d777173b8161a52 | 2378f96bd76a98a1773198e47028c475b81ac8a7 | refs/heads/master | 2018-12-19T02:18:23.831732 | 2018-09-15T07:45:29 | 2018-09-15T07:45:29 | 93,138,538 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | hpp | actor_manager.hpp | #ifndef ACTOR_MANAGER_HPP
#define ACTOR_MANAGER_HPP
#include <memory>
#include "caf/all.hpp"
#include "caf/io/all.hpp"
#include "config.hpp"
#include "base.hpp"
using namespace std;
using namespace caf;
class actor_manager {
public:
static inline actor_manager* get() {
return _get_shared_ref().get();
... |
57238ff0646b678a6d2726f837138d2f8f41b11e | e4d4c543dd46a1fabdf44480953f8cd2194d0fc9 | /CSAcademy/Round #18/CS.cpp | af1b5608d7e0f3ce241c20d52e87e2ce8261b0a8 | [] | no_license | jose-joaquim/Competitive-Programming | a764a177c73f15fb50b37d061ec0c0ef0d77269b | f4ebee0b927a50b927f3b4b2ea13fe0f8d132b69 | refs/heads/master | 2023-04-03T19:40:36.269056 | 2018-06-28T21:27:29 | 2018-06-28T21:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | CS.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
bool allDiff(string a, string b){
}
int main(){
string a, b; cin >> a >> b;
if(a == b){
cout << 0 << endl;
}else{
if(allDiff(a, b)){
cout << -1 << endl;
}else{
}
}
return 0;
}
|
5eb2ef610eae931fc7900e1027aa3d9e47b917d4 | 35256ba2de206b267fd1881286b31a098631afee | /workshop/chapter3/exercise18.cpp | fd5f4f4fdb8616111981006287f3f88b36ea275d | [
"MIT"
] | permissive | mario21ic/cpp-demos | 111b81cad0a92ec28dd56186501167c186930807 | d2983e4cce4b446fdebf2c96d60f819a81d02335 | refs/heads/master | 2023-03-11T07:38:41.053591 | 2023-02-26T23:03:01 | 2023-02-26T23:03:01 | 242,247,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | exercise18.cpp | // Accessibility example.
#include <iostream>
#include <string>
class MyClass
{
public:
MyClass(int myparam=0)
{
std::cout << "++ Constructor Called\n";
std::cout << "myparam: " << myparam << std::endl;
myPublicInt = 5;
}
~MyClass()
{
std::cout << "-- Destructor Call... |
fcf543c2b4ac577c6a5d5f6e8c730b93f1df667b | feb27a8e88036b696948582dfcdf471d505988a9 | /weatherservice.h | 8a5c88ca025878f1c63e053ac8d6f0d2aa3ff42e | [] | no_license | doseikwatia/qtandroidweatherapp | 9bb973104292f9dd9fc5e479f627c7b9ee19f2e2 | ee547f13f00a3c72e11517b4e560c714f242344c | refs/heads/master | 2020-08-23T16:27:26.042572 | 2014-08-23T09:34:36 | 2014-08-23T09:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,091 | h | weatherservice.h | #ifndef WEBSERVICE_H
#define WEBSERVICE_H
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QUrlQuery>
#include <QTimer>
#include <QDateTime>
#include <QDomDocument>
#include <QProcessEnvironment>
#include <QFile>
#include <QDir>
#include <... |
47ad282adb2c8856d51784fbcba8e3b47c4bf1fa | dfadd879ccc98bb99c45651a33c80c18181589d9 | /ZeroLibraries/Platform/Posix/ThreadSync.cpp | 71af8f8a549a1d05677a290b747224cee55f8ddd | [
"MIT"
] | permissive | zeroengineteam/ZeroCore | f690bcea76e1040fe99268bd83a2b76e3e65fb54 | 14dc0df801b4351a2e9dfa3ce2dc27f68f8c3e28 | refs/heads/1.4.2 | 2022-02-26T04:05:51.952560 | 2021-04-09T23:27:57 | 2021-04-09T23:27:57 | 148,349,710 | 54 | 27 | MIT | 2022-02-08T18:28:30 | 2018-09-11T16:51:46 | C++ | UTF-8 | C++ | false | false | 1,081 | cpp | ThreadSync.cpp | ///////////////////////////////////////////////////////////////////////////////
///
/// \file ThreadSync.cpp
/// Implementation of Thread synchronization classes.
///
/// Authors: Chris Peters
/// Copyright 2010, DigiPen Institute of Technology
///
//////////////////////////////////////////////////////////////... |
93b9ca5fec56d69a9eee4bb9ff08be7b12eee069 | 5045b23e83cdcbf1ea0da3facb71e4f69b423d50 | /Stack.cpp | d5da31108705127df7c7e634293f08e426b6961c | [] | no_license | JoseGRuiz/stack | 3f122b0114ff2ffeffa9917544dce7773b772e49 | 1c43763a4c22636a4d82418c9d16d8fb41fe1fbc | refs/heads/master | 2021-01-21T10:19:17.848410 | 2017-03-01T10:03:50 | 2017-03-01T10:03:50 | 83,404,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | Stack.cpp | #include "Stack.h"
//default construcor initialize to 10
Stack::Stack(){
maxSize = 10;
stack = new T[maxSize];
height = -1;
}
//constructor with given maxSize
Stack::Stack(int s){
maxSize = s;
stack = new T[maxSize];
height = -1;
}
//destructor
Stack::~Stack(){
delete[] stack;
}
//push to the stack
void Stac... |
c6923ef619560d331b091cb0ac1026cacefcf52a | 8d32836a6c2e7e458a2a6d6f4d89f2e5c659673e | /dependencies/SRC/threading/ThreadStarter.h | a345c2d19205e1ed19e419902830cfd4a8ab0ed7 | [] | no_license | Sandshroud/Ronin | e92e53c81fdab4cefc0de964d2fb8cebc34ee41e | 94986c95e88abe6cedd240e0ce95f6f213b05d90 | refs/heads/master | 2023-05-10T21:58:29.115832 | 2023-04-29T04:26:34 | 2023-04-29T04:26:34 | 74,101,915 | 12 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 3,543 | h | ThreadStarter.h | /*
* Sandshroud Project Ronin
* Copyright (C) 2015-2017 Sandshroud <https://github.com/Sandshroud>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License,... |
1caea30ce6b8aae017eea7cea96b9935410c86a1 | 33a0eb68f7fdfb38753bf3801b50c0bdba4fdff3 | /src/config/src/objects/CConvexPrism.h | 397d287044e2b64ff6d1fb7e1072876faed58e28 | [
"BSD-2-Clause"
] | permissive | passenger311/meta-fdtd | 28d7cf4ec147cf68e5bd6c511168a3f53096a898 | a4e7c44e91331a3fdb67f6c3ddcd07ac9ba96b75 | refs/heads/master | 2021-04-30T15:27:48.574935 | 2018-02-12T10:58:17 | 2018-02-12T10:58:17 | 121,237,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | CConvexPrism.h | #ifndef CCONVEXPRISM_H_
#define CCONVEXPRISM_H_
#include "CObject.h"
#include <vector>
using namespace std;
class CConvexPrism : public CObject
{
protected:
vector<vec2> m_vPointlist;
vector<line2> m_lBorders;
double m_dHalfHeight;
public:
public:
CConvexPrism();
CConvexPrism(vector<vec2>& pointlist, double h... |
81cf4972b97504d0b8411cbcd5480c5f2e3076f2 | e1218c58f8f0c43752c4230e2add1970a6640c04 | /Number.h | 80a514f988e96fb35b11d6a673f3be1a4c751430 | [] | no_license | hoaftq/Mines | 44c9f42fcd0b03dee1311092aa5f0fb73b703c3c | 9d1a1fc9b38d049998c31ac62053b913b532a19a | refs/heads/main | 2023-01-31T05:50:53.912359 | 2020-12-10T08:16:15 | 2020-12-10T08:16:15 | 317,271,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | h | Number.h | /* Game Mines
Write by Trac Quang Hoa DKTD1,DHBK Ha Noi
Date 21-4-2008
*/
#ifndef NUMBER_H
#define NUMBER_H
#include "AfxStd.h"
class CNumber{
protected:
COLORREF m_clrLBar;//mau cua thanh sang
COLORREF m_clrDBar; //mau cua thanh toi
COLORREF m_clrBkgnd;//mau nen cua led
CSize m_sizeLed;//do lon cua led
CSize... |
4f6f43b6353ce70f4d0f8728a20ab667eb1132b6 | 1b59c125f0740a467995dc62e99739824b634440 | /Piece.cpp | af55ed0c513c10ea40998e71d0539bff193648ac | [] | no_license | JonahSeidmann/APD | 695e6995af6711bb1de8f39cb216915d43aad86e | 94eaaed828da949834fbffd6cabe4741a724c8bd | refs/heads/master | 2021-01-10T15:54:59.095838 | 2015-12-10T01:16:13 | 2015-12-10T01:16:13 | 47,729,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | Piece.cpp | #include "Piece.h"
using namespace std;
// Constructors
Piece::Piece() {
side = 0;
}
Piece::Piece(int s) { // White = 1, Black = -1, No piece = 0
side = s;
}
Piece::~Piece() {}
int Piece::getSide() {
return side;
}
|
b9025da511365127dd0698dab444d28c8a25492b | 7d941a04475cd542bbcab55e242f1d964fe3fe0f | /SDL_Wrapper/Include/MissingJoysticksException.h | 18fa829671cf4e4eb9f2b0bea9266c10594c6139 | [] | no_license | joelkaltman/TAM2C | 134eb7323378a1db035712be3df296f1abf4c733 | 1408182f540e21a7f2d906c853db2838ed5dbc40 | refs/heads/master | 2020-07-15T16:57:23.311706 | 2019-11-08T01:40:48 | 2019-11-08T01:40:48 | 205,611,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | MissingJoysticksException.h | #pragma once
#include <UtilsLib/Include/Exception.h>
class MissingJoysticksException : public utils::Exception
{
public:
MissingJoysticksException();
explicit MissingJoysticksException(const std::string& desc);
~MissingJoysticksException();
void setJoystickCount(in... |
b16b9f186924a858f91fe36a6000e7a83cf5fe81 | c5c0269650dae21b591548fe4584acce175b42bb | /progtech/Uchburch_chekit.cpp | f5948dd89624b1451aaaaee373f04cb34a393675 | [] | no_license | sarage/programming_technology | b40ca8eb4737d5cea5cc184ee8186417c0b23fee | 62d8c219f5afe2faf4a673880b9b2031a92ed11c | refs/heads/master | 2021-01-21T17:23:21.537239 | 2017-03-17T10:28:31 | 2017-03-17T10:28:31 | 85,270,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | Uchburch_chekit.cpp | #include <iostream>
#include <fstream>
using namespace std;
int main()
{ int x,y,x1,y1,x2,y2,x3,y3,q,q1,q2,q3,q4,q5,y4,y5,y6,q6,q7,q8;
ifstream xin("in.txt");
ofstream xout("out.txt");
xin>>x>>y;
xin>>x1>>y1;
xin>>x2>>y2;
xin>>x3>>y3;
q=x2-x1;
q1=x3-x2;
q2=x3-x1;
... |
f1899ea628133de283ea7641fb63722856b0fa72 | cf5c1ffa8f72ff341b76c76bad5d117a1ec69de7 | /src/Graphics/Mesh.cpp | 7d3f952d5ecbd79001840c931d6e80c95364743d | [
"MIT"
] | permissive | khskarl/tori | 6537febbefbe2b016ee1bcd998b9d4891d096538 | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | refs/heads/master | 2021-09-17T23:21:05.993417 | 2018-07-06T21:03:59 | 2018-07-06T21:03:59 | 99,284,858 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,096 | cpp | Mesh.cpp | #include "Mesh.hpp"
#include <vector>
#include <Log.hpp>
Mesh::Mesh () {}
Mesh::~Mesh () {
glDeleteVertexArrays(1, &m_VAO);
glDeleteBuffers (1, &m_EBO);
glDeleteBuffers(1, &m_positionVBO);
glDeleteBuffers(1, &m_texCoordVBO);
glDeleteBuffers(1, &m_normalVBO);
glDeleteBuffers(1, &m_colorVBO);
}
void Mesh::S... |
b91363f5e403cc4512fb6596cf6e4a062bfc06c0 | 51326c9d158d7f43bc13e5fa2cc06f0945a843e7 | /src/fleche.cpp | 583bf67d1a5587d1d2ef51ed2cb801fd5f64cb03 | [] | no_license | Leo-Bourbon/sfml-team-15 | b471fcc6ed0ac173c9f824938179d7ebf2197425 | 9dd36b5d4d8d795c9145263db7c5adb10a13376a | refs/heads/master | 2020-09-13T23:26:41.850769 | 2019-11-19T20:29:41 | 2019-11-19T20:29:41 | 222,937,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | fleche.cpp | #include "Fleche.hpp"
Fleche::Fleche()
{
//ctor
this->vie = 1;
}
Fleche::~Fleche()
{
//dtor
}
void Fleche::deplacer(Vector2f direction) {
this->forme.move(direction);
}
|
2df3c9fad35bcc6e7380c428fcbfe27acd8f2d81 | abab4827d0c9924401a21ed5400a3f292c56772f | /tests/source/comm/PsudoMailman.cpp | 7cb8054c545e0adc0d4473667d8cac1f2216bac1 | [] | no_license | davidxk/shrewd | d01afcb7fbb01886d98dd99ca3e4390f4f244920 | c99fd4df4ae68f42e82afcf0e8077880b40df2b3 | refs/heads/master | 2020-04-06T21:27:44.437733 | 2016-12-16T10:12:02 | 2016-12-16T10:12:02 | 43,930,408 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | PsudoMailman.cpp | #include "comm/PsudoMailman.h"
#include <fstream>
void PsudoMailman::init(const char* si, const char* sp, const char* ci, const char* cp)
{
int i=0;
cout<<"-----Testing Controller-----\n";
cout.flush();
ifstream fin("input/input2.txt");
while( getline(fin, msg[i++], '#') );
//for (int j=0; j<100; j++)
//cout... |
fb32883661ca2b422ad9864fc43392334bc04120 | 5495b49642d3cb76b682e09cc4c7febc3938fcda | /MyCpro/MyCpro/myc++/media/SilkFileStreamSource.cpp | 89f178d937105276e0a80b969954e77b3189d3f2 | [] | no_license | DeXianLin/MyCPro | d04dd8bbad74080aa2a4640149e3df4b84f03a35 | 0c28f009d81c5fcc3e350397d076b3cf33cca87b | refs/heads/master | 2023-05-29T04:48:27.965539 | 2021-06-16T06:11:54 | 2021-06-16T06:11:54 | 377,346,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,789 | cpp | SilkFileStreamSource.cpp |
#include "SilkFileStreamSource.hpp"
#include "CodecManager.hpp"
#include "StreamPlayScheduler.hpp"
vl_status SilkFileStreamSource::spsStandby() {
vl_status ret = VL_ERR_SILK_STORAGE_PREPARE_FAILED;
if(VL_TRUE == silkFile.readable() && NULL != decoder && SPS_WAITING == playState) {
ret = VL_SUCCESS;
}
retu... |
30c32ffb849c052a89b3c93a9dea48d471ea7411 | a967aa2edbcf89e682cd9af22470b42371beb5e5 | /src/UtilsLib/FileWatcher.h | e92fb56af9788a0ad9a68d2c08caf5b10890c056 | [] | no_license | belzen/RenderLab | 0410c6329a0ec6ffc536f37244c4fd8dfc93f927 | fa4f6b6a394c806880198114b96a5ddb5c9996b5 | refs/heads/master | 2020-04-06T05:54:50.780909 | 2020-01-26T01:52:09 | 2020-01-26T01:52:09 | 51,707,479 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | FileWatcher.h | #pragma once
namespace FileWatcher
{
typedef int ListenerID;
typedef void (*FileChangedFunc)(const char* filename, void* pUserData);
void Init(const char* path);
ListenerID AddListener(const char* pattern, FileChangedFunc callback, void* pUserData);
void RemoveListener(const ListenerID listenerId);
void Cleanu... |
7fbe5b9b14cb8dcb07240cf2b94e7756ed0a02ca | 88d63df7148cb73e1c5146c2b0933bab6e548a96 | /vtkImageViewer3.h | b0bedcb286882e090eb24e1086d4a96feaad1227 | [] | no_license | igoslly/3DImageViewer | ca85f3d3a88df4f3dc4a34181f32143752df2545 | 579aa456629ed5580d4e8b782d1db0764d83a410 | refs/heads/master | 2021-01-15T09:27:48.700713 | 2015-10-30T05:57:40 | 2015-10-30T05:57:40 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 828 | h | vtkImageViewer3.h | #include "vtkInteractionImageModule.h" // For export macro
#include "vtkObject.h"
class vtkAlgorithmOutput;
class vtkImageViewer2;
class vtkRenderWindow;
class vtkImageViewer3 :public vtkObject
{
public:
static vtkImageViewer3 *New();
vtkTypeMacro(vtkImageViewer3, vtkObject);
vtkImageViewer3(vtkIma... |
749c0f2a1505499de9daa703a4cc6f40b8471f49 | 132dbb86bd06fdadc99d32fb13d03c4d215f262d | /CircularBarnRevisited.cpp | a439f428e60880d399fccb7583f0680313f2b20b | [] | no_license | bossbobster/USACO-Training | 90d481c2241aa50d467d3acadfd2cf80264dc087 | 4689499a24844f39e385a06d49c1c602277fc0e6 | refs/heads/master | 2023-02-20T00:31:45.689765 | 2023-02-05T09:30:02 | 2023-02-05T09:30:02 | 204,623,891 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,169 | cpp | CircularBarnRevisited.cpp | #include <iostream>
#include <iomanip>
#include <algorithm>
#include <math.h>
#include <vector>
#include <stack>
using namespace std;
typedef pair<int, int> pii;
#define max(n, m) ((n>m)?n:m)
#define min(n, m) ((n<m)?n:m)
#define f first
#define s second
/*int nums[110];
int dp[210][10][210]; // current index, doors u... |
87eead563f6c8e2e4c688ee867bd424fd180facb | 7515ec5de7623293eb464cdc4f5824025749a62f | /code/链表.cpp | 549f8463f3c8dfc4238f6ad472c939871486c3bc | [] | no_license | nangongye/cppTest | fef90ef2aef8ad3070d195b2d38293f701696637 | c2041e98a15d5b7db0c7ca267b8d332ad3a620b4 | refs/heads/main | 2023-08-16T15:20:31.794912 | 2021-10-15T13:58:34 | 2021-10-15T13:58:34 | 417,516,879 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,323 | cpp | 链表.cpp | #include<iostream>
#include<list>
using namespace std;
#include<algorithm>
void PrintList(const list<int>&L) {//为了防止遍历的时候修改容器里面的内容,加const
for (list<int>::const_iterator it = L.begin(); it != L.end(); it++) {
cout << *it << " ";
}
cout << endl;
}
//void test01() {
// list<int>L1;
//
// for (int i = 0; i < 5; i++) ... |
a7fabaa07bacca767390e4a04a7b5dff14e312bd | 78d83298eff5aa61e4cf915e0a22ac03481d21a4 | /test/ca_test/exec_cmd.cpp | 2be2059789f1e77ee77f6c3eb444c2fdbaa15f00 | [] | no_license | zLimbo/zca | 7d87ae08aa0f3a492ffd6638643fd84cf6e9ebe6 | 389655e786092a6cbbf5ef632f22a7ba3425fece | refs/heads/master | 2023-08-14T04:57:00.319663 | 2021-09-09T01:14:07 | 2021-09-09T01:14:07 | 357,830,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | exec_cmd.cpp | #include<cstdlib>
#include<string>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
const int N = 300;
void Test(void){
char line[N];
FILE *fp;
string cmd = "echo 01 > /etc/pki/CA/serial";
//引号内是你的linux指令
// 系统调用
const char *sysCommand = cmd.data()... |
0f6d61544c34ef1d883d5a68144f21c512575de8 | 2cddc33868b3d3ee2ba3bc9060df5acd08d59a07 | /InClassExamples/CPP/Vehicle.hpp | d3178ae4d395573b61f7c3094bc6133e27bd91fb | [
"MIT"
] | permissive | krixi/intro-to-c | b5423cfb669a3b56c4b656efda94730f20a8f6df | b5d3564a8998c6b2d8d27a8eb2aa4dfa0c98de34 | refs/heads/master | 2021-01-21T13:49:37.893992 | 2016-04-29T14:59:24 | 2016-04-29T14:59:24 | 49,113,906 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 376 | hpp | Vehicle.hpp | #pragma once
#include <string>
class Vehicle
{
protected:
int year;
std::string make;
std::string model;
public:
// Constructor
Vehicle(void);
Vehicle(int yr, std::string mk, std::string mdl);
// Destructor
virtual ~Vehicle(void);
virtual std::string toString(void);
virtu... |
18e1adf47a76f76bee9ce2081593c2297ec8a69b | 83f8b9f93c2da61440fd92dea7363328cfc1790c | /analyze/proxy_player_controller.cpp | 07bc5c321d63b44aaa0a76f3c6a5dd4890b6aa08 | [] | no_license | Renat060888/player | b1a78d5207067baaae8369a60d38da73192829cf | 83865faeeceba561c62a9ea35b56d3c8046dc35f | refs/heads/master | 2021-04-14T15:51:55.395336 | 2020-06-07T06:31:44 | 2020-06-07T06:31:44 | 249,243,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,759 | cpp | proxy_player_controller.cpp |
#include "proxy_player_controller.h"
using namespace std;
using namespace common_types;
ProxyPlayerController::ProxyPlayerController()
{
}
ProxyPlayerController::~ProxyPlayerController()
{
}
bool ProxyPlayerController::init( const SInitSettings & _settings ){
m_state.settings = _settings;
return tru... |
f95e4378e821321f8142ac030b4710f12419b20b | e50dcbcc1fd89e35554a09146ea55b32dd43e5d3 | /OpenFrameworks/JasonDanceSystem/src/ofApp.h | caad67169e05f5d71c2f6a6614272f33a22a9935 | [] | no_license | operatoolkit/OperaToolkit | c54f2eebb18503a9cd7a8898486a10df578d1486 | 2059ad0f24bf3fa1b00f392a380902b0e603ee56 | refs/heads/master | 2021-01-18T15:48:27.993325 | 2015-11-20T18:04:36 | 2015-11-20T18:04:36 | 37,234,115 | 19 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | h | ofApp.h | #ifndef _TEST_APP
#define _TEST_APP
#include "ofMain.h"
#include "openNIManager.h"
#include "flowManager.h"
#include "postProcManager.h"
#include "laserScene.h"
#include "smokeScene.h"
#include "particleScene.h"
#include "lineScene.h"
class ofApp : public ofBaseApp{
public:
void setup();
void upda... |
ab747b60049f82efb20f955587ba22e3079f835e | 67b645a97d18d12841a1ac70aaf3f4c87b5d96d6 | /framework/code/graphic/drawer/DrawerBlur.h | 8238af5df5a4e9118d42a8730ed5af760ee664c6 | [] | no_license | H405/MSProject | 051d8ac7dbc8e6e0a39d9b6abdcceece102267d0 | 07cb61afc4ed5caa2c6ee2a928a3f5c6d34ccdc3 | refs/heads/master | 2021-01-10T17:44:19.281382 | 2016-01-19T23:54:43 | 2016-01-19T23:54:43 | 44,644,877 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,486 | h | DrawerBlur.h | //==============================================================================
//
// File : DrawerBlur.h
// Brief : ブラー描画クラス
// Author : Taiga Shirakawa
// Date : 2015/11/10 tue : Taiga Shirakawa : create
//
//==============================================================================
//*********************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.