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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f7a6322f4a7ca98a0ef36134b0eae597ed9823b | f4e0483ce48c612a8053af127b33e6ab97152cbf | /src/QSS/Variable.hh | 0f9be064e4ab19e1c967722fdcc643b1a10a039c | [
"BSD-2-Clause"
] | permissive | NREL/SOEP-QSS | ab8983f2ed315ee858e1657769e114f7a32bb2db | 3c4d4ab786fe9349e5fb575ab70bbd9ef1debd94 | refs/heads/master | 2023-08-17T15:00:24.588987 | 2023-08-13T04:02:13 | 2023-08-13T04:02:13 | 92,848,226 | 13 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 37,856 | hh | Variable.hh | // Variable Abstract Base Class
//
// Project: QSS Solver
//
// Developed by Objexx Engineering, Inc. (https://objexx.com) under contract to
// the National Renewable Energy Laboratory of the U.S. Department of Energy
//
// Copyright (c) 2017-2023 Objexx Engineering, Inc. All rights reserved.
//
// Redistribution and u... |
310dffbd6d51a9f60971b86f1c1a600f37fc05df | 863b305dd04beb45b7bfe8b372feed6f2dc6ad75 | /code/exercises/_01_dancing_light_1/_01_dancing_light_1.ino | cb9c7e6504a150d28267cc7fa1f854c5c605c456 | [] | no_license | rhalf/ws_arduino_aceduino_training_shield | dabdc3cf86902b64f36427b346431ba224f278bb | 4216052a8356f7f3c7aec6f43a9014dd1ca1634c | refs/heads/main | 2023-07-15T03:38:05.692158 | 2021-09-03T02:39:41 | 2021-09-03T02:39:41 | 396,804,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | ino | _01_dancing_light_1.ino | uint8_t ledArray[8] = {
11,12,13,14,15,16,17,18};
uint16_t delay_master = 100;
void setup()
{
for (int i=0; i<8; i++)
{
pinMode(ledArray[i], OUTPUT);
}
}
void ledArray_blink()
{
int j;
for (int i=0; i<=3; i++)
{
j = (7 - i);
digitalWrite(ledArray[i], HIGH);
digitalWrite(ledArray[j], HI... |
f56a40ddbb12d428ab7fc3952a9e239cd4883c91 | 966dc17abfc38c3a11e4d4798813350448f25dd5 | /剑指Offer/41.cpp | 18225e1d8ab298301ae88652f71c07f9fedc9c84 | [] | no_license | superlb/MyLeetcode | fa8b041339c1f803b4f0432fe6bd593a2f4e8949 | ae617c7e858636b026ba3c323f37972dda64b87e | refs/heads/master | 2021-08-04T02:43:16.049436 | 2021-07-24T14:03:05 | 2021-07-24T14:03:05 | 205,500,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | 41.cpp | class MedianFinder {
public:
priority_queue<int> q1;
priority_queue<int,vector<int>,greater<int> > q2;
/** initialize your data structure here. */
MedianFinder() {
}
void addNum(int num) {
q1.push(num);
q2.push(q1.top());
q1.pop();
if(q1.size()+1<q2.size())
... |
f7b290234c15cc35cf7583cc9e9b2bcedc54890e | 8a55bdbc1e953b987bc47303059f51b75225c559 | /Tetris_Milestone_Final/game.hpp | 3518c6e44b024b65d3e76301878f29fa6babe81e | [] | no_license | dmr121/origin | 05483ff6e566a8531d960e6b7ff2d83749940bd6 | a49e76192de207bca99f43a85b485030b77883cf | refs/heads/master | 2020-04-17T04:30:21.333648 | 2019-05-01T23:48:00 | 2019-05-01T23:48:00 | 166,232,805 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,302 | hpp | game.hpp | #ifndef GAME_HPP
#define GAME_HPP
#include <SFML/Graphics.hpp>
#include <time.h>
#include "figure.hpp"
// I took these event classes from your gitlab
struct event_listener
{
// Window events
virtual void on_close() { }
// Keyboard events
virtual void on_key_press(sf::Event::KeyEvent) { }
};
struct event_so... |
c6222d80c18b56db11f6acdf6fbcde2c09b6dc5f | 9b35b794dc418c6ae74e6de6a5b434dae851f785 | /Stacks and Queues/TrialAndErr.cpp | 867256955d12810cdc7a68800b1ab3575878e011 | [] | no_license | SwapnilGhanshyala/Algorithms | a7b35ad14d50e0ed73930d67cfa61647e9700c4c | f8770798e564ec6eecc75ae390a4dcc92db5d96e | refs/heads/master | 2023-01-02T13:52:41.621720 | 2020-10-24T12:34:56 | 2020-10-24T12:34:56 | 276,046,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,232 | cpp | TrialAndErr.cpp | #include <iostream>
#include <vector>
#include "setofstacks.cpp"
using namespace std;
int main()
{
setOfStacks ob;
cout<<"Enter Limit per stack\n";
int L;
cin>>L;
ob.setLIMIT(L);
bool flag=true;
while(flag)
{
cout<<"Enter 1 for push\n";
cout<<"Enter 2 for pop\n";
... |
d56d077f4c552aee8f1e667f17cd4ddf43643bab | 9b7bebad034787844f1f8d689360b786d86e15c4 | /libeventInterface/LibeventLog.cpp | f2638cc8bdd258bdcbb0332777065d669a5131ac | [] | no_license | nice01qc/CLionProjects | cae69489f7660389c4fcb01e5e40eceb9103c4eb | 3a478107b08ca3d452b4de69edba76c4ca845062 | refs/heads/master | 2021-05-10T16:13:14.372202 | 2018-04-24T11:32:59 | 2018-04-24T11:32:59 | 118,572,072 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,827 | cpp | LibeventLog.cpp | #include "LibeventLog.h"
#include <time.h>
static FILE *logfile = NULL;
LibeventLog::LibeventLog(void)
{
logfile = NULL;
}
LibeventLog::~LibeventLog(void)
{
fclose(logfile);
}
void write_to_file_fatal_cb(int err) {
if (logfile == NULL) {
return;
}
fprintf(logfile, "[**** fatal error ****] %d\n", err);
}
s... |
dd9598878d553133367e06f419d41ae56d1e5f73 | f7dc10a6f7a549e65ed6934a05a09c5502bb11ae | /Uri/1148.cpp | f376d2e7ab04aed2c649da4c2eb499103a5e5a4f | [] | no_license | ricardodalarme/Competitive-Programming | 2a2ddf159161d16791f3b528bb64327b80fc99a9 | 4297aa3a68ab80c0fb89d896c41caa147a5900fe | refs/heads/master | 2021-07-11T07:18:57.111129 | 2020-09-01T01:21:58 | 2020-09-01T01:21:58 | 196,125,823 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,061 | cpp | 1148.cpp | // https://www.urionlinejudge.com.br/judge/pt/problems/view/1148
#include <bits/stdc++.h>
#define MAXN 505 // alterar para diferentes problemas
#define INF 0x3F3F3F3F
#define pb push_back
#define mp make_pair
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pii> vii;
int graph[M... |
5bdd238d7234ce4b9b622e3ba2f20d25fae0656a | aa6fc342021a9fe012575e30dc67bca3410f63bc | /sdk/storage/inc/common/crypt.hpp | 6d6ceb7715a42cc80f221fa92c65dbf02a7ec869 | [
"MIT",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | CaseyCarter/azure-sdk-for-cpp | ea28fa2d7245c71ee99f666599d2b4632d7813f5 | b9212922e7184e4b03756f0f6f586aec00997744 | refs/heads/master | 2023-03-22T11:38:48.200367 | 2020-07-30T08:39:06 | 2020-07-30T08:39:06 | 283,880,365 | 0 | 0 | MIT | 2021-02-23T00:43:58 | 2020-07-30T21:30:01 | null | UTF-8 | C++ | false | false | 380 | hpp | crypt.hpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
#include <string>
namespace Azure { namespace Storage {
std::string HMAC_SHA256(const std::string& text, const std::string& key);
std::string Base64Encode(const std::string& text);
std::string Base64Decod... |
29d2f56307a08939d6215f4e8d2cc5b4332a785f | 684f8de409231c6c1fd5f615ace6fa4f0b10d63c | /Source/Qube03/Private/Raycast.cpp | bffcb65a1ebe9bfa013226e0c6d3d352c66f4f60 | [] | no_license | ja179053/QUBEToxic | fd882b54e17a5b947eb21f047d0780916e1fc376 | d58281479773e2d96d86e7790adceef73826f14b | refs/heads/master | 2020-03-22T09:30:50.315734 | 2018-07-05T11:53:09 | 2018-07-05T11:53:09 | 139,842,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | cpp | Raycast.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Raycast.h"
// Sets default values
ARaycast::ARaycast()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called wh... |
d18fb83fc02c871de5e78ecdef847854bfb367c9 | 34d2c031bfe6c88d7d610317e90451b42aeada17 | /msvc2015_5.14.1_x64_vrg/lib/cmake/Qt5Gui/Qt5Gui_QTiffPlugin_Import.cpp | 1cc0aa9c435a3c402df99feb8400a7b2237292c7 | [] | no_license | Antee37/vrgQt | 125315a9cc95ceb42a2238a2c9b8adc422167bfe | bc9d9fb6dd0e21d26fda5369c4d8f88ef605dd28 | refs/heads/master | 2021-05-20T20:00:23.673419 | 2020-04-02T08:36:41 | 2020-04-02T08:36:41 | 252,399,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51 | cpp | Qt5Gui_QTiffPlugin_Import.cpp | #include <QtPlugin>
Q_IMPORT_PLUGIN(QTiffPlugin)
|
945ba84a28335b27bfbc3755c4aac9f45c50d57c | e5720f95696653b496e5f927eac7492bfb9f132c | /0501-1000/0714-Best Time to Buy and Sell Stock with Transaction Fee/cpp_0714/main.cpp | ed17e48cd85eac3a4cf19f0032679408c8440ea6 | [
"MIT"
] | permissive | ooooo-youwillsee/leetcode | 818cca3dd1fd07caf186ab6d41fb8c44f6cc9bdc | 2cabb7e3e2465e33e4c96f0ad363cf6ce6976288 | refs/heads/master | 2022-05-24T15:37:19.652999 | 2022-05-15T01:25:31 | 2022-05-15T01:25:31 | 218,205,693 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | main.cpp | #include <iostream>
#include "Solution1.h"
void test(vector<int> prices, int fee) {
Solution solution;
cout << solution.maxProfit(prices, fee) << endl;
}
int main() {
test({1, 3, 2, 8, 4, 9}, 2);
return 0;
}
|
cf4c9240eb2ac70761d74ea0a7f8730efc8ca476 | 596ccdd525620bfd8c2122a7ca8dd617d47be601 | /day08/ex02/mutantstack.hpp | fbebf58a51507b5ac62f6f7a8684fb56772f4613 | [] | no_license | Mouadzz/CPlusPlus-Pool | 93d0ea7306b6169d90247ad92f14fcae5d4b25a4 | 3e36761defd391196bd2adca8fc1dcc6a1ac67db | refs/heads/main | 2023-05-24T13:47:34.062972 | 2021-06-19T14:38:40 | 2021-06-19T14:38:40 | 346,739,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | hpp | mutantstack.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mutantstack.hpp :+: :+: :+: ... |
150a40cd49b9c05df9caed7352e9ba7dcd08f204 | 40e5247582dfaaab03399f1088806628fb57e7ad | /Contests/Codeforces/previous/868/A.cpp | ead925e03d1231000873b114ecb6c0e146f6f234 | [] | no_license | arvindr9/competitive-programming | 4e6eed7b3ef7d6056d7829b3054977579bed0cfb | 081c089caa7df96ade43ab4307463d15b56aebb4 | refs/heads/master | 2021-12-20T00:41:32.769536 | 2021-12-06T19:45:03 | 2021-12-06T19:45:03 | 110,597,496 | 0 | 1 | null | 2020-06-20T02:33:07 | 2017-11-13T20:20:24 | C++ | UTF-8 | C++ | false | false | 1,565 | cpp | A.cpp | #include <bits/stdc++.h>
// #include <ext/pb_ds/tree_policy.hpp>
// #include <ext/pb_ds/assoc_container.hpp>
using namespace std;
// using namespace __gnu_pbds;
typedef int int2;
#define int long long
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<double... |
21ec467876e8535f05646ff410716ada861452e7 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondFormats/DataRecord/src/EcalTPGTowerStatusRcd.cc | 042528aa1e93b150d7c066057dc66d68d0d12bdb | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 191 | cc | EcalTPGTowerStatusRcd.cc | #include "CondFormats/DataRecord/interface/EcalTPGTowerStatusRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(EcalTPGTowerStatusRcd);
|
a61384dc5980d7c73bf3515fa0a5289beb460476 | 82815230eeaf24d53f38f2a3f144dd8e8d4bc6b5 | /Airfoil/wingMotion/wingMotion2D_pimpleFoam/0.39/Uf | a9db0356bc045eceb61f7c8ad508a6a404239ec3 | [
"MIT"
] | permissive | ishantja/KUHPC | 6355c61bf348974a7b81b4c6bf8ce56ac49ce111 | 74967d1b7e6c84fdadffafd1f7333bf533e7f387 | refs/heads/main | 2023-01-21T21:57:02.402186 | 2020-11-19T13:10:42 | 2020-11-19T13:10:42 | 312,429,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974,794 | Uf | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
8c02fd675298f97584c0800983fc03aaf23128a1 | f47c341204301c964732dc680489111051d8428f | /Src/ResourcesManager.h | b2f0e6a59dc02dd268731b24b77dee8b5230a3ba | [] | no_license | nhathuy13598/Demo-Source-Game-2 | 53b90956b421ddc63b710cbe956fb4b7609e85f3 | e2a447b11632bf7cb65e2acd3612ffe8c84a36eb | refs/heads/master | 2020-06-23T02:01:08.579438 | 2019-07-23T16:21:51 | 2019-07-23T16:21:51 | 198,467,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | ResourcesManager.h | #include <map>
#include "Framework.h"
#define CacheImageName(imgN, w, h) ResourcesManager::getInstance()->cacheImage(imgN, w, h);
class ResourcesManager
{
public:
ResourcesManager();
~ResourcesManager();
static ResourcesManager * getInstance();
static void DestroyInstance();
Texture *cacheImage(const char *im... |
3f111fd6eec4f5b7caab467c7a95de453be72602 | aade1e73011f72554e3bd7f13b6934386daf5313 | /Contest/Europe/SEERC/2020/G.cpp | e483ccf707bf42c3fe2ae7a8395dc1b6fff6661b | [] | no_license | edisonhello/waynedisonitau123 | 3a57bc595cb6a17fc37154ed0ec246b145ab8b32 | 48658467ae94e60ef36cab51a36d784c4144b565 | refs/heads/master | 2022-09-21T04:24:11.154204 | 2022-09-18T15:23:47 | 2022-09-18T15:23:47 | 101,478,520 | 34 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,405 | cpp | G.cpp | #include <bits/stdc++.h>
using namespace std;
int sign(int x) {
return x > 0 ? 1 : -1;
}
struct node {
node *l, *r;
int mn, mncnt, tag, len;
node(): l(0), r(0), mn (0), mncnt(1), tag(0), len(1) {}
void addtag(int v) {
tag += v;
mn += v;
}
void push() {
if (tag) {
l->addtag(tag);
... |
1e7d3ccdd24da9f45b3a808e43c0be12e08dd071 | 4a324ab1e4c41921e98b8e20ffd96c6cc453f2f7 | /Code/NNTLib/ContrastiveDivergence.cpp | 0fa9f6a9bcfb514e04e67e54848df549a9ccb461 | [] | no_license | Bediko/Masterarbeit | e0138beb8a1bf018daf0db0a30ec95a9e60e2ecb | 6292b27fb8119186e1bbd7e9b2252614be152d30 | refs/heads/master | 2016-09-05T13:58:10.946142 | 2015-08-25T15:28:55 | 2015-08-25T15:28:55 | 32,718,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,771 | cpp | ContrastiveDivergence.cpp | #include "ContrastiveDivergence.h"
#include "Backpropagation.h"
#include <iostream>
#include "DataContainer.h"
#include <omp.h>
#include <random>
namespace NNTLib {
/**
* @brief Gibbs sampling
* @details Makes gibssampling for specified number of steps
*
* @param gibbssteps Number of Gibbs Samplings
* @param so... |
ed7a880ad544c68efc80964f7b4f548afda8785c | ea5d404e7f103dc4bd48260928348d810282ac51 | /Old Code/anderson_darron_assignment_hw1.07/monster_template.cpp | 0b3827045a873f00d2f3dd934259631834f604d1 | [] | no_license | Darkonis/rlg327 | 8625cd314f427662bf655cdfd51dc2722e407533 | e15d9f5da9ccbdb9fb64533c50b6a15bb81f3e9a | refs/heads/master | 2020-03-30T05:14:33.310911 | 2018-12-19T23:03:35 | 2018-12-19T23:03:35 | 150,788,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,990 | cpp | monster_template.cpp | #include "monster_template.h"
#include "dice.h"
monster_template::monster_template()
{
/* symbol=' ';
speed=100;
color="";
health=dice(10,0,1);
description="ERROR";
attack = dice("0+0d0");
health=dice(1,1,1);
abilitys=NULL;
name="shit";
*/
}
void monster_template::set_symbol(char in)
{
symbol =... |
749bc874f6492980e5d2e5abcea59e9a6b7c7057 | aa4bdcdf47e15ec43b073e602ca15e7e8dc916b0 | /codeforces/767b.cpp | 176c1187a80372dee3a5f9a48ca3f585661eb240 | [] | no_license | newpolaris/algorithm | dbd51d036f4f892702403200919efb872aa92ec6 | 70e7fdc96811da7cda681cb96d7b5041d7932c76 | refs/heads/master | 2021-01-12T17:16:36.359070 | 2019-11-24T17:29:34 | 2019-11-24T17:29:34 | 71,535,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,320 | cpp | 767b.cpp | #include <iostream>
#include <queue>
#include <algorithm>
#include <map>
#define ALL(x) (x).begin(), (x).end()
#define REP(i, a, b) for (int i = (a), i##_end_ = (b); i < i##_end_; ++i)
#define SZ(x) (int((x).size()))
#define x first
#define y second
using namespace std;
using ll = long long;
int main() {
#ifdef _DE... |
1f2e1447508195ed3cc53be3ebbb9833bd2a1b21 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /cc/layers/painted_scrollbar_layer_impl_unittest.cc | 5e659c5133fd3e9dbdd35f5aae7ff0565a89d2b6 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 8,971 | cc | painted_scrollbar_layer_impl_unittest.cc | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/layers/painted_scrollbar_layer_impl.h"
#include <stddef.h>
#include "cc/resources/ui_resource_bitmap.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "... |
c36d759a264dfd0bb78632e15d5fec06c834567f | 06d119abb621e9f60a1e91803f1fdc74984dd278 | /leetcode/findMinHeightTrees.h | d84bec28b5b9dda9e87b222e858125707b5df050 | [] | no_license | cccoast/leetcode_cpp | f716ed396c0088cd396c53ae10acd3a89c29141a | 85bd209ae4ca440992e9dce22ab406090983a7c9 | refs/heads/master | 2023-07-20T13:26:01.509144 | 2023-07-13T16:38:11 | 2023-07-13T16:38:11 | 225,028,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,194 | h | findMinHeightTrees.h | #include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
class Solution {
unordered_map<int, vector<int>> graph;
unordered_map<long long, int> dp;
int global_least_height;
public:
int dfs(int father, int cur_edge) {
if (father != -1) {
if (dp.find(father *... |
7a320c6ca80d75efab7cafc5c4f8179e42d3d1aa | 287985adce2e822cf9519dee9dcf7dd2ef66dfb7 | /Homework/HW1/provided/Maze.cpp | c3e9197cac88e46c615b351e42804c7a09658b59 | [] | no_license | joshrymkiewicz/CSCI-3010 | be3c935a6716dcf0c30d0b3ac990c43d15abf1e3 | 0e81d877272b3f2f8a852323d515cf173d7f9222 | refs/heads/master | 2022-03-14T16:38:59.242118 | 2019-11-30T19:48:09 | 2019-11-30T19:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,937 | cpp | Maze.cpp | /**
Oceane Andreis
Homework 1
Date: September 12 2019
This program is my maze.cpp
https://stackoverflow.com/questions/18335861/why-is-enum-class-preferred-over-plain-enum
https://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c
https://stackoverflow.com/questions/5019393/random-number-gene... |
5ae8210c5c5f853c12de201e6fde6360681991b4 | d19e32a89c9f3756dd375e33a1c51bbeb2551649 | /C++/TestSBB/SBB/include/sbgost341094.h | 894d2c725b1183197c21971c4abecf10b40bfa09 | [] | no_license | hackerlank/code_samples | 9982e3a8c36300f1fcfcd56eec46e82f80b25fad | 7be3fe03d901f405f650156890b55c455929afdd | refs/heads/master | 2020-06-12T18:38:24.684787 | 2016-09-12T20:50:37 | 2016-09-12T20:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,326 | h | sbgost341094.h | #ifndef __INC_SBGOST341094
#define __INC_SBGOST341094
#if _MSC_VER > 1000
# pragma once
#endif // _MSC_VER > 1000
#include "sbdefs.h"
#include "sbcore.h"
#include "sbsystem.h"
#include "sbtypes.h"
#include "sbutils.h"
#include "sbstrutils.h"
#include "sbconstants.h"
#include "sbmath.h"
#include "sbgostcommon.h"
#pr... |
65440c462b5af97118ee30e3af4b2097b980276a | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/DynamicProgramming/337_HouseRobberIII.cpp | 42a578d41ff1b053403e75915b283fb4675e213c | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | C++ | false | false | 1,066 | cpp | 337_HouseRobberIII.cpp | /*
* @Author: xuezaigds@gmail.com
* @Last Modified time: 2016-07-02 16:21:11
*/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
c.. Solution {
public:
int rob(TreeN... |
f3749b7f92038e873f1c4da3d792e26a48e8796e | 9b0710bfcf7aea3c2b2b339cce5b1bc064f56e7f | /Creatures.h | 21e92fc04ffdfd006e3f8ae09ba2a8fee9ecc92b | [] | no_license | boggri/PacMan | 663b3be47acbdae0e5717c4726a0ba608db4dc12 | 114fdecb990758d842b807f9041f4b8e81bc0d55 | refs/heads/master | 2020-05-03T05:43:59.425967 | 2019-06-08T15:33:01 | 2019-06-08T15:33:01 | 178,455,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | h | Creatures.h | #pragma once
#include "includeAllHeaders.h"
#include <iostream>
class Creatures
{
protected:
///CONSTANTS///
// Creature walk animation
const float ANIMATION_SPEED;
const int NUM_OF_WALK_FRAMES;
//Direction
enum DIRECTION { UP, RIGHT, DOWN, LEFT }; // States of the direction.
bool move[4]; // 4 ... |
22b4cc2dfa6f880800b10053ea07c4913232e205 | 9c69f7f7ae42c4df28201cf208beaea112398dc0 | /gstmultimedialib/Multimedia/Multimedia/GstException.cpp | 7b34231297304e8684319ebcbe205c5fdad31cc7 | [
"BSD-4-Clause"
] | permissive | alekstheod/gstmultimedialib | 1cc2545b6f228f7b50658a2c217c6b949529fa72 | ce9699e402d6870bf2724e09e89c03fe8a52fd16 | refs/heads/master | 2016-09-05T11:08:30.401766 | 2015-03-22T11:49:41 | 2015-03-22T11:49:41 | 32,673,295 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 352 | cpp | GstException.cpp | /*
* GstException.cpp
*
* Created on: Jun 4, 2010
* Author: m1cro
*/
#include "GstException.h"
namespace multimedia {
GstException::GstException(const std::string& message) :
utils::AException(message) {
// TODO Auto-generated constructor stub
}
GstException::~GstException() throw () {
// TODO Auto-... |
b7da0f51a49156ec705a6138e736eca0c2d8466e | ce477ba0ea3d2576eddfe6568d89c3d6fe671d0c | /Navasim/WaveModel_v10/Simulation/Simulation.Impl.cpp | 45f3d214105dccd8ea83600d39cba02176d4be56 | [] | no_license | bramwellandcompanyinc/GitPublic | 20d452cb15cf93e6414056b4805feba5beebfe47 | 419e3926b540f6ca067c1f4b4c3dc3b09ce5c2b3 | refs/heads/master | 2021-01-19T18:48:16.434283 | 2015-05-24T05:24:47 | 2015-05-24T05:24:47 | 35,192,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,629 | cpp | Simulation.Impl.cpp | #include "StdAfx.h"
//#include "Assert.h"
#include <Assert.h>
#include <GL/gl.h>
#include "LookupTables.h"
#include "HighResTimer.h"
#include <Geometry/Primitives.h>
#include <Simulation/Simulation.h>
#include <Factory.h>
Simulation::Simulation(IWindowEventSource* ap_wes)
{
//Assert(ap_wes != nullptr);
if (ap_wes =... |
fb7deba74e6e1d42c1c6c200843eeca3f3add222 | b47a3913c73817c7ae509e2cb777b54da019ecf3 | /2 - CPPLab/9 - LinkedList/Linked List - Add At Tail.cpp | 71331271d2dd28fa07364e63f726c655bc14f84d | [] | no_license | AdamLaV/CPPLab_2 | 3dacacbd49bdbbf8c7221b01a8fc219df763762b | 5a36838eba660fb73cef361ab772c5b449c05111 | refs/heads/master | 2020-05-01T01:50:09.011766 | 2019-03-22T14:56:18 | 2019-03-22T14:56:18 | 177,204,034 | 1 | 0 | null | 2019-03-22T20:18:42 | 2019-03-22T20:18:42 | null | UTF-8 | C++ | false | false | 1,055 | cpp | Linked List - Add At Tail.cpp | #include <iostream>
using namespace std;
template<typename T>
class Node {
public:
//Value stored in this node
T element;
//Next node in list (nullptr == end of list)
Node* next = nullptr;
//Node must be constructed with a value - stored as element
Node(T value) : element(value) {}
};
templ... |
fd93e7c077d41437f64156f6fea9c93580e8b2c1 | d3e7fe49f7117b8085fd38da346263e5c9dfac93 | /executables/GLFW/LoadTexture/src/main.cpp | 29c98588ab302001d63656628b0035d8db69b187 | [] | no_license | hubartstephane/Code | e4ae665dbe75102238f1d9e6042e15006bbe2a64 | 33f25a74f934c32a6e8168b7f0d0c908c8763d53 | refs/heads/master | 2023-08-28T22:27:37.771577 | 2023-08-12T08:55:50 | 2023-08-12T08:55:50 | 63,816,190 | 8 | 0 | null | 2022-12-11T17:20:25 | 2016-07-20T21:35:27 | C++ | UTF-8 | C++ | false | false | 4,376 | cpp | main.cpp | #include "chaos/Chaos.h"
class WindowOpenGLTest : public chaos::Window
{
CHAOS_DECLARE_OBJECT_CLASS(WindowOpenGLTest, chaos::Window);
protected:
virtual bool OnKeyEventImpl(chaos::KeyEvent const & event) override
{
if (event.IsKeyReleased(GLFW_KEY_KP_ADD))
{
ChangeTexture(texture_index + 1);
return true... |
d9c4b9e43c856c055570cb88e1697937d1389019 | 64bb79337ab4da58a45bbfb322f054f196825b4f | /C++ Code practice/functions.cpp | 727916b20693bfbe55290ce91428929d21a00b74 | [] | no_license | kokfahad/Problems-Solving- | 08f2caa9344e53f0aab10af121563c43207c0ab6 | 4e0eca18c6b609d8d9eb13d2bb6591b425e58fa2 | refs/heads/main | 2023-06-07T15:57:51.366088 | 2021-05-28T17:30:33 | 2021-05-28T17:30:33 | 371,772,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | functions.cpp | #include<iostream>
using namespace std;
int func(int a,int b)
{
int sum=a+b;
return sum;
}
//Function Prototyping
void g();
int main()
{
int x,y;
g();
cout<<"Enter 1st and 2nd value: "<<endl;
cin>>x>>y;
cout<<func(x,y)<<endl;
}
void g()
{
cout<<"Hello,Good Morning\n";
}
|
4ca69838922d0d858179987d2798092b2cc9e852 | a6c514d7e6bde621137cced60030feaa9c7a9bdf | /source/Detector/Amptek/SGM/AmptekSDD123DetectorGroupSGM.cpp | 935de0e5d87599ddccd97de5b461dbc7c5cb29c0 | [] | no_license | acquaman/AcquamanDataServer | 4da2e3962b35fb8de0f955d55aa6c0c881903d95 | 7891f8ccdeb6a5b89e1bf00040d06730382d4fb6 | refs/heads/master | 2016-09-05T09:03:00.541441 | 2016-02-08T20:17:03 | 2016-02-08T20:17:03 | 37,996,517 | 2 | 0 | null | 2016-02-08T20:17:04 | 2015-06-24T16:27:18 | C++ | UTF-8 | C++ | false | false | 1,237 | cpp | AmptekSDD123DetectorGroupSGM.cpp | #include "AmptekSDD123DetectorGroupSGM.h"
#include "DataHolder/AMDSDataHolder.h"
#include "Detector/Amptek/AmptekSDD123ConfigurationMap.h"
#include "Detector/Amptek/SGM/AmptekSDD123EPICSDetectorManager.h"
AmptekSDD123DetectorGroupSGM::AmptekSDD123DetectorGroupSGM(const QList<AmptekSDD123ConfigurationMap *> &configura... |
1d50f27caaa275fbee55f6edca131ec35f8840a7 | 2f63a140583ad6bea657ae3f7c1ed2a01f5af03b | /sqf/src/sp_proxy/sp_process.h | 9c859793cc02d40df6929744400fb58e7ee58a65 | [
"Apache-2.0"
] | permissive | fuentead/recovery | f302315b4744a5805f2ba18e31617e5d88601674 | 967255b2c7453aac0e2125fcea0dc421524bd1af | refs/heads/master | 2020-12-27T12:05:56.256957 | 2014-12-12T18:00:54 | 2014-12-12T18:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,429 | h | sp_process.h | // @@@ START COPYRIGHT @@@
//
// (C) Copyright 2008-2014 Hewlett-Packard Development Company, L.P.
//
// 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/lice... |
3ba6084814172a338f26e86afd31a370eee278c8 | 6cca3c0efac36941489462d7065b858c74b04c11 | /example/version2013/Study Notes/1-4.Variable/mian.cpp | b35bc54efbf7e4e21e39a45988b5d9c88d5f4df5 | [] | no_license | ericluo1123/myCplusplus | 6f1df06e354c98cd1bb82522fdbc81e6d6e05e25 | a1740692961e835b9bbcdcb75c2b9e01fda427e1 | refs/heads/master | 2020-04-06T07:01:18.498721 | 2015-03-30T09:38:42 | 2015-03-30T09:38:42 | 31,966,454 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 4,707 | cpp | mian.cpp |
#include <iostream>
using namespace std;
int main(int argc, char* argv[]){
cout << "*****Variable***** " << endl;
cout << endl;
//沒有初始其值,所以第一次顯示時會出現不可預期的資料
int age1;
double score1;
char level1;
//「指定運算子」(Assignment operator)=來指定變數的值
cout << "*****指定運算子***** " << endl << endl;
age1 = 5;
score1 = 80.0;
... |
f1667498f462d2e3fb66d5a28135f217f26d1743 | f22013843b426169488476296211d0f0183ee60e | /chapter2-1/subset_sum_problem/atton/answer.cpp | bb17f33c122430a0396abe06a8a29da07a4c7f0b | [] | no_license | ie-ProCon/ant_book | 2c275914290c60c545cebd84c062ae2faab38f01 | 3821a5504df08a70f150efe2b25c7e7fde804546 | refs/heads/master | 2021-01-15T13:48:34.489883 | 2014-02-18T03:09:41 | 2014-02-18T03:09:41 | 13,138,340 | 1 | 0 | null | 2014-02-18T03:09:41 | 2013-09-27T01:12:00 | C++ | UTF-8 | C++ | false | false | 685 | cpp | answer.cpp | /* Programming Contest Challange Book P.34
* Subset Sum Problem
*/
#include<iostream>
int n;
int numbers[30];
bool dfs(int target_num, int sum, int index) {
if (index == n) return target_num == sum;
if (dfs(target_num, sum + numbers[index], index+1)) return true;
if (dfs(target_num, sum, index+1)) ret... |
a8f2b43b4cce671aeb4964db5ad644387b3bb661 | c4936b66350afd23430adf88e79dbb6aa5d3bea3 | /Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharp_placeBox3405830008.h | eb9eb9975efd8ad572dd5fbf47e23cc2f1b0df2c | [] | no_license | lucasfutch/MC_AR | 68ce79bf0f23fa11f3828679e076db718d0d6bf9 | b866235bc60989061fd56f20b0a9dd3fe90df766 | refs/heads/master | 2021-01-01T18:54:56.905848 | 2017-08-08T22:42:50 | 2017-08-08T22:42:50 | 98,461,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,005 | h | AssemblyU2DCSharp_placeBox3405830008.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"
#include "AssemblyU2DCSharp_placeBox_Selected3327221688.h"
#include "UnityEngine_UnityEngine_Vector32243707580.h"
// Unit... |
fb038d79d0189b47dd3b13ef35918b6f9cc535c9 | 2c917e0f81a2ffb746e53f723f0dea182b8cec14 | /Direct3D/Physics/RigidShapes.h | 8bb1a0b559a901f9df85345043a2e568c692744d | [] | no_license | mukbe/azure | 599f4e3a288fd4e050d25474c1bb039c3ce77f4e | f5df71f38f32cb6d996086f424e562b0d7fe6282 | refs/heads/master | 2021-07-11T05:26:02.906571 | 2019-01-30T21:20:58 | 2019-01-30T21:20:58 | 143,990,909 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,480 | h | RigidShapes.h | #pragma once
#include "IShapes.h"
#include <src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h>
class ShapeBox : public IShapes
{
public:
ShapeBox(D3DXVECTOR3 size = D3DXVECTOR3(1,1,1) , float m = 1.f)
:IShapes(m)
{
memcpy(&(this->size), &size, sizeof(D3DXVECTOR3));
shape = static_cast<btCollisio... |
9920aa23c43bdeb94fff458baee5218a17e7d69e | 3da446541c79fb1d788daa62e83e86dc0b9aa3df | /src/Centipede.hpp | 8eaaf246f0c528019a4b110dab746cc7d15ab1d3 | [] | no_license | paul-maxime/centipede | 4d829e47597582b7c795cb46d69ec55a27cdca0b | cccc40e05b137ce61477ddef662f2bc15c19b15d | refs/heads/master | 2021-01-11T10:23:08.626595 | 2016-09-24T20:34:01 | 2016-09-24T20:34:01 | 69,117,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | hpp | Centipede.hpp | #pragma once
#include "AEntity.hpp"
class Centipede : public AEntity
{
public:
enum { UP, LEFT, DOWN, RIGHT };
private:
sf::Sprite m_sprite;
Centipede* m_parent;
Centipede* m_son;
int m_oldDirection;
int m_direction;
int m_oldPosition;
int m_vertical;
float m_speed;
bool m_isHead;
bool m_downFo... |
0e5a675c2f108c5da277a7e8d95757cb9ca8538d | 4de7214080d7cc102de5cf44ff498b5d3d59716b | /PhantomEditor/PropertyDlgWndBase.cpp | e109198b8ce369d68a6d3999213a16c980a24e55 | [
"MIT"
] | permissive | DexianZhao/PhantomGameEngineV1 | 2aae624f7813222605a6097b15490c3277b60cd2 | cf8e341d21e3973856d9f23ad0b1af9db831bac7 | refs/heads/master | 2023-08-30T16:24:15.196393 | 2021-03-13T11:00:04 | 2021-03-13T11:00:04 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,405 | cpp | PropertyDlgWndBase.cpp | /*
幻影游戏引擎, 2009-2016, Phantom Game Engine, http://www.aixspace.com
Design Writer : 赵德贤 Dexian Zhao
Email: yuzhou_995@hotmail.com
Copyright 2009-2016 Zhao Dexian
-------------------------------------------------------------------------------------------------
------------------------------------------------------... |
49219701a2bd571b5b35dfb7fee2871394bd8951 | 34a7304240f0d6c36f4421726c22cbc8aa8cccdc | /Projekt1/MyFunctions.h | 8f1e4284afe94924bada0bf6db3647905ec16a5d | [] | no_license | Wojdylak/PEA | ef9616c79ba0695f10db922574ad054f38ad4b52 | c36dc2bf6f18f1e8b44b599f585b299141d8cddb | refs/heads/master | 2022-10-02T18:17:45.734278 | 2022-08-03T19:38:08 | 2022-08-03T19:38:08 | 156,931,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | h | MyFunctions.h |
const std::string INTRO =
"PEA projekt \n"
"Karol Wojdyla 235932\n"
"2018\n";
const std::string MAIN_MENU =
"Problem Komiwojazera. \n"
"\n"
" Menu Glowne: \n"
"1. Wygeneruj losowe dane.\n"
"2. Wczytaj dane z pliku.\n"
"3. Wyswietl dane.\n"
"4. Przeglad zupelny(brute force).\n"
"5. Podzial i ograniczenia.\n"
"6. Po... |
b1b97af9b0cbc0eed546276a1a4789a5d6a1f1d4 | 1e9a4d88470d07eaf586a60b4e3a8eb2aae5db04 | /uplink/src/world/computer/computerscreen/menuscreen.cpp | 80ee08ada7190c5274c61f34edd1b28080bd9118 | [] | no_license | SourceCodeDeleted/Cybrelink | 2caff93fc75bfd91eb568844ce206da375528a3d | 00a1f7cd6591e813a587d309a4c547e412c30839 | refs/heads/master | 2022-12-06T21:28:36.702008 | 2019-08-16T00:16:27 | 2019-08-16T00:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,313 | cpp | menuscreen.cpp | // MenuScreen.cpp: implementation of the MenuScreen class.
//
//////////////////////////////////////////////////////////////////////
#include "gucci.h"
#include "app/app.h"
#include "app/globals.h"
#include "app/serialise.h"
#include "world/computer/computerscreen/menuscreen.h"
#include "mmgr.h"
/////////////////... |
1d38a135c5657572df08ecae33f8e867f77141bb | 1a6f1df5d1cfcef3038a7f41cc4f78353892d7d6 | /decode.cpp | 470f32dbebbb0d0177ba9bf91668f2c33d9dacb4 | [] | no_license | mlavi16/fall-2020-135-lab-06-mlavi16 | 4b0f53e5d528f38c5f2eef26d3db33753c3a3a6d | 0b6d33c71524a7d75ccaf9e5330b57644b79757d | refs/heads/master | 2023-01-24T18:31:07.769516 | 2020-10-30T03:32:19 | 2020-10-30T03:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,795 | cpp | decode.cpp | #include <iostream>
#include <cmath>
#include <cctype>
#include "decode.h"
#include "decryption.h"
std::string decode(std::string encrypted_str) {
/*
Function decrypts a string encrypted by the caesar cipher, by trying every rotation and
calculating its distance to the vector of letter frequencies in the E... |
986594e947cd8b52e13377bcd1c76bd6d6675414 | 2305cf66b77bf02b9dfdfa9a622622aecb4d226e | /next_permutation.cpp | 67fe0c785ec1f48b4e5942ed3d11a952976f9cfb | [] | no_license | Sachin5411/Algo-Practice-C- | f59d8775e8b23f55dcec65b770576eec4fbfd0ed | 7c20ef865d63d278477657ab476c578bf8db1156 | refs/heads/master | 2022-06-13T20:54:35.449427 | 2020-05-07T03:28:59 | 2020-05-07T03:28:59 | 254,549,246 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | next_permutation.cpp | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int arr[1005];
int test,n;
cin>>test;
while(test>0){
cin>>n;
for(int i=0;i<n;i++){
cin>>arr[i];
}
next_permutation(arr,arr+n);
for(int i=0;i<n;i++){
cout<<arr[i]<<" ";
}
cout<<endl;
test--;
}
return ... |
1cbd40a61eed5304781911d95df966f693bc7435 | ed72d8c87cc95d76943927ce6d32cdea2a45138e | /utils/Utils.hpp | 0562918a0b6bb801ce4e26bf3baeaf7cff7ca71e | [] | no_license | ArtemKotovsky/file-signature | eea74749df3b2d834d677aff1b672d1361cbc56d | 34e1df114291ac4ced664ab95a93cae5d6a3b1c9 | refs/heads/master | 2020-09-12T04:57:50.405164 | 2019-11-30T16:11:53 | 2019-11-30T16:49:13 | 222,315,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | hpp | Utils.hpp | //
// Utils.hpp
// file_signature
//
// Created by artem k on 23.11.2019.
// Copyright © 2019 artem k. All rights reserved.
//
#pragma once
#include "Exceptions.hpp"
#include <string>
#include <limits>
namespace utils
{
template<typename T>
T toUnsigned(const std::string& s)
{
size_t pos = 0... |
b3d14d3c1bcb0aa5ce0d408740c7f8a35cd7bfd5 | a6ca754bb2e1720d47e17e86e41f9fad07be41d1 | /updateperson.cpp | 2874df79ab005cd44987b47e5e6fe4c340fe8e89 | [] | no_license | chepiga1995/db_project | 2cd9ed69c444f4aa7c551e75ed711e6143020a4e | adca11ece25fc4d2c6147edb0b64ee6de8ea1cfa | refs/heads/master | 2021-01-17T12:39:51.486787 | 2016-07-26T12:20:24 | 2016-07-26T12:20:24 | 56,368,091 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,928 | cpp | updateperson.cpp | #include "updateperson.h"
#include "ui_updateperson.h"
#include <QSqlQuery>
#include <QSqlError>
#include <QDebug>
#include <QMessageBox>
#include <QSqlRecord>
UpdatePerson::UpdatePerson(QWidget *parent, QString per) :
QDialog(parent),
ui(new Ui::UpdatePerson)
{
ui->setupUi(this);
person = per;
QSq... |
d83944200058ad140cca26a1bd05c9a7a10d4b88 | 5eaf81a6fb9b634320247b57197a5f50900fad5e | /cppStuff/30DaysCode/day4/samString.cpp | ec2bc04f531a14946e9a0137cd952544975a4506 | [] | no_license | maguas01/hackerRank | 0afd9ef1e8fd6fd9aeeb8479b38033e373efae7e | 607f2c50888f7986b7a5f155bbc8c75fb32e6257 | refs/heads/master | 2020-06-27T22:38:09.802110 | 2017-11-09T21:50:27 | 2017-11-09T21:50:27 | 97,077,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | samString.cpp |
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
long long int subNum, sum = 0;
string aString, subString;
cin >> aString;
int n = aString.size();
for (long int k = 0; k < n ; k++)
{
fo... |
a08e8df3c0e4db4b450b3e16471de6423a887c36 | 45bb84dc26ee3c479c428e8eba06d7255c126198 | /Source/Test2DPlatformer/PlatformerGameViewportClient.cpp | 62aa09f96ebcd20eb6c0ec7fe9b9925aa7cb4aff | [
"MIT"
] | permissive | tanis2000/Unreal-Test2DPlatformer | 0c819c7833045cc7a6589ed3364c39d7a426f7d4 | cb4ce2d8640f610600263e914f71be08157fe864 | refs/heads/master | 2023-08-21T06:37:20.164328 | 2023-07-11T11:26:13 | 2023-07-11T11:26:13 | 48,060,904 | 20 | 8 | MIT | 2023-09-13T07:54:59 | 2015-12-15T18:19:25 | C++ | UTF-8 | C++ | false | false | 790 | cpp | PlatformerGameViewportClient.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "PlatformerGameViewportClient.h"
#include "Test2DPlatformer.h"
bool UPlatformerGameViewportClient::InputKey(const FInputKeyEventArgs& EventArgs)
{
if (IgnoreInput() || EventArgs.IsGamepad() || EventArgs.Key.IsMouseButton())
{
... |
f0bb87b5471efb94ae4d241b008a65c12f101e9a | 434ff801f9f28918c9e572bb752d0fc5a181edb2 | /c++_oop/static_data_member.cpp | aa37126962753359305cd24f98f67d49da6f9505 | [] | no_license | ayushikhandelwal99/C_basic_to_adv | bdf63dd202a9ef287f558a959a82a04e157f8a76 | 9cfcc20c10a2b1c19e3e32f5c8e3a49c581df1fa | refs/heads/master | 2022-12-26T00:52:48.973577 | 2020-10-15T05:31:03 | 2020-10-15T05:31:03 | 279,268,546 | 0 | 1 | null | 2020-10-15T05:31:04 | 2020-07-13T10:15:51 | C++ | UTF-8 | C++ | false | false | 1,078 | cpp | static_data_member.cpp | //static data members are generally used to store values common to the whole class
//only a single copy of static data member is used by all the objects
//it can be used within the class but its lifetime is whole programm
// static value ki default value 0 hoti h
//*for making a data member static, we require
//1. Decl... |
44cc63abb9687f9052a3e6bb6d6b8ac40adf6096 | 910d473bed26c664950917a5e4e9ab81d3d6d0b1 | /Yolo/yolov5.cpp | 52414cbbd5ff44a0b42b93454e495e93bf11979c | [] | no_license | monoloxo/Mask_Detector | 6776e219ab56b6ce3e3afa02df8a99c4e9f77aff | 4b98eef741effc589ecdc4a2806d38ac72172719 | refs/heads/master | 2023-09-02T02:34:36.834285 | 2021-11-06T09:48:25 | 2021-11-06T09:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,035 | cpp | yolov5.cpp | #include"Yolov5.h"
#include "string.h"
#define USE_FP16 // set USE_INT8 or USE_FP16 or USE_FP32
#define DEVICE 0 // GPU id
#define NMS_THRESH 0.4
#define CONF_THRESH 0.5
#define BATCH_SIZE 1
#define cam_U0 323.3152
#define cam_V0 227.4562
#define cam_F 828.0
using namespace nvinfer1;
// stuff we know about the ... |
cbdfc12f08c42c450314518a0c26d93deff0abdb | 94e7287d959d162f5dfe726fac66a22f6950e119 | /split_fast.cpp | e4e631c7354d94846f46b263c8cf2ebe8f89b6cd | [] | no_license | pkufergus/cpp_test | 54abbb88b8d5d0622fbd9e8e1b6f0a796cbacde9 | 7b006255c63513d9020c1e36433f7eed2ef102f1 | refs/heads/master | 2021-01-16T00:56:34.452286 | 2018-02-27T10:13:26 | 2018-02-27T10:13:26 | 99,985,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,720 | cpp | split_fast.cpp | #include <iostream>
#include <vector>
#include <map>
#include <unordered_map>
#include <unistd.h>
#include <sys/time.h>
using namespace std;
int split_fast(
const std::string& input_str,
const std::string& delimiter,
std::vector<std::string>& output_str_list) {
//output_str_list.clear();
... |
a751876b2ca3b80f507e96485bb4ec6118dd5738 | a106d1f8f21cd28fe73e286a90ee50ad543267b2 | /C/CPlusPlus/base/v0.05/util/Exception.h | 292de81e321969ed12057be8cf9c990c5b8fc66d | [] | no_license | zhangzewen/Network_Lib | 7f47ca5a5485bc611a349cc2892ed99112af5fdd | daef2ab8593423f6ee6a84fe54d4f2be040ee60b | refs/heads/master | 2020-04-16T16:12:23.145520 | 2016-05-03T10:50:29 | 2016-05-03T10:50:29 | 18,511,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | h | Exception.h | #ifndef __EXCEPTION_H_INCLUDED__
#define __EXCEPTION_H_INCLUDED__
#include <exception>
namespace Util
{
class Exception : public std::exception
{
public:
Exception() : message_(0), stack_(0) {}
Exception(const char* what);
Exception(const std::string& what);
Exception(const char* file, int line, const char* what... |
8311ad993ca2a628c5ee43c35a61a62a541c531d | 8e78f5da3c1b3467560ab39054a71e69f280b703 | /archieve/Luogu4151/Luogu4151.cpp | 607cb5ae0574367f5cda140f6c378d32f55f2837 | [] | no_license | ycsgg/oi_code | aed9922a3bd53ef5ee88450d80af9fbb79a48479 | 1f98dca6fb0b69da2f566276cce89817fe828edd | refs/heads/main | 2023-09-03T04:55:49.611275 | 2021-11-19T08:31:31 | 2021-11-19T08:31:31 | 342,456,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | cpp | Luogu4151.cpp | #include <array>
#include <iostream>
#include <vector>
using namespace std;
using ll = long long;
namespace xor_base {
array<ll, 88> base;
bool insert(ll x) {
for (int i = 63; ~i; i--) {
if ((x >> i) & 1) {
if (!base[i]) {
base[i] = x;
return 1;
}
... |
936200bdb6ec2e2098d7b7b1c310c8fe739de7fe | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_18017.cpp | 475b47a6a2eecd36a4d07dc076e60939f0019740 | [] | 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 | 558 | cpp | Kitware_CMake_repos_basic_block_block_18017.cpp | {
uint32_t props_size;
// Filter ID
if (filter->id >= LZMA_FILTER_RESERVED_START)
return LZMA_PROG_ERROR;
return_if_error(lzma_vli_encode(filter->id, NULL,
out, out_pos, out_size));
// Size of Properties
return_if_error(lzma_properties_size(&props_size, filter));
return_if_error(lzma_vli_encode(props_siz... |
04c147cb7a47d2ef7372c02a015f5034dc1e11e0 | e1cfaf01e6321ff2d760b317068c1e0ba8a438f1 | /server/cpp/doc_searcher.cc | aa979717e7b2e9215b549c83b120b22b68e804af | [] | no_license | hansionz/BoostDocSearch | ca71f25c5dde1d4ce56f86f1251e67510b1ca3e7 | f0ddc3b6149ef421a87f031c729bbba55b6c8f70 | refs/heads/master | 2020-04-18T18:39:52.145023 | 2019-08-13T11:33:26 | 2019-08-13T11:33:26 | 167,691,204 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,350 | cc | doc_searcher.cc | #include "doc_searcher.h"
#include "../../common/util.hpp"
DEFINE_int32(desc_max_size, 160, "摘要的最大长度");
namespace doc_server {
bool DocSearcher::Search(const Request& req, Response* resp) {
Context context;
context.req = &req;
context.resp = resp;
// 1. 对查询词进行分词
CutQuery(&context);
// 2. 根据分词结果获取到倒排拉链
... |
e7575b1a2dcaa8d6afc3f2d73ed0deb0aadc9ce3 | feec524f4e4d26326cdd03d5368bd8c2c43efbda | /A/lib.h | 082e97de369cd8b9d2b89e05110fc9ecbdb030b5 | [
"MIT"
] | permissive | ulyanin/CMakeListsTaskMIPT | 7dbe7bbf96499dc6b11ea57e7e37679c5d23e683 | dac2e62cf7e144c7da0cfa5e329a8af2eb4dd20a | refs/heads/master | 2020-05-03T05:59:51.346459 | 2019-03-29T20:04:47 | 2019-03-29T20:04:47 | 178,462,867 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | h | lib.h | #pragma once
#include <string>
/**
* encodes spaces in url inplace: ' ' --> '%20'
*/
void UrlEncode(std::string& str); |
b90842605cd394e4d37520bd721a12ef880c3018 | 00ea0c6287de7b49d59fac407c7f0b8e1a0894ea | /C++/2251-1004.cpp | ebc66ed1af22aa2b6bb6fcd057c5a4cfee98ad15 | [] | no_license | JairZhu/CODE | b0ff52fce181f7e5282bc6b1f4cbca8b24c9a305 | f2ab7e3ee9c74bddfd6477e249178d994342b9dc | refs/heads/master | 2020-03-28T11:41:24.460884 | 2018-09-11T01:05:05 | 2018-09-11T01:05:05 | 148,239,027 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | cpp | 2251-1004.cpp | #include <iostream>
#include <string>
using namespace std;
string arr;
string str[1000];
int fuck_num;
void fuck_static_check() {
while (arr.length()) {
int maxlenth = 1;
int index2 = -1;
for (int i = 0; i < fuck_num; ++i) {
if (arr.find(str[i]) == string::npos) continue;
else if (arr.find(str[i]) == 0) ... |
7f01fdb2fa690c17d587e7e27e8e856b4955e0ca | 31ef5f0387f96880de697833c583a57f17c3fb1b | /ConsoleApplication1/LightPoint.h | fb4824dde1cfc539d9e604a57e9ce42b54f9b160 | [] | no_license | Ringgg/FotoGraf | 90d80f13a19893442f9d573737ff1022fabf2225 | 8c702e33df5a7ebc6e2694d615694437611905c6 | refs/heads/master | 2021-01-19T08:27:45.225514 | 2017-04-10T16:23:49 | 2017-04-10T16:23:49 | 87,634,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | LightPoint.h | #pragma once
class LightPoint : public Light
{
public:
LightPoint();
LightPoint(const LightPoint& light);
LightPoint(Float3 position, Color color);
Float3 position;
void TestColor(Ray & ray, HitInfo & hit, vector<Shape*>& shapes,
PhongColor& color);
protected:
bool IsInShadow(Float3 pt, vector<Shape*>& shapes... |
be03a731f23cc5bf2988ab08a36f98da0353fcb9 | ebe29e8c5a1af569bb9b64c5fe412835ec601b42 | /utility.c++ | 6ab93656de2a75cf332241806227c4b0699377fe | [] | no_license | rubenvb/architekton | 9dd8f3c339d2c97d51c4291fc97f5305d574f8d7 | 2aa9deba68fe101f964ed573b308c9e60b0a405f | refs/heads/master | 2020-04-05T23:27:19.518342 | 2015-10-12T17:50:25 | 2015-10-12T17:50:25 | 10,977,100 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,238 | utility.c++ | /**
The MIT License (MIT)
Copyright (c) 2013 Ruben Van Boxem
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | |
be888ce4fe81493f653b0b1d6027bf20320fb7e6 | 44da9de5435711c1b7bcd1b0a2b079654ea410f8 | /src/render.h | 2fd275d994729c21a91289d9b51a6fb7990fd789 | [
"Zlib",
"BSD-3-Clause",
"CC-BY-3.0",
"BSL-1.0"
] | permissive | pteichman/FantasyMapGenerator | 435c8b6069d5701b04dc4661bc6b33b79ffafd5c | d9792317488662cc8959bd96bace5e9e59d9aad7 | refs/heads/master | 2020-09-07T17:04:49.069250 | 2019-11-10T18:40:41 | 2019-11-10T21:30:29 | 220,854,321 | 0 | 1 | NOASSERTION | 2019-11-10T21:34:00 | 2019-11-10T21:33:59 | null | UTF-8 | C++ | false | false | 281 | h | render.h | #ifndef GEN_RENDER_H
#define GEN_RENDER_H
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include "jsoncons/json.hpp"
#include "resources.h"
namespace gen {
namespace render {
std::string drawSvg(jsoncons::json map, std::string font);
}
}
#endif
|
f9fe93cc4e255566c3487ab6e58892f88380e8b4 | b9eed0d5df4aada9a98da8332e7df05c03326778 | /src/week_7/germs.cpp | cb9a74575f1bd8bfa09ac1a4fc100c97180afd14 | [] | no_license | dballesteros7/Algolab-HS13 | 2210ba4b466a525f67c6f49603fed6581a7f07c3 | 6206bbbb9dfdad69e294cdc90e94ce45751f0666 | refs/heads/master | 2020-12-30T10:36:39.960057 | 2014-07-31T08:36:19 | 2014-07-31T08:36:19 | 13,175,500 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,832 | cpp | germs.cpp | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
using namespace CGAL;
typedef Exact_predicates_inexact_constructions_kernel K;
typedef Delaunay_triangulation_2<K> Triangulation;
typede... |
bea612823042c8035b0294f7067291d3544daac5 | cff7648b765c2c6d27cdbcee7c9d66d80df72c0e | /Particle Effects - PrimeEngine/ParticleHelper.h | 7308e55e3c3cef260368aa0a9f482f2bea7b161a | [] | no_license | shrynshk7252/Sample-Code | 3d69e107f0168b3850ab5f6023778c92e813be48 | 7cd79f66342e772562fa911e61e08befe98acdcb | refs/heads/master | 2016-09-12T15:15:58.956128 | 2016-05-06T00:38:49 | 2016-05-06T00:38:49 | 58,169,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | ParticleHelper.h |
#pragma once
#include "PrimeEngine/PrimitiveTypes/PrimitiveTypes.h"
namespace PE
{
namespace Components
{
enum PEmitterType
{
Instant,
Bursts,
Continual,
Periodic
};
enum ParticleType
{
Sparks,
WaterSpray,
Lightning,
Snow,
Fireworks
};
enum ParticleState
{
Active,
Deact... |
0d1e20945591e42bc815cdf273c814033acf2309 | f703fc2568475d4923cb14d111043d1bbe72dc4c | /Basic Maths/Is binary number multiple of 3.cpp | c318900b2c02b8d7032834fbd5dd24c3397bd79a | [] | no_license | PoojaRani24/Arena | 2ccb5c21a1141618a3fc19f8e137fb36f1a09b27 | 2d2a28a2ba99eec4d742f7047574e8c2f4c03b3b | refs/heads/master | 2021-06-27T15:33:23.711606 | 2020-10-07T07:49:38 | 2020-10-07T07:49:38 | 150,067,940 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | cpp | Is binary number multiple of 3.cpp | /*
difference of odd set bits and even set bits should be multiple of 3
pow(2,1)= 3*1-1;
pow(2,2)= 3*1+1;
pow(2,3)= 3*3-1;
pow(2,4)= 3*5+1;
so only these +1 and -1 contibute to divisibility
*/
#include<iostream>
using namespace std;
int main()
{
//code
int t;
cin>>t;
while(t--){
string s;
cin>>s;
int l=s.length... |
836c655fa0d45e7243c1dd164a8c13b641f18bce | 853c669b246100df561ec53fbd395cbe6ee3074a | /src/H4P_TaskSniffer.cpp | 0591a46d1acba5b3a8b52105a853f39ddd97532a | [] | no_license | HamzaHajeir/h4plugins | ad7511a957b308e858af068e032ceeb9c947b0e6 | a80ac84c8019998326a1076ae6031a4103a8b2ea | refs/heads/master | 2023-08-03T07:00:29.358762 | 2023-07-30T21:07:34 | 2023-07-30T21:07:34 | 278,915,588 | 0 | 0 | null | 2020-07-11T18:02:43 | 2020-07-11T18:02:42 | null | UTF-8 | C++ | false | false | 3,868 | cpp | H4P_TaskSniffer.cpp | /*
MIT License
Copyright (c) 2020 Phil Bowles <h4plugins@gmail.com>
github https://github.com/philbowles/esparto
blog https://8266iot.blogspot.com
groups https://www.facebook.com/groups/esp8266questions/
https://www.facebook.com/Esparto-Esp8266-Firmware-Support-23385355030938... |
c688fad2cb28c294a7ec45d1bea5874d14d71095 | 8153de6526a9ac2880f200ebe4ccab2a2aee5b89 | /VoxelEngine/Classes/old/ChunkLoader.cpp | 9cccd0909ec567de32e8c1a38973decddb032d7c | [] | no_license | bsy6766/VoxelEngine | b0ca9d849f935d2688dda461b24bfd1e2404ce88 | d822d8bcc3bf5609bdce2fdc2ef5154994bc23f1 | refs/heads/master | 2023-02-20T01:10:44.053563 | 2021-01-21T08:36:56 | 2021-01-21T08:36:56 | 215,790,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,515 | cpp | ChunkLoader.cpp | #include "ChunkLoader.h"
#include "ChunkMap.h"
#include "Chunk.h"
#include <ChunkUtil.h>
#include <iostream>
#include <ChunkWorkManager.h>
#include <Camera.h>
#include <Frustum.h>
#include <Utility.h>
using namespace Voxel;
Voxel::ChunkLoader::ChunkLoader()
{}
Voxel::ChunkLoader::~ChunkLoader()
{}
std::vector<glm::... |
3749c9688f69ef17b9a0e35df15e42dc1e220846 | 5101c3ce5a4a02e9c270bd59337937d18406a7e1 | /Client.cpp | 4250e7359c2cba270b3076cb9ad39791ecb0c902 | [] | no_license | NichHarris/real-estate-database-manager | 5bbc6daca83f7cd9cfb5600c60a0d443e937a97e | 859aa997d230aa764365073d8432be950987ed2a | refs/heads/master | 2020-08-28T17:11:41.820542 | 2019-11-13T21:40:03 | 2019-11-13T21:40:03 | 217,765,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | Client.cpp | // Nicholas Harris - 40111093
// harris.nicholas1998@gmail.com
// Vejay Tham. - 40112236
// V-jayy21@hotmail.com
#include<stdint.h>
#include<string>
#include"Client.h"
Client::Client() : Person() {
socialinsurancenumber = " ";
}
Client::Client(std::string n, std::string adr, std::string sin) : Person... |
75c3d838d12702ab751a7db64d2d100d5d44f263 | 1758db247e95ac923126019a7af18e23fe380d76 | /sdst/notes/Array2D.hpp | 1337df25098730c77cf2a8d12d2ab6ca0a40385d | [] | no_license | tylerwolverton/SD2-MP2Notes | 653d10b5299ca45bd651d5474286b798032b0f34 | ef2797e5d1345c0c43fe8a2369768545cc5ce059 | refs/heads/master | 2022-07-03T08:27:08.483916 | 2020-05-06T22:27:53 | 2020-05-06T22:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | hpp | Array2D.hpp | //------------------------------------------------------------------------
// NOT NECESSARY - but very helpful for us working with grids;
// as we'll be accessing using 2d coordinates, and this can do
// smoe additional bounds checking for us;
//-----------------------------------------------------------------------... |
6ccfe4cabfeca7ed4dfc3f48a3cfdf27e60b3b4a | 0c016bd07764a449fe39a47e547469352b05b2de | /lullaby/modules/jni/scoped_java_global_ref.h | 415d35cb278247cf97c88ce26ebc1f2570899043 | [
"Apache-2.0"
] | permissive | honggui/lullaby | dbf3ef2a5dbe6497cfe40b3400d2e00df5bb7c49 | 18d76bee62014057d5f5547d7e87f9508a90bcb9 | refs/heads/master | 2023-05-09T00:15:20.266137 | 2022-11-28T22:12:58 | 2022-11-28T22:22:17 | 253,730,368 | 0 | 0 | null | 2020-04-07T08:17:55 | 2020-04-07T08:17:54 | null | UTF-8 | C++ | false | false | 2,921 | h | scoped_java_global_ref.h | /*
Copyright 2017-2019 Google Inc. 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 or agreed t... |
cc56558a9e9378dc4168ae5cab45c306c9a0e21f | 0aec7351b0e378ae1cc696c0353569eb4f7af1f2 | /real.cpp | 973e5dbe73cf2bc4f1421d17aee40755b4c6925b | [] | no_license | butozerca/tcs-cuda-miner | 3bc7fb2db87955b94ffa727b96042f2718b01775 | 0c17a8d1042dc795c5c7256aa7442d9174c628b4 | refs/heads/master | 2021-01-10T18:29:46.457036 | 2015-07-01T14:12:35 | 2015-07-01T14:12:35 | 31,167,427 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,231 | cpp | real.cpp | #ifdef CPU
#include "Cpu_miner.hpp"
#else
#include "Gpu_miner.hpp"
#endif
#include "sha256.hpp"
#include <boost/network.hpp>
extern "C"
{
#include <libblkmaker-0.1/blkmaker.h>
#include <libblkmaker-0.1/blkmaker_jansson.h>
}
namespace network = boost::network;
namespace http = network::http;
const char host[] = "ht... |
37f3cb53053ada66716711686b8bde01bd9dc91c | b2fd5654d851b1422a365a6859a837a91f6af80b | /102/Labs/lab11/item.cpp | e8093786a9b36bf6ed4109362a07cf4dc943ccc4 | [] | no_license | Gmeaders/School-Projects | 6fa356c64af2ff437762f6f0336acbd85f282800 | c68e4fac1aeedb866f1ab87481323a31936b1997 | refs/heads/master | 2020-03-09T14:24:18.243736 | 2018-04-09T23:42:30 | 2018-04-09T23:42:30 | 128,832,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | item.cpp | #include <string>
#include "price.h"
#include "item.h"
using namespace std;
Item::Item(string init_name, Price *init_price)
{
this->name = init_name;
this->price = init_price;
}
Price Item::getPrice()
{
return *(this->price);
}
string Item::getName()
{
return this->name;
}
|
c74538c27e6f61a8335716df77331a2698099b05 | ddcc07e22a7329e57aca36a5ca6327a9235ce34f | /src/gtests/dtoin/MachineDtoinTest.cc | d22c9afe73030689a37d806752da09ee01da9013 | [
"ISC"
] | permissive | gturri/roadef2012 | 61478dec9d43fc68630249631d2076e0ba94581b | b8a8d741edfb735ff0eb522db1e351b6cc0d25ee | refs/heads/master | 2016-09-06T19:03:53.081965 | 2012-03-10T09:57:10 | 2012-03-10T09:59:53 | 3,678,714 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,210 | cc | MachineDtoinTest.cc | /*
* Copyright (c) 2011 Pierre-Etienne Bougué <pe.bougue(a)gmail.com>
* Copyright (c) 2011 Florian Colin <florian.colin28(a)gmail.com>
* Copyright (c) 2011 Kamal Fadlaoui <kamal.fadlaoui(a)gmail.com>
* Copyright (c) 2011 Quentin Lequy <quentin.lequy(a)gmail.com>
* Copyright (c) 2011 Guillaume Pinot <guillaume.pino... |
9183ea225d4df09e25f596cbd85655cf6d90a6a7 | 6bdb159fdf2cda764730e4e0d45d17b7c6bd4375 | /client/Classes/Event/EventModule.h | a19c7f3a619ee839dc09fb15f7e06b98a4217c14 | [] | no_license | CommonSenseLies/LuckyCat | 7aa389c85115b3f4f1e417d521d3dcdabe2acce7 | 31048d477174643c09f9d56b0d14eb9655c2dfb1 | refs/heads/master | 2020-12-31T03:34:43.590135 | 2012-09-05T02:51:30 | 2012-09-05T02:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | h | EventModule.h | //
// EventModule.h
// HelloWorld
//
// Created by MarucsChoo on 12-7-25.
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#ifndef HelloWorld_EventModule_h
#define HelloWorld_EventModule_h
#include "EventBasic.h"
#include <vector>
#include <map>
#include <string>
#include <sstream>
#include <stdi... |
ae1ec0ec244547c5d5dca587ea751095c1f7a40b | c9e13824f4bbcc423cfac753e15a3f9f91d0b07c | /TestTarea2/main.cpp | a04ce2e632bec015d8ce158acabad8f375c9607e | [] | no_license | DiegoMontano2705/Algorithms_Class | 08688bc5a553c7664abf2aace43cd3aa176f988b | 41a649d4b58c92bd48b38d91fb8d67512aeafa16 | refs/heads/master | 2020-04-25T00:33:42.639266 | 2019-04-22T18:22:07 | 2019-04-22T18:22:07 | 172,381,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | main.cpp | #include <iostream>
using namespace std;
int algoritmo(int A[], int n){
if(A[n] != NULL){
if(A[n]%2 == 1){
return (A[n]+algoritmo(A,n+1));
} else {
return algoritmo(A,n+1);
}
} else {
return 0;
}
}
int main() {
int iA[10];
for(int i = 0; i < 10; i++){
iA[i] = i+1;
... |
9824b1e0b63f4bedce21b09d4219dca566946d25 | 4092521ab1c2f6810c426d53530d222c7cefe985 | /asteroids/jet.hpp | e8f723348a9e1c454a52138c42e2145b027e7efc | [] | no_license | wkoroy/speedprogramming | db0e6481bdd2ee4aefaafe587d85ae56b7f5a69b | 3c1204becb09519987d9a83737503af1617cfaf3 | refs/heads/master | 2021-01-25T00:11:03.908622 | 2018-02-28T13:59:14 | 2018-02-28T13:59:14 | 123,290,997 | 0 | 0 | null | 2018-02-28T13:46:46 | 2018-02-28T13:46:46 | null | UTF-8 | C++ | false | false | 90 | hpp | jet.hpp | #pragma once
#include <bitset>
enum { JET_FRONT, JET_BACK };
typedef std::bitset<2> Jet;
|
5aa5fe267c3767096bc1d5634c385bf5487ccfcd | a716ee7bfad90ecfb3de737978efd601996eace2 | /3line/3line_score.cpp | 22031a97c5ed4c6a3f30551cc2608407d65e8509 | [] | no_license | HaeKang/paper_preprocessing | 9facd9c6281797dee6e84e48ae139679ab601f53 | 2681b3bd5ecaf20cc552809d036cbd79d5b3875b | refs/heads/master | 2023-01-31T05:46:22.375877 | 2020-12-14T13:00:50 | 2020-12-14T13:00:50 | 271,269,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,627 | cpp | 3line_score.cpp | #include <iostream>
#include <string>
#include <fstream>
#include <map>
#include <vector>
#include <cmath>
using namespace std;
int main() {
string fname1 = "disease_gene_score.txt";
string fname2 = "disease_mesh_score.txt";
string fname3 = "drug_atc_score.txt";
string fname4 = "drug_Chem_sim.txt";
string fname5... |
1e2308a5fdc571c30f325f0647cbe2be3dbf0086 | 7d44de28ea50bb8e2a1be2930af10c071e3ab7ca | /extensions/CocoGUILIB/UIWidgets/UIPanel.cpp | 77b5bc9670d72a19879b0e7cec394c5f9e552d17 | [
"MIT"
] | permissive | samuele3hu/Cocos2d-x-For-CocoStudio | dd7f4d1b2014201967f244370ae1946e9f566fa4 | cfe4c60316910ef0dc7602c069ebc6226e17c123 | refs/heads/master | 2021-01-24T02:40:06.514248 | 2013-08-08T09:59:36 | 2013-08-08T09:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,976 | cpp | UIPanel.cpp | /****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software with... |
fe1aec7278bcb9ee6830597b2e12b2d7eede4043 | 4fb4b3a614f4b8feae601a763bf852e2daefe48b | /src/RFB.h | 3acfce20cca4ed4c1582a0d6089b6f5031512e76 | [] | no_license | magnusl/vnc | ea42859de7e15f3719e74e14a42feeb11f1e4406 | a40368e3495229fb1e93af6cda8048b5a6176369 | refs/heads/master | 2020-03-07T09:43:48.859738 | 2018-03-30T10:30:27 | 2018-03-30T10:30:27 | 127,414,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,567 | h | RFB.h | #ifndef _RFB_H_
#define _RFB_H_
#include "SocketLayer.h"
#include "rectangle.h"
#include "FrameBuffer.h"
#include "vnc.h"
#include <string>
#include <ctime>
namespace VNC
{
/* Class: RFB
* Description: Remote Framebuffer Protocol.
*/
class RFB
{
public:
... |
e9cfe52d511633947ed377dc3c6f214c24de9c85 | 7a359e66922f76e5c62a84ee7c79e60ade53c584 | /temp/netserver.h | 68e388707b03fdd9f32f266a3244b833407797fe | [] | no_license | liufeng5460/lfversion2 | b90bc23cc97a3a3429ba51f4143b2c30ebb2b6c3 | ba38a707eae65cb1511ba292ecb81c4c3c2a7179 | refs/heads/master | 2021-01-23T04:39:28.857551 | 2017-06-28T08:05:37 | 2017-06-28T08:05:37 | 86,213,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | h | netserver.h | #ifndef NETSERVER_H
#define NETSERVER_H
#include <QTcpServer>
#include <QTcpSocket>
#include <QWidget>
#include <QObject>
class NetServer : public QObject
{
Q_OBJECT
public:
explicit NetServer(quint16 p,QWidget* ctx);
~NetServer();
bool start();
private:
enum ReadingState{
NoRead,
R... |
a6ce9feb81f83f0f8fe0cef00620adb027afde1f | 3fe88c5f0392c4af5fd76dd1421651921a3d7e56 | /DoublyLinkedList.h | 238ea0e7698748f3868d37a0e070c5ecc91b194d | [] | no_license | SamBBuckley/DoublyLinkedList | 505d547f52988c860ad1a6ebc646f0556dc588c4 | df87b177e678d7aeb155218d83649ff6e431e601 | refs/heads/master | 2020-09-16T22:58:34.256350 | 2019-11-25T10:33:44 | 2019-11-25T10:33:44 | 223,912,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,277 | h | DoublyLinkedList.h | #include <iostream>
#include "Node.h"
//////////////////////////////////////////////////////////////////////////////
// This is the general style for a simple DoublyLinkedList it should //
// Be considered as such. Much functionality could be added to it to make //
// it ore versatile and complete inluding u... |
3eb72eb3f7f2d5c3206335ef44d59be7c4875c17 | 520f299e5ff618a1374fbc4e77795f2556ee5ef3 | /SW/lib/utilities/utilities.cpp | 0565fa68af1a95253406abcbc7a054af172d702f | [] | no_license | enheragu/RHA | 8c42b2aab0bd9c9e46502e1ad5a5a7ee44d8f0c2 | 59699c233630c881601831958d84deab66afb58a | refs/heads/master | 2021-01-19T17:03:38.222459 | 2018-02-27T08:54:07 | 2018-02-27T08:54:07 | 101,040,089 | 0 | 0 | null | 2017-08-31T12:10:08 | 2017-08-22T08:26:56 | C++ | UTF-8 | C++ | false | false | 20,132 | cpp | utilities.cpp | /**
* @file
* @brief Implements a set of utilities to measure, experimentally, some interesting parameters.
*
* Measures real speed of servo, time spent with packet handling, etc
*
* @Author: Enrique Heredia Aguado <enheragu>
* @Date: 2017_Sep_13
* @Project: RHA
* @Filename: utilities.h
* @Last modified by:... |
c9ae9ce3d2e08fc565c55d6d3ed7f43cc9430697 | 73f88b9d8055c1bc5ed408319ffed9fa72af628b | /include/Pomdog/Platform/Cocoa/Bootstrap.hpp | ca87a7d2972c7a139723896e877af17ea78d5c21 | [
"MIT"
] | permissive | Mourtz/pomdog | 3841c015012f0bb8f4e45c3524a66ced11abd448 | b3f678033b2b41ec5bbf9c5079810b1082aa293d | refs/heads/master | 2020-12-25T04:01:47.810430 | 2015-09-10T11:57:25 | 2015-09-10T11:57:25 | 38,495,875 | 1 | 0 | null | 2015-07-07T09:48:00 | 2015-07-03T14:12:26 | C++ | UTF-8 | C++ | false | false | 1,510 | hpp | Bootstrap.hpp | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_BOOTSTRAPPERCOCOA_13B44EFA_HPP
#define POMDOG_BOOTSTRAPPERCOCOA_13B44EFA_HPP
#include "Pomdog/Graphics/SurfaceFormat.hpp"
#include "Pomdog/Graphics/DepthFormat.hpp"
#include "Pomdog/Basic/Export.... |
97cabd8034bef1d05d46131926b8c75ef4b55421 | 42eaf5b146a4776d83088d2e55f711df8ff20043 | /mainwindow.cpp | 59c16ad642a921df2025b7601bafcbbb3c65bea4 | [] | no_license | MikiKru/qt_amq | 6c83ce9dfe367ce4565a19c4ee1c6ba821f21cf7 | 88a1ccf6b301ae2373fc7f8bc5f8dbe1525bc7b1 | refs/heads/master | 2020-11-24T07:23:06.489949 | 2019-12-14T14:48:24 | 2019-12-14T14:48:24 | 228,027,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,098 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <cmath>
#include <cstdlib>
#include "time.h"
#include <QList>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
int cat = 0;
int rat = 0;
int m... |
ef84d41f403fc5c0b3ee2e2ef8aa9dcfdc072509 | 8ec0f2b0ae9bfe922e78a31d321e4a8d10465830 | /sycl-gtx/source/detail/src_handlers/kernel_source.cpp | 457df583e795f4e12305c899dc8d8f64035f31b1 | [
"MIT"
] | permissive | ShalokShalom/sycl-gtx | 254e77e3c96e0d56fd71f39277c74c41204370ed | ee5091f0c7d513b24acdb200417ec01043d7834a | refs/heads/master | 2020-05-17T13:20:31.044788 | 2018-11-24T21:11:45 | 2018-11-24T21:11:45 | 183,733,814 | 0 | 0 | MIT | 2019-04-27T05:48:44 | 2019-04-27T05:48:43 | null | UTF-8 | C++ | false | false | 2,171 | cpp | kernel_source.cpp | #include "SYCL/detail/src_handlers/kernel_source.h"
#include "SYCL/access.h"
#include "SYCL/command_group.h"
#include "SYCL/error_handler.h"
#include "SYCL/kernel.h"
#include "SYCL/program.h"
using namespace cl::sycl;
using namespace detail::kernel_ns;
const string_class source::resource_name_root = "_sycl_buf";
SYC... |
345a976d4974144de0f7c4a41bedc8271cfe031b | fb2492399ccdfef5cf0b10de8f1fbf9a41e63195 | /src/features/FeaturesEnv.cpp | 4831817befacfd3b4ff6cf8b00e8d933bd74c7d5 | [] | no_license | CedricLeon/TpgVvcPartDatabase | 4db9f72173564d94c7a667364afcf18734318c0b | 868f59fd82c8e5a5cf0378d07ef1c0f56f21850f | refs/heads/master | 2023-07-13T04:52:18.975228 | 2021-08-20T13:04:09 | 2021-08-20T13:04:09 | 337,452,436 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,792 | cpp | FeaturesEnv.cpp | #include "../../include/features/FeaturesEnv.h"
// ********************************************************************* //
// ************************** GEGELATI FUNCTIONS *********************** //
// ********************************************************************* //
void FeaturesEnv::doAction(uint64_t action... |
bef408166cb4a4ea6dd113389d065d8501bb20fc | 1bf8b46afad5402fe6fa74293b464e1ca5ee5fd7 | /SDK/BPF_locale_classes.h | e827708f467855f562ad01b61ca070294ce18276 | [] | no_license | LemonHaze420/ShenmueIIISDK | a4857eebefc7e66dba9f667efa43301c5efcdb62 | 47a433b5e94f171bbf5256e3ff4471dcec2c7d7e | refs/heads/master | 2021-06-30T17:33:06.034662 | 2021-01-19T20:33:33 | 2021-01-19T20:33:33 | 214,824,713 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,686 | h | BPF_locale_classes.h | #pragma once
// Name: Shenmue3SDK, Version: 1.4.1
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass BPF_loca... |
8bfba14fc061089ddd78eec83905d6a9ce84ca27 | 2c78de0b151238b1c0c26e6a4d1a36c7fa09268c | /garant6x/implementation/Garant/GblAdapterLib/Tips/Tips.h | 2482bb8d092a8d0b9c18ae9642df04bdc47e1c26 | [] | no_license | bravesoftdz/realwork | 05a3b308cef59bed8a9efda4212849c391b4b267 | 19b446ce8ad2adf82ab8ce7988bc003221accad2 | refs/heads/master | 2021-06-07T23:57:22.429896 | 2016-11-01T18:30:21 | 2016-11-01T18:30:21 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,102 | h | Tips.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Модуль: "w:/garant6x/implementation/Garant/GblAdapterLib/Tips/Tips.h"
// генератор заголовочных файлов C++ (.h)
// Generated from UML model, root element: <<Interfaces::Category>> garant6x::Gbl... |
da164d0fc2cde60079e7501e7f4f7fd2747d2aa9 | a84b013cd995870071589cefe0ab060ff3105f35 | /webdriver/branches/chrome/chrome/src/cpp/include/chrome/common/temp_scaffolding_stubs.h | ca7cf6438a9588bcc3d502bd59b9dc7d979b9a38 | [
"Apache-2.0"
] | permissive | vdt/selenium | 137bcad58b7184690b8785859d77da0cd9f745a0 | 30e5e122b068aadf31bcd010d00a58afd8075217 | refs/heads/master | 2020-12-27T21:35:06.461381 | 2009-08-18T15:56:32 | 2009-08-18T15:56:32 | 13,650,409 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,073 | h | temp_scaffolding_stubs.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
#define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
// This file provides declarations and stub definitio... |
afb4240fc28f376f9ffb77317af2e2362bea1f50 | a1091ad42e6a07b6fbb6fe876feb03547a8da1eb | /MITK-superbuild/ep/src/CTK-build/CTK-build/Libs/Widgets/moc_ctkButtonGroup.cpp | b84fb1fcffb1442714bfa392d0e7896634c8bd2c | [] | no_license | Sotatek-TuyenLuu/DP2 | bc61866fe5d388dd11209f4d02744df073ec114f | a48dd0a41c788981009c5ddd034b0e21644c8077 | refs/heads/master | 2020-03-10T04:59:52.461184 | 2018-04-12T07:19:27 | 2018-04-12T07:19:27 | 129,206,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,339 | cpp | moc_ctkButtonGroup.cpp | /****************************************************************************
** Meta object code from reading C++ file 'ctkButtonGroup.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.4.2)
**
** WARNING! All changes made in this file will be lost!
******************************************************... |
c05092214ee78bebd7a03fd979ddada660773338 | 1eff207d274cc0afff23b51558b6c21366ca9b5c | /arduino_template/src/arduino_core/FlashMemory.h | dbd218688fc4b656ad471e6a7527c0be369e307c | [] | no_license | SamduinoProject/Samduino-Core-ASF | e0e4e64b8f1200eae2abf1395d011126ef0a9bc5 | caeeef917b8cd969e74984df662b377040526060 | refs/heads/master | 2020-04-06T03:37:33.727198 | 2016-09-20T20:24:05 | 2016-09-20T20:24:05 | 64,615,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | h | FlashMemory.h | /*
* FlashMemory.h
*
* Created: 7/27/2016 8:57:45 PM
* Author: Nate
*/
#ifndef FLASHMEMORY_H_
#define FLASHMEMORY_H_
//size of the flash area that can be accessed by the Flash module in bytes
#define FLASH_SIZE 8192
//using the upper end of the flash address range
#define FLASH_START_ADDRESS (IFLASH0... |
6f165ee386d63f92c3f8c1b7fdec6884b3c0496d | 87c94d04f7b34e04df6456450a2a4ef09f2d81a4 | /Doggo/lib/ChRt/examples/chDataSharing/chDataSharing.ino | 56862276f463639027781ed0514c2eda80de3f1b | [
"MIT"
] | permissive | jamestiotio/SUTDoggo | 7d1f7deb3fd29947bfa136ac84ec8e8632d6be2a | f8aa493acd06046a9a0fc580687bc6445463ded8 | refs/heads/master | 2023-04-08T07:47:30.120342 | 2021-06-02T14:58:41 | 2021-06-02T14:58:41 | 237,259,172 | 5 | 1 | MIT | 2023-04-03T23:45:10 | 2020-01-30T16:51:24 | C | UTF-8 | C++ | false | false | 3,465 | ino | chDataSharing.ino | // Simple demo using a mutex for data sharing.
#include "ChRt.h"
const uint8_t X_PIN = 0;
const uint8_t Y_PIN = 1;
const uint8_t Z_PIN = 2;
//------------------------------------------------------------------------------
// Shared data, use volatile to insure correct access.
// Mutex for atomic access to data.
MUTEX... |
92ac1952005372a1352b8be0050e7c815ab16a94 | ec91ae59d44dc46e3be0b2fb8941f8f1b8d17017 | /dots_game_widget.h | f4f2589a85d1a4b40b81eed59edd7fc68807d0d7 | [] | no_license | bkrieger/Dots-CPlusPlus | 640abfe9650ca92f1f1a7d4a52a15cba5034f5c1 | a24b2d19a24b75ec7f3feb323000beeba85f0216 | refs/heads/master | 2021-03-12T21:37:31.254960 | 2013-12-10T15:58:29 | 2013-12-10T15:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,950 | h | dots_game_widget.h | /* File: dots_game_widget.h
*/
#ifndef DOTS_GAME_WIDGET_H_
#define DOTS_GAME_WIDGET_H_
#include <QtGui>
using namespace std;
//LinkedList style class to draw lines
class Line {
public:
// These indexes are used to know which dot the line comes from
// They are not to be used for drawing.
int startXIndex;
in... |
911d33bff8c9a8122f0574b93df53e1f714576dd | d926f924309ecd3335309b5a83591276e809d55e | /src/v/serde/serde.h | 582fb910602663434a87a84d2081543c053644c5 | [] | no_license | kitaisreal/redpanda | 3446a03dd2fb7c8e2b35ee0e44bc97b4db4713cb | eb8c435a48efe1c7e428e92341479b72f7c67dde | refs/heads/dev | 2023-06-13T06:40:59.817143 | 2021-07-02T02:19:03 | 2021-07-02T02:19:03 | 382,417,691 | 0 | 0 | null | 2021-07-02T17:27:38 | 2021-07-02T17:27:37 | null | UTF-8 | C++ | false | false | 10,820 | h | serde.h | // Copyright 2021 Vectorized, Inc.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.md
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version ... |
97fef481b48b5eb3e8b60025c236ee9010897ebc | 3e94d9d4ccb9731be9551f86f4041e2f7507f941 | /contrib/bson/include/bson/bson.h | 61ad355bd473783ee1f710302359d33b989f4dd6 | [
"MIT"
] | permissive | sescandor/mongoz | 26654e373b745659b9ac27274478ace24465da04 | 026ea4136adb839825cca67b7f7b45f54db40d60 | refs/heads/master | 2020-03-19T00:12:43.997613 | 2018-05-30T15:36:07 | 2018-05-30T15:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,809 | h | bson.h | /**
* bson.h -- a BSON manipulation library
*
* This file is part of mongoz, a more sound implementation
* of mongodb sharding server.
*
* Copyright (c) 2016 YANDEX LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... |
9e2e76990c219d760738a673e9e510a417009ac3 | 44a3292b4527f730d86aee814188f7a13a318fed | /src/old/modelUnits.cpp | 5aadf9ff869e62eba57e60a8637bba545693d84e | [] | no_license | nickjmeyer/spatioTemporalDecisions | feac282f03a3891b505fd7b8d8c19deddc68a713 | 2ed0bc9b13abe7de65e4dd05ff7a52ca80fb337b | refs/heads/master | 2021-05-04T03:30:03.645599 | 2018-01-21T16:31:11 | 2018-01-21T18:49:31 | 71,376,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,644 | cpp | modelUnits.cpp | #include "modelUnits.hpp"
void test(const std::string & name, const int cond){
if(cond)
printf("%32s: passed\n",name.c_str());
else
printf("%32s: failed ***\n",name.c_str());
}
int main(int argc, char ** argv){
njm::sett.set(argc,argv);
// typedef ModelTimeExpCaves MG;
typedef ModelDistKern MG;
... |
23ecad75701c100d39c82322e25020438b0bfcad | a961cc13da1493521bc233f69d041a5380240875 | /src/_GraphLib/sccs.h | 1ad636f328408a518540045ca18e4241412513f8 | [
"Apache-2.0"
] | permissive | gianricardo/smart | 5efda6a3ac87f4885b014ac52d813cd0f54954e1 | 962396af991d8f0c28f7ee1756758b145b75aa3b | refs/heads/master | 2023-03-09T03:46:51.165195 | 2021-02-25T15:17:14 | 2021-02-25T15:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,286 | h | sccs.h |
#ifndef SCCS_H
#define SCCS_H
#include "graphlib.h"
/*
Functions for strongly-connected components
and variations.
*/
// ======================================================================
// | |
// | dynamic_graph::scc_trave... |
2aea7aaf4912a8345cd94ab5e7646cde9c9f43d0 | 39fca855addd18a0594b498bf8181034d3170957 | /Sliding/count-cm/parser.h | bba036052ed10bd97bf6ff8256e74d464af55c37 | [] | no_license | UnbiasedCleaningSketch/UnbiasedCleaningSketch | 095168f7aaeb2fd9b3ce31dd0f6c31d13426902f | 98caf4e7e340301d1b9c8f692052c0d2545d1c09 | refs/heads/master | 2022-11-21T01:44:18.736380 | 2020-07-18T13:37:41 | 2020-07-18T13:37:41 | 277,564,954 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,636 | h | parser.h | #ifndef _ATT_PCAP_PARSER_
#define _ATT_PCAP_PARSER_
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <cstring>
#include <algorithm>
#include <set>
//#include <fstream>
// 0xD4C3B2A1,默认是反向读的
#define PcapHeaderSize 24
#define MaxDataSize 100000
struct Packet
{
ui... |
f052ff3bebc49c00ac2417d181681f3155dde08f | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ResourceDetails.h | 8e8b2d2288339b3508b6d7e18e2878712f71e481 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 6,060 | h | ResourceDetails.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/inspector2/Inspector2_EXPORTS.h>
#include <aws/inspector2/model/AwsEc2InstanceDetails.h>
#include <aws/inspector2/model/AwsEcrContainerImageDetails.h>
#include <aws/inspecto... |
c4ffcba8e59bf85c065714a041091a66025899d4 | 4d3b8b46f86a24a89666777dbafce1e07bbc076f | /Code/Ruler.h | dc20436440c24eb145f93fc31c40120ed578ab59 | [] | no_license | sihonwei/QT-VTK | 642f43240e858b61970403decf4ae40b71903f64 | 1a8f08b036161de7c179721038d19a7c0f1a5a39 | refs/heads/main | 2023-07-19T07:12:37.047510 | 2021-09-09T12:52:05 | 2021-09-09T12:52:05 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,659 | h | Ruler.h | /*----------------------------------------------------------------------------
Component : 比例尺
Name :
Author :
Creation Date : 2021.06.15
Description :
Copy Right : 2021 All Rights Reserved
---------------------------------------------------------------------------... |
3f0c811a684f40340eee42651df9346520bb61ae | 0ef4f71c8ff2f233945ee4effdba893fed3b8fad | /misc_microsoft_gamedev_source_code/misc_microsoft_gamedev_source_code/xgameRender/dirShadowManager_LSPSMExp.cpp | e1843743141a2e729c8217ecdef1565ef6441e93 | [] | no_license | sgzwiz/misc_microsoft_gamedev_source_code | 1f482b2259f413241392832effcbc64c4c3d79ca | 39c200a1642102b484736b51892033cc575b341a | refs/heads/master | 2022-12-22T11:03:53.930024 | 2020-09-28T20:39:56 | 2020-09-28T20:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,687 | cpp | dirShadowManager_LSPSMExp.cpp | //============================================================================
//
// File: dirShadowManager.cpp
//
// Copyright (c) 2006, Ensemble Studios
//
//============================================================================
#include "xgameRender.h"
#include "dirShadowManager.h"
#include "debugpr... |
c40284d8d4e2c30fb35635036c6fd25af8e35e65 | b22819d39a788b046e9a475f655b005ac478b1ef | /src/6xxx_BST2DLL.cpp | 9c05d541795083588846350d8735e3d2c9c7ac2c | [] | 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 | 2,851 | cpp | 6xxx_BST2DLL.cpp | #include <iostream>
using namespace std;
struct TreeNode{
int val;
TreeNode* left;
TreeNode* right;
TreeNode(int value) : val(value), left(NULL), right(NULL) {}
};
//usse original left and right of treenode
void BST2DLL(TreeNode* p, TreeNode*& prev, TreeNode*& head) {
if(!p)
return;
BST... |
8289ff0fa497619c8eeeb54c99587ada44096826 | cfd96b44608a1e95e6a1aaee67af084155f480fe | /Easy/CapitalizeMe.cpp | 9da0de42085d5dc09b21e5cb776eb1bad2771b9b | [] | no_license | ConsciousCoder07/Dcoder | b491217d40a6777703584657f462ac89400225f9 | d6b3dc0bedbab9dfc9e52868cf38f7d251cf40ca | refs/heads/master | 2023-06-10T05:28:13.386871 | 2021-06-22T12:50:44 | 2021-06-22T12:50:44 | 287,751,962 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cpp | CapitalizeMe.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int i = 0;
string str;
//Input the entire line as string
getline(cin, str);
//Used for breaking input into words
stringstream ss(str);
//Read using stringstream instead of cin
while(ss >> str) //getline(ss, str, " ")
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.