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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8bb91c69daea6e7b42b8948513394eabd9027efb | a9e416db797908d0533da4062dae4060a07ff7fd | /src/graphics/node_sprite_p.h | 6888678b1b1c8af02ad29c45398b3ceacb31b6dc | [
"WTFPL"
] | permissive | dfyx/jumping-cubes-tactics | b7a1f73d3742816b2bc3ce07ae751181af0cf7d9 | 30a96816ebe698302f3cc0a8d4971f68689508a0 | refs/heads/master | 2021-01-22T04:49:17.013675 | 2015-01-28T19:56:40 | 2015-01-28T19:56:40 | 15,534,874 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | node_sprite_p.h | #ifndef JCT_SFML_GRAPHICS_NODE_SPRITE_P_H
#define JCT_SFML_GRAPHICS_NODE_SPRITE_P_H
#include <SFML/Graphics.hpp>
namespace JCT_SFML
{
namespace Gamedata
{
class Node;
}
namespace Graphics
{
class NodeSpritePrivate
{
public:
Gamedata::Node *node;
sf::CircleShape circle;
sf::Text text;
sf::Fon... |
77161429ee0eb603841283e2f51dca8296ccd597 | 096961ee99272213aae979902aad0fed8b86a957 | /csacademy/66/processing_discounts.cc | 6109c468bd73dbff2ef0e1c27ed8300ea1632edd | [] | no_license | yassin64b/competitive-programming | 2d92ee9878e33b5f40da4f0440e994beb595a21b | 180a309da3e12d00c9e4dc384a9aa95ec3e80938 | refs/heads/master | 2021-03-27T15:58:27.450505 | 2020-01-11T16:40:17 | 2020-01-11T16:40:17 | 53,347,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cc | processing_discounts.cc | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
int N, X;
cin >> N >> X;
vector<pair<int, int>> ab(N);
for (int i = 0; i < N; ++i) {
cin >> ab[i].first >> ab[i].second;
}
sort(ab.begin(... |
7ae420e5ef54b6671be4cfb4393f2bc70aeb0ad1 | 104d3b210b9c70505a4041f0acc11d5745b9028b | /Source/LetsGo/PlayerStates/MatchPlayerState.h | ae763534e40df781b780ee1721c553985d7c3c96 | [] | no_license | lmbrmb/LetsGo | 12cbf1e736836b362fe4722a1261b1c1bf7f502a | 4ac0e256354179eb35774b4902d191bb523ded40 | refs/heads/master | 2023-06-05T18:22:01.669851 | 2021-06-29T08:59:31 | 2021-06-29T08:59:31 | 326,523,056 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | h | MatchPlayerState.h | #pragma once
#include "GameFramework/PlayerState.h"
#include "MatchPlayerState.generated.h"
///<summary>
///Match player state
///</summary>
UCLASS()
class LETSGO_API AMatchPlayerState : public APlayerState
{
GENERATED_BODY()
};
|
93de7ebab942dd1e097668652a93aa5f34dbf311 | 6a890dee5f189532d9d8d8a98974e4f9b5c7f926 | /src/CommandLineOption.cpp | 4a8c5021bbf5de5f74b5ab01c76eafe9c1f93691 | [] | no_license | is3000nx/text2prn | 9a1c7261d5f5a7dd12c80c9fe18edac237631f66 | 75eb794823cc7c1cbe55dcf16e6886b67e289db2 | refs/heads/master | 2020-04-13T07:54:19.609087 | 2015-01-12T01:31:52 | 2015-01-12T01:31:52 | 29,112,523 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | CommandLineOption.cpp | /*! @file
@brief コマンドライン引数
@author 依積晶紀
*/
#include "stdafx.h"
#include "CommandLineOption.h"
/* ==================================================================== */
//! コマンドライン引数の解析
/*
スイッチ("/","-"で始まる)は除外し、
存在するファイルのみを記憶する。 */
/* ============================================================... |
38c021734cc73a8f9a03548bf3487cf9e668173b | ccae26bab9b2ed70a28aacdd33e67649d559cc36 | /LINKEDLIST/listmain.cpp | 3bf5eac412b6752484d4116062b887c6fe69449c | [] | no_license | KateOlaz/Exercises | a4c5c0a063b514781a8da717a92f0704ef6fc6c9 | 39d38788a2f72019f58310075d1b0e8ea15d7ee8 | refs/heads/master | 2020-05-07T14:24:17.541037 | 2019-09-10T16:22:07 | 2019-09-10T16:22:07 | 180,592,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | listmain.cpp | #include <iostream>
//#include "linkedList.h"
#include "orderedLinkedList.h"
using namespace std;
int main()
{
orderedLinkedList<int> list1, list2;
int num;
cout << "Line 7: Enter numbers ending "<< "with -999." << endl;
cin >> num;
while (num != -999)
{
list1.orderedLinkedList<in... |
1ef5936c014146bf173e5216a44e30ca447f9eb3 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /library/cpp/yt/threading/count_down_latch.h | 14e344365edf2fe8e5a3d4e72f6c6a8220c94c7f | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | C++ | false | false | 908 | h | count_down_latch.h | #pragma once
#include "public.h"
#ifndef _linux_
#include <util/system/condvar.h>
#include <util/system/mutex.h>
#endif
namespace NYT::NThreading {
////////////////////////////////////////////////////////////////////////////////
//! A synchronization aid that allows one or more threads to wait until
//! a ... |
b4fdb1ca76bf2b5e6920caf65e634a3be419d9ea | 73ede1a995799326a6ca715c52b3419d9feba624 | /chp7/ex_7_2.cpp | d5c5c9385892cf6bd7fb55a4b60feb2fff8ca827 | [] | no_license | ljjhome/CPrimerPractice | 613382ed1d94a6b936dd0a0b8d7fe848bf7d02c1 | ce193c4cd06e6f4be9a70fc3821cdacb6a27ba50 | refs/heads/master | 2021-01-21T10:33:54.508816 | 2017-10-02T06:04:12 | 2017-10-02T06:04:12 | 83,449,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | ex_7_2.cpp | #include <iostream>
#include <string>
using namespace std;
struct Sale_data {
string bookNo;
unsigned units_sold = 0;
double revenue = 0.0;
Sale_data & combine(const Sale_data &sa);
string isbn(){return bookNo;}
};
Sale_data & Sale_data::combine(const Sale_data &sa){
units_sold += sa.units_sold... |
232ee6960aec6dd73c13d72efd145d86c595ee24 | 55021895dca1f57e884421ab1b9a9e398b89d1ce | /videowallcontroller.h | 1edb5c63d742a683da0a6997db7496e90211c246 | [] | no_license | sensorlab030/videowall-client | 07f7f18e516098db288afc5d7ea1260fea409e74 | 64e557422164f4e1a1fa3e18570852905923c36e | refs/heads/master | 2020-03-24T00:15:34.368450 | 2019-09-17T11:26:39 | 2019-09-17T11:26:39 | 142,282,518 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,988 | h | videowallcontroller.h | #ifndef VIDEOWALLCONTROLLER_H
#define VIDEOWALLCONTROLLER_H
#include <QObject>
#include "enums.h"
#include "animationmodel.h"
class WebSocket;
class VideoWallController : public QObject {
Q_OBJECT
Q_PROPERTY(ConnectionState::Enum connectionState READ connectionState NOTIFY connectionStateChanged)
Q_PROPERTY(int a... |
f8f588f64553089ae215eaab563877b7de63e53d | 96f73138d7d9d1e8e7a0e5e342ccbf40e7f4e151 | /TextGame/Locations.cpp | 11aed78109aa734997c59ac91140615ca588e5d3 | [] | no_license | GameSquatch/TextGame | 41bf6789668dd5036e1a8a6dcd5febb9846178bf | 5f221349ce27f1cefb19eb71e46606f0109df0a5 | refs/heads/master | 2020-03-12T08:52:02.846468 | 2018-05-16T18:57:55 | 2018-05-16T18:57:55 | 130,538,138 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,960 | cpp | Locations.cpp | //
// Locations.cpp
// TextGame
//
// Created by Ezekiel Williams on 5/23/17.
// Copyright © 2017 Ezekiel Williams. All rights reserved.
//
#include "Locations.hpp"
Locations::Locations(std::string title) {
prev = nullptr;
next = nullptr;
this->title = title;
staticOptionsStartKey = 1;
}
voi... |
9a7416a3f9867461362710f781176eebfab3c751 | 5ef7f5ba06b98319a5406dfa3b25c985257713d4 | /IGC/WrapperLLVM/include/llvmWrapper/IR/Value.h | 1b3ec8778bc527fa52bd0a38b7a86a9a2a298816 | [
"MIT"
] | permissive | intel/intel-graphics-compiler | 6a1ae1a84c541e967e70324492f22c941a02e38f | ea522543be6d042ec80e5db8e8878be31af68938 | refs/heads/master | 2023-09-03T20:31:55.215461 | 2023-08-29T18:31:52 | 2023-09-02T08:55:05 | 105,299,467 | 546 | 176 | NOASSERTION | 2023-08-23T08:57:03 | 2017-09-29T17:27:54 | C++ | UTF-8 | C++ | false | false | 2,559 | h | Value.h | /*========================== begin_copyright_notice ============================
Copyright (C) 2020-2023 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef IGCLLVM_IR_VALUE_H
#define IGCLLVM_IR_VALUE_H
#include "Probe/Assertion.h"... |
06ae93eb47e5ae1d8bbbe33953e28995a1a50082 | 690af9ab3de69553a531d07d6f0a16c6976b01a4 | /mainwindow.cpp | 2afacd973add453edc26bb5f3cb42ff42dffc3cc | [] | no_license | aspirantip/GData | fd5a6e583257767805da28524186dd4ffe9f57a9 | 0d0b6988023ab36ac9ec37559394e372f362fd1f | refs/heads/master | 2020-12-25T15:17:46.197243 | 2016-11-11T16:10:27 | 2016-11-11T16:10:27 | 67,041,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,626 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
f_loadModel(false)
{
ui->setupUi(this);
this->setWindowTitle( "Генерация данных" );
ui->sbNoiseLevel->setValue( 10 );
brHit = QBrush(Qt::green);
... |
c6f773b3d9b739ca7ee9d8355ad415a05f409015 | c1eacf630af8b23852845f27d6509b4b0d5eea1b | /DataStruct/0004.cpp | 788958c5250c8aa56c6b34c5f3cceaf2b3c405ad | [] | no_license | GISjingjie/DataStruct | 59f2408a44cdcde9b6307847267be9b7d07388f7 | 9bed92b9a19b09dd51479f73460b31a6b8dee464 | refs/heads/master | 2021-07-12T16:23:31.641629 | 2020-06-15T08:59:43 | 2020-06-15T08:59:43 | 146,618,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | cpp | 0004.cpp | #include <stdio.h>
int main()
{
int i;
int a[5]={0,1,2,3,4};
int *p=a;
for(i=0;i<5;i++)
{
printf("a[%d]=%d *(a+%d)=%d p[%d]=%d *(p+%d)=%d\n",i,a[i],i,(a+i),i,&p[i],i,(p+i));
return 0;
}
}
|
40f840f28ac1e974c0ea14dd0bac5beb58c08c70 | c6c5e2dc50aa6b1287cf243046c7e931a30121ce | /FLKGameEngine/src/FLKGameEngine/Core/Frameworks/Events/EventsGLFW.cpp | 150c147fd362d6171bd28be101949e21dded257c | [] | no_license | FreshLambdaKebab/OGL-Game-Engine | a613f15588ccdb0a077194e77e8a52e52743f0d3 | 15146a0abf93db14c38fdb777cb9293d2a05926b | refs/heads/master | 2020-04-06T03:35:15.915083 | 2016-10-31T04:54:19 | 2016-10-31T04:54:19 | 69,552,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | EventsGLFW.cpp | #include "EventsGLFW.hpp"
#ifdef FLK__GLFW
#include <iostream>
namespace FLKGameEngine
{
EventsGLFW::EventsGLFW()
{
// glfwSetKeyCallback( this->window, FrameworkGLFW::KeyCallback );
// glfwSetWindowCloseCallback( this->window, cbfun );
}
void EventsGLFW::KeyCallback(GLFWwindow * window, int key, int sc... |
c11eba2db54de87c637702979ac8adc04cd6044c | 2a0679562d901db59d5ac4139eee63924d04cafc | /GUI/CFont.cpp | 6d4e81daa8d9c216360315bca71eda8bf206ef9a | [] | no_license | basecq/GUIRenderAPI | 6a7b17c5406b6c0df0f3ac9a8e00d2f1f5d4493b | 724b30ad92b542e2c67843fd8dbbbd95eb31da8d | refs/heads/master | 2020-04-09T18:37:12.386909 | 2016-04-07T05:53:19 | 2016-04-07T05:53:19 | 60,545,809 | 1 | 0 | null | 2016-06-06T17:06:16 | 2016-06-06T17:06:14 | null | UTF-8 | C++ | false | false | 3,116 | cpp | CFont.cpp | #include "CGUI.h"
/*
CFont::CFont( CDialog *Gui, IDirect3DDevice9 * pDevice, int iHeight, SIMPLEGUI_CHAR * pszFaceName, bool bold, bool italic )
{
m_pDialog = Gui;
HRESULT hResult = D3DXCreateFont( pDevice, -MulDiv( iHeight, GetDeviceCaps( GetDC( 0 ), LOGPIXELSY ), 72 ), 0, bold?FW_BOLD:FW_NORMAL, 0, italic, DEFAULT_... |
ffe2e37bfa925d2f1da5425b83cd78b59004994f | 28c132f1551963d59b1dc899ec9aed39f947af5d | /src/737_SentenceSimilarityII/Solution.cpp | 1ef7ceddcd5f67868cbb32132c45b6219a75e2b1 | [] | no_license | ericxl/LeetCode | eb8f18e42848611f40064e83f49de6256be91a1c | ae9deb7e0e07b3e095952389d421389500676539 | refs/heads/master | 2021-03-30T17:12:58.243258 | 2018-04-11T18:47:18 | 2018-04-11T18:47:18 | 118,958,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | Solution.cpp | //
// Created by Eric Liang on 4/10/18.
//
#include <leetcode.h>
string find(map<string, string>& m, string s) {
return !m.count(s) ? m[s] = s : (m[s] == s ? s : find(m, m[s]));
}
bool areSentencesSimilarTwo(vector<string>& a, vector<string>& b, vector<pair<string, string>> pairs) {
if (a.size() != b.size())... |
3560824c9759c6c0a35a4a4fff84c50b70fc9826 | 3b2fa6ddc534dd793b747f1695bc0483f442ff57 | /usaco silver practice/practice december 2020/rectangularpasture.cpp | 035df939c9db9bfdb8a14beee2aa242d6c659eea | [] | no_license | hannahjzhang/explorations | 37616a30b9b4b63bd5bcc0860d55b4ca8b21938e | 91544bfdb5743703b4aa9bfab7f8062553849e33 | refs/heads/main | 2023-03-16T20:28:23.637210 | 2021-03-15T04:22:27 | 2021-03-15T04:22:27 | 316,864,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,121 | cpp | rectangularpasture.cpp | //
// main.cpp
// RectangularPasture
//
// Created by Hannah Zhang on 2/13/21.
//
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int N;
const int maxN = 2501;
pair<int, int> points[maxN];
int prefix[maxN][maxN];
bool compareY(pair<int, int> a, pair<int, int> b) {
return a.seco... |
f1500bd10d4f7b0f43f2b34edadf579176ca27e9 | 8911eae8c3b902b8f8128556da6e43345a011f23 | /src/ast/fake_map.cpp | 0d93fa6fbfeb2a6cf7c030673e46bde914cf5729 | [
"Apache-2.0"
] | permissive | delphix/bpftrace | 85aeff7c2e5c5d2f6cde93a8c97e7ee13e6a457e | 5c01e35c47e5a3c37e37f6fbeac91c6119c53bd9 | refs/heads/master | 2023-08-16T19:49:47.777296 | 2021-04-29T04:19:16 | 2021-04-29T04:19:16 | 157,599,611 | 4 | 12 | Apache-2.0 | 2023-04-06T23:59:32 | 2018-11-14T19:25:09 | C++ | UTF-8 | C++ | false | false | 1,364 | cpp | fake_map.cpp | #include "fake_map.h"
namespace bpftrace {
int FakeMap::next_mapfd_ = 1;
FakeMap::FakeMap(const std::string &name,
const SizedType &type __attribute__((unused)),
const MapKey &key __attribute__((unused)),
int min __attribute__((unused)),
int max __a... |
d15d69ee91ef8515251d7ec7a003615480111d01 | 4d719c1e70f5342581a94af0ed85301f64d66cfc | /Deque/client.h | e2a5a6eef7850111dbc199d507a30ca16f4b6d7d | [] | no_license | afrederick89/DSA | 752f53b2f742595591c6febdbe13f2198faf2e60 | 9ef15c73b2875bee171ae83c47019dfcc17c5d7d | refs/heads/main | 2023-06-25T23:04:04.293729 | 2021-07-14T04:42:44 | 2021-07-14T04:42:44 | 385,814,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,565 | h | client.h | //============================================================================
// Name : Alex Frederick
// Assignment : 2 - Stacks/Queues
// Date : 2/7/2018
//============================================================================
#ifndef CLIENT_H_
#define CLIENT_H_
#include <iostream>
... |
2971016d06a0af403aee1f18719c4aef07699460 | 72f2992a3659ff746ba5ce65362acbe85a918df9 | /apps-src/apps/librose/gui/widgets/vertical_scrollbar.cpp | f2e11f33eb2e23cbafb17f77d5528bb95441fe6d | [
"BSD-2-Clause"
] | permissive | chongtianfeiyu/Rose | 4742f06ee9ecd55f9717ac6378084ccf8bb02a15 | 412175b57265ba2cda1e33dd2047a5a989246747 | refs/heads/main | 2023-05-23T14:03:08.095087 | 2021-06-19T13:23:58 | 2021-06-19T14:00:25 | 391,238,554 | 0 | 1 | BSD-2-Clause | 2021-07-31T02:39:25 | 2021-07-31T02:39:24 | null | UTF-8 | C++ | false | false | 3,302 | cpp | vertical_scrollbar.cpp | /* $Id: vertical_scrollbar.cpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
/*
Copyright (C) 2008 - 2012 by Mark de Wever <koraq@xs4all.nl>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation... |
9950a80654b89df6a9bc6fbe00c09ee6460a7dcd | b4b4e324cbc6159a02597aa66f52cb8e1bc43bc1 | /C++ code/Uva Online Judge/Q10559(2).cpp | ef50b0f7bf9aabe1f25f9ffdc179695dff7521f3 | [] | no_license | fsps60312/old-C-code | 5d0ffa0796dde5ab04c839e1dc786267b67de902 | b4be562c873afe9eacb45ab14f61c15b7115fc07 | refs/heads/master | 2022-11-30T10:55:25.587197 | 2017-06-03T16:23:03 | 2017-06-03T16:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | Q10559(2).cpp | #include<cstdio>
#include<cstdlib>
#include<map>
using namespace std;
struct pairtype
{
int color;
int sum;
};
pairtype S[200];
int Ssum,T,n;
map<int,int> colorcollect;
int tmp[200][200][200];//from, to, last clicked length(color is S[j].color)
int Max[200][200];
int main()
{
freopen("in.txt","r",stdin);
scanf("%d... |
bed16064e8105131e46ded7a4e6741ac521bbbb2 | ce434fc49f92c3b0bfefbf59e18adc7ed5ac59cf | /OpenLM35/OpenLM35_Example.ino | aa95d3ecfc28988e84d40394f94505e0a2604a5d | [] | no_license | tantt2810/OpenSensor | 19959d8f0892105962d7257f0386d91370f8fc3e | 9648ec98c03e7e341f62f30434b11fa6b3df5942 | refs/heads/master | 2021-01-21T13:14:14.935657 | 2016-05-26T07:40:03 | 2016-05-26T07:40:03 | 52,935,719 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,202 | ino | OpenLM35_Example.ino | /****************************************************************************************************
* The OpenSensor Arduino Library is an open sources for every body who work with sensor and arduino.
*
* @Created by Tran Tri Tan <tantt2810@gmail.com>.
* @Copyright (C) 2016.
*
* Full sources: https://github.com... |
f272a3999833b41d56ecab3418a73e322050c1fe | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/1095-Find-in-Mountain-Array/1095.cpp | f623cadd8e487a182f95e0b58ab99ff73a334e78 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | C++ | false | false | 737 | cpp | 1095.cpp | class Solution
{
public:
int findInMountainArray(int target, MountainArray &m)
{
int p = 0, r = m.length()-1;
while (p < r)
{
int mid = (p + r) >> 1;
if (m.get(mid) > m.get(mid + 1)) r = mid;
else p = mid + 1;
}
int i = bs(m, target, ... |
298908af71e58e076e46c1909e547b2abeeae280 | dbcfe515a5adce8a5ae290e03cae6244ce1c592b | /src/test.cc | 2c391bdadb8fe6f34caaedb4e0dd8ea5bd4aee2d | [] | no_license | xiaoDongSky/momenta-lane-detect | ebe00fc3500a6ccfc8d6857c2565408c4a7a38ba | d7e5dacaa7487d12f8ab763605e80ab1563236fc | refs/heads/master | 2021-04-05T23:40:52.294758 | 2017-05-07T01:16:13 | 2017-05-07T01:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,202 | cc | test.cc | #include <cv.h>
#include <cvaux.h>
#include <highgui.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
using namespace cv;
const double PI = 3.14159;
vector< vector< vector<Point> > > lanes;
void read_image_lines() {
string image_dir = "../caltech... |
d4ee535cddc7001e98d652f2cf01d3c760673773 | b3fb682a5a421b7f89dc678bb02d0f7a8df0c1ef | /libgraphics/src/main/cpp/clear_state_info.cpp | 3a1916850c715986ec236333072a823cebeb5c9c | [] | no_license | zmichaels11/asmjs-test | b84bf71905e444ebdaccba39e4f9965a0bd9019e | c21b4b59f70d13bb23c40f97f77f10c74d693d71 | refs/heads/master | 2020-06-14T18:33:03.622291 | 2018-02-15T00:36:21 | 2018-02-15T00:36:21 | 195,088,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | clear_state_info.cpp | #include "graphics/hstate/clear_state_info.hpp"
#include "graphics/hbitfield/clear_buffer.hpp"
namespace graphics {
clear_state_info clear_state_info::defaults() noexcept {
return {
static_cast<clear_buffer> (0),
{0.0F, 0.0F, 0.0F, 0.0F},
1.0F,
0
... |
8ebd96bc79fff9ea7e6054cf70e512182543bb2c | 4eac9e5e93d34429104d273450156e78d65b887c | /mysql_learning/connmysql-nonpre.cpp | c39062030aa712a1d896f965ef66e725e950d526 | [] | no_license | yushiyaogg/backup | 6e878793d86b89ed874222b6fd48552d7cded123 | 8eb6bab42027236d0d0934e45b51908abefd8dc8 | refs/heads/master | 2021-01-10T21:10:51.194152 | 2014-08-02T01:43:10 | 2014-08-02T01:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,302 | cpp | connmysql-nonpre.cpp | /*
* =====================================================================================
*
* Filename: connmysql-nonpre.cpp
*
* Description: Show use Connector/C to communicate with mysql
*
* Version: 1.0
* Created: 01/10/2013 03:12:15 AM
* Revision: none
* Compiler: ... |
62b47af9a5982a44956a8c211368b209ad443c18 | ccf3d4ddf8355b4a8e20ef9ade6af7e22d6b6159 | /groups/csa/csabbg/csabbg_allocatorforward.cpp | 19640dd06eb6d1c4bfde625deed89828800edff2 | [
"MIT"
] | permissive | hmaldona/bde_verify | 809442ecf0c36fd57d53f0251368baa5ae17247f | 6fb86bb21c387e829f77bbc9d25c86530c4d68d9 | refs/heads/debian | 2020-05-02T08:49:06.504911 | 2016-04-15T16:08:28 | 2016-04-15T16:08:28 | 38,367,232 | 0 | 3 | null | 2015-09-16T12:36:28 | 2015-07-01T11:22:29 | C++ | UTF-8 | C++ | false | false | 44,795 | cpp | csabbg_allocatorforward.cpp | // csabbg_allocatorforward.cpp -*-C++-*-
#include <clang/AST/ASTContext.h>
#include <clang/AST/Decl.h>
#include <clang/AST/DeclBase.h>
#include <clang/AST/DeclCXX.h>
#include <clang/AST/DeclTemplate.h>
#include <clang/AST/Expr.h>
#include <clang/AST/ExprCXX.h>
#include <clang/AST... |
510d002bd77616cf6dc329d77b7b9177a9c1af90 | 09fc7cba003d4637a9850aba7ab304154317b115 | /src/Client/Modules/SR3Lib/sr3_world.h | d1dc9c212f6e16ef367b257b785ae83e50efcf6c | [] | no_license | RootKiller/sr3mp-Abandoned | cc04632d50d6098ffd96adc329afdb0c49d02435 | 3ca7d11f2b85e0246c036c042779b5b38141938f | refs/heads/master | 2020-04-13T22:19:14.344079 | 2018-12-29T04:57:53 | 2018-12-29T04:57:53 | 163,476,212 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | h | sr3_world.h | //
// Saints Row The Third Multiplayer
// Copyright (C) 2015 All rights reserved
//
#pragma once
#include "Modules/Game/Memory/Hooks.h"
#include "objects/ctg_object.h"
class sr3_world /*: public ctg_world*/
{
public:
int destroy_object(ctg_object *const object, int, int);
};
inline sr3_world *get_world(void)
{... |
7f5cb9c4c65fe111a9a300ef128dd1b14c273391 | 1e7fc3dff647658bf3a77ac521ac433d4e09afe4 | /a3k-src/UI/a3kspeedselect.cpp | 76b26d1045854c1e23d0307f273c083b65659d4d | [] | no_license | kueller/a3k | 1be2928f1cd4d49612f24aace313e28cec1fbe10 | f24e668ccce324fc2ed03a36e7c1a7b618a39c13 | refs/heads/master | 2021-01-21T13:49:29.883361 | 2016-05-18T03:36:03 | 2016-05-18T03:36:03 | 51,227,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | a3kspeedselect.cpp | #include "a3kspeedselect.h"
#include "ui_a3kspeedselect.h"
#include "a3k.h"
a3kSpeedSelect::a3kSpeedSelect(QWidget *parent) :
QDialog(parent),
ui(new Ui::a3kSpeedSelect)
{
ui->setupUi(this);
}
a3kSpeedSelect::~a3kSpeedSelect()
{
delete ui;
}
void a3kSpeedSelect::on_pushButton_clicked()
{
bool ok... |
99649daf78fbc7e4acd466834af3a2e88249f2a4 | 39123f68902324b7f1b66790f3dfdb5ab3038d77 | /TrueDiskOper.h | 1d85c2e2079524ed87129ae16caf2a31a31cadc0 | [] | no_license | springtiger/VirtualDisk | 2a0a2a2f7d7f222b58898d01ffc1bd4204462f2b | 134c7ba9ebabe5673d0b75eaae9882f36f1261ab | refs/heads/main | 2023-07-01T16:59:07.981001 | 2021-08-03T11:21:24 | 2021-08-03T11:21:24 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,218 | h | TrueDiskOper.h | #pragma warning(disable:4244)
#include <windows.h>
#include <io.h>
#include <fstream>
#include "FileDisk.h"
#include "File.h"
//真实磁盘的操作
class TrueDiskOper
{
public:
TrueDiskOper();
virtual ~TrueDiskOper();
public:
static bool IsTrueDiskPath(string &path);//判断是否为真实磁盘路径,是并去除@字符
static vector<unsig... |
9dbd807d2a4f35bbe0690e97ccb53c135ffab734 | 6c22d7f75bcbb5ccb694406aa98579dc20aaa3aa | /fishparty/fishparty/fishparty/test_walkthrough1.xaml.cpp | f74f5a7935086023eaf0a065dc8ed5638f3cd4a2 | [] | no_license | raltyinferno/fishparty | 51479cc4e0b94a8bfd2858b7d955bd255869ff0c | 22b45e693211322e670ee35f740754d871550009 | refs/heads/master | 2018-09-20T01:42:38.730912 | 2018-06-06T10:56:06 | 2018-06-06T10:56:06 | 118,066,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,591 | cpp | test_walkthrough1.xaml.cpp | //
// test_walkthrough1.xaml.cpp
// Implementation of the test_walkthrough1 class
//
#include "pch.h"
#include "test_walkthrough1.xaml.h"
using namespace fishparty;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::... |
d342e2d302efc14dba6331b5e97f3616dbcd4e15 | 306212bf4b655d2415e42c3394c63d79f8f78c91 | /hw6_2/hw6_2/hw6_2.cpp | cf2c29de8871d52c8d22f3ed85cb0a0c525de60c | [] | no_license | skyloon95/CPP_Progrmming | caa44cc00d84ef8fb2295dff5670c3cbe5cfade8 | a64e06d75c0f1a06c4845a780dada8667bef230f | refs/heads/master | 2021-04-06T09:12:15.143944 | 2018-06-05T18:58:42 | 2018-06-05T18:58:42 | 125,147,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | hw6_2.cpp | //***************************
// File_Name: hw6_2.cpp
// Name: Seol-Ah Mo / 201432014
// Date: 2018.04.13
// Content: Use Television class
//***************************
#include <iostream>
#include "Television.h"
using namespace std;
int main() {
cout << "hw6_2 : Seol-Ah Mo" << endl << endl;
cout << "current numb... |
f54736ea2c8be127a7a588bbfe94ad88337273a5 | dcf3a012610ec242e523812df254e88e82401035 | /lab5/Rational/Rational/Rational.cpp | b8a0755922af56dc49b59e66bca0a1ee382d2122 | [] | no_license | venera13/oop | d398d766819d21ed44d54d3d526d8b424276de02 | 38d55b33015d47cd336b578aa77fe3d9fcf04688 | refs/heads/master | 2021-01-08T07:40:09.002914 | 2020-07-08T19:25:12 | 2020-07-08T19:25:12 | 241,957,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,267 | cpp | Rational.cpp | #include "Rational.h"
CRational::CRational(int numerator, int denominator)
{
if (denominator == 0)
{
m_numerator = 0;
m_denominator = 1;
}
else
{
m_numerator = numerator;
m_denominator = denominator;
NormalizeRational();
}
}
int CRational::GetNumerator() const
{
return m_numerator;... |
53674e6be39b640cb6c6440b9a03161db13e8a56 | a71e9cdceb5e006ad12562908c5240c9c92337f3 | /examples/ntrip_caster.cc | b7414a243563b17e6e0daa128d7f793d5d3204df | [
"Apache-2.0"
] | permissive | hail-linda/pi_ublox-ntrip | ada78e41dbe4b95e4ffd9f1f9b2684d7eb478e6b | 647cae59ee687216180a475d38fdf32ba90a1a25 | refs/heads/master | 2022-12-25T07:16:46.324604 | 2020-10-06T06:58:41 | 2020-10-06T06:58:41 | 294,602,322 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | cc | ntrip_caster.cc | // Copyright 2019 Yuming Meng. All Rights Reserved.
//
// 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 applicabl... |
3188285b5056e1966601751a6e73cdab6abb668f | 16669e70e8bcb950b785e9cc9964b988eb732121 | /src/Result.cpp | e4313c59652e4f79eb52aac14e372f1cc03dacab | [] | no_license | rijan-chapagain/registration | 9430eabde6bf3a0eb1ef0e6916107e3ea41e321d | a0e9bf5ff4a6843d53d8393d99257a85dffb5a34 | refs/heads/main | 2023-05-09T18:13:04.069925 | 2021-06-07T05:46:15 | 2021-06-07T05:46:15 | 350,561,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | cpp | Result.cpp | //
//
// Generated by StarUML(tm) C++ Add-In
//
// @ Project : Registration
// @ File Name : Result.cpp
// @ Date : 18/03/2021
// @ Author : RC
//
//
// Includes
#include <fstream>
#include "Result.h"
Result::Result() = default;
// for testing
void Result::SetCredits(unsigned credits)
{
units[0].SetCredits... |
c113136dc0dd644fbe7052ca182d9f684bf8c6cb | 44e26d76eed48195bc2432d7209386fb0a6d3c9d | /hw3/HTTPclient.cpp | 8bc3655b545fe5a070eff35d44a9db2775aef23e | [] | no_license | Cdower/netprog | 932d67fa1da50d9f54e94f26b0123b8889ca358f | e482a87a271b7da8156ef0fc7493390078b1f2ca | refs/heads/master | 2021-01-01T05:06:15.864976 | 2017-01-13T20:31:36 | 2017-01-13T20:31:36 | 57,340,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,274 | cpp | HTTPclient.cpp | #include <cstring>
#include <string>
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <sstream>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
using namespace std;
struct url_p{
const char * host;
const char ... |
40d935e25a4c420e826531b6b5a84e116cc23c70 | 3348039647aee132165e2cf982937ca163341b4b | /Homework/MiniGameStarter/TrainingFramework/src/GameObject/Text.h | b986cda1ddda0a66dded93473b66b5b6c5666193 | [] | no_license | HoangNhat629/Game | 64b12df184ea265dd613f7b070c8d5caae4120fa | e32ad7e95384d8c8228a2636105c2653353453e7 | refs/heads/master | 2023-08-23T14:29:39.577071 | 2021-10-18T03:19:05 | 2021-10-18T03:19:05 | 418,326,661 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | Text.h | #pragma once
#include "BaseObject.h"
enum class TextColor
{
WHITE = 0,
RED,
GREEN,
BLUE,
YELLOW,
PURPLE,
CYAN,
BLACK
};
enum class TextAlign
{
LEFT = 0,
RIGHT,
CENTER
};
class Font;
class Text : public BaseObject
{
public:
Text(std::shared_ptr<Shader> shader, std::sha... |
b9c8927c8f6e15784a7aef10964e5c510e76a5a2 | 71fe190bbeffdea271f74f2c862af7e1760d3f51 | /TGP_Project/Source/TGP_Project/Private/BodyGuardAI.cpp | 64a1ee7c890cd0179aac97864fadc3dc24896452 | [] | no_license | Sweet-Logic/TGP_PairProject | 537a06adedd348e26ac7bb84b732f77f42a6666a | d3804d6e8ddb56b292f707f91f53bd16b8a2d4b3 | refs/heads/master | 2021-10-10T00:23:56.860935 | 2019-01-05T00:11:07 | 2019-01-05T00:11:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,938 | cpp | BodyGuardAI.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "BodyGuardAI.h"
#include "BasePlayer.h"
#include "RestrictedEntrance.h"
#include "Engine/TargetPoint.h"
#include "Blueprint/AIBlueprintHelperLibrary.h"
#include "Kismet/GameplayStatics.h"
#include "DrawDebugHelpers.h"
#include "Wea... |
88f1619b5654fce8a2e1338c29a80050f490a04e | 8cb1752acec0400400c0b33737e982f980a4eb9e | /aosp/android-1.6/frameworks/base/services/surfaceflinger/SurfaceFlinger.h | 3284fdba999a031efc8e22760f768b2bcab8030d | [] | no_license | jollen/android-framework-mokoid | 80c1698743dac66df0ba6ba9db480731386d92c0 | 1075260ce25d320a73a3519af686e615c044d9fe | refs/heads/master | 2023-04-02T12:58:40.057364 | 2021-04-15T01:24:15 | 2021-04-15T01:24:34 | 6,413,284 | 29 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 16,965 | h | SurfaceFlinger.h | /*
* Copyright (C) 2007 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 app... |
4e329559e267b7e1f12b497c43074ed6f4b892fc | 70fbadd5f5dd9a0853b66b9424b1a65eeca7f057 | /SimpleNetworkProtocol/src/PeriodicExecutor.hpp | 9e1dd609cd32fcf8094c5691a0e481c651e1e996 | [
"Apache-2.0"
] | permissive | DrLk/MultiThreaded-Socket | 1a683e4dc12a8e8a2d14a1cc333eba05e68e8fed | db46457e0aa0c23bc981c090da4c0308dacb1cf7 | refs/heads/master | 2023-08-17T02:06:22.203941 | 2023-08-16T19:53:51 | 2023-08-16T19:53:51 | 206,960,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | hpp | PeriodicExecutor.hpp | #pragma once
#include <chrono>
#include <functional>
namespace FastTransport::Protocol {
class PeriodicExecutor {
using clock = std::chrono::steady_clock;
public:
PeriodicExecutor(std::function<void()>, const std::chrono::microseconds& interval);
void Run();
private:
std::function<void()> _functio... |
099fed7a611086e96b7081e104fb644b94b7fe4c | f61044b562fcc07b51ec29d35662148c8b4e763f | /contest067/Decrease.cc | 4e0cc5c06fe424805a4296f73929a6fecabe227b | [] | no_license | Sinclair-Dee/myAtcode | 3557d3f4275922787d79f3799d54f08e0348b36b | f1f543b66664703dc15480de9aaac2c4f7733dd3 | refs/heads/master | 2020-12-02T10:03:41.085108 | 2017-08-05T14:36:37 | 2017-08-05T14:36:37 | 96,683,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cc | Decrease.cc | //占用空间和时间都比较少的一种算法。
//Status:TO DO
//尚不理解题意。
#include <iostream>
#include <cstdio>
#include <algorithm>//??这个头文件中是什么??
using namespace std;
long long num[50];
int main()
{
long long k;
cin >> k;
long long t = k / 50;
for(int i = 0;i < 50;i ++) num[i] = k / 50;
k %= 50;
for(int i = 0;i < 50;i ... |
417b8446434fe2b25619b81dcbf469d04ca591fe | f48d5e72bd34dfd599c1687ae53aa4fc86384eaf | /hg_style/T2lSfeatLineS.cpp | 389853958e6f018a675703fa1fb1d0d6f7ac60ff | [] | no_license | ta2la/hg | f3c08fac5686a51f6529410a976e1bc9ae765508 | 937008bfa3bff78754099bae4c5473951b5ee7ee | refs/heads/master | 2021-06-28T01:44:42.045458 | 2020-12-14T21:15:47 | 2020-12-14T21:15:47 | 190,577,067 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | T2lSfeatLineS.cpp | //
// Copyright (C) 2015 Petr Talla. [petr.talla@gmail.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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... |
7419e202952072988cce128c999f1725734ef580 | 7719e2ae617b3bd0a444444707682d75c379c82d | /Labirintas/Daiktai.cpp | 6c37b4629a3384037d10b7327d61c7706ec5cf48 | [] | no_license | deivunis/Labirintas | d599db168eca8b38cc410ef3a9736b08b4402bb7 | 45b6806d30d185dd5afad1cb319ce3620721bcbf | refs/heads/master | 2023-04-20T01:20:44.277461 | 2021-05-14T16:36:23 | 2021-05-14T16:36:23 | 364,684,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | Daiktai.cpp | #include "Daiktai.h"
using namespace std;
int Items::Random()
{
srand((unsigned)time(0));
int skaicius = 1 + (rand() % 100);
return skaicius;
}
string Items::Maisas()
{
string auksas = "Aukso Maisas";
return auksas;
}
string Items::Hp()
{
string hp = "Gyvybiu eleksyras";
return hp;
}
string Items::Energy()
{
... |
28c98e7fadeee86e024f2050ce14903a77a13aad | 0768e217ef0b48b149e5c9b87f41d772cd9917f1 | /src/subr_port.cpp | b99f10270dc49a065b694db9d5d6528d1f518c0b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | fujita-y/ypsilon | e45c897436e333cf1a1009e13bfef72c3fb3cbe9 | 62e73643a4fe87458ae100e170bf4721d7a6dd16 | refs/heads/master | 2023-09-05T00:06:06.525714 | 2023-01-25T03:56:13 | 2023-01-25T04:02:59 | 41,003,666 | 45 | 7 | BSD-2-Clause | 2022-06-25T05:44:49 | 2015-08-19T00:05:35 | Scheme | UTF-8 | C++ | false | false | 87,452 | cpp | subr_port.cpp | // Copyright (c) 2004-2022 Yoshikatsu Fujita / LittleWing Company Limited.
// See LICENSE file for terms and conditions of use.
#include "core.h"
#include "arith.h"
#include "exception.h"
#include "fasl.h"
#include "heap.h"
#include "ioerror.h"
#include "port.h"
#include "printer.h"
#include "reader.h"
#include "subr.... |
37b02574ae43a7fe60bf9a889b6fa8d685478991 | 5a34f38e1d0b6a925bb602383705f0e45b449dff | /summerCamp/2018/d1w1/h.cpp | e39a98aaaab5389764c518c407420cc4cd0ad04a | [] | no_license | samuraiexx/competitiveProgramming | 15fcbcf75114c80d112473e5ce9d69b9f33d5280 | 1862e381d0d7aecc0082f2416950cd18b26858d4 | refs/heads/master | 2021-06-10T20:53:39.039074 | 2019-03-25T01:02:21 | 2019-03-25T01:02:21 | 106,463,296 | 0 | 1 | null | 2019-10-20T21:18:08 | 2017-10-10T19:43:09 | C++ | UTF-8 | C++ | false | false | 1,479 | cpp | h.cpp | #include<bits/stdc++.h>
using namespace std;
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define db(x) cerr << #x << "==" << x << endl
#define dbs(x) cerr << x << endl
#define _ << ", " <<
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<int, pi... |
7703af91dfe1390667a38f66f6427834f6d0fc0b | 18e64b590476fc55e4fbbe9df9f6228c25e720ab | /Engine/Game.cpp | fbfdfeca2eec245434a0b880e36de99d1687a732 | [] | no_license | ammar-nasser/arkanoid | e9c707dfcfa0004792e2d028fb9753431bc93fe8 | b4b1d964fe7d76e7a05d636fbcbaf9b5f610e18e | refs/heads/Arkanoid-master | 2023-03-02T14:49:16.374189 | 2021-02-06T20:09:54 | 2021-02-06T20:09:54 | 335,603,382 | 2 | 0 | null | 2021-02-06T20:09:55 | 2021-02-03T11:32:13 | C++ | UTF-8 | C++ | false | false | 2,816 | cpp | Game.cpp | /******************************************************************************************
* Chili DirectX Framework Version 16.07.20 *
* Game.cpp *
* Copyright 2016 PlanetChili.net <http://www.planetchili.net> *
* *
* This file is part of The Chili... |
823116c9c32b7ba812df9ca0e2d01472472e8c97 | 60441fc86dfbefacfa1e7bec9145d3b28a509d34 | /Checkers_Client/Peers/Peers.cpp | 16d772eb23650e2925e3d719f6019a5c4660cdf5 | [] | no_license | x64joxer/Checkers-New | 30e274eb86fadebe3059145085db42a2907817e9 | a59df8e712c8a615ccec67a5bd27edff1bfa49eb | refs/heads/master | 2020-04-03T20:56:54.943165 | 2017-06-02T04:13:57 | 2017-06-02T04:13:57 | 52,630,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28 | cpp | Peers.cpp | ../../Common/Peers/Peers.cpp |
d4974c62d43750b0ba8158e5f787ac65008ef22b | f0a5c4ce1a1f74bd73fe0eb35a08385c8b4070e6 | /C++/level1/Arviz.cpp | 61c1335bd6b4fcaa497c828f5aa491495a913db3 | [] | no_license | pumpuidev/referencia | 613fe4551f81459db63abed7f9b02c9f8efe1ddc | 769789e3b3f126750c4bda6daa211f9d023e64f5 | refs/heads/main | 2023-03-02T05:21:02.883613 | 2021-02-15T01:49:24 | 2021-02-15T01:49:24 | 305,376,917 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 1,327 | cpp | Arviz.cpp |
//Feladat: Egy folyószakasz vízmagasságot mérnek.
//Adjuk meg az árvizes szakaszokat 800>i. mérés és 800<i+1 mérés
#include <iostream>
using namespace std;
const int maxN=100;
void beolvasas(int &N,int F[]);
void arviziSzakasz(const int N,const int F[],int &Db);
void kiiras(const int N,const int F[],cons... |
f196e9ba5ba907101f6b09aeee9abda2a7655ab9 | 7161fbb98007be442bdf905cd39ba09fd859b5cd | /Transformation.cpp | a53cb4e7d68ad7d9050612d10c2745f797c707f5 | [] | no_license | ruthra-kumar/usaco | 521da827dada7257adc0e73cb022d113e3d6a5c0 | b57f2c5e920f679c45a5cf380110dcb27dc33086 | refs/heads/master | 2021-01-19T03:17:07.764483 | 2019-04-08T02:56:22 | 2019-04-08T02:56:22 | 55,295,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,579 | cpp | Transformation.cpp |
#include <iostream>
#include <fstream>
#define MAXSIZE 10
using namespace std;
class matrix{
char **b=NULL;
int n;
public:
matrix(int sz):n{sz}{ //base initializer
b = new char*[n];
for(int i=0;i<n;++i) b[i] = new char[n];
}
matrix(const matrix &m){ //copy constructor
... |
6fc2634c8731489b853183683571e4d0cf71b62e | 6f28c1657ad31c5c615fb4a7539cb909f505fa57 | /trunk/Source/Components/Collision/CCollideable.h | e720a1d32be6d3ccbbd3edd341af9f78fd8299d1 | [] | no_license | BGCX067/falconfish-scd-svn-to-git | e094adcc2e9a922ba986ec367c101d489ab916ce | f4f9993dbbf4ac908f036e4bcd23b6710fe6b6bd | refs/heads/master | 2021-01-13T00:56:29.780363 | 2015-12-28T14:36:25 | 2015-12-28T14:36:25 | 48,872,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,252 | h | CCollideable.h | /************************************************************************
* Filename: CCollideable.h
* Mod. Date: 07/25/2011
* Mod. Initials: RN
* Author: Raymond W. Nieves
* Purpose: Encapsulates all collision code within a Behavior Object
******************************************************************... |
78972082b9a3d56d952e90208b31288715c3358e | 820c61849a45ed69f3e4636e2d3f0486304b5d46 | /Contest Participations/Brain Fry/c.cpp | 616485c785217fd03cc6496998ed757e2dde1429 | [] | no_license | Tanmoytkd/programming-projects | 1d842c994b6e2c546ab37a5378a823f9c9443c39 | 42c6f741d6da1e4cf787b1b4971a72ab2c2919e1 | refs/heads/master | 2021-08-07T18:00:43.530215 | 2021-06-04T11:18:27 | 2021-06-04T11:18:27 | 42,516,841 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | c.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--) {
long double m;
cin >> m;
m = m*m/2.00;
cout << fixed << setprecision(2) << m << endl;
}
} |
658d29a81fe29d9bdf466c3bf1d9a7c0580db2cc | 5d3404096286830fab472bdf9f30842f0f13a6b6 | /LeetCode/Medium/120.Triangle/main.cpp | 560abe61e3919d347bd13372b8552b3196a98c2d | [] | no_license | YeongjinOh/Algorithm-practice | 0d4b2ed00e6eebc46667435c3fdc47f8fb1ae886 | 871428eed1158ef85ff31930588aaeb3d69661d2 | refs/heads/master | 2021-01-23T13:42:54.361325 | 2018-03-17T12:47:38 | 2018-03-17T12:47:38 | 54,641,868 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | cpp | main.cpp | class Solution {
public:
//////////////////////////////////////////////////////
// Solution 1) DP
// Time : O(n^2)
// Extra space : O(n^2) (if we can't change triangle)
//////////////////////////////////////////////////////
int minimumTotal(vector<vector<int>>& triang... |
72a7b21603c91a73a2890eecc88c006082558a3b | 82a7a8ff8fcdc569dff4486710defdea1d2c2c75 | /kernel.cpp | 9179962fc731111587e99637403fec087950f983 | [] | no_license | nnductuan/My_OS | f8c29d2aa7b18816d387cbafe1498b56dab7a1bc | a28fbcd02108b27cba838f2f2db329a0f094fc87 | refs/heads/master | 2021-08-28T08:16:22.725879 | 2017-12-11T17:12:41 | 2017-12-11T17:12:41 | 113,762,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | kernel.cpp | #include "types.h"
#include "gdt.h"
#include "port.h"
#include "interrupts.h"
void printf(char* str){
static uint16_t* VideoMemory = (unsigned uint16_t*)0xb8000;
static uint8_t x, y;
for(int i = 0; str[i] != '\0'; i++){
switch (str[i]){
case '\n':
x=0;
y+... |
7db5db761cfc938351089af5480324311e1674e6 | d2f5e0b43885cd080a4c5026ce133e288482f8d0 | /UVA/UVA_12247/Source.cpp | a197f17810683b37fba921d56082c9d68324ffda | [] | no_license | tito-kimbo/Online-Judge-Solutions | fb0ea2f2b9d8724a4b1f914a8be02294f1664135 | 1207e95365fb6f2691de077beaf2cbe7f0724c11 | refs/heads/master | 2020-06-03T04:18:32.970773 | 2019-06-11T19:12:52 | 2019-06-11T19:12:52 | 191,435,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | Source.cpp | #include <algorithm>
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
bool solve() {
vector<int> princess(3), prince(2);
unordered_map<int, bool> used;
cin >> princess[0] >> princess[1] >> princess[2];
cin >> prince[0] >> prince[1];
used[princess[0]] = used[princess[1]] = used... |
f3278e168cfa58ce68632b06a5ed1b0b63311417 | 98fd36b72994d0cddb993ceadcf9916d08ef2ff7 | /code/cuckoo_hash_map.h | 3dca691f4142b9e81ece589057a1469092731551 | [] | no_license | BensonQiu/ParaCuckooHash | 7f775508444cdb331fc3823b5bb9a6711a6dedfd | 819df27775b1c07f7b9655af689945c8e139a89b | refs/heads/master | 2020-12-25T21:34:56.854674 | 2016-05-10T05:35:46 | 2016-05-10T05:35:46 | 55,447,523 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 529 | h | cuckoo_hash_map.h | #ifndef CUCKOO_HASHMAP_H
#define CUCKOO_HASHMAP_H
template <typename T>
class CuckooHashMap {
public:
const int SLOTS_PER_BUCKET = 4;
const int MAX_ITERS = 500;
CuckooHashMap(int num_buckets=64);
~CuckooHashMap();
T get(std::string key);
void put(std::string key,... |
e6c792d5ce179b9a7596a4cb5bb444f65fdbd907 | 614478aefc56e0d0c479c1bb68fdea18e10e963f | /Week_01/26.remove-duplicates-from-sorted-array.cpp | b8f30446def7c0425b388b196e91fb2f25d16026 | [] | no_license | lzlssg/algorithm008-class01 | 67742bff88e00c69a6c31af22b133eb5c9238b63 | 569912c5702a3af016b3b1f0326456b46e9195c4 | refs/heads/master | 2023-05-02T05:39:34.821327 | 2021-05-31T12:29:20 | 2021-05-31T12:29:20 | 255,243,966 | 0 | 0 | null | 2020-04-13T05:58:46 | 2020-04-13T05:58:46 | null | UTF-8 | C++ | false | false | 515 | cpp | 26.remove-duplicates-from-sorted-array.cpp | /*
* @lc app=leetcode id=26 lang=cpp
*
* [26] Remove Duplicates from Sorted Array
*/
// @lc code=start
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int len = nums.size();
if (len == 0)
{
return 0;
}
int i = 0,j = 0;
while (j < le... |
80e9e1fc1fa8becaff3f89a629d6ef478efdc8df | 5b5b8427c68b7304fd220c89c86832fbc51eded2 | /Array/GetLargest_E.cpp | d263f04f229f91212595a053020466c2631dbc24 | [] | no_license | callmepranavv/DSA | 95f6c7fad245aabd04baa23d57ea9fc35b1c7259 | 6605dd11e4ab583272030bfe33e7c4f3bdb07d27 | refs/heads/main | 2023-08-03T17:24:47.945383 | 2021-09-19T01:01:42 | 2021-09-19T01:01:42 | 376,510,351 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | GetLargest_E.cpp | #include<iostream>
using namespace std;
int GetMinMax(int arr[] , int n)
{
int res = 0,res1=0;
for(int i = 1 ; i < n ; i++){
if (arr[i] > arr[res])
res = i;
if (arr[i] < arr[res1])
res1 = i;
}
cout<<"Largest Number is:->"<<arr[res]<<endl<<"Smallest Number is:->"<<arr[res1]<<endl;
return 0;
}
int m... |
5e5da3432160bb93e45f4082f491bb9634619f88 | 4828e4af2a8d96e708e6127b21abcf9da57945b2 | /Arduino/testing/components/home/home.ino | 4311da009cb14e6fe03b73dd088e50f85a83705c | [] | no_license | M-Hawkins/M3-LS_Micromanipulator | 9f8861a6aeb869fdfa1f49ba4b0dd33bc56eec6a | eaec87f37625c6aa8c428f19d55ae16a58d10917 | refs/heads/master | 2021-01-09T20:21:54.602559 | 2017-04-20T19:57:55 | 2017-04-20T19:57:55 | 81,275,061 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,714 | ino | home.ino | #include "M3LS.h"
int xpin = 2;
int ypin = 3;
int zpin = 4;
int xjoystickPin = A5;
int yjoystickPin = A6;
int zjoystickPin = A7;
int homeCounter = 0;
M3LS *myM3LS;
void setup(){
Serial.begin(9600);
Serial.println("Testing M3LS Joystick movement");
myM3LS = new M3LS(xpin, ypin, zpin);
Serial.println(... |
0648de6e6b4bb54391ee121795d5f41c6c1f7457 | 9d963319678fcd4930c8a0b2f29e2dd7575ca5c3 | /ArcGISRuntimeSDKQt_CppSamples_Widgets/DisplayInformation/BuildLegend/BuildLegend.h | e4e30da5ee25e2259ce8e13bdd394567394cc0a1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Gela/arcgis-runtime-samples-qt | a9ed563fe1b483c3fdb593e423955f45194b1304 | 1fe287ebd2ee887e708c22d620b3f28107d62e85 | refs/heads/main | 2023-08-03T06:20:11.722313 | 2021-08-25T21:35:42 | 2021-08-25T21:35:42 | 402,888,991 | 2 | 0 | Apache-2.0 | 2021-09-03T20:21:22 | 2021-09-03T20:21:22 | null | UTF-8 | C++ | false | false | 1,176 | h | BuildLegend.h | // [WriteFile Name=GORenderers, Category=DisplayInformation]
// [Legal]
// Copyright 2018 Esri.
// 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... |
b6ff3b7d53186ab07ea7bd46cd8a156203425a90 | 8e5d3e0cf1bb293e9e85c9c13c87798f80f18e51 | /kameleon-plus/trunk/kameleon-plus-working/src/ccmc/pyreaders/testVirtual.cpp | 2aab4fa8855ed169f7777b05d34e72044161459c | [] | no_license | ccmc/ccmc-software | 8fc43f9fa00e44d0b4a212c1841d574a9eaf3304 | 0e2fb90add626f185b0b71cdb9a7b8b3b5c43266 | refs/heads/master | 2021-01-17T03:58:07.261337 | 2018-04-04T15:22:37 | 2018-04-04T15:22:37 | 40,681,189 | 10 | 7 | null | 2015-08-13T20:51:18 | 2015-08-13T20:51:18 | null | UTF-8 | C++ | false | false | 2,278 | cpp | testVirtual.cpp | #include <boost/python.hpp>
using std::string;
using namespace boost::python;
namespace ccmc
{
class Base
{
public:
virtual string foo() const = 0; //pure virtual method
virtual string foo(int a) const = 0;
string fooBase() const { return foo(); }
// string fooBase(int a) const { retur... |
990b59ca80b67ca2e31d67cb8a43361d590a450e | 59b8e01374417f0e4030c710a57cd3e14911390c | /FlipGame/gridboard.cpp | 7e94435a55b7a1e52a62cadc13d73200c25825ea | [] | no_license | wfyaibaib/FlipGame | 501051f8c0fa8e838a59dd5b3dc8aff76e1eb836 | 3cdc01251858e2f9eab8f0d55699f2d8e9385e07 | refs/heads/master | 2016-09-05T16:44:51.961629 | 2013-08-14T10:35:30 | 2013-08-14T10:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,348 | cpp | gridboard.cpp | #include "gridboard.h"
#include "ui_gridboard.h"
GridBoard::GridBoard(QWidget *parent) :
QWidget(parent),
ui(new Ui::GridBoard)
{
ui->setupUi(this);
int rowcnt = ui->gridLayout->rowCount();
int colcnt = ui->gridLayout->columnCount();
for (int i = 0; i < rowcnt; ++i)
for (int j = 0; j <... |
4943152babb0ffec16690d6cb02410b691c67718 | dff1c58789b80ef1453ee260f0349d29bc1fd0fc | /src/detection_3d_visualizer_node.cpp | 2b51d16e4c1d986f9898686e5371741e552584c3 | [] | no_license | OUXT-Polaris/vision_msgs_visualization | 8b40164928c3e876ff51e402d10bfc077f88967b | 8d2a4a767e00fae48559f12fcc1fdd17c8189ff9 | refs/heads/master | 2020-05-22T03:33:35.803659 | 2019-09-19T00:44:56 | 2019-09-19T00:44:56 | 186,214,609 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | detection_3d_visualizer_node.cpp | // headers for ros
#include <ros/ros.h>
// headers in this package
#include <vision_msgs_visualization/detection_3d_visualizer.h>
int main(int argc, char *argv[])
{
ros::init(argc, argv, "detection_3d_visualizer_node");
ros::NodeHandle nh;
ros::NodeHandle pnh("~");
Detection3DVisualizer visualizer = D... |
b9a33d12e1c12df017b7ae69314d896181338313 | f5cb39a50f462b7d9a50f520d21094db46db61fd | /source/pancake.cc | 81acc06131aeb49588821402f37462f2f246296b | [] | no_license | radekmie/shiny-pancake | 706034c0182749a984e95483c5f7215cd5a9046b | 69df8422caacdacfd07694cbb1bc8c6e9c0bbc4f | refs/heads/master | 2021-01-11T08:41:06.922605 | 2016-12-20T16:37:15 | 2016-12-20T16:37:15 | 76,674,145 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cc | pancake.cc | #include "GameObject.hpp"
#include "Simulate.hpp"
#include <memory>
#include <node.h>
#include <v8.h>
void getData(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = args.GetIsolate();
auto result = simulate(isolate, args[0]->NumberValue());
args.GetReturnValue().Set(result);
}
void ini... |
1ce03655a498b436a9f563e871a70dd77942f263 | de5bbebd0b6c83f76bd65fc8984c5bb2154d8446 | /2020-2021/opencv/01/cv.cpp | c0a5396572c89593ab5bbd63ac15ddb56c38231d | [
"MIT"
] | permissive | pantadeusz/examples-ai | 5760f812de6112c2d66924160b35eef89b823300 | 7529242eb47123dd948d13eb44c5a28d225d11b9 | refs/heads/master | 2023-01-24T03:02:28.022307 | 2023-01-18T11:36:34 | 2023-01-18T11:36:34 | 90,629,458 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | cpp | cv.cpp | #include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <vector>
// g++ `pkg-config --cflags opencv4` cv.cpp `pkg-config --libs opencv4`
using namespace std;
using namespace cv;
int main(int argc, char **argv)
{
VideoCapture cap1(0);
if (!cap1.isOpened())
return -1;
namedWind... |
1fc8d40b75d73e79da470f41c382fff7fed34bbf | 67edf71151cf12e6a0ab092741623842f7dbd490 | /firmware/Magic_8_ball/Magic_8_ball.ino | eb8ac899c1e4bbac7ad2946e7a930efc15386f23 | [
"MIT"
] | permissive | platisd/dialectic-ball | c79085b79f701a58552447aee70539726d1d60cf | 670c791aaca9cd13c13acce2415db578768c6d74 | refs/heads/master | 2020-03-18T20:57:24.098235 | 2018-11-12T13:38:55 | 2018-11-12T13:38:55 | 135,249,286 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,517 | ino | Magic_8_ball.ino | #include <Nokia_LCD.h>
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include "bitmaps.hpp"
#include "tips.hpp"
enum WatchDogTimeout {
WDT_16ms = 0,
WDT_32ms,
WDT_64ms,
WDT_128ms,
WDT_250ms,
WDT_500ms,
WDT_1sec,... |
5ff2c65a0179f776e8cfe4f3b419d76d17ca77a9 | 8016aff531962cf0cfe742415309b2af9517bd57 | /PCDanmakuFlameMaster/utilities/StringUtils.hpp | 911ce3c5077da0307096dc23874ca362a4f12cfa | [
"Apache-2.0"
] | permissive | CalvinNeo/PCDanmakuFlameMaster | fd5580460c0ca876aeefb52469786278836b8f67 | d39a81472341cbceb28e1f2f1e9e4adf68061e89 | refs/heads/master | 2020-04-06T11:32:37.458205 | 2015-01-05T06:00:27 | 2015-01-05T06:00:27 | 29,225,565 | 1 | 0 | null | 2015-01-14T03:34:41 | 2015-01-14T03:34:41 | null | UTF-8 | C++ | false | false | 1,823 | hpp | StringUtils.hpp | /**
* @file StringUtils.hpp
* @brief ...
* @author zheng qian <xqq@0ginr.com>
* @date 2014-12-06
*/
#ifndef _PCDFM_UTILS_STRING_UTILS_HPP
#define _PCDFM_UTILS_STRING_UTILS_HPP
#include <string>
#include <vector>
#include <algorithm>
namespace PCDanmakuFlameMaster {
namespace util {
namespace StringUtil... |
4ccce0c14d3bf730d31b9536f88290fa688d9a1f | 05980d569d9d099789f94fff165238d0192151e5 | /libraries/VDG_Mod/LedFlash.cpp | 8cdb1f4c26deaa47f2d4b56359daf63ef2b4a1bd | [] | no_license | Den-W/WebOutlet | e543740047f0b681be1f78d8c2c0b66209812254 | 17be9976b8ae8b4976c1b887028da956e35cef72 | refs/heads/master | 2021-01-22T22:16:31.499257 | 2018-02-23T12:44:13 | 2018-02-23T12:44:13 | 92,767,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | LedFlash.cpp | /* Copyright (C) 2017 Vidyakin Denis Georgievich. All rights reserved.
*
* This software may be distributed and modified freely.
*/
#include <Arduino.h>
#include "VDG_Mod.h"
void VM_LedFlash( byte Pin, byte No, short MsLight, short MsDark )
{ pinMode( Pin, OUTPUT );
for( int i=0; i<No; i++ )
{ digitalWrite(... |
6f44253fdffea3c836966405496a39b4ccd39b92 | 0b335ed5c4a5c6686ed874845e3bc87e43b82a44 | /software/SpMVAcceleratorBufferAllDriver.hpp | 378417b37e348e8849de7903338f7ba7926ccdb0 | [] | no_license | hoangt/spmv-vector-cache | 19a7d691a529603fd065722c843949cf7f106d18 | a2bbb0f5bde231188af881e662b08673820bf694 | refs/heads/master | 2020-06-19T06:42:44.282695 | 2015-09-07T22:22:13 | 2015-09-07T22:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,684 | hpp | SpMVAcceleratorBufferAllDriver.hpp | #ifndef SpMVAcceleratorBufferAllDriver_H
#define SpMVAcceleratorBufferAllDriver_H
#include <assert.h>
class SpMVAcceleratorBufferAllDriver {
public:
static unsigned int expSignature() {return 0x34182cf6;};
SpMVAcceleratorBufferAllDriver(volatile unsigned int * baseAddr) {
m_baseAddr = baseAddr; assert(signature() =... |
2fe14bd07830ab9de5e4e038e85c59b8304e3590 | b153b59ce27cdd08a4a0fd120ec738bfcc5eb18b | /src/ImageAnalysis/ImageAnalysis/CoinFinder.h | 259d80faf41b32236a8dcddde3f1573bf2e17fe3 | [] | no_license | redcurry/BlackPearl | 6872af00b64db826ab0caac19cb097d9972131c4 | 246954a7430a3adbb8f48ea2df72efff073c10bd | refs/heads/master | 2020-04-23T09:45:08.093229 | 2019-02-26T03:15:02 | 2019-02-26T03:15:02 | 171,079,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | h | CoinFinder.h | #pragma once
#include <opencv2/opencv.hpp>
#include "Common.h"
class CoinFinder
{
public:
cv::RotatedRect find_coin(const cv::Mat& image) const;
private:
const double MedianKRatio = 0.02;
const int CannyThreshold1 = 300;
const int CannyThreshold2 = 150;
const double MinCircleFitRatio = 0.5;
const double Max... |
4d87018cb32c89d2bcfe83dac63d55fb74caf5ed | 1dd791ef8132ed6bebc458d7c3c1ba5a9c8ca985 | /src/rx/render/canvas.h | 1fd49812454c7de7ea09c11ac4a7020a5cfb51a5 | [
"MIT"
] | permissive | BuckeyeSoftware/rex | e4ef1a743745b027eb02c629541edf85faf1d026 | a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531 | refs/heads/main | 2021-12-20T17:41:51.163916 | 2021-12-05T04:07:52 | 2021-12-05T04:07:52 | 171,078,375 | 40 | 7 | MIT | 2020-12-15T03:24:33 | 2019-02-17T03:38:52 | C++ | UTF-8 | C++ | false | false | 1,446 | h | canvas.h | #ifndef RX_RENDER_CANVAS_H
#define RX_RENDER_CANVAS_H
#include "rx/core/vector.h"
#include "rx/math/mat3x4.h"
#include "rx/render/frontend/state.h"
extern "C" typedef struct NVGcontext NVGcontext;
namespace Rx::Render {
namespace Frontend {
struct Context;
struct Buffer;
struct Program;
struct Target;
stru... |
5a07375a4d85c939eca83546137d4e3acda0d78b | 35c836ed4b443a8f2a5076edf25e8a00b1b93203 | /WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/NetworkProcess/curl/NetworkDataTaskCurl.cpp | ea2c10014e3c94701f5de4fd70cf4a65684d5017 | [
"MIT"
] | permissive | mlcldh/appleWebKit2 | e3260c49e7bf82bf70617841868af81fc32c5d9f | 39cc42a4710c9319c8da269621844493ab2ccdd6 | refs/heads/master | 2021-06-12T05:52:05.942098 | 2021-05-27T07:27:38 | 2021-05-27T07:27:38 | 190,697,531 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,910 | cpp | NetworkDataTaskCurl.cpp | /*
* Copyright (C) 2018 Sony Interactive Entertainment Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
151520a7b2056e952b0890c5362a0827dfa65d51 | 9499ab3d4f135e009c838a0134f4deb03c747d48 | /training/20-Nov-2019/J.cpp | 2e5cabbe9c899b268a9d21fcb6e9b90a3671d196 | [] | no_license | haleyk10198/HPtt | 3940ed838da32cb752251c34feae4c0d2fb9244e | ea9c9b16be3abc0c9ef3d2223cb9128ef5ec0306 | refs/heads/master | 2020-04-12T19:06:05.997361 | 2019-12-18T06:14:32 | 2019-12-18T06:14:32 | 162,699,604 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,642 | cpp | J.cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
using namespace __gnu_pbds;
using namespace std;
using ll = long long;
#define pii pair<ll, ll>
#define fi first
#define se second
typedef tree<
pair<ll,... |
d0b06a71cef42188673a2aa985c5322beef2a270 | 35a3a794c94fbe9a3d9b0bcb19eaeb60c7ca6a26 | /cf1106b.cpp | 9aeca2f23b5d02ea00d3b27f66e578f92eed7213 | [] | no_license | jshky/CODE | be7eae06f8478706495ea1886233165995ba6f69 | e78b61572953167091796b51a2c152780cf8c661 | refs/heads/master | 2021-07-06T23:55:00.038980 | 2020-09-20T05:44:42 | 2020-09-20T05:44:42 | 183,609,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,094 | cpp | cf1106b.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
const int N=2e5+5;
int n,m,cheap,num=1;
struct dish{
int a,c,id;
}a[N],b[N];
bool cmp(dish x,dish y){
return x.c==y.c?x.id<y.id:x.c<y.c;
}
int main(){
scanf("%d%d",&n,&m);
for (int i=1;i<=n;++i) scanf("%d",&a[i].a);
for (int i=1;i<=n;++i) s... |
543311c1cb39ed32c8606d2632211ca012c12025 | 6367550fd6c35cb8f5a29093444d65393b8412d3 | /largest.CPP | 06889a0ecd0b00f51164198e7d599d0f44f88c27 | [] | no_license | karthicsankar/CPLUS | 695f9d1789dbd6ca215a554415474bae2c53f540 | b099ec0f16dba6f525dac66d5ea4575e78506fe2 | refs/heads/master | 2021-04-30T15:09:14.655556 | 2018-03-14T11:19:58 | 2018-03-14T11:19:58 | 121,230,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | largest.CPP | #include<iostream>
using namespace std;
int main()
{
int a[9];
cout<<"Enter the numberS:";
for(int i=0;i<=9;i++)
{
cin>>a[i];
}
for(int j=0;j<=9;j++)
{
cout<<"\n"<<a[j];
if(a[j]>>(a[j+1]))
{
cout<<"\n"<<a[j];
}
}
for(int j=0;j<=9;j--)
{
if(a[j+1]<<(a[j]))
{
cout<<"\n"<<a[j+1];
}
}
return 0;
}
|
752f13f8d00af5ebfd4a89084f32fd7d39ab0c40 | 3244f247fca884cc86aa2396a69330672a277d5a | /Macros/VerifyPointing/newSBIs/source/SBIreader.cpp | 23ec59286edf1e2c2787a8e200d4d20a861d4282 | [] | no_license | ecatanzani/refMapsBuilder | 0b03e4b1eb50107f14bb340c001568c0c8ca9e10 | 66fab38c8a93363dae0069271b1175fc1cbc4897 | refs/heads/master | 2021-09-24T06:46:07.083296 | 2018-10-04T17:40:26 | 2018-10-04T17:40:26 | 151,611,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,508 | cpp | SBIreader.cpp |
#include "MyHead.h"
void read_SBI_data(
Double_t &galactic_lat,
Double_t &galactic_lon,
Double_t &geographic_lat,
Double_t &geographic_lon,
Double_t sat_ra[],
Double_t sat_dec[],
... |
514bff749b1da7c728a463bec8184597a3d1105a | a91796ab826878e54d91c32249f45bb919e0c149 | /modules/dnn/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp | 90cc2108d6731207b96139a2a8630dfb7ffc58ce | [
"Apache-2.0"
] | permissive | opencv/opencv | 8f1c8b5a16980f78de7c6e73a4340d302d1211cc | a308dfca9856574d37abe7628b965e29861fb105 | refs/heads/4.x | 2023-09-01T12:37:49.132527 | 2023-08-30T06:53:59 | 2023-08-30T06:53:59 | 5,108,051 | 68,495 | 62,910 | Apache-2.0 | 2023-09-14T17:37:48 | 2012-07-19T09:40:17 | C++ | UTF-8 | C++ | false | false | 71,713 | cpp | ocl4dnn_conv_spatial.cpp | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
84b45a498b037a1e0ec5689af215f10e353a67b4 | 29a8394c699636cf02218cdf44c172df7847ffef | /routelab-w15_agam_edits/messages.cc | c0c984b3ad198edc3df2923794e39f90a998a01a | [] | no_license | aiqiliu/EECS340 | 7ecb450b77426e0dcae5cd18111f7326605fcfbb | 52f70930770688631a3f97688c8375ec9a1e3432 | refs/heads/master | 2021-01-10T14:04:37.508291 | 2016-03-14T21:20:40 | 2016-03-14T21:20:40 | 49,908,787 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 781 | cc | messages.cc | #include "messages.h"
#if defined(GENERIC)
ostream &RoutingMessage::Print(ostream &os) const
{
os << "RoutingMessage()";
return os;
}
#endif
#if defined(LINKSTATE)
ostream &RoutingMessage::Print(ostream &os) const
{
return os;
}
RoutingMessage::RoutingMessage()
{}
RoutingMessage::RoutingMessage(const Rout... |
09798f187d1caa042f180c318ade3032c32811cf | 0fdc8677fe5cd71cb30d16d25c0900c93a5176d4 | /software/remote_controlled/robocar/src/car/sensors/SteeringServo.cpp | ad375235deecc7f2fdb44a28843d47039c2d7c59 | [
"MIT"
] | permissive | bierschi/robo_car | 6365503c1cdc7bcd20e6cef946626dd5bf85a3ff | f3b308afd9b53a252d07f041c4cae9cbe007ecf3 | refs/heads/master | 2022-01-09T05:03:38.883476 | 2021-12-30T14:55:31 | 2021-12-30T14:55:31 | 145,824,540 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,889 | cpp | SteeringServo.cpp | //
// Created by christian on 16.10.18.
//
#include "car/sensors/SteeringServo.h"
/**
* Constructor for a SteeringServo instance
*
* USAGE:
* SteeringServo* ss = new SteeringServo(15);
*
* @param chan: connected channel number of the steering servo
*/
SteeringServo::SteeringServo(uint8_t chan) : PCA9685(1... |
39574931342337ca0ef3193177383259f62a1419 | c4105848e5400b630f42f2871067a5397c90a6f0 | /Apoc/Video/Display.h | c6c51c47762a8285f3384d1ca43ed98aec9acd43 | [
"BSD-2-Clause"
] | permissive | madd-games/apocalypse | 759a5f8ae17ca33a67e783f03964f06fff9ab1f5 | ea2192079801d7bea9afaeb3246cb975ab0e37d6 | refs/heads/master | 2016-09-02T04:43:33.466918 | 2014-12-31T18:42:39 | 2014-12-31T18:42:39 | 24,066,309 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,358 | h | Display.h | /*
Copyright (c) 2014-2015, Madd Games.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the... |
033d4e70c457723f6100564ec1bfaca3d2c1eaf6 | 1b855eb71f8e51c9f858c61c6ad02fc3a649698d | /qrtmidi.cpp | 334749ddb38ca8623a7fe108cc40af2d051cbb8a | [
"MIT",
"LicenseRef-scancode-synthesis-toolkit"
] | permissive | scryver/rtmidi | 7fcefaa18d620831b84b2756ced564fb89aca28d | 9efbf34a71b3860e5d84cb0d3b1186b56697197e | refs/heads/master | 2021-01-15T23:51:15.627923 | 2016-06-03T14:04:12 | 2016-06-03T14:04:12 | 50,730,357 | 0 | 0 | null | 2016-06-03T14:04:13 | 2016-01-30T15:22:53 | C++ | UTF-8 | C++ | false | false | 5,550 | cpp | qrtmidi.cpp | #include "qrtmidi.h"
#include <QLoggingCategory>
#include <QDebug>
QLoggingCategory midiLogCat("midi");
void midiError(RtMidiError::Type type, const std::string& errorText,
void *userData = nullptr) {
switch (type) {
case RtMidiError::WARNING:
qCWarning(midiLogCat) << errorText... |
11f50967d3302df2178b82690ad8a823b39b6c9b | 2f05d3dec54f3d72bd8405b1bf34d7b73cb0bf03 | /code/exp-3-bgl/self.cpp | 773dde1e2b9f1ed88749406099144cc16275c106 | [] | no_license | anirudhakulkarni/Parallel-MCMF-at-IISc-Research | 3ee6c61c190b95c7effcc7256ba76c87de29563c | ac1f794df529f2f1d002f79ae2c0d26f757e2f1a | refs/heads/master | 2023-06-17T12:25:17.610142 | 2021-07-10T11:05:42 | 2021-07-10T11:05:42 | 368,953,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,171 | cpp | self.cpp |
#include <vector>
#include <chrono>
#include <iostream>
using namespace std;
#include <string>
#include <queue>
#include <tuple>
#define ln "\n"
#define out1(x1) cout << x1 << ln
#define out2(x1,x2) cout << x1 << " " << x2 << ln
#define out3(x1,x2,x3) cout << x1 << " " << x2 << " " << x3 << ln
#define out4(x1,x2,x3,x4... |
e35fcae948f8e8f09eb5c929c333d92efda60c72 | 9604f51a1260755940a18839f7e5b2728464da9e | /src/Plane.hpp | 3cc8c11b2b105290ddc0b2d1af7ed9e84e0a6fe5 | [] | no_license | vivichrist/Renderer308 | a92d13b99c3f4a4ebe25ee2b504cad4dc134ef06 | 8e39e617024c859e40a49f08a23e3bf7ee2cbee8 | refs/heads/master | 2021-01-17T14:02:12.413090 | 2017-01-07T04:28:27 | 2017-01-07T04:28:27 | 41,473,174 | 0 | 0 | null | 2015-10-21T10:26:55 | 2015-08-27T07:51:46 | C | UTF-8 | C++ | false | false | 688 | hpp | Plane.hpp | /*
* Plane.h
*
* Created on: 4/02/2015
* Author: vivichrist
*/
#pragma once
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
using namespace std;
namespace R308
{
class Plane
{
public:
// point in the plane, normal orthogonal to the plane
Plane();
Plane( const glm::vec3& point, const glm::vec3& nor... |
81a2f140ebb66b9020cd541690d0b06a0e929356 | ed17d8b5ff69ee5485c0778bec5852fdca50f87f | /src/score/statistics.h | 684a95efa90c2e1db5ecd9848c31b0ed8b5f8aa1 | [] | no_license | IceAndSnow/touchdown | 6202f41a91d2816a2307232d8d72be412bcf400e | 63f134b1c12b85a4a590fb57134c6bb11cdf34b4 | refs/heads/master | 2021-07-17T10:03:13.384416 | 2020-08-11T20:48:56 | 2020-08-11T20:48:56 | 198,452,981 | 0 | 1 | null | 2020-08-11T20:48:57 | 2019-07-23T14:59:45 | C++ | UTF-8 | C++ | false | false | 757 | h | statistics.h | #ifndef TOUCHDOWN_STATISTICS_H
#define TOUCHDOWN_STATISTICS_H
#include "player_statistics.h"
#include "statistics_entry.h"
#include <vector>
#include <unordered_map>
namespace score {
struct Statistics {
std::unordered_map<std::string, PlayerStatistics> m_player_statistics;
void clear();
... |
cbbb53e53fd99c0564b8f86040674bfaf951cddb | d926904d5081c2ced7346a6a317222b40c876c9e | /testpq/testDB.cpp | 2898bb50cfbfbfc504afd6e574ee4ad84a999f1a | [] | no_license | lifunudt/pq | 28371d74583e1adfd59e93553ebdaf84425f239a | ab8a6e146c9ca621f333a124493827ad247c1cb8 | refs/heads/master | 2016-09-13T07:20:59.665487 | 2016-05-14T03:25:26 | 2016-05-14T03:25:26 | 58,785,273 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,816 | cpp | testDB.cpp | /*************************************************************************
> File Name: testDB.cpp
> Author: lifu
> Mail: lifunudt@163.com
> Created Time: 二 4/19 20:24:18 2016
************************************************************************/
#include <iostream>
#include <string>
#include <cstdio>
#inclu... |
a3bb010f19d645b3a7e4408b64f920b8d89626ae | e94456baaaef5a2847bcf3fbebcbc250fc5ea5ac | /Number_Theory/Permutation.cpp | ebf5fb4ae7498afa7d40272a489f1016e3f320aa | [
"Unlicense"
] | permissive | Kyabc/Algorithms-and-DataStructures | bb780298c0fde6f2c4f48bed57dffad5a053ebde | 23c3d40d086238a942772cead7981a599741f94f | refs/heads/master | 2021-08-03T14:34:16.623388 | 2021-07-19T14:47:22 | 2021-07-19T14:47:22 | 221,580,897 | 7 | 1 | null | 2020-07-15T12:39:23 | 2019-11-14T00:56:47 | C++ | UTF-8 | C++ | false | false | 607 | cpp | Permutation.cpp | #include <vector>
template<std::int_fast32_t mod>
struct permutation {
private :
std::vector<modint<mod>> fact, ifact;
public :
permutation(int n) : fact(n + 1), ifact(n + 1) {
fact[0] = 1;
for (int i = 1; i < n + 1; i++) fact[i] = (fact[i - 1] * i);
ifact[n] = inverse(fact[n]);
... |
b605ad6a7e43a1e0f65ef87ce0c9f9876d29e5b3 | 19842f800160fdb4f0266e1d13c3e868542d75cb | /include/ext/libSun/wx/wxIrrWindow.cpp | 0514f4ed8ab4f9fbcc65c3e8077d58aa8175ce66 | [] | no_license | benjaminhampe/DarkGDK | 3e32b404d9aafb014a08c39324153bc1888771b8 | 32823a6b350caef3c114daf60d954b73994e3517 | refs/heads/master | 2020-06-02T04:05:29.866871 | 2014-02-28T21:33:30 | 2014-02-28T21:33:30 | 17,301,390 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,850 | cpp | wxIrrWindow.cpp | #include "wxIrrWindow.h"
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
wxIrrDevice::wxIrrDevice()
{
Device = NULL;
}
wxIrrDevice::wxIrrDevice(HWND hwnd, IrrVideoDriverType type, bool bResizeable)
{
Create(hwnd, type, bResizeable);
}
wxIrrDevice::~wxIrrDevice()
{
if ( Device )
{
Device->closeDevice();
Device... |
d02b8bb85581775116da951e747212574f6f3765 | 264986797dc81119bfda672fda2a4bbdfe674e8f | /0533.cpp | 2108c0c63fd30465a716b1810bb3143f375989f8 | [] | no_license | imdew1990/algotester | 6e530c5fd4cfa2a59aade0e5f393fa3f3f08dabe | 3fc0b188e7eebf28661c5048b127c5616501de84 | refs/heads/main | 2023-03-24T06:26:19.509395 | 2021-03-06T06:50:15 | 2021-03-06T06:50:15 | 345,026,440 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | cpp | 0533.cpp | #include <bits/stdc++.h>
using namespace std;
string olo(string s)
{
string k;
return k;
}
int main()
{
string s, k;
cin >> s;
while (s.size() > 0)
{
k.push_back(s.front());
s.erase(s.begin());
if (s.size() > 1)
{
k.push_back(s.back());
s.erase(s.size() - 1);
}
}
cout << k << endl;
system("pau... |
11894e26fab34bae8b5bc1dd5034abdea626cc35 | 8121ed9d8fed6078b763bdf49d427a58ddc38b12 | /13023.cpp | 8f02efee76d405ca39e308a35960f4aaa10facb9 | [] | no_license | jkjan/Baekjoon | e6e2663eb567c470cb3ce78d7e80a17763a8a1ff | e5cd2ba8bdd91234cce82e6c1cd9a4ae169478da | refs/heads/master | 2022-12-18T01:00:27.002673 | 2020-09-13T13:01:59 | 2020-09-13T13:01:59 | 293,594,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | 13023.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#define MAX_SIZE 2000
using namespace std;
vector<int> graph[MAX_SIZE];
bool visited[MAX_SIZE] = {false, };
int level[MAX_SIZE] = {0, };
int input();
bool dfs(int v, int depth);
bool compare(int a, int b) {
return level[a] < level[b];
}
int main() {
int... |
716223501f02c21dc41fb296c5677cc7f296694f | 817adba1d173e1c822d29b46183398c3cde7f9b8 | /alea/alea.cpp | 2c4a81707a91e19c144789cbe3dab41b4ba85366 | [] | no_license | DrDam/RDN-Core | 89adcd686830555aa52bdf130da5a3bb469301a7 | 6db01ce4dba14788bf1cac93ca9ebcccea4da53b | refs/heads/master | 2021-01-01T17:09:50.848433 | 2015-03-25T18:17:33 | 2015-03-25T18:17:33 | 22,768,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | alea.cpp | #include <stdlib.h>
#include <assert.h>
int alea( int n )
{
assert (0 < n && n <= RAND_MAX);
unsigned int partSize = (RAND_MAX) / (n+1);
unsigned int firstToBeDropped = partSize * (n+1);
unsigned int draw;
do {
draw = rand();
} while (draw >= firstToBeDropped);
return draw % (n + 1);
}
|
13de085bb9c0d7c659012f596759c6832e444202 | a753a5900180eae398ddd45cd6922d972007440c | /data/tplcache/698c2ab4927ead658e002aad18858a04.inc | b40d7196d455fc55ef3c75407ca3594b2c75880b | [] | no_license | liyee/Instruments | 6475cb0f22ae651973403c6e9f74ce1008562ccf | 5e47a47e600c66ceb5af7ce3c1e77ac761c171c9 | refs/heads/master | 2020-07-26T15:24:44.443858 | 2019-11-12T08:00:16 | 2019-11-12T08:00:16 | 208,688,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | inc | 698c2ab4927ead658e002aad18858a04.inc | {dede:img text='' width='971' height='368'} /uploads/190719/1-1ZG92131152K.jpg {/dede:img} |
e0810b0f240cf1642a70011063996dc5d91f3e9f | ef8f557bc75f620cb94db76734eaf9b04cfa01bf | /abc/abc175/b.cpp | 23f2c408318f709fffa09bc9862567d9d4ce3c44 | [] | no_license | Kanazawanaoaki/atcoder_memo | 3273d52093ab3e4a3c2a312dfc9658c8e1df820c | 4f4dcb847d3479cb1f5ef01710c0e101a3bd6dfb | refs/heads/master | 2021-08-17T02:37:51.175202 | 2020-09-01T02:55:11 | 2020-09-01T02:55:11 | 217,087,895 | 0 | 0 | null | 2020-03-23T02:36:08 | 2019-10-23T15:12:49 | C++ | UTF-8 | C++ | false | false | 643 | cpp | b.cpp | #include <bits/stdc++.h>
using namespace std;
int check(int i, int j, int k, vector<int> &l){
int flag = 0;
if( l[i]!=l[j] && l[j]!=l[k] && l[k]!=l[i]) flag =1;
if(flag==1){
int maxl = max(l[i],l[j]);
maxl = max(maxl, l[k]);
if(maxl < l[i]+l[j]+l[k]-maxl) flag =2;
}
if(flag==2){
return 1;
}... |
8b9308f74b4f73c6a81ea9a999b6e38aaf0715ae | 2d06c74333e68648337384c39fbfbff20f98d6d1 | /guziqiu/02.c++/00.cpp预习/06.友元函数.cpp | 333ed07d917a7814e77ce5054793c65cc2d92e18 | [] | no_license | guziqiu/qiu | b7573698825374145139e4f2b0231e9198d552c8 | 0221f078eb570e6c0998b9798c4767a750548d7b | refs/heads/master | 2023-06-04T13:24:13.330675 | 2021-07-02T06:13:09 | 2021-07-02T06:13:09 | 381,987,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | cpp | 06.友元函数.cpp | #include <iostream>
#include <cmath>
using namespace std;
class PointManager {
public:
double PointDistance(Point &p1, Point &p2);
};
class Point {
public:
Point(int x, int y) {
this->x = x;
this->y = y;
}
int getX() {
return this->x;
}
int getY() {
return thi... |
b0faa918e1b4c2e17c7f2f8d8ed5f8658d0c4cee | 0c1abc428cf3d18ef3c6681f8f29bc4e7fb010e4 | /LW_1/Library.cpp | 9171bf8b3caa83144658ab35344b78472e03df5b | [] | no_license | Black-Viking-63/LW_1_TP | 593ab664866e13f8d9a168d574423b0ff9d0cf7f | 53e0948b43d9ff01774e6f51f6bba276ba376f74 | refs/heads/master | 2023-03-06T04:53:14.899436 | 2021-02-24T08:55:36 | 2021-02-24T08:55:36 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,817 | cpp | Library.cpp | #include "pch.h"
#include <utility>
#include <limits.h>
#include "Library.h"
#include "iostream"
using namespace std;
double d, d1, x, y, x0, x1;
double discriminant(long long a, long long b, long long c)
{
d = pow(b, 2) - 4 * a * c;
return d;
}
void equation_solution(long long a, long long b, long long c)
{
d ... |
b5e6edf8188c268251817673aa4ff47c17bfc70f | 52c96c707172d0d6c7bfb3b672b2eb86a76473fc | /src/PartsForm/PartsForm.cpp | 2317ba6aba835a760ca4dc8c2e341ee55fd2719b | [] | no_license | Naify/Transport | 9bc428549da408dbcbbd9b5c7e85343beca2f9ee | b9be3740882fdb7f097f42a04f4546f76574369e | refs/heads/main | 2023-04-24T18:50:06.904708 | 2021-05-12T13:57:43 | 2021-05-12T13:57:43 | 366,734,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,134 | cpp | PartsForm.cpp | #include "PartsForm/PartsForm.h"
#include "header_view/ProxyModelWithHeaderModels.h"
#include "PartsForm/PartsModel.h"
#include "PartsForm/PartsItemDelegate.h"
#include <OdsInterface>
#include "global_defs.h"
#include "OrderForm/orderform.h"
#include <QDebug>
PartsForm::PartsForm(int id, ODS::OdsInterface* iface, QWi... |
ac398946773da55833cbda1e646fe4ef459b9670 | 5521a03064928d63cc199e8034e4ea76264f76da | /fboss/cli/fboss2/utils/CmdClientUtils.cpp | 9c80f8de9eb4cf4fffb8b4aea3c48c295789f1fc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | facebook/fboss | df190fd304e0bf5bfe4b00af29f36b55fa00efad | 81e02db57903b4369200eec7ef22d882da93c311 | refs/heads/main | 2023-09-01T18:21:22.565059 | 2023-09-01T15:53:39 | 2023-09-01T15:53:39 | 31,927,407 | 925 | 353 | NOASSERTION | 2023-09-14T05:44:49 | 2015-03-09T23:04:15 | C++ | UTF-8 | C++ | false | false | 765 | cpp | CmdClientUtils.cpp | /*
* Copyright (c) 2004-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... |
a7e8f3f363f12be1a4119665436c83e55dda7f5e | 655393d95f6762a94294ec3b0adf08dfeaa3d3b9 | /src/InformationManager.cpp | cdcdb2dfd6712e85d07df4a6f7cd617e36fcca65 | [
"MIT"
] | permissive | Itja/ByunJR | 8e8c2873eb8c48c0e9316c1997a1fd0680f97ecc | a191c7c4f4ae891478f55289d2e173bc1bebe9f4 | refs/heads/master | 2021-08-08T16:23:43.421001 | 2017-11-02T22:49:23 | 2017-11-02T22:49:23 | 110,275,368 | 0 | 0 | null | 2017-11-10T17:41:07 | 2017-11-10T17:41:06 | null | UTF-8 | C++ | false | false | 10,305 | cpp | InformationManager.cpp | #include <sc2api/sc2_api.h>
#include "ByunJRBot.h"
#include "InformationManager.h"
#include "common/BotAssert.h"
#include "common/Common.h"
#include "information/unitInfo.h"
#include "util/Util.h"
InformationManager::InformationManager(ByunJRBot & bot)
: bot_(bot)
, building_placer_(bot)
, unit_info_(bot)... |
02f84cf321d8f2165673cb0f06a1e69a7c660751 | 85d401ada0cb12a02033275d157743412f4870b0 | /poj/p2155_datamaker.cpp | 2e5f84e4def41d2a7f9ea20194c8a5c466d660c1 | [] | no_license | csimstu/OI | 4535025f0b6a6c63caf5487a6d806f772086ebc5 | b5f4eadd6ad180a9ee26b7ae336ede7b980314a9 | refs/heads/master | 2021-01-22T02:03:33.264345 | 2013-04-05T12:08:41 | 2013-04-05T12:08:41 | 2,553,733 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | p2155_datamaker.cpp | #include <cstdio>
#include <cstdlib>
#include <algorithm>
using namespace std;
int n,m,seed;
int main()
{
freopen("t.in", "w", stdout);
scanf("%d%d%d",&n,&m,&seed);
srand(seed);
printf("1\n");
printf("%d %d\n", n, m);
while(m --)
{
int t = rand() %2;
int x1 = rand() % n + 1;
int x2 = rand() % n + 1;
in... |
652a1f00cf0f088af8bbc234e3b1a6f1d78a2ab2 | d3a2d022ba792ec08331f9536c42c9dfd43fcb36 | /src/Aligner.cpp | a91ce903f7ade6d1940eed3a9c77db4c42f4fe2f | [] | no_license | binka/4314_HIA | c43f38470e94dc48dcf21e79da1d49c3ee283854 | 877c2da6be9634e81a0f56251c23bbb56429845b | refs/heads/master | 2021-01-10T14:09:32.991011 | 2016-05-01T22:26:48 | 2016-05-01T22:26:48 | 55,652,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,515 | cpp | Aligner.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <tuple>
#include <list>
#include <cmath>
#include "Aligner.h"
using namespace std;
struct match_region{
long diagonal;
long read_pos;
long seq_pos;
long length;
};
struct candidate_mr{
list<match_region> mr_list;
unsigned in... |
f3b115ff902bfcf9c92c91ad5fc48a429b940c53 | 69e6c82c848156f8426797767304aa42c6849d35 | /sumRegion2.cpp | eed838e5a16ed21fb9c167e0d5548b45107ecee4 | [] | no_license | dalanlan/algo | cea8d79e914f3e973d4ac256e9bb1eaf2a12925c | 94e85d1e1a79646c44f09c58096584b2521628b9 | refs/heads/master | 2020-04-05T18:57:33.051988 | 2016-10-18T08:06:57 | 2016-10-18T08:06:57 | 38,982,619 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | sumRegion2.cpp |
/*
LeetCode: Range Sum Query 2D Immutable
https://leetcode.com/problems/range-sum-query-2d-immutable/
*/
class NumMatrix {
public:
int row;
int col;
vector<vector<int>> sum;
NumMatrix(vector<vector<int>> &matrix) {
row = matrix.size();
col = row==0?0:matrix[0].size();
sum = vector<vector<int>> ... |
d1f5fa1a2c3af1acd1b37060793fcdff2144b036 | 60d206fbbe439bddecb3e44331823b22de4bf683 | /kangaroo/cu_convolution.h | 1078bf72ad2718923d6462a32bfa26fc6d98fa22 | [] | no_license | jzienkiewicz/Kangaroo | bb3d54e96273ae1d80e348b18a65fbf34e2749e1 | d2d1e18408044ce88e68ee873ae4208c511b1c90 | refs/heads/master | 2021-01-16T20:30:41.953501 | 2014-03-26T11:54:10 | 2014-03-26T11:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | cu_convolution.h | #pragma once
#include "Image.h"
namespace roo
{
template<typename OT, typename IT, typename KT, typename ACC>
void Convolution(
Image<OT> out, Image<IT> in, Image<KT> kern, int kx, int ky
);
}
|
f6e820defa53e007b7eba30acda6539e81eecfea | 9b42d80abebd5e8ec344c952c945e98fa34c573d | /graphs/test.cpp | c4374d59562d276f6e791be7ec28c2c4a1fa9729 | [] | no_license | yuboq/dumpster | e5765f1b15cd2fa66d97f7ab4d5b11670c38594f | 6f3ad1814f215f1a4352b5bb1757d4440b563928 | refs/heads/master | 2022-09-05T04:17:30.263355 | 2020-06-01T04:18:21 | 2020-06-01T04:18:21 | 268,422,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | cpp | test.cpp | #include <iostream>
#include <vector>
#include <stack>
#include <algorithm>
int main()
{
int a[10]={0};
for (auto i: a)
{
std::cout << i << std::endl;
}
std::vector<int> myVec {10,20,3,4,6,18};
std::cout <<std::distance (myVec.begin(), std::max_element (myVec.begin(), myVec.end())) <<std::endl;
retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.