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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9d50cfe4cea85f4855b6a1934c54976f68e21b4 | 8356e0864dd7d8ba0d290fc43c3acae7e8e9269a | /leti/2304/klimuk/hw3/nodes.h | 3c79ca5e29ff50ce720f114cc92364d4536ddbc7 | [] | no_license | eugenyk/hpcourse | b5231a59a3eed621fce99baabb1b85f4056e441f | d3360d823e464b0bb2e451fc8594b5471beb8455 | refs/heads/master | 2022-12-24T22:52:28.489809 | 2019-07-01T15:37:33 | 2019-07-01T15:37:33 | 46,411,508 | 32 | 319 | null | 2022-12-16T03:40:17 | 2015-11-18T10:26:09 | C++ | UTF-8 | C++ | false | false | 6,939 | h | nodes.h | #ifndef NODES
#define NODES
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <utility>
#include <vector>
using std::vector;
using std::pair;
using std::ofstream;
struct img {
img(std::string name_, vector<vector<uint>> pixels_): name(name_), pixels(pixels_) {}
... |
5023f22e948ba9ae393556c423b71a53a6987d6a | 596f23f758dd94ed848dd3983093db4550ee18a1 | /bit manipulation/tooglebits.cpp | b2dff6f08947935c82bdbbb2dd9177650f0415bf | [] | no_license | VishalKumarRao123/cpp | 555b588b1ece19961359ab1163fe2753588b4e7b | 61fe0be6ccbdb4a02b7ed21d5cfc49d4bf578abd | refs/heads/main | 2023-09-01T01:05:41.047847 | 2021-10-09T18:05:51 | 2021-10-09T18:05:51 | 409,192,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | tooglebits.cpp | #include<bits/stdc++.h>
using namespace std;
int nob=0;
void binary(int n){
if(!n)
return;
bool b=n&1;
nob++;
binary(n>>1);
cout<<b;
}
int main(int argc, char const *argv[])
{
int n=19;
int m=n;
binary(n);
return 0;
}
|
76264b900c493733badceadc3e4b6a6c962df75e | 02a10a5244d2214e932e54399e4b56b68fe5974b | /headers/UIPackError.h | 1d97e6cef1577f185d3abfc1acbd103000363204 | [] | no_license | inxomnyaa/symbols-auto | 839381c1e83f434b76b2faccadee5e413ac5f376 | 439a1399473cc765badc1b5c438fbf83d9eadf1d | refs/heads/master | 2023-06-21T23:17:07.389321 | 2019-11-16T19:13:05 | 2019-11-16T19:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | h | UIPackError.h | #pragma once
class UIPackError : PackError {
virtual ~UIPackError();
virtual ~UIPackError();
virtual void _ZNK9PackError18getLocErrorMessageB5cxx11Ev;
virtual void _ZNK11UIPackError21getLocErrorMessageMapB5cxx11Ev;
virtual void _ZNK11UIPackError23getEventErrorMessageMapB5cxx11Ev;
}
|
09735d06623592e6956f77cc5bbbb2e52214d15b | f1d1b2c25c39f0518e61dbad9a8a69432d4c74cb | /src/Plugins/PluginST/World/ContactListener/ContactListener.cpp | 051c566bb3a2b41a0c71a3e79f3d75ef09b4f7b1 | [] | no_license | SIL3nCe/SteelTraining | 428c9845ece8088fbd684db81b0ff1338d65f049 | 09218167000c1fcb2c8be83cdd25714225611629 | refs/heads/master | 2020-04-05T00:28:55.231616 | 2019-07-27T23:42:21 | 2019-07-27T23:42:21 | 156,398,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | ContactListener.cpp | #include "ContactListener.h"
#include "../Object.h"
#include "../Projectile/Projectile.h"
/**
* @brief Constructor
*/
ContactListener::ContactListener(void)
{
// ...
}
/**
* @brief Destructor
*/
ContactListener::~ContactListener(void)
{
// ...
}
/**
* @brief BeginContact
*/
void ContactListener::BeginContac... |
c287e29d3f0c8a31c41196d9a6396f594eb6ae35 | 6456978ebb4921fdb95e699419b85ceade701be0 | /homework/09/ThreadPool.h | 4d740de28e3ac9a348a2c8f1129cf64a16e73486 | [] | no_license | LevKats/msu_cpp_automn_2019 | ba74800a3a1359999e92efac14169ce8f6e28423 | a341e000419beefe5768ede92e60091ea2727727 | refs/heads/master | 2020-08-08T21:07:21.851684 | 2020-01-21T01:09:37 | 2020-01-21T01:09:37 | 213,919,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,236 | h | ThreadPool.h | #pragma once
#include <vector>
#include <exception>
#include <algorithm>
#include <pthread.h>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <future>
#include <queue>
#include <functional>
#include <atomic>
class ThreadPool
{
public:
using Function = std::function<void()>;
explicit T... |
f0512efc59c5154528c8dc5625055b6a1b66d8ac | d6f3668b930770e3d63bfb5c6fbfeeb187f1c607 | /BassZeroVSTi/Source/Application/Files/SynthApplicationFolder.h | 4fb2603b83c5e873e6a681555a3503c8e7002097 | [] | no_license | gorangrubic/imbAVR.ArduinoSynth | 97240e751f1833a2c9fa472143fbb741b1ce07a8 | 45a9d15e64881bf44e50f3567203b5899f49e9d6 | refs/heads/master | 2020-07-09T00:58:50.968308 | 2019-10-28T05:25:54 | 2019-10-28T05:25:54 | 203,828,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | h | SynthApplicationFolder.h | /*
==============================================================================
SynthApplicationFolder.h
Created: 22 Oct 2019 7:30:21pm
Author: gorangrubic
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
#inc... |
c114aaba11c7de77db42f22f0f275fc5c52d8386 | 3e59df4e42f95b8bebd4185eb8823c91bf178293 | /include/ImprovedEnum.hxx | 07ff817a95e2a76050831cdf6d20630a9cd61f08 | [
"MIT"
] | permissive | Redchards/ImprovedEnum | 75341b9930a86ff419d238d176b357ccb1a33b98 | 2f662edc54b54eebeaad70d53133646f1659d14f | refs/heads/master | 2021-06-12T22:28:50.035982 | 2021-06-04T01:18:19 | 2021-06-04T01:18:19 | 58,484,544 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 40,592 | hxx | ImprovedEnum.hxx | #ifndef ENUM_UTILS_HXX
#define ENUM_UTILS_HXX
#include <array>
#include <iterator>
#include <tuple>
#include <type_traits>
#include <iostream>
#include <MacroUtils.hxx>
#include <StaticString.hxx>
#include <Range.hxx>
#define TRIM_ENUM_NAME
// Would be better to replace the specialization method by a thing like
//... |
38cea800c7c99ee302ec6ad36e38f70b124d8d0f | 043182421d07410b8cc8982f9b864d9e9d82a5bf | /Image_Processing/ImageDlg.h | bf7b76bd27c2025db94755dffd6d93dc1f88c434 | [] | no_license | Noligz/Image_Processing | ebf2e5fce114b08b6f7a64e2002199ca035a01ea | 553f975fe5c0f72c10df72482a38efa313acf379 | refs/heads/master | 2016-09-06T14:32:00.189966 | 2013-07-27T02:08:36 | 2013-07-27T02:08:36 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 580 | h | ImageDlg.h | #pragma once
// CImageDlg 对话框
class CImageDlg : public CDialog
{
DECLARE_DYNAMIC(CImageDlg)
public:
CImageDlg(CWnd* pParent = NULL, CImage* pImg = NULL); // 标准构造函数
virtual ~CImageDlg();
// 对话框数据
enum { IDD = IDD_IMAGE };
CImage* m_pImg;
int imgWidth;
int imgHeight;
int ImgOffset;
protected:
virtual voi... |
12a0a0c3e87ea4c53b43856d7a10452b83ad1192 | 71c1e89cac41d2fd43a8d569d45e11fe3940e51a | /include/bitmap_header.h | c767ab27e923134e69535f4b4184c14f27e31eed | [] | no_license | sascha432/esp8266-kfc-fw | 3f850a4d72d7b1a9204401aa09deab88b987f79b | 27dddd624b8d69cc2d2aeac08dee679ac1216466 | refs/heads/master | 2023-08-17T00:42:14.852718 | 2023-08-13T18:13:53 | 2023-08-13T18:13:53 | 159,572,123 | 10 | 2 | null | 2021-04-18T02:44:46 | 2018-11-28T22:10:18 | C++ | UTF-8 | C++ | false | false | 1,317 | h | bitmap_header.h | /**
* Author: sascha_lammers@gmx.de
*/
#pragma once
#include <Arduino_compat.h>
#include "push_pack.h"
#if !_MSC_VER
typedef struct __attribute__packed__ {
uint16_t bfType;
uint32_t bfSize;
uint16_t bfReserved1;
uint16_t bfReserved2;
uint32_t bfOffBits;
} BI... |
fb3f3b6aa6a06f89242fe78fbc5e7f8b63e6177e | c51febc209233a9160f41913d895415704d2391f | /library/ATF/tagFUNCDESC.hpp | d96e15c4728df162db48b64bf9d63f2f7b2ef2f4 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 646 | hpp | tagFUNCDESC.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <tagELEMDESC.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct tagFUNCDESC
{
int memid;
int *lprgscode;
tagELEMDESC *lp... |
87e1d1c6da0042f402d3196b1409277f52ec4445 | 85f87088bbc2a7426319fdd91109d34efcc4b05b | /src/alib/expressions/detail/virtualmachine.cpp | 936ef0e6c1954e0c1ff58f2526c06d3207351824 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AlexWorx/ALib-Class-Library | 7c6ea35780fa690864f8e730cee1891ca4aa71d9 | 83e7562fdd43216dcc9b8cff2b774737a40808c0 | refs/heads/master | 2020-03-16T22:55:15.195985 | 2019-12-16T12:28:18 | 2019-12-16T12:28:18 | 133,057,682 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 33,250 | cpp | virtualmachine.cpp | // #################################################################################################
// ALib C++ Library
//
// Copyright 2013-2019 A-Worx GmbH, Germany
// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
// ###########################################################... |
0a8746bdbac6c2d7a30318e323f504a65e68fb96 | 596baf37a1625ea59f03ede8310bc6839867bf9e | /ArduinoCanbusMonitor/ArduinoCanbusCode/ArduinoCanbusCode.ino | b762fca870f5041033b7575e82644d1ab1507af7 | [] | no_license | sixuerain/Arduino_Canbus_Monitor | d0f5fc28a46dc4e6ca911c862f02ae259ae2a28e | 39af4536a77060e44387e0715e7e1626f32c7cdf | refs/heads/master | 2020-11-28T19:32:40.810417 | 2018-06-12T07:51:40 | 2018-06-12T07:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,644 | ino | ArduinoCanbusCode.ino | // Arduino based Canbus monitor
// communicates with host PC program written in C#
#include <SPI.h>
#include "mcp_can.h"
int stringSplit(char *str, const char *delim, int data[]);
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 10;//9;
MCP_CAN CAN(S... |
89a17036fcb93ea1029cfdaca1b8837e8edc03ba | 22ecb9fce47102845ff060eadcfa0e04391027e0 | /Projekty Boost C++ Visual 2015/Boost_accumulators/Boost_accumulators/Boost_accumulators.cpp | f214bc04dda7aac31803a59f9e7c98eb2f1b7837 | [] | no_license | piterbuchcic1990/Programming-C-plus-plus | c0073d40678fda6b45f0de933ddabcd0a5458ed5 | d3ecea0e72d77dbd03cf67a6c9f6176cc67e8298 | refs/heads/master | 2021-06-12T12:12:49.021473 | 2017-02-09T15:13:14 | 2017-02-09T15:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | cpp | Boost_accumulators.cpp |
#include <iostream>
#include <boost/accumulators/accumulators.hpp> //naglowek dla klasy
#include <boost/accumulators/statistics.hpp> //naglowek dla funkcji obliczajacych
using namespace boost::accumulators;
using namespace std::tr1;
class B { public: int a = 13; };
struct C:B //bez klauzury to dziedziczenie publiczn... |
5955e98d78fd9a78fc88bed78a98df5d57898d8c | 58e54ea868bc75157909ee81db1a190928bb9bbd | /C3/LT-22 Generate ParenthesesL.cpp | e5030d0648177c3d2ea10b1390e94dd7992507d3 | [
"MIT"
] | permissive | yekesit/OA-or-Interview-Questions | 49368aa92ce63a72f2246830a2279b35ca7f7e0b | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | refs/heads/master | 2020-06-04T11:27:48.451070 | 2019-08-15T21:21:27 | 2019-08-15T21:21:27 | 192,002,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 887 | cpp | LT-22 Generate ParenthesesL.cpp | //
// Created by Ke Ye on 2019-07-21.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution{
public:
vector<string> generateParenthesis(int n) {
int left = 0, right = 0;
vector<string> res;
string cur;
helper(res, cur, left, right, n);
return res;
... |
5902bc7a24889889647fc14fa8f77c678b620c1f | 20760544859b3963ed8178b19804eaf96e0dc814 | /src/Display.cpp | dbe4cf2bc87cd33389675c8525975988f71b2f64 | [
"MIT"
] | permissive | azadad96/chip8_emulator | aa7f852be657949f5e2a21b936ed2da3082cbda3 | fed45202269fe7d41692f05144c8f04a5c97fb04 | refs/heads/main | 2023-07-03T22:28:40.921340 | 2021-07-11T20:56:50 | 2021-07-11T20:56:50 | 308,472,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,475 | cpp | Display.cpp | #include "Display.hpp"
Display::Display() {
memset(display, 0, sizeof(display));
running = true;
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) != 0) {
printf("Couldn't initialize SDL\n");
exit(-1);
}
window = SDL_CreateWindow(
"Chip8 emulator",
SDL_WINDOWPOS_UNDEFI... |
1629757c02e87c43b4b3e939370209a2fc3cd997 | c322776b39fd9a7cd993f483a5384b700b0c520e | /cegui.mod/cegui/src/falagard/CEGUIFalPropertyDefinitionBase.cpp | 20da5343e855c4f19f120eebb2c6cc80dfeba5b3 | [
"Zlib",
"BSD-3-Clause",
"MIT"
] | permissive | maxmods/bah.mod | c1af2b009c9f0c41150000aeae3263952787c889 | 6b7b7cb2565820c287eaff049071dba8588b70f7 | refs/heads/master | 2023-04-13T10:12:43.196598 | 2023-04-04T20:54:11 | 2023-04-04T20:54:11 | 14,444,179 | 28 | 26 | null | 2021-11-01T06:50:06 | 2013-11-16T08:29:27 | C++ | UTF-8 | C++ | false | false | 3,490 | cpp | CEGUIFalPropertyDefinitionBase.cpp | /***********************************************************************
filename: CEGUIFalPropertyDefinitionBase.cpp
created: Sat Oct 8 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/***************************************... |
a65b0c5e275bd31612238c6f84ecc8c2b3cc4e23 | 501233a217b36ec6c86b50f72b297e00c6c6133c | /src/tests.cpp | 099d2f5e6ce2b08de7dc9de90ce3503dd550b1c8 | [
"MIT"
] | permissive | codr7/ampl | 2a44d9e87b17b80dabcf03e38cf1d2b2ffe41bec | e6adc9416c2d1ba4c421dfda0c2fca5cc65fe947 | refs/heads/main | 2023-08-28T21:03:22.765326 | 2021-11-06T17:35:07 | 2021-11-06T17:35:07 | 413,568,056 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | tests.cpp | #include <cassert>
#include "ampl/rbuf.hpp"
using namespace ampl;
static void rbuf_tests() {
RBuf<int, 3> buf;
buf.push(1);
buf.push(2);
assert(buf.count == 2);
assert(buf.pop() == 1);
buf.push(3);
buf.push(4);
assert(buf.count == 3);
assert(buf.pop() == 2);
assert(buf.pop() == 3);
assert(b... |
fb17d7bc3706328af10e596d7e9079b22ad6bceb | f9ad496cf96e02a690a5f41e5758c92388fb2b76 | /source/server/nanomsg/survey_server.cpp | 0a0d29405b878bc91819fb06cd70d3b348d109e3 | [
"MIT"
] | permissive | coolniu/CppServer | 90b338383e920cf29e56ab5fffccf981b7bd7160 | da272e324a4fb8fb7a85b8bf3bf5758a48ee07ce | refs/heads/master | 2020-12-30T11:28:58.062254 | 2017-05-15T18:17:57 | 2017-05-15T18:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | cpp | survey_server.cpp | /*!
\file survey_server.cpp
\brief Nanomsg survey server implementation
\author Ivan Shynkarenka
\date 02.02.2017
\copyright MIT License
*/
#include "server/nanomsg/survey_server.h"
#include "errors/exceptions.h"
namespace CppServer {
namespace Nanomsg {
std::tuple<size_t, bool> SurveyServer::Re... |
458f74588d731163c7e8617a53e765098c910741 | 7abbbef9590f9c4b9469adcbae5ea8907478bf03 | /chromium_git/chromium/src/out/Debug/gen/blink/bindings/core/v8/V8AssignedNodesOptions.cpp | 46a6ef25ae4a5c794c9a34e82abbf30dd1eaaa28 | [
"BSD-3-Clause"
] | permissive | GiorgiGagnidze/CEF | 845bdc2f54833254b3454ba8f6c61449431c7884 | fbfc30b5d60f1ea7157da449e34dd9ba9c50f360 | refs/heads/master | 2021-01-10T17:32:27.640882 | 2016-03-23T07:43:04 | 2016-03-23T07:43:04 | 54,463,340 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,713 | cpp | V8AssignedNodesOptions.cpp | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "V8AssignedNodesOptions.h"
#include "bindings/core/v8/ExceptionSta... |
a15ef40da8b775456a59b410d06a29d400cd6212 | d81c631cd48d0a9c206d0c27adad7fb929d4b761 | /RoomServer/NetworkManager.cpp | 8f18ee12d68a71d58444ef61f51d11aa6a9af069 | [
"Apache-2.0"
] | permissive | GameForPeople/room-server-framework | 5d90ddb8396b27fac02c1f8c4d0cf8454ed7c6d8 | 369be17c929304a2abfd77257574bbe3e9d1ef64 | refs/heads/master | 2022-04-15T05:21:20.956753 | 2020-04-10T09:49:47 | 2020-04-10T09:49:47 | 250,313,775 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,635 | cpp | NetworkManager.cpp | #include "stdafx.h"
#include "MemoryUnit.h"
#include "UserUnit.h"
#include "NetworkManager.h"
#include "Utils.h"
NetworkManager::NetworkManager()
: sendMemoryPool()
{
// Send에 사용할 메모리를 미리 할당합니다.
for (int i = 0; i < SEND_MEMORY_POOL_SIZE; ++i)
{
sendMemoryPool.push(new SendMemoryUnit);
}
#if MULTI_SEND_THREAD... |
203172e47d7f14655061a2fe3e55022bca804c5e | bdfca0068ae9b849781add731dbf2ed4e07d6536 | /app/ArmControl.h | 21063f9cbdb4fb4c6571fb740903ff14797cd633 | [] | no_license | mhikichi1969/hackEv3_2019 | 6b8d6ec7a3f96d599efafeeefd656f57cc565449 | 41bbd4e466dc5915d06cb9a1edd3826b4ed99a53 | refs/heads/master | 2023-02-01T14:21:09.258552 | 2019-10-13T00:46:52 | 2019-10-13T00:54:25 | 210,835,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | h | ArmControl.h | #ifndef _HARMCONTROL_H_
#define _HARMCONTROL_H_
#include "Motor.h"
#include "HBTtask.h"
#include "HPID.h"
#include "util.h"
//using namespace ev3api;
class ArmControl {
public:
ArmControl(ev3api::Motor& arm,HBTtask *bt);
~ArmControl();
void run();
void lock();
void decAngle();
void incAngle... |
c1a03ae04c01c302b033e96e4790732476a104b9 | c747cfbe51cc24d15e49a888072d34635833d90a | /17_LetterCombinationsOfPhoneNumber.cpp | aec5759a60b8f28dd41a3a94b67f51d3dcf43e93 | [] | no_license | bigship/leetcode_solutions | 18921508a8acba25013ae65864168c4c084bef37 | 45edfab5f1696fa9b3b59b63663aa9524de209cd | refs/heads/master | 2022-08-22T05:42:37.462263 | 2022-08-02T20:14:50 | 2022-08-02T20:14:50 | 13,472,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | 17_LetterCombinationsOfPhoneNumber.cpp | // 17. Letter Combinations of a Phone Number
/*
* Given a string containing digits from 2-9 inclusive, return all possible letter combinations
* that the number could represent.
*
A mapping of digit to letters (just like on the telephone buttons) is given below.
Note that 1 does not map to any letters.
Exampl... |
cc18b768bdd40b03560bc24f6c1c3874593b87cc | 07ba7fde9da83edd3744557972b4b411af1b577d | /src/buzegui/buzegui.cpp | d26ebe58412a02a8c3c9fe3b397e19d2ae8dba46 | [] | no_license | clvn/buze | d10edad5b319ca62c1401e710acedc22897b9027 | 4d7d406e87bda3b57b7631149fe63f9bd2ac3eec | refs/heads/master | 2021-09-16T01:39:40.697834 | 2018-01-06T15:45:28 | 2018-01-06T15:45:28 | 115,177,320 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,687 | cpp | buzegui.cpp | #include "stdafx.h"
#include "resource.h"
#include "ToolbarWindow.h"
#include "ToolbarBands.h"
#include "Configuration.h"
#include <buze/buzesdk.h>
#include <buze/ViewImpl.h>
#include "BuzeConfiguration.h"
#include "AnalyzerView.h"
#include "CpuMeterView.h"
#include "CommentView.h"
#include "FileBrowserView.h"
#includ... |
7d2767cf042392c93abaeff39eed61191ca215a3 | 690b5a3a48ad1448e8aa9b693be9938a8c695e5c | /knRapid/src/rapidExtTraclabsDds/generated/ExtTraclabsConstants.h | 9246ec5ead0d4bc212b6d711dc882a4b2050ba1b | [
"Apache-2.0"
] | permissive | bcoltin/soraCore | f5e37901d3a975b7086cceab8bc393b9c4d442a4 | cd0624774b7a3b1aac17e0ce3338b8914387f3fc | refs/heads/master | 2021-01-19T04:10:40.940887 | 2017-04-21T20:38:46 | 2017-04-21T20:38:46 | 87,354,301 | 0 | 0 | null | 2017-04-05T20:37:45 | 2017-04-05T20:37:44 | null | UTF-8 | C++ | false | false | 1,365 | h | ExtTraclabsConstants.h |
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from ExtTraclabsConstants.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
#ifndef ExtTracl... |
e0b1464eebba175b06d690c32e09c8c879b5d5c9 | f61f76fe43114ae4cff12ab7836087be254899e5 | /C++/Test/demo/pointer.cpp | f59c3a747f9d64c0f1b2792af0afa542faf3602a | [
"MIT"
] | permissive | MickelZhang/Algorithm | 39d58eb54065f2ec215efc337385aed342a45771 | 5f4cae0d0bc47626b60a9575c7eaec914a2208b1 | refs/heads/main | 2023-02-10T06:56:12.378848 | 2021-01-09T16:44:23 | 2021-01-09T16:44:23 | 319,822,924 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,532 | cpp | pointer.cpp | /*----------------------------------------------------------------
// Copyright (C) MickelZhang
// License:MIT
// 文件名:pointer.cpp
// 文件功能描述:
// 创建者:MickelZhang
// 时间:2020/12/16
// 修改人:MickelZhang
// 时间:2020/12/17
// 修改说明:B站中郝斌的C语言指针教程一定要看一下
// 修改人:MickelZhang
// 时间:2020/12/22
// 修改说明:详细说明:指针,引用
// 软件版本:VS2015
//------... |
b0fec3c8e1e496181115c1736994c6a77ec0bdc7 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_706_collectd-5.6.2.cpp | a4b168062b78ceb2c66bc59dc650dfd1103cf4da | [] | 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 | 677 | cpp | collectd_repos_function_706_collectd-5.6.2.cpp | static int mic_read_temps(int mic) {
size_t num_therms = STATIC_ARRAY_SIZE(therm_ids);
for (size_t j = 0; j < num_therms; j++) {
U32 status;
U32 temp_buffer;
U32 buffer_size = (U32)sizeof(temp_buffer);
char const *name = therm_names[j];
if (ignorelist_match(temp_ignore, name) != 0)
conti... |
d8445d44d97fa1bfdde9fde259d61293f4588174 | 5c5a1bb9c5e2a4c695f63d156c161c57c6f6fdc8 | /VulkanPractice/Entities.cpp | d4e131b7befdc0cfc98fa562a506a3ea4a03c459 | [] | no_license | nitvic793/Vulkan-Practice | 2ab9c5bca4d4dc64836678b050167c6b344c77d7 | 94856b65e0706e281809088c795d0156b908d231 | refs/heads/master | 2020-05-27T05:28:40.227040 | 2019-07-14T05:53:06 | 2019-07-14T05:53:06 | 188,500,577 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,960 | cpp | Entities.cpp | #include "Entities.h"
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#define GLM_FORCE_LEFT_HANDED
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
const glm::vec3 DefaultScale = glm::vec3(1.f, 1.f, 1.f);
const glm::vec3 DefaultRotation = glm::vec3(0.f, 0.f, 0.f);
const glm::... |
35d6f197c3c569adfc75a9b55963dbb33c4cfe83 | cf2c25e93ddbda5f50190b4f2054bac40e81489d | /src/isf_default_imengine.h | 763380ee946254d7f7d035b4a2169b2c47cdba7a | [
"Apache-2.0"
] | permissive | tizenorg/framework.uifw.ise-engine-default | f987dea612f363844bda4356c2456a7d545e99a9 | 59a99fa0d39a20f7f4fa07517ab3ca1da1b1aa7e | refs/heads/master | 2016-09-12T22:08:03.635586 | 2012-08-21T10:00:21 | 2012-08-21T10:00:21 | 56,114,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,095 | h | isf_default_imengine.h | /*
* ise-engine-default
*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: Li zhang <li2012.zhang@samsung.com>
*
* 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 co... |
ba932e03e48171382860584f295f35d89c919538 | d74fc793835b2523efdda89744e4fcf3d260e78f | /sw/stride/include/fQ.hpp | 1349b5b68d650062f3946bf58a84b3da9259ed66 | [] | no_license | pouya-haghi/Coyote | c0db500603b71441051e1ef010f83424d036233f | aab360e725c01f8fe283bfcc51a188a8bab7e578 | refs/heads/master | 2023-08-23T18:58:56.823434 | 2021-10-15T17:37:51 | 2021-10-15T17:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | hpp | fQ.hpp | #pragma once
#include <cstdint>
#include <string>
#include <cstring>
namespace fpga {
#define MSG_LEN 82
class fQ {
public:
// Queue
uint32_t qpn;
uint32_t psn;
uint32_t rkey;
// Buffer
uint64_t vaddr;
uint32_t size;
// Node
uint32_t region;
// Global ID
cha... |
22ad6750543c7f8d2777a1d8576c26620ac1eca2 | e648832af9954d322b2128afce0bb928841d9c7b | /Lyziari/Pole.h | 9f0c48da99beea74b2a7871f338d85f801373c8b | [] | no_license | flpmko/INF3-skuska-14-1-2021-8-00 | 1d822559717c5009efd67afa23555ae7aed20612 | 6bd4617b2f631df04a04eeeb284cd57e20b61d5e | refs/heads/main | 2023-02-18T02:00:14.834117 | 2021-01-18T19:21:29 | 2021-01-18T19:21:29 | 330,745,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | h | Pole.h | #pragma once
class Pole
{
private:
unsigned aPocet = 0;
int* aPole = nullptr;
public:
Pole(unsigned pocet = 0) : aPocet(pocet), aPole(aPocet != 0 ? new int[aPocet] : nullptr) {}
void pripocitajKonstatnuHodnotu(int cislo);
~Pole();
};
|
6c97a3eed7f60cc8bffb4c632dae0a648ce3dece | 69fe376f63cf4347bbda41d69c2d2964e53188d5 | /FlooringManagerGUI/CustomerPickList.cpp | a473cfad3444087889d3d6fbf3a663f313b57ac6 | [
"Apache-2.0"
] | permissive | radtek/IMClassic | d71875ecb7fcff65383fe56c8512d060ca09c099 | 419721dacda467f796842c1a43a3bb90467f82fc | refs/heads/master | 2020-05-29T14:05:56.423961 | 2018-01-06T14:43:17 | 2018-01-06T14:43:17 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 6,870 | cpp | CustomerPickList.cpp | /*----------------------------------------------------------------------
Copyright © 2001-2010 JRS Technology, Inc.
-----------------------------------------------------------------------*/
// CustomerPickList.cpp: implementation of the CCustomerPickList class.
//
///////////////////////////////////////////////... |
2689b2b46f86b4d0d3b791a34c939e1135f6d433 | f3fef60d8da877634b1c6187c3ed973b00328e41 | /base/dof/Field.hpp | ccfbfda16f360505c3e0dec2d8c9870ae2810cb0 | [] | no_license | thrueberg/inSilico | f656c7fadd0eb5b59b1bb46d906aa613cde6f988 | be4d4e016535f259bc9c2973a05d8417bd0431dd | refs/heads/master | 2016-09-05T16:55:51.505462 | 2015-02-04T14:06:53 | 2015-02-04T14:06:53 | 9,344,003 | 0 | 1 | null | 2015-02-04T14:06:53 | 2013-04-10T10:49:39 | C++ | UTF-8 | C++ | false | false | 2,426 | hpp | Field.hpp | //------------------------------------------------------------------------------
// <preamble>
// </preamble>
//------------------------------------------------------------------------------
//! @file dof/Field.hpp
//! @author Thomas Rueberg
//! @date 2012
#ifndef base_dof_field_hpp
#define base_dof_field_hpp
//... |
0d6c2a4624c7caa8096764955c5f488c05d75297 | 546654962a755ad29be937de1ea82a20586a1f2b | /book/not_so_basics/testing/HandTest.cpp | ab8cc058a7ae4c60270c095126aa8536d6538399 | [
"MIT"
] | permissive | luanics/cpp-illustrated | c8424937b0dc39b3d1bd522106b3261b2856dbff | 6049de2119a53d656a63b65d9441e680355ef196 | refs/heads/master | 2020-03-27T09:52:51.366497 | 2019-04-07T22:50:18 | 2019-04-07T22:50:18 | 146,379,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,995 | cpp | HandTest.cpp | #include "Hand.hpp"
#include <luanics/testing/Unit.hpp>
namespace luanics::cards::blackjack {
BEGIN_TEST_SET(Hand) // test set: "Hand"
TEST(Add) { // test: "Add"
Hand hand;
EXPECT_EQ(0, hand.cards().size()); // test statement
Card const aceOfSpades{Rank::ACE, Suit::SPA... |
13e26ae50a19a59e4a65ab108b4f3dd4f9deb793 | 1a551f967d974b5a8d1fb7fa7a5a7234b9ff5329 | /software/packages/ReconstructionNew/src/TReconInput.cc | 39ed35061e35e7b54e82f349de672572f04872ca | [] | no_license | andrea-celentano/OptoTracker | 9f218bd87d9a97e2ea408f6c73b7a2a46ebf5126 | 0b01cc84d6dd53f514f2693827c9bc892f236645 | refs/heads/master | 2021-01-17T08:28:41.795412 | 2017-03-08T16:30:16 | 2017-03-08T16:30:16 | 30,795,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,158 | cc | TReconInput.cc | #include "TReconInput.hh"
#include <stdlib.h> /* atof */
TReconInput::TReconInput(string fname){
if (fname.length()==0) return;
ifstream file(fname.c_str());
string line,key,data;
istringstream parser;
int parId;
for (int ii=0;ii<m_nPars;ii++) m_isParConfigured[ii]=0;
cout<<"TReconInput: init with file ... |
2e9e2c96e7a9ebe766c08389688c3867bb5e4c13 | 7d0f76a3b69b1841d74dda54cd34e459c7da5aaf | /src/utils/BamTools/src/api/internal/io/RollingBuffer_p.h | 55550c04390c85517409a2dcf9659f1f89ea0372 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | arq5x/lumpy-sv | aa313dd1dc24c5966a4347445180c9bb0fafc24a | f24085f5d7865579e390add664ebbd9383fa0536 | refs/heads/master | 2022-06-23T14:04:51.403033 | 2022-06-07T21:10:43 | 2022-06-07T21:10:43 | 6,121,988 | 285 | 127 | MIT | 2022-06-07T21:10:44 | 2012-10-08T09:09:26 | C | UTF-8 | C++ | false | false | 3,173 | h | RollingBuffer_p.h | // ***************************************************************************
// RollingBuffer_p.h (c) 2011 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 7 December 2011 (DB)
// ------------------------... |
f5b2ce4e28806614645cac8c08da9268fe648252 | b3d49f610f0ce88bda70cd82db289e15f04bffe1 | /agent/src/message/MatrixC/MatrixCLib/message/AddGroup.cpp | 30390baf004902161daeb6e3cb133d102bd1984e | [] | no_license | bellmit/jigsaw-cms | 1c394dbe31eb79de5e27e7c023a15088b124d8f0 | e303222d4558432dea4c64e8be5be24a769c6958 | refs/heads/master | 2022-01-20T06:00:47.745942 | 2017-10-12T15:53:05 | 2017-10-12T15:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,262 | cpp | AddGroup.cpp | ///////////////////////////////
// Message definition file
// Generated by lyvc Message
///////////////////////////////
#include "stdafx.h"
#include "AddGroup.h"
string LyvcMessage::AddGroup::toXML()
{
const int BUFFERSIZE=64;
char buffer[BUFFERSIZE];
string xml;
xml = xml + "<lyvcmessage>";
xml = xml + "<id>";
... |
d8f166bee6e7b18c9c26214feaa3ce836f092923 | 9e40149d43bd2b2c9d32fc15e4500e9a387b7154 | /largest.cpp | 710e97ca2f57ed6a4a8eea3b0a28ff3a6ce7489d | [] | no_license | alokahuja82/Cpp_Codes | 89d76d70348f65e696e3e7311dbbb02105976dc9 | aedef2ea9632def1da35a355b6613517211b6311 | refs/heads/main | 2023-08-11T09:50:46.877816 | 2021-10-05T18:48:15 | 2021-10-05T18:48:15 | 413,940,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | largest.cpp | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cout<<"Enter three numbers:"<<endl;
cin>>a>>b>>c;
if(a>b){
if (a>c)
cout<<a<<" is largest"<<endl;
}else if (b>c){
if(b>a)
cout<<b<<" is the largest"<<endl;
}else
cout<<c << " is the largest"<<endl;
retur... |
38a0161bf8c7a089db8f1700ce3156f88d07575d | 230d9b4eca78c90aeed314a78242c684d9639970 | /binarytree_main.cpp | dbe9d7b04020aaabe1cbb14f93b8fe187ec70d87 | [] | no_license | revion/binary-tree | 98f59c5581fda841636b5486416ef9c47f4a4991 | fbf560d5e3cd3ffe91761c98e0b08e0adb35a56b | refs/heads/master | 2021-01-22T19:44:57.347074 | 2015-06-17T16:48:07 | 2015-06-17T16:48:07 | 37,142,400 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 106 | cpp | binarytree_main.cpp | #include "node_1.h"
#include "tree_1.h"
main(){
Tree data1("data.txt");
data1.root.traverse(root);
}
|
2e4dedeb17fa1517e2af98fe1dea1f40fbd8580f | 879e3fb8737b9f50630f51e4a34e24cc41bf0cfa | /CodeSignal/growingPlant.cpp | 601f10b566f51f28f274b80881e894ebc432d46e | [] | no_license | haaaziq/problemSolving | 2f1ceb38b409e6a617f1477bca898a150e15a193 | 49d480aafae4197e08cf51c689a51a583e18a668 | refs/heads/master | 2023-07-02T23:56:00.028435 | 2021-07-28T18:44:29 | 2021-07-28T18:44:29 | 352,758,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | growingPlant.cpp | #include<bits/stdc++.h>
using namespace std;
int growingPlant(int upSpeed, int downSpeed, int desiredHeight) {
int days{0};
int height{0};
while(height<desiredHeight){
days++;
height+=upSpeed;
if(height>=desiredHeight) return days;
height-=downSpeed;
}
return days;
}... |
70596105a32cb59bfee960ed10cd9c38facdbba0 | 78a223b58892f484c71ff127b28ca01289ecbe99 | /hobby_game/src/keyboard.h | e00c083216c90b8f34c5f95656d161ace037f009 | [] | no_license | brucelevis/hobby_game | d3d099278bff871394ba1f4cf5c5b953494c3dcf | 07e74114a6829d096ff50474bdb4369da6a05e0c | refs/heads/master | 2021-01-11T08:34:12.721056 | 2016-09-10T22:24:32 | 2016-09-10T22:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | h | keyboard.h | #pragma once
#include "keycode.h"
namespace hg
{
class Game;
class Keyboard
{
public:
Keyboard();
/*
Returns true if the key with this code is being held down.
*/
bool is_key_down(Keycode code) const;
/*
Returns true if the key with th... |
57d4e1b85398df5b779fdebc3d74ca3575f009b8 | 097a4d9ea1e580b2f4cfeeae5702c7e6bd60cad1 | /source/Client.cpp | 31eba274b6783dd161b38e17e7f32dff026205c1 | [] | no_license | mnassabain/riks-game-server | b0fd22270ca0f42154fb4fcddb3385645dba9f8d | b44872a1550fd8a889ec2d2db3b5ded220d83ffe | refs/heads/master | 2023-02-15T08:07:03.195685 | 2021-01-12T00:27:50 | 2021-01-12T00:27:50 | 328,826,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cpp | Client.cpp | #include "../header/Client.h"
const int Client::SERVER_HUB = -1;
Client::Client(string name, Connection connection)
{
this->name = name;
this->connection = connection;
this->gameID = SERVER_HUB;
}
Connection Client::getConnection()
{
return this->connection;
}
bool Client::inLobby()
{
return... |
c4acd406b9b9d74906152dc854ece7bfb6f3484d | 1749af9b523b7d9518695ec077840c62ee3c3194 | /Assignment_3/A3_StringReverseUsingRecursion.cpp | e408eec27aa67ad9abe618c860e899086160863a | [] | no_license | Stephenwolf008/OOP | c09cb659d839b77f7847fe80a0c1221eb12825ca | 4297fe159810141b90911fe677b12cfd403a9873 | refs/heads/master | 2022-12-31T22:34:06.598920 | 2020-10-22T16:06:42 | 2020-10-22T16:06:42 | 282,262,517 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | A3_StringReverseUsingRecursion.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
void stringReverse(string str,int first){
if(first==str.size())
exit;
if(first!=str.size())
cout<<str[str.size()-first-1];
if(first<str.size())
return stringReverse(str,first+1);
}
int main(){string str;
cout<<"Enter String:";
getline(cin,str);
stri... |
2539b4e9468a61b5d176535b5ace2d698aaf3338 | c57897f505edfbd60fa07d7594034442d2d15f8f | /cell.h | a07726aa453f06bb2da27fbf9cf498750729955f | [] | no_license | Zulukas/sudoku | bb31300f52022742d5d68d3d6ed2f72814b04230 | c3a2b8fa82f368243af97c15e09177b24216bad0 | refs/heads/master | 2021-01-10T14:41:44.824908 | 2016-01-20T16:46:11 | 2016-01-20T16:46:11 | 50,044,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | h | cell.h | #pragma once
#include <iostream>
using std::ostream;
#define OOBE "ERROR: Out of bounds; value must be 0-9.";
#define ROE "ERROR: Cell is read-only.";
class Cell
{
public:
Cell();
Cell(int value, bool readOnly) throw (const char*);
void setValue(int value) throw (const char*);
int getValue() const;
bool isRe... |
39963a4ec81652e4371ae201348ad7961919ef0a | 62094db12deab9b0709db0e033d64aa61c3b3c8f | /proximity_views.h | 1fdc666ae4aac787aac217b9710aaa3b8b18524f | [
"MIT"
] | permissive | matth036/dsc | 7e97712d1aaa953d4c833630fbe825653569c91a | 728a5d066788ae6e600495c14bb9a8b4f09eaca5 | refs/heads/master | 2020-04-24T04:35:20.436181 | 2015-10-23T20:26:42 | 2015-10-23T20:26:42 | 32,033,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,910 | h | proximity_views.h | #ifndef PROXIMITY_VIEWS_H_
#define PROXIMITY_VIEWS_H_
#include <string>
#include <vector>
#include <memory>
#include "character_reciever.h"
#include "alignment_sight_info.h"
#include "AA2DCoordinate.h"
class CharLCD_STM32F;
constexpr uint32_t PROXIMITY_VIEW_DEFAULT_WIDTH = 20; /* The width of the display in charact... |
9f4b327a965275e5a363c2bde37d117c8382821c | 837f6e6d06a50699b829581fd8681c2c9c942de0 | /SPlisHSPlasH/Utilities/GaussQuadrature.h | bb6c13667a202995710cd4b70897f22f5cd9dc98 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | InteractiveComputerGraphics/SPlisHSPlasH | 75cb0428ed00db48b8720a6c9f7aef8f4b3654d2 | 8454e9f454fef20771dfe98d318904da62764b4c | refs/heads/master | 2023-08-25T00:28:23.170422 | 2023-08-21T10:30:34 | 2023-08-21T10:30:34 | 74,058,995 | 1,376 | 305 | MIT | 2023-08-17T14:36:21 | 2016-11-17T19:14:23 | C++ | UTF-8 | C++ | false | false | 389 | h | GaussQuadrature.h | #ifndef __GaussQuadrature_h__
#define __GaussQuadrature_h__
#include <Eigen/Dense>
namespace SPH
{
class GaussQuadrature
{
public:
using Integrand = std::function<double(Eigen::Vector3d const&)>;
using Domain = Eigen::AlignedBox3d;
static double integrate(Integrand integrand, Domain const& domain, unsigned... |
a337da6bed9f3ad1cd25b347a48e0c0fa349d442 | d5299427e1fa0c70eb2b8bd5beb0e6cb3f822357 | /CSE_241_Object_Oriented_Programming/HW7/BigramMap.cpp | 2dad19a3daf633198748e9b74e97824d4ae56e80 | [] | no_license | erdemduman/Homework | 9139a9ab93835a3ded8059c51af67f565a8b5b59 | fb5f90e7da4529042c6267270eae14883fe849c0 | refs/heads/master | 2020-04-27T19:28:15.441706 | 2019-03-13T10:15:07 | 2019-03-13T10:15:50 | 174,619,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,170 | cpp | BigramMap.cpp | #include "BigramMap.h"
//constructor
template <class T>
BigramMap<T>::BigramMap(int dataType){
numGramsVar = 0; //bigram counter
datatype = dataType;
}
/*this function takes filename as parameter and calculates bigrams*/
template <class T>
void BigramMap<T>::readFile(string filename){
fstream fayl;
fay... |
25af596b12e1d1f36965ec025b91e3fb4c9e5cab | b1aef802c0561f2a730ac3125c55325d9c480e45 | /src/ripple/overlay/impl/Tuning.h | 7fc6235063bc27ef1453acad613000673be32853 | [] | no_license | sgy-official/sgy | d3f388cefed7cf20513c14a2a333c839aa0d66c6 | 8c5c356c81b24180d8763d3bbc0763f1046871ac | refs/heads/master | 2021-05-19T07:08:54.121998 | 2020-03-31T11:08:16 | 2020-03-31T11:08:16 | 251,577,856 | 6 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 734 | h | Tuning.h |
#ifndef RIPPLE_OVERLAY_TUNING_H_INCLUDED
#define RIPPLE_OVERLAY_TUNING_H_INCLUDED
#include <chrono>
namespace ripple {
namespace Tuning
{
enum
{
readBufferBytes = 4096,
maxInsaneTime = 60,
maxUnknownTime = 300,
saneLedgerLimit = 24,
insaneLe... |
b52bf29db6c37e31f4f7d6892d32767ca5df04be | 2159aa5580cfddad12a8bd80a0c96b0c5598777f | /code/012.cpp | 8f677915bca9570da92aea3e842066b0505f285f | [] | no_license | papamoomin/EulerProjectStudy | 081a03caf52d4a624ddd5ccc2e016a6808860667 | eaaebf8ffee860d6ec55ada87375d5004aa0217b | refs/heads/master | 2020-04-29T16:34:24.710401 | 2019-04-01T12:44:23 | 2019-04-01T12:44:23 | 176,265,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | 012.cpp | #include<iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cout.tie(NULL);
int ans = 0, naturalNum = 1;
bool isFinding = 1;
for (; isFinding; ++naturalNum)
{
ans += naturalNum;
for (int i = 1, count = 0; i*i <= ans; ++i)
{
if (ans%i == 0)
++count;
if (count == 250)
{... |
91a53066659233a060bd1fae2e29c385a48b79ac | def00dee6c6e726230204754c95d426f3ad06945 | /Strings/anagram.cpp | 3c20c66ac350fe942df2211f49dbe29c6183a1e5 | [] | no_license | Gaurav1401/Data-Structures-and-Algorithms | ebeffcf9e3e1bb97f717fb5892f1c509b26bd81f | bbb6045b35fd5241f8018dde87c031b17155b957 | refs/heads/main | 2023-07-14T15:42:55.110218 | 2021-08-28T08:30:17 | 2021-08-28T08:30:17 | 389,517,973 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 988 | cpp | anagram.cpp | // Given two strings a and b consisting of lowercase characters.
// The task is to check whether two given strings are an anagram of each other or not.
// An anagram of a string is another string that contains the same characters,
// only the order of characters can be different. For example, “act” and “tac” are an ... |
b8a1038fc3a57de802f2bd0c5b68a39b923e48d2 | b070bb3c98af3e963fca192aeae4ab0a7da70c38 | /main.cpp | 8fe4895cdb198c5feea92cd5f8b1c66aa0f7dcb8 | [
"MIT"
] | permissive | PeterZhouSZ/Gen-Adapt-Ref-for-Hexmeshing | 0d6f2932e243d10c3be9440a3ea9e9621821f81e | d5c37082ebafe901d9d08855537199964026919d | refs/heads/main | 2023-08-19T07:51:53.940057 | 2021-09-22T11:00:55 | 2021-09-22T11:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,159 | cpp | main.cpp | /*****************************************************************************************
* MIT License *
* *
* Copyright (c) 2021 Luca Pitzalis, Marco Live... |
2462872b2bae865c996cc532eb8752b6b647b9f7 | 4c25432a6d82aaebd82fd48e927317b15a6bf6ab | /data/dataset_2017/dataset_2017_8_formatted_macrosremoved/vector310/5304486_5760761888505856_vector310.cpp | abd970115f79ee2bc21126c03ef2a9793e5084a1 | [] | no_license | wzj1988tv/code-imitator | dca9fb7c2e7559007e5dbadbbc0d0f2deeb52933 | 07a461d43e5c440931b6519c8a3f62e771da2fc2 | refs/heads/master | 2020-12-09T05:33:21.473300 | 2020-01-09T15:29:24 | 2020-01-09T15:29:24 | 231,937,335 | 1 | 0 | null | 2020-01-05T15:28:38 | 2020-01-05T15:28:37 | null | UTF-8 | C++ | false | false | 1,338 | cpp | 5304486_5760761888505856_vector310.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char s[30][30];
int n, m;
void work(int x) {
for (int j = 1; j <= m; ++j) {
if (s[x][j] != '?') {
for (int k = j - 1; k >= 1 && s[x][k] == '?'; --k)
s[x][k] = s[x][j];
for (int k = j + 1; k <= m && s[x][k] == '?'; +... |
25c01705cebf132576d9799a1481b14648e5ec8f | e0ad93c6ccbd1aa645bf42af93e23dc8ed8c9b91 | /mt/evaluation/mutex-locking-test.cc | b625ca3b48d276eeed45a7af88971d472c954b55 | [] | no_license | minuta/grail | 2ff524f084f6dde49f7ae62a095efd1d9b39dbdc | 9cd2b51dfc8e68791e7e0cceb2c96b243a9d5cc2 | refs/heads/master | 2020-04-24T21:28:37.089044 | 2019-03-28T08:33:46 | 2019-03-28T08:33:46 | 172,279,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | cc | mutex-locking-test.cc | /*
* test mutex locking :
* this test spawns 1000 threads, whereby integer variable sharedCounter
* will be increased by the thread id number.
*
* critical section, where sharedCounter will be modified is locked by a
* statically initialized mutex (default mutex attributes)
*/
#include <i... |
964edfcee2e0c55a0686692ab972f23beff46585 | 6ff1ea5c8fb7534e1ce0c6d2aac273ffb1c5babd | /lib/Runtime/Types/SimpleDictionaryPropertyDescriptor.h | e26ba1316dda415c595538393cf3eb7709d42734 | [
"MIT"
] | permissive | chakra-core/ChakraCore | 654e775f42e093e1ebbbc066212bbcdfccab15d5 | c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 | refs/heads/master | 2023-09-02T08:10:10.008146 | 2023-03-21T21:22:11 | 2023-03-22T08:47:02 | 49,086,513 | 855 | 185 | MIT | 2023-07-05T00:15:56 | 2016-01-05T19:05:31 | JavaScript | UTF-8 | C++ | false | false | 2,502 | h | SimpleDictionaryPropertyDescriptor.h | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
affa954c625ce02cf10795f2ef81de4bfe02644b | c288aa0eeab7a56c485bbfc4f4ce7ae5057bb79c | /spiderman.cpp | 90c02e585f749bdb1bb05949d2256631a241ea6c | [] | no_license | sdurgi17/codechef | 4721bd73c65593c9c521337e7cccf93245e13fac | aadac84326b5bee4c92335b668311394a0b053bc | refs/heads/master | 2020-04-14T23:15:02.090512 | 2015-02-23T17:29:48 | 2015-02-23T17:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,665 | cpp | spiderman.cpp | #include <bits/stdc++.h>
using namespace std;
struct cell {
int h;
int d;
cell () {
d = -1;
}
};
struct qCell
{
int x;
int y;
qCell() {
}
qCell(int x, int y) {
this->x = x;
this->y = y;
}
};
bool operator== (qCell a, qCell b) {
return a.x == b.x && a.y == b.y;
}
int main()
{
int t;
cin >>... |
9aee5d4efb13ea2aed9d774256493c3996014e82 | f9f9deed1b29455f75a3986478f828d971d0ec5e | /SDK/PUBGM_bp_lobby_functions.cpp | 055a81f92eb3b16ac7bf05e377ec9a609966f64d | [] | no_license | etsiry/Pubg-mobile-bullet-tracking | ac1c70b06a266878e324f9686ef86557fc5915d8 | eba9f6b914fd3656ae71e02ad96b12dc3e5cafb3 | refs/heads/main | 2023-08-25T04:40:25.154377 | 2021-10-05T09:25:05 | 2021-10-05T09:25:05 | 413,748,508 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,731 | cpp | PUBGM_bp_lobby_functions.cpp | // PlayerUnknown's Battle Ground Mobile (1.4.0) SDK
#include "PUBGM_bp_lobby_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function bp_lobby.bp_lobby_C.EventFet... |
09ba30f228aaabe5f321a6762b78621ff71be64e | c2c37f9500f41c901ed4792baed5de11cc2abd00 | /src/LevelThemeLoader.cpp | 85eec994b1102097b7489eb7db32667ce740e3a7 | [] | no_license | justy989/MultiFall | 9e72316fdced7f55b1a1c52814736a1ade88a0ff | 0921eccd61349a3349a2d9cebb662d8ec4047889 | refs/heads/master | 2016-09-08T20:21:17.277583 | 2013-10-25T01:32:02 | 2013-10-25T01:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,222 | cpp | LevelThemeLoader.cpp | #include "LevelThemeLoader.h"
#include "WorldGenerator.h"
#include "WorldDisplay.h"
#include "Log.h"
#include <fstream>
LevelThemeLoader::LevelThemeLoader()
{
}
bool LevelThemeLoader::loadTheme( char* themePath, ID3D11Device* device, WorldGenerator* worldGen, WorldDisplay* worldDisplay )
{
std::ifstream file( ... |
c892c80e6f450145ddde947929be6e3102e1fb57 | 23695d2dc657907d97607d2fd9ff8a62dcb42ee9 | /water/types.hpp | 816d4ec42e4494e4f6438cf6b0dfc824e7c65aea | [
"MIT"
] | permissive | watercpp/water | 3833e1c6e5d86f5dbebc154f733c0955ef71f7e4 | 446af3faf96e2a4daecdb65121b8c9fd0d891df9 | refs/heads/master | 2023-08-22T21:07:42.894764 | 2023-08-20T13:43:28 | 2023-08-20T13:43:28 | 86,233,011 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,688 | hpp | types.hpp | // Copyright 2017-2023 Johan Paulsson
// This file is part of the Water C++ Library. It is licensed under the MIT License.
// See the license.txt file in this distribution or https://watercpp.com/license.txt
//\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
#ifndef WATER_TYPES_HPP
#d... |
d44ecdad89c8adc3326218c4097f923a6dbd047d | dd32ac77abc3f03447e30b55a0112c146165d83c | /lib11impl/src/main/cpp/lib11implimpl2api1.cpp | 9a7edecbbe2f469f2ffc9a5f155c4c66d00fd5a3 | [] | no_license | big-guy/cpp-demo | 256d6a98f15317d3e9e2c57be41dfaaf1e92d5cf | 7e10e885c250a49ca0355e93a201ad9e8eeca6c1 | refs/heads/master | 2021-08-22T18:47:17.499027 | 2017-12-01T00:49:56 | 2017-12-01T00:49:56 | 112,660,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | cpp | lib11implimpl2api1.cpp | // GENERATED SOURCE FILE
#include "lib11impl_private.h"
#include "lib11impl_impl.h"
#include "lib11core1.h"
#include "lib12api1.h"
#include "lib11core2.h"
#include "lib12api2.h"
#include "lib12api3.h"
#include <iostream>
#include <stdio.h>
/*
* Here is a function.
*/
int lib11implimpl2api11(int a, int b) {
retur... |
ae2727c28d58946412f0d758024e8a02bde2d41c | e7aeb9c49f0d35caa1cea7f416ee1d238c8a2426 | /LeetCode/cpp/LeetCode842-将数组拆分成斐波那契数列.cpp | 9eeddcf30dd6ca916cd4cab745d6cf61b805ae5d | [] | no_license | protectors/ACM | 1ee0c2ade796c5bda80fc0551647661c2b40c65a | a9b33912d8763c6af37fbbae4135b2761a69a2a8 | refs/heads/master | 2022-07-26T13:57:40.590234 | 2022-06-21T03:41:13 | 2022-06-21T03:41:13 | 85,793,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | LeetCode842-将数组拆分成斐波那契数列.cpp | class Solution {
public:
vector<int> res;
bool check(){
int len = res.size();
if(res.size()<3) return true;
else{
return (long long)res.back()==(long long)res[len-2] + (long long)res[len-3];
}
}
bool dfs(string& s, int index){
if(s.size()<=index) ret... |
30b2d019a01ca4b2c3ae37b80b3df9b284d1ee1a | 410eb125042cdfee1a9bb0e5d51cc45a78a019d0 | /shor.cpp | e1684d1743d38d61ad622c28b03af9340178cc38 | [] | no_license | abdavila/D-GM-QC-Simulator | 6daedef674c894ffe9da32ad8471281f4182a09b | 939d4c25c994728a9351cdd3061a3b8dd556a96e | refs/heads/master | 2023-04-09T19:04:56.968775 | 2023-03-29T00:00:37 | 2023-03-29T00:00:37 | 138,344,376 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,355 | cpp | shor.cpp | #include "dgm.h"
#include "common.h"
#include "gates.h"
#include <cmath>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define NUM_AMOSTRAS 14
#define EXC_RANGE 2
//////////////////////////////////////////////////////
//string concatena(vector <string> vec, int size, bool rev = fal... |
e43f58087c46d3211d846ce619b483e3947e2108 | c910268a1ca496c239b009fabd640e80fa50df8b | /cplusplus/pthreaddemo.cpp | 6097180f6fd57a5f567527f7789aac5ce6824112 | [] | no_license | leeelei/newprogramme | 30b782cfb69ec0581026d5ff6c7a06362779bc7e | 75edc9179aa1915117cf482f3630a45bee9e7931 | refs/heads/master | 2023-09-05T06:35:21.836457 | 2021-11-05T07:07:39 | 2021-11-05T07:07:39 | 420,669,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | pthreaddemo.cpp | #include<iostream>
#include<pthread.h>
using namespace std;
#define NUM_THREADS 5
void* say_hello(void* arg){
cout<<"Hello Runoob!"<<endl;
return 0;
}
int main(){
pthread_t tid[NUM_THREADS];
for(int i=0;i<NUM_THREADS;i++){
int ret=pthread_create(&tid[i],NULL,say_hello,NULL);
if(ret!=0)
cout<<"ptread_create ... |
6dd0c27242a4b2a3faf1f80a9be9c20d02782627 | 3390f604b39fe90933bc4e919ba9d6720dc66537 | /src/robocontrol/controller/save/SaveData.cpp | afda87d20fbcbcb6730cf8883c3fac98773521dd | [] | no_license | hiroshi-mikuriya/nxt | 880aa9ebee679797d8b2d5c25054e027857d2263 | edfd585548447117eb3605ef0f451c8bf8346629 | refs/heads/master | 2021-05-09T07:01:44.238374 | 2018-01-29T07:33:58 | 2018-01-29T07:33:58 | 119,347,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,195 | cpp | SaveData.cpp | /*
* SaveData.cpp
*
* Created on: 2012/05/13
* Author: HIROSHI MIKURIYA
*/
#include "SaveData.h"
#include "controller/position/Position.h"
#include "hardware/body/Body.h"
#include "hardware/timer/Timer.h"
namespace controller {
namespace {
utils::RealPoint s_position[SaveData::POSITION_COUNT];
int s_... |
f9e0cccfb0126c27f32cfe771b5468a2390cb4d4 | ccd4a6f230327ae907beb8bd64579a107b3b3b85 | /comm/mtaf_autobuffer.cc | ae81d101deddfcd0b3b018392020c3f757eba400 | [
"MIT"
] | permissive | meitu/MTAppenderFile | d12aa798d4f54f3ae102bf7bb3a24cad6d3169f4 | 40230fce3ffc72ef3f7ed3f12be5e42d90a9b4a0 | refs/heads/develop | 2021-07-04T12:20:27.923563 | 2020-09-29T08:03:52 | 2020-09-29T08:03:52 | 178,398,732 | 48 | 10 | MIT | 2020-09-29T08:03:53 | 2019-03-29T12:09:04 | C++ | UTF-8 | C++ | false | false | 7,586 | cc | mtaf_autobuffer.cc | // Tencent is pleased to support the open source community by making GAutomator available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the L... |
d80f28b012431f386d7e85d046cb9e805733a2b8 | 267c34cd844ff3ead58f654dc04cbf8fef32cdab | /arc029a.cpp | c2f8b098888be26fb61690b9738ddccc06f7e4cc | [] | no_license | m0bec/CP | ee59e01033bdb56f4b0d16a712d3c1fc065b04f1 | 2853cf6d97a69312c75f3d93d9d5c641f0949711 | refs/heads/master | 2021-05-10T17:14:33.676295 | 2019-07-27T11:47:02 | 2019-07-27T11:47:02 | 118,604,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | arc029a.cpp | #include <bits/stdc++.h>
using namespace std;
int n;
int t[4];
int main(){
cin >> n;
for(int i = 0; i < n; i++){
cin >> t[i];
}
int r,l, mem, ans = 100000;
for(int i = 1; i < 8; i++){
r = l = 0;
for(int j = 0; j < 4; j++){
if(i & (1<<j)){
r += t[... |
bd5e659c27a4ebb76e95b2d9116599296d7ea98a | 1351f48d45c2c05e322c29c5f68da0d4590888c1 | /uva2/Tafhim Vai/534.cpp | b7359f3ce0858ccab41ef2a9b760af6d73891d42 | [] | no_license | laziestcoder/Problem-Solvings | cd2db049c3f6d1c79dfc9fba9250f4e1d8c7b588 | df487904876c748ad87a72a25d2bcee892a4d443 | refs/heads/master | 2023-08-19T09:55:32.144858 | 2021-10-21T20:32:21 | 2021-10-21T20:32:21 | 114,477,726 | 9 | 2 | null | 2021-06-22T15:46:43 | 2017-12-16T17:18:43 | Python | UTF-8 | C++ | false | false | 1,184 | cpp | 534.cpp | Method:
Wasn't much hard as I was told already that it was minimax problem.
Used the Maximin algorithm
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
double st[300][2];
double min(double a, double b) {
if (a>b) return a;
else return b;
}
double max(double a, double b) {
if (a<b) return a;
e... |
99cfcc4ff92d70d3c0975d1278863d7de13f87c5 | 22f857842ea3db81144385941267b3cb4f0c57d5 | /VST/Host/VSTPluginInterface.cpp | a79c80a01ad02605bfa236a535d1dff18c9e33bb | [] | no_license | eriser/eLibv2 | c1810c8e455a779a1211c20917daa39c751b91cd | ead21b62ba05216c2ed458017219c6340f3ca661 | refs/heads/master | 2021-01-17T08:15:15.534631 | 2015-12-27T09:38:20 | 2015-12-27T09:38:20 | 49,957,461 | 1 | 0 | null | 2016-01-19T14:19:03 | 2016-01-19T14:19:02 | null | UTF-8 | C++ | false | false | 16,176 | cpp | VSTPluginInterface.cpp | #include <VST/Host/VSTPluginInterface.h>
using namespace eLibV2::VST::Host;
bool PluginInterface::Load(const std::string fileName, audioMasterCallback callback)
{
m_FileName = fileName;
m_pHostCallback = callback;
#if WIN32
m_pModule = LoadLibrary(m_FileName.c_str());
#elif TARGET_API_MAC_CARBON
CFStr... |
a6f835e0c0735b3cacafcfafd687fd680e950ed9 | 4cacaae826960be70072a343223e4ee5c470a151 | /Codeforces-Code/Wund Fund Round 2016/E.cpp | ebf6f4b82ddf08efc475c7dfa514026a817d2c00 | [
"MIT"
] | permissive | PrayStarJirachi/Exercise-Code | 31291127f12312a66a9b21987480318741d437bf | 801a5926eccc971ab2182e5e99e3a0746bd6a7f0 | refs/heads/master | 2021-01-10T16:05:24.954121 | 2016-09-01T01:26:09 | 2016-09-01T01:26:09 | 43,229,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | E.cpp | #include <bits/stdc++.h>
const int MAXN = 300001;
const long double pi = acos(-1.0);
struct Matrix{
int n, m;
long double a[4][4];
Matrix operator *(const Matrix &rhs)const {
Matrix ret;
ret.n = n;
ret.m = rhs.m;
for (int i = 0; i < n; i++)
for (int j = 0; j < rhs.m; j++) {
ret.a[i][j] = 0;
for ... |
814331ce498cf0ea1a999fe7b9c637548b9dbeac | 7fae527bf3468cd93c7642f176df0b5720fc581f | /Framework/src/GUI.cpp | e7013658f8765df550283a1aaa6f15f13cfba2c9 | [] | no_license | jparimaa/myvk | bf325d6b357ecd87bc7bc54e71835eab503dbdd2 | b52043f2c566863ddbfdb433f2f7b1d301046117 | refs/heads/master | 2021-07-04T08:31:02.515972 | 2019-05-14T09:52:21 | 2019-05-14T09:52:21 | 105,790,146 | 2 | 1 | null | 2018-11-06T17:34:19 | 2017-10-04T16:17:18 | C++ | UTF-8 | C++ | false | false | 5,581 | cpp | GUI.cpp | #include "GUI.h"
#include "API.h"
#include "Command.h"
#include "Common.h"
#include "Context.h"
#include "RenderPass.h"
#include <array>
namespace fw
{
namespace
{
static void imguiVkResult(VkResult r)
{
if (r != VK_SUCCESS)
{
printError("ImGUI Error: ", &r);
}
}
} // unnamed
GUI::~GUI()
{
i... |
ead08bf0cef2855657cedf0a5dc9de1aa621bf88 | b4dc3314ebc2e8d3ba67fd777802960b4aedd84c | /brix-tools/iab/mfc/LucidApplicationBuilder/port.cpp | 3b8c9c4239c4491891d48ccb8e54a2d259abf0f8 | [] | no_license | kamilWLca/brix | 4c3f504f647a74ba7f51b5ae083bca82f70b9340 | c3f2ad913a383bbb34ee64c0bf54980562661e2f | refs/heads/master | 2021-01-18T04:08:56.435574 | 2012-09-18T16:36:32 | 2012-09-18T16:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,259 | cpp | port.cpp | // port.cpp: implementation of the port class.
// Parent is the class ConDat (Icon Data)
// Ports are the positions of Icon ports, each inpout type port can have a line child
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//#include "DrawProg.h"
#include "port.h"
#include "... |
de300497c020780c247ded795ff3a5fb111b2174 | edcdeb5d18ea16e03176b66b2e36d0b3651d4f9a | /ScaytheEngine/source/Core/Window.cpp | bdb9cfc48b215096c6aefe25abf467318c2e1cb8 | [] | no_license | Einherji/Scaythe | 4b68ce1be6943808007f0974b6a20c8150d2a547 | 973cb2182a9a061bf82be2356bcff543870899c5 | refs/heads/master | 2023-06-04T12:42:58.876885 | 2021-06-11T12:13:31 | 2021-06-11T12:13:31 | 374,066,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | Window.cpp | //
// Created by matthiaso on 6/10/21.
//
#include "Window.h"
|
23cff829d2a53b7135e92b1a00b638a5b5490c01 | f6602685dbf0ea619fb4379d02410e5d8745a87c | /tools/diVine/vmi/include/ExecutableFile.h | ab981188c56782047b0afa002cd4ac03d1540057 | [] | no_license | helios-ops/vineBAP | f55cfd78793c8e2f144552187a3074d0bdc5c824 | 484da44be9f5bab25e2c699b5315328a1cbfc653 | refs/heads/master | 2022-07-14T21:10:58.529585 | 2020-05-06T16:42:16 | 2020-05-06T16:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,973 | h | ExecutableFile.h | ///
/// Copyright (C) 2012-2014, Dependable Systems Laboratory, EPFL
/// Copyright (C) 2014-2015, Cyberhaven
/// All rights reserved.
///
/// Licensed under the Cyberhaven Research License Agreement.
///
#ifndef VMI_EXECUTABLEFILE_H
#define VMI_EXECUTABLEFILE_H
#include <inttypes.h>
#include <llvm/Support/Path.h>
#i... |
a14e5986fb81fd5569d28c21fcf9ef3afcf869b6 | f2d5446b6080df80a03dbaae8937aacabf5c1c60 | /4.cpp | 47ab7e694fbac7710b03ab32f2ca1d37c5ae2dde | [] | no_license | BioQwer/mipt_oop | 07fdc31c3941f893f976cdc777836bb429c332e0 | 1106f1a2721dc45edef57a7c2a0f7545a007914e | refs/heads/master | 2016-09-01T05:58:46.357502 | 2016-03-25T12:27:36 | 2016-03-25T12:27:36 | 54,743,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | 4.cpp | #include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
class Coord {
public:
int x;
int y;
};
// Класс треугольник
class Triangle {
public:
Coord p1, p2, p3;
};
Coord getPoint() {
Coord res;
cin >> res.x >> res.y;
return res;
}
void printPoint(Coord a) {
cout << a... |
ba65b4e6739a047a02320e74ce68c78961ba95fc | dc7ba2a2eb5f6eb721074e25dbf16b5e15a3b298 | /src/cosima/include/MCDriftChamberHit.hh | d69c879b9734a79a07ffa5e045af48a7875ae56e | [] | no_license | markbandstra/megalib | 094fc75debe3cff24a79ba8c3485180c92d70858 | 078f4d23813d8185a75414e1cdb2099d73f17a65 | refs/heads/master | 2021-01-17T08:34:07.177308 | 2013-11-15T22:17:10 | 2013-11-15T22:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,477 | hh | MCDriftChamberHit.hh | /*
* MCDriftChamberHit.hh
*
* Copyright (C) by Andreas Zoglauer.
* All rights reserved.
*
* Please see the source-file for the copyright-notice.
*
*/
/******************************************************************************
*
* Class representing a hit in a 2D strip detector.
* The represented data ... |
437c00bda7281a9918b073a8ded586f424599296 | 91721781f5c4a02a723ce9dd0d733bffef4a194f | /old_source/svc/host/SVCHostIP.cpp | 4ee958ecd7d16edbb8e9ed7e2ed629530c5ad6a4 | [] | no_license | thongxuan/svc | 557eaf4e109e8afd3d60c535e091868a0e734699 | 29cdba3097b8cc838116d1673f1327a19dd03d22 | refs/heads/master | 2023-01-11T00:57:45.090755 | 2016-09-26T13:07:33 | 2016-09-26T13:07:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | SVCHostIP.cpp | #include "SVCHostIP.h"
using namespace std;
SVCHostIP::SVCHostIP(string ipAddress){
this->ipAddress = ipAddress;
int result = inet_aton(ipAddress.c_str(), &(this->hostAddr));
if (result == -1)
throw "Invalid IP address";
}
uint32_t SVCHostIP::getHostAddress(){
return (uint32_t)(this->hostAddr.s_addr);
}
|
4bf2410b2ff48147806e8f38e53ca967862b3805 | 646bc0bb7d1e88deb48985d6a15884bc15745980 | /aoc_23_1.cpp | ed57c56e80fff5a665fa56d0dd914073653371dc | [] | no_license | Ruxandra985/aoc-2018 | 682ce70addd73657e412aa6bf5997e866ba837b8 | 96e7c219dde3594efdf347249087ec939f6863e3 | refs/heads/master | 2020-04-10T05:58:13.853474 | 2018-12-27T13:17:47 | 2018-12-27T13:17:47 | 160,842,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,860 | cpp | aoc_23_1.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
#define INF 1000000000
#define DIM 1000
using namespace std;
struct ceva{
long long x,y,z,raza;
};
ceva v[DIM+10];
int f[DIM+10];
long long intersect[DIM+10];
FILE *fin=fopen ("a.in","r");
FILE *fout=fopen ("a.out","w");
inline long long getnr... |
8ddef110849ecb640ea46d162beee6cbd0d9d4e6 | 7a01bc08abbc4080a6099028d6b7425554ac19e2 | /Conds-id2.cpp | 266fbc9b6cebbe2349c962d9675fc71febfe17a2 | [] | no_license | llewelld/MATTS | b1c41718192adbd44eeae5d9dc42c04a2d5790cb | bab63710bd31479fddafb19956a36d8d212b18e9 | refs/heads/master | 2021-01-20T07:03:25.222297 | 2018-07-27T13:57:09 | 2018-07-27T13:57:09 | 14,070,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,851 | cpp | Conds-id2.cpp | /*$T MATTS/Conds-id2.cpp GC 1.140 07/01/09 21:12:09 */
/*/
* Pre and Post conditions */
#include "cAnalyse.h"
#include <stdio.h>
/*/
* BUFFER OVERRUN TEST 01 (Sending) Defines
*/
#define BUFFERRECEIVELEN (4)
#define BUFFERRECEIVENUM (64)
#define BUFFERRECEIVEEND (0)
#define BUFFERHEAPSTART (1000)
... |
2b31eb732c1585ee392f9522208bec5f792cd05d | 9fe4ad1541a190f90c72c6d8024ca2190b714626 | /include/argcv/ml/mldef.h | a5155948aa5e5a61ff9025ef07688c7dfbc50e45 | [
"MIT"
] | permissive | yuikns/cmakes | 7224e33bed4e564c8ca6e31f6e8227d9aceca082 | 2e5cdc5c066ae67ac3072364509de1172fe49b82 | refs/heads/master | 2020-04-21T18:43:03.222633 | 2015-04-10T06:36:09 | 2015-04-10T06:36:09 | 24,749,752 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,828 | h | mldef.h | // Copyright 2014 Yu Jing<yujing5b5d@gmail.com>
#ifndef INCLUDE_ARGCV_ML_MLDEF_H_
#define INCLUDE_ARGCV_ML_MLDEF_H_
#include <stdint.h> // uint64_t
#include <string>
#include <vector>
#include <utility> // std::pair, std::make_pair
namespace argcv {
namespace ml {
template <typename X, typename Y>
class DataSet {... |
45d30e3d5bbbe8f931b0d0b22ade1d7dffe4991c | 79c4bbdf1695896f0bfd1ad3a36c605c0449442f | /cf/431C.cpp | 9a154f14d4b5350fdaccefd54b89472405cd823e | [] | no_license | jlgm/Algo | 935c130c7f21d1a8d1a5ab29c9b7a1f73dcb9303 | 19e9b4ef0ae5b0f58bc68bb9dae21354c77829e5 | refs/heads/master | 2022-09-24T15:58:59.522665 | 2022-09-15T17:05:42 | 2022-09-15T17:05:42 | 77,110,537 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | 431C.cpp | #pragma comment(linker, "/STACK:16777216")
#include <bits/stdc++.h>
using namespace std;
#define ms(ar,a) memset(ar, a, sizeof(ar))
#define fr(i,j,k) for (int (i) = (j); (i) < (k); (i)++)
#define db(x) cout << (#x) << " = " << x << endl;
#define pb push_back
#define mp make_pair
#define X first
#define Y second
#defi... |
e6be748dc05977bbb50c70b12435eda9130f2722 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /drv/Extrema/Extrema_HArray1OfPOnCurv_0.cxx | 9311b2b3308aa19e139d67920e18e9dcccdc0a2a | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | cxx | Extrema_HArray1OfPOnCurv_0.cxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#include <Extrema_HArray1OfPOnCurv.hxx>
#ifndef _S... |
b470ed231e08588fe6ab5e6eb8c62f581250a573 | 2beec2ffac86c63e9d15669880c18bdc2beeaa37 | /In_Out_Line.h | c7bc2b2423c9fa2c30521b7c0cc97018e6c13514 | [] | no_license | shaniguttman/CEGAR-based-MMC | 1a1e41c053812ad02775b8cc1678a0333c9ae952 | 5962e697cd88424b7dad4e1678f3c8d566caef51 | refs/heads/main | 2023-05-31T09:28:08.350279 | 2021-06-22T20:17:12 | 2021-06-22T20:17:12 | 379,389,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | h | In_Out_Line.h | #pragma once
#include "Header.h"
class In_Out_Line {
private:
int abstractStateIndex;
vector<int> originalStatesIndex;
public:
In_Out_Line()
{
abstractStateIndex = 0;
originalStatesIndex = {};
}
In_Out_Line(int abstractState_index, int originalState_index)
... |
ca96ca231790621892471116634373a17c3140e1 | d4cf36adc556c6b59af133dcd15b0507da2c1648 | /src/adafruithouses.h | 336e2615fec04a7e9cd7aeb7ca6cff31ffcb559a | [] | no_license | buelowp/village | 94b5514dad09ff7e31a8d58597fda8fcc06f1485 | 572ef0f2e8859adb978588d4dfafc1ad1a9459a7 | refs/heads/master | 2023-01-13T16:09:11.505682 | 2020-11-18T20:15:10 | 2020-11-18T20:15:10 | 127,442,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | h | adafruithouses.h | #pragma once
#include <Particle.h>
#include <neopixel.h>
#include "houses.h"
class AdafruitHouses : public Houses {
public:
AdafruitHouses(int, int);
~AdafruitHouses();
void turnOn() override;
bool turnOn(int) override;
bool turnOn(int, uint8_t) override;
void turnOff() override;
bool tu... |
307abde7cad3c38874f8741abde5cfc3b199b8c7 | f209717a523d0f8841b640d634285a079f52e15d | /Desktop/QT Files/Lab2/main.cpp | 136009b6334b4c0f393ba0092346769e532df82f | [] | no_license | 1genericusername/CSE4345FALL2018 | 3d498e35ee2c7d856187ba9275ca970d04988d01 | 8b56b0c8b382c7d7ffcc485654ad1f690b3d94ff | refs/heads/master | 2020-04-01T02:38:34.577200 | 2018-09-28T05:56:22 | 2018-09-28T05:56:22 | 152,788,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | cpp | main.cpp | #include <iostream>
#include "merge.h"
#include "bubble.h"
#include <cstdio>
#include "insertion.h"
#include "sort.h"
#include "adjmatrix.h"
#include "adjlist.h"
using namespace std;
int main(int argc, char* argv[])
{
Sort Graphs;
Graphs.GrabUserInput(atoi(argv[1]),atoi(argv[2]));
for(int algorithms=0;al... |
8a5abef91be7dcf138c93e6578bf56fd38ddc9c9 | 0209433f9cd29acc2e2461871579ad646e7218cd | /include/Mapper.h | f1d4132f71cda66c79686911150eae25cb8b341c | [] | no_license | SuperiorNiels/nes-emulator | 529273341622b3cbf2e71f41ebf66522f8f5f147 | a8f8ac47db6922e994cccd916155ad987b5741aa | refs/heads/master | 2023-04-30T10:01:49.512510 | 2021-05-05T09:18:06 | 2021-05-05T09:18:06 | 195,045,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | Mapper.h | #ifndef NES_MAPPER
#define NES_MAPPER
#include <stdint-gcc.h>
#include "Debug.h"
class Mapper {
public:
Mapper() {};
Mapper(const uint8_t PRG_size, const uint8_t CHR_size)
: PRG_size(PRG_size), CHR_size(CHR_size) {};
virtual uint16_t getMappedPRG(uint16_t addr) = 0;
virtual uint16_t getMapp... |
9f8abf02e731259241ecec2cef93f4254d99743a | 26b6b814e74e2ad8f6e84140c0b47f95c5906757 | /example.cpp | 5e737f791e7d49ab7a39e6b6e7cf7a208279aee3 | [
"MIT"
] | permissive | alherit/kd-switch-cpp | fe2f739710d168ebddab99eadbe4354658dd366b | 7b99e9e20eeb06fbd93b149c0bd5c5de47965f6e | refs/heads/master | 2020-09-25T02:37:32.247334 | 2020-09-22T13:49:04 | 2020-09-22T13:49:04 | 225,898,723 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,380 | cpp | example.cpp | using namespace std;
#include <cstddef>
#include <cstdlib>
#include <random>
#include <vector>
#include <list>
#include <iostream>
#include <sstream>
#include <fstream>
#include "kds/LogWeightProb.hpp"
#include <chrono>
#include <math.h>
#include "kds/kds.hpp"
int main()
{
auto start = s... |
c3ce1e5c4dfc9e97b6a59da9b8e033cf21dea32d | c5271b18225b183c54526f13ab968b942c5d1c49 | /interviewBit/graph/minimum_weight_cycle_in_an_undirected_graph.cpp | 4e82fd8e9cb57ab9f55cde844ba3431311268e52 | [] | no_license | coderpen-me/competitive_programming | afbc41e0eed12741ba4dcc2650a02e667506739c | 3d8d00b9099871c1b044e1ac3f25cc1eb17dba64 | refs/heads/master | 2021-06-28T09:48:01.156675 | 2021-03-09T19:01:09 | 2021-03-09T19:01:09 | 220,846,911 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,272 | cpp | minimum_weight_cycle_in_an_undirected_graph.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define vi vector<int>
#define vs vector<string>
#define vvi vector<vector<int>>
#define LP(i, n) for (ll i = 0; i < n; i++)
#define LP1(i, n) for (ll i = 1; i <= n; i++)
#define BLP1(i, n) for (ll i = n; i > 0; i--)
#define BLP(i, n) for (ll i = n; i... |
56091a9feb894051e79f978e5b2e7b99b092aaef | 72ece9c2e9897b8854dae50b289b46e79e293963 | /Source/GASBase/Public/Player/GASPlayerController.h | 573d65f881d59c8ba2aa27575f135e8ad6105a71 | [
"MIT"
] | permissive | nik3122/GASBase | 94f5c93c7c4d12f2c06ac7ebef419cb0f4fdd9a9 | 56196381c6734d20d9f12dfafaab537affa9a0d6 | refs/heads/main | 2023-08-27T21:37:02.062607 | 2021-10-30T14:45:41 | 2021-10-30T14:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | GASPlayerController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "GASPlayerController.generated.h"
/**
*
*/
UCLASS()
class GASBASE_API AGASPlayerController : public APlayerController
{
GENERATED_BODY()
public... |
972b7e5d97b312431f20332d505afe1ea9ced143 | a5151597cbee56763b596184395eda9a2d696c87 | /Project1/Command.cpp | b6cac3fb795f0bdc4f2e7129451addb226ffd439 | [] | no_license | valeriuvancea/ERTSAssignment3 | 577a9e5c2990cd1e5d2bc7085c32c4d52596a819 | ea395f45ef2bbe741e926b805437813d859947fb | refs/heads/master | 2020-09-11T02:22:30.856835 | 2019-11-22T17:43:32 | 2019-11-22T17:43:32 | 221,908,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | Command.cpp | #include "Command.h"
Command::Command(std::function<void()> action)
{
_action = action;
}
void Command::Execute()
{
_action();
} |
57ec8b5da894f4a12f6fe193faab2ff356ecc813 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/Developer/ShaderCompilerCommon/Private/HlslUtils.h | 90c6ea8d8a6836fdc86aa1298d546555ffe89c39 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 6,679 | h | HlslUtils.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
HlslUtils.h - Utilities for Hlsl.
=============================================================================*/
#pragma once
#include "CoreMinimal.h"
#define USE_UNREAL_ALL... |
753464579a17b968d03aedb078957baf62322cbf | 655202725f7b5eac7bd45a415b333042cd33ef6b | /GameLogic/DamageDealersContainer.h | 376efd2c6b1a43ee9b1883f3d45e8e63fa9988a1 | [] | no_license | BarabasGitHub/DogDealer | 8c6aac914b1dfa54b6e89b0a3727a83d4ab61706 | 41b7d6bdbc6b9c2690695612ff8828f08b1403c7 | refs/heads/master | 2022-12-08T04:25:50.257398 | 2022-11-19T19:31:07 | 2022-11-19T19:31:07 | 121,017,925 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 488 | h | DamageDealersContainer.h | #pragma once
#include <Conventions\EntityID.h>
#include <Utilities\Range.h>
#include <vector>
namespace Logic
{
struct DamageDealersContainer
{
std::vector<uint32_t> entity_to_data;
std::vector<EntityID> entities;
std::vector<float> damage_values;
};
void Add(... |
dc44e9f685e5b9a9eec2ea72491977cd0f5d6183 | 41fcce0c45ebd593dc3f3f4d086d6653964da3ce | /real Game/heart.cpp | 54e5e4f9466c120cf91bc3b3e6283176a8bb2985 | [] | no_license | It5Me/Cookie-Run-Game | 204ae0819183a4ffa8d64fe07ecb7f518f7b9668 | de66c803831a2576e5d41d4f110d5e8d7a2e9dbe | refs/heads/master | 2022-03-23T07:14:59.417462 | 2019-11-26T19:50:21 | 2019-11-26T19:50:21 | 216,511,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | heart.cpp | #include "heart.h"
heart::heart()
{
object.loadFromFile("Texture/item/heart.png");
body.setTexture(this->object);
this->body.setOrigin(this->object.getSize().x / 2, this->object.getSize().y / 2);
}
void heart::draw(RenderWindow* window)
{
if (this->body.getPosition().x < -200) {
this->visible = false;
}
if ... |
a26a62f194189f281eff3a4eb636b8644dd4e614 | f4f704f309849a8e476bfeffa68b17ac228df04d | /documentation/test_python/search/search/pybind.cpp | 85f8e3409fb91d7db64d468fb52605152f732500 | [
"MIT"
] | permissive | mosra/m.css | 3d0c3c2f7b93039eb529e154e59ff8d91d45e88d | c34e8608973548c5e3d31d65cbfdd5b2fc42a59e | refs/heads/master | 2023-08-17T09:48:14.652793 | 2023-08-09T15:34:09 | 2023-08-09T15:34:09 | 95,897,280 | 414 | 118 | MIT | 2022-10-03T03:52:50 | 2017-06-30T14:42:14 | Python | UTF-8 | C++ | false | false | 670 | cpp | pybind.cpp | #include <pybind11/pybind11.h>
namespace py = pybind11;
namespace {
void function() {}
void functionWithParams(int, float) {}
struct Foo {
void overloadedMethod1(int, float) {}
void overloadedMethod2(int) {}
void overloadedMethod3(int, Foo) {}
};
}
PYBIND11_MODULE(pybind, m) {
m.def("function", &f... |
71f0c64ad9b2defef5fc02517c1635167efcb06e | 7b8c0ec12ac5a7493aaf8fdbef1eedbd75298b60 | /Forager/Forager_Test/Forager_Test/Singleton.h | 5efd1fb0213c1b6939dd99a53a0b49aedf3503bc | [] | no_license | djqandyd1653/Forager | 13ac52611183b5f72b21cdc75da2aa98ed333205 | 2c5e43e956a7afcd86ad4ed178cbb4f7d9dfe522 | refs/heads/main | 2023-04-20T00:19:42.039295 | 2021-05-03T05:35:52 | 2021-05-03T05:35:52 | 326,485,710 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 787 | h | Singleton.h | #pragma once
template <typename T>
class Singleton
{
protected:
//싱글톤 인스턴스 선언
static T* instance;
Singleton() {}
~Singleton() {}
public:
//싱글톤 가져오기
static T* GetSingleton();
//싱글톤 메모리에서 해제하기
void ReleaseSingleton();
};
//싱글톤 초기화
// static 변수 문법상 {} 영역 밖에서 초기화한다.
template <typename T>
T* Singleton<T>::instan... |
ad2d8860308cb2444ad1e27a79ef327ce897b123 | 19782ae15716e723fbfe7cee6fd425a645b6e0fa | /Packt_CreatingGamesWithAI/PackmanLikeGame/PLG_GameObjects/PLG_CharacterControllers/AI/PLG_EnemyAi.cpp | 2eae661cc624e859d04fb10669c05d7924528b73 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Game-AI-Development | b91ff950472694b82c53b76a41ba98f4a96debe2 | 27328e4658bfd1606abe51cc14a8adbe8c752d76 | refs/heads/master | 2021-04-26T22:18:45.786513 | 2021-01-14T15:40:01 | 2021-01-14T15:40:01 | 124,068,805 | 9 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 8,232 | cpp | PLG_EnemyAi.cpp | //
// PLG_EnemyAi.cpp
// Packt_CreatingGamesWithAI
//
// Created by Cihan Ozer on 01/10/2018.
// Copyright © 2018 Cihan Ozer. All rights reserved.
//
#include "PLG_EnemyAi.hpp"
#include "PLG_Commons.hpp"
#include "BoxCollider.hpp"
#include "PLG_GameWorldInfo.hpp"
#include "Timer.hpp"
PLG_EnemyAi::PLG_EnemyAi()
... |
16ba6eabccf19240c37f4aabda552ebba028c0e5 | f80a71a58c3166a6230f76868034632ccd46a68f | /test.cpp | 4e64d67c3569bb0c6a520a0949e9d8409a9e0af9 | [] | no_license | scale/scale-emkt-cpp | e7f91ce9995b14d455b8ad99ba8978b0b994f5a9 | 95064d8bb2624ff8df1655c7921817def79fce38 | refs/heads/master | 2020-04-10T12:20:32.920817 | 2016-01-19T15:02:11 | 2016-01-19T15:02:11 | 620,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,270 | cpp | test.cpp | /***************************************************************************
* Copyright (C) 2003 by eddiedu *
* eddiedu@scale.com.br *
* *
* This pr... |
a956fbf2184c9c87dc433db3e0ba0db06518a32e | 445b7ee58c3349e720da93660a98ed8f3b501e5d | /POJ/p1623.cpp | bbf3b7814db780e5f64861396f5a935554730708 | [] | no_license | y761823/ACM-code | d151da28121c55e6c081a371e71d3cdd25453bf9 | d2e0a46d7fd29efacdb92cd3785fbd1962f425a0 | refs/heads/master | 2022-08-08T19:20:55.275233 | 2022-07-31T06:29:19 | 2022-07-31T06:29:19 | 35,432,112 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,094 | cpp | p1623.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long LL;
#define FOR(i, a, b) for(int i = a; i <= b; ++i)
const int MAXN = 128 + 1;
struct Node {
int son[4], sz;
int hash;
} p[MAXN * MAXN * 8];
char mat[MAXN][MAXN];
int ans1, ans2, n, m, pcnt;
... |
9428f54b7cb734e66cb34b113f3a9b57506c8d61 | 1ec1e5888e720778a7f018b3b170c6a63b37f8e1 | /server/BaseCacheManager.h | 1963cd170fefa3c04f5d01d81710ce430e6b7588 | [] | no_license | 02JanDal/JansGameFramework | f3f9fbb988655946a6e9f74c67bda5dfd22c58c4 | f2bebb60e2688ac3cca315f07e72daccdeacf0d2 | HEAD | 2016-09-06T17:27:23.733773 | 2014-02-23T17:19:43 | 2014-02-23T17:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | BaseCacheManager.h | #pragma once
#include <QObject>
namespace Cache
{
class BaseCacheManager : public QObject
{
Q_OBJECT
public:
virtual ~BaseCacheManager();
static BaseCacheManager *instance;
protected:
BaseCacheManager(QObject *parent = 0);
};
}
|
6b3d66a8e80b2eeaf47ebab7129e513968185cb5 | 0d55d09d4410d9be81d5f0fc1f3106324a364fc8 | /GameX/Classes/CSensor.cpp | 8d402af0ba20389a632bffbbf6d23a073f9210e2 | [] | no_license | gdmec/GameX | bbcfbb8af78716fddb0876db00f5efcb7116257d | 3ab54fc28df1299653ae577e6150ceb5f94e4bb3 | refs/heads/master | 2020-04-29T08:19:34.528565 | 2014-01-08T03:57:09 | 2014-01-08T03:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | CSensor.cpp | //
// CSensor.cpp
// GameX
//
// Created by 马 俊 on 13-6-10.
//
//
#include "CSensor.h"
#include "CVisibleObject.h"
CSensor::CSensor()
: m_pOwner(nullptr)
, m_TriggerHandler(nullptr)
, m_collisionGroup(0)
{
}
CSensor::~CSensor()
{
}
void CSensor::collideWithObject(TFCollisionProtocol* obj)
{
if... |
9f2edb751dab216ffa16caf62c593302b066c3d2 | 3d07f3247b027a044f90eee1c744e91a98951dde | /humanoid_walking/src/LipWalkNode.cpp | 51acfa41268597cf7192aac6fb885aef8935d5e9 | [] | no_license | murilomend/humanoid_movement | f93d2ab66fbbfaaff7d4cc906df338e36ce36ea3 | e657538b1d239b8df63ff03875155687a93f5d21 | refs/heads/master | 2020-03-26T08:39:47.810954 | 2018-08-14T12:01:07 | 2018-08-14T12:01:07 | 144,714,031 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,013 | cpp | LipWalkNode.cpp | #include "humanoid_walking/LipWalkNode.h"
LipWalkNode::LipWalkNode(ros::NodeHandle nh_,ros::NodeHandle nh_private_,ros::NodeHandle nh_private_params_,ros::NodeHandle nh_private_cmd_,ros::NodeHandle nh_private_ctrl_) : nh(nh_) , nh_private(nh_private_), nh_private_params(nh_private_params_), nh_private_cmd(nh_privat... |
c42a9a4686bdb725510bd036d7ada3d916d92e59 | 5ed50bbb321fa88076b8bff19d9747fa90ea65b3 | /grid3d.cpp | 075b03240832b02a4646f40ea0a0207868eaecbe | [] | no_license | AlonsoFloo/School_3D | 43cd59069651e6c1c5e1025eda56ac894da37ea0 | 2b4305eaf92e35f89e44aff8e29f27a8f1feb7d0 | refs/heads/master | 2021-01-13T00:50:08.916428 | 2016-02-19T10:44:54 | 2016-02-19T10:44:54 | 52,006,251 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,295 | cpp | grid3d.cpp | #include "grid3d.h"
#include <QString>
#include <QFile>
#include <QTextStream>
Grid3D::Grid3D(Point3D* newOrigin, int newNumberX, int newNumberY, int newNumberZ, double newBarycentreDefaultUnkownedValue) : origin(newOrigin), numberX(newNumberX), numberY(newNumberY), numberZ(newNumberZ), barycentreDefaultUnkownedValue(... |
eb219a9cf3d66a06efe5977255d9cd4fd08f956d | 40870b915cfdc683a15581adf8b60b3f9d3ef3df | /eso.h | 271f335baf1694421e1ce28625953f8a02b69812 | [] | no_license | darkain/wasabi-playlist-script | 77952d3e7135d0393cc5902b2bc548ddb774bdca | 80746ef8e20ad88809cfa6d21bb109feb90e3bdd | refs/heads/master | 2020-04-27T05:26:58.823614 | 2019-03-06T05:59:36 | 2019-03-06T05:59:36 | 174,081,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | eso.h | #ifndef _ESO_H
#define _ESO_H
#include "../../studio/wac.h"
class WACExampleScriptObject : public WAComponentClient {
public:
WACExampleScriptObject();
virtual const char *getName() { return "Playlist Script Object"; };
virtual GUID getGUID();
virtual void onCreate();
virtual void onDestroy();
private:
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.