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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f8a5dd70dfd15e457ea7a3f35205dfd6490657a | 71219ed2748798595af6890258d2f48e1fe63056 | /04-Trees-And-Graphs/0408-First-Common-Ancestor/solution.hpp | 1fd0308258819e0632358571c0207f282c827243 | [] | no_license | KoaLaYT/Cracking-The-Code-Interview-Question | ae95a483515eefb18827ecb9eac63e59632a780c | b2fb271ada1b32ffabf985259639671999844137 | refs/heads/master | 2023-04-05T22:45:26.118542 | 2021-04-07T06:25:58 | 2021-04-07T06:25:58 | 334,376,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | hpp | solution.hpp | #ifndef FIRST_COMMON_ANCESTOR_20210330
#define FIRST_COMMON_ANCESTOR_20210330
struct Node {
int key;
Node* p;
Node* left;
Node* right;
};
/**
* Design an algorithm and write code to find the first common ancestor
* of two nodes in a binary tree. Avoid storing additional nodes in a
* data structure... |
986a57ab7a1465deaaa39e360be35ed5e157dca9 | 8b7772d0cdacfc86c58a0b391e292927ad2dc685 | /Divide & Conquer/6.Given a sorted array of distinct integers find the index such that a[i] = i .cpp | 67df4718363fbc822356d9fb9d927d5dd10aaf6e | [
"Apache-2.0"
] | permissive | shauryauppal/Algo-DS-StudyMaterial | 62e0f37a899496a44a9a672c6315cf42554b6595 | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | refs/heads/master | 2021-09-21T22:40:41.399365 | 2018-09-02T04:21:36 | 2018-09-02T04:21:36 | 147,053,567 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | cpp | 6.Given a sorted array of distinct integers find the index such that a[i] = i .cpp | //this is giving error
/*#include <bits/stdc++.h>
using namespace std;
int search_ele(int arr[],int n)
{
int l=0,h=n-1;
while (l <= h)
{
int mid = (l + h)/2;
if (arr[mid] == mid)
return mid;
if (arr[mid] < mid)
l = mid + 1;
else
... |
6f663ddd38bedae449fb77d9210b434cb5fe82f7 | d09782b5cd1770c76a3bf86351447cdea47026e6 | /coin change with dp.cpp | c44666889a1894b9d8df75ddfe31567189d80604 | [] | no_license | PrashantThakurNitP/cpp-code | bc6d377916d9901be63492469629ea8f81c17cea | 8d7e1cc177eff13f7195f2f33f070be7657e0a51 | refs/heads/master | 2020-09-30T16:23:58.035846 | 2019-12-11T09:21:49 | 2019-12-11T09:21:49 | 227,324,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,483 | cpp | coin change with dp.cpp | #include <iostream>
#include<vector>
using namespace std;
int get_change(int m) {
//write your code here
return m / 4;
}
int get_change_d(int m) {
//write your code here
int coin[3]={1,3,4};
vector<int>money;//no of coin
for(int i=0;i<=m;i++)
money.push_back(0);
for(int j=1;j<=m;j++)//j is money to chan... |
de0722efa491410b58ade400a3f75558c9f999ed | 08c5fa6bf070ebb1633583f8ac528f199bc6b609 | /src/caffe/test/test_python_layer.cpp | b1b4bd3b3f0f84a9a81c54f9eda9a21fa114ebe2 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | eagleman110/caffe_pp2 | b15f31e85d58640b960d92a8beb8ea051f779753 | 26a23920f001514157430d18c6bada5093592b25 | refs/heads/master | 2021-05-11T02:44:02.837609 | 2018-01-21T20:45:05 | 2018-01-21T20:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,859 | cpp | test_python_layer.cpp | #include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
//#include "caffe/vision_layers.hpp"
#include "caffe/layers/python_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
na... |
72fa8ea9b8f60457ab265bd62de4cc1926b83400 | 932c0e7ce8201248383c9aac70cfd01bc8e4c4a7 | /3-两个栈实现一个队列.cpp | 76a2474936dc8571e553045ac655c400fcdb5488 | [] | no_license | ckl666/leetcode | da03ccb0a48bcdbfd604bf9475a2b903107dd78b | 7060076403877cfedda9675a08bacd97ec442013 | refs/heads/master | 2020-06-13T19:51:23.711321 | 2019-07-02T02:25:46 | 2019-07-02T02:25:46 | 194,771,044 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | 3-两个栈实现一个队列.cpp | #include <iostream>
#include <stack>
using namespace std;
bool Pop(stack<int> &st1,stack<int> &st2,int &val)
{
if(st2.empty())
{
if(st1.empty())
{
return false;
}
else
{
int tmp = 0;
while(!st1.empty())
{
t... |
8a470fa38c4623035fe02bf789a83f8ac081915a | da51040b8702d7908ed31608a91daa37d6a9ed37 | /CNesEventFrameStart.cpp | be4b081dc5da781458d74657f4a58c47ea0e0975 | [] | no_license | TheCatNose/PurrFX | 0f140a88b65f9c9db31b21d6e62c25794efa309c | a040e0490dcbfe03bf89ac58ec1bbebb015b0ec3 | refs/heads/master | 2022-12-23T06:39:07.244548 | 2020-09-21T16:35:07 | 2020-09-21T16:35:07 | 286,448,239 | 1 | 1 | null | 2020-08-12T12:51:13 | 2020-08-10T10:46:12 | C++ | UTF-8 | C++ | false | false | 324 | cpp | CNesEventFrameStart.cpp | #include "CNesEventFrameStart.h"
namespace PurrFX
{
CNesEventFrameStart::CNesEventFrameStart(int i_nFrame):
m_nFrame(i_nFrame)
{
assert(m_nFrame >= 0);
}
int CNesEventFrameStart::newFrame() const
{
return m_nFrame;
}
ENesEventType CNesEventFrameStart::type() const
{
return ENesEventType::FrameStart;
... |
4dd0f8c9cb46bf5b35c35caf3c50f4ed335f24ee | 435633d9a1bd03ad1c3ce537c654494f1820d084 | /core/EnvironmentHandler.cpp | 175fcb3fc5e779acabd6a0582bfb397b72a98fdf | [] | no_license | gsm1011/cppweka | 518e6086cf352b24b4b74ec12960b20c5fc2b5a6 | ad26add3ef96ec266e4b0982de1987a15c16f7f2 | refs/heads/master | 2020-05-29T19:05:25.823897 | 2014-06-26T00:42:40 | 2014-06-26T00:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | EnvironmentHandler.cpp | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that... |
aef62ce7bc6e299fce986f0a73bb4a67d3ad127a | c7c73566784a7896100e993606e1bd8fdd0ea94e | /panda/src/androiddisplay/p3androiddisplay_composite1.cxx | 091a172a6e32c6f996cf7b01409ef0dfbda49f50 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | panda3d/panda3d | c3f94df2206ff7cfe4a3b370777a56fb11a07926 | 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 | refs/heads/master | 2023-08-21T13:23:16.904756 | 2021-04-11T22:55:33 | 2023-08-06T06:09:32 | 13,212,165 | 4,417 | 1,072 | NOASSERTION | 2023-09-09T19:26:14 | 2013-09-30T10:20:25 | C++ | UTF-8 | C++ | false | false | 231 | cxx | p3androiddisplay_composite1.cxx | #include "config_androiddisplay.cxx"
//#include "androidGraphicsBuffer.cxx"
#include "androidGraphicsPipe.cxx"
//#include "androidGraphicsPixmap.cxx"
#include "androidGraphicsStateGuardian.cxx"
#include "androidGraphicsWindow.cxx"
|
98004ec2e77b0a98befa8ee2a4bf6198ba5dc43a | 64d7cc6e293d9f06f4f31f444a64d74420ef7b65 | /inet/src/networklayer/ipv4/IPv4Datagram.h | 53cc4d5f54c1383022cda197c4d6f9ab4ffd5599 | [] | no_license | floxyz/veins-lte | 73ab1a1034c4f958177f72849ebd5b5ef6e5e4db | 23c9aa10aa5e31c6c61a0d376b380566e594b38d | refs/heads/master | 2021-01-18T02:19:59.365549 | 2020-11-16T06:05:49 | 2020-11-16T06:05:49 | 27,383,107 | 19 | 12 | null | 2016-10-26T06:05:52 | 2014-12-01T14:31:19 | C++ | UTF-8 | C++ | false | false | 2,195 | h | IPv4Datagram.h | //
// Copyright (C) 2011 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
561580b35cc05c52988cce207c6afdfc1397efba | 157c6d025a705fb5c778f05ec3fcc9d00b71b947 | /timus2018/sol.cpp | 469bb74e1e412cd04f8f2b736811075aa096db80 | [] | no_license | laraconda/cp | 2c3a43bb9002db827cd473ce0fdd9125c806597e | 4b0f237317a319f1c7c20fb87d3653478cf94f92 | refs/heads/master | 2023-04-12T08:56:06.999485 | 2023-04-06T19:52:57 | 2023-04-06T19:52:57 | 273,814,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | cpp | sol.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = (1e4 * 5) + 3;
const int MOD = 1e9 + 7;
int c[MAXN], aa[MAXN], bb[MAXN];
int n, a, b;
int A(int i);
int B(int i);
long long C(int i) {
if (i <= 0)
return 1;
if (c[i] == -1)
c[i] = ((long long)A(i) + B(i)) % MOD;
return c[i];
... |
61355f63df54ca042461ea9ca99f9a3d76e0cabf | 61a3b61cbbfe209d5636dca99630da8ba1f749b4 | /app/src/main/cpp/header/Video.h | 1c890506c577e9c83320bc0e8cfa76dd05656ca5 | [] | no_license | NicoleCN/ShowMeCode | 3f908c3a5e78a73effffcb0bd1439814ed53e798 | 3043283846b0cb1a663fc6c41a5571bb23550720 | refs/heads/master | 2020-07-17T06:53:30.712577 | 2019-09-05T01:31:31 | 2019-09-05T01:31:31 | 205,962,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147 | h | Video.h | //
// Created by Nicole on 2019-08-29.
//
#ifndef SHOWMECODE_VIDEO_H
#define SHOWMECODE_VIDEO_H
class Video {
};
#endif //SHOWMECODE_VIDEO_H
|
61d38455604d0bb8d231ff957e67b2be4cbc49dc | 2c802d6c3615fef45a6a56857a647742caa8a763 | /thrift/lib/cpp2/async/HTTPClientChannel.h | cc74c2171f380fe0581ef6910b761d076fba0a1f | [
"Apache-2.0"
] | permissive | alexandruionita-gyg/fbthrift | 6b4a57b6bcee5b01e2e2e34cb3950953dc39fac4 | 633928feccc80d8b963b6ce2d313b35d89512d67 | refs/heads/master | 2020-06-16T22:39:22.708442 | 2015-12-04T09:43:32 | 2015-12-04T09:43:32 | 75,061,452 | 0 | 0 | null | 2016-11-29T08:47:59 | 2016-11-29T08:47:59 | null | UTF-8 | C++ | false | false | 9,015 | h | HTTPClientChannel.h | /*
* Copyright 2015 Facebook, 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... |
761be603c3b7ae59298ae6fb7b198f0e5082e9b4 | 02b4e557cc3514b94be16928035ed2725cc798b9 | /drtm-dst/src/core/common.h | ee5d54e624a0d1a0e0652c2b45317539aa9d3e49 | [
"Apache-2.0"
] | permissive | yanghaomai/dst | b0286d04bd76b7c30d2d065a5f84033c5ca69000 | 897b929a692642cbf295c105d9d6e64090abb673 | refs/heads/main | 2023-04-06T19:59:11.487927 | 2021-04-12T13:19:10 | 2021-04-12T13:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | h | common.h | #ifndef NOCC_COMMON_H
#define NOCC_COMMON_H
#define NOCC_DECLARE_typed_var(type, name) \
namespace nocc { \
extern type FLAGS_##name; \
} // namespace nocc
namespace nocc {
#define DISABLE_COPY_AND_ASSIGN(classname) \
private: ... |
829f41984b5f024b97d1818f16f02b8fe7f44f25 | ab81ae0e5c03d5518d535f4aa2e3437081e351af | /OCCT.Foundation.NetHost/ModelingData/TKGeomBase/gce/xgce_MakeLin2d.h | 9c90cee7011db1d222b87936508e1e366970624a | [] | no_license | sclshu3714/MODELWORX.CORE | 4f9d408e88e68ab9afd8644027392dc52469b804 | 966940b110f36509e58921d39e8c16b069e167fa | refs/heads/master | 2023-03-05T23:15:43.308268 | 2021-02-11T12:05:41 | 2021-02-11T12:05:41 | 299,492,644 | 1 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 4,345 | h | xgce_MakeLin2d.h | // Created on: 1992-08-26
// Created by: Remi GILET
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Les... |
0407cf9dc76397bb85dbb3ffb38e97b9df5aad80 | a614262ec7646c0529955b45e7a3b6ce2bb2ee99 | /pHmetro.ino | aaad29aebed44a67ac6d6663c1098d2e94018ebc | [] | no_license | AlmirFill/inex_iot | 08ddc2c0f60cc02c83bf3d8f2829148d40664205 | 4c05dadd229210d333d118bdee08f574f897d247 | refs/heads/master | 2023-02-24T17:45:42.708145 | 2021-01-27T02:08:35 | 2021-01-27T02:08:35 | 250,412,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,952 | ino | pHmetro.ino | // #include <SoftwareSerial.h>
// #include <LiquidCrystal_I2C.h>
#include <EEPROM.h>
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include "RTClib.h"
RTC_DS1307 rtc;
//Pino CS do modulo cartao SD
const int chipSelect = 10;
File dataFile;
DateTime now = rtc.now();
// // //LiquidCrystal lcd(8, 9, 4, ... |
41ccb7674939da333b945678fb1ac65bb6ae72e6 | 98f9f977a39843e5f7719062f43011ebfd169e42 | /Libs/Visualization/VTK/Widgets/ctkVTKRenderViewEventTranslator.h | 312934bb2203bb2c5c996c115ec3ba1e061bd8b2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | txdy077345/CTK | 71cab2d77193d09340afe7a50e5dddc3ea66a06d | 7cd253376139ea73f0450e1bad75bab41aa1b507 | refs/heads/master | 2023-05-27T19:20:21.825916 | 2023-04-29T16:35:03 | 2023-04-29T16:35:03 | 276,658,777 | 1 | 0 | Apache-2.0 | 2020-07-02T13:50:30 | 2020-07-02T13:50:29 | null | UTF-8 | C++ | false | false | 1,635 | h | ctkVTKRenderViewEventTranslator.h | /*=========================================================================
Library: CTK
Copyright (c) Kitware 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.ap... |
3de688aefbe04f628210a9212e8298162d7b7320 | 0fda8a4559773c8aebc235e82c6dc625eb6e3cd9 | /BrickBreaker/Level.h | ab855a221bc2216a64d8553f5c92538719999746 | [] | no_license | lkomanetz/BrickBreaker | 6c24408ce0485249d0dc328a681e071d7c74d75d | 77680049d704a91733d204fc535a6a30cd92adbf | refs/heads/master | 2021-01-11T08:02:50.052370 | 2016-11-03T21:11:54 | 2016-11-03T21:11:54 | 70,110,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | h | Level.h | #pragma once
#ifndef _LEVEL_H
#define _LEVEL_H
#include <string>
#include "Brick.h"
#include "Engine/Graphics.h"
class Level {
private:
std::string _name;
int _id;
std::string _layoutString;
Graphics* p_graphics;
void construct();
public:
Level();
Level(Graphics* pGraphics);
Level(const Level& obj);
virtua... |
84a091e5e9538646397fba2adac9252e5e1d20ab | 91babf20eaef63cf1813abbeb851572383d29d56 | /nera/include/nera/memory.h | a042897b7c3c2f9dd99f35b91e3be4fb1bc48f87 | [] | no_license | r-neal-kelly/nera | 58efe93568390ca9d9ff224af978b702d9369e62 | 235bc8128caf867cb8357c309fec8a700ab9bcd2 | refs/heads/master | 2022-12-23T03:52:41.614152 | 2020-09-15T03:15:24 | 2020-09-15T03:15:24 | 275,288,248 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,637 | h | memory.h | /*
Copyright © 2020 r-neal-kelly, aka doticu
*/
#pragma once
#include "nera/allocator.h"
#include "nera/pointer.h"
namespace nera {
template <typename data_t>
class manual_memory_t {
public:
pointer_t<data_t> pointer;
manual_memory_t();
manual_memory_t(const allocator_t& all... |
60413b9ad8c2af6bef9b989e473d9c9ff5c99920 | 01d6feb157226d01ffd19d52fe3927cc80bbf718 | /packages/plugin_library/URRealTimeDriver/RealTimeAdapter/CobotUrRealTimeComm.h | 9d125253be402ba8990ab069266780b455a13f54 | [] | no_license | jackros1022/UrRobotControllerInTCP | 3dda2d17d4bbc120bcd5b29bdc753f3df084790c | 3dd388c58b21d909b6c69c4d6160e631ab306a7a | refs/heads/master | 2020-03-25T16:52:10.601581 | 2018-02-13T12:30:26 | 2018-02-13T12:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | h | CobotUrRealTimeComm.h | //
// Created by 潘绪洋 on 17-3-28.
// Copyright (c) 2017 Wuhan Collaborative Robot Technology Co.,Ltd. All rights reserved.
//
#ifndef PROJECT_COBOTURREALTIMECOMM_H
#define PROJECT_COBOTURREALTIMECOMM_H
#include <QObject>
#include <QString>
#include <QTcpSocket>
#include <QTcpServer>
#include <memory>
#include <thread>... |
b71e499a59a327aaed17012bf1e72f30cc9ebbb5 | e751287beae87a8a7c494240583c4c785418534b | /prime/1152/main.cpp | 4e86ee3c6d30b92fe1e69469ebe8d6ae2c293b23 | [] | no_license | zhongyj1999/pat | 2750ec4924696e86d716dd66b57b196aa7c36b1b | a4cafd45d2661ff8e5c914c223ce86b6ae68725e | refs/heads/master | 2021-02-03T21:12:03.702921 | 2020-03-14T12:39:19 | 2020-03-14T12:39:19 | 243,539,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
bool isprim(int a){
if(a == 1 || a == 0) return false;
for(int i = 2; i * i <= a; i++)
if(a % i == 0) return false;
return true;
}
int main()
{
int n, m;
scanf("%d %d", &n, &m);
string s;
cin >> s;
for(int i = 0; i <= ... |
eec281c407729ecb046acc236f20878246d6bcde | 176986455dfeeca37515ff3c7041fc152af8bb1b | /modules/commands/os_kick.cpp | 933757ce6fa0a1ce327a9d4efaf151e8ef8f989f | [] | no_license | anope/anope | bda831995dccd78acc2fc1d3071dd69df53c6af5 | 0a3ddef3151ef4258e529f5850be08810fa146d3 | refs/heads/2.0 | 2023-09-03T07:25:54.572371 | 2023-08-31T06:17:56 | 2023-08-31T06:19:00 | 909,217 | 284 | 176 | null | 2023-08-31T06:19:54 | 2010-09-14T06:25:30 | C++ | UTF-8 | C++ | false | false | 2,132 | cpp | os_kick.cpp | /* OperServ core functions
*
* (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
#include "module.h"
class CommandOSKick : public Command
... |
eeb3528dfeddab9f101b0feb90e4cd6c38897ccb | 463ccbc7b19822e3695e02d27e255ce64eacb627 | /ie3D-Demo/Sources/CDemoGameScene.cpp | 435588c4f01d05988b29218206092527213eb4d3 | [] | no_license | codeoneclick/ie3D | 8abd318361ff80fbbfe5273943183fe158bf40af | 46f109a520c6d813c3994b5cf2b12e2de5625371 | refs/heads/master | 2021-01-24T06:37:41.615380 | 2014-05-23T14:02:12 | 2014-05-23T14:02:12 | 9,913,979 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,729 | cpp | CDemoGameScene.cpp | //
// CDemoGameScene.cpp
// indie2dEngine
//
// Created by Sergey Sergeev on 7/22/13.
// Copyright (c) 2013 Sergey Sergeev. All rights reserved.
//
#include "CDemoGameScene.h"
#include "IGameTransition.h"
#include "IGameObject.h"
#include "CCommonOS.h"
#include "CLight.h"
#include "CModel.h"
#include "COcean.h"
#i... |
bcb693bebfddfa08e80d05a8161b4b7653863456 | 69cfdcc5dc78ffe2cedb6f952261eab1044f8787 | /tokens/InitializationToken.cpp | b6a7ef576c53809aafdedaecf666702bea006902 | [] | no_license | asm2015coursework/the_best_compilator_ever | 53cfdaa92cf3ba6e4f69ccbd33bcea1788ee0671 | eed0c3f277885e5189f5f6c04ae5c59892705d1c | refs/heads/master | 2020-06-04T04:23:04.422740 | 2015-06-29T08:00:50 | 2015-06-29T08:00:50 | 35,106,026 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | InitializationToken.cpp | #include "InitializationToken.h"
InitializationToken::InitializationToken(string type, string name, Token *expr, Token* size) {
this->_name = name;
this->_type = type;
this->_expr = expr;
this->_size = size;
}
string InitializationToken::toString() {
string ans = _type + " " + _name;
if (_size... |
09f7a137c159b62beb5614ff3ee69e7455124d69 | 3d4f601fee634723f25f739f755bd0aca2b3a489 | /cf3/ui/graphics/GraphicalInt.hpp | 9676bc268d88a9f7bbb349b80bcaefedd9246957 | [] | no_license | barche/coolfluid3 | 69d8701a840377e83bb46b158300da6d4d8f3bc5 | 688173daa1a7cf32929b43fc1a0d9c0655e20660 | refs/heads/master | 2021-07-16T18:09:42.818240 | 2020-08-06T11:55:11 | 2020-08-06T11:55:11 | 2,173,454 | 2 | 7 | null | 2020-09-20T20:57:29 | 2011-08-08T13:37:11 | C++ | UTF-8 | C++ | false | false | 1,311 | hpp | GraphicalInt.hpp | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#ifndef cf3_ui_Graphics_GraphicalInt_hpp
#define cf3_ui_Graphics_Graph... |
a8b997b09ae0cf157c7ce7d3b8846a50bd6aa595 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_1/C++/taobingxue/ALarge.cpp | 6071830cbcf95ffcfdabefa02921bcab7af281cd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | cpp | ALarge.cpp | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
using namespace std;
int f[1000005];
int T;
long long N;
long long get(long long n) {
if (n <= 1000000) return f[n];
int len = 0;
int a[20];
long long num = n;
for (; n > 0; len +... |
38fb9f02d58227c3a1d91cb923a4f6983d48935a | 934372e2034e93b8220eab745486ab079c225dd6 | /part8/MyDirect.cpp | 3f7ae864b3d7492f6c07c60132f1e7a38c27e6fb | [] | no_license | luckyan315/imsvr | f3aa96cb5575d40b500214eaebca33795d87c4d8 | 24babadb2cc2ec7a3c061758453f13068cc25168 | refs/heads/master | 2021-01-18T12:16:54.468662 | 2013-05-19T04:35:12 | 2013-05-19T04:35:12 | 9,259,236 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,619 | cpp | MyDirect.cpp | #include "StdAfx.h"
#include "MyDirect.h"
#include <mmsystem.h>
#include <stdio.h>
#include <cassert>
#include "AcquireExecutionTime.h"
CMyDirect::CMyDirect(HWND hWnd, UINT adapterID)
:m_adapterID(adapterID)
,m_hWnd(hWnd)
,m_pD3D(NULL)
,m_pd3dDevice(NULL)
{
ZeroMemory( &m_d3dpp, sizeof( m_d3dpp ... |
8482b070288ad8b3ddf618c8dc83ad9ba5ea7c07 | 05c9e8f9b2d753f963bf34fe22a52977ce564f95 | /maze-arizona/controls.h | 3cee07d4981a15b91ce7cfa322b99ddecffe00bd | [] | no_license | INMihaylov19/Maze-Game | 410d4dca94bb7f9014ae6ed9b3164dc265a8b720 | 1573b144b75e73c928e8321b200d9bee5d41370e | refs/heads/main | 2023-08-26T08:28:26.636638 | 2021-11-08T19:09:58 | 2021-11-08T19:09:58 | 417,808,387 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 227 | h | controls.h | #pragma once
#include <iostream>
#include <conio.h>
#include <windows.h>
int SetColor[];
int SetColor2[];
extern const char Player;
void color(int color);
void gotoxy(int x, int y);
void controls(char **arr, int size);
|
ed9cb14d523f653227e88fc7f31ebc5007e10f29 | 23d6af0bed1677e59916fbba4ecab8256db79fbf | /Drawing/Shape.h | 710b600948540598dada26e064d29d016ed5e90a | [] | no_license | OC-MCS/program6-02-drawing-JamesR0e | c6ec6b122dab3215876f237ea2cccf3943df16ae | 361aa22065e9bae26f837c5daee7895e2dddf98b | refs/heads/master | 2020-05-02T10:07:41.673638 | 2019-04-11T01:45:29 | 2019-04-11T01:45:29 | 177,888,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | h | Shape.h | #pragma once
#include <SFML/Graphics.hpp>
#include <string>
#include "SettingsMgr.h"
using namespace std;
using namespace sf;
//struct used for writing data to and from binary file
struct shapedata
{
ShapeEnum shape;
int color;
Vector2f position;
};
//abstract base class for shapes
class DrawingShape
{
public:
... |
fe216dc2e3be96972528cc298046f2a33356abaf | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++abi/trunk/test/catch_array_02.pass.cpp | f92749adba18bad8c16718852afaf402579b00a6 | [
"NCSA",
"MIT",
"Apache-2.0",
"LLVM-exception",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 780 | cpp | catch_array_02.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
63cc7f56f1c1a40c4d7416eee176a6c6f17bdfe5 | 7f0a0660cc25e4a61172170b8e57f15f19417b48 | /2021-22-2/monday10-12/09gy/linked_list.cpp | 5dd29b43f34a7aa18c5d6e3ac207beb4458a30b3 | [] | no_license | Szelethus/cpp_courses | f1e38b477b6d81cb4563b6829ecdf0c8bd14c346 | 6673a62f5bda4d4d81dfb9478b0098fde90e826c | refs/heads/master | 2023-08-18T03:59:28.960836 | 2023-05-23T07:43:00 | 2023-05-23T07:43:00 | 171,329,370 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | cpp | linked_list.cpp | #include <iostream>
struct Node {
int data;
Node *next;
};
class LinkedList {
Node *head;
public:
LinkedList() : head(nullptr) {}
LinkedList(const LinkedList &other) : head(nullptr) {
if (other.head == nullptr)
return;
Node *ptr = other.head;
while (ptr != nullptr) {
this->push_bac... |
0dba8bd1ea4dd866f71b40c792775edee5c012ff | b04e71b13e659929815c64282e1a56928e2b355b | /Brown/first_week/first_week/main.cpp | c76785c98468f243dbd92e9e478a344c584ccef6 | [] | no_license | momsspaghettti/coursera-c-plus-plus-modern-development | 98f0ef39dcec90cc96b3178d1fec492fe87be1c7 | f38464dc422e2e6891972dff5a0e576d7a41bc9f | refs/heads/master | 2020-05-26T03:00:58.262528 | 2019-11-06T18:51:04 | 2019-11-06T18:51:04 | 188,082,349 | 86 | 70 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | main.cpp | #include "priority_collection.h"
#include "hash_set.h"
#include "set_iterator_next.h"
#include "hash_point.h"
#include "hash_person.h"
#include "secondary_index.h"
int main()
{
TestPriorityCollection();
TestHashSet();
TestSetIteratorNext();
TestHashPoint();
TestHashPerson();
TestSecondaryIndex();
return 0;... |
ff1ea0ea883acd0c5610d690909bcb61a8f759f9 | 13011306e96a0eea103421ae739d08c475699b09 | /libSLR/Texture/voronoi_textures.cpp | c6c956491ce0c4f0231226bc37f9a5c42db8aa2d | [] | no_license | SmallGame/SLR | 8b047104c259f5bb87c44c24c4c3600a737e6ce0 | 841cbdde03ffb43c8c118fe78f81261dd8f4ddea | refs/heads/master | 2021-01-21T14:13:28.834366 | 2017-05-30T18:17:22 | 2017-05-30T18:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,044 | cpp | voronoi_textures.cpp | //
// voronoi_textures.cpp
//
// Created by 渡部 心 on 2016/06/17.
// Copyright (c) 2016年 渡部 心. All rights reserved.
//
#include "voronoi_textures.h"
#include "../Core/distributions.h"
#include "../Core/geometry.h"
#include "../RNG/LinearCongruentialRNG.h"
namespace SLR {
static const uint32_t FNV_OFFSET_BASIS_3... |
a48efc805dd48b0dd61c50a98354c2a090af7262 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/eulerVortex.twitch/eulerVortex.cyclic.twitch/1.5/T | 4d3115e22bbf85238b5c444955237c157b644b90 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,780 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
02f95a1f01fc2a782d53cfd1a2effe56aa6d6732 | f18d84f7754232ddc8665ccc041f55085341e2ae | /ElementLib/P4.hpp | c9bc74c950af80bc3637ee1e502f775d6e1987c1 | [] | no_license | garanga/OrpheusInverse | fe6465581913a8748a827ec2395cf2181d2628ab | 8054ece2abd0cb403ff4492b00a24c96be27aaea | refs/heads/master | 2020-03-07T14:42:59.911197 | 2018-05-05T07:20:48 | 2018-05-05T07:20:48 | 127,533,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | hpp | P4.hpp | /*
* P4.hpp
*
* Created on: Jan 19, 2017
* Author: pavel
*/
#ifndef ELEMENTLIB_P4_HPP_
#define ELEMENTLIB_P4_HPP_
#include "ElementType.hpp"
#include <Eigen/Dense>
using namespace Eigen;
class Material;
class P4 : public ElementType
{
public:
P4(Material*, bool=false);
~P4();
// A method re... |
af1347a19aebba0682e1e0b2d4b0d622be5dac32 | 5d96829594b3510ffd2eb164e5e00a372e60d895 | /Year 1/Sem 2/SDA/Lab 1/SetIterator.cpp | 14e462d37e98279ea2c3056ba001d717902445ea | [] | no_license | iuliabenyi/UBB-Labs | 8db156431b3e3776e4c4cb85d03b6d25c0148b0e | 0fb4304b908b3e83c11149f67335bddf13d4a57e | refs/heads/master | 2023-03-09T14:33:11.807934 | 2021-02-03T11:50:09 | 2021-02-03T11:50:09 | 245,664,436 | 1 | 0 | null | 2023-03-03T08:12:51 | 2020-03-07T16:11:57 | JavaScript | UTF-8 | C++ | false | false | 562 | cpp | SetIterator.cpp | #include "SetIterator.h"
SetIterator::SetIterator(const Set & set) : set{ set }
{
currentIndex = 0;
}
void SetIterator::first()
{
currentIndex = 0;
}
void SetIterator::next()
{
if (!valid())
throw exception();
++currentIndex;
}
bool SetIterator::valid() const
{
return currentIndex >= 0 && currentIndex < set... |
0014a15443835bc35f5acc3a93d5bec32615f58b | 047600ca8efa01dd308f4549793db97e6ddcec20 | /Src/HLSDK/gameui/UI_GameEnd.cpp | ce7f6d04e3918b0791c6de322c47989dc42676f4 | [] | no_license | crskycode/Mind-Team | cbb9e98322701a5d437fc9823dd4c296a132330f | ceab21c20b0b51a2652c02c04eb7ae353b82ffd0 | refs/heads/main | 2023-03-16T10:34:31.812155 | 2021-03-02T02:23:40 | 2021-03-02T02:23:40 | 343,616,799 | 6 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,149 | cpp | UI_GameEnd.cpp | #include "UI_GameEnd.h"
#include "CF_Base.h"
#include "EngineInterface.h"
#include "UserSystem.h"
#include <keyvalues.h>
UIGameEnd::UIGameEnd(vgui::Panel *parent) : vgui::CFDialog(parent, "GameEnd")
{
SetProportional(true);
LoadControlSettings("UI/Scripts/GameEnd.txt");
m_cButtonGameEnd = FIND_CONTROL_BUTTON("But... |
d74203b086717959ff8ae2e303215e38e4697fb3 | 61b553131747350941d801f02c9c6e887b35df62 | /CPP/virtual_func.cpp | 2e09755a2b70d35168e219e49e2e57e99de6aa42 | [] | no_license | edipesh19/cpp_repo | a9498edb8f1aa5ef2166206a1344fe18de1f4cc0 | d619751908dbab91114cadbd6e5676b1167fdf22 | refs/heads/master | 2020-12-24T17:08:13.298755 | 2013-08-05T10:28:29 | 2013-08-05T10:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,234 | cpp | virtual_func.cpp | #include <iostream>
using namespace std;
class base
{
protected:
int i;
public:
base(int x = 0):i(x){cout<<"Base class constructor"<<endl;}
virtual void func();
};
void base::func()
{
cout<<"Base Func i = "<<i<<endl;
}
//When virtual function is not overriden in derive class the vtable of derive class will hold t... |
bc066582a6f2823ce3a2f247ada93a47f408e15f | b5d80b64b6f4b4124de171761d854a9d14f851bb | /hdu-5068.cpp | f146ef3e76d9429b3938f68a5574d0fd27427550 | [] | no_license | forty-twoo/acm-code-record | 73af81481134b8d47424def25a78d7bb43d490ea | 7b9a6d602f83a7fb373586b567eca35c8a8a0d31 | refs/heads/master | 2020-07-05T20:09:29.138584 | 2019-10-11T13:58:18 | 2019-10-11T13:58:18 | 202,759,932 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,395 | cpp | hdu-5068.cpp | /*
* @Don't panic: Allons-y!
* @Author: forty-twoo
* @LastEditTime: 2019-09-14 00:24:19
* @Description: 线段树维护矩阵乘法+dp
* @Source: http://acm.hdu.edu.cn/showproblem.php?pid=5068
*/
#include<bits/stdc++.h>
#define mst(a,x) memset(a,x,sizeof(a))
#define debug freopen("data.txt","r",stdin)
#define lowbit(x) x&-x
#defin... |
62fd8852050181615793064493903c0d251840d1 | 8924ba7719164c962b49c36c05d81d393915d456 | /volumes/SphereUtilities.h | a87f818ff84fc494805763f0beed4f74b21b4c03 | [] | no_license | carlosal1015/VecGeom | 23525ff91567d58cfde1aa7c66f9cc508a3b5bbf | 12512cd7f67b89f7619a64474080ad24077aba10 | refs/heads/master | 2020-09-13T17:16:12.770167 | 2015-06-02T07:26:54 | 2015-06-02T07:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | h | SphereUtilities.h | #ifndef VECGEOM_VOLUMES_SPHEREUTILITIES_H_
#define VECGEOM_VOLUMES_SPHEREUTILITIES_H_
#include "base/Global.h"
#ifndef VECGEOM_NVCC
#include "base/RNG.h"
#include <cassert>
//#include <iostream>
//#include <fstream>
//#include <limits>
#include <cmath>
////#include <cfloat>
//#include <vector>
//#include <algorithm>
... |
3e0d9f5b171df6d304a64c6a925cdc2aa490048d | 5aa99fec0b2f1c5ce907b98966c1162733df221a | /ASIOGameServer/Component/Component.cpp | f6644e57c70dea8860a6141d297b555fca28be07 | [] | no_license | qkfdjq451/ASIOGameServer | ac908d71ee4218864d1f945cdb1122331a660d2e | af3a69da5db94d8667036b5dddb800fb2f69c867 | refs/heads/master | 2020-03-18T11:17:15.637775 | 2018-07-24T06:09:50 | 2018-07-24T06:09:50 | 134,662,233 | 1 | 1 | null | null | null | null | UHC | C++ | false | false | 3,171 | cpp | Component.cpp | #include "../Global.h"
#include "Component.h"
int Component::count = 0;
std::map<int, std::shared_ptr<Component>> Component::Components;
std::map<std::string, std::map<int, std::shared_ptr<Component>>> Component::TagComponents;
Component::Component()
: parent(nullptr), workerGroup(nullptr), state(ComponentState::Cre... |
717fb15ca5c639d7af605ad514ff266d62a154d4 | bb0cb5934a9b1fb1bc792cd6927fc70bf9d0a58a | /cpp/3.5_2Drowcol.cpp | 45ef52a2935078c9aa27bb56ccd3f2f9883a91f3 | [] | no_license | cactiglitch/C-C-exercises | 340ed74e2165a37cbf4f35591669378dd03099e9 | 37467bbd02ba6aa29e352c7485b0a0cf6a4649ab | refs/heads/main | 2023-06-15T04:26:45.823650 | 2021-07-04T04:29:41 | 2021-07-04T04:29:41 | 371,581,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | 3.5_2Drowcol.cpp | /*
Integer[0] [0] = 34
Integer[0] [1] = -1
Integer[0] [2] = 879
Integer[0] [3] = 22
Integer[1] [0] = 24
Integer[1] [1] = 365
Integer[1] [2] = -101
Integer[1] [3] = -1
Integer[2] [0] = -20
Integer[2] [1] = 40
Integer[2] [2] = 90
Integer[2] [3] = 97
*/
#include <iostream>
using namespace std;
int main()
{
const int N... |
44a8d2914ebbdb45ca0e52e44e0faec3bf0a1396 | e815f3acb9c58e9ffe9234fcc5c1bcf3db505f76 | /quol/flume/src/regex.h | 7015163f71be9e08d1ffc228c8d3538fdacd2a65 | [
"MIT"
] | permissive | zezax/one | 7605400cf365706c60c95890f8f21e70f05be2bb | 4d46d2324a7bfc024ae740785af48d6c9133cf5e | refs/heads/master | 2023-08-31T22:06:25.080378 | 2023-08-30T22:53:05 | 2023-08-30T22:53:05 | 252,308,249 | 1 | 0 | MIT | 2023-09-04T04:32:15 | 2020-04-01T23:21:42 | C++ | UTF-8 | C++ | false | false | 914 | h | regex.h | // regex.h
#pragma once
#include <sys/types.h>
#include <regex.h>
#include <memory>
#include <string>
namespace flume {
class MatchT {
public:
MatchT() : src_(nullptr) { }
size_t size() const { return sizeof(ary_) / sizeof(ary_[0]); }
std::string operator[](size_t idx) const;
private:
void setSrc(const c... |
64d8f5ed595a43d6a6a8949ec7e6fb499a0855b0 | b99df5b558c9e4224fe9e4d10507aeb5b2fa3ae0 | /StudentID/header.hpp | 29c8c24d2e1f1725baf910e2b1e77265b3763e5f | [] | no_license | tdickon/Intro-to-CS | 9073077c4faa26f8bc4d9f1aee2541c15438a9f7 | 235406b221e06ced66535f54d621916f66729417 | refs/heads/master | 2021-01-22T19:54:22.388470 | 2017-03-17T02:13:59 | 2017-03-17T02:13:59 | 85,255,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | hpp | header.hpp | #include <iostream>
#include<string>
using std::cout; using std::cin; using std::endl; using std::string;
#ifndef test_h_
#define test_h_
class studentId {
public:
void get();
void print() const;
private:
string firstName;
string lastName;
double ID;
};
#endif //test_h_ |
0dd536735c6c8404e1dabfda19ab29719b5f4138 | f16d9ef62086aa59619ded6e1fbf8c0d97098e60 | /Point.cpp | ca0390194ad34b18acc79d8cf1e5cbd0ffa4158e | [] | no_license | sibendav/foresightAssignment123 | 7ec0af53bcb7184f34b5123beb8752c00233c802 | 6b82799bb73e4b5f47a91b6da2feae008718f27a | refs/heads/main | 2022-12-23T08:50:21.563356 | 2020-10-06T08:02:03 | 2020-10-06T08:02:03 | 301,477,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | Point.cpp | //******** BALL-FILTER ********
//Author: Simha Ben-David
//The Point.cpp class
//The file is detailing the functions from Point class
#include "Point.h"
//ctr functions
Point::Point(double X, double Y, double Z)
:x(X), y(Y), z(Z) { }
Point::Point(const Point& p){
x = p.x;
y = p.y;
z = p.z;
}
/... |
f5fafd8abc819a6404af6c6fcda11902a77dec68 | 52c96c707172d0d6c7bfb3b672b2eb86a76473fc | /src/TravelAuthForm/TravelAuthtorizationForm.h | 3110047d69c36205a1f7e163aed58f0efdbaa9e4 | [] | 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 | 795 | h | TravelAuthtorizationForm.h | #ifndef TRAVELAUTHTORIZATIONFORM_H
#define TRAVELAUTHTORIZATIONFORM_H
#include <QWidget>
#include "ui_TravelAuthtorizationForm.h"
class TravelAuthtorizationModel;
namespace ODS{
class OdsInterface;
}
class TravelAuthtorizationForm : public QWidget, public Ui::TravelAuthtorizationForm
{
Q_OBJECT
public:
Trav... |
285ceacce3dccb398ec9731d24ed617a2af8600f | b7538269600c05afe22a5bea0d403f3ec0837fe8 | /system/back/PlutoBackend/AbstractRequest.cpp | e7e9abaa98424dfa7497e1e9773c2136b3d4bd89 | [] | no_license | SanjanaSrabanti16/urban-chronicles | 8085885e939c4c6b1b3483c4dc04778b565d2a60 | 4a7f1a0055e112a88281e29f88495a05c8b52c50 | refs/heads/main | 2023-07-02T20:41:34.362182 | 2021-08-12T17:12:17 | 2021-08-12T17:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | AbstractRequest.cpp | #include "AbstractRequest.h"
AbstractRequest::AbstractRequest()
{
m_jumpLayer = false;
}
AbstractRequest::~AbstractRequest()
{
}
DatasetType AbstractRequest::parserDatasetType(const QString& polygon)
{
if (polygon.contains("neighborhoods", Qt::CaseInsensitive))
{
return DatasetType::NTA;
}
if (polygon.contai... |
db4ffa03db43887546668f9fe9733ec97f5c74a5 | 925f70976371fa7ea51037cc61932c1c3d3f2403 | /src/subt/subt_gazebo/include/subt_gazebo/GameLogicPlugin.hh | 6d9402d2bf631324f978dad6452884f7e881c790 | [
"Apache-2.0"
] | permissive | arjo129/darpasubt | 811228872cccc6075e49250b70769a44330da686 | 6f90b70bd397b6fbedf6193c2714e808c5fecc91 | refs/heads/master | 2020-04-02T17:24:49.977337 | 2019-11-27T14:45:42 | 2019-11-27T14:45:42 | 154,656,645 | 4 | 3 | null | 2020-03-07T00:17:47 | 2018-10-25T11:05:30 | C | UTF-8 | C++ | false | false | 7,303 | hh | GameLogicPlugin.hh | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... |
64357d360e9059ab1a339f69403397d4a40838f8 | 34d39f6449e0ebc8b5fa27425a2179a10eb71314 | /CommandePeser.h | 43d588312e3952376c848f37e9681e8e83adf0a4 | [] | no_license | skidlucas/sim-robot | 422effd2fb022025179a23431216f6e9bd0579d3 | 7c530213c060f540ec8ad50c9b51f8a4f245d327 | refs/heads/master | 2021-01-10T03:21:28.621072 | 2015-12-03T16:28:14 | 2015-12-03T16:28:14 | 44,597,303 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | CommandePeser.h | #ifndef _COMMANDE_PESER_
#define _COMMANDE_PESER_
#include <string>
#include <iostream>
#include "CommandeRobot.h"
using namespace std;
class CommandePeser : public CommandeRobot {
private:
public:
CommandePeser(Robot* r = nullptr, Invocateur * inv = nullptr):CommandeRobot("PESER"){
robot = r;
invo... |
dbffbee4d3cf7cbe8f0f71289956fc0646032fc0 | b22819d39a788b046e9a475f655b005ac478b1ef | /src/475.Heaters.cpp | 4ac833baca26ae891c5f08d2002a1e59ffbd5204 | [] | no_license | chouchoudiudiu/LeetCode | 81424dd12c6ec7ff0c801b6c4786a6e567b1cdec | a5af14f948db04a2e5a1adfefe033a872fd8f0ed | refs/heads/master | 2021-01-11T07:45:53.672062 | 2019-05-14T21:26:35 | 2019-05-14T21:26:35 | 72,676,179 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | cpp | 475.Heaters.cpp | class Solution {
public:
//每一个house找和他最近位置比它大的heater,找不到就用heaters最大的,这样保证每个house都能cover到
int findRadius(vector<int>& houses, vector<int>& heaters) {
sort(heaters.begin(), heaters.end());
int radius = 0;
for (auto house : houses) {
auto pos = lower_bound(heaters.begin(), heaters.e... |
6901d7aa89122e880e34837e07cf234dd2ac7c04 | 55281c04f08114b12ec037daaa43c5970f8185c4 | /src/perspective_transformer.h | fe04d4fd3a1ab364875f22b9670518526ed28cff | [] | no_license | SpiderUnicorn/sudoku-irl | 365c0b973f369b68649f673ff441b1e004604733 | fc18f272e6e01d0ab93c5356905674391a98d18f | refs/heads/master | 2021-05-14T11:16:02.328674 | 2018-01-14T19:26:58 | 2018-01-14T19:26:58 | 116,257,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | h | perspective_transformer.h | #ifndef SUDOKU_PERSPECTIVE_TRANSFORMER
#define SUDOKU_PERSPECTIVE_TRANSFORMER
#include <stdio.h>
#include <opencv2/opencv.hpp>
namespace sudoku
{
class PerspectiveTransformer
{
public:
PerspectiveTransformer(cv::Mat img)
: original(img)
{}
cv::Mat extract_straightened_board(int s... |
f544cdda497e5c066d0910b541e1730578b4cda3 | 38616fa53a78f61d866ad4f2d3251ef471366229 | /3rdparty/RobustGNSS/gtsam/gtsam/nonlinear/NonlinearOptimizer.cpp | e1efa20615c55acec35d748cba5ce3372711e2ba | [
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only",
"MPL-2.0",
"LGPL-2.0-or-later",
"BSD-2-Clause"
] | permissive | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 3b467fa6d3f34cabbd5ee59596ac1950aabf2522 | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | refs/heads/master | 2020-06-08T12:42:31.977541 | 2019-06-10T15:04:33 | 2019-06-10T15:04:33 | 193,229,646 | 1 | 0 | MIT | 2019-06-22T12:07:29 | 2019-06-22T12:07:29 | null | UTF-8 | C++ | false | false | 8,888 | cpp | NonlinearOptimizer.cpp | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
969c7dcd8f066e5eee7b503c402f2140a01a2d05 | 3b28ce5f9f1a7e671ba1f8dc0abaf458959d0c43 | /MyTask/MyTask/MyButton.cpp | 69f914cf5d31913037e19b9cfa6c622ddee9a6a5 | [] | no_license | cnsuhao/MyTask12138 | 9712234b0e35ba6dc41c7e263335ccfe0d1ce204 | 4892ca47f99be8ea236acb323990b4940d6ab071 | refs/heads/master | 2021-08-23T13:42:38.238520 | 2016-12-26T02:37:43 | 2016-12-26T02:37:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,052 | cpp | MyButton.cpp | // MyButton.cpp : implementation file
//
#include "stdafx.h"
#include "MyButton.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyButton
CMyButton::CMyButton()
{
}
... |
a6b5d24a7afddaceaa85c6e70c453971d8ad10d5 | c338f9b1c20141ede9905e23971487808ab90b58 | /tinyUI/src/pagemanager.cpp | 3f146c18b807ca20e493cfe81f45ae0cbafddf63 | [] | no_license | HappyGod158/tinyUI | b7b11a4a2731daca0ab29218eead12b0641f0b56 | 5d8326aa0659e17ea255af3c62ffe6bb5b0c5f62 | refs/heads/master | 2021-01-12T09:47:28.230670 | 2016-12-12T09:03:37 | 2016-12-12T09:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,447 | cpp | pagemanager.cpp | #include "pagemanager.h"
PageManager* PageManager::pageManager{nullptr};
PageManager& PageManager::getInstance()
{
if(!pageManager)
pageManager = new PageManager();
return *pageManager;
}
void PageManager::destoryInstance()
{
delete pageManager;
pageManager = nullptr;
}
PageManager::PageMa... |
7f28fa06e0c879173c998426a28ba2fbc4c350a5 | 0e308a2e6e1f3a5d7e3ae11ec8842f815ba38559 | /lib/malloy/html/form.hpp | 2c720406e0a7ed776b1b67428c836d8b86190178 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | darkomenz/malloy | d0430b67f5b7fa25a1e0eaacf3bf2b89396402aa | 69e383d319d4d090888cab21b0c33e3c1499d8ab | refs/heads/main | 2023-04-25T23:55:58.577468 | 2021-05-12T08:41:30 | 2021-05-12T08:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,584 | hpp | form.hpp | #pragma once
#include <optional>
#include <string>
#include <unordered_map>
namespace malloy::http
{
class request;
}
namespace malloy::html
{
/**
* Class for handling HTML forms.
*
* This class can be used to parse an HTML form.
* Form data is represented as key-value pairs where both `... |
ff25450e6c19a81e60c8bccdecd3b1a95ab80125 | 1eda0bf020ddc4481c19bfd43e081152743ebb15 | /code/Calculate.h | f2a46ea4ca3e6531469c1e3290f8427eff110a57 | [] | no_license | whumashuai/QTcalgen | ee3c2618cf2046d9cc452a1898e764726efe77eb | 7309389d72cadc8d4ef11ef6118712c9b331569f | refs/heads/master | 2021-07-10T17:04:48.231120 | 2017-10-12T01:24:22 | 2017-10-12T01:24:22 | 106,253,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | h | Calculate.h | #ifndef CALCULATE_H
#define CALCULATE_H
#include"Fraction.h"
#include<stack>
#include<deque>
using namespace std;
class Calculate
{
public:
Calculate();
bool isBracket(char c);//Determine whether it is brackets
int getPri(char c);//Get the priority of the symbol
int checkzero(Fraction op1); //Check ... |
ddb9f22b68cfc73323bc69d11f0ea0f7d75a92b6 | 2371abc6f3dff895ee810a6ea356a8a49ace44b6 | /Soloteam V2/Temp/StagingArea/Data/il2cppOutput/AssemblyU2DCSharpU2Dfirstpass_character_select2004000448.h | 168c1ca820f45482db8b9803d795b4dacdf67c16 | [] | no_license | System3748/ChefCouponpon_Source | a1d7eb3ae0b170e33cea4a1f054abb6dce578d85 | c6f4585d40a030a34d0b7ce519bbb38fdc82f9d1 | refs/heads/master | 2020-03-15T12:58:53.160961 | 2018-05-04T16:26:56 | 2018-05-04T16:26:56 | 132,155,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,565 | h | AssemblyU2DCSharpU2Dfirstpass_character_select2004000448.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "UnityEngine_UnityEngine_MonoBehaviour1158329972.h"
// UnityEngine.Sprite
struct Sprite_t309593783;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnost... |
ec96244dff00f30107cfe04ca424d4f6f815e668 | 10549922d157ce67b6a32759b09a8dee78aebe9c | /calendarui/regionalplugins/KoreanLunar/inc/CalenLunarLocalizer.h | 7c1c9e460b5b87efaf50ae36693c18891038a077 | [] | no_license | SymbianSource/oss.FCL.sf.app.organizer | c8be5fbc1c5d8fc7d54a63bb1793f8db823fa3d7 | e15734d1943a012120b188fe3ffd5dd7594d145f | refs/heads/master | 2021-01-10T22:41:15.449986 | 2010-11-03T11:42:22 | 2010-11-03T11:42:22 | 70,369,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,332 | h | CalenLunarLocalizer.h | /*
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-... |
6522163f2ebd563c6daeb6f20a9f06d7050c4725 | 2061648aa02b9939e2de5f98566bac7385c02d30 | /this指针.cpp | 5a137683022ac4b38beb0a78b316f01a46e870f7 | [] | no_license | MasterMaxLi/CLearn | 28091dd0e413d87bc7b55982e90785b2a25fd1b0 | 180572e2996c1e0e2ab2a59ff543ec09c79e2ca5 | refs/heads/main | 2023-04-01T10:16:39.103743 | 2021-04-06T10:37:23 | 2021-04-06T10:37:23 | 352,920,683 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 674 | cpp | this指针.cpp | #include<iostream>
using namespace std;
//this指针指向被调用的成员函数所属的对象
class Person
{
public:
int age;
//解决名称冲突
Person(int age)
{
this->age = age;
}
Person& PersonAddAge(Person& p)
{
this->age += p.age;
//this指向对象的指针,*指向对象本体
return *this; //返回对象本身
}
};
void test01()
{
Person p1(19);
cout << "p1年龄:" << p... |
b162e8a897968ab59b0af2914ac0a4b7396566f7 | 8e77e058d1f60642cd505e1b8058d6606cf63ca8 | /include/Myconf.h | c0d003fc6830e03a99cac27436f3899bf9cccdfa | [] | no_license | cachefish/Smartdict | 4116ea51d5889f958a1f2eae108f8eccb908a940 | 866cd614591d54cde9de17f28b35808ccd68b9f0 | refs/heads/master | 2022-09-24T14:16:23.071469 | 2020-06-03T02:32:35 | 2020-06-03T02:32:35 | 268,440,067 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,028 | h | Myconf.h | #ifndef __MYCONF_H__
#define __MYCONF_H__
#include<iostream>
#include<fstream>
#include<sstream>
#include<stdexcept>
#include<set>
#include<map>
#include<utility>
#include<vector>
class MyConf
{
friend class MyTask;
friend class MySocket;
friend class ThreadPool;
public:
MyConf(const std::string&name):... |
22e0cd9165b9e855f60a57166e4a7bc1963eb6f6 | 0941905ba3c5aae17a70b3b998ea4e1afc5de286 | /app/of_colorOscSender/src/scenes/ballScene.cpp | 7a25cbb410272464b2642b9894f77e2af205db93 | [] | no_license | imclab/spark-OF-UDP | 3fbfaa1e2795ae74b2f930b8777e7991abd4c554 | 46d31b4ee8c4716bc37586411ff2ace11b202997 | refs/heads/master | 2020-03-30T23:13:43.599315 | 2014-07-03T17:40:36 | 2014-07-03T17:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | ballScene.cpp |
//
// noiseScene.cpp
// of_colorOscSender
//
// Created by Firm Read on 6/11/14.
//
//
#include "ballScene.h"
void ballScene::setup(){
for (int i = 0 ; i< 1000; i++) {
simpleParticle temp;
temp.setup();
temp.x = ofRandom(ofGetWidth());
temp.y = ofRandom(ofGetHeight());
... |
844883087da311fdbc2095a233c7ddd27a75d884 | 1c42ffc8bcf325ea16326d635d931048ed068077 | /Image_Process parts/Refc_vison/Incmp_refrences etc/img_obkj.h | 5f01a033d34485accdfea92cda650a487e7f5b6e | [] | no_license | zeplaz/SIDRN | 964cf9ce2d3441b3b2b938c3c21dbc02f1ca0ec3 | cbf34dfc17c52c40ffbb1b77f15f29fbd3fdba7a | refs/heads/master | 2020-04-15T01:05:40.215449 | 2020-01-05T19:55:38 | 2020-01-05T19:55:38 | 164,263,335 | 0 | 0 | null | 2019-05-24T18:59:28 | 2019-01-06T00:45:49 | C++ | UTF-8 | C++ | false | false | 954 | h | img_obkj.h |
//class img_obkj.h
#pragma once
#include <utility>
#include <vector>
//3rdparty sfml lib for displays
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
//
class img_obkj
{
private :
int be_id;
static int be_NextValidID;
void set_id(int val);
img_objk_prop.obj_id= label;
public :
... |
28de8444ba4d7386ddb87c23945923d44098cd02 | b810c256b146cb83f54342c4c2f81eccb91d2867 | /euler/6.cpp | 8afbbb820ebc5c307a129293066437da3643f6d4 | [] | no_license | ps-kostikov/puzzles | 0dde7452a04d5823591e6657e354433879d1b6d6 | 7618558d808b2f65c8914cea4efa999ed2cca438 | refs/heads/master | 2021-05-04T11:33:08.007597 | 2016-09-02T17:47:21 | 2016-09-02T17:47:21 | 47,068,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | 6.cpp | #include "common.h"
#include <iostream>
int main()
{
Natural n = 100;
Natural s1 = 0;
Natural s2 = 0;
for (Natural k = 0; k <= n; ++k) {
s1 += k;
s2 += k * k;
}
std::cout << s1 * s1 - s2 << std::endl;
return 0;
} |
573730636f00343c9233b40dac2b69240f5d243e | d5834f969200160f4ff7119cb517945770735f76 | /Battle.cpp | 38dc3a9bbc9781cfebbfe628b6443b0b696574b4 | [] | no_license | mrj1m0thy/conquest | 548595a61f70059bca9c796d72e3a83b420a4212 | 8deb5713afaba8ae1d48fbb08f6910b390f8ab55 | refs/heads/master | 2021-01-15T07:57:10.843628 | 2015-04-15T01:50:40 | 2015-04-15T01:50:54 | 29,751,306 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,164 | cpp | Battle.cpp | /*
February 1, 2015
Nicholas Sabelli
COMP 345 Section SI
Assignement #1
This file implements the Battle class along with the Die structure. It is used to define the battle phase of risk.
*/
#include <iostream>
#include <ctime>
#include "Battle.h"
#include "Country.h"
using namespace std;
Battle::Battle(Country* att... |
38be2b8dcf1a6fae292d9b7a3ba78e064ca76c9a | 20274b4c306e6dc1cb64366eb56888c238cdb47a | /jni/fnaf/common/Entity/foxy/FoxyRenderer.cpp | 67833fc3362cc487aed341a69a88efc9d71542de | [] | no_license | TrinityDevelopers/FNAF-PE | f689e5ff46fb529b4e62f9e260367c69b42af883 | aef0c04fcb6a7a5018a5943d810886b6ec34ba25 | refs/heads/master | 2021-04-26T16:52:23.692051 | 2015-10-02T22:24:12 | 2015-10-02T22:24:12 | 42,960,265 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | FoxyRenderer.cpp | #include "FoxyRenderer.h"
std::string FoxyRenderer::textureName = "mob/foxy.png"
FoxyRenderer::FoxyRenderer(Model* model, float f) : MobRenderer(model, f) { }
FoxyRenderer::~FoxyRenderer() { }
FoxyRenderer::bindMobTexture(Mob* mob) {
bindTexture(textureName, 0)
}
|
1b64e6c1c594a10ac6869feeb16ee7ff8fb9b21c | 889de8ff2883bae85ffbfb5e4bf0cabdbe09a3c7 | /src/TargetAlgorithm.cpp | 9e41a1e7f038e92097dc5c20aca3555494cf4c90 | [] | no_license | JavierVillegas/JustMirrors | 7f07cff79dbb78b3e57b6c255a036d482722cc1a | 6e2fe4b9d45701f8def5dddc184a1628b92ed237 | refs/heads/master | 2020-05-09T11:56:19.758563 | 2013-11-14T16:40:26 | 2013-11-14T16:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,885 | cpp | TargetAlgorithm.cpp | //
// TargetAlgorithm.cpp
// Defense
//
// Created by Javier Villegas on 6/6/12.
// Copyright (c) 2012 UCSB. All rights reserved.
//
#include <iostream>
#include "defense.h"
void defense::TargetAlgorithmUpdate(int TMode){
float ThDis =13.4;
KtarTgDemo = 19.25;
KdamTgDemo = 1.05;
float dt = 0.25;... |
48a706ef55d6690872c557e0b425fcd32b36c37a | 1f52b006116e39311ab3887a04f79b9652756935 | /Sorts/SelectionSort.cpp | 436752e8f6bedb4222b05bcd8dc042e7aeeaa184 | [] | no_license | SaurabhDhage/DSA | 4c0c573d29ee654aed039de9d159cd385521d629 | 6bdc326983c8b83741757878a38f233b9e4adb70 | refs/heads/main | 2023-08-24T21:27:14.917848 | 2021-10-21T07:57:59 | 2021-10-21T07:57:59 | 418,953,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | SelectionSort.cpp | #include<iostream>
using namespace std;
int main()
{
int i,j,min1,temp;
int a[5];
cout<<"Enter Element to Sort:"<<endl;
for(i=0;i<5;i++)
{
cin>>a[i]; //getting list
}
for(i=0; i<5-1; i++) //for starting element
{
min1=i;
for(j=i+1;j<5;j+... |
15e562b7101779f520fd729cd42467b04f7eaddf | b53bd365307e1e13cd00473cc373c6ba8df1ba7f | /src/CCA/Components/Wasatch/Coal/CharOxidation/CCK/ThermalAnnealing.h | 9ca5d8c14943d99cacc07980183b9fd5066cdcab | [
"MIT"
] | permissive | Uintah/Uintah | b7c55757cac1f919ac70fa5ffb1d6ea421b2069d | 5678018f6d237faad6aff1c0bcc4791d6af2f61e | refs/heads/master | 2023-09-01T05:27:36.000893 | 2023-07-27T17:18:28 | 2023-07-27T17:18:28 | 206,165,649 | 47 | 25 | null | 2022-10-17T19:14:44 | 2019-09-03T20:22:50 | C++ | UTF-8 | C++ | false | false | 4,961 | h | ThermalAnnealing.h | /*
* The MIT License
*
* Copyright (c) 2015-2023 The University of Utah
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* righ... |
5b6b657c2b63779d0c6ebd1eabf96c2848f221ca | 9b4b0c3faa5f3002ed85c3054164e0b9fb427f56 | /Codes/2200/2250.cpp | cafe730d6db955a5d6127272f632dae15dbc08ad | [] | no_license | calofmijuck/BOJ | 246ae31b830d448c777878a90e1d658b7cdf27f4 | 4b29e0c7f487aac3186661176d2795f85f0ab21b | refs/heads/master | 2023-04-27T04:47:11.205041 | 2023-04-17T01:53:03 | 2023-04-17T01:53:03 | 155,859,002 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | 2250.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
pii tree[10101], widthrange[10101];
int level[10101], width[10101];
bool hasparent[10101];
int dfs(int v, int lev, int offset) {
if(v == -1) return 0;
level[v] = lev;
int left = dfs(tree[v].first, lev + 1, offset);
width[v] = of... |
323cae84fca8ad5ccea36191d0b031bdab0fc39d | 2f17a48bda15a68d7531d79154f29d3c432a0708 | /ProgrammingPupilDetection/pupil_detection.cpp | 35e0b2e72f1d7534b4a4fb40f363cacac5bdb0a8 | [] | no_license | Nilay27/Pupil_Detection_And_Pupil_Pose_Estimation | 5ba1de3c39686a91bc619aa9e77a3011bf094cb6 | 1adccb864dc5b9bffecdc45a119e8d30cc7e1c97 | refs/heads/master | 2022-09-18T05:35:26.471644 | 2022-08-31T10:04:41 | 2022-08-31T10:04:41 | 129,446,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,372 | cpp | pupil_detection.cpp | #include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <cmath>
#include <bits/stdc++.h>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
// Load image
Mat src = imread("TestData/Real/01.jpg");
if (src.empty())
return -1;
// Invert the source image and co... |
60a9a43dfdb34e05784d6590ac5f20d12591f160 | 765de512168b3145562ef6a892805751a562dc24 | /Bool.h | f2628dd46216336f674971b2dd17cb4af27d5708 | [] | no_license | sumsv50/Matrix-Calculator | ae71e8fcd8219934d1e285c7a5787a75e610a4c4 | 2a7a826d95a85eeec37e4d64135749da6e898a7c | refs/heads/master | 2022-08-30T17:15:57.670455 | 2019-11-10T16:53:01 | 2019-11-10T16:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,700 | h | Bool.h | #pragma once
#ifndef Bool_h
#define Bool_h
#include<iostream>
#include"stdlib.h"
#include<string>
#include<vector>
using namespace std;
class Tokenizer {
public:
// Hàm lấy ra các đơn thức
static vector<string> Parse(string s, string seperator) {
vector<string> tokens;
int startpos = 0; // vị trí bắt đầu tìm
s... |
7b723df16979e9ffb379c264d1d8825bd25a3424 | 77cab51d8312710b22907c787b0357aef46a710a | /DP/CombinationSumIV.cpp | 71d50680cbec1e97486290235616cbf4da8d1f12 | [] | no_license | rockieCao/LeetCodeSolution | 994b82bd62b29953fa888a8bdf6b8932093971a7 | 0a4279a78669fd0c8c56a3ea0da7452f6494f8cb | refs/heads/master | 2021-01-19T02:54:36.990712 | 2016-09-26T15:55:43 | 2016-09-26T15:55:43 | 47,871,071 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | cpp | CombinationSumIV.cpp | #include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
class Solution {
public:
vector<int> cn;
int combinationSum4(vector<int>& nums, int target) {
vector<int> dp(target+1, 0);
dp[0]=1;
sort(nums.begin(), nums.end());
for (int i =... |
7047127dc0048786846ae8d91022c732a396dc98 | d5e10a16f1fc896209571b52185ac7a1fe831670 | /Raytracer/Raytracer/src/Camera.h | 885e7bd4748751022705d23d2fa4d3f527ac4ea7 | [] | no_license | balakumaranpalanivel/RaytracerComputeShader | b0777b5f9363b30b5e67c9e17a0f5186bd795f8c | ef3307b91986fda2d29187369bbd935d576ad296 | refs/heads/master | 2021-05-15T06:08:19.583748 | 2018-02-15T11:31:12 | 2018-02-15T11:31:12 | 115,292,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,222 | h | Camera.h | #pragma once
#define GLM_FORCE_RADIANS
#include "glm/glm.hpp"
#include "glm/gtx/rotate_vector.hpp"
#include <GL/glew.h>
class CCamera
{
public:
CCamera();
CCamera(glm::vec3 pos, glm::vec3 dir,
float scrWidth, float scrHeight,
float fovy, float nearPlane, float farPlane);
glm::mat4 getViewMatrix();
glm::mat4 ... |
cb31546c1186eae7383391bca74a3df612a5fdc1 | da540288cc194baf0dc4731e6bf621d20def4a10 | /7. Bridge/ShapeOut/Shape.h | 1f3f66f3db4377198d76e5c90236c0178df0092f | [] | no_license | Serhiy-Boyko/Design_patterns | 3df7dbe0dda3bc0cf97970c70d2b3980500ebe36 | 09dab45ad4990844b8364017253951c9345d3818 | refs/heads/master | 2021-07-15T17:07:59.570396 | 2020-10-19T10:17:55 | 2020-10-19T10:17:55 | 217,768,599 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | h | Shape.h | #pragma once
#include "Header.h"
class Point {
double x, y;
public:
Point(double ax, double ay) : x(ax), y(ay) {}
double getx() { return x; }
double gety() { return y; }
std::string str() {
char s[50];
sprintf(s, " x: %0.2f y: %0.2f ", x, y);
return s;
}
};
// -----------------------------------------... |
edfbff31f66e1d30e27b46cbc5089ae6e3fa200c | bc77d161baff2a5e2f1fbebc5d51c8322e2b69e4 | /34/main.cpp | 8ece09f4b547b35ac588c1313e898eb8753de683 | [] | no_license | ianzapolsky/project-euler | c64a662d8dc486d405fe2c06b5c09991767509a3 | 736d240e5f70ab4f0df455cedbed0504c6293271 | refs/heads/master | 2021-01-19T07:50:51.084634 | 2015-03-05T21:09:09 | 2015-03-05T21:09:09 | 27,849,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | main.cpp | #include <iostream>
#include <string>
#include <vector>
int factorial(int num) {
int sum = 1;
while (num > 0)
sum *= num--;
return sum;
}
int main() {
int result = 0;
for (int i = 10; i < 2540161; i++) {
int fact_sum = 0;
int number = i;
while (number > 0) {
int d = number % 10;
... |
99587d51a07bb54c09c23ffb631f26f3ed6198e8 | 74fabd81d659b37e084721f031ce69bbeca0c8c7 | /Source/Resource.cpp | a068dba169d5a38f144f2cbe6eb92a7c00bb4377 | [] | no_license | Crant/Mastermind-Remake | 010352afb1626947de676817d0d5e7ba2c33f106 | 8fab846437ef202716cad7629c38eddb9764a708 | refs/heads/master | 2021-01-23T15:55:50.398469 | 2015-04-18T13:04:17 | 2015-04-18T13:04:17 | 30,552,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | Resource.cpp | #include "Resource.h"
#include "IwResManager.h"
CDECLARE_SINGLETONS(Resource)
void Resource::Init()
{
IwGetResManager()->LoadGroup("Resources.group");
CIwResGroup* group = IwGetResManager()->GetGroupNamed("Resources");
IwGetResManager()->SetCurrentGroup(group);
this->zMarble = Iw2DCreateImageResource("Marble... |
f0f740950e3864ebdd0df4fc50418e55894c8f9f | a0cd9f1059684285faa248c875aa4bd1e58a854d | /자료구조/솔루션 및 과제/Lab06-HeterogeneousLists-solution/DS-Lab06-HeterogeneousLists-solution (Ver. Console)/DiffTypeDLinkInherit.cpp | 2f36db0276a2531e3c53b242cd1ee12a4101ee94 | [] | no_license | Flare-k/Programming | f169e691fc2bde3c1478c5b9adcbc27d84e1cc9d | 50dfa4c5f375a59790cc2f4a96b358ba8bfc073d | refs/heads/master | 2020-06-14T16:30:56.759063 | 2019-11-18T18:12:00 | 2019-11-18T18:12:00 | 195,055,125 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 6,053 | cpp | DiffTypeDLinkInherit.cpp | #include "DiffTypeDLinkInherit.h"
////////////////////////////////////////////////////////////////////////////////////
// BaseNode의 member function
///////////////////////////////////////////////////////////////////////////////////
//<<수정>>
BaseNode::BaseNode()
{
rlink = 0;
llink = 0;
}
//////////... |
adf5e5c7b3d1ab746b4d789480f35763579aadbe | 07c49de6b02000f53d944926a3c3e02131b5979a | /coding/parallelPhylo/util/mutationMap.h | fd53fb397a1eecea62d1ce745a6abadf5eb48bdb | [] | no_license | terryschhoracverni/Phylogenetic_comps | 76acc110551ce80ed12f157f88525f846e884d47 | 4b9341819ec106be8f6f81e9ffdd097582650fbd | refs/heads/master | 2023-03-15T19:10:57.334838 | 2014-12-29T03:55:41 | 2014-12-29T03:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | mutationMap.h | //mutationMap.h
//This file constructs a 2 layer map to hold the conversion rates for each nucleic acid.
#ifndef MUTMAP
#define MUTMAP
#include <map>
using namespace std;
class MutationMap
{
public:
//constructor
MutationMap();
//mutation maps
map<char,float> adenineRates;
map<char,float> thymineRates;
... |
83e71c2f82d6d9988ba8a01ae1aa56995a2981c6 | 2c32342156c0bb00e3e1d1f2232935206283fd88 | /tech/libsrc/namedres/Start/defstfct.cpp | e6e48ed83088ab91c46934b3227677a507ddc0ed | [] | no_license | infernuslord/DarkEngine | 537bed13fc601cd5a76d1a313ab4d43bb06a5249 | c8542d03825bc650bfd6944dc03da5b793c92c19 | refs/heads/master | 2021-07-15T02:56:19.428497 | 2017-10-20T19:37:57 | 2017-10-20T19:37:57 | 106,126,039 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,559 | cpp | defstfct.cpp | //Empty file
#include <windows.h>
#include <lg.h>
#include <comtools.h>
//----- (008EF0F0) --------------------------------------------------------
int __stdcall cDefaultStorageFactory::QueryInterface(cDefaultStorageFactory *this, _GUID *id, void **ppI)
{
int result; // eax@5
if (id != &IID_IStoreFactory
&&... |
5b3b2f6876e992305054b2dd412d13eb363e29d6 | 401aa02f1b23d451c856e038bb71b91baec13eb4 | /NeoMathEngine/src/GPU/Vulkan/VulkanDll.cpp | 5454cdd5401ffa3a689b8296505ac84d05084f89 | [
"Apache-2.0",
"NCSA",
"BSD-3-Clause",
"LLVM-exception",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-arm-llvm-sga",
"MIT",
"Intel"
] | permissive | neoml-lib/neoml | fb189a74e0ce1474fdbe8c01d73fcb08d28d601c | b77ff503c8838d904f8db5f482eafb41de61c794 | refs/heads/master | 2023-08-18T13:28:19.727210 | 2023-08-17T12:49:49 | 2023-08-17T12:49:49 | 272,252,323 | 788 | 141 | Apache-2.0 | 2023-09-14T11:59:19 | 2020-06-14T17:37:36 | C++ | UTF-8 | C++ | false | false | 11,368 | cpp | VulkanDll.cpp | /* Copyright © 2017-2020 ABBYY Production LLC
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 writing,... |
ff932e632f71c6a7fc29e29efc70146b177e3cbe | e66134519c2a71a5b26c000646977b278a6b1fd5 | /integration/cocos2d-x-v2/src/bee/acme/Color.h | 178037302bc551192045be346d5d03ebe465fa6f | [
"Apache-2.0"
] | permissive | gelldur/Bee | 17f307a6e6ea80bc0ce66a9a007ccf1e5237a45b | a126d4f6254f1b367e5c1bed2677d9c8b0924072 | refs/heads/master | 2021-05-04T18:42:50.783589 | 2018-01-05T16:21:32 | 2018-01-05T16:21:32 | 106,039,815 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | h | Color.h | //
// Created by Dawid Drozd aka Gelldur on 10.10.17.
//
// Source from: https://github.com/gelldur/common-cpp
#pragma once
namespace Acme
{
namespace Color
{
/***
* Color format is AARRGGBB in hex
* eg. red = 0xffff0000
* eg. green = 0xff00ff00
* eg. blue = 0xff0000ff
*/
namespace ARGB
{
/**
* @param color f... |
4d2194028f07fae1a2d0b5f24b5f0083360cbad4 | ff1f8e352bcbf059e2c1c0aaafff120c56f3cf49 | /SOJ/SOJ641/sanae.h | 4c72b8e0eb16e2814ead5a68b6fce947f3d760db | [] | no_license | keywet06/code | 040bc189fbabd06fc3026525ae3553cd4f395bf3 | fe0d570144e580f37281b13fd4106438d3169ab9 | refs/heads/master | 2022-12-19T12:12:16.635994 | 2022-11-27T11:39:29 | 2022-11-27T11:39:29 | 182,518,309 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | sanae.h | #ifndef __SANAE_HEADER_INCLUDED__
#define __SANAE_HEADER_INCLUDED__
#include <vector>
int query(int i);
std::vector<int> solve(int n);
#endif
|
703927dc7ff2ab12865cf7a7d6725e555faee38f | e7209a5cb12250ae052ca882a3570c874b4c7dcf | /src/EditorRuntime/Extensions/Property/PropertyOperation.h | 3b1462d0315217c41cd7a339cb6c94ed91512717 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | akumetsuv/flood | 3af52fc3934c289f72b4ca7828b90ce3a054dcda | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | refs/heads/master | 2020-12-25T10:50:21.301224 | 2013-03-24T06:05:56 | 2013-03-24T06:05:56 | 8,084,980 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 847 | h | PropertyOperation.h | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#pragma once
#include "UndoOperation.h"
#include "PropertyPa... |
2c36899e3354cb4f89147ce26d7aa91ee644548b | 62cdbad0da52d4777732e60099eeac3a82ab963e | /Remote-PC-Monitoring-Tool/server/NativeLoader.hpp | 9ce5db0a2a0bb503ce9b7e953e1b00a6e50e6b81 | [
"MIT"
] | permissive | profezzional/Remote-PC-Monitoring-Tool | 34edf31ae7ef1f6b08e20fa7c547d5c9583e5c9f | 1c583edbeb6b9844f12979e4dfe121f4aa97a5a9 | refs/heads/master | 2022-12-17T02:55:48.124807 | 2020-09-20T09:39:18 | 2020-09-20T09:39:18 | 282,722,650 | 8 | 1 | MIT | 2020-09-20T08:32:58 | 2020-07-26T19:53:29 | C++ | UTF-8 | C++ | false | false | 995 | hpp | NativeLoader.hpp | #pragma once
#include "target.hpp"
// todo: add native dll/sl loader depending on arch
#include <functional>
#include <filesystem>
#include <string>
#include <string_view>
#ifdef TARGET_WINDOWS
#include <Windows.h>
#define EXTENSION ".dll"
#endif
#ifdef TARGET_UNIX
#include <dlfcn.h>
#define EXTENSION ".so"
#endif
... |
dd783da761adf0d579efc3ce9b324a77d810cc5f | 191e4ebe408563445e966313a26e9a069e8d90b2 | /src/views/voicetotextedit.cpp | 0371fd4c6ed3f86f9add2ee5d4e96db60180f557 | [] | no_license | martyr-deepin/deepin-voice-note-old | 8368979b94ecdc7184be8653766b590e36d2ca4f | 5e8d7cf633285d635075393c2f4f6417c649de51 | refs/heads/master | 2022-11-12T04:20:30.403883 | 2020-06-28T20:00:53 | 2020-07-09T06:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,510 | cpp | voicetotextedit.cpp | #include "voicetotextedit.h"
#include "uiutil.h"
#include "intancer.h"
#include <QDebug>
VoiceToTextEdit::VoiceToTextEdit(QWidget *parent) : DTextEdit(parent)
{
initConnection();
}
QString VoiceToTextEdit::getText()
{
QString tmp = this->toPlainText();
return tmp;
}
void VoiceToTextEdit::setTextAndLinehe... |
08382fd29de9fa56a99e41e0fd5857e1e3a3adea | 2a6cf9758ea625c3a6f2cdfabb84acfa5f98d81b | /coset.cc | 1ffd58b46b8d05e4695749e984a01dd8c8b2e5be | [
"MIT"
] | permissive | MadPidgeon/Graph-Isomorphism | c392794ee32ea921d087945658678f470a59a173 | 30fb35a6faad8bda0663d49aff2fca1f2f69c56d | refs/heads/master | 2021-05-01T04:57:43.639506 | 2016-05-08T10:15:27 | 2016-05-08T10:15:27 | 52,746,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cc | coset.cc | #include <stdexcept>
#include <iostream>
#include "coset.h"
#include "group.h"
#include "permutation.h"
#include "ext.h"
Group Coset::supergroup() const {
return _G;
}
Group Coset::subgroup() const {
return _H;
}
bool Coset::isRightCoset() const {
return _right;
}
const Permutation& Coset::representative() const... |
e0c29d19019aa7b43c304652770f9dd495591817 | c591b56220405b715c1aaa08692023fca61f22d4 | /Megha/Milestone-20(bitmasking)/basic/Get and set ith bits.cp | 267af92305c09f3d3f79130fe5f0fa243d31d4b9 | [] | no_license | Girl-Code-It/Beginner-CPP-Submissions | ea99a2bcf8377beecba811d813dafc2593ea0ad9 | f6c80a2e08e2fe46b2af1164189272019759935b | refs/heads/master | 2022-07-24T22:37:18.878256 | 2021-11-16T04:43:08 | 2021-11-16T04:43:08 | 263,825,293 | 37 | 105 | null | 2023-06-05T09:16:10 | 2020-05-14T05:39:40 | C++ | UTF-8 | C++ | false | false | 392 | cp | Get and set ith bits.cp | #include <iostream>
using namespace std;
int GetIthBit(int n,int i){
return n&(1<<i)!=0?1:0; //to make it 0 we will and or operator
}
int SetIthBit(int n,int i){
n=n|(1<<i); //to make it 1 we will use or operator
return n;
}
int main() {
int n,i;
cin>>n,i;
cout<<GetIthBit(n,i)<<endl;
... |
c6c4fcc906a0aba1a5c75260678db821bdbfe23f | f5af91b9188b2c0b99cf11fb0ba87ecc30aaa7be | /PostLight.cpp | 7ffe22bdb6a6336786454b5b1399a69582eecf20 | [] | no_license | teacup42729/BedLight | 58378e9c4b74ca7d92ed95c07515844a5d6e8ecb | f3ae9ae5e0e4c5a4186e8e1e1ac030ffe30bcc4f | refs/heads/master | 2021-01-22T13:13:52.286114 | 2015-08-04T20:41:08 | 2015-08-04T20:41:08 | 40,207,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,914 | cpp | PostLight.cpp | //
//
//
#include "PostLight.h"
#define LONG_PRESS 1000
PostLight::PostLight(int rPin, int gPin, int bPin, int buttonPin)
: pwm(rPin, gPin, bPin, true), button(buttonPin, true, true, 20)
{
}
void PostLight::begin(HSV _lightColour, HSV *_overrideColour)
{
pwm.begin();
currentState = off;
lightColour.copy(... |
9a7f50d5387d89df9c5c5fea7f3c13045621645e | f7ec55b7a179a0e238b1d2287824e0e151ec8e41 | /JPEG_compare/JPEG_compare.cpp | eb3f869e1c08fb5e0705575ce36d310ee8b056f1 | [] | no_license | JiaWeiLiou/JPEG_compare | f716e286de0881396f0c204a63cbebeac675fc83 | 284678af5cd5c629c054d1aa9e100b938c319881 | refs/heads/master | 2020-12-03T02:30:37.861105 | 2017-07-01T06:57:08 | 2017-07-01T06:57:08 | 95,947,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | cpp | JPEG_compare.cpp | // test.cpp : 定義主控台應用程式的進入點。
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <stdlib.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
string file;
string name;
cout << "Please enter the file directory :";
cin >> file... |
6d13966bf7d4c59e773ae3604d65b1dc8d241376 | 087a23e688f773cbd5468021a1ae4eb218597260 | /test/file_reader_test.cpp | 12e47f4e86cabd24e67f2c1a4b64211560c37ea6 | [] | no_license | andrewgazelka/Cpp-raytracer | fc81c3b2d0e08f9b9e70cb85bfd68b4330fcadf2 | 22b101933f5d2433fcc3d0e340d102a2b31c77cf | refs/heads/master | 2023-03-27T15:20:39.925450 | 2021-03-30T16:10:26 | 2021-03-30T16:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 132 | cpp | file_reader_test.cpp | #include <climits>
#include "gtest/gtest.h"
namespace {
TEST(FileReader, Yes) {
EXPECT_EQ(1,1);
}
} // namespace
|
9d314d45c323fd623423ae45937cf4999bf78484 | d6cb41ad36365244e7ba8eadcd09a5823b095354 | /7-segment-clock-neopixel-LED.ino | 9a483899a1ceb46cd78f54f83ec859723ad2177c | [] | no_license | snooth/7-Segment-Countdown-Clock | fac8f985d4f8dd2521255fa4d3f2474e9b05990b | ae392ffdf902456f2ff7ba97ab8a3c43bb639bdc | refs/heads/main | 2023-04-14T07:17:41.263437 | 2021-05-06T10:54:18 | 2021-05-06T10:54:18 | 360,779,305 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,984 | ino | 7-segment-clock-neopixel-LED.ino | // The Dogg 2021
// 7 segment digit.
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
#define PIXELS_PER_SEGMENT 3 // Number of LEDs in each Segment
#define PIXELS_DIGITS 4 // Number of connected Digits
#define PIXELS_PIN 2 // GPIO Pin
#define... |
7e4f9e8b10d2672e3f3dea9bb6c36c1310ad5074 | 7f6a94de2bbe920205cdc99f3e57a2f320513dc5 | /controllers/epuck_environment_classification/myci_epuck_range_and_bearing_actuator.h | b4cd87095a50f34aa56f578f4ee847d7931f83f8 | [] | no_license | Pold87/robot-swarms-need-blockchain-classical | cdb90d6c6d470344f5df1885c91bdbc3f2816a05 | dd4cf8bc538b6d652449a8ad20e341ee5b760d1a | refs/heads/master | 2020-03-26T00:28:21.066204 | 2019-10-25T20:42:31 | 2019-10-25T20:42:31 | 144,321,846 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,159 | h | myci_epuck_range_and_bearing_actuator.h | /**
* @file <argos3/plugins/robots/e-puck/control_interface/ci_range_and_bearing_actuator.h>
*
* @author Gianpiero Francesca <gianpiero.francesca@ulb.ac.be>
* @author Lorenzo Garattoni <lgaratto@ulb.ac.be>
*/
#ifndef MYCCI_EPUCK_RANGE_AND_BEARING_ACTUATOR_H
#define MYCCI_EPUCK_RANGE_AND_BEARING_ACTUATOR_H
namesp... |
1169c060a4934446ebad27a08d22a9364cbb427d | 65b0cde0a37c3d478b6be35891e5d52e413580db | /UpCore/MidasBank.cxx | 39e1909d37262734310d8a8020105c1038769012 | [] | no_license | moukaddam/Unpacker | 262dab631c42c27c667831928476d32b686f4f80 | 8127ab9a19f90c64b0111e3ed79b0df5e5ee8cbe | refs/heads/master | 2021-01-01T19:09:42.654529 | 2017-07-26T17:04:42 | 2017-07-26T17:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,595 | cxx | MidasBank.cxx | #include"MidasBank.h"
#include"VUserPoint.h"
#include"UnpackerOptionManager.h"
#include<cstdlib>
#include<bitset>
MidasBank* MidasBank::instance = NULL;
////////////////////////////////
MidasBank* MidasBank::getInstance(){
// A new instance of RootInput is created if it does not exist:
if (instance == NULL) {
i... |
c8aff43fecc8e78f7394f9f994b8e8c5d8e0a4dc | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/SolidMechanicsApplication/custom_constitutive/linear_elastic_plastic_plane_strain_2D_law.cpp | f685d8459cbf1f191a2bd6852c380c247224687d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | C++ | false | false | 5,429 | cpp | linear_elastic_plastic_plane_strain_2D_law.cpp | //
// Project Name: KratosSolidMechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: July 2015 $
// Revision: $Revision: 0.0 $
//
//
// System ... |
0c7ce7c08101dd16cc555998d65d7bdcd0f60ee9 | 6f999bdade8805307fb4dfc2cb397209a0212556 | /core/DBInternal.h | d7edd433d5195990243e0dc354bb5fce7a672e50 | [] | no_license | poseidon1214/PageDB | 5b72ade3bc319dbd63eda9b5d4eedac89fdb4715 | 8c9296563dcef174ecd734fcb7ff42186dfc056e | refs/heads/master | 2021-01-18T06:31:27.594697 | 2014-08-16T09:30:05 | 2014-08-16T09:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | h | DBInternal.h | // Copyright (c) 2014 The PageDB1 Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef _DB_INT_H
#define _DB_INT_H
#include "Log.h"
#include "Slice.h"
#include "Noncopyable... |
7ac77c95a0b8d0e60f4d5975c7d06a736d3e8907 | 735297d0e7d44733fe6a05bf17bca3516fde03dd | /STL And DS & Algo/Stack/Programs/Stack class with min-max functions/main.cpp | 247e758f67c7085156b709a09d39b4e5e302e2b2 | [] | no_license | saswatsk/Comprehensive-C | 741fb1ddfd238be10d474330af1e02ef1ed220bc | a250170c5743ec938028e6a4aac46c7d8a538e22 | refs/heads/main | 2023-08-17T13:19:31.789637 | 2021-09-17T15:57:29 | 2021-09-17T15:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,541 | cpp | main.cpp | // Stack class with push, pop, top and MIN-MAX functions
// Will be done using 3 stacks
#include<iostream>
#include<vector>
using namespace std;
class Stack {
private:
vector<int> stack;
vector<int> minStack;
vector<int> maxStack;
public:
Stack() = default;
void push(int data) {
stack.pu... |
327b76717a0ab3ffa892926621e3a445cfd89a4e | a6f7a5fac6ee01cd62c1f7e5d277b29b82e4f3b2 | /src/backend.hpp | b08bebc31743d5dfe46f7cf38f9b8744931c6ed8 | [] | no_license | prajjwalm/game_of_life | 0caeb8f820f717ec49e7d97b2b0e0cd2d43e4fa1 | 347e1c73f1b777610e0e10a5c0b321864d625e94 | refs/heads/master | 2021-09-14T09:14:56.889819 | 2018-05-11T05:52:26 | 2018-05-11T05:52:26 | 103,138,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | hpp | backend.hpp | /*
* backend.hpp
*
* Created on: 16-Oct-2017
* Author: Prajjwal Mishra
*/
#ifndef SRC_BACKEND_HPP_
#define SRC_BACKEND_HPP_
#include "globalvar.hpp"
namespace backend {
enum state {dead, live};
class cell {
state curr, prev;
int n; // no of live neighbours
public:
cell(... |
8e7027b777221f9dcffc298f7817443d58f781ac | 18307580b7f955a48fce511f943d1dfbe30a18f8 | /sensor.ino | 39c46f606f7db3bc57459b9baa1906a7d7ed96a2 | [] | no_license | mahmoudyusof/code-for-catalysis | adf08a8d2d17dfc5abef086fc819c93d2f845880 | 32f689ef3ed53d6454b089ca407448b15d8624ec | refs/heads/master | 2021-09-09T21:16:44.764090 | 2018-03-19T18:58:29 | 2018-03-19T18:58:29 | 111,325,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | ino | sensor.ino | double R = 100; // this is a current limitting resistance
double K = 30; // this is the springs constant
double f = 50; // this is the used frequency
double S = 10; // this is a resitor at which the voltage will be measured
double r = 0.2; // this is the resistance o... |
32615832e396a5d30ac87f93e7b0b23db7468b55 | b27090ab20e0da82fa7e92b3baef0b5e3db74806 | /DP/Minimum Path Sum.cpp | 37e351b63f81b63f55aa67bb826e3d9f1c39bc95 | [] | no_license | iam-aniket/Interview-Prep | 693a8c0f11eee20bd80a7a21569dcab99a316694 | 44bc84e65fa0baa2769853ccc54028543b85f60e | refs/heads/main | 2023-04-01T14:52:29.445012 | 2021-04-08T15:27:29 | 2021-04-08T15:27:29 | 306,826,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | Minimum Path Sum.cpp | #define rep(i,a,n) for(int i = a; i < n; i++)
class Solution {
public:
int minPathSum(vector<vector<int>>& a)
{
int m = a.size();
int n = m ? a[0].size() : 0;
rep(i, 1, n)
a[0][i] += a[0][i - 1];
rep(i, 1, m)
a[i][0] += a[i - 1][0];
rep(i, 1, m)
{
rep(j, 1, n)
{
a[i][j] += min(a[i - 1][j... |
9e766e775ff15ed424e86d21d5402227d0c70108 | 0d466c823015789e2df1c792af23b41b4f569f6a | /src/cerata/signal.h | ba81ffc01c3fda50c35f7f044d511b1cda992523 | [
"Apache-2.0"
] | permissive | abs-tudelft/cerata | 44a760b32e99c4d97c83fff51f8d9666b170839d | 2ae66df995910429f51fed68c95f4823bba5dae8 | refs/heads/develop | 2020-12-20T07:07:13.229223 | 2020-11-24T13:16:37 | 2020-11-24T13:16:37 | 235,993,608 | 3 | 2 | Apache-2.0 | 2023-02-27T15:40:28 | 2020-01-24T11:50:47 | C++ | UTF-8 | C++ | false | false | 1,753 | h | signal.h | // Copyright 2018-2019 Delft University of Technology
//
// 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 applica... |
8973cde5840921b55b4e39bf39193e45be2c9a04 | 74c4472454beff8378ad20282eab83cde2bacea2 | /operations.h | de812d24309f52020451091f4dbf307dbd683044 | [] | no_license | Visorak/MathProject | dfb4a8b76fa5d18b93ea72ba2e856a6d5d1888d3 | 2145c3b9fa4c319ee48ff2c318dbd1de6e29e40a | refs/heads/master | 2020-04-14T19:51:17.014265 | 2016-09-12T08:44:33 | 2016-09-12T08:44:33 | 67,986,940 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,232 | h | operations.h | #ifndef OPERATIONS_H_INCLUDED
#define OPERATIONS_H_INCLUDED
/*class Matrix;
class Vector;*/
#include"C:\VisoGor\MyMath.h"
class SystemOfEquations;
class Operations
{
private:
enum WayIntegration{Trapezoid=1,Simpson=2,Int3D8=3,Gauss=4};
double der(double **u,int i,int j,double h);///произ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.