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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3dc43640c822c6b4ee3bb341132b78639901adbe | fbd8c56e8e449f7ac80b5156e80c15c14cb34b12 | /Uva/Uva_AC/11878 Homework Checker.cpp | 2a2d6a52f57dcc30e33ce2cd7a450c8be3500100 | [
"MIT"
] | permissive | Saikat-S/acm-problems-solutions | 558374a534f4f4aa2bf3bea889c1d5c5a536cf59 | 921c0f3e508e1ee8cd14be867587952d5f67bbb9 | refs/heads/master | 2021-08-03T02:27:21.019914 | 2021-07-27T06:18:28 | 2021-07-27T06:18:28 | 132,938,151 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,411 | cpp | 11878 Homework Checker.cpp | /***************************************************
* Problem name : 11878 Homework Checker.cpp
* Problem Link : https://uva.onlinejudge.org/external/118/11878.pdf
* OJ : Uva
* Verdict : AC
* Date : 2017-07-25
* Problem Type : AdHoc
* Author Name : Saikat Sharma
* University : CSE,MBS... |
e798915e79b098a67743b27766ed5b7ecad71ff7 | e36906be9399685b0d03daffec9c33735eda8ba1 | /src/mpl/yocto/mpl/natural.hpp | 1497fe823a9bc58f142452800fc6fb4f5cc4673b | [] | no_license | ybouret/yocto4 | 20deaa21c1ed4f52d5d6a7991450d90103a7fe8e | c02aa079d21cf9828f188153e5d65c1f0d62021c | refs/heads/master | 2020-04-06T03:34:11.834637 | 2016-09-09T14:41:55 | 2016-09-09T14:41:55 | 33,724,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,131 | hpp | natural.hpp | #ifndef YOCTO_MPL_NATURAL_INCLUDED
#define YOCTO_MPL_NATURAL_INCLUDED 1
#include "yocto/mpl/types.hpp"
#include "yocto/memory/buffers.hpp"
#include "yocto/code/endian.hpp"
#include "yocto/code/bswap.hpp"
#include "yocto/xnumeric.hpp"
#include "yocto/ios/bitio.hpp"
#include "yocto/ios/ostream.hpp"
#include "yocto/ios/i... |
dd4db4c50eeb88d3da365b33a2b42f3ae469f1b0 | eb9488d622e957d83dbf6bbbd487ad9814e1bf87 | /PROJECTTEST/boite.h | 48a158c039bc12ee1f97a26a2295508c319234db | [] | no_license | mryassain/RRTs-Algorithm | 5b3785af46d2278113bcd974f1ec55261cd93da1 | 4f213adad7a4933e4aa6bc575fada54a4730bf30 | refs/heads/master | 2023-02-04T10:39:51.557860 | 2020-12-15T14:46:36 | 2020-12-15T14:46:36 | 299,050,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | h | boite.h | #pragma once
#include "RRTVertexe.h"
#include "RRTTree.h"
#include "RRTAlgorithmes.h"
#include <windows.h>
#include <vector>
using namespace std;
class boite
{
public:
//constructeurs
boite();
boite(int dm,double PasU,double MinEsacedeta,double MaxEpacedeta);
~boite(void);
struct box{
int NbrOfVertex;//fai just ... |
8dc7bba5454f5ac33890215a059a8b444ecc16b8 | 7ea42e64d21acd3cdcca8409e4375e4dfed5384e | /main.cpp | 7c631cada8d6f49ba9a564822a16fd806918aae2 | [] | no_license | kells1986/Blackjack | ed047221a4aacdd3b74e58f40929df221a6dd53b | a8af17aeddccd82a6955c471dd4acb2ca638f6ed | refs/heads/master | 2016-09-05T19:41:16.570230 | 2012-10-11T20:48:25 | 2012-10-11T20:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | main.cpp | //#include"card.h"
#include"deck.h"
using namespace std;
int main(){
deck card_deck(true);
card one;
int v1, v2;
char d;
card two;
int i = 2;
//card_deck.shuffle();
one = card_deck.deal();
two = card_deck.deal();
one.print();
two.print();
while((i <= 52) && (v1 != v2)){
v1 = one.get_val();
v2 = two.get_val();
... |
ac4f00dfc7b9585f2ca6e5ddeb812ec9a364e658 | 42903b4b9ad23f46fe0e9c9f335902707f701698 | /AlgoLab 2_1/pathbge1.cpp | 287c9342e9f6861460e47475ca02fa7f265bdb7f | [] | no_license | sheensekai/itmo-2nd-sem-algo-tasks | 22e552f42e46d9dfa06ce7cd2771a1dbe601cce9 | 01e1fd961045e293eb5563c76d0013fc19190bc6 | refs/heads/master | 2020-05-03T23:23:25.166929 | 2019-04-21T13:53:13 | 2019-04-21T13:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,307 | cpp | pathbge1.cpp | #include <iostream>
#include <fstream>
#include <queue>
#include <forward_list>
struct vertex {
bool visited = false;
int dist = -1;
std::forward_list<int> adj;
};
int bfs(vertex * verts, int n);
int main() {
std::ifstream input("input.txt");
std::ofstream output("output.txt");
int m, n;
... |
8cff51c16a5a55093fa2444694e3ed8661074c47 | 31475b58b676a174d89b3130f869656366dc3078 | /fm_gui/eventmanager.h | 2de919a5b1393ebd12fd0f5d2cbb02bb21eba7ba | [] | no_license | cooper-zhzhang/engine | ed694d15b5d065d990828e43e499de9fa141fc47 | b19b45316220fae2a1d00052297957268c415045 | refs/heads/master | 2021-06-21T07:09:37.355174 | 2017-07-18T14:51:45 | 2017-07-18T14:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,107 | h | eventmanager.h | #pragma once
#include "../public/persistid.h"
#include "../public/i_var_list.h"
#include "../visual/i_event_manager.h"
#include <map>
#include <string>
#include <vector>
typedef std::vector<EventDelegate> SLOT_DELEGATE_LIST;
struct SLOT_DELEGATES
{
public:
SLOT_DELEGATES()
{
enabled = true;
delegates.clear();
... |
b4b11cf421bc7e8e6acb9550cb0dcf04bec6db31 | f8cc7ceccaf3d87142fce46c8903edace3a71fad | /nixycore/container/map.h | 299d1cf15562812197256fe1e67bcbe2321b2370 | [
"MIT"
] | permissive | yyzybb537/nixy | c6197d4a705a17c722d45e9fad10254ee5b2aa27 | a77d0eac833a29d29d6717ce722ed75a813a4e1f | refs/heads/master | 2023-08-31T17:55:02.260939 | 2014-05-08T15:47:41 | 2014-05-08T15:47:41 | 19,988,406 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,450 | h | map.h | /*
The Nixy Library
Code covered by the MIT License
Author: mutouyun (http://darkc.at)
*/
#pragma once
#include "nixycore/memory/default_alloc.h"
#include "nixycore/utility/rvalue.h"
#include "nixycore/general/general.h"
#include <map> // std::map
//////////////////////////////////////////////////////... |
2f29f9ed297d45d7c2e1b0ecd1c011842dc4cf41 | bdec4e67719c2dda02cb7e51f5d426fdc0c23972 | /src/base/math/floating.cpp | 8a7028348472e24100d6b643b38c483489cb8190 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | vizzuhq/vizzu-lib | 032a653267e22a0ce1f76cbca52c39356fac982b | a048ee50400bc12b336759cf5ab8648ce207f629 | refs/heads/main | 2023-09-02T20:04:26.929526 | 2023-08-31T16:03:38 | 2023-08-31T16:03:38 | 374,784,415 | 1,537 | 93 | Apache-2.0 | 2023-09-14T06:24:21 | 2021-06-07T19:53:30 | JavaScript | UTF-8 | C++ | false | false | 331 | cpp | floating.cpp |
#include "floating.h"
#include <cmath>
using namespace Math;
int Floating::orderOfMagnitude(double base) const
{
return static_cast<int>(floor(log(std::abs(value)) / log(base)));
}
bool Floating::isInteger() const { return value == floor(value); }
double Floating::sign() const { return value < 0 ? ... |
641c22faeb54ba5ad012aefd36d72d03fba49146 | 83188d56a7775feb53d9837a57dae0d56642eaf6 | /Sorting algorithms/main.cpp | e78032ddd968df379563ad99aaf2ede52ad362cf | [] | no_license | Faramoz161/cpp | 656311ccab563c0eb6ae2a94b6006c9d5a3dd646 | 6b246ddf2e11be0f337b602b748925478eeb5931 | refs/heads/master | 2022-05-08T14:18:45.372145 | 2022-04-20T13:55:21 | 2022-04-20T13:55:21 | 151,257,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | main.cpp | #include "main.h"
int main() {
const size_t size = 10000000;
vector<int> array(size, 0);
// fill
generate(begin(array), end(array), UniqueNumber);
// shuffle
mt19937 g { random_device {}() };
g.seed(time(NULL));
shuffle(begin(array), end(array), g);
bubble_sort(array);
//cocktail_sort(array);
//comb_sort... |
70c6650f569216d453ac240af508ab51d7b3fe9a | 1d64c65617b2f1b2288330a3b5856dd0bec4786f | /ee569/hw4/texture/TextureDataset.h | ec0da915966c9101d019283bf9b5816c617c87b5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chenying-wang/usc-ee-coursework-public | 695230b85cc1dd5debb874211cc786a92e45a572 | 5bc94c2350bcebf1036fb058fe7dc4f7e31e1de1 | refs/heads/main | 2023-05-06T08:46:22.903222 | 2021-05-13T00:00:00 | 2021-05-19T04:20:27 | 265,717,688 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | h | TextureDataset.h | /**
* Name: Chenying Wang
* Email: chenying.wang@usc.edu
* USC ID: ****-****-**
* Date: Friday, March 20, 2020
**/
#ifndef __TEXTURE_DATASET
#define __TEXTURE_DATASET
#include <iostream>
#include <vector>
#include <tuple>
#include <unordered_map>
#include <string>
#include <mutex>
class TextureDataset {
private:... |
f79b3c1b8b62fb95069bbfa4fb76f7b163e0f8cd | 2d446eac1649daf0b7a98ceaf9be8037793144e7 | /src/controller/task/TurnTask.h | 7b7c4235af5ecb8526026053e347dff5196fe0da | [
"MIT"
] | permissive | mda-ut/SubZero | 8ebcd2cf73021252ecab52c9e33c48ff5b61f925 | 4f5e5291f146c38b2151841c747458aa92d2c0cc | refs/heads/master | 2020-03-30T08:11:48.207743 | 2015-11-02T21:25:53 | 2015-11-02T21:25:53 | 28,941,998 | 4 | 35 | null | 2015-07-17T19:28:27 | 2015-01-08T01:04:27 | C++ | UTF-8 | C++ | false | false | 676 | h | TurnTask.h | /*
* TurnTask.h
*
* Created on: Jul 3, 2015
* Author: jwong
*/
#ifndef TURNTASK_H_
#define TURNTASK_H_
#include "Task.h"
#include "Logger.h"
class TurnTask : public Task {
private:
Logger* logger = new Logger("TurnTask");
Model* fpgaModel;
int* currentTargetYaw;
int targe... |
5ed8ad50d2130ef944927e968f761661084ce6a7 | 55bfe24af7c6cbb277dc3ddcaa80480384f95abf | /IOT Lab/Arduino_code_/Arduino_code_.ino | deab70f6837ae65ae83aac23144ca874895daa26 | [] | no_license | Matthew-Noce/IOTLAB_5 | 45ffcb52077bdabc6629c86332a61be3b55bcae3 | d7044e64bbd134eec7c2cf881b1f23d83c48c93e | refs/heads/main | 2023-08-19T18:01:02.402374 | 2021-10-22T14:23:38 | 2021-10-22T14:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | ino | Arduino_code_.ino | void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
int val =0;
void loop() {
// put your main code here, to run repeatedly:
val=analogRead(0);
Serial.println(val);
digitalWrite(2, LOW);... |
0b1f016b2e37464a031451324786c389cff09eff | 50e6ba037f1c60e5342c707a9d4223ac379a8047 | /InstanceMonitor.cpp | 4614a897e5b23c73c9db3d1008b01893d4e8582c | [] | no_license | buryhuang/blueplus | 299bbe23efa93f9d3acceeedccd5e8194cb71891 | 7843ccfa4b8fc773c6de1992acb9c9bb805671ed | refs/heads/master | 2021-05-06T15:59:40.471142 | 2011-05-31T06:50:46 | 2011-05-31T06:50:46 | 113,696,936 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,147 | cpp | InstanceMonitor.cpp | /** \addtogroup application
* @{
*/
#include "config.h"
#include "InstanceMonitor.h"
#include "BTDeviceDetector.h"
#include "BTDeviceManager.h"
#include "BTServer.h"
#include "PersistentStorage.h"
#include "Utils.h"
#include <iostream>
using namespace std;
CInstanceMonitor::CInstanceMonitor(v... |
b8717586ca2f513a845283e7164000f9f58c9eb6 | 2c221417937bac357edee935fff3a9cdb4a6a572 | /src/editor/scriptvariablesview.cpp | d02c6cd7f38adcc45810cda3fec0d79b3afda6d0 | [] | no_license | timbaker/scripted | c72458f44f3252ddc39fc766974c032847eb7f92 | 682012134a0d36a16f52700ba206a42e688a315b | refs/heads/master | 2016-09-06T08:44:43.483357 | 2013-12-08T03:13:14 | 2013-12-08T03:13:14 | 14,830,149 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,089 | cpp | scriptvariablesview.cpp | /*
* Copyright 2013, Tim Baker <treectrl@users.sf.net>
*
* 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.
*
* Thi... |
ecd92e4909c8005385bb8deb49da5e5e6a203fd0 | ef4845192c77b43104976009452f26e111f1579b | /Space/Controllers/Action/Action.h | 5b77ee29695f59205cc61e9a46dcfd24ac890b16 | [] | no_license | AlexeyShag/Space | 198bfeed3456b29e7ed569da553eeac7c8be0964 | 076bcc523de3e2bfc96ed53cf9630c44991671cc | refs/heads/master | 2023-04-20T02:41:20.777426 | 2021-04-29T09:14:40 | 2021-04-29T09:14:40 | 362,756,498 | 0 | 0 | null | 2021-04-29T09:14:41 | 2021-04-29T09:09:11 | null | UTF-8 | C++ | false | false | 191 | h | Action.h | #ifndef _ACTION_H_
#define _ACTION_H_
#include<functional>
class Action {
private:
std::function<void()> action;
public:
Action(const std::function<void()>& a);
void run();
};
#endif |
3b05205edfdf74d38643a36bbff1742001bc58ae | 82d0d49d7997b119d5eabee688d653e95502d4fe | /src/core/vulkan_instance.h | 10647e3a4f9c4956668e016bcdd11ef32c7ce6b6 | [] | no_license | filipecn/vulkan-experiments | a2d48cca93dee044caa211825d73dc833696f13a | efccaaf5c2293dd32133d2edf11292de473831fa | refs/heads/master | 2021-01-01T05:21:28.485595 | 2020-05-08T14:46:58 | 2020-05-08T14:46:58 | 56,081,006 | 0 | 0 | null | 2020-05-08T14:46:59 | 2016-04-12T16:45:11 | C++ | UTF-8 | C++ | false | false | 3,571 | h | vulkan_instance.h | /// Copyright (c) 2019, FilipeCN.
///
/// The MIT License (MIT)
///
/// 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 u... |
78dc6f83f64c665b87240f7e78425e5c488949de | 68f2fbd6d891e3930608e8086d61946ffe0971a9 | /B1043.cpp | 0c2c921211830166d742c011194052499f67a792 | [] | no_license | WEN1WE/PAT | dbb40932621138b0a33cc9f072d4217a54561061 | 696d77e751ac46fdd2d544a02db8604a1a2871bd | refs/heads/master | 2020-06-27T20:46:07.119790 | 2019-12-03T01:41:49 | 2019-12-03T01:41:49 | 200,045,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | B1043.cpp | /*
* 1. 此题使用 hash table 简单
*/
#include <iostream>
using namespace std;
int main() {
int count[256] = {0};
string table = "PATest";
string s;
cin >> s;
for (auto e : s) {
count[e]++;
}
while (true) {
bool flag = false;
for (int i = 0; i < 6; i++) {
if... |
3ae9ae90b252aa730d26815d93d3dd848507eef9 | 6ce40a8eab21b32e8890f4bc44932a55741d8f02 | /src/Commands/AutoSelector.h | 20aa27d8a9af3e5ef14aaeea0a29def069241cf6 | [] | no_license | daredevils2512/PowerUp | 1a12056bf3d4e547768560a9584d1a6d23bf015a | 367a283a7daa1a343d2219f92265084e887d1790 | refs/heads/master | 2021-03-27T12:37:22.678353 | 2018-05-17T21:24:31 | 2018-05-17T21:24:31 | 116,889,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | h | AutoSelector.h | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
15e2a8434347e2b74063732d008498f0b1f4e5c2 | cd94e4a89afb36b4d03f4808c6001c65217d63d7 | /SpehsEngine/Net/Port.h | 40e770765e57d8e351242e13ea238a5a82cf41ac | [] | no_license | Yuuso/SpehsEngine | 61e35a6cc6f800fddd6aa36ad4e3b225c1f222e5 | 04bbddaf7c3d8d597f6b79cd54732506ce0b34cc | refs/heads/master | 2023-08-16T22:59:50.776551 | 2023-08-10T16:35:01 | 2023-08-10T16:35:01 | 51,141,207 | 1 | 1 | null | 2016-09-16T07:11:18 | 2016-02-05T10:49:43 | C++ | UTF-8 | C++ | false | false | 704 | h | Port.h | #pragma once
namespace se
{
namespace net
{
struct Port
{
typedef uint16_t ValueType;
Port() = default;
Port(const ValueType& _value) : value(_value) {}
operator ValueType() const { return value; }
bool operator==(const Port& other) const { return value == other.value; }
bool operator!=(const ... |
646e580064d05e14b581b925378a69be48b14472 | d31f699e417a79d3d242b1a0f25387c1d90ae439 | /Exo_FSM/Exo_FSM/FSM_State.cpp | 7a2d60d47467eedf786fa6014739c69d9981d61b | [] | no_license | CptWildfire/Exo_FSM_cpp | c97659436e188ead91321a4b19da8b6fe9b059fc | 18be5a24ed19d21aefa553a8b0a4b9ac0051d578 | refs/heads/main | 2023-04-27T07:48:42.371545 | 2021-05-08T20:01:04 | 2021-05-08T20:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 887 | cpp | FSM_State.cpp | #include "FSM_State.h"
#include "FSM_StateMachine.h"
FSM_State::FSM_State()
{
}
FSM_State::~FSM_State()
{
for (int i = 0; i < allTrans.size(); ++i)
{
delete(allTrans[i]);
}
}
FSM_State::FSM_State(FSM_StateMachine* _fsm)
{
fsm = _fsm;
}
void FSM_State::Init()
{
}
bool FSM_State::CanEnter()
{
return true;... |
75b7072ebc6e67de965d1d874217bc77ea8f21d5 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/Basic-Dynamic-Mesh-Tutorial-OpenFoam/TUT16rotating/3.98/meshPhi | 0db70c2d3410d22579ccede1986b11da004d75c4 | [] | 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 | 88,157 | meshPhi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
fb7a445810b271d1b0394ba5684e2207267ca060 | 6d98c93d1ea7abac7f1dec9ae39d26cf352d8313 | /b_dokushu_cpp/ch03/list_3.19/main.cpp | b6f6758f1998704979ccc590d20bc3fa414a2725 | [] | no_license | cl-kn/cpp_study | df4fc6e4ee3acf38f19e9f0b123f6835dc2039df | 423e62cfc42b3e607caa028900c2c83f4fb0153b | refs/heads/main | 2023-04-16T16:25:17.981571 | 2021-04-26T00:56:19 | 2021-04-26T00:56:19 | 315,309,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | main.cpp | //***************************************************
/** 21/2/11
* P172 list3.19 「共用体と構造体の違い」
*/
//***************************************************
#include <iostream>
#include <stdio.h>
union U
{
public: //デフォルトは public
float f;
private:
int i;
public:
U(); //コンスト定義可能
int get_i() const;
};
/... |
118454bac9f8bac98734652d5d220d6d63701b6a | 611ad108658cc2cd06be410c7dc4ffb4c3c8cc19 | /Classes/views/HSTitleLayer.cpp | 5d82e6e0cefe21dc78eb2c9d23b275005168d218 | [] | no_license | thedoritos/TomoMatch | a445a66e54a34f2977deba0c5b7bb7bc43a63b9f | d5d53594eafd701d006d96deec5b1c71b206ef29 | refs/heads/master | 2016-09-06T16:17:43.581010 | 2013-11-26T09:19:00 | 2013-11-26T09:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,447 | cpp | HSTitleLayer.cpp | //
// HSTitleLayer.cpp
// TomoMatch
//
// Created by thedoritos on 2013/11/14.
//
//
#include "HSTitleLayer.h"
#include "HSGame.h"
#include "HSAssets.h"
#include "HSBackground.h"
#include "HSPlayLayer.h"
bool HSTitleLayer::init()
{
CCSize visSize = CCDirector::sharedDirector()->getVisibleSize();
CCPoint ... |
7e0f111887ba507cd00d3ce0c0b00b780bb15041 | e4abad832c79ad403f6a88950a0a46e4bcdce019 | /Additionals/Grid/grid.cpp | db3c6bd4d620fe155a69066d119cf2c88014ebc7 | [] | no_license | AlexFrania/CS-201 | 070176faa06f5fa31093d10fdcb97cda0745dbe0 | 403eb7a403c5bcb8c06007bbbaefa9be833118d5 | refs/heads/master | 2020-07-14T23:50:52.214019 | 2019-10-09T22:16:01 | 2019-10-09T22:16:01 | 205,418,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | grid.cpp | #include <iostream>
using std::cout;
using std::cin;
int main()
{
char grid[3][3] =
{
{'1','2','3'},
{'4','5','6'},
{'7','8','9'}
};
char hit = 'x';
int row = 0;
int col = 0;
for (int label = 1; label <= 15; label++)
{
cout << " ";
while (label == 3)
{
cout << "A";
break;
}
while (label... |
eaac3e83f53b89d85185168ddbd1abcc3ff2fa35 | d3b52af0437f5c227bbc3a45877697ea8f80b7ae | /Framework99C/UIMgr.cpp | 2afb1f5f36c146180b0d46363a2bed69725cf8ac | [] | no_license | suha1515/APITeamProject | 1b2e16f89c16b9b5b9d64ef305771540cde6a55f | 746f1452101787dc544c427131207b5c91c59e52 | refs/heads/master | 2022-02-13T23:25:55.271194 | 2019-07-28T07:56:52 | 2019-07-28T07:56:52 | 197,739,755 | 0 | 0 | null | 2019-07-27T12:21:51 | 2019-07-19T09:00:50 | C++ | UTF-8 | C++ | false | false | 1,606 | cpp | UIMgr.cpp | #include "stdafx.h"
#include "UIMgr.h"
DEFINE_SINGLE_TONE(CUserInterfaceMgr)
void CUserInterfaceMgr::Initialize()
{
m_nNumOfLife;
m_nNumOfSpecial;
m_pTextureBoob = CResourceMgr::GetInstance()->LoadTexture("UI_Bomb", _T("Stage/Item/Item_Bomb.bmp"));
m_pTextureBoob->SetColorKey(RGB(0, 128, 128));
m_pTextureLife ... |
86e6c1e7e0c6c13fc0ae7bef231d5baa79f2386c | 546939137745647ce56184db4e5cf3a795ee3f2b | /kitti_read_utils.h | b9dbd4dd22287275170ec4b3fe04a558c1b977d9 | [] | no_license | liuqi8827/Kitti_Read | 471410f84caae21db6a4033dfdb1d789d9ec8962 | 6b90f0f9ac5b1ac06e1cb5ebf3c9ae251ae08e33 | refs/heads/master | 2020-05-19T18:27:36.507106 | 2018-01-03T06:49:26 | 2018-01-03T06:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,578 | h | kitti_read_utils.h | //
// Created by zhanghm on 17-12-26.
//
#ifndef KITTI_READ_KITTI_READ_UTILS_H
#define KITTI_READ_KITTI_READ_UTILS_H
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
//OpenCV
#include <opencv2/opencv.hpp>
//PCL
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
//Eigen
#include <Eigen... |
1eba077c874b2a8ebd97f5389a9157a86d972163 | 9bcf72a8d80fe36155bc9a9c2acc23d9861a7315 | /Parchis/LCD.cpp | 5f8401f88786a867f102d457f40324ae9eb68ec3 | [] | no_license | SebastiaNoceras/Embedded-Parcheesi-Game | 42c37fd1e3ec53fa8803d4d2bd85165393323d08 | d95bbe0bb0116958b24abd3ee4c8df26c8bf9162 | refs/heads/main | 2023-01-02T15:24:25.878790 | 2020-11-04T12:52:20 | 2020-11-04T12:52:20 | 309,998,673 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,677 | cpp | LCD.cpp | /**
@file LCD.cpp
@author Sebastià A. Noceras Anderson
@date 06/03/2020
@brief LCD library.
*/
#include "LCD.h"
#include "keypad.h"
/*******************************************************************************
** Initializations
******************************************************************************... |
56fb2999a26295b54eed9562ff696b2662056b67 | 31ac07ecd9225639bee0d08d00f037bd511e9552 | /externals/OCCTLib/inc/Storage_Error.hxx | e1bd8230b4f67fd1e78184358615eff3044b1569 | [] | no_license | litao1009/SimpleRoom | 4520e0034e4f90b81b922657b27f201842e68e8e | 287de738c10b86ff8f61b15e3b8afdfedbcb2211 | refs/heads/master | 2021-01-20T19:56:39.507899 | 2016-07-29T08:01:57 | 2016-07-29T08:01:57 | 64,462,604 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | hxx | Storage_Error.hxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Storage_Error_HeaderFile
#define _Storage_... |
c79175ee3dae04ef9babca55a2d3916775ae14d5 | fad78df3ec8b996e2286800ea919e3909eb7d722 | /05/main.cpp | da5ca93d65c58007d219d144e81d404f7400d674 | [] | no_license | arZamalyutdinov/msu_spring_2019 | 70b106a30ca12b3e756c9b1a129071d031efb964 | c055c0e08763fd29ee6ae5628258a1d48c1ebf6d | refs/heads/master | 2022-01-13T02:45:25.001377 | 2019-05-14T09:39:24 | 2019-05-14T09:39:24 | 176,367,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | cpp | main.cpp | #include <iostream>
#include <mutex>
#include <thread>
#include <functional>
#include <condition_variable>
constexpr uint64_t maxTimes = 1000000;
void ping(std::mutex &mtx, std::condition_variable &cond, uint64_t &count)
{
for (; count < maxTimes;) {
std::unique_lock<std::mutex> lock(mtx);
cond.wa... |
07daf23c6ceb2e88a0a8efb910bafa25c6b4129a | e5fe874722b1e5658d233a2cf751f5b87f401d29 | /src/mapWorld.h | bf9b60e030398f53b4149195824fb91b3967d070 | [] | no_license | CppBanden/Zap | 2a803164062de695b68ecc4d5732e4ffa666def2 | d594e7e4ec30b78662182d52878bfee4e107aa8e | refs/heads/master | 2021-01-10T20:05:06.186964 | 2015-04-06T21:40:18 | 2015-04-06T21:40:18 | 31,385,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | h | mapWorld.h | //
// mapWorld.h
// Zap
//
// Created by Martin Fasterholdt on 08/03/15.
//
//
#ifndef __Zap__mapWorld__
#define __Zap__mapWorld__
#include <stdio.h>
#include "ofMain.h"
#include "location.h"
#include "item.h"
#include <vector>
class MapWorld
{
public:
float areaFraction;
ofColor color;
ofVec2f offset... |
d22ecaf7213e2acbbd2607c55e19ec3e4a249dad | ec890e6479050f160f25978cafe5a7ab95d8269c | /SolidGroup/Window/MiddleWindowToolBar.h | c895acffe74ee8bf417713266ca6a4a70ba833b2 | [] | no_license | Andrew90/1630_SolidGroup | 5485fb25fc4e5b0d5de3e1e51fded01f1e7be20d | e838f8acf1591475aa1a69d2c3b2c81022fdee19 | refs/heads/master | 2021-05-04T09:15:22.395898 | 2016-10-11T11:25:50 | 2016-10-11T11:25:50 | 70,449,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | h | MiddleWindowToolBar.h | #pragma once
#include "../Resource.h"
#include "InitToolBar.hpp"
namespace MiddleWindowToolBar
{
void LeftArrowHandler(HWND h);
void RightArrowHandler(HWND h);
void UpArrowHandler(HWND h);
void DownArrowHandler(HWND h);
typedef TL::MkTlst<
SeparatorToolbar<0>
, ButtonToolbar<IDB_LeftArrow, LeftArrowHandler>
, Bu... |
40a329b1219a83408e54fea5f97ef4aeb9cd0755 | f6efcbbcbb2c3ae6af0f4cfccf0ae8cf293a8484 | /Tools/PerlinTabsGen/IntNumGen.h | 1df900ab7c3eb080d779beb4c32d9567c7849e76 | [] | no_license | grossbear/gappdev-prev | fe7b4954586cd88d66bda1d554ed0d0b1a1113e6 | 3de2db957040ced787098ee9d3d7d334da004123 | refs/heads/master | 2021-09-24T08:17:26.287363 | 2018-05-26T22:27:42 | 2018-05-26T22:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | h | IntNumGen.h | ////////////////////////////////////////////////////////////////////////////////////////////////
// IntNumGen.h
//
// Class generates integer value in ascending and descending order
//
////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef __INTNUMGEN_H__
#define __... |
a79785edd7afc484198ac93be56f202475de5387 | a924f08153821715ef937b70735757997a090b10 | /animals2.cpp | 81e381a2ca3523d378c89d052ee6d9e778191c5c | [] | no_license | beepscore/cpp_intro | 0a6cef6877ec73383c5bc8d2f59160c3c625fd66 | d6c0ee9031ae0325ef0ab80a53928c32614e5ac9 | refs/heads/master | 2020-12-25T19:03:30.514986 | 2018-11-13T05:14:00 | 2018-11-13T05:14:00 | 29,925,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | animals2.cpp | # include <iostream>
# include <string>
using namespace std;
class Animal2{
public:
void getFamily() {
cout << "We are animals" << endl;
}
// virtual keyword enables subclass to override
virtual void getClass() {
cout << "I'm an Animal" << endl;
}
}... |
e1f501e9d126f9992b4d38699bb78865ea85739b | 2b71bfced43b719097bae182ceb52d73dbe27fac | /ascenddk/scripts/travis_scripts/comm/showCamera/showCamera.cpp | 650d8d40040873d2fb371474c3e3c3a9ecfcb632 | [] | no_license | buddytian/travis_test | 190e9c1f9063a92fe5f706930bbb59489de7689c | eb4b3bab41d3ff3a32327231b9309426f4a861b0 | refs/heads/master | 2020-04-11T02:47:52.284821 | 2018-12-29T08:32:12 | 2018-12-29T08:32:12 | 161,456,455 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,041 | cpp | showCamera.cpp | extern "C"
{
#include "driver/peripheral_api.h"
}
#include "hiaiengine/engine.h"
#include "hiaiengine/data_type.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <unistd.h>
using namespace cv;
using namespace hiai;
using namespace std;
//摄像头参数
#define WIDTH 1280
#define HEIGHT ... |
02c5d2e19b8e116a27493f88832155fb17b478fc | 7cf77f209cf203680e3f1fc7a2eb2a2c48b1aebe | /2-3.cpp | c5e402e42eaf44d28265667494c1436ba42de4c5 | [] | no_license | Cheldya/cpp | 3bbc27490a0c5892301d85328b757858167dae4e | 4f90be64b9707553c1846c39409feb014b9a7db8 | refs/heads/master | 2021-05-03T14:16:40.252404 | 2018-03-01T04:58:17 | 2018-03-01T04:58:17 | 120,520,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | 2-3.cpp | //
// Created by obhat on 2/28/2018.
//
#include <iostream>
using namespace std;
int main() {
int x;
cout << "please enter a grade" << endl;
cin >> x ;
switch(x)
{
case 90 ... 100:
cout << "A"<< endl;
break;
case 80 ... 89:
cout << "B" << endl;... |
86d5700aebd2ede6e2c7c9866f694d05d789d2fa | 6a0262e0820939af2b97808e9ac27bfe809ef1c9 | /include/KingSort/KingSort.hpp | 64cafe87b99d1a2cdc8c39060bdd00bb7e3ca953 | [] | no_license | LucasFiorini/TesteLogica | 11d75ba68e19705811b3da4419b8fc5829d59e80 | abaaaf2fd7c4402bb26833917c39bac556cb271b | refs/heads/master | 2022-03-21T01:37:10.965575 | 2019-12-04T18:35:51 | 2019-12-04T18:35:51 | 225,798,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | hpp | KingSort.hpp | //
// Created by Lucas Fiorini on 2019-12-04.
//
#ifndef KINGSORT_HPP
#define KINGSORT_HPP 1
#include <string>
using namespace std;
class KingSort {
public:
/**
* This method uses Bubble Sort logic to sort the array. As
* the input size is not greater than 50, a simple sorting function
... |
54d968bfd7feadec23c6f81c1cfb8ae340e1548d | eb618b64f5af1ddec1647cb33ebacb545c03e8c2 | /1. Algorithms/6.3 Next Permutation on Vector .cpp | 2e8d79e4a190b801ff6a7e9f3c393fc8d9336e02 | [] | no_license | TusharKukra/STL | 918cabb8e5a6763069b4127d293cda699d452505 | ed692a3bbff2504763cd283b429009e302051696 | refs/heads/main | 2023-02-10T00:03:59.139469 | 2021-01-08T18:11:07 | 2021-01-08T18:11:07 | 314,714,477 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | 6.3 Next Permutation on Vector .cpp | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
// Rotate method (rotating a container)
int arr[] = {10,20,30,40,50};
int n = sizeof(arr)/sizeof(int);
// Now for rotating from middle element
rotate (arr,arr+2, arr+n);
for(int i=0;i<n;i++)
{
... |
eb7d1a173bf337d6e79654e58bb52e9119ba922a | 232bdf11e6d48d54876842f76e9e28d622590e83 | /thirdpart/linux/qprofile/.svn/pristine/eb/eb7d1a173bf337d6e79654e58bb52e9119ba922a.svn-base | 1a42f284c861e4d9ed00132617dd94c787356a55 | [
"Apache-2.0"
] | permissive | c6supper/json_serialize_deserialize_qt | 22a1c24a4d967a2ca9a8e9c8e6485f4ee581c62a | c70e89056900835221309f7c54dcca2e9fefe498 | refs/heads/master | 2023-05-27T06:13:39.867301 | 2021-06-15T01:47:49 | 2021-06-15T01:47:49 | 377,003,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,185 | eb7d1a173bf337d6e79654e58bb52e9119ba922a.svn-base | /* This file is part of qprofile
*
* Copyright (C) 2018 Calvin <c6supper@hotmail.com>
*/
#include "qabstractcontainer.h"
#include "qobjectfactory.h"
#include "qabstracttopic.h"
#include <QMetaClassInfo>
#include <QTimer>
#include "qabstractipcclient.h"
#include "qprofile_debug.h"
#include "qgenerictopic... | |
368c9123c3071305b8a5faa6969ef2299036d6b8 | fd99b3c2c39589da1ef40c3397fedeb6cbef5558 | /Code-chef/chef wars.cpp | 31adf417a3d4b1569f2c5fbb77dc07266da52c32 | [] | no_license | codeEmano/CompetitiveCodes | bc0e4f00e5f97bdd194b5e815521a05f4bdbaf0b | 483f5900cf276039b3a52dd061655ff4201fbbb1 | refs/heads/master | 2020-08-29T15:59:35.159423 | 2020-08-16T15:01:02 | 2020-08-16T15:01:02 | 218,082,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | chef wars.cpp | #include<bits/stdc++.h>
using namespace std;
void solve(long h,long p)
{
if(p>h)
{
cout<<"0 "<<endl;
return;
}
while(h>0 && p>0)
{
h-=p;
/*if(h==0)
{
cout<<"1"<<endl;
return ;
}
*/
//cout<<"h= "<<h<<" p= "<<p<<endl;
p/=2;
}
if(h==0)
{
cout<<"1"<<endl;
}
else
{
cout<<"0"<<endl;
}
}
in... |
40a5f3895f32b84faad6b3490a0d69556438c0e9 | 55e143c0bbd2346b8573dba0c414babac7b8f4a5 | /engine/lib/cpp-colors/include/cpp-colors/color_io.h | ca123739164982f2f69bde64e2dee335aa509e83 | [
"Apache-2.0",
"MIT"
] | permissive | ColinGilbert/noobwerkz-engine | 27444332ff055ebb7c4b3a0594c23a22e7b730c5 | f5670e98ca0dada8865be9ab82d25d3acf549ebe | refs/heads/master | 2021-01-17T15:01:52.281427 | 2020-11-19T17:51:56 | 2020-11-19T17:51:56 | 34,536,649 | 21 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 19,809 | h | color_io.h | #pragma once
#include <iosfwd>
#include <iomanip>
#include <string>
#include <sstream>
#include <limits>
#include <type_traits>
#include <cstdint>
#include <cctype>
#include <cassert>
#include "color.h"
#include "color_named.h"
namespace colors {
namespace {
template <typename T>
struct symbols;
tem... |
1ffc1337ca1f445c80075a9df12075d12b730b05 | ce2f4436aaf2a5b329e6bde121f74ab2eb954341 | /MS6/Menu.cpp | 5285e49b1e091f4a39195d10df344ace6a5605fd | [] | no_license | PriyaKhatri7/BTP200-CPP-Summ2022 | 7cf032e653683c820efa0c21db4f62f4a900adb5 | 7daf16ae422e8ca0870e8c1d538bf699fa4440bb | refs/heads/master | 2023-01-22T22:14:24.520413 | 2020-08-09T22:23:44 | 2020-08-09T22:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,018 | cpp | Menu.cpp | /*I have done all the coding by myself and only copied the code
that my professor provided to complete my workshops and assignments.
Priya Khatri | 110149176 | pkhatri4@myseneca.ca*/
#include <iostream>
#include <cstring>
#include <iomanip>
#include "Menu.h"
using namespace std;
namespace sdds
{
Men... |
ceb3cc48dd4cca1c30c33d6709d6c0501a5a7c9c | ca5f51c4fecdb3cca7ffc0544c17de0c412086f8 | /Arrays/Subarray/Maximum sum subarray of size between a and b.cpp | e720270d5fa400080e9543bb554cba2ae4ed880c | [] | no_license | avinashw50w/ds_algo | f517bbb326a922258e6ef7816e6c06593a2d06aa | bc73bd617486ab8fcbbdd8a076cacd3761c6c954 | refs/heads/master | 2023-07-22T17:44:44.815336 | 2023-07-13T07:38:22 | 2023-07-13T07:38:22 | 193,303,550 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | Maximum sum subarray of size between a and b.cpp | /*Find the maximum sum among all those subarrays whose size is between a and b.*/
int solve(vector<int> A, int a, int b) {
int n = A.size();
int sum[n + 1] = {};
for (int i = 0; i < n; ++i) {
sum[i + 1] = A[i] + sum[i];
}
set<array<int, 2>> st;
int ans = -1e9;
for (int i = 0; i <= n; ++i) {
if (i >= a)
... |
0d71f54661d20fc7496eda79988e64ee726608dd | 3a436656efff41eb12e557f4bff091404515271e | /lesson-2/random-rgb.cpp | 7fb18d76885ce2b6c95dd0a0758985e697ba621d | [
"MIT"
] | permissive | KSXGitHub/practice-opencv-at-the-lab | ed8e277c3f990f9255fa2effb988c951654f3186 | f0258a7196c7107e4062e45eaf8d0cbf3f248089 | refs/heads/master | 2021-01-17T22:58:22.454338 | 2017-04-10T05:43:27 | 2017-04-10T05:43:27 | 84,207,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | random-rgb.cpp | #include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
int main () {
Mat mat(512, 512, CV_8UC3);
randu(mat, 0, 255);
const string title = "The Random Matrix";
cout << title << ":\n" << mat << endl;
namedWindow(title);
imshow(tit... |
7f66559cb5992956cbf95b96c48015bffffb16fd | 635c344550534c100e0a86ab318905734c95390d | /wpinet/src/main/native/include/wpinet/WebSocket.h | 6e886c39414f03e55d95e5da0e2f8f65aaa095f5 | [
"BSD-3-Clause"
] | permissive | wpilibsuite/allwpilib | 2435cd2f5c16fb5431afe158a5b8fd84da62da24 | 8f3d6a1d4b1713693abc888ded06023cab3cab3a | refs/heads/main | 2023-08-23T21:04:26.896972 | 2023-08-23T17:47:32 | 2023-08-23T17:47:32 | 24,655,143 | 986 | 769 | NOASSERTION | 2023-09-14T03:51:22 | 2014-09-30T20:51:33 | C++ | UTF-8 | C++ | false | false | 17,090 | h | WebSocket.h | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#ifndef WPINET_WEBSOCKET_H_
#define WPINET_WEBSOCKET_H_
#include <stdint.h>
#include <functional>
#include <initialize... |
cced38b7a770e3b8eb265d3ab8db880133e04cc3 | 43083741d5eb9bc75e5bcafe5696bbfc0d79ef92 | /CR694/A.cpp | d40671bcbf08d39810094d6527f6d6f03db73df3 | [] | no_license | shubhamamsa/Code-Forces | bf6bdb57ef801bfe48aa218e60dd2beaa0997aa7 | e45dbf4c70ae10abfd6960cffccd2d4242b695ac | refs/heads/master | 2021-12-23T22:25:07.588221 | 2021-09-28T14:14:44 | 2021-09-28T14:14:44 | 187,487,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | A.cpp | #include<bits/stdc++.h>
#define mod 1000000007
using namespace std;
void subMain() {
long long n, x;
cin >> n >> x;
long long a[n];
for(int i=0;i<n;i++)
cin >> a[i];
long long a1 = 0, a2 = 0, sum = 0;
for(int i=0;i<n;i++) {
sum+=a[i];
if(a[i]%x==0)
a1+=a[i]/x;
else
a1+=a[i]/x+1;
}
if(sum%x == 0... |
a6a69d771687d5dbac3c419abf1e8a80c0037ab6 | deb7150cd9a35d4b995345aa43930c177ca89415 | /EX02/prova02.cpp | cfac25d1289ee38a1015ec113cdf4c1ccb14df51 | [
"MIT"
] | permissive | HomeniqueM/Atividades-LPA | 27780839de8ccab59a8b974de4c82ffd10941541 | 1bc2f429d4d6afd807095be877145fbedf282329 | refs/heads/master | 2023-08-28T02:58:14.636156 | 2021-10-24T11:06:52 | 2021-10-24T11:06:52 | 401,107,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,978 | cpp | prova02.cpp | #include<iostream>
#include<string>
#include<vector>
#include<bits/stdc++.h>
typedef struct Edge{
std::string i, j;
int w;
Edge( std::string I, std::string J, int W ): i(I), j(J), w(W) {
this->i = I;
this->j = J;
this->w = W;
}
bool operator < ( const Edge& e ) const {
return ... |
2f915948255f9d7101b53daeed8986f3d140dff1 | 5d1ca443b4751bd67290f95f0d1022c52809574e | /src/XPHit.cpp | b7258296bf3e4a586c05a31bf22b034c29480ab3 | [] | no_license | aogaki/XrayPinhole | e04419a0203ae161a8d5fe641cbc2c1257f95d81 | 1c63d07e65c893f8d80d9e09421aa68f60d58542 | refs/heads/master | 2021-01-19T18:43:40.669728 | 2017-09-05T12:00:14 | 2017-09-05T12:00:14 | 101,159,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | XPHit.cpp | #include <iomanip>
#include "G4SystemOfUnits.hh"
#include "G4UnitsTable.hh"
#include "XPHit.hpp"
G4ThreadLocal G4Allocator<XPHit> *XPHitAllocator = 0;
XPHit::XPHit() : G4VHit() {}
XPHit::~XPHit() {}
XPHit::XPHit(const XPHit & /*right*/) : G4VHit() {}
XPHit &XPHit::operator=(const XPHit & /*right*/) { return *thi... |
cea4dc7353af8d34e1067ee3c30fde7b505923fc | 52eef5bec2b7178c3d9c4e2679c7f02ce29ffd31 | /src/EnvUtils.h | 7389eccedc76afb4948ecf626a3282e11c945e62 | [
"BSD-3-Clause"
] | permissive | Krzmbrzl/mumble | e26907feebd0a8d50baf6a0b9744579fb7c491f9 | e828ef0458927b21df590f84efce051abd33b2b0 | refs/heads/master | 2023-08-08T19:43:38.596567 | 2023-06-30T19:51:40 | 2023-06-30T19:51:40 | 201,645,035 | 1 | 1 | NOASSERTION | 2020-06-05T16:26:40 | 2019-08-10T15:01:51 | C++ | UTF-8 | C++ | false | false | 837 | h | EnvUtils.h | // Copyright 2017-2023 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_MUMBLE_ENVUTILS_H_
#define MUMBLE_MUMBLE_ENVUTILS_H_... |
518bbbda7b5e852670af717aafc86a1008c58037 | cfc920c6f428a0bb92b430448df4af38cd7bc971 | /GOF/Prototype/cpp/maze/maze.cpp | eecabea12701a1c8d40926f538064714f4edc5c2 | [] | no_license | whywhywhywhygo/Design-Patterns | 386af210fdce40462bbbd967bd2a8487caac4a89 | 8d89569890277df6955569258be4d1dce5ef52af | refs/heads/master | 2020-04-28T14:44:19.315438 | 2019-04-02T01:12:53 | 2019-04-02T01:12:53 | 175,347,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | maze.cpp | //
// Created by gaojian on 19-2-27.
//
#include "maze.h"
using std::make_shared;
Maze::Maze(std::shared_ptr<Maze> maze)
{
std::copy(maze->m_rooms.begin(), maze->m_rooms.end(), std::back_inserter(m_rooms));
}
void Maze::addRoom(std::shared_ptr<Room> room)
{
m_rooms.push_back(room);
}
std::shared_ptr<Maze> Maze::... |
6f0547e7c8059457dc9e6980c672734a7674c3c2 | 06d8b77df9db207f087a2b511817e05bed8f5b02 | /snake/src/game.cc | 11562bebf49b0d78c73558745a887e98c2603548 | [] | no_license | superxcgm/terminal_game_center | fb8f10bc8c8f870b9aafe5aa049a825bde05b7b3 | d97075e2444ecc579237eac135f58f698887b508 | refs/heads/master | 2021-06-26T16:00:38.089710 | 2021-06-11T02:03:29 | 2021-06-11T02:03:29 | 96,505,624 | 3 | 2 | null | 2021-06-08T08:48:36 | 2017-07-07T06:17:44 | C++ | UTF-8 | C++ | false | false | 5,647 | cc | game.cc | #include "./game.h" /* NOLINT */
#include <ncurses.h>
#include <sys/time.h>
#include <ctime>
#include "./log.h"
void Game::Init() {
initscr();
if (COLS < WIN_COLS || LINES < WIN_LINES) {
endwin();
fprintf(stderr, "Your console screen is smaller than %dx%d\n", WIN_COLS,
WIN_LINES);
fprint... |
c0a6a7ab8ff55f435eeb2570a2c46b0abd3e3a1e | 0bb8652dae10d8d66f34f861d36fc57dc5b0d75a | /BasicCalculator.cpp | 039615e8d45234fd06745318e2496145e4fcf926 | [] | no_license | fangyw/LeetCode | f75c3a489bf8ae51561c66ee60c189dbda447e66 | 352776861311df2bfb8f7d49fa0ac845947fa175 | refs/heads/master | 2020-08-07T12:40:40.432623 | 2015-09-14T11:08:10 | 2015-09-14T11:08:10 | 41,598,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,240 | cpp | BasicCalculator.cpp | // Source : https://leetcode.com/problems/basic-calculator/
// Author : Yuwei Fang
// Date : 2015-08-30
/**********************************************************************************
*
* Implement a basic calculator to evaluate a simple expression string.
*
* The expression string may contain open ( and ... |
c8e2e7c89f56c606616faedd20a8a9ae0ea4127e | 45967cb52b3d0c1cf02e554af00eb62b2731b33b | /SPOJ/MST.cpp | 3c4e96e88d10c6590905ebf96e3d2f6b6218dd35 | [] | no_license | shubhi-singh/Coding--Practice | f71f46dfa157a94c2e4755426288f730dad72fa0 | 715ff4be80e157396a77941deb167e541eba26e4 | refs/heads/master | 2021-01-07T10:54:57.569319 | 2020-03-09T17:49:24 | 2020-03-09T17:49:24 | 241,669,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | MST.cpp | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
vector<int> parent;
vector<int> sz;
struct Edge{
int u, v, w;
};
bool compare(Edge a, Edge b)
{
return a.w < b.w;
}
int find_set(int v)
{
while(v != parent[v])
v = parent[v];
return v;
}
void make_set(int v)
{
parent[v] = v;
sz[v] = ... |
ed5f55f256f1464dfa0df459f59ed421ae417a41 | 26df6604faf41197c9ced34c3df13839be6e74d4 | /src/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.cpp | c3fc259afd9bec347b3e1b117c8cbf596d0230bb | [
"Apache-2.0"
] | permissive | pebble2015/cpoi | 58b4b1e38a7769b13ccfb2973270d15d490de07f | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | refs/heads/master | 2021-07-09T09:02:41.986901 | 2017-10-08T12:12:56 | 2017-10-08T12:12:56 | 105,988,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,822 | cpp | ColumnInfoRecordsAggregate.cpp | // Generated from /POI/java/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java
#include <org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.hpp>
#include <java/lang/Boolean.hpp>
#include <java/lang/Class.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/IllegalArgume... |
52862d40366d1fcd3f27855750782efa8fe18a87 | 26a8609ea4a110aced94a4e7f1f0ec375eecd689 | /mapmap/header/timer.h | 4df3cee593392bfaf10da63372fc8810e5f42f4e | [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dthuerck/mapmap_cpu | 2c4676c0b94d134d57d698173faa9d372a45df10 | fa526e0963ca3e431a02aa7b9e87b85ba8a8e304 | refs/heads/master | 2023-07-09T05:20:17.583047 | 2023-07-04T07:44:05 | 2023-07-04T07:44:05 | 75,747,968 | 92 | 45 | BSD-3-Clause | 2023-05-03T05:23:33 | 2016-12-06T16:06:55 | C++ | UTF-8 | C++ | false | false | 1,049 | h | timer.h | /**
* Copyright (C) 2016, Daniel Thuerck
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef __MAPMAP_TIMER_H_
#define __MAPMAP_TIMER_H_
#i... |
f812ba07309e28ae4a908ddc88efe3c0a98d282b | a3e625d9a9116e58edcd5bb1a0f4cdcda4154343 | /src/detail/hooks.hpp | c2ed474f4b1eb43bdd42537b810cd572ea4761b6 | [] | no_license | rpahl/permory | c8714d6db1702499878909c3d24ed1501bbd5e8c | 74ab6d2d17f0fa1f9d0c9bcbfb66668470728f7e | refs/heads/master | 2021-06-03T01:11:27.337818 | 2018-05-16T08:54:23 | 2018-05-16T08:54:23 | 38,930,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | hpp | hooks.hpp | // Copyright (c) 2011 Volker Steiß
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
#ifndef permory_detail_hooks_hpp
#define permory_detail_hooks_hpp
#include "detail/config.hpp"
//
// Definition of static hooks... |
becb9bd304064dec56c8ad4a839f98920a28095a | 32e35be42f367e36c3a8e57f18df5d88560cf862 | /sccdll2/prerace.cpp | a403e25d379d5245cbe7a364eaa090809a4f94b1 | [] | no_license | LodePublishing/StarCraft-Calculator | b19c53f0c92bdaccade73b68b4fc71af814d6fd0 | a547f276c563420baabffd53cf51176d56eff0fb | refs/heads/master | 2021-03-27T10:54:19.521151 | 2016-09-10T12:52:33 | 2016-09-10T12:52:33 | 67,313,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,951 | cpp | prerace.cpp | #include "prerace.h"
#include "debug.h"
MAP* PRERACE::getMap()
{
return(pMap);
};
int PRERACE::setMins(int num)
{
if((num<0)||(num>MAX_MINS))
{
debug.toLog(0,"DEBUG: (PRERACE::setMins): Value [%i] out of range.",num);
return(0);
}
mins=num;
return(1);
};
int PRERACE::setGas(int num)
{
if((num<0)||(num>MAX... |
2cfd39e06348475e014109fef315efedc71b6bc8 | cbd553df5e5ab01d06f5591510d13f80cdd4f7ee | /main/test_lambda.cpp | 7a27896fec2279333a0a6c818d11b3b8f3dc41bf | [] | no_license | pgmabv99/cpp_cmake2 | 9b832af109eef974046327adc874c2e9bb7180c6 | 286c21ef1094abcde047aa15d28c5ffdb470981f | refs/heads/master | 2023-02-21T00:03:29.665440 | 2021-01-26T17:46:34 | 2021-01-26T17:46:34 | 325,173,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,148 | cpp | test_lambda.cpp | #include "util.h"
#include "test.h"
class test_lambda_t::impl_t {
private:
string fname = "hello";
};
test_lambda_t::test_lambda_t() {
X2_CRT;
impl_p = make_unique < test_lambda_t::impl_t>();
};
test_lambda_t::~test_lambda_t() {
X2_DST;
}
bool fun_comp(int a, int b) {
auto i = 1;
return (abs(a) < abs(b)... |
98fcd1b58809e1f2fbf27f52c991eeca14b99cd8 | 8750d8d980ef4ad950e9bad8ce5b43eb96b0275c | /src/Commands/Auto/AutoRightGearDelivery.cpp | 1051e650e4a081e522428e0bb2a71a2a86a6fbeb | [] | no_license | FRC-4476-WAFFLES/Robot2017 | 3b5e8b9945e4f2e3078cc45532ab29ea7fca04b8 | 47020e91fb7325f39064b5cc03ced7d4566bde01 | refs/heads/master | 2022-01-29T09:45:27.073882 | 2018-06-18T00:18:49 | 2018-06-18T00:18:49 | 78,303,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | AutoRightGearDelivery.cpp | #include "AutoRightGearDelivery.h"
#include "Commands/Drive/DriveAuto.h"
#include "Commands/Drive/DriveAutoRelative.h"
#include "Commands/Drive/DriveHalfRelative.h"
#include "Commands/Intake/ConveyorAuto.h"
AutoRightGearDelivery::AutoRightGearDelivery() {
SetTimeout(15.0);
// AddParallel(new ConveyorAuto(1.0,1.0));
... |
a7d9ce017a9a71bb9c7d7fb8dcec7beea5ca171d | 23052253ddcb6611a100ae070b4c81c58763c5eb | /LogicalAND.cpp | 97aaa09a785df5bb6c29d09e122721212212f4a5 | [] | no_license | Chpaone09/CPP-Program-to-demonstrate-Logical-AND-Operator | 077fc7696d3497268ac39c9525b34e50d5aeb3ec | f7cdf541f446205fd2f4aa42ede663c4fb43bd83 | refs/heads/main | 2023-01-01T01:50:29.380693 | 2020-10-18T21:48:11 | 2020-10-18T21:48:11 | 305,202,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | LogicalAND.cpp | /*
***********************************************************
Topic : Program to demonstrate Logical AND ( && ) Operator in cpp.
Author : Chpaone09®
Date : Oct 19, 2020
************************************************************
*/
#include <iostream>
using namespace std;
int main() {
bool a = ... |
1d7107d9501788b0bcf0fbe424872d735d81347f | c6d109a9bf019e29aa07c5cd5159eb5f3b407fe3 | /sheaves/maps/name_multimap.cc | 99aa8e8fea2ba50935dd9683ec872f4cceca59c8 | [
"Apache-2.0"
] | permissive | LimitPointSystems/SheafSystem | 883effa60ec9533a085e2d1442c83df721e8d264 | 617faf00175b1422be648b85146e43d2fc54f662 | refs/heads/master | 2020-09-12T20:01:59.763743 | 2017-05-02T20:48:52 | 2017-05-02T20:48:52 | 16,596,740 | 2 | 3 | null | 2017-05-02T20:48:52 | 2014-02-06T22:44:58 | C++ | UTF-8 | C++ | false | false | 12,819 | cc | name_multimap.cc |
//
// Copyright (c) 2014 Limit Point Systems, 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 ... |
c79f1b2ed132fd579c68eccc92fb2254940ca01d | 1f4f393dbeca10cf4a16515cf31045a71450faf0 | /MiracleLib/MiracleException.cpp | 98f24f506ae03d61c2076f6c300ba4fe3cb8b65a | [] | no_license | hozgur/Colorway | e3d8ba36d12fb72239b8c6d69efdd05e1653158a | 34e712d228a393573547f95d44261b14c136731a | refs/heads/master | 2016-09-05T23:37:11.631592 | 2011-02-28T14:04:11 | 2011-02-28T14:04:11 | 1,420,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | MiracleException.cpp | // MiracleException.cpp: implementation of the CMiracleException class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MiracleException.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
///////////////////////////... |
9598eef308fad2bf0a0c833d8046d0b7c92298df | 8c1fe85cf353af702c2a16350bb7ced311e44103 | /src/core/utils/search_path.cc | 0e8a26f05e6f7349f930d129d25ca9d67856610d | [
"MIT"
] | permissive | ilariom/wildcat | 02b0f71a118927885724f100f49cbe427ee6db14 | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | refs/heads/master | 2021-07-10T03:48:43.223015 | 2020-07-15T09:01:13 | 2020-07-15T09:01:13 | 156,458,138 | 16 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cc | search_path.cc | #include "search_path.h"
#include <unordered_map>
#include <vector>
#include <cstdio>
namespace {
std::unordered_map<std::string, std::string> paths;
std::vector<std::string> searchPaths;
}
namespace wkt {
namespace path
{
void add(const std::string& path)
{
searchPaths.push_back(path);
}
std::string locate(c... |
7a4cc35324d8519a4e7451014212a4d3251b2b6e | a23ec145b281e72a2906b20d94049950ab1466cb | /day03/ex02/FragTrap.cpp | fbf6fb86043ab7e5d489e22e51ef589f85cc3707 | [] | no_license | oghobhainn/19_cpp_modules | 87c8efc8df59b25f0282d5c63fdcf3d620469e19 | a8f7b679c183df4ce86d57222bebf5fdb77da895 | refs/heads/master | 2023-05-07T10:13:14.619060 | 2021-05-20T13:44:34 | 2021-05-20T13:44:34 | 253,504,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | cpp | FragTrap.cpp | #include "FragTrap.hpp"
//=========== CONSTRUCTORS / DESTRUCTORS ==============//
FragTrap::FragTrap(std::string const &name) :
ClapTrap(name)
{
m_meleeAttackDamage = 30;
m_rangedAttackDamage = 20;
m_armorDamageReduction = 5;
std::cout << "FR4G-TP New " << name << ": here to kick some donkeys" << std::endl;
}
... |
86d0348241128a10c9cbfb56186363282170e472 | 922a76fa7dd5b57a3fa83f2a38db906254ee145c | /src/Spotify/SpotifyAPITypes.h | f93109ca8883f0a354707db880079d3afb619e92 | [] | no_license | wurmmi/VirtualJukebox | 323144ea8ba1cce1b7b8887297bf4fed6f35c401 | fdd478770d64f53e477bea16ce183013fb3c4465 | refs/heads/master | 2021-01-02T18:30:32.824669 | 2019-12-18T21:19:19 | 2019-12-18T21:19:19 | 239,744,287 | 1 | 0 | null | 2020-02-11T11:20:19 | 2020-02-11T11:20:19 | null | UTF-8 | C++ | false | false | 9,016 | h | SpotifyAPITypes.h | /**
* @file SpotifyAPITypes.h
* @author Stefan Jahn <stefan.jahn332@gmail.com>
* @brief Contains Structures for the Spotify Api
* @details These Structures are implemented as described the Spotify Object
* Model Link:
* https://developer.spotify.com/documentation/web-api/reference/object-model/
* ... |
52c47537dc4e94b7c636dce6272cdee10ed7c9d8 | dbcf4efd6a38bff97e3d2aa521c3a07bdeaa6f22 | /LoRa_MutiSensorforSTM32/LoRa_Weather_StationV1.0.2.191115_beta_LiuJiaHui/LoRa_Weather_StationV1.0.2.191115_beta_LiuJiaHui/BCD_CON.cpp | bfcb8cb3356ead6527d92d9305caf4ad5daa01d7 | [] | no_license | Arrogantyunya/LoRa_MutiSensorforSTM32 | 55b2a27947df0817121f034d7434fde8d36dcdf3 | 02b21670c9c431ed8e15d93e606aa150c0d91828 | refs/heads/master | 2020-09-11T02:09:41.364252 | 2019-11-23T08:22:59 | 2019-11-23T08:22:59 | 221,905,012 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,561 | cpp | BCD_CON.cpp | /**************************************************************************************************
Filename: BCD_CON.c
Description: BCD Code conversion function
**************************************************************************************************/
/****************************************... |
3fc2056f30bfb5332642147ed1f5b20ad830ec34 | 3f155f2399709ae63f4ee8f8e865be0223652cf8 | /hdnes/mapper1.h | 51337c7a9baf35c5c3106c3875c9bacff5460712 | [] | no_license | mkwong98/HDNes | ccbee98482d90d4c32b65808c6689550c9cfc02b | ad4f571cd14e467d98528eb7f56b3e66de4d8158 | refs/heads/master | 2021-06-24T10:16:08.687557 | 2021-01-12T16:43:39 | 2021-01-12T16:43:39 | 21,164,505 | 32 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | h | mapper1.h | #pragma once
#include "mapper.h"
//mmc1
class mapper1 :
public mapper
{
private:
Uint8 writeRegBuffer;
Uint8 writeNum;
Uint8 reg[4];
boolean chr8KMode;
boolean prg32KMode;
boolean slotCSwap;
Uint8 chrReg0;
Uint8 chrReg1;
boolean wramDisable;
Uint8 prgReg;
Uint32 lastPrgRead;
Uint8* chrPtr[2];
Uint8* pr... |
23033cd3ee6f8210fb34b39b5aed4d1b73fc4860 | a58e563e300aebe8a49c45c912824ae41de3f607 | /include/sleepy_discord/server.h | 7ad462c5b24bcaec1fad3936fdbeb87489787dec | [
"MIT"
] | permissive | braindigitalis/sleepy-discord | e2db04e6a6f1dbae7e6ad786b6e9d4a82a61188c | b075a5ca1b1f7c372ba6d2533bd2a5ca8d99bb05 | refs/heads/master | 2020-08-26T13:23:07.683805 | 2020-05-20T09:15:43 | 2020-05-20T09:15:43 | 217,024,010 | 2 | 0 | MIT | 2020-05-20T09:15:44 | 2019-10-23T09:52:13 | C++ | UTF-8 | C++ | false | false | 3,523 | h | server.h | #pragma once
#include <string>
#include <list>
#include "discord_object_interface.h"
#include "user.h"
#include "channel.h"
#include "snowflake.h"
namespace SleepyDiscord {
enum Permission : int64_t;
struct Role;
/*Guild Member Structure
Field Type Description
user object user object
nick s... |
3707a545115d8c2680aa6e86cd229f094fb689cb | c3e71c55c2eeac3b6cc8dcca9f4aafe3fa7f4747 | /Src/Ntrip/Src/tcp_server.cpp | 4c103eca078497c4ef5dee7cb438b87c02b0516e | [] | no_license | pvvovan/VrsTunnel | 00e3e14c4ce72b89c3c9c6b022782adb4dc659df | 16d6b821a89c1fd40249f582aec771502fdccc4b | refs/heads/master | 2023-05-27T19:19:41.784076 | 2023-05-07T06:33:17 | 2023-05-07T06:33:17 | 198,570,416 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,324 | cpp | tcp_server.cpp | #include <sys/types.h>
#include <cstring>
#include <sys/socket.h>
#include <netdb.h>
#include <string>
#include <sys/un.h>
#include <fcntl.h>
#include <chrono>
#include <thread>
#include <atomic>
#include <future>
#include "tcp_server.hpp"
namespace VrsTunnel::Ntrip
{
void tcp_server::task(uint16_t port, std::funct... |
dac9ff52f635f880295b96bc1bbb54194e010750 | e59162db5c206173ecc277b0c00654f1ccefa1ab | /Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationDisplayableManagerHelper.h | a582c8e6e76e4a6e9af412e5e519b69e6755a35f | [] | no_license | zoulianmp/Slicer2SRPlan | 29bd115236d3584748e582b17db310a9363d6648 | 041820fb7fc998878d4fc61fd720c06fd5295ff4 | refs/heads/master | 2020-07-11T16:41:36.828898 | 2016-04-12T01:46:25 | 2016-04-12T01:46:25 | 49,615,826 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,481 | h | vtkMRMLAnnotationDisplayableManagerHelper.h | /*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRMLAnnotationDisplaya... |
14594e56e7866cebd9219a336217522d92f1210a | cb336c51d1f5f09b7c7e0bcbc89403453a7c5e5c | /Framework/BaseDemo.cpp | 0a5ac4a4f026e53d94299ff0d7e5cd700990b44a | [] | no_license | Vinssou/ParticleEngine | 25e84f50350031062f174791a71b9cc23b24cc0e | 8244a1d472953a327cbcd769d6e9cd5d86da7b51 | refs/heads/master | 2020-05-31T13:07:41.664197 | 2019-06-06T01:30:16 | 2019-06-08T02:31:21 | 190,296,522 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,898 | cpp | BaseDemo.cpp | #include "BaseDemo.h"
#include <slmath/slmath.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <iomanip>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <locale>
#include <codecvt>
#include "Parser/tinyxml.h"
slmath::vec4 BaseDemo::s... |
7adf2158d49e3dc45969477d198f207bb9a09f72 | 1788eb9d06baad179eaff25c4b451ec87b190167 | /Base/src/resolver/expression/ResolvedTextLiteral.cpp | ca668672667ae0da1382cfd9f1e57bb2dad8b399 | [] | no_license | ReedOei/Enki-Old | 3fb5d3d85c642ade510b9d9348faaa113aaae86f | 17694c2e95a3531d68dcd5364f2795fb169932a9 | refs/heads/master | 2020-03-30T14:18:33.174114 | 2019-01-17T17:45:55 | 2019-01-17T17:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | ResolvedTextLiteral.cpp | //
// Created by roei on 22/10/18.
//
#include "ResolvedTextLiteral.h"
namespace enki {
ResolvedTextLiteral::ResolvedTextLiteral(const std::string &v) : v(v) {}
const std::string ResolvedTextLiteral::nodeName() const {
return "ResolvedTextLiteral";
}
void ResolvedTextLiteral::accept(Abstract... |
68df598622e3e2c8146e5ca2bc177a7613d8c2f9 | 8f6c90ccdc665902a8685c0721596b3016005b81 | /dia/codeCPP_classes de base - pour dia2code - SUITE - etape 3 ( bouton a cocher )/DnCaseACoher.cpp | db54e3a4b754bc3acfbe36894ee7a7ec6552c0b3 | [] | no_license | c-pages/gui | 680636880049f97e98ee2f06d9129b445f33f72f | bcc06972ba3cdaa631702c9c1c73ad15fa2952a3 | refs/heads/master | 2021-01-10T12:55:58.224743 | 2016-04-20T14:43:45 | 2016-04-20T14:43:45 | 47,876,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | DnCaseACoher.cpp | /////////////////////////////////////////////////
// Headers
/////////////////////////////////////////////////
#include <DnCaseACoher.h>
namespace gui {
/////////////////////////////////////////////////
DnCaseACoher::DnCaseACoher ()
: m_valeur ( true )
, m_bouton ( )
, m_coche ( )
{
}
/////////////////////... |
a28ff52acf774f94f9d909b91a3c2c80adc4b10e | e02c0c48d27e0f95fb5140f9455aa6c03fe06a70 | /window.h | 994b3e1bbeb4d8b51463b70ce6b3c61cf0906a6a | [] | no_license | SimoneDut/Orbiter | a18e36d6390fb230d9d8d3286c18febb47fa7991 | b660067e7788d0b50691c6f8971bd5734da90bfa | refs/heads/master | 2020-06-26T16:12:23.898084 | 2019-07-30T17:59:58 | 2019-07-30T17:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,719 | h | window.h | #ifndef WINDOW_H
#define WINDOW_H
#include <cstdlib>
#include <SDL.h>
#include "surface.h"
class SWindow {
public:
SWindow();
~SWindow();
bool init(const char* title, int x, int y, int w, int h, Uint32 windowFlags,
int renderIndex, Uint32 rendererFlags, Uint8 r, Uint8 g, Uint8 b, U... |
9a958985d06d4fe7e5102712e3e469b1bf0c635e | 85f0de2c523c75dffd834421636b36d792f6cc8e | /src/util.h | 0d9e83ba5902c049fdc1e8110a0f3b57be9668a2 | [] | no_license | things-i-want-to-forget/lua-flex | 411d377d3fc3b5cfdf5fb6ad9be3611c08f42226 | 476f1381417d9b22feaed7a9436aac46ce62554b | refs/heads/master | 2021-06-01T19:29:56.558240 | 2016-04-19T22:04:32 | 2016-04-19T22:04:32 | 35,054,759 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | h | util.h | #include <stdio.h>
namespace util {
typedef void *(__cdecl *CreateInterfaceFn)(const char *name, int *found);
template<class t>
t GetInterface(const char *module, const char *name)
{
HMODULE hmodule = GetModuleHandleA(module);
CreateInterfaceFn create = (CreateInterfaceFn)GetProcAddress(hmodule, "CreateInte... |
b5a4d1ff2f6b3e74152e69b5f2b3aedf225d06de | f97e9fc287624f78da673a8708eb0ef5468bccbc | /old/2156.cpp | 067c816b2fdaaeb632c7562932a61c2b5bee70b2 | [] | no_license | Minssc/BJA | 8a199e2aebe7b5c9a1de1c2b08ec4e4e97936e3f | b6bf93feac133e06e21949d4413f64302808e6b8 | refs/heads/master | 2023-01-12T00:32:27.316118 | 2020-11-15T07:17:09 | 2020-11-15T07:17:09 | 312,974,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | 2156.cpp | #include<iostream>
using namespace std;
short C[10001];
int D[10001];
int main(){
int N;
cin>>N;
for(int i=1; i<=N; ++i)
cin>>C[i];
D[1] = C[1];
D[2] = C[1]+C[2];
for(int i=3; i<=N; ++i){
D[i] = max(D[i-2]+C[i], D[i-3] + C[i-1] + C[i]);
D[i] = max(D[i], D[i-1]);
}
co... |
ca833ac945affe423cfd8f3a9d9e610942bff67f | 88d8d7b147e68bd4913fe05081cdb1574d933fca | /Source/Managers/LevelManager.cpp | 29f2ab6e1fc9bec69edfc7a7e77db3a9bdcae270 | [] | no_license | JimbobKR18/JFramework | d8acc577e81c6bbaf362a84061612d55f040f57a | 17563250df026425d91622cf7119727af78dc9e0 | refs/heads/master | 2020-04-04T05:41:28.162914 | 2019-09-28T07:36:16 | 2019-09-28T07:36:16 | 5,645,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,803 | cpp | LevelManager.cpp | #include "LevelManager.h"
#include "InputManager.h"
#include "LuaIncludes.h"
#include "LevelChangeMessage.h"
unsigned const LevelManager::sUID = Common::StringHashFunction("LevelManager");
LevelManager::LevelManager(GameApp *aApp) : Manager(aApp, "LevelManager", LevelManager::sUID), mActiveLevel(nullptr)
{
}
LevelMan... |
903bbad7beda3f1cad504517c21f4c5004cfaa27 | 5d438d08139f68f1a1e3fb0a03bde34dfaaa85d3 | /ant/2-3-4/main.cpp | e392a609e13cc3067a8092a81fab3ddf0fc19095 | [] | no_license | kooooohe/competitive-programming-study | 1432dc429294be17fd38511ad1add217dd1ef238 | 0b098c40e76b22bc3e2e5b431ca722a1666effcb | refs/heads/main | 2023-08-10T18:44:40.899052 | 2021-09-09T11:17:24 | 2021-09-09T11:17:24 | 323,051,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | main.cpp | //typedef long long ll;
#include <cstdio>
#include<algorithm>
#include <iostream>
#include <string.h>
using namespace std;
int n = 4;
int m = 4;
char s[5] = "abcd";
char t[5] = "becd";
int dp[5][5];
void solve() {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
if (s[i] == t[j... |
0435e4f07a5f6bfed7d8dab43706f1ad97203dae | 31e94c27019298386cc739f8b0788560ca3b7a25 | /viewer/VrMain.h | e302864edaf70101eb651ace9707b3933ec44e8a | [] | no_license | firwind/Ammyy-v3 | f7d5df9d0d4ea01fa4be6b96242fbedaef5e6e91 | 8bf063085550f522f4197d8a530801292a482179 | refs/heads/master | 2020-04-22T20:26:35.679847 | 2017-01-10T02:18:22 | 2017-01-10T02:18:22 | 170,641,720 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 592 | h | VrMain.h | #ifndef _VR_MAIN_H__INCLUDED_
#define _VR_MAIN_H__INCLUDED_
#include "res/resource.h"
#include "vrHelp.h"
#include "vrHotKeys.h"
#include "../main/InteropViewer.h"
#define WM_REGIONUPDATED WM_USER+2
class VrMain
{
public:
VrMain();
~VrMain();
static void CentreWindow(HWND hwnd);
static void On... |
941502578322479b88902a0379b69fc273df5a45 | b9d23d662e89fe101a07fef1b3937f1c80450f3b | /research/dollbot_rc_test/dollbot_rc_test.ino | 150c060c8e7870454acf4b37ac17286b6bd2dcaf | [
"BSD-2-Clause"
] | permissive | llmora/dollbot | ca3a4a0a8eaa33ffe9213d0743b9049c3c0dae77 | 96dc78cf7013bec94a19ff97ec60264d1a2857d8 | refs/heads/master | 2021-01-21T13:48:28.174645 | 2016-05-08T14:37:10 | 2016-05-08T14:37:10 | 36,959,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,721 | ino | dollbot_rc_test.ino | /*
dollbot_rc_test: Control dollbot using like an RC boat
This sketch uses a RC receiver to control the direction and rotation of the dollbot. The discrete X/Y/Rotation values received from
the transmitter are converted into vectors that are used by the propulsion system to move the boat in a holonomic fashion... |
67b741f9aa00cf3aad3110a17936a9e71bc5313f | 66088f05332b83a2c46df6c53eb02070b9384971 | /evgen/newep/grid.inc | ad3ffa332c0f5996635628c769cc6b825fbe9c98 | [] | no_license | xbai0624/PRadSim | 6583913f816e6917e707a726a54896b0446fe668 | a3fde3ee2fb50eaecb77a2fb813add919ffc4218 | refs/heads/master | 2021-01-20T15:42:11.370978 | 2017-05-12T19:54:45 | 2017-05-12T19:54:45 | 90,789,936 | 0 | 0 | null | 2017-05-09T20:41:03 | 2017-05-09T20:41:03 | null | UTF-8 | C++ | false | false | 172 | inc | grid.inc | parameter(nt1=210)
parameter(nt2=140)
parameter(nvv=240)
parameter(nph=180)
common/grid/grt1(nt1),grt2(nt2),grv(nvv,0:7),grv0(nvv),grphi(nph)
|
51aea014320f267b3e89d6fe7708556a4c0805a8 | 08b6882160a1d926bfe2f441dd031055e753a6fa | /test_spider/server/Core.cpp | b3f6267de35fdfbdf58fd4033a2f967f5935c5bf | [] | no_license | delespj/Spider | 416c2ca5a30ca237906ad81e29052f186205d3cd | 264f7ea1d64e63bdb0e4d17d5a47cdfa6710b5f3 | refs/heads/master | 2021-08-14T05:59:11.219575 | 2017-11-14T17:40:21 | 2017-11-14T17:40:21 | 105,150,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | Core.cpp | #include "Core.hh"
Core::Core() {
this->network = 0;
}
Core::~Core() {
}
Core::init() {
try {
boost::asio::io_service io_service;
this->network = Network(io_service, 4243);
io_service.run();
}
catch (std::exception& e) {
std::cerr << e.what() << std::endl;
}
}
|
8398baac9af92c7f81057b8c28f429dfc31c614b | c6bddd88916e6c8697a9e02485bd22c58d76bcec | /GeneratedPlaceholders/AIModule/BTDecorator_CheckGameplayTagsOnActor.cpp | 9d2397056fa78f7d781e70c5e9fb41eba7e64b50 | [] | no_license | GIRU-GIRU/Mordhau-Unofficial-SDK | 18d13d62d746a838820e387907d13b0a37aed654 | f831d7355cf553b81fb6e82468b3abf68f7955aa | refs/heads/master | 2020-07-06T03:36:48.908227 | 2020-04-22T13:54:00 | 2020-04-22T13:54:00 | 202,872,898 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 51 | cpp | BTDecorator_CheckGameplayTagsOnActor.cpp | #include "BTDecorator_CheckGameplayTagsOnActor.h"
|
d34caeebb59216741df36659b00152c86dbfbc8b | bf0b03beeb326a36990d93f6e20d6ef123fccbe0 | /VirtualMachine/Primitives/Array.cpp | 65359db056961b3a3ab3975efb2258f9fed3d52b | [] | no_license | Crawping/Cyclone | 451a4eccf0487d306fa8e0cb3880a8746e2857f3 | 410c80a965824039f53fd9afa9291b5084427915 | refs/heads/master | 2021-01-01T04:02:49.879405 | 2017-07-12T21:58:42 | 2017-07-12T21:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cpp | Array.cpp | #include "Primitives/Array.h"
namespace Cyclone
{
namespace Virtual
{
/** CONSTRUCTOR **/
Array::Array(ReferenceTypes type, uint capacity):
_data(capacity),
_type(type)
{
}
/** UTILITIES **/
Number& Array::Access(Reference location)... |
17441a9e72762d7b41171ad0793a5aac14b198a4 | 5100674f94aca3f0a0e9c4f3bcb16006d11e5c6b | /basic/vector.cpp | 3c6b0f9e22a9edd4b54eeeff0704f53f9338c0b9 | [] | no_license | erikliu123/algorithm_problems | 0702655ed61d60702395390e377d4e480aae75dc | 7cab9006dc37a745ac9a5f96a9d4265508b712af | refs/heads/master | 2023-08-11T13:01:07.235840 | 2021-09-27T03:28:41 | 2021-09-27T03:28:41 | 357,453,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,740 | cpp | vector.cpp | #include <iostream>
#include <array>
#include <vector>
#include <cstring>
using namespace std;
void Print(vector<vector<int>> a)
{
vector<vector<int> >::iterator p1;
vector<int>::iterator p2;
for (p1 = a.begin(); p1 != a.end(); p1++)
{
for (p2 = p1->begin(); p2 != p1->end(); p2++)
{
... |
dbdb32c16f503e6b9f37b3dfd96aadaabea86eaa | 270937d32c2bc8e33622d96c045b43b8a23bc086 | /ion/port/timer.h | 592fa0613dd7ef29ccb0eca10ad2de670a9b3d17 | [
"Apache-2.0"
] | permissive | google/ion | 32491fc26a0a2a5fd602e4008296ccba5017d689 | 514ce797458d02e7cd3a1b2d0b5c7ff8ccb5f5d1 | refs/heads/master | 2023-09-04T18:10:40.343013 | 2022-06-09T07:56:18 | 2022-06-09T07:56:18 | 50,387,855 | 1,651 | 132 | Apache-2.0 | 2018-05-12T02:16:47 | 2016-01-25T23:13:46 | C++ | UTF-8 | C++ | false | false | 2,358 | h | timer.h | /**
Copyright 2017 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 to in... |
8fd36cc2a885a35b78cde83a67508bc1f953941c | 208c908b3baa65dfcabb2e1369d8619a1ada1e15 | /lib/winss/supervise/state_file.cpp | 2bbf01addc9526acf7f43b97bd8183a39b32f4c9 | [
"MIT",
"Apache-2.0"
] | permissive | toenuff/winss | 41197f7698551d994cdba47cde0804a4e87ec143 | 05c912afb0de1c0cd08929333473fab0b81dcc73 | refs/heads/master | 2021-01-12T02:36:05.383456 | 2017-12-13T18:37:16 | 2017-12-13T18:37:16 | 78,072,735 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,428 | cpp | state_file.cpp | /*
* Copyright 2016-2017 Morgan Stanley
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
a7682e29ed954e7c7e1772317634969191f57d11 | f090bb5ce3d353327d573062230643f609ad6d33 | /5_9.cpp | 2f79f8ddd22cf8baca953c8ac07c8276a22fee8f | [] | no_license | rogersentongo/CPPSolutions | f5fc851b435043e32ab9017b131f921f05009aa2 | 7a3cd922271d565e31e4b15fcff2db4325145919 | refs/heads/master | 2020-06-04T10:02:18.225849 | 2019-06-18T00:29:10 | 2019-06-18T00:29:10 | 191,977,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | 5_9.cpp | /*
* Product of Odd Integers: Write a program that uses a for statement to calculate
* and print the product of the odd integers from 1 to 15. By Roger Sentongo
*/
#include <iostream>
using namespace std;
int main() {
int odd{1}, product{1};
//There are 7 odd integers between 1 and 15
for(int i{1};... |
a2214372b609069712901cb2714f8c97e753f836 | 35b42dc4f273857503accd7a6b8dcf1ee58d92ea | /src/Demo/Demo.hpp | 0586b8f2a7c23a9b6c5805460b266fe1cef53cbb | [] | no_license | ChornyiLys/SGE | 767378ab848f583489c32f95765aa3ef60195773 | cc97db0a1a1ad99a06db7b03c77e184dfa79327f | refs/heads/master | 2016-09-05T17:57:57.364793 | 2015-09-15T21:58:40 | 2015-09-15T21:58:40 | 42,205,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | hpp | Demo.hpp | /*
* Demo.hpp
*
* Created on: Sep 16, 2015
* Author: chlys
*/
#ifndef DEMO_DEMO_HPP_
#define DEMO_DEMO_HPP_
#endif /* DEMO_DEMO_HPP_ */
|
81993f09a06155682e4fa05ce532b2221023a542 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/openscreen/src/cast/streaming/bandwidth_estimator.h | f8ce7af2088c392fcfee557abc67f552db5d2c6f | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | 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 | 7,518 | h | bandwidth_estimator.h | // Copyright 2020 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 CAST_STREAMING_BANDWIDTH_ESTIMATOR_H_
#define CAST_STREAMING_BANDWIDTH_ESTIMATOR_H_
#include <stdint.h>
#include <limits>
#include "platform/ap... |
0af53c789183a18b3516909dd9c9a1d0e50ca2b7 | 92623f41efd452129cba9940556cca4fafb9e8fa | /Backtracking/05 - Generate IP Addresses.cpp | 865809b6ffb54657cac99ac1e8dd6c61dd1c5ad1 | [] | no_license | Vikas-Jethwani/Geeks4Geeks-Solutions | a693d4855f914cd6d2d594735524e742b9de8cb8 | 0118337870d6dab6bcda76aa04b9f2cf2bd149d7 | refs/heads/master | 2021-09-26T22:51:15.208863 | 2020-08-05T14:52:34 | 2020-08-05T14:52:34 | 192,599,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,844 | cpp | 05 - Generate IP Addresses.cpp | // Fall 7 times and Stand-up 8
#include <bits/stdc++.h>
// StAn
using namespace std;
vector<string> split(string s, char ch=' ')
{
vector<string> ans;
ans.clear();
string temp = "";
for (int i=0; i<s.size(); i++)
{
if (s[i] == ch)
{
if (temp != "")
ans.pu... |
cc45d246de09c277f2b8c4540abb0f99074ca8a4 | adbfbfe185c8e682406127041032bc4f715c1b0b | /src/main.cpp | a7f0821334f5534ab01f4e2e3d582f464860a6b9 | [
"MIT"
] | permissive | quesnel/mitm | 709becbf87939650173a0faf8b7ce72427e8e5de | 50c82fcdfbc17bb13d8c2cfd7b63943d68f5c46c | refs/heads/master | 2021-01-10T04:51:33.891887 | 2015-12-16T18:14:10 | 2015-12-16T18:14:10 | 46,709,123 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,304 | cpp | main.cpp | /* Copyright (C) 2015 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distr... |
19278a2f41651e8dd747fad6e4c81abc706d8ace | e15d528560e66806df67b0d3a7df071bffe0d5de | /ThomasCore/src/thomas/Physics.cpp | f110f052e35d435f07376ddcf5792348d7ba6732 | [
"MIT"
] | permissive | Bojzen-I-Mitten/thomas | a9fbb628b3582c4855483bd0e9cb0e224fcb05ec | f5ecbdf7e3e205f9a9f37392f0a58dc3159c5dd8 | refs/heads/master | 2021-01-23T00:20:21.070961 | 2019-06-17T17:50:49 | 2019-06-17T17:50:49 | 85,717,110 | 4 | 1 | MIT | 2018-04-18T14:27:58 | 2017-03-21T15:13:08 | C++ | UTF-8 | C++ | false | false | 4,572 | cpp | Physics.cpp | #include "Physics.h"
#include "ThomasTime.h"
#include "object\component\physics\Rigidbody.h"
#include "object\GameObject.h"
#include "object\component\Camera.h"
#include "graphics\BulletDebugDraw.h"
namespace thomas
{
std::unique_ptr<btDefaultCollisionConfiguration> Physics::s_collisionConfiguration;
std::unique_ptr... |
ad034739417c10be4e735ae1ada74ce8e0ea8105 | 8287f66600fe2ac5691f320aa4c4952f437f37cb | /src/MuhaSlon.cpp | bbdb8b302bd4ce4a2d58075e3f52eed6efd7697c | [] | no_license | drafgrakula/muhaslon | 8a2fff2e52d892110b86abf9548edded8de66d0d | 94622e1227c0e7c4f37637d2bc8ae95b75e142f6 | refs/heads/master | 2020-04-22T21:12:06.221635 | 2019-02-14T09:53:50 | 2019-02-14T09:53:50 | 170,666,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | MuhaSlon.cpp | #include <iostream>
#include "Tree.h"
#ifndef TESTING
int main(int argc, char *argv[])
{
std::locale::global(std::locale(""));
if( argc != 3 )
{
std::cout << "формат использования:\n MuhaSlon <файл с исходным и конечным словами> <файл со словарём>"
<< std::endl;
return 0;
}
// подготовить словарь
Dict... |
8a92d31bca3d962cd0991a7e5d452558eff9b585 | d313a67d684103b0ee7058c63a304c1b975abc0f | /open64/osprey1.0/be/opt/opt_fold.h | 6dd550d2247a86a0cde76d9a9d8a4d5089313e0c | [
"BSD-2-Clause"
] | permissive | xusx595/upc | 0bbef930d0f76926f049a034ba8d8e851559d0d1 | e17f40219d8594ab6bd281b2ff36d542798deac5 | refs/heads/master | 2021-01-17T05:28:28.941066 | 2015-03-22T21:39:40 | 2015-03-22T21:39:40 | 32,696,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,180 | h | opt_fold.h | //-*-c++-*-
// ====================================================================
// ====================================================================
//
// Module: opt_fold.h
// $Revision: 1.2 $
// $Date: 2003/03/04 06:16:03 $
// $Author: wychen $
// $Source: bitbucket.org:berkeleylab/upc-translator.git/open64/os... |
063744d9ba292b49621cc567a7886511571d42e2 | 452e11aeaf52a420b8e687b4888cbae9bd05bc61 | /2016/October/194_Max_Points_on_a_Line.cpp | 54806b84610e2deaf749cbb05aa82d2b0857c8b0 | [] | no_license | heshenghuan/leetcode-exercise | 5ae75ba446f48997e307649563df935b81684a97 | a4753f50ade11270d6c2e31f219a25862955ae4e | refs/heads/master | 2021-01-17T02:41:53.806286 | 2017-03-29T07:24:04 | 2017-03-29T07:24:04 | 58,852,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | cpp | 194_Max_Points_on_a_Line.cpp | /**
* Definition for a point.
* struct Point {
* int x;
* int y;
* Point() : x(0), y(0) {}
* Point(int a, int b) : x(a), y(b) {}
* };
*/
class Solution {
public:
int maxPoints(vector<Point>& points) {
int result = 0;
int samePoint;
for(int i = 0; i < points.size(); ++... |
49c9317735549ae691611718bd04abf7423ce346 | a61739604139b6afae25617b062be28b3344da44 | /wizualizer/robotcontroller.cpp | 30df306a900110f58296878fd3d28f2bc6f19744 | [] | no_license | dorianJaniak/wds_sonar | 2d00f561b78b796e520a6324bbb77bc80e681729 | 1a2fc3cd1ef9012b60335e21884b58d723cd8640 | refs/heads/master | 2021-01-01T15:24:42.056597 | 2015-06-23T22:23:27 | 2015-06-23T22:23:27 | 32,487,416 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,027 | cpp | robotcontroller.cpp | #include "robotcontroller.h"
#include <QtSerialPort/QSerialPortInfo>
#include <QEventLoop>
#include <QCoreApplication>
RobotController::RobotController() :
MessageController()
// QSerialPort()
{
RobotOrientation empty;
empty.position = QVector4D(0,0,0,1);
empty.angleY = 0;
m_robotActualOrient = ... |
e250164584d16d6b66863da40761645cd4b6b071 | 10bac563fc7e174d8f7c79c8777e4eb8460bc49e | /sense/bumblebee_driver_t.h | 97645e9128ea15b3123b083eb8a769693fe3aee0 | [] | no_license | chenbk85/alcordev | 41154355a837ebd15db02ecaeaca6726e722892a | bdb9d0928c80315d24299000ca6d8c492808f1d5 | refs/heads/master | 2021-01-10T13:36:29.338077 | 2008-10-22T15:57:50 | 2008-10-22T15:57:50 | 44,953,286 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,859 | h | bumblebee_driver_t.h | #ifndef bumblebee_driver_t_H_INCLUDED
#define bumblebee_driver_t_H_INCLUDED
//BumblebeeB.ini
//[config]
//name=aristarco
//unitnumber=5160167
//digiclopsini=config\digiclopsB.ini
//triclopsini=config\triclopsB.cal
//framerate=50;valori 12 25 50 100
//---------------------------------------------------------... |
5023e8ad83efe08dffad668f2bb8d2a11442c5cc | f20e965e19b749e84281cb35baea6787f815f777 | /LHCb/Kernel/LHCbMath/src/Spline.cpp | 529737bf269d710d011e46d17a2decbf1ff76b85 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,937 | cpp | Spline.cpp | // $Id$
// ===========================================================================
// Include files
// ===========================================================================
// STD & STL
// ===========================================================================
#include <algorithm>
// ====================... |
2fecbcfc56cb82d07599823690dcfaea3b758bd3 | b7c9b2125d4862e7e77de884c8051540fafff441 | /VideoEditor/VideoTrack.cpp | 6e97e0ddccd15f8626b5ebed3b479ccc97f8c687 | [] | no_license | zeneksashy/VideoEditor | 2b6740dc7c1d97cb93e57b13189d0954c55cd8c3 | 64663fe663adc9eff26754e3132dc16c099071fc | refs/heads/master | 2020-03-27T15:42:21.329089 | 2018-10-31T13:37:41 | 2018-10-31T13:37:41 | 146,733,947 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,001 | cpp | VideoTrack.cpp | #include "VideoTrack.h"
VideoTrack::VideoTrack(QWidget *parent)
: MediaTrack(parent)
{
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
setFixedHeight(32);
setMinimumWidth(120);
isSelected = false;
}
VideoTrack::~VideoTrack()
{
capture.release();
}
void VideoTrack::paintEvent(QPaintEvent*)
{
QPainter paint... |
0ff32e222fa452f937c720b4cf344bf022164ec4 | 601bc9d53c5f39cbf16b08bf26019fbc4f9ae1ac | /SwitchBox/03 Mega Code/Single-Trigger-Timer/Single-Trigger-Timer.ino | 82046b71216c78d398daffde4e22ca76e6262382 | [] | no_license | MitchellStride/DataCapture | 714d4d0b0945996c4c40454f43cb3e92cd69761c | 1ed85d98b1bbfbccb91b4ca8a27de656031c0c95 | refs/heads/master | 2021-09-07T11:04:16.559887 | 2018-02-22T01:31:02 | 2018-02-22T01:31:02 | 118,975,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,552 | ino | Single-Trigger-Timer.ino | /*Lauch Sequence
- Toggle 1 > Pot 1 > Button 1 > Toggle 2 > Button 2 >Timer Begin
Code Update List
- Configure code for Joysticks, Encoder, Sd card
- test seven seg
- test code reiliability
- add lcd instructions
- make it only run once
- take vide... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.