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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe561508ee97fe3a1076a09914b9db3eed7e30fa | d0ff60631a8d4bbf6ecfe5ad3a9672a29e56467b | /InitialSetup.cpp | 393eddd540320fa0b550202ed8da5245e9778403 | [
"Apache-2.0"
] | permissive | erhoof/Hardy-u_t5-qt-3 | 46c47a30e33942c02b7bcdc5327d2c4fd6c30266 | 47fd313cdd44f5cc5c8c93e3536032f5dff905cd | refs/heads/master | 2023-04-03T21:31:18.347051 | 2021-04-13T10:00:23 | 2021-04-13T10:00:23 | 301,150,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cpp | InitialSetup.cpp | #include "InitialSetup.h"
#include "ui_InitialSetup.h"
#include "HardDriveInfo.h"
#include "MainWindow.h"
InitialWindow::InitialWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::InitialWindow)
{
ui->setupUi(this);
}
InitialWindow::~InitialWindow()
{
delete ui;
}
void InitialWindow::on_push... |
2d4e1a64d5a93fdb7e86fe9add099ba403afdece | 1c024dfbca35f4c829d4b47bdfe900d1b1a2303b | /shell/common/gin_helper/promise.h | 6acf9b49ea24885609afac5c86655250e02c96f0 | [
"MIT"
] | permissive | electron/electron | 1ba6e31cf40f876044bff644ec49f8ec4923ca6a | 0b0707145b157343c42266d2586ed9413a1d54f5 | refs/heads/main | 2023-09-01T04:28:11.016383 | 2023-08-31T14:36:43 | 2023-08-31T14:36:43 | 9,384,267 | 99,768 | 18,388 | MIT | 2023-09-14T19:50:49 | 2013-04-12T01:47:36 | C++ | UTF-8 | C++ | false | false | 6,284 | h | promise.h | // Copyright (c) 2018 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_PROMISE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_PROMISE_H_
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#... |
7ff502e8df52e7ed2a8f6b4e9560b0c8d0c66c25 | c73dfe12abca9fb5d97379b6e88e762fc11a2d98 | /lifo/lifo_allocator.h | 78eeba7749afd176015fd7670358b776d3e9adae | [] | no_license | giucamp/mmemo | 144467207a515bc43f17f2c675c670712403f8d0 | cd0c31225ac08fc046ef27956c81e4ef40efa302 | refs/heads/master | 2021-01-23T12:16:12.311853 | 2015-08-23T16:12:26 | 2015-08-23T16:12:26 | 38,153,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,723 | h | lifo_allocator.h |
#ifndef MEMO_LIFO_ALLOC_DEBUG
#error MEMO_LIFO_ALLOC_DEBUG must be defined in memo_externals.h
#endif
namespace memo
{
/** \class LifoAllocator
Class implementing LIFO-ordered allocation services.
A LIFO allocator provides allocation\deallocation services with the constrain that only the memory block of top
(... |
c0ee31a15e4b3f36b69658822a68811a6d4d30ff | cd0515449a11d4fc8c3807edfce6f2b3e9b748d3 | /src/yb/encryption/encryption_test_util.h | f7a1c46b26be84f93191693a4040c82bcd0c3289 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"OpenSSL"
] | permissive | wwjiang007/yugabyte-db | 27e14de6f26af8c6b1c5ec2db4c14b33f7442762 | d56b534a0bc1e8f89d1cf44142227de48ec69f27 | refs/heads/master | 2023-07-20T13:20:25.270832 | 2023-07-11T08:55:18 | 2023-07-12T10:21:24 | 150,573,130 | 0 | 0 | Apache-2.0 | 2019-07-23T06:48:08 | 2018-09-27T10:59:24 | C | UTF-8 | C++ | false | false | 1,981 | h | encryption_test_util.h | // Copyright (c) YugaByte, Inc.
//
// 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 agreed to in writ... |
9b0def13ecbec7aa0a744cd41ef329880f993790 | 1f87cd9f78c3de4795f8d4be0f003e54bb9c4f21 | /code/Greedy Tino.cpp | a2703e758ae00476c3bcdc0d4780b45222ced133 | [] | no_license | xry224/newcode | 83a765f9ca6210cddd3cde80526898c8a0c7062d | 3507698e1f6111c93f0f2f92063f6789e51d03c0 | refs/heads/master | 2020-05-26T14:23:34.068502 | 2019-09-26T00:32:56 | 2019-09-26T00:32:56 | 188,262,830 | 1 | 1 | null | 2019-09-25T10:15:54 | 2019-05-23T15:41:07 | C++ | GB18030 | C++ | false | false | 1,044 | cpp | Greedy Tino.cpp | #include <iostream>
#include <limits.h>
#define off 2000
using namespace std;
int max(int a, int b)
{
return a > b ? a : b;
}
int dp[101][4001];
int main()
{
int orange[101];
int T;
cin >> T;
for (int i = 1; i <= T; i++)
{
int n;
cin >> n;
int cnt = 0;//统计重0的柑橘的数量
for (int j = 1; j <... |
383cf6d13fb7e369f084c6322efa90cbe4741eb8 | e5d5fa28999bcc6c642bb42dda93afd38e272b81 | /POJ/1852 - Ants/solve2.cc | dbada2d2bc842d78200299aea93897176c94c7ed | [] | no_license | chiahsun/problem_solving | cd3105969983d16d3d5d416d4a0d5797d4b58e91 | 559fafa92dd5516058bdcea82a438eadf5aa1ede | refs/heads/master | 2023-02-05T06:11:27.536617 | 2023-01-26T10:51:23 | 2023-01-26T10:51:23 | 30,732,382 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cc | solve2.cc | #include <cstdio>
#include <algorithm>
int main() {
int nCase;
scanf("%d", &nCase);
while (nCase--) {
int lenPole, nAnts, x;
scanf("%d%d", &lenPole, &nAnts);
int least = 0, distance_min = lenPole, distance_max = 0;
for (int i = 0; i < nAnts; ++i) {
scanf("%d", &x... |
b76f97382da9cd514b4fa7397779a75d149eda09 | f788b786c4f678060aaf9b1e7704fc3fdbcbfa94 | /src/draw_line.cpp | 5507f7e9d586eae1882ec375c4fe7f4958cee47f | [
"MIT",
"CC-BY-3.0",
"Unlicense"
] | permissive | Rapidash99/CGGD-Assignment-1 | cf50206124273413ccbf05fa0cec2bce45d172b7 | 7237df71155c0bf2216b57fa2812373420621f12 | refs/heads/main | 2023-01-09T04:53:18.080980 | 2020-11-06T21:13:49 | 2020-11-06T21:13:49 | 306,553,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,673 | cpp | draw_line.cpp | #include "draw_line.h"
#include <cmath>
#include <algorithm>
#define M_PI 3.14159265358979323846
cg::LineDrawing::LineDrawing(unsigned short width, unsigned short height): cg::ClearRenderTarget(width, height) { }
cg::LineDrawing::~LineDrawing() = default;
void cg::LineDrawing::DrawLine(unsigned xBegin, unsigned y... |
0d04b3e83d418b2770a2284c9cc05b14563d4986 | 218f47f7418d35c5ec8e843f2302d151fc49c7c6 | /ROV15/resizable_label.cpp | 8cef13a9f110448780b1f7b99a8542ac74147d0c | [] | no_license | youssefMagdy29/ROV-15 | d61eb355aaf69c79987c98071102fd2f5ea32cab | b2eb101895bf567148d433901680ba9bec3d20fe | refs/heads/master | 2021-01-01T16:21:02.061739 | 2015-04-19T04:56:11 | 2015-04-19T04:56:11 | 30,868,121 | 0 | 0 | null | 2015-04-19T04:56:13 | 2015-02-16T12:51:52 | C++ | UTF-8 | C++ | false | false | 446 | cpp | resizable_label.cpp | #include "resizable_label.h"
#include <QResizeEvent>
ResizableLabel::ResizableLabel(QWidget *parent) :
QLabel(parent) {
image = new QImage();
}
void ResizableLabel::resizeEvent(QResizeEvent *e) {
QPixmap p = QPixmap::fromImage(image->scaled(e->size().width(), e->size().height()));
this->setPixmap(p);
... |
fcd8be443157c40521c3748feec2f37e1079dfa2 | f1e29bf7c34e5a6bc268e8d96d408fd276ac2c77 | /Airplanes/Airplanes/Player.cpp | 8d036e9da1cb06c3ffbe1cc67a40da224f36483a | [] | no_license | zVoxty/Games | 40def88268842401bff4389e1037e99ddaa0a60e | b226b6c71fe11df553f2ec8586e67d04b024d704 | refs/heads/master | 2021-01-11T05:16:13.581949 | 2017-04-28T16:28:54 | 2017-04-28T16:28:54 | 71,296,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | Player.cpp | #include "Player.h"
#include "Game.h"
#include <QGraphicsItem>
extern Game * game;
Player::Player(QGraphicsItem *parent): QObject(), QGraphicsPixmapItem(parent)
{
QPixmap image(":/Images/plane.png");
setPixmap(image.scaled(QSize(70,70)));
}
Player::~Player()
{
}
void Player::keyPressEvent(QKeyEvent * event){
i... |
a46e3ac9d5070820d2e8260e2b383d4e01f41955 | 1b8b2079d162f767e25a842f96cd7b6e8a2497d1 | /AutoFileBackup-v2/AutoFileBackup-v2/Config.cpp | 66684d66a1c61716b6923f54a36bd81b440a75fe | [] | no_license | AkrionXxarr/AutoFileBackup | 405255ba32a169a370c45ce86a805cbb6e9dd996 | b22009a7e2d27966c6fc1e389eed37e1a6ce5e84 | refs/heads/master | 2020-12-30T11:15:17.472341 | 2015-04-22T20:04:03 | 2015-04-22T20:04:03 | 30,620,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,362 | cpp | Config.cpp | #include "Config.hpp"
#include <stdlib.h>
#include <fstream>
#include <sstream>
#include <iostream>
using namespace std;
/////////////////
// NewConfig() //
/////////////////
// Generate new config.txt, properly formatted
bool NewConfig()
{
cout << "Creating " << CONFIGFILE << "..." << endl;
ofstream configFile(C... |
6f8995918a6d1e5ef8c7c807f2fc3d20e3c09bfb | 59760e7e351fa25a9d974f105b9ac323f9115665 | /HYJ/boj/Binary Search/boj1654.cpp | 6deeaaddfe8f087c64d7b4e14b5a46a2849c1156 | [] | no_license | grighth12/algorithm | f01ba85b75cded2c717666c68aac82ed66d0a563 | 21778b86e97acc5ffc80d4933855b94b89e9ffd3 | refs/heads/main | 2023-07-14T15:59:35.078846 | 2021-08-21T16:45:47 | 2021-08-21T16:45:47 | 375,053,162 | 0 | 2 | null | 2021-08-21T16:45:48 | 2021-06-08T15:10:58 | C++ | UHC | C++ | false | false | 948 | cpp | boj1654.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int N, K;
bool cmp(int a, int b) {
return a > b;
}
bool countingLAN(vector<long> v, long long norm) {
int sum = 0;
for (int i = 0; i < v.size(); i++) {
sum += (v[i] / norm);
}
return sum >= K;
}
int main() {
cin >> N >> K;
ve... |
1ccca9ba8a8b28928ef7d574379e82b4470e11da | 33a82980352cf366b9c288cf8a74d2740272d90b | /print/OEM Printer Customization Plug-in Samples/C++/ThemeUI/fusutils.cpp | 0f9bf2c30922e3322a614210774650e780a36e98 | [
"MS-PL",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MS-LPL"
] | permissive | microkatz/Windows-driver-samples | d249ecb8ab1be5a05bf8644ebeaca0bf13db1dad | 98a43841cb18b034c7808bc570c47556e332df2f | refs/heads/master | 2022-05-09T17:42:10.796047 | 2022-04-20T20:47:03 | 2022-04-20T20:47:03 | 161,238,613 | 2 | 0 | MS-PL | 2022-04-20T20:47:03 | 2018-12-10T21:28:00 | C | UTF-8 | C++ | false | false | 2,764 | cpp | fusutils.cpp | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright 1998 - 2003 Microsoft Corporation. All Rights Reserved.
//
// FILE... |
3779d2ed50fb23359b6c424ded5219a57bfabb27 | f36a63974b865b29560c8dc462e5fa0243079487 | /animal.cpp | 659e4e0de8838ad31b77ea5d08636b4258cce07b | [] | no_license | toripizi/Virtual-World | 052226b858ff4146276eb9e1fbc9400975f0254c | cfd128fb0a668bc96f8d99afe8c8b26b5438e215 | refs/heads/main | 2023-04-23T03:30:27.586820 | 2021-05-09T19:52:34 | 2021-05-09T19:52:34 | 363,051,925 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 4,393 | cpp | animal.cpp | #include "animal.h"
#include "plant.h"
#include "Human.h"
//00 00 00
//00 00 00
//00 00 00
Animal::~Animal() {
world.organisms.DELETE_ELEMENT(this);
}
void Animal::checkField(int newX, int newY) {
if(newX >= 0 &&
newX < world.getWidth() &&
newY >= 0 &&
newY < world.getHeight())
{
tab[0][numberOfAvailabl... |
8ac1139a68bc7caff9087754b3f4073a204590b5 | 8a86112c043d3e2e62521399cb503b01e1e4a0c8 | /Crypto/mbedUtils.cc | 8e338cc26bb6a7705f365d3801fa6cfc61117ccf | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | Dushistov/couchbase-lite-core | dcc1f53275518390036305a526ec2c14555fde95 | 0d8d68be025a95a1cc061ec59d16f00c621be300 | refs/heads/master | 2023-05-11T08:54:11.308862 | 2023-05-09T10:32:59 | 2023-05-09T10:32:59 | 178,002,169 | 0 | 0 | Apache-2.0 | 2020-03-17T11:11:09 | 2019-03-27T13:39:35 | C++ | UTF-8 | C++ | false | false | 5,125 | cc | mbedUtils.cc | //
// mbedUtils.cc
//
// Copyright 2019-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be gove... |
dec9bb59abb3d097a83dfcc3eeb5aacbeb7f8e0e | f1cc499a8f878eb90f490ed9a422ca1787abdc9a | /algorithmwidget.cpp | e9e0b33fd861ae3e8bfaebcbf2f245e4d8e4f7df | [] | no_license | ancaboriceanu/Licenta | 4be89b47d87367c7c1a3f319f220782dea948d5a | ea1bdeea944bb89a704fa63df30103c7a52a5b57 | refs/heads/master | 2020-05-07T20:42:33.707297 | 2019-07-02T06:04:00 | 2019-07-02T06:04:00 | 180,871,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | cpp | algorithmwidget.cpp | #include "algorithmwidget.h"
AlgorithmWidget::AlgorithmWidget()
{
}
|
de443c62b79f2e5f539a2185b2a3eba923fff9fe | f88cdcf0a186104d11ce2ee20b51df0458110281 | /Practice5/5/5.cpp | 34961940ab0fa8ac8f7a45bc20a8e0f74257679e | [] | no_license | sobol-mo/KHPI_Progr_Fundamentals | d452a6e6f9242a7a599e9e3c978bd80b9aead800 | bc0f527ab82a2874f02384ad2c87e41b2cac708d | refs/heads/master | 2023-07-31T02:51:01.238400 | 2021-09-27T14:02:03 | 2021-09-27T14:02:03 | 282,931,371 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | 5.cpp | /*
Приклад 5.
Див. Практична робота 5.docx
*/
// Перетворення десяткового числа в двійкове
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include "windows.h"
using namespace std;
int main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int dec; // десяткове число
int v; // вага формованого роз... |
9ba56118ecd8d5dc2d5fa2174144906219696df9 | 6c996d752073a89c208398266e8edbc7f1c7d8f5 | /Engine/Coordenada.h | acc511b85f8f884639a9ea0b2a7dbd8ecb874ff6 | [] | no_license | Gagv/Snek_Game | a6f4447dc4cb519fe1afedb70a45a9e82d41191f | b0320ca08f246e708c2b341f64d19b3cdc27e25c | refs/heads/master | 2020-03-23T21:10:37.480481 | 2018-07-24T01:22:43 | 2018-07-24T01:22:43 | 142,084,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | h | Coordenada.h | #pragma once
#include "Graphics.h"
class Coordenada
{
public:
Coordenada();
Coordenada(int in_x, int in_y, Color c);
~Coordenada();
bool operator==(const Coordenada& com) const {
return x == com.x && y == com.y;
}
int x;
int y;
Color c;
};
|
e5a8420bbdd567e0eea1ffa7cd05d8b6ba080622 | c05c5af550ec7c99b951dcdf0da3d20a2f7a34cd | /lib/src/environment.cc | e8d83fc05ea469547f4039e858087795b06d682e | [
"Apache-2.0"
] | permissive | isabella232/libral | f42d0a881dd91ac91b1534fff0612b74f614e402 | 8f18f1022ef3676a3df6d13d6b483d2100c5bc97 | refs/heads/master | 2021-09-12T16:25:34.921120 | 2018-04-18T15:23:39 | 2018-04-18T15:23:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cc | environment.cc | #include <libral/environment.hpp>
#include <libral/ral.hpp>
#include <libral/target/base.hpp>
namespace libral {
namespace aug = libral::augeas;
const std::vector<std::string>&
environment::data_dirs() const { return _ral->data_dirs(); }
libral::command::uptr
environment::command(const std::string& cmd) ... |
67f468fc5aeefb0383aaff9dc84db3a42be89730 | fda8876a6c122fb2c84b796ff2c39bc592ba5219 | /MotifyDlg.cpp | f6498c8760cbc7bbb35bd9d102d63e219d51d17e | [] | no_license | double0517/Recipe | 802b3750056f588bc2c565bc17da7797fc0161d3 | 843217b93b068ebf4924567333cba3a6fc24cc9c | refs/heads/master | 2016-08-11T10:24:46.391288 | 2015-11-28T06:49:03 | 2015-11-28T06:49:03 | 47,013,424 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,773 | cpp | MotifyDlg.cpp | // MotifyDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "Recipe.h"
#include "MotifyDlg.h"
#include "afxdialogex.h"
// MotifyDlg 对话框
CString MotifyDlg::strDisName = "";
CString MotifyDlg::strDisCount = "";
CString MotifyDlg::strDisPrice = "";
CString MotifyDlg::strDisDanPrice = "";
IMPLEMENT_DYNAMIC(MotifyDlg, CDia... |
eb2f3434394db244be44097af2f9f365863a7891 | 6a47b5f04c74ed475b632e6561a675135e3baa80 | /core/storage/trie/polkadot_trie/polkadot_trie.hpp | becbfe3725c0a06683a9135b6ae181814218fb9d | [
"Apache-2.0"
] | permissive | DiamondNetwork/kagome | 3f89afcc7432c7047b2ce2a3ef6bf7a6ee878423 | c018130a5595eeb69e439ea4695c7b7db1c7ee43 | refs/heads/master | 2023-08-05T01:19:31.739959 | 2021-10-08T14:01:45 | 2021-10-08T14:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,156 | hpp | polkadot_trie.hpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_STORAGE_TRIE_POLKADOT_TRIE_HPP
#define KAGOME_STORAGE_TRIE_POLKADOT_TRIE_HPP
#include "storage/buffer_map_types.hpp"
#include "storage/trie/polkadot_trie/polkadot_node.hpp"
#include "storage/trie/polka... |
9ffdb9a3fa342ae0fd8b57574701802c0187fbd6 | 1012d4b546bce6e3de2357a499dbb80c488f3817 | /Graphics/Scene/RenderLayerSceneRendererCommand.h | 825b06fbfd223257059d852b98f8fb0231094ca5 | [] | no_license | ror3d/mastervj-basic-engine | f35e18650dc968258914cc75ae0136057caf44d5 | 2023ac0334219a0d578079a051476e212baf2f75 | refs/heads/master | 2021-06-05T11:11:20.817620 | 2016-11-04T03:28:35 | 2016-11-04T03:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | RenderLayerSceneRendererCommand.h | #ifndef RENDER_LAYER_SCENE_RENDERER_COMMAND_H
#define RENDER_LAYER_SCENE_RENDERER_COMMAND_H
#include "Scene/StagedTexturedSceneRendererCommand.h"
class CRenderLayerSceneRendererCommand : public CStagedTexturedSceneRendererCommand
{
private:
std::string m_layerName;
bool m_zSort;
public:
CRenderLayerSceneRendererCo... |
22f964d84331b0d9207f31b8e82b56a9599f5e09 | 4e28f29570ec583dfa4c18444dae4cefdd871895 | /src/util/util_time.h | 34a53bbe137c7654b69297a28436fcf8a43a84ef | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | bmatheny/memkeys | e718a48886dd445b1e4ab7f03565ee4af2e8bc99 | 7c521c465c9661ff298ca32d974d22c4318556aa | refs/heads/master | 2021-05-16T05:28:48.394845 | 2018-04-25T01:37:57 | 2018-04-25T01:37:57 | 9,477,378 | 51 | 26 | Apache-2.0 | 2021-02-08T14:55:26 | 2013-04-16T16:42:37 | C++ | UTF-8 | C++ | false | false | 1,159 | h | util_time.h | #ifndef _UTIL_UTIL_TIME_H
#define _UTIL_UTIL_TIME_H
#include <cstdint>
#include <cstring>
extern "C" {
#include <sys/time.h>
#include <unistd.h>
#include <time.h>
}
namespace mckeys {
class UtilTime {
public:
static inline uint64_t currentTimeMillis() {
struct timeval t;
gettimeofday(&t, NULL);
retur... |
726f7cf775a6138acbea3031f02d2a730b8cc967 | d9db6449de08b2341c70597290d3005abf00f47e | /CodeForces/B/Queue_At_school.cpp | 346e56defb2bbe6876add7ad4ff789b596b72df2 | [] | no_license | Harshsngh07/DataStructures_and_Algorithms | bd22af0b83017a7e00a6f85d12b12b2316fc8b15 | 451d54d9fa9f8708fd545a17d57cb85b5fdde2f9 | refs/heads/master | 2023-07-31T14:13:10.404941 | 2021-06-22T05:25:18 | 2021-06-22T05:25:18 | 252,812,769 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | Queue_At_school.cpp | #include <bits/stdc++.h>
#include <vector>
using namespace std;
#define ll long long
#define MOD 1000000007
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
#define FIO \
ios_base::sync_with_stdio(false); \
cin.tie... |
955ac24b3950431fd4dcdcb3e4e1819c7abc708e | 2ce68c34402740f8beca81630d995acac07d21a4 | /include/libnative.h | 465aea368c45e562fbca181c986b133625c8844d | [] | no_license | emdagh/dotnet-interop | 0e4ca80578a3db236613c3bd980426fae79cc283 | 8097fe428bfc8c87de96f55ef13e10e8a2fd292b | refs/heads/master | 2023-04-01T10:33:10.740478 | 2020-08-24T20:44:52 | 2020-08-24T20:44:52 | 284,217,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | libnative.h | #ifndef LIBNATIVE_H_
#define LIBNATIVE_H_
#include <cstdint>
#include <string>
#include <vector>
namespace ns {
extern "C" size_t get_array(unsigned int* res, size_t len);
extern "C" void do_wstring_array(wchar_t**, int);
extern "C" void do_wstring(wchar_t*);
extern "C" void do_vector(std::vector<int... |
d9d419e5c2006b4af66b1a9a8d2393d6b0082ee2 | 9bd2b92b924d65f19bc534b543f90ae63ea23637 | /contest/cdut-search/K.cpp | 9111278444dfdb4cb47a1621a6693f26b1afa9e0 | [] | no_license | mooleetzi/ICPC | d5196b07e860721c8a4fe41a5ccf5b58b6362678 | cd35ce7dbd340df1e652fdf2f75b35e70e70b472 | refs/heads/master | 2020-06-09T12:13:48.571843 | 2019-12-01T11:39:20 | 2019-12-01T11:39:20 | 193,435,046 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,397 | cpp | K.cpp | #include<iostream>
#include<cstring>
#include<queue>
#define rep(i,x,y) for (int i=x;i<y;i++)
#define mt(a,x) memset(a,x,sizeof a)
#define maxn 10010
using namespace std;
const int dx[]={0,1,0,-1};
const int dy[]={1,0,-1,0};
int a[5][5];
struct node{
int x,y,pre;
};
node que[maxn];
int fa[maxn];
int vis[5][5];
int ... |
dcc1bf6ba6fc459695c67d8093874d81b97f49d7 | 3be85ac20744896f0afb84010b63f8cfc6c9c3aa | /src/Main.cpp | 186882c28516f97069b6bee739af849af4b0c5a5 | [] | no_license | chsoto97/rv2 | 9c1e8e6fa517079ee3ec429f38bf0e05a43aec17 | ad5a8b1251e951a43ee08e4ae460893e5b0071e4 | refs/heads/master | 2022-07-17T04:34:45.106704 | 2020-05-18T16:51:16 | 2020-05-18T16:51:16 | 259,931,850 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46,573 | cpp | Main.cpp | #include <opencv2/opencv.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <fstream>
using namespace cv;
using namespace cv::xfeatures2d;
int main(int argc, const char* argv[])
{
//load images
cv::Mat img_1 = cv::imread("./IMG_CAL_DATA/left08.png", 0);
cv::Mat img_2 = cv::imr... |
0bf9b6e0abc6cf9dd26bd108f87aa5d9bf5d8cda | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/Codeforces/C++/A580.cpp | 814a7b9e00d6a18d60a59151e1733759e1eaec42 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | A580.cpp | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, l = 0, ret = 0, u = -1, x;
cin >> n;
while (n--) {
cin >> x;
if (x >= u) l++, ret = max(ret, l);
else l = 1;
u = x;
}
cout << ret;
}
|
0e46e866ec13bcadb2e9b44967d0a0fbfd7c4337 | b53575b4f1da8246e9abbb2bf4d297fd0af75ebb | /UVa/100/193.graph-coloring.cpp | 6e4c365979a50b2cba4477b7ac25f639074e622b | [] | no_license | mauriciopoppe/competitive-programming | 217272aa3ee1c3158ca2412652f5ccd6596eb799 | 32b558582402e25c9ffcdd8840d78543bebd2245 | refs/heads/master | 2023-04-09T11:56:07.487804 | 2023-03-19T20:45:00 | 2023-03-19T20:45:00 | 120,259,279 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cpp | 193.graph-coloring.cpp | #include<iostream>
#include<cstdlib>
#include<string>
#include<cmath>
#include<algorithm>
#include<bitset>
#include<vector>
#include<map>
#include<set>
#define N 105
using namespace std;
bool g[N][N], color[N], mk[N];
int n, m, ans;
bool ok(int u)
{
for(int i = 1; i <= n; i++)
{
if(... |
8450cd14715667c138cc6d4823e2185daf0b7ec1 | 611142068bdce049f8eb29ed327524e63f751197 | /src/LSM6DS3.cpp | 82798cebe08c1bec0e48dfd47ee1d1e831785e5d | [] | no_license | mslawicz/NucleoYoke | 313752e3774d46a87bd81fc7e0c5637c62c0cebc | db8ef8c4a48ef4c0565c3f0430bd555b08254fae | refs/heads/master | 2020-06-28T08:53:45.584329 | 2019-12-14T19:26:47 | 2019-12-14T19:26:47 | 200,192,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,041 | cpp | LSM6DS3.cpp | /*
* LSM6DS3.cpp
*
* Created on: 03.09.2019
* Author: Marcin
*/
#include "LSM6DS3.h"
LSM6DS3::LSM6DS3(I2cBus* pBus, DeviceAddress deviceAddress) :
I2cDevice(pBus, deviceAddress),
address(deviceAddress)
{
// Gyroscope Data Ready to INT1 pin for test only
writeRequest(address, L... |
b83573ddc04d0200f16e16a977132eb637d1319f | 888875952c0d1e28c1a0558dc4c15ccffb564333 | /src/physics/ray.cpp | 33fcb21a28bcab146a54d2f97d6fdc6cdc9b70dd | [] | no_license | anthonydito/ditorender | b99ce7722752bea4b398c3c8efe5fb76bea27b8e | f59d885144267ee74ae50ff1e821385f5198f98a | refs/heads/master | 2023-06-21T23:15:26.260872 | 2021-07-26T03:27:44 | 2021-07-26T03:27:44 | 371,460,515 | 0 | 0 | null | 2021-07-18T02:25:23 | 2021-05-27T17:57:47 | C++ | UTF-8 | C++ | false | false | 3,122 | cpp | ray.cpp | #include "ray.hpp"
#include <algorithm>
#include "math.h"
#include "../util/tuple.hpp"
#include "intersection.hpp"
using namespace dito::util;
using namespace dito::physics;
Ray::Ray(Point origin, Vector direction)
{
this->_origin = origin;
this->_direction = direction;
}
Point Ray::origin() const
{
ret... |
d53bbad07262d86bc6f7f684e99348c0bdb87063 | bb0e580e3fd528ea5212f74eaab797116ff42ab9 | /microbit_cpp_code/source/main.cc | 259331590273734c514f1b49c0f4e2d13d51c3e9 | [] | no_license | 8n8/realbikenav | 0676f41664ca56fe12fbe42b1ebeefe45dab3b8f | e493e2247b7e026c9aee3f2ed2c1cd8be6ce7d0f | refs/heads/master | 2023-07-31T02:16:03.832891 | 2018-06-30T12:02:33 | 2018-06-30T12:02:33 | 405,713,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,306 | cc | main.cc | // It runs on the microbit. It receives information about what to
// display on the LEDs from the parent computer via a USB serial port.
// It reads the sensors and sends the readings to the parent computer.
// It runs continuously.
#include "MicroBit.h"
MicroBit uBit;
struct leds {
bool new_destination;
... |
46fb3870ca1de7fb7ef45ee27f814829dfeb2b24 | bbeaadef08cccb872c9a1bb32ebac7335d196318 | /Fontes/Redegraf/VTRedegraf.h | 033a976f0532ec5bc1f5a99119c8be7a6d6320f0 | [] | no_license | danilodesouzapereira/plataformasinap_exportaopendss | d0e529b493f280aefe91b37e893359a373557ef8 | c624e9e078dce4b9bcc8e5b03dd4d9ea71c29b3f | refs/heads/master | 2023-03-20T20:37:21.948550 | 2021-03-12T17:53:12 | 2021-03-12T17:53:12 | 347,150,304 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,936 | h | VTRedegraf.h | //---------------------------------------------------------------------------
#ifndef VTRedegraf_H
#define VTRedegraf_H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include "VTCoordenada.h"
#include "..\Editor\Marca\VTMarca.h"
#include "..\Rede\VTArea.h"
#includ... |
7bee9635c375497a4879a1e0bb96f7096069ad5b | 416e31ae351bee33108e67a47bb558312d66b147 | /ProiectTDMRC/ElementalDust.h | 494b4b2d9f2d244060c61a3c73f5ac6967f318cf | [] | no_license | ZaharescuMihai/TDMRC-2015 | a9b782b40128fde4b497dfa52938027128cd3faf | 0f30e6b20f586ae34506d51aec2585a6c7289bd6 | refs/heads/master | 2020-05-18T13:23:54.040876 | 2015-04-29T02:22:19 | 2015-04-29T02:22:19 | 32,980,429 | 1 | 4 | null | 2015-03-31T08:29:09 | 2015-03-27T10:32:24 | C++ | UTF-8 | C++ | false | false | 617 | h | ElementalDust.h | #include "Direct_Access_Image.h"
#include "stdafx.h"
#include "particle.h"
#include "fixed_float.h"
class ElementalDust
{
int nr_particles_int;
particle *partiles_prt;
public:
ElementalDust();
~ElementalDust();
void import(KImage *import, float multiplicator);
void import(char *file_name);
void import(void ... |
ab2f685d607990d6a71c407979d05f4ab2d63c7c | 2340859cdfd21ecf9bf5dd3d4dc3304b89ebf115 | /dogpack-mapped/lib/2d/cart/ApplyPosLimiter.cpp | 5449e6988e573e2caa4abcf75ef859063c72a05d | [] | no_license | smoe1/ThesisCode | 56c97c440f7f8182f5be7dba76848741dcf9a9d6 | bd535bc99d0add16787524bd2ac5c4a53f2d86ee | refs/heads/master | 2021-01-24T07:18:55.455846 | 2017-06-07T02:15:40 | 2017-06-07T02:15:40 | 93,338,238 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,191 | cpp | ApplyPosLimiter.cpp | #include<cmath>
#include "DogParams.h"
#include "dogdefs.h"
#include "dog_math.h"
#include "Legendre2d.h"
void ApplyPosLimiter(const dTensorBC4& aux, dTensorBC4& q)
{
double Min(double, double);
const int mx = q.getsize(1);
const int my = q.getsize(2);
const int meqn = q.getsize(3);
const int k... |
f67173ab10b346086348df0e76bc4047680c41ae | 48e5c5039435deb0ac0e64ce8bc00ddc5e9c83b2 | /The Road/The Road/VertexBuffer2D.cpp | 773dc5f55deb3ccdaa236b025374f92e131b064a | [] | no_license | ThimbleFire/CPP-DirectX-June-2010 | b70e2613604facd7c9dea850774c511f175aaa9f | 52884a90a5932e5199a030605d14616fd9d4b2ba | refs/heads/main | 2022-12-26T03:30:44.673542 | 2020-10-14T09:01:55 | 2020-10-14T09:01:55 | 303,959,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,090 | cpp | VertexBuffer2D.cpp | #include "VertexBuffer2D.h"
VertexBuffer2D::VertexBuffer2D()
{
m_vertexBuffer = nullptr;
m_indexBuffer = nullptr;
Translate(0.0f, 0.0f, 0.0f);
Rotate(0.0f);
}
VertexBuffer2D::~VertexBuffer2D()
{
}
bool VertexBuffer2D::Initialize(ID3D11Device* device, unsigned int screenWidth, unsigned int screenHeight)
{
boo... |
497b09a5d06a0b0a66137164cdb4137a52a1f6f0 | 6cb2d86ef616ac145baee0670a89f05c49921d99 | /include/JustMath/Beta.hpp | f93ca9947d3b1054401a4ea83b26b5475ab275ee | [
"MIT"
] | permissive | alexander-valov/IncompleteBeta | 9503aae6e810aaceebb9b6bbdcfe58b4bac27396 | 4b3cc7f7eb1d07dfe0a921173695efe88d0206dc | refs/heads/master | 2023-08-06T01:39:52.614427 | 2021-09-12T09:10:27 | 2021-09-12T09:10:27 | 405,302,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,394 | hpp | Beta.hpp | /*
IncompleteBeta https://github.com/alexander-valov/IncompleteBeta
MIT License
Copyright (c) 2021 Alexander Valov <https://github.com/alexander-valov>
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 Sof... |
4e3e0f304430aa5d4b78283100a80a2d2a59b36d | 49e1bc7edabeb7c1f2d9c8d6ae8c4bc1f8a3ec4b | /BambooCC/Geometry/Polygon.h | 873c8bee77a9be55542e31d88b1dcd80e1661ea0 | [] | no_license | ngoaho91/bamboocc | 8ff38dd28f8493716bad63368b77bd9177c31bbe | e3800af23f97b099cd40e2f2e94265da1c2262a7 | refs/heads/master | 2021-01-01T05:49:05.729457 | 2014-04-07T16:48:27 | 2014-04-07T16:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | h | Polygon.h | #ifndef Polygon_h
#define Polygon_h
#include "Rectangle.h"
#include "QuadTree.h"
#include "Node.h"
#define QOT_POLYGON 1
namespace Geometry
{
class Polygon
:public QuadObject, public Nodes
{
public:
Polygon();
~Polygon();
void CalculateAABB();
bool PointInsideBB(Node* node);
Polygon::iterator GetNext(P... |
9fa4751f7644ec4b74aade79e1f7290a9250bf69 | 3af68b32aaa9b7522a1718b0fc50ef0cf4a704a9 | /cpp/C/C/E/D/ACCED.h | e9c0901f546f8da394fffac490b3d994b0b75ddf | [] | no_license | devsisters/2021-NDC-ICECREAM | 7cd09fa2794cbab1ab4702362a37f6ab62638d9b | ac6548f443a75b86d9e9151ff9c1b17c792b2afd | refs/heads/master | 2023-03-19T06:29:03.216461 | 2021-03-10T02:53:14 | 2021-03-10T02:53:14 | 341,872,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 65 | h | ACCED.h | #ifndef ACCED_H
namespace ACCED {
std::string run();
}
#endif |
c487ba21326e3adc472b75300f04d4245e17441b | c1f89beed3118eed786415e2a6d378c28ecbf6bb | /src/md/compiler/newmerger.cpp | 9ae8ab6753cfd01f7d9f0b19d8eba956fd5b867c | [
"MIT"
] | permissive | mono/coreclr | 0d85c616ffc8db17f9a588e0448f6b8547324015 | 90f7060935732bb624e1f325d23f63072433725f | refs/heads/mono | 2023-08-23T10:17:23.811021 | 2019-03-05T18:50:49 | 2019-03-05T18:50:49 | 45,067,402 | 10 | 4 | NOASSERTION | 2019-03-05T18:50:51 | 2015-10-27T20:15:09 | C# | UTF-8 | C++ | false | false | 262,939 | cpp | newmerger.cpp | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//*****************************************************************************
// NewMerger.cpp
//
//
// contains utility code to MD directory
//
// This file p... |
8fab901b36a92947f156ac53eff295d83f3e3b45 | afa59b7b69f09b924061eade6ecfd77bed61ebac | /controllers/ros44/include/webots_ros/motor_set_control_pid.h | 207fea2415aa7e88621ac33ade166fc491efe8d3 | [] | no_license | ekuo1/rovey2 | a8ead58269be266a7f880c6cac2da7dbc5fc5270 | db883dd7ae6b96465a16c83a57394cc2acb9b139 | refs/heads/master | 2020-04-13T14:25:15.274334 | 2019-01-05T07:29:52 | 2019-01-05T07:29:52 | 163,262,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,303 | h | motor_set_control_pid.h | #ifndef WEBOTS_ROS_MESSAGE_MOTOR_SET_CONTROL_PID_H
#define WEBOTS_ROS_MESSAGE_MOTOR_SET_CONTROL_PID_H
#include "ros/service_traits.h"
#include "motor_set_control_pidRequest.h"
#include "motor_set_control_pidResponse.h"
namespace webots_ros
{
struct motor_set_control_pid
{
typedef motor_set_control_pidRequest Req... |
de2e0a48b766eefe9230d939433e6c35d3ee8259 | e654d5c80e216de7378aabd937f47dcbd474c333 | /Submitted/800/263A-Beautiful_Matrix.cpp | 5535f6340c19995c96c02e6a2c8de7cc100928cb | [] | no_license | AgustinMDominguez/Codeforces | ccf685a293d777bfbddd84b316d666b3bed6d685 | bedfe8d3ef9fd91fb2aa3b61c0912327acdcd001 | refs/heads/master | 2023-01-22T22:45:16.655989 | 2020-11-19T15:21:59 | 2020-11-19T15:21:59 | 314,286,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | 263A-Beautiful_Matrix.cpp | #include <bits/stdc++.h>
using namespace std;
#define DBG(x) cout << #x << " = " << (x) << "\n"
#define END(e) {cout << (e) << "\n"; return EXIT_SUCCESS;}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int v;
for(int r=1; r<6; ++r) {
for(int c=1; c<6; ++c) {
cin >> v;
... |
732b7fcee848204b5c279a5aac21b378a06e18bc | cbed91fe314a3ad6c1058953fb50176f66bc63c1 | /Opencv_exercise/canny_edge_detection/canny_edge_detection.cpp | 6bf8a2436302025cbb686fd29c9e61aa79f60948 | [] | no_license | Atsushi-Kobayashi/mic_programming_exercise | 716a8f3a6a2672631e89e7df77d9688fb9c05a66 | 6a692d6f310c519f60956bd4c363ac59d4075e6e | refs/heads/master | 2020-04-30T14:06:12.134966 | 2019-04-16T08:43:28 | 2019-04-16T08:43:28 | 176,879,407 | 0 | 1 | null | 2019-03-24T17:24:58 | 2019-03-21T05:57:42 | C++ | UTF-8 | C++ | false | false | 1,165 | cpp | canny_edge_detection.cpp | #include <opencv2/opencv.hpp>
#include"filters.h"
#include<iostream>
#include<vector>
#include<cmath>
void cannyEdgeDetection(cv::Mat &img) {
int high_threshold=35;
int low_threshold=30;
/*std::cout << "Gaussian filter\n";*/
gaussianFilter(img);
cv::imshow("Gaussian", img);
cv::waitKey(0);
cv::Mat img_edge = ... |
e06528560c72287a967c40e283d88a83bb7a508a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/xgboost/xgboost-gumtree/dmlc_xgboost_new_hunk_884.cpp | c5f6195e6dfc7c18af43e2ddb4e7ed033316fcb4 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | cpp | dmlc_xgboost_new_hunk_884.cpp | }
public:
/*!
* \brief step 1: initialize the number of rows in the data, not necessary exact
* \nrows number of rows in the matrix, can be smaller than expected
*/
inline void InitBudget( size_t nrows = 0 ){
if( !UseAcL... |
a526b8d9a9700f55e193364be011d8f38b3780b1 | c20c21fe3bde17040c8f1367eaa697258479798e | /raygame/Sprite.h | 1975d39a5168083caf47ff66e2579ad853f91312 | [
"MIT"
] | permissive | DynashEtvala/TurfTanks | 6c92d6b4d85bf277d3e8a5187c718c75871d770a | 5aa6a346b485c36c3ac74473c3a2a26ccd40cfb1 | refs/heads/master | 2020-04-07T01:26:32.673737 | 2018-12-07T01:48:10 | 2018-12-07T01:48:10 | 157,941,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | Sprite.h | #pragma once
#include "raylib.h"
#include "Helpers.h"
class Sprite
{
public:
Texture2D* tex;
Point frame;
Point frameCount;
Point frameSize;
Vector2 pos;
Vector2 orig;
Color tint;
float scale;
float rot;
float spf;
float ftime = 0;
Sprite();
Sprite(Texture2D* _tex, Point _frame, Point _frameSize, Vector2 ... |
447b3e43f79abeea27272a38186796f77f9445ea | 81c74937fd4586b264b9ff3242be616292d06bdf | /trunk/src/c++/markerinfo/markerinfo.cpp | 6a68337a29b1e6acdd381349c26cf165413bf2f8 | [] | no_license | rahulkr007/sageCore | be877ff6bb2ee5825e5cc9b9d71e03ac32f4e29f | b1b19b95d80637b48fca789a09a8de16cdaad3ab | refs/heads/master | 2021-06-01T12:41:41.374258 | 2016-09-02T19:14:02 | 2016-09-02T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,499 | cpp | markerinfo.cpp | //==================================================================
// File: markerinfo.cpp
//
// Author: Yeunjoo Song
//
// History: Initial implementation. Mar. 2002
//
// Copyright (c) 2002 R. C. Elston
//====================================================... |
bde89b943f25791b9e8baba9e5786e35a2be79a1 | c10c56fd3be1500dc19c63ab8ce93da26b2235b6 | /robot.h | 748d605e5a856e2548980548c6c5e160d65cc790 | [] | no_license | Susta79/RF210001 | f64ae60b8a00eea40fc79e65628adaf1465378ff | 73721046a4ba290d2316bd914397be95549052c9 | refs/heads/main | 2023-08-16T01:29:38.103006 | 2021-10-04T19:44:25 | 2021-10-04T19:44:25 | 412,329,214 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | robot.h | #ifndef ROBOT_H
#define ROBOT_H
#include "pose.h"
#include "joint.h"
enum Brand { IR, ABB, KUKA };
class Robot {
private:
double a1z;
double a2x;
double a2z;
double a3z;
double a4x;
double a4z;
double a5x;
double a6x;
Brand brand;
public:
Robot();
void setdimensions(double... |
fa39ce02209d304ceddea462a6f9fac0808708c1 | b1aa9ad6733efcb53d465809d5109e9174dabf04 | /CCode/PluginCode/C4EditorManipulators.cpp | ad71c7658869893727aefdd24ff9601e34867872 | [] | no_license | dumpinfo/GameMatrixTest | d21545dbef9ade76fe092343a8362da4c8b142ca | 9e4a73ad17555ddb90020c47e2486698b90e4d0d | refs/heads/master | 2023-02-04T01:52:05.342214 | 2020-12-23T17:22:36 | 2020-12-23T17:22:36 | 323,961,033 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48,594 | cpp | C4EditorManipulators.cpp | //=============================================================
//
// C4 Engine version 4.5
// Copyright 1999-2015, by Terathon Software LLC
//
// This file is part of the C4 Engine and is provided under the
// terms of the license agreement entered by the registed user.
//
// Unauthorized redistribution of sou... |
bdb06b004f4a4d491f3fa3eced7e8c3a3c6cc8bc | 9144ea02a3bf4197f45f6034f2b0ee8efa7da200 | /src/interface/ipmCamCalibParamParser.cpp | 7f643e8adfa2fb027f5fe1c35ee96075c1f563e9 | [
"MIT"
] | permissive | fengtanshou/Easy-Ipm-Client | adbe78d566309f5e198d65c2e3bb7b8c802ddced | ca8039a67423d5119704bb01a58e43491f92ddfb | refs/heads/master | 2021-03-15T15:15:42.663067 | 2019-11-26T14:04:47 | 2019-11-26T14:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | ipmCamCalibParamParser.cpp | /************************************************
* Copyright 2018 Baidu Inc. All Rights Reserved.
* Author: Luo Yao
* File: ipmCamCalibParamParser.cpp
* Date: 18-12-26 下午2:23
************************************************/
#include "ipmCamCalibParamParser.h"
IpmCamCalibParamParser::IpmCamCalibParamParser(const Ipm... |
1ea1c4489f834e03a2a7328265ad413f7f11c49b | b6ef93e8c4c3b78dc28a77d6d43fa83f8cfeea5e | /Plugins/RuntimeQuVRTransformAxis/Source/RuntimeQuVRTransformAxis/Public/RuntimeQuVRAssetContainer.h | 3d6564def11b9f62222fe8775411dddff69995f5 | [] | no_license | sines/QRTIMeshComponent | 36a695cf4525762f104691b0df1d9507b1946f0c | 90b08aba1a8b36fc3601c76d312f17fc3a5e3e68 | refs/heads/master | 2018-09-10T08:26:01.695867 | 2018-06-05T09:26:12 | 2018-06-05T09:26:12 | 114,124,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,449 | h | RuntimeQuVRAssetContainer.h | // Copyright 2018 Louis. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "RuntimeQuVRAssetContainer.generated.h"
// Forward declarations
class UMaterialInterface;
class USoundBase;
class UStaticMesh;
/**
* Asset container for Render.
*/
UCLASS(Blueprintable)
cla... |
01067a59cd8d1325a32ba6b19b10fccb82f61a66 | 766996d84cc71493deaf100f2493ee42ed0d4243 | /src/ifc/ifc4/IfcEvent.h | 64bd208b3e7914a984469b3906a62ae15024e88c | [] | no_license | andreasniggl/ifclite | 6040cd72460d401a364c4c7554f2fe3f44ee6df8 | aacc8a9f0add7036c4c04eeaed7938e731726ead | refs/heads/master | 2020-03-09T05:13:57.641923 | 2018-08-06T21:42:27 | 2018-08-06T21:42:27 | 128,607,886 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,613 | h | IfcEvent.h | // Automatically generated by ifclite express parser from ifc4 express file - do not modify
#pragma once
#include "IfcTypeDefinitions.h"
#include "IfcProcess.h"
#include "IfcEventTime.h"
namespace ifc4
{
class IfcEvent : public IfcProcess
{
public:
virtual ~IfcEvent(){}
explicit ... |
ade8940a723b28a0f1c4ec4a3ec71d9d800c4ef4 | e2206c5b0555dddb2b440bd48a9df0fac8f3c356 | /Seasonal/bts18p4.cpp | dcfdc2268ae1db4318b58ce19d57f91944444cf5 | [] | no_license | stevenbai0724/DMOJ-Solutions | e802bdfcf496861ebb34179bead2207233eb483e | 965998d2f958f726458958208e8e0613ea2a63ef | refs/heads/main | 2023-07-15T05:19:49.296694 | 2021-08-30T14:32:43 | 2021-08-30T14:32:43 | 315,147,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,757 | cpp | bts18p4.cpp | //https://dmoj.ca/problem/bts18p4
#include <bits/stdc++.h>
using namespace std;
#define int long long
int n, nd;
int mx = 0, cnt = 0, ans = 0;
vector<int>colour;
vector<vector<int>>adj;
vector<int>dis;
vector<bool>vis;
vector<int>comp;
void dfs(int v){
colour[v] = 1;
for(int u: adj[v]){
... |
c24d6bd1ad79ddfbfa592df966d01e158603ae16 | cb45c5824504b2c3010d54efdecff1c564ad6051 | /MatteEngine/Music.h | 2548a92208d09eeab54dd5d31997b19a481e9e20 | [] | no_license | tarsir/MatteEngine | 7129f28b7a4b2cb2a47dc98bbcaded1d90a1b115 | 0b57ed46ff3986e1d293094c1cc096bb450b0bed | refs/heads/master | 2021-09-25T13:29:40.289215 | 2018-10-09T08:57:09 | 2018-10-09T08:57:09 | 113,271,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | h | Music.h | #pragma once
#include <SDL.h>
#include <SDL_mixer.h>
#include "Entity.h"
#include "Util.h"
#include "spdlog\spdlog.h"
auto music_logger = spdlog::stdout_color_mt("Music.h");
namespace SMusic {
int current_music_volume = 32;
Mix_Music* current_bgm;
void load_music(std::string filename) {
Mix_FadeOutMusic(2000);... |
9314cbaa2fba0945d04ef535e5c640a2be6f2628 | 5e52e2b2742efe15a84b501554986ca6643bcc82 | /ParseIdl/env/NoConnection.h | 35fe667846717c9fcdde4b157aad56ddbed2de62 | [] | no_license | hogoww/ParseIdl | a271d2207f8b51d67b4457e246c1370268e86b12 | 3cb06253a38f3aedac877dd7a25840d8a13e1525 | refs/heads/master | 2021-03-24T13:30:15.646219 | 2018-10-10T16:25:52 | 2018-10-10T16:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | h | NoConnection.h | #ifndef __NO_CONNECTION_H__
#define __NO_CONNECTION_H__
#include <string>
#include <exception>
#include "Component.h"
/* class Component::NoConnection : public std::exception{ */
/* private: */
/* std::string errormsg; */
/* public: */
/* NoConnection(std::string errorMsg); */
/* virtual ~NoConnection() th... |
bfbe66884c88a07783d2838b402e7787bbb7e5e1 | 3f6f72804e5b7c6b7ddc9a07b294478e8c4eb877 | /osg_hello/LODNode/LODNode.cpp | 2d3e7b8382cdb344d9618daa3d1d5089ffcf7169 | [] | no_license | love3forever/osg_learning | e76bc54e7fb6206e95b34341b330ccd7fd479bad | 8e887f050a29564019b733abbd482953edf4fb79 | refs/heads/master | 2021-01-25T04:48:24.529317 | 2017-06-09T07:02:28 | 2017-06-09T07:02:28 | 93,479,875 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 599 | cpp | LODNode.cpp | // LODNode.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<osg/LOD>
#include<osgDB/ReadFile>
#include<osgViewer/Viewer>
int main(int argc,char** argv)
{
osg::Node* model = osgDB::readNodeFile("bunny-high.ive");
float r = model->getBound().radius();
osg::ref_ptr<osg::LOD> root = new osg::LOD;
root->addChild... |
7fab69a63f95a4a41d58d8461771be7045c5cca9 | 3f21c24ff10cba14ca4ab16ee62e8c1213b60bd0 | /src/classifiers/ClassifierManager.h | 11ddba0caf33729e56b07daeb733e2ea46bea6dc | [] | no_license | watson-intu/self | 273833269f5bf1027d823896e085ac675d1eb733 | 150dc55e193a1df01e7acfbc47610c29b279c2e7 | refs/heads/develop | 2021-01-20T03:15:02.118963 | 2018-04-16T08:19:31 | 2018-04-16T08:19:31 | 89,515,657 | 34 | 31 | null | 2018-04-16T08:15:51 | 2017-04-26T18:50:00 | C++ | UTF-8 | C++ | false | false | 2,912 | h | ClassifierManager.h | /**
* Copyright 2017 IBM Corp. 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 applicable law o... |
57fa375e7cf0eeb8495def8c947ca4cc19c84cc5 | 642ce02205385799aec1521ea53dd59beff87c32 | /TORTUGA/main.cpp | 30fdbaf4fb7225358be01b51349207d5eed2cb08 | [] | no_license | RubenJTL/Computacion-Grafica | 6e270208aae7fa859f7f519580c3c80e4ef85576 | 8da579930e01dce8b2675b9eaf1ba6a97c7ca142 | refs/heads/master | 2020-03-28T02:27:00.462237 | 2018-11-28T16:11:21 | 2018-11-28T16:11:21 | 147,571,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,898 | cpp | main.cpp |
#include <iostream>
#include "primitivas.h"
using namespace std;
#define PI 3.14159265
GLsizei winWidth = 600, winHeight = 500;
Window window;
int xr=0,yr=0;
void init(void){
glClearColor(1.0, 1.0, 1.0, 1.0);
glMatrixMode(GL_PROJECTION);
gluOrtho2D(-winWidth, winWidth, -winHeight, winHeight);
}
void ... |
3ef44ed59856beddbd4d9d3529aec26b244bb9fc | f1a5508d96984ce0b45c02e1ba509393d7b6bf88 | /Es_lezione_09/Exercise09_1.cxx | 1720fd4e7f3b71131a07f39f0db4b51a5c0700e3 | [] | no_license | AlessandroProserpio/LabSimNumerica | e3eab0eff21498d8f9dd74a7b49f20ae8157a015 | 7f0128891e4e859261bbf7786bb04b3d93f66945 | refs/heads/master | 2022-11-23T07:39:19.336286 | 2020-07-17T09:33:49 | 2020-07-17T09:33:49 | 278,032,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,711 | cxx | Exercise09_1.cxx | #include "cities.h"
#include "population.h"
#include <string>
int main(){
const int ncities=32;
const int npop=300;
const int ngen=2000;
//const int iprint=ngen;
Cities c;
// Cities in circle
c.Cities_in_circle(ncities, 1.);
Population pop1(npop, c);
pop1.SortL1();
//pop1.sortL2();
ofstream Pop;
cou... |
4ef8e7028136cf518c83e1199388d276b8201caa | 9526b3ee25e9252623d9ea41ba8b9658a541fa63 | /sstmac/software/launch/launcher.cc | 4db61f7a7e86e43e4ad23e6883db9b6077fa40bf | [
"BSD-3-Clause"
] | permissive | summonersRift/sst-macro | e6f3e80cdf70aa1e26e6ecf17e44960b522c4ae9 | 1307bb4f31e033dbbd2d9b82c54d3753446d31a4 | refs/heads/master | 2021-01-21T10:59:20.172254 | 2017-02-24T15:01:07 | 2017-02-24T15:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | cc | launcher.cc | /*
* This file is part of SST/macroscale:
* The macroscale architecture simulator from the SST suite.
* Copyright (c) 2009 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government ret... |
cf21528e40f29d972c2025b316766d4916e7b458 | 8f2dbf18b73e3cd5282edd3ec605e580a5a894fe | /Classes/HelloWorldScene.cpp | 6402195737027772015a4b7f04fde505ed6bd07a | [] | no_license | Mizutome/projectTetris | 7ecb67a2d8bc6c1f96210b9ab39c2b4b9a7c4cc8 | c0a3d8e1e21a856f7ffeda7a6df4df8d8f094a84 | refs/heads/master | 2021-01-14T11:26:18.605007 | 2014-08-28T13:18:09 | 2014-08-28T13:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,792 | cpp | HelloWorldScene.cpp | #include "HelloWorldScene.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addChild(layer);
// r... |
35fd8177e151d5001ff6329b46f41ef5cedc3d5a | 61f81f1d0c79a06ea7acfbfabd8c76bd4a5355e0 | /OpenWAM/Source/ObjectTester.cpp | d53b689e475d5ed84b1b81bcd33a81983df992a1 | [] | no_license | Greeeder/Program | 8e46d46fea6afd61633215f4e8f6fd327cc0731f | b983df23d18a7d05a7fab693e7a9a3af067d48a5 | refs/heads/master | 2020-05-21T22:15:32.244096 | 2016-12-02T08:38:05 | 2016-12-02T08:38:08 | 63,854,561 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,819 | cpp | ObjectTester.cpp | #include "Globales.h"
#include "TPipeHeatT.h"
#include "TPipeIntHeatIntake.h"
#include "TPipeIntHeatExhaust.h"
#include "TPortIntHeatIntake.h"
#include "TPortIntHeatExhaust.h"
#include "TPipeExtHeatA.h"
#include "TFluidAir.h"
#include "TSldAl.h"
#include "TMultiWiebe.h"
#include "THRL.h"
#include <chrono>
#include <fst... |
eabe8565364d24c309350290dc0bd07e278ced26 | 125ae0adb562478b184bbb35d40f2c43b335415c | /HAL/Common/tHALWatchdog.h | 2465fc9041622bf7cff9468c0bbf0b64c265daad | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 880 | h | tHALWatchdog.h | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
#ifndef T_HAL_WATCHDOG_H
#define T_HAL_WATCHDOG_H
#pragma warning(push, 1)
#include <QObject>
#pragma warning(pop)
#... |
e970100847098dc195c6ecd97639e7788a1fe369 | 4ad680a647ee4119cc141b290b8c345a79898737 | /EScript/Compiler/Tokenizer.h | 1cd284cfaee7df70c329549168775bd760040e00 | [
"MIT"
] | permissive | PADrend/EScript | 16ddc39fde601f91a4467976632e55e7decc52e1 | 491df975a9c81d9e22bc0e2fecb04a184f4e77c3 | refs/heads/0.7.2.Egon | 2023-08-02T07:15:45.006282 | 2015-12-31T17:41:26 | 2015-12-31T17:41:26 | 301,776,245 | 0 | 0 | MIT | 2020-10-13T10:03:29 | 2020-10-06T15:42:45 | null | UTF-8 | C++ | false | false | 1,828 | h | Tokenizer.h | // Tokenizer.h
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de>
// Copyright (C) 2011-2012 Benjamin Eikel <benjamin@eikel.org>
//
// Licensed under the MIT License. See LICENSE file for details.
// ---------------------... |
20655f31e714f506c462dac8b803c2815e8782b8 | 6beecae61b6cf917ea4acd90f4064a13375d4457 | /cob_camera_sensors_ipa/common/src/UnicapCamera.cpp | 9aeb94837f4e8c99158507b40882aedcf2a9cf0f | [] | no_license | ipa-rmb-mo/cob_bringup_sandbox | f1d0fd1f4d5fa239be27380efdfd12566eb99ecc | da256f1ef78d0e3e985685dd17d7930c56360414 | refs/heads/master | 2020-05-29T11:57:54.578091 | 2016-11-07T01:51:38 | 2016-11-07T01:51:38 | 56,847,368 | 0 | 1 | null | 2016-04-22T10:24:06 | 2016-04-22T10:24:06 | null | UTF-8 | C++ | false | false | 11,883 | cpp | UnicapCamera.cpp | #ifdef __LINUX__
#include <highgui.h>
#include "UnicapCamera.h"
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <assert.h>
UnicapCamera::UnicapCamera( )
{
m_Handle = NULL;
m_Device = NULL;
m_Format = NULL;
m_CameraActive = false;
m_Resolution = 0;
}
UnicapCamera::Unica... |
69c622719918501e970d9729ab20bfd776795953 | 354d662439d13cf8f89afeae89d9e5b68c2321c6 | /src/real_dlib.cpp | 500f22e70fa87ad591451ce5c76c7761d2d80d59 | [] | no_license | bobbieVan/Facial-Landmark | b15d539cfd937c5d2cdb500e95260e48ecb74f92 | d78014fcb2ed0104fc85691450427f4cdd07d933 | refs/heads/master | 2020-05-16T16:53:57.335876 | 2018-05-04T10:54:42 | 2018-05-04T10:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,288 | cpp | real_dlib.cpp | #include <dlib/opencv.h>
#include <opencv2/core/version.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_processing/render_face... |
a6d1f2c156b49f4ef9752c0c1d41f0d5587a1c88 | 032fe3c72c6bcc20c7d3e5b60c153ec10d7c82a4 | /leetcode/src/clonegraph.cpp | 2fcebbe2c8f79607ef0c06b2f849f70c7117b140 | [] | no_license | waitin2010/Algorithm | 9a8b500a0adbfa30c3e102a8c9a184b99a629abd | f387558624c4f829f6497a90c8a9abeb4e210118 | refs/heads/master | 2020-05-30T04:43:52.349423 | 2015-10-12T09:40:13 | 2015-10-12T09:40:13 | 19,803,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,073 | cpp | clonegraph.cpp | #include <iostream>
#include <vector>
#include <map>
#include <queue>
using namespace std;
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
UndirectedGraphNode *cloneGraph(UndirectedGraphNode *node) {
if(node==NU... |
38290d503cee4ff92ac30c94ce7dcc6538304c79 | 0bf1f7b901118b5cbe3d51bbc5885fcb634419c5 | /Cpp/SDK/UMG_TextButton_Popup_parameters.h | a28a6f999e34b07de8b61824436adc51e337810f | [] | no_license | zH4x-SDK/zMCDungeons-SDK | 3a90a959e4a72f4007fc749c53b8775b7155f3da | ab9d8f0ab04b215577dd2eb067e65015b5a70521 | refs/heads/main | 2023-07-15T15:43:17.217894 | 2021-08-27T13:49:22 | 2021-08-27T13:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | h | UMG_TextButton_Popup_parameters.h | #pragma once
// Name: DBZKakarot, Version: 1.0.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//----------------------------------------------------... |
32bde46dc25d81b330c33610f71d64f7705b74eb | 56317b548ed1b04981f3553e915ddf28c334bc26 | /DeviceDrivers/FlexCan/FlexCan.h | 2946f78100539e2fdf7a1354b6dfcfca6622c948 | [
"MIT"
] | permissive | MountainFu/KeCommon | 8d1f9c14bd88229a6cf97301f8509777b6a280ff | 94edff47ff9fd58aed3fd4a168261fcfc75f99fd | refs/heads/master | 2023-09-03T07:29:31.264898 | 2021-11-15T04:00:58 | 2021-11-15T04:00:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | h | FlexCan.h | /*
* can_il.h
*
* Created on: 14 gru 2020
* Author: Mati
*/
#ifndef CDD_CAN_IL_H_
#define CDD_CAN_IL_H_
#include "ICan.h"
#include "fsl_flexcan.h"
class FlexCan : public ICan
{
private:
int mailboxCount;
CAN_Type *can_base;
static void WritePayloadRegisters(flexcan_frame_t *frame, const uint8_... |
d1b33a62093bc3b58c2deaf3d5c60334b98c5f07 | 7f811dc30afd118f9060ef1bd0ac9e2ebb72ddc9 | /src/BrainGraph.Compute/Group/TStatCalc.hpp | 4a3f61c30dbad38427d7e501ffcfb65bfeda4ec9 | [] | no_license | digitalnelson/BrainGraph | 3f8f79850103095cc24ea90225104c4230b83407 | b70fabed7f4db184bc2f3e5b63c827af7cacf8b0 | refs/heads/master | 2021-01-16T18:45:49.120297 | 2014-12-06T13:18:57 | 2014-12-06T13:18:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,026 | hpp | TStatCalc.hpp | #pragma once
#include <math.h>
#include "TStat.hpp"
namespace BrainGraph { namespace Compute { namespace Group
{
class TStatCalc
{
public:
TStatCalc()
{
n1 = 0, n2 = 0;
m1 = 0, m2 = 0;
dv1 = 0, dv2 = 0;
}
void IncludeValue(int groupId, double value)
{
if (groupId == 0)
{
n1++;
d... |
f1a1985903988bedadcfb179f44518360e595def | c47b80e996fa5469fae837bdba6f213f2460e95c | /serialportsettingmodel.h | 58701f04b296e3cb56d64f04fec8f611d3813297 | [] | no_license | Felipeasg/LFTracking | c8e2670194205636fee18d1f355992728a51ead0 | d1de1b26a11303923b170b65e3af0584ef869bb7 | refs/heads/master | 2021-01-10T17:19:37.678323 | 2020-07-12T01:02:19 | 2020-07-12T01:02:19 | 36,243,414 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | h | serialportsettingmodel.h | #ifndef SERIALPORTSETTINGMODEL_H
#define SERIALPORTSETTINGMODEL_H
#include <QObject>
#include "serialportsettingsconfigset.h"
class SerialPortSettingModel : public QObject
{
Q_OBJECT
public:
explicit SerialPortSettingModel(QObject *parent = 0);
~SerialPortSettingModel();
static SerialPortSettingMode... |
c5ce64667dbff5899097d27f720cfe6ad57a09d9 | 2ed4bd0fd576db54ba4b8dc1e8096fda3b01d8c6 | /server/XmlParser.cpp | 5ea1739497089d55bb9c75297e3d96c463c4723f | [] | no_license | sergey-helloworld/client-server | cba255a66a4c53a548eec62a0e74f8fd47ac6494 | aa50d593554c2aa83cfdcba9c437eacc889505ec | refs/heads/master | 2020-04-11T23:58:45.280596 | 2018-12-17T20:30:29 | 2018-12-17T20:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,425 | cpp | XmlParser.cpp | #include "stdafx.h"
#include "XmlParser.h"
#include <iostream>
XmlParser::XmlParser(const std::string& buf) : buf_(buf)
{
pos.push_back(Position{0,buf_.size()});
}
XmlParser& XmlParser::parse(const std::string& nodeName)
{
std::vector<Position> p;
for(unsigned i = 0; i < pos.size(); ++i)
{
std::si... |
06237e32cdcd439edeb560f59791f196043dc755 | e1ce90c7469c8cc0e04c142db2aa1b046ac6d758 | /project/regression.h | 3666be4796a88449ac06d89c674d801ab4267f0b | [] | no_license | Daehyun-Bae/fin_term-project | 3eff1ccaaf506c0fe5e47e333a4971d887f05a6e | 322723165f3d1bd0db2e61cfc283d3b44e5e1b45 | refs/heads/master | 2021-01-20T06:46:14.408971 | 2017-07-17T01:57:00 | 2017-07-17T01:57:00 | 89,926,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | h | regression.h | #include <vector>
#define EPOCH 200
#define ALPHA 0.01
#define BETA 0.015
using namespace std;
void regression(vector<vector<double>> source, vector<double> *result) {
int num_data = source[0].size();
double w0, w1, err, p, err_acc;
for (int k = 0; k < num_data; k++) { // k = [0,11] Month
// Initialize w0, w... |
676ae575d0c99c62b6d943372c3beddabcdae2b9 | 4700fe6890025691c2429df598ec25914ec4c7da | /code/tools/gtkradiant/radiant/plugintoolbar.cpp | da3afd5cc4af860821ad76ac35811c1234accbb6 | [] | no_license | QuakeEngines/xreal | 1e7820f8b29de6fb22aa3e058a3c4ef528c1bb55 | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | refs/heads/master | 2020-07-10T04:18:26.146005 | 2016-10-14T23:06:22 | 2016-10-14T23:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,186 | cpp | plugintoolbar.cpp | /*
Copyright (C) 2001-2006, William Joseph.
All Rights Reserved.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... |
7a8dfd354857d8f73a10618519a3fbc97cefe4db | 4bedfa9c7b231f7edc3b46e473de1eebbec324ef | /src/main.cpp | 8b5772518e4710f6d3db356e942ddb1a1883c24a | [] | no_license | jp7hong/Tricycle | 0d537afc8ae5dc31c24efe94755274548919bb0f | 6574d57d0fad281e7800c9dd31a206b1520fc9fd | refs/heads/master | 2021-07-03T18:39:02.557748 | 2017-09-26T12:42:19 | 2017-09-26T12:42:19 | 104,882,742 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | cpp | main.cpp | ///
/// @file main.cpp
/// @author Junpyo Hong (jp7.hong@gmail.com)
/// @date Aug 29, 2016
/// @version 1.0
///
/// @brief Calculates odometry for the tricycle drive
///
#include <iostream> // std::cout
#include <cstdlib> // atoi
#include "TestTricycle.h" // CTestTricycle
#define TEST_CASE_NUM (4)
///
/// @... |
feecb183a11e75b134f8a60d2b371349cafd7da8 | 8e803f907f122f30995360907cb0e52e91c4892e | /addon/lib/algorithm/saferplus.h | f527d5b88afa1abdc288e14fce2d170e278f76d8 | [
"MIT"
] | permissive | tugrul/cryptian | a6a5e2d6c87822eb9964a77538b412b43fa862ad | 1393bc54915dc8ecf6cc71128df4674923f61161 | refs/heads/master | 2023-08-11T03:28:25.005742 | 2023-03-12T15:18:41 | 2023-03-12T15:18:41 | 139,491,147 | 13 | 3 | MIT | 2023-07-20T07:48:20 | 2018-07-02T20:29:23 | TypeScript | UTF-8 | C++ | false | false | 855 | h | saferplus.h |
#include <algorithm-block.h>
namespace cryptian {
namespace algorithm {
class Saferplus : public AlgorithmBlock {
private:
union block {
unsigned int ui[4];
unsigned char uc[16];
char c[16];
};
union key_block {
unsigned int ui[9];
unsigned char uc[36];
ch... |
7e7823075a2c6d072b8887cfbdef1e060753c722 | f0bdee437c3016c22954c8225de7a44990e66fb0 | /11066_Knuth Optimization_O(n^2).cpp | d214c9c0d5579a1a127ff8783f936efd14a88372 | [] | no_license | sujangJin/Baekjoon-judge | 214065b41b45e4f3c38383a319408d42b012227d | 599450f9a3e22e6647ae050de120b0e9ba8e9fc9 | refs/heads/master | 2021-01-13T09:47:41.168041 | 2017-06-21T14:58:51 | 2017-06-21T14:58:51 | 69,648,512 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | 11066_Knuth Optimization_O(n^2).cpp | #include<cstdio>
#include<cstring>
int a[501], s[501], d[501][501];
int go(int i, int j) {
if (i == j) return 0;
if (d[i][j] != -1) return d[i][j];
int &ans = d[i][j];
for (int k = i; k <= j - 1; k++) {
int temp = go(i, k) + go(k + 1, j) + s[j] - s[i - 1];
if (ans == -1 || ans > temp)
ans = temp;
}
return ... |
e8b00fc120e1324fc38d2a07e45e6e8cc0effcbf | c618bbf2719431999b1007461df0865bab60c883 | /dali/util/numpy.h | 63487af097973cd93c26866a8a7d68ac40153ee6 | [
"Apache-2.0"
] | permissive | NVIDIA/DALI | 3d0d061135d19e092647e6522046b2ff23d4ef03 | 92ebbe5c20e460050abd985acb590e6c27199517 | refs/heads/main | 2023-09-04T01:53:59.033608 | 2023-09-01T13:45:03 | 2023-09-01T13:45:03 | 135,768,037 | 4,851 | 648 | Apache-2.0 | 2023-09-12T18:00:22 | 2018-06-01T22:18:01 | C++ | UTF-8 | C++ | false | false | 2,015 | h | numpy.h | // Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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
//
// Unl... |
986439e2de2fb704e2277a026274358b47bb10da | cd6b98467b00f2e192af3c395e7a6f73651f14d1 | /vai/3rd semester/imp/BINARY.cpp | 4b79f5e905cf9049ec935a45d2728c3a92519ed6 | [] | no_license | Anik-Roy/data-structure | de05840df5703e6871fc9402f3d2eeaf603f4d77 | 50b19812e11cfe7a88ce1d984ea20a227e66d4b7 | refs/heads/master | 2021-01-11T16:17:51.421268 | 2017-01-25T21:29:00 | 2017-01-25T21:29:00 | 80,059,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | BINARY.cpp | #include<iostream>
using namespace std;
int main()
{
int x,n,a;
cin>> x,n,a;
int st = 0;
int en = n-1;
int found = 0;
while (en >= st)
{
int mid = (st+en)/2;
if (mid==x)
{
found =1;
break;
}
if(mid<x){
... |
c41a5ab0d26a9adc626e6e4eee91550fd946390f | bb8bf7ad66476a11f405bae97f31ed617d83a3c8 | /stackL/stackL.cpp | f9163cd803fa4ce36d7e7023803c4372e1bf3f15 | [] | no_license | ShilinaAle/shilina_a_m | d1207922d828859af094cef1c02af408728e02e4 | ed3710b590e8ca9b131cb667877470bfd2c72ea6 | refs/heads/master | 2021-09-10T07:39:23.581459 | 2018-03-22T08:05:23 | 2018-03-22T08:05:23 | 104,553,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,575 | cpp | stackL.cpp | #include"stackL.h"
#include <iostream>
#include <stdexcept>
StackL::StackL(const StackL& rhs)
{
Node* pCopyFrom(rhs.pHead_->pNext_);
Node* pCopyTo = new Node(nullptr, rhs.pHead_->data_);
pHead_ = pCopyTo;
while (pCopyFrom != nullptr)
{
pCopyTo -> pNext_= new Node(nullptr, pCopyFrom->data_);
pCopyTo = pCopyT... |
903abb6c5006a84008f7077a6e2a2623f1185e8a | 0e7908cb1bead2fbf3d68c094d6417e47241d5c8 | /MyPacMan/ghost.cpp | 6a03e9b70a2a492ed99abf5cec3e5123d997837c | [] | no_license | egichcool/MyPacMan | c2eae417fb63555e90cf8e81b9b50afa36828194 | d6f3293bbda5e570af1c5633099346302f9e6eb3 | refs/heads/master | 2020-11-26T19:47:46.369779 | 2020-01-09T23:36:02 | 2020-01-09T23:36:02 | 229,191,026 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,977 | cpp | ghost.cpp | #include "ghost.h"
Ghost::Ghost()
{
animestate = 0;
animation_modify_factor = 6;
ghostdirection=left;
is_scared=false;
scared_white=false;
}
QRectF Ghost::boundingRect() const
{
return QRect(ghost_x-15,ghost_y-15,20,20);
}
void Ghost::setskin(int skin)
{
this->skin=skin;
}
void Ghost::... |
3ce8c99f452355fdd8d230149b1e4f0d705d016a | 23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f | /Learning Boost C++ Libraries/ch11/asyncsvr.hpp | 28e4f4463c1e86828f9bff320a413254a8acedaa | [] | no_license | IgorYunusov/Mega-collection-cpp-1 | c7c09e3c76395bcbf95a304db6462a315db921ba | 42d07f16a379a8093b6ddc15675bf777eb10d480 | refs/heads/master | 2020-03-24T10:20:15.783034 | 2018-06-12T13:19:05 | 2018-06-12T13:19:05 | 142,653,486 | 3 | 1 | null | 2018-07-28T06:36:35 | 2018-07-28T06:36:35 | null | UTF-8 | C++ | false | false | 1,231 | hpp | asyncsvr.hpp | #ifndef ASYNCSVR_HPP
#define ASYNCSVR_HPP
#include <boost/asio.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <iostream>
#include "asynconn.hpp"
namespace asio = boost::asio;
namespace sys = boost::system;
typedef boost::shared_ptr<TCPAsyncConnection>
TCPAsyncConnectionPtr;
class TCPAs... |
686bbf8e110f691c904d6febf479ea038233f926 | afe36e7d9c100847d42f2ccb10ea5f261ee141a1 | /Project/persoana.cpp | a95bc11884c1d11ed800f7d29e6347e0bc17ade3 | [] | no_license | laur0700/Tema1_POO | 3147fbce76a322e03257b14d7e4de0613966b145 | f9ddb0e20fd8094337beb2b237ca83745ebd66be | refs/heads/master | 2021-04-24T04:43:52.186036 | 2020-03-25T20:08:01 | 2020-03-25T20:08:01 | 250,079,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cpp | persoana.cpp | //
// Created by Laurentiu-Andrei Postole on 25/03/2020.
//
#include "persoana.h"
#include <string>
void persoana::set_nume(string n) { nume = n; }
void persoana::set_anul_nasterii(int an) { anul_nasterii = an; }
void persoana::set_sex(char s) { sex = s; }
string persoana::get_nume() { return nume; }
int persoana... |
247e0dabcd85fabe50658559888660874f828426 | 668a892c1adc17a638592038cc64f9faa99f7cba | /exercises/c++/02_arrays/sieve.cc | e3b04d6f6e91242f9615e835b39ee2606a3f5702 | [] | no_license | pindri/advanced_programming-2018-19 | 55b873281167c2510e80855314470700bf862f59 | 7e2167167f17b99a64c7cfc7b2d25ed84cde78d8 | refs/heads/master | 2020-03-31T22:01:01.098424 | 2019-02-11T17:27:41 | 2019-02-11T17:27:41 | 152,602,181 | 0 | 0 | null | 2018-10-11T14:09:01 | 2018-10-11T14:09:01 | null | UTF-8 | C++ | false | false | 1,135 | cc | sieve.cc | /**
* @file sieve.cc
* @brief Implements the Sieve of Eratosthenes to compute prime numbers.
*
* Computes and prints the prime numbers less or equal than
* a given integer n though an implementation of the Sieve of Eratosthenes.
* The algorithm is optimized by enumerating the multiples
* of each prime i startin... |
7ffabec4cc3c72f138b639749daa22b5963065dd | e63239e73b8ef114374842f4c433fbaa2bd29cf1 | /cses-problemset/dynammic_Programming/Money_Sums.cpp | 5a215e60f3e3cf05260287d35abf7df1fc4f8bae | [] | no_license | prakhar-ux1/ProblemSolving | 2314edec64d3d2806aab06fc6ecabc87068c6eb6 | 5f745d5d61df314ec8a616a822bb4546bde269c4 | refs/heads/main | 2023-04-17T03:48:11.466671 | 2021-04-20T16:08:07 | 2021-04-20T16:08:07 | 359,712,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | Money_Sums.cpp | // It does not matter how slowly you go as long as you do not stop
#include<bits/stdc++.h>
using namespace std;
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);
signed main()
{
int n;
cin>>n;
int ar[n],sum=0,k=0;
for(int i=0;i<n;i++)
{cin>>ar[i];
sum+=ar[i];
}
bool dp[n+1]... |
f1e90623a52eed5ac0545c09a0e4e5111f0f7368 | 8442f074cfeecb4ca552ff0d6e752f939d6326f0 | /1291A Even But Not Even.cpp | 699a6def247108cab2f71c30adbed0b75f144834 | [] | no_license | abufarhad/Codeforces-Problems-Solution | 197d3f351fc01231bfefd1c4057be80643472502 | b980371e887f62040bee340a8cf4af61a29eac26 | refs/heads/master | 2021-06-15T16:35:07.327687 | 2021-03-23T17:29:49 | 2021-03-23T17:29:49 | 170,741,904 | 43 | 32 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | 1291A Even But Not Even.cpp | #include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
#define ll long long
#define scl(n) cin>>n;
#define scc(c) cin>>c;
#define fr(i,n) for (ll i=0;i<n;i++)
#define fr1(i,n) for(ll i=1;i<=n;i++)
#define pfl(x) printf("%lld\n",x)
#... |
c0961a57640c133e26f79d941ed55f6993bc410d | df76858a526887db43d58bf7b0fe84c687f1be54 | /kernel/KBASE/Logger.cpp | 9cd7cf4d289d75048de7e6375341936e18cfb13a | [] | no_license | raine0524/base_utility | 827a425018363c39702811c0874f02bf29c95697 | d30efcb9bd67101a7e86aebcd3040a5670cd0d2e | refs/heads/master | 2020-05-27T14:32:06.529608 | 2015-02-11T10:00:13 | 2015-02-11T10:00:13 | 30,641,579 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,574 | cpp | Logger.cpp | /* KLog.cpp 日志类
*/
#include "stdafx.h"
#include "KBASE/Logger.h"
#include "KBASE/AutoLock.h"
#include "KBASE/Utils.h"
#include "KBASE/DateTime.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
... |
da6f5577160a2f3b4334f20afbc732454239532b | 955129b4b7bcb4264be57cedc0c8898aeccae1ca | /python/mof/cpp/req_modify_guild_notice.h | 8e146b80f925d784d868c11a8ce80f78ba907e09 | [] | no_license | PenpenLi/Demos | cf270b92c7cbd1e5db204f5915a4365a08d65c44 | ec90ebea62861850c087f32944786657bd4bf3c2 | refs/heads/master | 2022-03-27T07:33:10.945741 | 2019-12-12T08:19:15 | 2019-12-12T08:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | h | req_modify_guild_notice.h | #ifndef MOF_REQ_MODIFY_GUILD_NOTICE_H
#define MOF_REQ_MODIFY_GUILD_NOTICE_H
class req_modify_guild_notice{
public:
void req_modify_guild_notice(void);
void decode(ByteArray &);
void PacketName(void);
void ~req_modify_guild_notice();
void build(ByteArray &);
void encode(ByteArray &);
}
#endif |
be826dd32caa37a589a038a3efefa9c9cc92435f | 54c67306d63bb69a5cf381d12108d3dc98ae0f5d | /common/goos/Interpreter.cpp | 446704be11ce4ab752c6d2f958d5d296091d29bd | [
"ISC"
] | permissive | open-goal/jak-project | adf30a3459c24afda5b180e3abe1583c93458a37 | d96dce27149fbf58586160cfecb634614f055943 | refs/heads/master | 2023-09-01T21:51:16.736237 | 2023-09-01T16:10:59 | 2023-09-01T16:10:59 | 289,585,720 | 1,826 | 131 | ISC | 2023-09-14T13:27:47 | 2020-08-22T23:55:21 | Common Lisp | UTF-8 | C++ | false | false | 63,363 | cpp | Interpreter.cpp | /*!
* @file Interpreter.cpp
* The GOOS Interpreter and implementation of special and "built-in forms"
*/
#include "Interpreter.h"
#include <utility>
#include "ParseHelpers.h"
#include "common/goos/Printer.h"
#include "common/log/log.h"
#include "common/util/FileUtil.h"
#include "common/util/string_util.h"
#inclu... |
c3552ee36b7bd5e202e7eef23859aaff305824f7 | 09ff5ea9a484f5af1ceec74b65108a2aab25942d | /putoff.h | 974ba7dece5859128402d8a884182ce852789980 | [] | no_license | InaNon/Rogue-like | aa9a6c23233da9c8331ee10223a7ee3097d45435 | 174a9711ada841e88456a260ceee19d4c3067b04 | refs/heads/master | 2021-05-09T04:18:12.893935 | 2018-02-08T04:29:00 | 2018-02-08T04:29:00 | 119,261,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | h | putoff.h | #ifndef DEF_PutOff
#define DEF_PutOff
#include "define.h"
#include "selectbox.h"
class PutOff : public SelectBox {
private:
public:
BOXNUM NextBox();
PutOff(char*);
~PutOff();
};
#endif |
449a254df0f23c5e81902f013bf4c4f9bb376c16 | 39bd02bc9d5bdc3fe00433b9080c5466451f792e | /engine/runtime/libs/base/private/GxBase/Storage/Impl.Windows/Windows.AsyncFileStream.hxx | 7a360375575a8fcb81336473e23b55eb191a411c | [] | no_license | selmentdev/graphyte-engine | 7db986ec0b24b458348d4d632c661ce9f81ad671 | ed7bcda3d077d2eaa47c2d738b9d03c57adf60f2 | refs/heads/master | 2022-03-05T11:09:07.598388 | 2021-01-10T00:42:54 | 2021-01-10T00:42:54 | 219,206,110 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,937 | hxx | Windows.AsyncFileStream.hxx | #pragma once
#include <GxBase/Storage/IStream.hxx>
#include <GxBase/System/Impl.Windows/Windows.Helpers.hxx>
#include <GxBase/System/Impl.Windows/Windows.Types.hxx>
namespace Graphyte::Storage
{
class WindowsAsyncFileStream final
: public IStream
{
private:
static constexpr const DWORD Defa... |
c451800738e184a1763aa1608d22107830841c89 | f3e813535f75fb461e2306f1ad18596ac233e758 | /odb_api_bundle-0.17.6-Source/odb_api/src/odb_api/odb2netcdf/odb2netcdf_main.cc | f7d7c33b1f26a2deff50afc8ab7b65353f2308b2 | [
"Apache-2.0"
] | permissive | vyesubabu/metview | 47f9de3eb5f1bf418e513ed306aa2279635b79c7 | 74c2b9bc28673001fd02e00194e92c53a897fb62 | refs/heads/master | 2021-05-17T16:42:41.697859 | 2018-04-09T15:08:19 | 2018-04-09T15:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,772 | cc | odb2netcdf_main.cc | #include <unistd.h>
#include <iostream>
#include <string>
#include <netcdfcpp.h>
#include "odb_api/odbcapi.h"
#include "odb_api/CommandLineParser.h"
#include "odb_api/ODBModule.h"
#include "ecml/core/ExecutionContext.h"
#include "Odb2NetCDF.h"
#include "Odb2NetcdfModule.h"
/// @author Anne Fouilloux
using namesp... |
941f71e1292025fc7ecd62162d3cea8abbf72eae | 948e99a7b8dd581dc3b024481063a21c0cd0a4a4 | /PDxProjects/PTool/PCreatePlaneDlg.h | 27f7d0b4ca571bc704d58c72538061af9ae63b33 | [
"Apache-2.0"
] | permissive | bear1704/DX11_Portfolio | 70be74f821f58d1c538fcb2d4b32b4d27cbf92d4 | 8ab70c793cf7f10eceaea34afb786264828c09a0 | refs/heads/master | 2021-02-16T22:56:19.258566 | 2020-03-05T02:28:02 | 2020-03-05T02:28:02 | 245,050,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | PCreatePlaneDlg.h | #pragma once
#include "PTool.h"
const int kLoopLifetime = 777;
// PCreatePlaneDlg 대화 상자
class PCreatePlaneDlg : public CDialogEx
{
DECLARE_DYNAMIC(PCreatePlaneDlg)
public:
CPToolApp* app;
public:
PCreatePlaneDlg(CWnd* pParent = nullptr); // 표준 생성자입니다.
virtual ~PCreatePlaneDlg();
// 대화 상자 데이터입니다.
#ifdef AFX_... |
d80bf5b8f2fd421e0b9055e933b4800bc00eaee7 | 35cbc0049d0c88cd9282a3c82980500bc2093cf2 | /2018-9-8/P4525.cpp | d6124afd09df5ff44999395a172fbc27c8a26586 | [] | no_license | ciwomuli/NOIP2017exercise | 9f96026a7c88548a0d2783374b0a9582012acf33 | e13a818f14da49b3ec94626e7f664301a9da985e | refs/heads/master | 2023-01-22T14:02:02.850686 | 2020-12-04T14:21:08 | 2020-12-04T14:21:08 | 108,097,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | P4525.cpp | #include <cstdio>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <iostream>
using namespace std;
const double eps = 1e-10;
double a,b,c,d,L,R;
inline double F(double x) {
return (c * x + d) / (a * x + b);
}
inline double simpson(double a,double b) {
double c=a+(b-a)/2;
return (F(a)+4*F(c)+F(b... |
5d29f6f95d45a8c69fc42cf7d8be1c98de9c2133 | e9d02b84373746a2d7e01a1b56e4c2d6e92cbe07 | /Miquel/SDL6_Handout/ModuleIntroScene.cpp | 141a33522f9a83db7f887c35e7aa723911463f40 | [] | no_license | LordUnicorn31/Sub2pewdiepie-Studios | e8add292eb39e26add44aa82f97cb31447b51e03 | 82c0fdef03d0ec23066930683abfc9ee86da021a | refs/heads/master | 2020-04-23T20:26:33.641427 | 2020-01-15T13:27:16 | 2020-01-15T13:27:16 | 171,440,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | cpp | ModuleIntroScene.cpp | #include "Globals.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModulePlayer.h"
#include "ModuleSceneSpace.h"
#include "ModuleIntroScene.h"
//#include "SDL_mixer/include/SDL_mixer.h"
#include "SDL/include/SDL.h"
// Reference at https://www.youtube.com/watch?v=OEhmUuehGOA
... |
5575658c4398468fff97209516d79bf962621790 | 7ee32ddb0cdfdf1993aa4967e1045790690d7089 | /Codeforces/Yandex13Circles.cpp | f692a077f872f5e198fa56b4c171ef0b42aebb4d | [] | no_license | ajimenezh/Programing-Contests | b9b91c31814875fd5544d63d7365b3fc20abd354 | ad47d1f38b780de46997f16fbaa3338c9aca0e1a | refs/heads/master | 2020-12-24T14:56:14.154367 | 2017-10-16T21:05:01 | 2017-10-16T21:05:01 | 11,746,917 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | Yandex13Circles.cpp | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <set>
#include <map>
#include <deque>
#include <queue>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <stdio.h>
using namespace std;
#define fo(i,n) for(int i=0;... |
b4375d4d0e47963e5e63abed090805f30689f314 | 85a4b5e0b5eab4e1ceee1d25da94439a9f2390ac | /example/src/main.cpp | 8d20e9b848e3cbc56ab0c9125a4aa2894bedded8 | [
"MIT"
] | permissive | m1keall1son/ofxRemoteProjectionMapper | 2deff22b08904c3fb1ba0f90494732e3a0053f33 | 1b54ca4a5d9ccc03002e8d5ada86785d5bd979b2 | refs/heads/master | 2020-03-15T06:29:03.244724 | 2018-05-11T16:58:51 | 2018-05-11T16:58:51 | 132,008,685 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | main.cpp | #include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofGLFWWindowSettings winSettings;
winSettings.numSamples = 8;
winSettings.width = 1280;
winSettings.height = 800;
winSettings.windowMode = OF_WINDOW;
//winSettings.mult... |
f3a76404cc03413db9f9933f0542ce64222d1d0e | 25bf268b8171fcb4a7d3b59088a36ae31fc29fe5 | /openuasl-server/src/skeleton/SessionManager.cpp | 0be668ee1f5c200caaad4eda22023e958c610d31 | [] | no_license | openuasl/openuasl-server | 55749f050c3f6a901ac87083a4c5e70b8be64adc | 68956fb9994026295f9aef6236fedf896239d0a7 | refs/heads/master | 2020-12-24T15:14:44.178963 | 2014-08-29T04:55:35 | 2014-08-29T04:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | SessionManager.cpp | #ifdef _WIN32
#define _WIN32_WINNT 0x0501
#endif // _WIN32
#include <openuasl/skeleton/SessionManager.h>
#include <string>
#include <boost/foreach.hpp>
typedef boost::unique_lock<boost::shared_mutex> \
UniqueLock;
typedef boost::shared_lock<boost::shared_mutex> \
SharedLock;
namespace openuasl{
namespace server{
... |
df68e1e1307578a42d550e201c5d9b7738df89d5 | 7c1a85221375ca94b429f3765bc0bd6238d4476c | /src/displayHandler/main.cpp | 7ee8e8cd16a79cf0c94d8467fdedaa3f16cfb5a4 | [] | no_license | anormen/courseCPP_TeamE | 6fef3622d875bb84fdd2f95c32c53ebc108caa98 | 1ae95bc97082e801a0a8b2e5850de2c8cd83cabf | refs/heads/main | 2023-01-21T09:50:33.112271 | 2020-11-27T12:53:51 | 2020-11-27T12:53:51 | 308,600,164 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | main.cpp | #include <thread>
#include "display_handler.hpp"
#include "display_class.hpp"
#include "data_class.hpp"
#include "frames.hpp"
int main()
{
displayHandler disp;
while(disp.run()){
//do someting if needed
};
return 0;
} |
3d590947a584ecc97ca661a23566bd4709b12877 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/1320.cpp | 8e9433bff50c0cbe2fd1123f8388a0ba19eb9f97 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 705 | cpp | 1320.cpp | #include <iostream>
#include <unordered_set>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int n, m;
cin >> n >> m;
int pb = 0, eb = 0, co = 0;
unordered_set<string> seen;
string word;
for (int i = 0; i < n; ++i) {
cin >> word;
seen.insert(w... |
0f04d30dec776b5ef7f4cd6809e9a91842f34421 | 03b830414faedabf35eac66e0d7baf477133300b | /src/20200602/62paly.cpp | 8846be5bfb068f977cc04f1372c28b8e3c63c9b2 | [] | no_license | liupengzhouyi/nowCoder | 12abb70c30b6872a73c993365575d4d888795c7e | 14fa3aa5a54def9f34f4552f01088a6c4dd5f96d | refs/heads/master | 2022-10-04T21:14:02.085585 | 2020-06-05T10:11:43 | 2020-06-05T10:11:43 | 267,886,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | 62paly.cpp | //
// Created by 刘鹏 on 2020/6/1.
//
#include<iostream>
#include<string>
using namespace std;
int paly62()
{
string str1,str2;
while(cin>>str1>>str2)
{
int i;
for(i=0;i<str1.size();i++)
{
if(str2.find(str1[i])==-1)
{
cout<<"false"<<endl;
... |
e15ae434db9d1b078eb58f02b6c8f3a5d10d7db8 | 66bbd0e00b507668de90fe652aa47d8e35a25de8 | /test/iem/event_strategy_test.cpp | 7b99021b633c1483b48f3b5a17734673f0a39035 | [
"MIT"
] | permissive | rheineke/cpp-iem | 0a83c8625af900f23df59503481aaf9a638a4a80 | 65e35751204efc194829c7da629fe25653581be0 | refs/heads/master | 2021-01-11T03:34:14.760743 | 2017-04-30T10:47:51 | 2017-04-30T10:47:51 | 71,016,303 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | event_strategy_test.cpp | // Copyright 2016 Reece Heineke<reece.heineke@gmail.com>
#include "iem/event_strategy.hpp"
#include "gtest/gtest.h"
namespace iem {
TEST(EventStrategyTest, AssertNoThrow) {
const auto os = event_orders(Event::SAME, 1);
EXPECT_EQ(os.size(), 4);
}
} // namespace iem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.