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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eaa23685a47565678885f9df943118ce4cc63105 | 63e3e57aac8f082eeea8cbf8bae56d2bad0a566f | /brain/sw/components/iso/include/iso-control-state.h | 58eab96ebb0eccb988ff3786f46ef8e0c0ac7e93 | [
"MIT"
] | permissive | baaahs/sparklemotion | 2f9086c2c50c4841a644640a3dcf04cde567f7b3 | 51f73a56fda7d5ab04e58cf970155266f9051ca6 | refs/heads/main | 2023-08-31T17:31:42.238686 | 2023-08-20T16:18:35 | 2023-08-20T16:18:35 | 174,897,412 | 38 | 11 | MIT | 2023-09-14T17:57:35 | 2019-03-11T00:16:35 | Kotlin | UTF-8 | C++ | false | false | 1,103 | h | iso-control-state.h | #pragma once
#include "brain_common.h"
// Include led-renderer.h to get the NeoPixelBus stuff with the ported bits
#include "led-renderer.h"
#include "iso-palette.h"
#include "iso-time-loop.h"
/**
* An instance of IsoControlState holds the state information that is
* used by the various shaders during the renderin... |
bf7f840132010a04d538b027c493ff118db866fd | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /TopQuarkAnalysis/TopEventSelection/src/TtHadLRSignalSelObservables.cc | 1c7161a2a80eef43d549aea65ebfcc7236c5c2cf | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 12,663 | cc | TtHadLRSignalSelObservables.cc | #include "TopQuarkAnalysis/TopEventSelection/interface/TtHadLRSignalSelObservables.h"
#include "FWCore/Utilities/interface/isFinite.h"
TtHadLRSignalSelObservables::TtHadLRSignalSelObservables()
{
}
TtHadLRSignalSelObservables::~TtHadLRSignalSelObservables()
{
}
void TtHadLRSignalSelObservables::operator() (TtHadEvtS... |
ffbe5414686bb401fd8565b5f181ee8087e39bcb | e5f4f37d941ceb8145d65f92028cc54658b1ac01 | /Code/ThirdParty/RmlUi/Include/RmlUi/Core/Variant.inl | b3b602b32e3fbfb5fed98c3769876e78f527eadb | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | ezEngine/ezEngine | 19983d2733a5409fb2665c6c3a0a575dadcefb50 | c46e3b4b2cd46798e4abb4938fbca281c054b039 | refs/heads/dev | 2023-09-06T02:17:28.152665 | 2023-09-05T18:25:43 | 2023-09-05T18:25:43 | 18,179,848 | 1,050 | 165 | MIT | 2023-09-14T21:44:39 | 2014-03-27T15:02:16 | C++ | UTF-8 | C++ | false | false | 4,234 | inl | Variant.inl | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... |
c92a3105e81b95ace78e7a01b8039389610faaf6 | 9763d937ce3cc6a7278af735bbd05363d9c21abb | /Camera/perspectivecamera.h | 2e9d138aebc224f5585be5046d602428a78a2346 | [] | no_license | TheSlothExperience/SheepBattleBoats | 9ee86bbb30699af74d1cbf07e2f1c907d10242f1 | 45f6b3364aeff9b50270b64efdd9b103caedbc68 | refs/heads/master | 2021-01-19T08:42:56.565654 | 2014-07-23T21:47:37 | 2014-07-23T21:47:37 | 19,927,076 | 1 | 0 | null | 2014-07-21T18:29:28 | 2014-05-19T02:38:41 | C++ | UTF-8 | C++ | false | false | 513 | h | perspectivecamera.h | #ifndef PERSPECTIVECAMERA_H
#define PERSPECTIVECAMERA_H
#include "camera.h"
class PerspectiveCamera : public Camera
{
public:
PerspectiveCamera(double x, double y, double z, double width, double height);
PerspectiveCamera(QVector3D position, double width, double height);
void resize(double width, double height);
... |
47c0a5ab3f95b9178ca083e1ed8aea0b5cbcd4f4 | 77e9c971ef1dffd71bbec28489db186abfdeda9c | /include/gtorrent/Log.hpp | 3a2364d9c96a4fc3b3dce8999a74579997cd1686 | [] | no_license | charles-ramsey/gtorrent-core | 040572d037c6d7d0a08e377403cc77e329b628fd | 7f8d0c7de151df07c365676532e51d45592a1cba | refs/heads/master | 2021-01-18T07:25:58.306688 | 2014-07-22T03:23:14 | 2014-07-22T03:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 174 | hpp | Log.hpp | #pragma once
using namespace std;
#include <string>
namespace gt
{
class Log
{
public:
static string getTimeStamp();
static void Debug(const char *fmt, ...);
};
}
|
b5077560c4b2129310eadc2b410b6027859142f3 | bfdfb7c406c318c877b7cbc43bc2dfd925185e50 | /vcproj/hydll/hydll.cpp | 3fec01dc15070f7de80980bbacc642b6397bf7a8 | [
"MIT"
] | permissive | ysei/Hayat | 74cc1e281ae6772b2a05bbeccfcf430215cb435b | b32ed82a1c6222ef7f4bf0fc9dedfad81280c2c0 | refs/heads/master | 2020-12-11T09:07:35.606061 | 2011-08-01T12:38:39 | 2011-08-01T12:38:39 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,818 | cpp | hydll.cpp | // hydll.cpp : DLL の初期化ルーチンです。
//
#include "stdafx.h"
#include "hydll.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//
//TODO: この DLL が MFC DLL に対して動的にリンクされる場合、
// MFC 内で呼び出されるこの DLL からエクスポートされたどの関数も
// 関数の最初に追加される AFX_MANAGE_STATE マクロを
// 持たなければなりません。
//
// 例:
//
// extern "C" BOOL PASCAL EXP... |
8e992820d0366daaf8f6caeb3c74b1945014ea6a | c0210cb2b2a25123d45821cb8f38ba844aa8f4dc | /Classes/SampleScene/SoundMenuSampleScene.cpp | bfd346b7cae2301b0466a02dce98993cd8641361 | [] | no_license | anzfactory/SampleForCocos | 327ca160542679a5e224fb841bd8ca6f81cbc1de | 98e9eca62f50b251ad43a38970966748b14ed92b | refs/heads/master | 2021-01-23T15:53:37.605812 | 2014-06-23T06:25:50 | 2014-06-23T06:25:50 | 19,498,776 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,648 | cpp | SoundMenuSampleScene.cpp | //
// SoundMenuSampleScene.cpp
// cocos3
//
// Created by ANZ on 2014/05/07.
//
//
#include "SoundMenuSampleScene.h"
#include "AnzMenu.h"
USING_NS_CC;
using namespace std;
SoundMenuSampleScene::SoundMenuSampleScene()
{
}
SoundMenuSampleScene::~SoundMenuSampleScene()
{
}
Scene* SoundMenuSampleScene::c... |
231df02be0961fb2c105062ed22aad3a249c5c38 | 18571b48f98c4a077ccab1565e9e50e5625c1907 | /thirdSrc/ffmpeg/ffmpegreplay.h | decabc4e9f3d7b87a0b48ec344488c1aaa702d6d | [] | no_license | xiaoxiaodx/DoubleLight | e0452b0a50da71c0c451fe66d82cc9fac541a627 | 984ef4a0c76b9cb5b84d88f0e55bae7865d08cc2 | refs/heads/master | 2021-05-17T12:13:45.798837 | 2020-05-12T01:46:18 | 2020-05-12T01:46:18 | 250,769,472 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,730 | h | ffmpegreplay.h | #ifndef FFMPEGREPLAY_H
#define FFMPEGREPLAY_H
extern "C"{
#include "libavformat/avformat.h"
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
#include "libavutil/opt.h"
#include "libavcodec/avcodec.h"
}
#include <QObject>
#include <QD... |
8aa538b115506e445b97db634a3ac3c1219ec305 | ef9e061eaed20e9e9c1469e7edfe1b20ff972d03 | /services/core/jni/com_android_server_radio_Tuner_TunerCallback.h | 35a4d695bef37f00326575a8a8f393ce1e3df782 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | Fabulous-Oreo/frameworks_base | 52cbed9490a3306303ad956b9d197b99a10788c6 | c11d8b576b22e6318014496f85154e8533da22e4 | refs/heads/oreo | 2021-09-29T01:18:15.502131 | 2017-11-14T05:13:46 | 2017-11-14T05:13:46 | 104,632,272 | 2 | 4 | null | 2017-11-06T13:35:34 | 2017-09-24T09:17:27 | Java | UTF-8 | C++ | false | false | 1,459 | h | com_android_server_radio_Tuner_TunerCallback.h | /**
* Copyright (C) 2017 The Android Open Source Project
*
* 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 ap... |
8cfd310d82cc9e5430bbe6da19fead9ef96b5010 | 9db77c7864666916058d32f60ec1605b87242af4 | /src/include/SFMLView.hpp | e27bfb7dd77164c8f2bf2fe8594d52ca2723b080 | [] | no_license | Loulfy/Shootemup | bc0cf3aa40419b6128065ab2cd645201bf2188d1 | 0aee103224ffcced5787845a5792d901dd188f31 | refs/heads/master | 2016-08-02T23:18:15.389058 | 2015-04-17T15:43:32 | 2015-04-17T15:43:32 | 33,564,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | hpp | SFMLView.hpp | #ifndef VIEW_SFML_H
#define VIEW_SFML_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include "View.hpp"
#include "SFMLFrame.hpp"
#include "AssetManager.hpp"
class SFMLView : public View
{
public:
SFMLView();
~SFMLView();
bool run() override;
void setModel(Model* m) override;
void draw() override;
... |
282f3c256d608193322a64d386e52a7bd1daa4a2 | d0e4b8320277c825a1842c709d243a603e4427ef | /code/threads/boundedbuffer.h | 7ab810689f9fd844379eb3a24306c6d4d856325c | [
"MIT-Modern-Variant"
] | permissive | xmuliushuo/nachos | b70a902996dbe9794c17c5e4f3780bd79005b9d4 | bf0ff71243abfad334c2c21de5127a187ca8fd5e | refs/heads/master | 2021-01-01T19:23:41.317257 | 2013-07-22T09:10:03 | 2013-07-22T09:10:03 | 9,319,860 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 775 | h | boundedbuffer.h | #ifndef BOUNDEDBUFFER_H
#define BOUNDEDBUFFER_H
#include "synch.h"
class BoundedBuffer {
public:
// create a bounded buffer with a limit of 'maxsize' bytes
BoundedBuffer(int maxsize);
~BoundedBuffer();
// read 'size' bytes from the bounded buffer, storing into 'data'.
// ... |
7ad11f626b764d00a08b98f9f031929e0877ca0a | c171a150366abed28087c4852ff7f887d6e233b6 | /Greedy/moscas.cpp | ed6863d7875f211376f779abe897e2f51af8ec4f | [] | no_license | Delciuxs/Competitive-Programming-Problems | 495853d401594d5129f234a0d74be9facc1c3ea1 | be04901b5b8ed602a2063b117fe1997eb446b8ca | refs/heads/master | 2021-06-14T09:20:21.476095 | 2019-09-23T23:03:05 | 2019-09-23T23:03:05 | 104,252,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | cpp | moscas.cpp | //LINK to the Problem:
//https://omegaup.com/arena/problem/moscas#problems
//Problem type: Greedy
#include<iostream>
#include<vector>
#include<map>
#include<algorithm>
using namespace std;
int main()
{
int num_flies, aux;
cin >> num_flies;
vector<pair<int, char> > time;
for(int i = 0; i < num_flies; i++)
{
... |
8026739ac51879b5de5299ca9d2d986421969dc6 | 5588c6f0e065c2556eda02305bb4353cd3d7fa6a | /ftec-core/src/graphics/Image.cpp | 105422e4be98f45f4920e2546786b02ed2e9adf3 | [] | no_license | folkerthoogenraad/PotatoEngine | 9ecc0f98d9cbc9cdff85c70aa11d19d1f9f5b609 | daf1807d18cc3cd518d34318da3d4d68d4d93cc4 | refs/heads/master | 2020-07-25T17:11:12.319159 | 2017-10-09T13:08:24 | 2017-10-09T13:08:24 | 67,635,766 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | Image.cpp | #include "Image.h"
namespace ftec {
Image::Image(int width, int height)
: m_Width(width), m_Height(height)
{
m_Data.resize(m_Width * m_Height);
}
Color32 Image::getColor(int x, int y) const
{
return m_Data[x + y * m_Width];
}
void Image::setColor(int x, int y, Color32 c)
{
m_Data[x + y * m_Width] ... |
e2a5005dde3f60a64a9c283157380412fa010378 | 19ed4c1bb2c4386eb98201e1b50ffc91549174dc | /Source/Platform/Vulkan/VulkanDeviceObject.h | ac0ea928c0201df397770721f170e1c3e6d7c811 | [] | no_license | mRooky/Rooky | 81742fffd72700b3423802702ffc9e5658151f75 | 401bd515e42873b268395c1bc96fbb4982c83875 | refs/heads/master | 2020-04-19T11:43:43.985899 | 2019-08-27T06:27:46 | 2019-08-27T06:27:46 | 168,174,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | h | VulkanDeviceObject.h | /*
* VulkanDeviceObject.h
*
* Created on: Aug 14, 2018
* Author: rookyma
*/
#ifndef VULKAN_VULKANDEVICEOBJECT_H_
#define VULKAN_VULKANDEVICEOBJECT_H_
#include "VulkanObject.h"
namespace Vulkan
{
class Device;
class VULKAN_EXPORT DeviceObject: public Object
{
protected:
explicit DeviceObject(Device* devic... |
7ca49c17e469059152916b221dd5c75b17d1a2ed | 00d5cd399405500ffef11d4d17b43b836cb5c964 | /src/vizier/services/agent/shared/manager/exec.h | 2e935fd8f898972367d09e0375560f04a0c6f277 | [
"Apache-2.0"
] | permissive | doytsujin/pixie | 0b1105105d0f05cf320cdd7bea55c360d1d01925 | cfe6c966fac18ac0c6e4a28b4f51f3be7553e30b | refs/heads/main | 2023-06-10T00:09:33.784394 | 2023-06-06T00:05:07 | 2023-06-06T00:05:07 | 364,398,868 | 0 | 0 | Apache-2.0 | 2021-05-04T22:12:14 | 2021-05-04T22:12:13 | null | UTF-8 | C++ | false | false | 2,193 | h | exec.h | /*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... |
6d83f15cb18c79e893b681d28341b9e17e99070f | dd45746e20d7e2a74fa7646866ca58deb6f48e53 | /161044054_CSE241_HW5/PolygonDyn.h | d05b2bcf85da2fe0f0f711b369b549aca52bcf7b | [] | no_license | fatihselimyakar/CppProjects | c64c6e27e10fa82b183e856357abca5ef9ec793a | c59e84b60a7e9a81ac00cfe9f81521f6ca7904b2 | refs/heads/master | 2020-04-12T21:23:42.900600 | 2019-01-19T17:07:04 | 2019-01-19T17:07:04 | 162,760,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | h | PolygonDyn.h | #ifndef POLYGON_DYN_H
#define POLYGON_DYN_H
#include "Polygon.h"
namespace SHAPE{
class PolygonDyn : public Polygon{
public:
PolygonDyn()noexcept;
PolygonDyn(vector<Point2d>pointVector)throw(MyException);//GENERATES A POLYGONDYN RESPECT TO POINT2D VECTOR
PolygonDyn(int newCapacity,int ne... |
267296552ddf3889117d23ed3baa00c608cd43df | 703ec46ee5493dcd169e8100d0cfd3555c719144 | /d3d12/LabProjects/LabProject03/LabProject03/GraphicsPipeline.cpp | 2bdbab80662b6beaab54cfc661f7786f93f89b80 | [] | no_license | kimduuukbae/Today-I-Learned | e8ca001c815fc7fb02a738bc3eb564e89791bb6a | 496a3603f65bedfba83d1a9f2f2fd83b4d0c0269 | refs/heads/master | 2022-08-07T03:52:46.875576 | 2022-08-01T05:45:55 | 2022-08-01T05:45:55 | 214,361,320 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | GraphicsPipeline.cpp | #include "stdafx.h"
#include "GraphicsPipeline.h"
using namespace DirectX;
XMFLOAT4X4* CGraphicsPipeline::pWorldMatrix = nullptr;
XMFLOAT4X4* CGraphicsPipeline::pViewProjectMatrix = nullptr;
CViewport* CGraphicsPipeline::pViewport = nullptr;
XMFLOAT3 CGraphicsPipeline::ScreenTransform(const XMFLOAT3& f3Project){
XM... |
4d7c9d5280dc6d92ca159006c9b38836ede72f75 | 4554bf2ef932f3356deed0c7a896a01f2a72003f | /RenderEngine/Include/RenderEngine/IHardwareCursorManager.h | f10fd8b4af1a1f224fed687d08e2c89da3b2b667 | [] | no_license | kevinchen2015/xgame | 61364bf24daae2b69202df609b1e4c52a821fd46 | e4cc0916923c624beedd17592a6dd89ff30525af | refs/heads/master | 2021-01-23T18:45:07.418341 | 2017-09-08T02:09:48 | 2017-09-08T02:09:48 | 102,805,922 | 0 | 0 | null | 2017-09-08T02:08:11 | 2017-09-08T02:08:11 | null | GB18030 | C++ | false | false | 1,716 | h | IHardwareCursorManager.h | #ifndef __IHardwareCursorManager_H__
#define __IHardwareCursorManager_H__
/*
硬件光标
*/
namespace xs
{
struct IHardwareCursorManager
{
/************************************************************************/
/* 设置是否显示鼠标
@param show 是否显示鼠标
*/
/*************************************************... |
dfd93dc3f08a4d7708fe040a5807f33b64000fe5 | a7650c90721c56766e3cec2a1ab6fe6ceaf7fa5d | /WICLL/CSWoman.h | 3a92013f4cf2719afbb26e5c9d9ecd7eeef7f128 | [
"MIT"
] | permissive | Loganhurst/CST126SRS04 | 0b5b96d91bf461d46af95c6df46bdf180c622d5e | e363122d6801d5b8837f472211fa2a67df1d7d72 | refs/heads/master | 2021-04-03T05:02:57.512521 | 2018-03-16T06:31:57 | 2018-03-16T06:31:57 | 124,465,180 | 0 | 0 | null | 2018-03-09T00:33:55 | 2018-03-09T00:33:55 | null | UTF-8 | C++ | false | false | 285 | h | CSWoman.h | #pragma once
#include "stdafx.h"
#include <iostream>
class CSWoman
{
private:
const std::string name_;
const unsigned birthYear_;
const std::string fact_;
public:
CSWoman(const char* const name, const unsigned birthYear, const char* const fact);
// ... and other methods
};
|
64320795f94d2a33545140266c7aa08aa23deb8f | 4c035144fb3a4ab3fbc4c779c1a8ec1d1d97c682 | /Z15哈希表查找/Z15哈希表查找.cpp | e406c037ee84499a2dab35264d15f1b84acb0bf7 | [] | no_license | xingos123/Algorithms-study | 921534d8d7301122c2e2818e01039b7f0d040ca3 | 42dd893ff972601bf2af39ebf2a9b018addfb009 | refs/heads/master | 2022-03-25T04:46:58.377389 | 2019-12-17T09:20:45 | 2019-12-17T09:20:45 | 222,379,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | cpp | Z15哈希表查找.cpp | // Z15哈希表查找.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//---链地址法又叫拉链法
#include <iostream>
#include <cstring>
#include <cmath>
using namespace std;
#define M 15
#define NULLKey 0
typedef struct OVnode
{
int v;
struct OVnode* next;
}OVnode;
typedef struct Hnode
{
int data;
OVnode* next;
}Hnode;
typedef struct
{
Hno... |
64326d2aa06b1ea8a65b470a3ada0bdac4d269df | 865f1460acd8bd14b4e2b9b64b393a84c7ad8db6 | /accept/leetcode_53.cpp | 6e12439e1ddc9429a64e36b478a5aeddc3b9e01e | [] | no_license | zhangliukun/leetcode_solution | a76326ee7e444e4b56961c5208fa3119b5a1c945 | 2df943b580983a57375c6b3c427aa08364cb0ec9 | refs/heads/master | 2020-03-23T01:59:47.327062 | 2018-07-14T14:02:40 | 2018-07-14T14:02:40 | 140,950,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,016 | cpp | leetcode_53.cpp | /*Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [-2,1,-3,4,-1,2,1,-5,4],
the contiguous subarray [4,-1,2,1] has the largest sum = 6.*/
#include <iostream>
#include <limits>
#include <vector>
#include <string>
using namespace std;
... |
902f246d31dbbb60be096178b0691cac7fb8ca91 | 1f949981d661817415244f4afa4fb33935aaccb6 | /Villain CES/Villain CES/ProjectileSystem.h | 7b52387ebed2b58cd33df142ea2d492b85f85f93 | [] | no_license | fullsaildevelopment/projectherostudios | 93bf28e6b070ac15dee08a1f1fc933bb58afa4ce | d422f328d8ffe1e2a2d05015d6501b5ad7d53f7b | refs/heads/master | 2020-03-18T22:11:10.768771 | 2018-11-15T18:04:53 | 2018-11-15T18:04:53 | 135,330,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | ProjectileSystem.h | #pragma once
#include"Projectile_Component.h"
#include"Entity.h"
class CProjectileSystem {
public:
CProjectileSystem();
~CProjectileSystem();
int CreateBulletProjectile(int indexofBullet, Clips* Gun);
bool Reload(Clips* Gun);
int ExtractMaterial(TWorld *tThisWorld, Clips* Gun, int currentEntity);
XMVECTOR FindBea... |
fd30052183d1856c4868acda7e0003b1573675df | 5a56f135f03dffdb637e8bd76eae4e7b9bf5d704 | /snakes/include/point.h | 80cf91eb0dec92d7f4ad47f024954af33d1a1178 | [] | no_license | scri/snake | 8f4a1a6e0fa53cd145759038ba96b6fa76df949d | 32f4e03107dc9c136682b285e3001ff16fbf7a87 | refs/heads/master | 2022-11-10T20:43:47.250801 | 2020-06-26T12:43:26 | 2020-06-26T12:43:26 | 268,734,358 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | h | point.h | //
// Created by Dragon on 2020/5/27.
//
#ifndef SNAKES_POINT_H
#define SNAKES_POINT_H
#include "../include/tool.h"
#include <iostream>
using namespace std;
class Point{
public:
enum Type{
EMPTY,
WALL,
FOOD
};
public:
Point();
Point(const int x, const int y);
~Point();
... |
4fc6cfc26c12a188ca7d332402d052e0dbfeb33f | fc007c2a21d25815c26141de6b1d00b4dc6af68d | /LeetCode_Problems/union_find/Lexicographically_Smallest_Equivalent_String.cpp | 160aed0d6a04928542e3779ae5b76a765d087cc5 | [] | no_license | gurusarath1/Algorithms_2 | 6c3786862d7ef8f384da45baa7b711926db1103e | 2303db8d145da9641bcf9b37cc830548f77bd413 | refs/heads/master | 2023-04-08T14:24:59.156991 | 2023-03-16T19:02:12 | 2023-03-16T19:02:12 | 227,998,339 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,570 | cpp | Lexicographically_Smallest_Equivalent_String.cpp | class Solution {
public:
class UnionFind {
public:
vector<int> root;
vector<int> rank;
UnionFind(int n) {
for(int i=0; i<n; i++) {
root.push_back(i);
rank.push_back(1);
}
}
int find(int nod... |
d6bd7375c7f2e9c56ff3e4e55834b21625edb7bd | d8cea15cbaa45293ffe8e23d13e4d0b173b70056 | /Ovepoch Origins/MPMissions/DayZ_Epoch_24.Napf/CONFIGS/MissionInit.hpp | c3ba5efa3ac7570ab3e4641430c5cd94f5a6ca29 | [] | no_license | quitanddead/DayZEpoch1Click | 89708d49ee021314498b6c593edb7c2af0d9e0a6 | fa5b514dcb97fa2c4d3a744b5e9c5950445fb7bb | refs/heads/master | 2020-04-03T09:03:10.489683 | 2015-04-16T03:43:45 | 2015-04-16T03:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | hpp | MissionInit.hpp | //Traders
#include "TRADERS\cfgServerTrader.hpp"
//Loot
#include "LOOT\CfgBuildingLoot.hpp"
//Base Mission Defines
#include "BaseDefines.hpp"
//Defines
#include "defines.hpp"
//RSCTITLES
#include "RcsTitles.hpp"
//Extra RC
#include "extra_rc.hpp"
//GroupManagement
//#include "GROUPMANAGEMENT\groupManagement.hpp"
... |
4f6bc0900759caf6829c8d284eff3b6db04e71ef | defef01067fbfa4b7a0a21e220926770d54eaee6 | /Oscilloscope/transducersetupdialog.h | 45f981cfc5194948f1dd176edc1a4d546176f1db | [] | no_license | jiwon8578/Oscilloscope | 41ad440c56a52aabc834b2186971e6573556dcad | 5dd1757ab1709959392bdb02c43d491adc64a3eb | refs/heads/master | 2020-04-24T14:38:06.548493 | 2019-03-30T07:45:54 | 2019-03-30T07:45:54 | 172,028,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | h | transducersetupdialog.h | #ifndef TRANSDUCERSETUPDIALOG_H
#define TRANSDUCERSETUPDIALOG_H
#include <QDialog>
namespace Ui {
class TransducerSetupDialog;
}
class TransducerSetupDialog : public QDialog
{
Q_OBJECT
public:
explicit TransducerSetupDialog(QWidget *parent = nullptr);
~TransducerSetupDialog();
public slots:
void on... |
60597f14448311148f0ab1551d51578d476dc27d | 00e1a79ac0fa048234ae897bdff5970921376cf1 | /include/utility/RspMgr.h | 60035b38b0c6f2b12639cc915b6389552be3c92c | [
"MIT"
] | permissive | cshuazhang/libsimulator | e3528f3dfb266199dde9ad01ca3f8c1059efcebd | 83be3e948674e158b588303819d721159086c475 | refs/heads/master | 2021-05-29T23:41:46.314179 | 2015-07-21T09:37:53 | 2015-07-21T09:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,665 | h | RspMgr.h | #ifndef _SIMU_UTILITY_RSP_MGR_H_
#define _SIMU_UTILITY_RSP_MGR_H_
#include <map>
#include <string>
#include <fstream>
#include <stdint.h>
#include <std/functional.h>
#include <std/smart_ptr.h>
#include <ext/Singleton.h>
#include "common/StdoutMsg.h"
#include "utility/PlayerImpl.h"
namespace simulator
{
template... |
566bf425c6a4e3cbadbaeb62358439c0c990e227 | f9997f9ddd28605d672ebbb85c32efc50bf17203 | /Testing/TimeTest2/TimeTest2.ino | f5a4f1d0c8bec62cb4601a708845ea1130fac68a | [
"MIT"
] | permissive | barankin/outdoorlightstimer | 9a84d0f8d2f2fda03c9a747796bc8da4b5016c05 | f8de38f3907c3fb03b019b1de826a55b8cd5b789 | refs/heads/master | 2021-05-13T22:37:35.140570 | 2018-03-22T00:41:40 | 2018-03-22T00:41:40 | 116,493,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,618 | ino | TimeTest2.ino | /*
* will use https://github.com/stelgenhof/NTPClient.git
*/
/*
This file is part of the NTPClient library.
Copyright 2016 - 2018 Sacha Telgenhof (stelgenhof@gmail.com). All rights reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed with this sourc... |
31fd0612d86dbf7875a0732aead44d5e9a14295e | 5a7b697ad71c7f1547196831aec5dc6286969d81 | /StuCppSecond/MyArrays.cpp | 1d50f44310fa2d27864c02a3b7b8f89786a93750 | [] | no_license | VonsName/StuCppSecond | 8c98e377d2701f24e243c0b1487245d41578465b | df4ab8678241408d6ffab357142262aee398b970 | refs/heads/master | 2020-03-27T19:44:21.663463 | 2018-10-08T09:02:15 | 2018-10-08T09:02:15 | 147,008,716 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,640 | cpp | MyArrays.cpp | #include "MyArrays.h"
#include "SizeError.h"
#pragma warning (disable:4390)
template <typename T, typename I>
MyArrays<T,I>::MyArrays()
{
this->size = 5;
this->data = new T[this->size];
}
template <typename T, typename I>
MyArrays<T,I>::~MyArrays()
{
if (this->data != NULL);
{
delete[] this->data;
this->d... |
591056ec927545565e34f18d548736bef975c693 | aac8c5cadb249aecedc7b0ccd51010ff5e7bf3b2 | /LeetCode/19.cpp | a574a7583cb54794694c15c7a34b6272ee7165fe | [] | no_license | furkanusta/Competitive-Programming | 1b74f1cfc2e6049565d9b31950b325b2b21d2bca | 06582650a77ba003cdef31995763100721b399c8 | refs/heads/master | 2022-05-28T07:18:44.670839 | 2022-05-19T20:28:11 | 2022-05-19T20:28:11 | 37,484,205 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,308 | cpp | 19.cpp | #include "include/LinkedList.hpp"
class Solution {
private:
int getSize(ListNode* head) {
int i = 0;
while (head) {
i++;
head = head->next;
}
return i;
}
public:
ListNode* removeNthFromEnd_multiPass(ListNode* head, int n) {
int size = getSize... |
a13661a12ac70ca25459c111a128bb182c21d4ab | a3f24d09734df2080d23af39a502990e6c0f5d7d | /1.detect-capital.cpp | 508c5fe9aaf345e2e833fe6f9dd97f4711078c3a | [] | no_license | kameshkotwani/august-leetcode-challenge | dd9ef1cf7ba54441fe819d5da9a846d7a0d5c4df | 832aa71957037ef8947b1593106523604fda72e9 | refs/heads/master | 2022-12-08T06:37:27.424663 | 2020-08-30T07:01:29 | 2020-08-30T07:01:29 | 283,769,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | 1.detect-capital.cpp | class Solution {
public:
bool detectCapitalUse(string word)
{
int c=0;
for(auto x:word)
if(isupper(x)) c++;
return c==word.length() ||c==0 || c==1 && isupper(word[0]);
}
};
|
d1e62367e3566ac55a6d420cfbb6ff6b29d42701 | b19d0d25823bb0e6f1f7362eea610ef9f67442e0 | /include/tweedledum/IR/WireStorage.h | 6542a5844758fb118796c3a73caa149e899aa0af | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | boschmitt/tweedledum | c0278b5f0a94ce1b14b60fe6e30be430eed92c7d | 9d3a2fab17e8531e1edc0ab927397d449b9942a4 | refs/heads/master | 2023-07-19T20:59:19.871570 | 2022-11-03T14:30:01 | 2022-11-24T00:42:05 | 140,888,411 | 92 | 34 | MIT | 2023-07-13T00:34:12 | 2018-07-13T20:03:36 | C++ | UTF-8 | C++ | false | false | 3,613 | h | WireStorage.h | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#pragma once
#include "Cbit.h"
#... |
0a2554218b3614c1a6560d569ac351c3cd52fa5e | 8cb01266f06178a148c215d1e16abda2d9738f39 | /try.cpp | bb22fffdee00d129ffef97a1988b6e62cbbb5ff6 | [
"MIT"
] | permissive | kennethpat/CPP-Keywords-Testing | 593d5c3270fdfd16366e7ce19b0eda6dba607351 | 8108c65c723ea139de165862c6911d8b2165b571 | refs/heads/main | 2023-03-26T08:15:11.783054 | 2021-03-29T00:06:23 | 2021-03-29T00:06:23 | 352,184,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | try.cpp | #include <cstdio>
using namespace std;
int main()
{
int a = 10;
try
{
throw &a;
}
catch (char *c)
{
printf("Caught char: %c\n", *c);
}
catch (int *i)
{
printf("Caught int: %d\n", *i);
}
catch (...)
{
printf("Default Exception\n");
}
... |
06979689b2312cfd6e624a997603608c53065296 | 4019d98ce38791a4e145c639d48aef5666a3fd5c | /probs/bzoj2014.cpp | 13a8f4748cb37e3138efe56ba53d0596c04649e2 | [] | no_license | karin0/problems | c099ded507fabc08d5fe6a234d8938575e9628b7 | b60ffaa685bbeb4a21cde518919cdd2749086846 | refs/heads/master | 2023-02-09T21:55:24.678019 | 2021-01-08T16:46:54 | 2021-01-08T16:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | cpp | bzoj2014.cpp | #include <cstdio>
#include <cctype>
#include <algorithm>
#define rep(__i,__s,__t) for((__i)=(__s);(__i)<=(__t);++(__i))
#define re(__i,__s,__t) for((__i)=(__s);(__i)<(__t);++(__i))
#define per(__i,__s,__t) for((__i)=(__s);(__i)>=(__t);--(__i))
#define pe(__i,__s,__t) for((__i)=(__s);(__i)>(__t);--(__i))
struct IO {
... |
87c3c1cf032a893fdb3df138c68bd712ea06fba7 | 8b79dfcc5fd3a180d98de21989d4564e7d5bde5f | /src/FloorBuildingB.cpp | 0feed45e09521c50570952028ba97d083f45d5f1 | [] | no_license | sgerin/mifcity | ce07b6e1c0533056309902e6a29a44cbd557176a | c61475fbc78e3d6460e46624cd07ae50aed45435 | refs/heads/master | 2020-04-28T06:07:11.133454 | 2013-06-16T16:24:26 | 2013-06-16T16:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,770 | cpp | FloorBuildingB.cpp | #include "FloorBuildingB.h"
FloorBuildingB::FloorBuildingB(const Vector& a, const Vector& b, float* height)
{
// dl = a;
// ur = b;
// ul = a;
// ul[1] = ur[1];
// dr = b;
// dr[1] = dl[1];
dl = a;
dr = b;
ul = a;
ur = b;
dl[1] += *height;
dr[1] += *height;
*height += STOREY_HEIGHT;
ul[1] += *h... |
c44ccba76c8a83db37d2e25ba76f0d92d0234601 | 3615e7a2da642b5c039378d055f89365c6dbba5b | /src/server/main.cpp | 2daa28247d8c485527f525c1457c64af1d510bf0 | [] | no_license | shimoncohen/Reversi | 09ea75c2fb00adce65c3bcfa2e41e7a54994dc97 | 349fa5cf2fd0279238a9ae6cc1708863db31512b | refs/heads/master | 2021-09-04T22:32:06.867138 | 2018-01-22T18:38:13 | 2018-01-22T18:38:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | main.cpp | // 315383133 shimon cohen
// 302228275 Nadav Spitzer
#include <string>
#include "Server.h"
#include <fstream>
#define ENDPORTWORD 5
using namespace std;
int settingsReading();
int main() {
int port;
port = settingsReading();
Server server(port);
try {
// run the server
server.runServe... |
d5b04f0a0246a7382fb14f7340a116dfaa79c516 | c32ee8ade268240a8064e9b8efdbebfbaa46ddfa | /Libraries/m2sdk/game/ai/C_GoalParser_DesireCloseCombatBlock.h | acb1fec7bb4ed6fc13c9e2ff9333c3cb57725abb | [] | no_license | hopk1nz/maf2mp | 6f65bd4f8114fdeb42f9407a4d158ad97f8d1789 | 814cab57dc713d9ff791dfb2a2abeb6af0e2f5a8 | refs/heads/master | 2021-03-12T23:56:24.336057 | 2015-08-22T13:53:10 | 2015-08-22T13:53:10 | 41,209,355 | 19 | 21 | null | 2015-08-31T05:28:13 | 2015-08-22T13:56:04 | C++ | UTF-8 | C++ | false | false | 697 | h | C_GoalParser_DesireCloseCombatBlock.h | // auto-generated file (rttidump-exporter by h0pk1nz)
#pragma once
#include <game/ai/braincfg/C_GoalParser_DefaultDesire.h>
namespace game
{
namespace ai
{
/** game::ai::C_GoalParser_DesireCloseCombatBlock (VTable=0x01E40300) */
class C_GoalParser_DesireCloseCombatBlock : public game::ai::braincfg::C_GoalParser_De... |
6504c440b146a66d8290ce385797e5be4c4e5256 | 1a33cfaedb8d07c22ebbb5dcf4c281203b6fa3e3 | /Exception_Handling7.cpp | cfdbc621b219c28c47b76d9f6dbe7eeb9279b83b | [] | no_license | ShubhamRasal/2-Cplus-plus-Programs | bec823c0ec4456548690179789e164aade521622 | 68fa0ecb532e308128bd59d2704ac22576bd83bf | refs/heads/master | 2022-08-04T14:47:17.694313 | 2020-06-01T19:07:46 | 2020-06-01T19:07:46 | 268,599,631 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | cpp | Exception_Handling7.cpp | // eg. of user defined exceptions
// create an object of type queue and throw qfull and
// qempty exceptions as and when reqd
#include <iostream.h>
#define SIZE 5
class queue
{
private :
int data[SIZE];
int front, rear;
public :
// exception classes are defined as
// nested classes
class q... |
618269e314ad4ab98d1649d2c8904e289b92d6ca | 359f7c0dd68410faf66bb243d2bcf38f397d30cc | /src/squeltch.hpp | 65ddfb51bbcc59894ea38db3fb8e0127387e60d2 | [] | no_license | tomeserver/tome2 | fac3633ac65ec3777cd77239bf80199a79110ec6 | 5bc01c584066a0cea37021eb6e13bd96d74de7b5 | refs/heads/master | 2021-01-24T04:01:32.360898 | 2017-02-28T18:44:12 | 2017-02-28T18:44:12 | 49,040,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | hpp | squeltch.hpp | #pragma once
#include "h-basic.h"
#include "object_type_fwd.hpp"
#include <boost/filesystem.hpp>
extern void squeltch_inventory(void);
extern void squeltch_grid(void);
extern void do_cmd_automatizer(void);
extern void automatizer_add_rule(object_type *o_ptr);
extern bool_ automatizer_create;
extern void automatizer_i... |
1747719621a8907a1a26a7c6eb03fefb91675634 | 1e2c9c7553919d9ad1ae9506a727c78a59b2ca0d | /4.16/source/main.cpp | 42841fcf047ce5b3ce77deb119a871f671777efb | [] | no_license | 421jessie/CH2-homework | 6d2fc86f273e5d84ca5aab6a40f3ad87ae6a4f8f | 9e26be2c2a52e8a1f3fac864544c4a921e193b76 | refs/heads/master | 2023-08-22T08:56:41.421736 | 2021-10-26T01:39:11 | 2021-10-26T01:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i, j, k;
printf("(A)\n");
for (i = 1; i <= 10; i++)
{
for (j = 0; j < i; j++)
{
printf("%s", "*");
}
printf("\n");
}
printf("(B)\n");
for (i = 0; i <= 10; i++)
{
for (j = 0; j < (10-i); j++)
{
printf("%s", "*");
}
prin... |
ae61265d9ad1d0f14c79c69daed6f4d36fb5252c | b26317a356123a24589ed04219e9ad7ce8374ffd | /Source/Source/NuRenderer.h | 9b89ad428656f642cde4f09a5b2b0972c3996e3d | [
"MIT"
] | permissive | JuanDiegoMontoya/Voxel_Engine | 64ec89290c892bfd15d154182058fd4dc6e38e86 | 0d837ca6c7c659c92fbf518f61a9659d60a133df | refs/heads/master | 2023-06-22T03:27:58.450501 | 2023-06-14T11:21:08 | 2023-06-14T11:21:08 | 182,210,012 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 407 | h | NuRenderer.h | #pragma once
class TextureArray;
namespace NuRenderer
{
TextureArray* GetBlockTextures();
void Init();
void CompileShaders();
void Clear();
void DrawAll();
void drawChunks();
void splatChunks();
void drawChunksWater();
inline int drawCalls = 0;
struct Settings
{
bool gammaCorrect... |
20254e50efd9ea57282f1bbd52203d1401dd4b67 | e57abb7c7fbd73924d9daad36841b87d799ee727 | /test/__fixtures__/projects/symlink/main-project/app.ino | 2f1ba5d409c108a89750edb4d7ab7cca246a7850 | [
"Apache-2.0"
] | permissive | particle-iot/particle-cli | dcd0219c96db8f113c9e429455d87c3b70607e28 | 64aca50447f949de0b8c8ccc100befc6b25be160 | refs/heads/master | 2023-09-01T11:50:30.907958 | 2023-08-30T20:46:25 | 2023-08-30T20:46:25 | 35,562,367 | 57 | 37 | Apache-2.0 | 2023-09-14T16:01:27 | 2015-05-13T17:05:39 | JavaScript | UTF-8 | C++ | false | false | 199 | ino | app.ino | #include "shared/sub_dir/helper.h"
// Demo app with an include that points to a symlink
void setup() {
if (DOIT) {
Particle.function("test", testFn);
}
}
int testFn(String) {
return 0;
}
|
8d8d2f393da23472b813cf703f7aa0864d63f6b7 | b1ecf5efbcacbb274898e29e7ee542e59ef93916 | /AAA (CODE) Programming tools(Fuad)/Binary lifting/BINARY LIFTING OWN.CPP | 1c987be357f369354b0e6a3ab2253000df30cabe | [] | no_license | abufarhad/Programming | 92160c224578be116b2bb1e957ea105640a83ee6 | 282bf4df6c47817cb5d96ccee7dc2953438e8e11 | refs/heads/master | 2021-06-16T17:07:14.095691 | 2021-03-23T17:22:13 | 2021-03-23T17:22:13 | 180,426,830 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,027 | cpp | BINARY LIFTING OWN.CPP | #include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(i=a;i<b;i++)
#define repr(i,a,b) for(i=a;i>=b;i--)
#define LL long long
#define ull unsigned long long
#define scl(n) scanf("%lld", &n)
#define scf(n) scanf("%lf", &n)
#define sci(n) scanf("%d", &n)
#define scii(n,m) scanf("%d %d",&n,&m)
#define sciii... |
32bc53556fa782cf7bb60d0a37be8213b7f26c7d | d4667eeb25575d0dca8e087e90a7935032a01130 | /assignment2/source/exercise21-anton.cpp | 66203e7e1d08ebc8fedd03dd52e7f462f3718147 | [] | no_license | AnBenLa/Realtime-Rendering | ce74142f95fc38a441b183eba3125ee668cfacad | c0250867d76e794d835d9069da06b1cc01324016 | refs/heads/master | 2022-04-03T18:05:41.065062 | 2020-02-04T17:18:43 | 2020-02-04T17:18:43 | 218,351,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,533 | cpp | exercise21-anton.cpp | //
// Created by Mortiferum on 25.11.2019.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
struct point{
int x,y;
};
struct segment{
point a,b;
};
bool operator == (point const& a, point const& b){
return a.x == b.x && a.y == b.y;
}
//returns -1 for ... |
3ff081f4becfeb696db90b1991dacd8a3b9b7026 | c1671bd042b11704cc7d8c545d023e718ae99a09 | /eMu - GameServer Sapphire S0/GameServer/Privilege.h | 25e963c72548ae5c9c1a9a75249ca4636e54c57c | [] | no_license | Sogues/mu1.1 | e9a31864b2ebc2517f5aeba1ead735d3fedfcfba | 58de7aeee6ca26be861b0f0a81cf0cbf5ad8db11 | refs/heads/master | 2022-04-08T13:32:57.142927 | 2020-03-29T15:13:46 | 2020-03-29T15:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | h | Privilege.h | #ifndef _PRIVILEGE_H
#define _PRIVILEGE_H
// ---
enum GM_MANAGER_COMMANDS
{
COMMAND_RELOAD,
COMMAND_DISCONNECT,
COMMAND_BLOCK,
COMMAND_UNBLOCK,
COMMAND_SKIN,
COMMAND_MAKE,
COMMAND_GMOVE,
COMMAND_MOVEALL,
COMMAND_REWARD,
COMMAND_SETZEN,
COMMAND_SETLEVEL,
COMMAND_SETPK,
COMMAND_SETDROP,
COMMAND_HIDE,
};
// ... |
328ed8e0ff1cbad45b0e1d28b79fe57ad5de4ca3 | 651c2031f1864b9d3e7262f1802130ac359946a1 | /client.cpp | 9a6a4e57539df1fd57379e684e0e2a954e40dfe5 | [] | no_license | Davt2000/forsys_test | e1e2361f056e93f72878c44f974b41f5e68541b2 | 4dee1b3bbe6d94fc52ba81d3692ed4418fae7089 | refs/heads/master | 2023-02-24T21:06:57.487026 | 2021-01-30T22:13:21 | 2021-01-30T22:13:21 | 333,749,580 | 0 | 0 | null | 2021-01-30T21:52:04 | 2021-01-28T12:17:41 | CMake | UTF-8 | C++ | false | false | 1,699 | cpp | client.cpp | //
// Created by perturabo on 28.01.2021.
//
#include <zmq.hpp>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "common.hpp"
bool student_cmp(const student& a, const student& b){
return a.fullName < b.fullName;
}
int main (void)
{
zmq::context_t context(1);
const char * protocol =
... |
3512ed18659e4accfb41ae55c6d01534c341ea89 | 6d54584c31ea20963dd49496c036b7fdae0f5645 | /protocol/protocol.cpp | 9121b021a13e7eaf62bec58b7f047cc7e575e73d | [
"MIT"
] | permissive | ValerioLuconi/Key-Exchange-Protocol | 48726bd68f0367ceb6b4abbf9faa42a70157c375 | 247f5f09ad9f972f0a04b9fe8e1447e9397bf937 | refs/heads/master | 2021-01-01T04:26:14.984020 | 2016-05-18T10:27:45 | 2016-05-18T10:27:45 | 59,101,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,800 | cpp | protocol.cpp | /**
* @file protocol.cpp
* @brief Protocol class methods definition.
*
* @author Valerio Luconi
* @version 1.0
*/
#include "protocol.h"
Protocol::Protocol (int type, string logfile)
{
log = logfile;
LOG(log, "** Protocol Constructor **\n");
if (type == CLIENT) {
int fd... |
c227011678a6c13d39b463ae742b9e371d5d33f2 | d094454929537f90fdbb57420255f764eb9a15da | /19.cpp | 803d8347fed2af7ddc65186cca4a3d50a83155de | [] | no_license | JiangXiang1925/Practice-cpp | c255bbbd36e1da98c32eef256cb31b636c37690d | f3397a8b64c9a2d5cb2e098c1bb3b1f4cc1239d5 | refs/heads/master | 2020-07-07T23:24:04.442954 | 2019-08-31T08:50:40 | 2019-08-31T08:50:40 | 203,504,391 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | 19.cpp | bool match(char* str,char* pattern)
{
if(str == nullptr || pattern == nullptr)
return false;
return matchCore(str,pattern);
}
bool matchCore(char* str,char* pattern)
{
if(*str=='\0' && *pattern=='\0')
return true;
if(*str!=='\0' && *pattern=='\0')
return false;... |
cb39e543e27c9644945d92c3559e0673a963cfad | 41839db0f0ee8ea9bbd516566a458794710a2cda | /src/Coroutine.h | 5731ec77c0ba7f8cf101bc22167b138adb41f4f3 | [
"MIT"
] | permissive | tvanslyke/avr-coro | b249ba812511122b50b5e000e370b64ec2711001 | efa8e1dc03e53d918c39dc9f42e391f9b63c56e7 | refs/heads/master | 2020-04-27T18:51:27.104184 | 2019-03-10T17:09:19 | 2019-03-10T17:09:19 | 174,590,421 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,289 | h | Coroutine.h | /**
* Copyright 2019 Timothy J. VanSlyke
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d... |
a79d7d5e319fdf24a64fc47f1c598dc7db89531e | 5ab7032615235c10c68d738fa57aabd5bc46ea59 | /rating.cpp | c1227da0f52b094c95ee803e0765288865fad34b | [] | no_license | g-akash/spoj_codes | 12866cd8da795febb672b74a565e41932abf6871 | a2bf08ecd8a20f896537b6fbf96a2542b8ecf5c0 | refs/heads/master | 2021-09-07T21:07:17.267517 | 2018-03-01T05:41:12 | 2018-03-01T05:41:12 | 66,132,917 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | rating.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> v;
v.resize(n);
for(int i=0;i<n;i++)cin>>v[i];
int maxx=0,curr=0;
for(int i=0;i<n;i++)
{
curr+=v[i];
if(curr<0)curr=0;
maxx=max(curr,maxx);
}
cout<<maxx<<endl;
}
|
fc839e2b20f2c1e89eea01310425ebc674bbfc3b | bafca10defdfdf5c931b2b580b0f8c083d63eedf | /src/hwenc_v4l2/v4l2_runner.h | 1a077e1edb9aac9e2d5ba062ba8e5148027c0264 | [
"BSD-3-Clause",
"OpenSSL",
"LicenseRef-scancode-protobuf",
"Zlib",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-takuya-ooura",
"MIT",
"ISC",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-nvidia-vide... | permissive | shiguredo/momo | 3ffc9cd8d5d39627b3190e0c37c98e94f62c142b | f31a4d5c40fa2d54df548995b6dda08ffac594cf | refs/heads/develop | 2023-09-06T02:47:20.802000 | 2023-09-06T02:28:26 | 2023-09-06T02:28:26 | 152,563,246 | 741 | 190 | Apache-2.0 | 2023-08-27T15:03:54 | 2018-10-11T09:09:56 | C++ | UTF-8 | C++ | false | false | 1,755 | h | v4l2_runner.h | #ifndef V4L2_RUNNER_H_
#define V4L2_RUNNER_H_
#include <atomic>
#include <functional>
#include <mutex>
#include <optional>
#include <queue>
#include <string>
// Linux
#include <linux/videodev2.h>
// WebRTC
#include <rtc_base/platform_thread.h>
template <class T>
class ConcurrentQueue {
public:
void push(T t) {
... |
0aa72a2fdf8716a01581bfce0764b530e58dbc64 | dae7287c216b870ad6ea33bea7765abd51888274 | /cpp/allocators/pool.h | 85beb8632cd526f1dddd95ba930dffa648dde7a8 | [] | no_license | dataartisan/prg | d907336aba0fa2c0ab19d92d1d9ffce88a4a7a6e | cbc39b0b9c6c6bc06b45dbed8a096b9b37095eaf | refs/heads/master | 2021-01-20T19:06:47.657035 | 2011-10-15T13:55:10 | 2011-10-15T13:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,306 | h | pool.h | #ifndef POOL_H_INCLUDED_GF
#define POOL_H_INCLUDED_GF
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable:4018) //signed/unsigned mismatch
#pragma warning(disable:4290) // exception spec ignored
#endif
#include <exception>
#include <list>
#include <algorithm>
#include <iostream> //for dump()
class pool... |
23a530160b69b2775dcd8e83303e062deea0a4c1 | 7c54c995c386b773259455301abdfd74b95b80d7 | /src/cpp/gui/screens/GamePauseMenu.cpp | 902ad852d2357d0953ca4f37bc56d49390af7b6b | [] | no_license | CHAZICLE/MuseumGuard | 4b581bee6bfacbb20b326649388f27b6a9d0b18e | c923bbc10c4898b2acbdaafbf07c5fb35089a094 | refs/heads/master | 2020-12-03T01:49:44.917633 | 2017-06-30T09:30:58 | 2017-06-30T09:30:58 | 95,872,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,298 | cpp | GamePauseMenu.cpp | #include "gui/elements/Button.hpp"
#include "input/Controls.hpp"
#include "gui/ScreenManager.hpp"
#include "gui/screens/PathTest.hpp"
#include "gui/screens/GameView.hpp"
#include "render/BasicShapes.hpp"
#include "render/shaders/ShaderUtils.hpp"
#include "render/RenderManager.hpp"
#include "util/gl.h"
#include <glm/gt... |
e233cf275331a2edb47777e33c37f678d9d3a5d4 | 1bbdecb6de9fd654c7a3598662641198038faec2 | /game.cpp | faeb52215c74046594a6e15aadf7f0dbae86788a | [] | no_license | lsmieszkowicz/rogalik | 0be56b1efa2d3b4fbb97a20458f3fc97b92881a0 | a0193f4e93f23be6d93295f4e49a683d79aaa41f | refs/heads/master | 2021-07-20T21:53:09.877473 | 2017-10-28T07:22:23 | 2017-10-28T07:22:23 | 108,628,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | game.cpp | #include "game.h"
#include <iostream>
#include <SDL2/SDL.h>
using namespace std;
Game::Game()
{
this->gamePreferences = new GamePreferences();
this->gameWindow = new GameWindow();
SDL_Init(SDL_INIT_EVERYTHING);
}
Game::~Game()
{
SDL_Quit();
}
void Game::run()
{
while(this->gamePreferences->isRun... |
b3e5140cf5d72d898cb936f497b13a622edc078e | dd3d11771fd5affedf06f9fcf174bc83a3f2b139 | /BotCore/DofusProtocol/ClientKeyMessage.cpp | e7d80d5895ebf594f4d43d52b0eb25ee7ae10cb6 | [] | no_license | Arkwell9112/arkwBot | d3f77ad3874e831594bd5712705983618e94f258 | 859f78dd5c777077b3005870800cb62eec1a9587 | refs/heads/master | 2023-03-17T12:45:07.560436 | 2021-03-16T11:22:35 | 2021-03-16T11:22:35 | 338,042,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | ClientKeyMessage.cpp | #include "ClientKeyMessage.h"
void ClientKeyMessage::deserialize(ICustomDataInput &input) {
this->deserializeAs_ClientKeyMessage(input);
}
void ClientKeyMessage::deserializeAs_ClientKeyMessage(ICustomDataInput &input) {
this->_keyFunc(input);
}
void ClientKeyMessage::_keyFunc(ICustomDataInput &input) {
t... |
381ec059161006d9c9b80a2b9e9e1142678d364b | 3872740bc8ab30db1e645c4c0da62ce4eb11f0fc | /munplanner.cpp | 0a2b53274969c4b6ed6b614e48831ca4d81acd95 | [] | no_license | ThatcherC/ProjectMun | cb601ddf6c862eb5a175e7f1ced21a2c030a8389 | b824526554486a095e185b1cb04e2d70cb067801 | refs/heads/master | 2020-04-16T18:46:33.389748 | 2016-08-23T13:41:29 | 2016-08-23T13:41:29 | 47,838,154 | 0 | 0 | null | 2016-06-29T23:16:10 | 2015-12-11T16:37:50 | Gnuplot | UTF-8 | C++ | false | false | 11,356 | cpp | munplanner.cpp | #include <iostream>
#include <stdint.h>
#include <cmath>
#include "stdio.h"
#include "stdlib.h"
#include <string>
#include <vmmlib/vector.hpp>
#include <vmmlib/math.hpp>
#include <defs.cpp>
#include <basicfunctions.cpp>
// g++ munplanner.cpp -I ./ -o munplanner -std=c++0x
using namespace std;
double desired_rm; ... |
4784fc8c385b1c2267d2f3c8f9da76830ee15295 | 0cc2a22f7134870f12508365ec42ebe01be775ee | /ppoint.cpp | 6df4a86791b010fcd8d38b21e109bee70a8e4ad6 | [] | no_license | SiewMengYeong/C-plus-plus-Exersice | 1925b530e8e3b7af48dc68d28d00955be6efb03e | 8f53a38a99fbfec0d3d53512d683cb3554cc0f32 | refs/heads/master | 2020-04-28T00:38:34.504036 | 2019-03-10T13:45:48 | 2019-03-10T13:45:48 | 174,823,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | ppoint.cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
void swap(int&& i,int&& j)
{
int temp;
temp=i;
i=j;
j=temp;
return;
}
int main()
{
int x(3);
int y(5);
cout<<x<<endl;
cout<<y<<endl;
swap(x,y);
cout<<x<<endl;
cout<<y<<endl;
return 0;
}
|
caa5fc80c0d32081c77c5df3a4d5acfaf6b65308 | 5a5349c12b7ff13ab0e892a86534c5d01692e874 | /project-toolkits/toolkitc/src/backpropagation.h | ccdfa161ab4a7bb13d5df3ea3bf4d71aa6034eff | [] | no_license | mdko/byu-cs478 | e4f0cdf1de8201e2a68dede993ff42568391ba3d | bfb5f5701a02f6d449acb9f7edba87d9811c0dca | refs/heads/master | 2021-05-27T09:59:07.570886 | 2013-09-25T06:53:43 | 2013-09-25T06:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,084 | h | backpropagation.h | /**
* Author: Michael Christensen
* Date: February 15, 2013
*
* For BYU CS 478 Backpropagation Project
*/
#ifndef BACKPROPAGATION_H
#define BACKPROPAGATION_H
#include "learner.h"
#include "rand.h"
#include "error.h"
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <map>
#include <vector>
#defin... |
0e938cbb88366c9f53d60970d0f5e83485dc23b2 | c73cb678b0ea515a098bd63aea4e4e8f3a173905 | /Board.cpp | d3cf8a490327e96242b1c501f67bc1e83e96b867 | [] | no_license | orahmad/Mancala | a50a1e7e76d5f2626ce32110fa7f3e7dc354189a | dd35e40f022c3378fba59e38da68288ca083a5ab | refs/heads/master | 2020-11-28T13:57:14.653895 | 2019-12-24T00:17:45 | 2019-12-24T00:17:45 | 229,840,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,266 | cpp | Board.cpp | #include"Board.h"
#include <vector>
#include<iostream>
using namespace std;
int Board::hole::holes_beans() const
{
//returns the # of beans
return number_beans;
}
void Board::hole::set_holes_beans(int num)
{
//sets the # of beans
number_beans = num;
}
int Board::hole::enum_getter() const
{
//... |
d1533e14a5af18e810d5498231510ba1b90c60a8 | 85139670ac53c5df7484c7d3eb1d1284502a4a77 | /client_app/evaluate_result_dlg.cpp | 93dd2998a0bb5bd47c6457be387cebf5bab05f8b | [] | no_license | chinarustin/aep | f9872a1d4e82cad38d50d46f370ce0513280f40e | 6bbe1b634812528c3a4a696335174ae51846d467 | refs/heads/master | 2020-12-27T15:17:18.706709 | 2014-09-27T13:50:56 | 2014-09-27T13:50:56 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,347 | cpp | evaluate_result_dlg.cpp | // evaluate_result_dlg.cpp : implementation file
//
#include "stdafx.h"
#include "client_app.h"
#include "evaluate_result_dlg.h"
#include "utility.h"
// CEvaluateResultDlg dialog
IMPLEMENT_DYNAMIC(CEvaluateResultDlg, CDialog)
CEvaluateResultDlg::CEvaluateResultDlg(const vector<AlgorithmRuntime> &algorithms,
... |
6a61753a9d782e18008a3062ea51afa9cb10d5ab | e79b3990bc9c13117572fe4c39277b187b37bff2 | /include/RE/I/ImageSpaceModifierInstance.h | 92bd4a183f14238ca054557c20e0b969fbcf13b4 | [
"MIT"
] | permissive | Ryan-rsm-McKenzie/CommonLibSSE | 669e36cd643ea9dcc97c8e147d10ee7f6eebb8df | 3282565a2c86535036f5a556758fb1cf8ab85225 | refs/heads/master | 2023-08-07T15:02:02.476156 | 2023-07-20T11:52:36 | 2023-07-20T12:41:44 | 158,496,181 | 178 | 93 | MIT | 2023-07-20T12:41:45 | 2018-11-21T05:36:24 | C++ | UTF-8 | C++ | false | false | 775 | h | ImageSpaceModifierInstance.h | #pragma once
#include "RE/N/NiObject.h"
#include "RE/N/NiSmartPointer.h"
namespace RE
{
class NiAVObject;
class ImageSpaceModifierInstance : NiObject
{
public:
inline static constexpr auto RTTI = RTTI_ImageSpaceModifierInstance;
~ImageSpaceModifierInstance() override; // 00
// add
virtual void Unk_25(... |
6fafaaf8e97a3756af36b244666eb6c749606ed2 | 1689e784646400eaf24a3cfeb72b273625000493 | /include/DetectorMessenger.hh | 830f0b96dcc06d8e13be28252135195da86f55d3 | [] | no_license | Garypenman/APEXG4MC | 40e1fec1cacdfd2cb34692c00c204b60d4c393eb | a70a74fedf6f16590f7e5cfd75ec0dfdbf2620d0 | refs/heads/master | 2023-07-25T16:47:03.289759 | 2021-09-06T21:15:03 | 2021-09-06T21:15:03 | 390,477,663 | 0 | 3 | null | 2021-08-08T19:39:13 | 2021-07-28T19:24:23 | C++ | UTF-8 | C++ | false | false | 1,270 | hh | DetectorMessenger.hh | #ifndef DetectorMessenger_h
#define DetectorMessenger_h 1
#include "G4UImessenger.hh"
#include "globals.hh"
//---------------------------------------------------------------------------
class DetectorConstruction;
class G4UIdirectory;
class G4UIcommand;
class G4UIcmdWithADouble;
class G4UIcmdWithAString;
class G4UIc... |
359f4f1c68acd37d06ed00e0b849dd2388931bb2 | b551ee4a22731025dd134494691cd63a2c796932 | /GameObject.h | f71a5d75c1b1ace43a8aeb7a59f1969301948e64 | [] | no_license | marktilbrook/directX-game | 71badad29a85eeb0e51eff494a2687a3da0bf655 | e9db343b8e0f98de843989c71aaa7de8534f27e7 | refs/heads/main | 2023-03-25T04:29:55.638872 | 2021-03-11T04:51:25 | 2021-03-11T04:51:25 | 342,120,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | GameObject.h | #pragma once
#include "vector2D.h"
#include "mydrawengine.h"
#include "gametimer.h"
#include "myinputs.h"
class GameObject
{
protected:
Vector2D m_position;
float m_angle;
bool m_isActive;
private:
PictureIndex m_image;
protected:
void LoadImage(const wchar_t* image);
public:
virtual void ... |
b11c498446dce982dd1c35e88a41bc719e3b7d7a | 912ec9f6e968b22f2ac77ec6084645386b70bea1 | /trunk/model/EntityInstance.cpp | e96fe3f1c9c7ee1dbdf2483c136b413643453a45 | [] | no_license | cpzhang/zen | 9156413d93f7dc9c5b48b9bd1e5cdb5a5b1657da | 6d6e06278aa37eb279e05c9097fd964bf476c939 | refs/heads/master | 2016-09-05T15:24:06.565446 | 2013-03-19T12:29:28 | 2013-03-19T12:29:28 | 7,439,357 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 11,604 | cpp | EntityInstance.cpp | #include "EntityInstance.h"
#include "tinyXML2/tinyxml2.h"
#include "misc/FileSystem.h"
#include "Entity.h"
#include "Skeleton.h"
#include "Skin.h"
#include "ModelResManager.h"
#include "Material.h"
#include "render/Fx.h"
#include "render/FxManager.h"
#include "render/rendercontext.h"
#include "ParticleEmitter.h"
#incl... |
48f33acbb3372b704c34a24ba79cfe18e38c268a | c980b5a13a0b1e7110bff5dab84e5d63111eaab5 | /RCBot/RCBot.h | 7218c07f1628a664446475fb3140e30b46b511bd | [
"MIT"
] | permissive | MindiyaCreations/RCBot_v1 | 4611489da65a46f80425ebe1af6bfa20f45f7daf | 144d9a9a680477a453ac244e06346b0a191fc333 | refs/heads/master | 2022-07-28T09:08:44.702634 | 2022-07-06T09:55:53 | 2022-07-06T09:55:53 | 179,781,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,636 | h | RCBot.h | /*
RCBot.h - Library for RCBot.
Created by Mindiya Karunasinghe, April 13, 2019.
Private library
*/
#ifndef RCBot_h
#define RCBot_h
#include "Arduino.h"
#include "NewPing.h"
class RCBot
{
public:
void setMotor(int A1,int A2,int C1,int C2);//Left Plus/Left Minus/Right Plus/Right Minus
void setMotors(in... |
b81782a8fb30550089d4048100a47f99982fac54 | 8ce2ac605bf657e24dbb47ac439f90ec36bbf48f | /batched.hpp | e5eadf133af7f130705610b19e9e52fdaf1f643e | [
"BSD-2-Clause"
] | permissive | ryanhaining/cppitertools | b8bbf1c0fedad7c0b48b7c9b97b6cb6b686a1a22 | 492c15aab96f4ca3938a6b734d6a08cb7feea75a | refs/heads/master | 2023-08-28T13:23:57.922416 | 2023-07-04T03:37:50 | 2023-07-04T03:37:50 | 12,811,614 | 1,200 | 131 | BSD-2-Clause | 2023-06-09T21:04:28 | 2013-09-13T14:37:03 | C++ | UTF-8 | C++ | false | false | 4,437 | hpp | batched.hpp | #ifndef ITER_BATCHED_HPP_
#define ITER_BATCHED_HPP_
#include "internal/iterator_wrapper.hpp"
#include "internal/iteratoriterator.hpp"
#include "internal/iterbase.hpp"
#include <algorithm>
#include <functional>
#include <iterator>
#include <memory>
#include <type_traits>
#include <utility>
#include <vector>
namespace... |
d8370e326d716620ca6fd1f63c30839c21d1fd35 | 012c7909ba001da4a4d9f885108c7051065a8a21 | /POJ/3636 - Nested_Dolls.cpp | 239858772e766c8d6f359ab9eaa8ad91e7d9efc7 | [] | no_license | ajunwalker/Competitive-Programming | 0eaa299c202ed1ac7d1372a1f395179a992acf43 | cb342c099bb8a9edd24f2e9e6b8fc219a7391d05 | refs/heads/master | 2021-01-19T07:15:10.130792 | 2017-08-14T11:27:41 | 2017-08-14T11:27:41 | 87,529,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | cpp | 3636 - Nested_Dolls.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
#define MAX 20001
struct doll{
int width, height;
} dolls[MAX];
int cmp(doll a, doll b){
if (a.width != b.width) return a.width < b.width;
else return a.height > b.height;
}
int main(){
int c, m;
scanf("%d", &c);
for(int i = 0; i <... |
1004f26c7b87d3d3ea5b024b9a018ea4090b53f1 | 0b853cec122cecdf398c9e46989b7654a296fcf8 | /foxbomb/statement/Contestants/thinh/encoding.cpp | 73d8af55d33d49d15143d9eb72a8aec9d13bad55 | [] | no_license | KDuyVu/Problems | 3eed16a64fbf09d5e978ff7a2ded65047179c097 | aa7437c111d460ac1c30b759235ba41c53fb4e7f | refs/heads/master | 2023-06-07T16:43:35.829948 | 2016-05-13T10:28:23 | 2016-05-13T10:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | encoding.cpp | #include <algorithm>
#include <iostream>
#include <cstring>
#include <string>
#include <cstdio>
#include <cmath>
#include <stack>
#include <queue>
#include <cstdlib>
#include <list>
#include <set>
#include <map>
#define FOR(i , a, b) for(int i = a,_b =b; i <= _b ; i++)
#define FORD(i , a,b) for(int i = a,_b = b; i... |
6a8de008b1ec20b9f4780631f5688f2ce6d67237 | a422c5835c9da1bc17daafbdcc5899f67f3f4ea3 | /eden/fs/inodes/EdenDispatcher.cpp | b38d66099c753d5815f9fff4900a07cfd70aa9b5 | [
"BSD-3-Clause"
] | permissive | Happy-Ferret/eden | a2b4ffa7184cc696a25a60acad22003b2a2dafb4 | 0ac8eda5c8e1ca960c5579771d46e6c445c13e99 | refs/heads/master | 2021-09-08T13:41:43.364448 | 2018-03-10T00:24:40 | 2018-03-10T00:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,691 | cpp | EdenDispatcher.cpp | /*
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
45090152371b026f83bcb799d35b1d4d86651ab9 | 38e60cbbbd4caff6e85e0ccb35821fe3744c19f8 | /main/lib/processors/processor_mn_mt.cpp | 25d0916da30ecafea163106aff640a6f0215da35 | [] | no_license | laitingsheng/2019S1-COMP90024-Project-1 | 7aeb4a5530183ad0e23a0d4dc10d57b423732a8f | 235bda67b76d7ca6dcfdfc629d7a31485ad4907b | refs/heads/master | 2023-07-11T07:04:46.155732 | 2021-08-24T02:36:56 | 2021-08-24T02:36:56 | 181,406,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,498 | cpp | processor_mn_mt.cpp | #include <omp.h>
#include <boost/serialization/unordered_map.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/sort/sort.hpp>
#include "processors/processor_mn_mt.h"
// @formatter:off
processor_mn_mt::processor_mn_mt(
char const * filename,
grid const & g,
boost::mpi::environment const & env... |
2f08d1fe130fb16348ab47a1a83af65a71bf2491 | ff13ee3f26fcc02863ad31ea9331b20bc284fc23 | /include/PrimaryGeneratorAction.hh | 87e21318f9a2437203abfa87d0d728ce837db91f | [] | no_license | mengyx-work/XenonChamber_ScENE_10keVNeutron_G4Simulation | f0eff929465f147d7b6ce4be5baa05b85d3a2a5a | 10141e1eb6dd586d45a1bd29ba3a27178096b9cd | refs/heads/master | 2021-03-12T20:17:24.694820 | 2016-11-19T07:29:32 | 2016-11-19T07:29:32 | 37,139,689 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 572 | hh | PrimaryGeneratorAction.hh | #ifndef PRIMARYGENERATORACTION_HH
#define RIMARYGENERATORACTION_HH
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ThreeVector.hh"
#include "globals.hh"
class G4ParticleGun;
//class G4GeneralParticleSource;
class G4Event;
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
public:
// C... |
d0fa5e4c735d7980454cbfc87bffe1db9d7bf351 | 23f902883274b72db1cd127aed2b28ed9c6e16ec | /Algorithm/BOJ/11651 좌표 정렬하기 2.cpp | e5582a90e0f378309e6cc582a112e49400875de6 | [] | no_license | youseokhwan/today-i-learned | 854bfc9a7ce321c8ecbc0037f67fb7217660c8a6 | 82d602daf129e1dbabc403f17924109e87ea2083 | refs/heads/master | 2021-06-16T18:56:48.313938 | 2021-02-11T01:30:03 | 2021-02-11T01:30:03 | 162,527,739 | 0 | 2 | null | 2020-01-01T14:41:15 | 2018-12-20T04:46:27 | Jupyter Notebook | UTF-8 | C++ | false | false | 589 | cpp | 11651 좌표 정렬하기 2.cpp | #include <iostream>
#include <vector>
#include <algorithm>
struct Point {
int x, y;
};
bool yFirst(Point A, Point B) {
if(A.y == B.y)
return (A.x < B.x);
else
return (A.y < B.y);
}
int main() {
std::ios_base::sync_with_stdio(false);
int N;
std::cin >> N;
std::vector<Point> v;
for(int i = 0; i < N; i+... |
1de8d79455a8b2ca38b94876fa5f319ee4910adf | 3e0a438c91fff897d208fa235e29645c7c71bbc0 | /test/manipulators/floating_point_double_manipulator_test.h | 98d9181452db57cb6a892654087f6856049cbf68 | [
"MIT"
] | permissive | project-eutopia/vega | 6c84b5c0dcb078fd5e3399ee4cccdade6c72cee2 | 9b017016f15260150aa202a9513dd7c61a2c798f | refs/heads/master | 2022-12-20T21:31:11.899738 | 2022-03-23T03:10:41 | 2022-03-23T03:10:41 | 117,390,714 | 27 | 8 | MIT | 2022-12-08T21:33:09 | 2018-01-14T00:53:28 | C++ | UTF-8 | C++ | false | false | 951 | h | floating_point_double_manipulator_test.h | #pragma once
#include "../test_helper.h"
#include "vega/manipulators/floating_point_double_manipulator.h"
#include "vega/dicom/data_element.h"
using namespace vega;
using namespace vega::manipulators;
TEST(FloatingPointDoubleManipulatorTest, constructor_test) {
FloatingPointDoubleManipulator manipulator{};
man... |
f54864ca674d63049338058bd09a58828ffbfc8d | b764131b1419321a7f3b3857e6327e7ef7543d53 | /src/sdl/include/console.hpp | b29c295c16d1ee65d9989ad5858a39f35e210ff0 | [] | no_license | lispberry/rogue | 3703191a6a2d3603d33fe779df9a19b9ab0cd5b7 | 866f73561f5a9101c4dbd68f540a4c6baaef5e8f | refs/heads/main | 2023-03-02T00:50:07.694589 | 2021-02-08T20:01:03 | 2021-02-08T20:01:03 | 324,248,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,777 | hpp | console.hpp | #ifndef ROGUE_CONSOLE_HPP
#define ROGUE_CONSOLE_HPP
#include <SDL2/SDL.h>
#include <iostream>
#include <SDL2/SDL_ttf.h>
#include <boost/algorithm/string.hpp>
#include <utility>
#include <algebra.hpp>
namespace rogue::console {
namespace internal {
template<typename T>
T *logged(T *subject, const s... |
a6b483a2700cf6adf8e3c4fba6f9d59d9a10aba4 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_1/C++/krienson/A.cpp | d8557536aeacc24dba4e556f5801b282498a3e10 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | A.cpp | #include<iostream>
using namespace std;
int R, C, W;
int main(){
int T; cin>>T;
for(int kases = 1; kases <= T; kases++){
cin>>R>>C>>W;
int res = (C/W)*R + (W-1) + (W>1&&W<C&&C%W>0?1:0); //first hit + rest of the size of the ship + chance of move the ship and fail
cout<<"Case #"<<kases<<": "<<res<<endl;
}
}
|
84ebd7666acdfc33bc37a2c4fa745fb37a668956 | f1054053f42f64f900a1b086db0c50856f2b0af0 | /PJP-semestral-work/error.cpp | 6d079380646e8b7be35d341457401c9e92c97e5d | [] | no_license | stemberamichal-School/PJP-semestral-work | 3953fdb0105d77133fdc6da83dbebbbac13cbc5a | 99d300556b827b53c89d34654824149d97135e0e | refs/heads/master | 2021-06-01T01:18:43.676868 | 2016-06-30T13:52:11 | 2016-06-30T13:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | cpp | error.cpp | //
// error.cpp
// PJP-semestral-work
//
// Created by Michal Štembera on 08/06/15.
// Copyright (c) 2015 Michal Štembera. All rights reserved.
//
#include "error.h"
#include <stdlib.h>
void error(const char * text) {
printf("\nERROR: %s\n", text);
exit(1);
}
|
fa4e1f672c8540667e24ef8e3a52143d64f3f131 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Event/EventTPCnv/EventTPCnv/EventInfo_p2.h | 14c8b1bd62621af8980765a37fd7f461490cc350 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | h | EventInfo_p2.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef EVENTTPCNV_EVENTINFO_P2_H
#define EVENTTPCNV_EVENTINFO_P2_H
/**
* @file EventInfo_p2.h
*
* @brief This class is the persistent representation of EventInfo
* @author R.D.Schaffer@cern.ch
*/
#include "EventTPCnv/EventID_p1.h"
#... |
d4d1f7187e113e7eafda77bb33369978e6d5c3a8 | 682a576b5bfde9cf914436ea1b3d6ec7e879630a | /components/common/core/memory/SPMemUserData.cc | f32e443ac1cb056128a3df84df50f7b9a2da16d4 | [
"MIT",
"BSD-3-Clause"
] | permissive | SBKarr/stappler | 6dc914eb4ce45dc8b1071a5822a0f0ba63623ae5 | 4392852d6a92dd26569d9dc1a31e65c3e47c2e6a | refs/heads/master | 2023-04-09T08:38:28.505085 | 2023-03-25T15:37:47 | 2023-03-25T15:37:47 | 42,354,380 | 10 | 3 | null | 2017-04-14T10:53:27 | 2015-09-12T11:16:09 | C++ | UTF-8 | C++ | false | false | 2,130 | cc | SPMemUserData.cc | /**
Copyright (c) 2019 Roman Katuntsev <sbkarr@stappler.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
6cdc8b3eb25893703b02a5a2d34805a3cb57a76a | c4535129a3913e44606fde1493f25f3886ddc77f | /Chapter06/timer/timer.cpp | 80ea3f9a85024828a7fc9b8c8e7efcac1783b05c | [
"MIT"
] | permissive | abhishekchauh0n/Embedded-Programming-with-Modern-CPP-Cookbook | f7f9f0a27fdcc138693e4ec75a1243e794ba000a | 80b8513c68194e4ecb31b49ae827b4fd0f8df573 | refs/heads/master | 2022-12-17T16:24:10.112825 | 2020-09-03T12:09:34 | 2020-09-03T12:09:34 | 293,453,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | timer.cpp | #include <iostream>
#include <chrono>
#include <system_error>
#include <thread>
#include <fcntl.h>
#include <sys/mman.h>
constexpr uint32_t kTimerBase = 0x3F003000;
struct SystemTimer {
uint32_t CS;
uint32_t counter_lo;
uint32_t counter_hi;
};
int main() {
int memfd = open("/dev/mem", O_RDWR | O_SYNC);
if (... |
c53d29e8009eaf86e9fe5de06ad04d06050223b8 | d4d06745a1ed357cad9ef1dc03462bfbe65b1d63 | /day04/ex03/src/AMateria.class.cpp | 366e0bd627b81b39e87ac3019eb98fdea0f9d633 | [] | no_license | potatokuka/Cpp_Piscene | 5d7c7b5af0691f347e5b2dde9027ea9fdacbcd00 | f203d026ad0ab12d5711ddd18686e4335703a762 | refs/heads/master | 2022-12-16T13:44:51.960228 | 2020-09-18T10:09:10 | 2020-09-18T10:09:10 | 282,245,546 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,495 | cpp | AMateria.class.cpp | /* ************************************************************************** */
/* */
/* :::::::: */
/* AMateria.class.cpp :+: :+: ... |
a17192532e43779991a1d91047f96bf1a418a422 | 022e2e472bb37ba39fbbe43c48542426ccb89e9a | /Include/result.h | 20027ead8b28e8dbd2e5e73caf8cf0a22e2230ac | [] | no_license | suphus/small_x_dijets | f1a2135431709f921f0f2646db5f59af4564875d | 527c85297077f7754690aac4582727fd4bc98094 | refs/heads/master | 2020-06-04T14:11:30.238171 | 2017-05-04T13:44:43 | 2017-05-04T13:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | h | result.h | #include<TFile.h>
#include<TH1.h>
#include<TGraphAsymmErrors.h>
#ifndef RESULT_H
#define RESULT_H
using namespace std;
class Result {
private:
public:
bool calculated = false;
TH1D *result;
TGraphAsymmErrors *syst;
TString name;
Result(TString );
void WriteToFile(TString );
};
#endif // RESULT_H
|
c7bf694ef9395654c6ae127d3fbbdafc82c0148e | e68c1f9134b44ddea144f7efa7523076f3f12d3a | /FinalCode/Barbarian_Male_1HT_LeapAttack_End.cpp | 10ec6cf705c9010b241136d999bb63f061ee01e1 | [] | no_license | iso5930/Direct-3D-Team-Portfolio | 4ac710ede0c9176702595cba5579af42887611cf | 84e64eb4e91c7e5b4aed77212cd08cfee038fcd3 | refs/heads/master | 2021-08-23T08:15:00.128591 | 2017-12-04T06:14:39 | 2017-12-04T06:14:39 | 112,998,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | Barbarian_Male_1HT_LeapAttack_End.cpp | #include "StdAfx.h"
#include "Barbarian_Male_1HT_LeapAttack_End.h"
CBarbarian_Male_1HT_LeapAttack_End::CBarbarian_Male_1HT_LeapAttack_End(void)
{
m_eStateType = STATE_TYPE_BARBARIAN_MALE_1HT_LEAPATTACK_END;
}
CBarbarian_Male_1HT_LeapAttack_End::~CBarbarian_Male_1HT_LeapAttack_End(void)
{
}
void CBarbarian_Male_1HT_... |
2d5c2e112e0cdc421b3a00eeda7178fb36ee6532 | 0329788a6657e212944fd1dffb818111e62ee2b0 | /docs/snippets/cpp/VS_Snippets_Winforms/Classic PropertyDescriptorCollection.Find Example/CPP/source.cpp | 24c9c39e0a02181b8efe8928628916b15000bb85 | [
"CC-BY-4.0",
"MIT"
] | permissive | MicrosoftDocs/visualstudio-docs | 3e506da16412dfee1f83e82a600c7ce0041c0f33 | bff072c38fcfc60cd02c9d1d4a7959ae26a8e23c | refs/heads/main | 2023-09-01T16:13:32.046442 | 2023-09-01T14:26:34 | 2023-09-01T14:26:34 | 73,740,273 | 1,050 | 1,984 | CC-BY-4.0 | 2023-09-14T17:04:58 | 2016-11-14T19:36:53 | Python | UTF-8 | C++ | false | false | 874 | cpp | source.cpp | #using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
Button^ button1;
TextB... |
64b34d01882300d8f103186ee9a2fb8eb2332ab4 | 3cf9f927fbc747090091642d37fb803b606b7e2f | /src/spriter/sfmlsoundfile.cpp | d193c8c93957e5f2154068bdcb05f647a9d609b4 | [] | no_license | Breush/evilly-evil-villains | d734dd7ce97c727fab8e4a67097170ef7f381d22 | f499963e9c2cfdc7c4fed42ca7b8c3d2bc7ecbe9 | refs/heads/master | 2022-07-09T18:24:18.996382 | 2022-06-22T07:08:38 | 2022-06-22T07:08:38 | 29,420,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | sfmlsoundfile.cpp | #include "spriter/sfmlsoundfile.hpp"
#include "context/context.hpp"
#include "spriter/sfmlsoundobjectinforeference.hpp"
#include <iostream>
using namespace SpriterEngine;
SfmlSoundFile::SfmlSoundFile(std::string initialFilePath) :
SoundFile(initialFilePath)
{
m_soundID = context::context.sounds.getID(path()... |
4122a868b5aa3b48559d74d163638fdd2542b8c4 | 1adab2d2cc6fe69dbec7c3353b98ea77e06644bb | /TASK-2/Book Library/Book.cpp | 3d11c9d1c05478e5660d60a843612e53eb8c0fff | [] | no_license | BilalAli181999/OOP-IN-C_Plus_Plus | 681bb28774bfe8c998456cb28f154a313f8292ae | 09274e930a33b05fb6acedb9de57b8ac2f6a8e1d | refs/heads/master | 2020-07-16T04:50:23.605385 | 2019-09-01T20:37:23 | 2019-09-01T20:37:23 | 205,723,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,339 | cpp | Book.cpp | //NAME:BILAL ALI
//ROLL NO:BCSF16A030
#include "Book.h"
Book::Book()//if we dont input by ourself ,constructor is made to auto generate default objects
{
bC++;
strcpy_s(authorName, "Tony Gadis");
strcpy_s(bookTitle, "c++");
strcpy_s(publisherName, "Aone publishers");
bookCode = bC;
}
Book::Book(char* aN, char* ... |
9bab334151a583d9689e46411d53c27a1dea99d8 | c68cc603d13d2a2ad95ab942402f3f659f1a4a66 | /tp1/src/sched_rr2.cpp | ec1e3a8073026b4f16560f74f65a1af87e005740 | [
"MIT"
] | permissive | mcaravario/so-tps | 06edfa4ab73181572b738beee8458e4082eadc8b | 75c995f275806fa2243d857226e243a94eb82af3 | refs/heads/master | 2021-01-10T07:26:59.985846 | 2016-04-08T05:08:29 | 2016-04-08T05:08:29 | 55,750,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | cpp | sched_rr2.cpp | #include <vector>
#include <queue>
#include "sched_rr2.h"
#include "basesched.h"
#include <algorithm>
using namespace std;
SchedRR2::SchedRR2(vector<int> argn) {
// Round robin recibe la cantidad de cores y sus cpu_quantum por parámetro
for (int i = 0; i < argn[0]; i++){
cores.push_back(core_info(argn[i + 1]));... |
74322af477136d6e17a000e3c6621ad10556eb9a | f7dc806f341ef5dbb0e11252a4693003a66853d5 | /thirdparty/oidn/mkl-dnn/src/cpu/cpu_inner_product_pd.hpp | 5880d3450cc75e6d6b1c1f01f9eeb734d1a1b437 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"CC-BY-4.0",
"OFL-1.1",
"Bison-exception-2.2",
"CC0-1.0",
"LicenseRef-scancode-nvidia-2002",
"LicenseRef-scancode-other-permissive",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clau... | permissive | godotengine/godot | 8a2419750f4851d1426a8f3bcb52cac5c86f23c2 | 970be7afdc111ccc7459d7ef3560de70e6d08c80 | refs/heads/master | 2023-08-21T14:37:00.262883 | 2023-08-21T06:26:15 | 2023-08-21T06:26:15 | 15,634,981 | 68,852 | 18,388 | MIT | 2023-09-14T21:42:16 | 2014-01-04T16:05:36 | C++ | UTF-8 | C++ | false | false | 3,025 | hpp | cpu_inner_product_pd.hpp | /*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* 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.apa... |
9bdc6feea36427f3710868ad6062a190c67623a8 | 4e9cd224ff2b7ba2ee82439c03113a1c3a795762 | /src/solvers/NavierStokes/luoIBM/kernels/LHS1.h | 39b42c123017214ac90fcc441988c9d9e7796865 | [
"MIT"
] | permissive | chrisminar/cuIBM | e7d0620579dd8759e4bffa2adb927967cb7d71fd | 8d4e8004f51bfc22e079c0f3443acd18df19c2af | refs/heads/master | 2020-04-03T12:24:17.581407 | 2017-01-06T18:33:35 | 2017-01-06T18:33:35 | 30,205,199 | 0 | 1 | null | 2015-02-02T19:51:24 | 2015-02-02T19:51:24 | null | UTF-8 | C++ | false | false | 327 | h | LHS1.h | #pragma once
namespace kernels
{
__global__
void LHS1_mid_luo_X(int *row, int *col, double *val, int *ghostTagsUV, double *dx, double *dy, double dt, double nu, int nx, int ny);
__global__
void LHS1_mid_luo_Y(int *row, int *col, double *val, int *ghostTagsUV, double *dx, double *dy, double dt, double nu, int nx, int ... |
b46efd4c5a6af7e1fe13e6d4a518c454db17eefd | b38383846d082ec4e65ac18c1582f1ce231ea0b4 | /Siv3D/include/Siv3D/CommonVector.hpp | aa3c06bc2e9858a88268ea52741ec553b4d375c5 | [
"MIT"
] | permissive | Siv3D/siv6 | 9c12427f470b65772f40504b1e5e5239a60bbe95 | 090e82b2f6398640638dfa43da3f829ba977d0e2 | refs/heads/master | 2021-02-07T05:12:41.108547 | 2020-10-25T05:27:11 | 2020-10-25T05:27:11 | 243,986,884 | 3 | 5 | MIT | 2020-09-27T14:32:38 | 2020-02-29T14:50:43 | C++ | UTF-8 | C++ | false | false | 1,519 | hpp | CommonVector.hpp | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2020 Ryo Suzuki
// Copyright (c) 2016-2020 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Common.hpp"
# include... |
acbb918622b0f0e6810b77a7177593a842208d93 | ce7be8660d0a8c8b7f2e9df24fc44a6cea8222b5 | /ikaros/Source/UserModules/TouchId/TouchId.cc | af92fde3ca5d51ec613477ce80fad4acf13d50d8 | [] | no_license | martingkarlssonstudent/SystemAffectiveTouch | 3556eb53a09f7f0760616efcc375abfea44b077f | bee4e60aeb26d6521134a90feefdbb6ea872a76e | refs/heads/main | 2023-08-05T11:01:13.505135 | 2021-09-14T18:21:26 | 2021-09-14T18:21:26 | 369,239,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,577 | cc | TouchId.cc | #include <fstream>
#include <utility>
#include <vector>
#include <iostream>
using namespace std;
#include "TouchId.h"
#include <math.h>
#include <sstream>
#include <string>
#include <list>
using namespace ikaros;
Module *
TouchId::Create(Parameter * p)
{
return new TouchId(p);
}
TouchId::Touc... |
1156217c9e854a07e25885f0d0a2733d8daf26d9 | 0254126b4db8b5cec973c3f314241eaf874653ac | /libs/ml/include/ml/optimisation/optimiser.hpp | a631d32614620c5dcc5b7a59e0a5120a38d222b7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | permissive | devjsc/ledger-1 | 3a43bc1366637675122c60cdcf5d7ecf28cb5593 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | refs/heads/develop | 2020-05-01T17:00:54.682373 | 2019-06-05T14:09:57 | 2019-06-05T14:09:57 | 177,588,292 | 0 | 0 | Apache-2.0 | 2019-06-05T15:24:51 | 2019-03-25T13:06:56 | C++ | UTF-8 | C++ | false | false | 4,422 | hpp | optimiser.hpp | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... |
3f27376bb1400cd7386d9afdadb1938db2bdf419 | 627d4d432c86ad98f669214d9966ae2db1600b31 | /src/core/io/qfilesystemmetadata_p.h | 57c25b2f00a4c634ec74ecffa8eeaa824a5ba18f | [] | no_license | fluxer/copperspice | 6dbab905f71843b8a3f52c844b841cef17f71f3f | 07e7d1315d212a4568589b0ab1bd6c29c06d70a1 | refs/heads/cs-1.1 | 2021-01-17T21:21:54.176319 | 2015-08-26T15:25:29 | 2015-08-26T15:25:29 | 39,802,091 | 6 | 0 | null | 2015-07-27T23:04:01 | 2015-07-27T23:04:00 | null | UTF-8 | C++ | false | false | 12,122 | h | qfilesystemmetadata_p.h | /***********************************************************************
*
* Copyright (c) 2012-2015 Barbara Geller
* Copyright (c) 2012-2015 Ansel Sermersheim
* Copyright (c) 2012-2014 Digia Plc and/or its subsidiary(-ies).
* Copyright (c) 2008-2012 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.... |
08fda4f9c7e86400208bcb7b8dc3c10f56055045 | 029b00470f7e54d2cc1e0481ea2064b670a8e08e | /src/Game/GameStates/MapEditorState.cpp | 5f832d7d1b80be3f31938c7c81feaec536b5f4ad | [] | no_license | MaxBuilder/LifProjet | 85f15269dc5a426028c52487494aec878651089b | ab57d855d18d370aaaf97f6dcbacdd2d667f320e | refs/heads/master | 2023-04-05T02:31:42.552568 | 2021-05-03T06:33:45 | 2021-05-03T06:33:45 | 333,030,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,373 | cpp | MapEditorState.cpp | //
// Created by thibaut on 01/02/2021.
//
#include "MapEditorState.hpp"
MapEditorState::MapEditorState(StateStack &stack, Context context)
: State(stack, context)
, map(context.textures.get(Textures::MapGround), context.textures.get(Textures::EditorAllSoldiers), 16.f)
, mPaletteBar(sf::IntRect(1130,100,150,550),4)
,... |
c0f430767b8c35d4e05e61b84579c2439038f9d7 | beba204784698e2ebb174c63674815e8238e2fb5 | /src/Modules/Interface/IModuleBuilder.hpp | c431093118059ac620713bcb36cf416c81693b5e | [
"MIT"
] | permissive | pawel-jarosz/nastya-lisp | 599a04d0b6b37ff4230268641847df9efc92c3ec | 813a58523b741e00c8c27980fe658b546e9ff38c | refs/heads/master | 2023-05-12T06:18:12.810066 | 2021-06-08T09:37:18 | 2021-06-08T09:37:18 | 321,453,980 | 1 | 0 | MIT | 2021-06-08T09:35:31 | 2020-12-14T19:39:34 | C++ | UTF-8 | C++ | false | false | 254 | hpp | IModuleBuilder.hpp | //
// Created by caedus on 04.02.2021.
//
#pragma once
#include "Modules/Interface/IModule.hpp"
namespace nastya::modules {
class IModuleBuilder {
public:
virtual ~IModuleBuilder() = default;
virtual std::unique_ptr<IModule> build() = 0;
};
}
|
c2a89d63349e0b580ec414812a9d50b9249e78aa | fd27f79974cb261b67f87fa32f6abdc4fc6a2709 | /medicalKG/genAtc.cpp | 31af4cf91d53751d12af302a494dd0448a26a5c3 | [] | no_license | king-yyf/filehandle | 2beca86a9c024c4b899825117a13d06df2514315 | 2ac0da83afe1a9c813e5373f260f2f9318414b96 | refs/heads/master | 2021-09-24T06:38:31.698999 | 2018-10-04T14:58:32 | 2018-10-04T14:58:32 | 115,418,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,664 | cpp | genAtc.cpp | //
// main.cpp
// txt2owl
//
// Created by Yang Yunfei on 2018/7/16.
// Copyright © 2018年 Yang Yunfei. All rights reserved.
//
#include <iostream>
#include <set>
#include <cstring>
#include <string>
#include <queue>
#include <map>
using namespace std;
string get_fa(string key, map<string, string> actMap)
{
i... |
2086f213cddf6e5bb08a1ac7de6b75ffcd7c3dcc | e523a3393be45b603b26f0b1f2e3bad876a9d48d | /CommWithPi_2.1_WriteByteToPi/CommWithPi_2.1_WriteByteToPi.ino | 4afed08eb690ca5072dbccb254310c8ad56196fe | [] | no_license | BradROlbrey/I2C | 9bddd64a6fcad196d9177f22e83f40eb0c4fbcfc | 6c0f0482148c59fc35e3a31d98b6a9659eea620b | refs/heads/master | 2020-08-06T18:31:14.869308 | 2019-10-06T04:10:12 | 2019-10-06T04:10:12 | 213,107,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | ino | CommWithPi_2.1_WriteByteToPi.ino | // Wire Slave Sender
// by Nicholas Zambetti <http://www.zambetti.com>
// Demonstrates use of the Wire library
// Sends data as an I2C/TWI slave device
// Refer to the "Wire Master Reader" example for use with this
// Created 29 March 2006
// This example code is in the public domain.
byte to_send = 1;
#include <W... |
befc9139310bafa0e2e84896e20037bad7f6e427 | 6b68b51c3745d9c8de701dca4db403ba4a73ed54 | /crosbot_ui/include/crosbot_ui/renders/robot/joystick.hpp | cf1754bd3a4f9b0f96be42959d6036ebcdf3e571 | [] | no_license | Forrest-Z/rsa-crosbot | 3b9fd1a8074b2bdc5dcdac08c2bac5d999599055 | e539b418b850132d92a8369826961e7280d4f960 | refs/heads/master | 2020-06-06T21:58:17.428140 | 2016-10-30T00:55:53 | 2016-10-30T00:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | hpp | joystick.hpp | /*
* image.h
*
* Created on: 22/03/2012
* Author: rescue
*/
#ifndef CROSBOT_RENDER_JOYSTICK_HPP_
#define CROSBOT_RENDER_JOYSTICK_HPP_
#include <crosbot_ui/panels/robot.hpp>
#include <crosbot_ui/joystick.hpp>
namespace crosbot {
namespace gui {
#define RENDER_JOYSTICK "joystick"
class JoystickRender : ... |
2d6db3303e7efb655ce5b65db771ee40014218dc | fb1ee9b9cb748599f75d8bafebdf78abebcf6002 | /queso/key_handler.h | 2caef3571393747b123472d76881cf36dc617eba | [] | no_license | russgayle/opengl4-lessons | fb64e604d876062685897c2e4917634ea64b427a | 33d310443e41b822f4dc612ff6acc770f02e488e | refs/heads/master | 2020-05-29T17:58:37.694304 | 2014-03-23T05:37:25 | 2014-03-23T05:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | key_handler.h | #ifndef _QUESO_KEY_HANDLER_H_
#define _QUESO_KEY_HANDLER_H_
#include "common.h"
namespace queso
{
void keyHandler(GLFWwindow* window, int key, int scancode, int action, int mods);
} // namespace queso
#endif //_QUESO_KEY_HANDLER_H_
|
15c8c4306800895a71dc4d9dea379575bd1002d7 | 78f8badd914d95d82c9da8bc9961f2c7c6d92b9a | /ImageProcessing/vtkCudaImageAnalytics/vtkCudaDirectedAcyclicGraphMaxFlowSegmentation.h | 45240c0b1ff8ba984bca8b0076cb5aaa4c930cd3 | [
"MIT"
] | permissive | jcfr/RobartsVTK | 140459de6a5f5a95c4d22255dcd00810a5b52939 | d711c99b9c5b8a53afd23ee10d84f77a24565a3f | refs/heads/master | 2021-01-25T13:24:01.221479 | 2018-03-01T18:28:20 | 2018-03-01T18:28:20 | 123,564,796 | 0 | 0 | MIT | 2018-03-02T10:18:50 | 2018-03-02T10:18:50 | null | UTF-8 | C++ | false | false | 4,970 | h | vtkCudaDirectedAcyclicGraphMaxFlowSegmentation.h | /*=========================================================================
Program: Robarts Visualization Toolkit
Module: vtkCudaDirectedAcyclicGraphMaxFlowSegmentation.h
Copyright (c) John SH Baxter, Robarts Research Institute
This software is distributed WITHOUT ANY WARRANTY; without even
the... |
44a7e83e033b3c6cc4cc7afd76d6f7758b8d3f99 | 69b7e41654886eb3382ae0312664c87c230c72b3 | /src/include/common.hpp | 4855878dc41f6a7160ae4abf401cd45a0655b12f | [
"MIT"
] | permissive | Axion243/FLattice | c6a5713128c59835785b242018f674add2334c27 | ddc6479a2c6de12dcdedf96b8e19cc3875b7a3fd | refs/heads/master | 2021-06-27T03:25:34.508651 | 2020-03-09T22:12:09 | 2020-03-09T22:12:09 | 164,052,181 | 0 | 1 | MIT | 2020-10-30T07:06:42 | 2019-01-04T03:18:17 | C++ | UTF-8 | C++ | false | false | 188 | hpp | common.hpp | #ifndef _COMMON_H_
#define _COMMON_H_
#include "allocator.hpp"
#include "field.hpp"
#include "calculation.hpp"
#include "stopwatch.hpp"
#include "write.hpp"
#include "search.hpp"
#endif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.