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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c1b6181f9f09f37d25d420967ace3f38044c05c | c51febc209233a9160f41913d895415704d2391f | /library/ATF/$73C4F5C9EA26EE957B16E837F2A89BE9.hpp | b5aea27c0a3e38f9b9c886048e9e2085de9f8318 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 314 | hpp | $73C4F5C9EA26EE957B16E837F2A89BE9.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $73C4F5C9EA26EE957B16E837F2A89BE9
{
AIT_ACTION = 0x0,
AIT_MOVE = 0x1,
AIT_LIFE = 0x2,
};
END_ATF_NAMESPACE
|
34ec131a9d8218fcecc4371d19f7f2b506a40d32 | 64c27514d5d29150121ca2b97b43b042f706cd5f | /Contest/Contest2019_02/sol/SUMGCD.cpp | f53ab3473fccaedc2a369072d9baf9a3c8701023 | [] | no_license | tienit150198/ACM | f4fdb8eaeccd3db02624c593e56f0fa5d233bee1 | a17c9ae1402376167dec5dd49a8aa508ad824285 | refs/heads/master | 2020-06-12T09:50:50.137304 | 2019-06-28T13:27:48 | 2019-06-28T13:27:48 | 194,261,865 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | SUMGCD.cpp | #include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a),_b=(b); i<=_b; i++)
#define FORD(i,a,b) for(int i=(a),_b=(b); i>=_b; i--)
#define REP(i,a) for(int i=0,_a=(a); i<_a; i++)
#define EACH(it,a) for(__typeof(a.begin()) it = a.begin(); it != a.end(); ++it)
#define DEBUG(x) { cout << #x << " = "; cout << (x) << end... |
7f18b06936ba77e820fe3ca137d3c2fffad7371b | a5501d7405c902e0f5ea18b915c2ad26f1558e08 | /Rect.cpp | 49825e8206376bea067f3d913961207f67901c78 | [] | no_license | twonaja/2lab-OOP- | d66243aab23cc205e3856de159da8eb8480510ff | cb6b1afb0fb843ad3f66ebdf8dbfa6c6d30872ad | refs/heads/master | 2022-06-17T17:39:53.364018 | 2020-02-08T13:17:44 | 2020-02-08T13:17:44 | 238,030,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | Rect.cpp | #include "Rect.h"
Rect::Rect(int top, int bot, int left, int right, COLOR color)
{
this->m_top = top;
this->m_bot = bot;
this->m_left = left;
this->m_right = right;
this->m_color = color;
}
Rect::~Rect()
{
std::cout << "Delete Rect :|...\n";
}
void Rect::Identety()
{
std::cout << "REECT :|\n";
}
void Rect::I... |
97071846e7c24964fb53f450445a0f80fef54a41 | a597b86063048c8b20c786eb4aa75ca2f09567c8 | /Engine/ResourceMesh.h | 8ea08b87fe765d9572c1e21d8dd6df5dc96545af | [
"MIT"
] | permissive | mizquierdo97/Engine | e7e60c72b07bd7ef16667bb486bac3d979c79063 | 4119118ea36cc9a0be519ef9540d2ea62df96d7d | refs/heads/master | 2021-08-30T10:55:28.798996 | 2017-12-17T15:04:54 | 2017-12-17T15:04:54 | 103,415,731 | 0 | 1 | null | 2017-10-16T08:06:09 | 2017-09-13T15:15:43 | C++ | UTF-8 | C++ | false | false | 759 | h | ResourceMesh.h | #ifndef _RESOURCE_MESH
#define _RESOURCE_MESH
#include "Resource.h"
#include "ModuleAssimp.h"
class ResourceMesh : public Resource {
public :
ResourceMesh() {};
ResourceMesh(UUID uid) {
uuid = uid;
};
~ResourceMesh() {
if (obj_mesh.id_vertexs)
RELEASE_ARRAY(obj_mesh.vertexs);
if (obj_mesh.id_indices)
... |
da9b1a1de9aac94ffd1bd4591f43820104e09f60 | a7aa249cf2add3a74a7e01ed2b3f57dea7419054 | /AES/Cxx/mains/aes_encode_butoken.cpp | 77195dc580bf68409acd3acc4caf7b432b9c676a | [] | no_license | Golgoo/Crypto | 37107c664f7e9f8cd8a0d8ea9eca4ea74d0d88bd | c8e7ff42192f050c29d1f96982b9631577e61e26 | refs/heads/master | 2022-05-28T21:15:03.168993 | 2020-05-04T15:26:29 | 2020-05-04T15:26:29 | 233,059,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | cpp | aes_encode_butoken.cpp | #include "util.hpp"
#include "aes.hpp"
#include "block.hpp"
#include <iostream>
uchar K[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} ;
int longueur_de_la_clef = 16 ;
uchar InitV[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00... |
ecc86e1509e0c0b4894dfa7e2f712fa9c64ed1f5 | e4433aae783f1d842d061a3d2d48566bf76e70aa | /src/asmjit/src/asmjit/x86/x86internal_p.h | 868f5b42150dd3c36c707a07410a3b6df5332b81 | [
"MIT",
"Zlib",
"LicenseRef-scancode-proprietary-license"
] | permissive | cedar-lang/cedar | bd33d33706ed19861b9760ad88333679a7afd738 | 04b13546d8520dcd7a01983a4a88408348a245f8 | refs/heads/master | 2020-04-10T21:11:23.053728 | 2019-04-20T01:16:20 | 2019-04-20T01:16:20 | 161,290,172 | 3 | 0 | MIT | 2019-03-17T19:58:34 | 2018-12-11T06:51:32 | C++ | UTF-8 | C++ | false | false | 2,728 | h | x86internal_p.h | // [AsmJit]
// Complete x86/x64 JIT and Remote Assembler for C++.
//
// [License]
// Zlib - See LICENSE.md file in the package.
// [Guard]
#ifndef _ASMJIT_X86_X86INTERNAL_P_H
#define _ASMJIT_X86_X86INTERNAL_P_H
#include "../asmjit_build.h"
// [Dependencies]
#include "../base/func.h"
#include "../x86/x86emitter.h"
#i... |
9681777e78e5c185bf38fce9db2cea76e8aeef48 | ff96ab2921b899fdc26baeb9d0995ad8d7fa551d | /Source/ConceptOfPoint.h | d8dc646f48358e5a5d80888f22f6de6d68ef9e97 | [] | no_license | morimoto0606/ModernCpp | 9a3238644adfaa7cd4b2b018ca6f85828f7ad5f8 | 4cd123b1e75dee2ad4e86a97cb149e665af69e60 | refs/heads/master | 2020-04-17T14:51:48.855956 | 2019-01-20T16:49:05 | 2019-01-20T16:49:05 | 166,674,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | h | ConceptOfPoint.h | //
// Created by MORIMOTO on 2018/01/04.
//
#ifndef MODERNCPP_CONCEPTOFPOINT_H
#define MODERNCPP_CONCEPTOFPOINT_H
#include <cmath>
namespace concept {
class MyPoint1 {
public:
MyPoint1() = default;
MyPoint1(double x, double y) : _x(x), _y(y) {}
double x() const {
... |
c1c16643b875f0113b60d8c177dfb88556949c1f | 565eb92b0add5dff002e22d4318136521cc16aa1 | /EB_Filter.h | 0e24349f94b96ce58bde3e06b3269344f6487efb | [
"MIT"
] | permissive | elbosso/EB_Image | 62e81310c2fdc515e1c3df517eb9b1734495a0cb | 5cb94940ade03d288f2a0a2eeef34fcf1844c065 | refs/heads/master | 2020-03-07T14:06:13.868864 | 2019-01-19T15:49:47 | 2019-01-19T15:49:47 | 127,518,671 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,114 | h | EB_Filter.h | #ifndef EB_FILTER_H
#define EB_FILTER_H
#include <iostream>
#ifndef EB_BAND_H
#include"EB_Band.h"
#endif
/**Callbackfunktion zur Berechnung von Filterkoeffizienten in Abhängigkeit
von der Position $(x,y)$ in der Filtermaske für die Klasse \Ref{EB_Filter}.*/
typedef float (*cffuncptr) (unsigned int x, unsigned int y,... |
082e6c805fde15ead496e6e4855a5809aeb35983 | 8f128acb30f9060318065c89b70d4ccb2df13b98 | /cpp/primer/chap09/9.48_a.cc | 288af63473f7b7d241889acf6d8c044ccae362b0 | [] | no_license | JamieMaple/LearningNotes | 57214850bf7f956df3d28a52aa48b314c9cca9bc | 920b4a0d9828348228e1c2b9d8837447d4b5d86c | refs/heads/master | 2023-01-10T11:31:10.404001 | 2019-08-05T15:05:59 | 2019-08-05T15:05:59 | 101,359,544 | 0 | 0 | null | 2022-12-29T15:59:22 | 2017-08-25T02:55:31 | C++ | UTF-8 | C++ | false | false | 611 | cc | 9.48_a.cc | #include <iostream>
#include <string>
int main() {
std::string nums = "01234567890";
std::string alpha = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
std::string s = "ab2c3d7R4E6";
for (std::string::size_type pos = 0;
(pos = s.find_first_of(nums, pos)) != std::string::npos; ++po... |
8336c691736d7055d3a13d1aaa071ce1a1cf53cd | 52fa63df17803c602ca82a3a763df69248ab543b | /sources/model/HomeComp.cpp | d30c7005f088bf8138186a324182672c11dc4ff5 | [] | no_license | Crasader/nixiProject | d2ba21c6800e375b5e72478f66bfcc77803cdc3b | 48149dca3de2cc86b5da783c72664adede1c6752 | refs/heads/master | 2021-06-20T00:47:00.517404 | 2017-07-11T08:27:35 | 2017-07-11T08:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cpp | HomeComp.cpp | //
// HomeComp.cpp
// tiegao
//
// Created by mac on 16/8/5.
//
//
#include "HomeComp.h"
#include "AppUtil.h"
#pragma mark - Export
bool HomeComp::has_init_house_template() {
return (_houseTemplate != NULL);
}
#pragma mark - Inport
void HomeComp::init_house_template(Value json) {
if (json.type() == null... |
91754be6fda3fdd818126c8a6c7ad817d1132383 | 8f93efb9c62da4a38a0e41ddc96d2da59da543a8 | /Pacman/Menu.h | 4ee35c0c3d34bfd693e931ad2a2541ac8abb7fa9 | [] | no_license | igvedmak/PacmanSFML | 4ccb06bb75023268281ff3679aa8c89ffc649db4 | 65d6c82bbdf36314bcecd52a9e2f5527736a0cd8 | refs/heads/master | 2021-05-14T04:55:22.261617 | 2018-11-04T20:56:08 | 2018-11-04T20:56:08 | 116,656,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | h | Menu.h | #pragma once
#include "Constants.h"
class Menu
{
public:
Menu(float width, float height);
~Menu();
void draw(sf::RenderWindow & window);
void MoveUp();
void MoveDown();
bool getSelection(int indexXwindow, int indexYwindow , int indexXmouse, int indexYmouse);
int getPlace();
void moveIt(int saveChoose, int what... |
aa594c3553ffa3a1ad7ac38ab16b6113b3b5043f | edd733efe798cf751ded322c0af8c5891d1e229d | /Tek2/B4-semestre/cpp_2014/cpp_plazza/sources/SFML/my_exception.hpp | a46810c74bdeb1b58c2560a40f552c0a24cd5dd7 | [] | no_license | Barathan-Somasundram/Epitech | 6e60666205a919397fef41469fe7726861086346 | 96eabeb7a23518433a483bf374189257720a7e38 | refs/heads/master | 2016-09-06T12:51:32.934375 | 2015-05-18T16:00:41 | 2015-05-18T16:00:41 | 32,335,665 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 366 | hpp | my_exception.hpp | #ifndef MY_EXECPTION_HPP_
# define MY_EXECEPTION_HPP_
# include <iostream>
# include <sstream>
# include <exception>
# include <string>
class my_exception: std::exception
{
private:
std::string _msg;
public:
my_exception(std::string error);
virtual ~my_exception() throw();
virtual const char* what() cons... |
10a020c627e98a77b48394422f363a50873dc2b9 | b63f86d05a64925093c6165fbefad75249b22125 | /Source/IntoOrbit/IntoOrbit.cpp | 66a4068ecee1cccf8d37b105cfa24fc759ad126b | [] | no_license | firestack/IntoOrbit | a66f78e48136384d5debbdbb435f3f144b68b11b | 05f0f6808862bc54b0fbb1696612eb91d5aae636 | refs/heads/master | 2020-04-15T23:35:07.655468 | 2016-04-27T19:48:12 | 2016-04-27T19:48:12 | 41,926,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | cpp | IntoOrbit.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "IntoOrbit.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, IntoOrbit, "IntoOrbit" );
|
fb74005d35f3d5b49de6bc66419bdba2061ed519 | 029b1390344792479b17778b725c80e66250b9f0 | /BST/Lab6_16.04/To Students/Student_Code/BST.cpp | 146e570b64ff45f693e60045c9b8b4d7f56f6b1b | [] | no_license | bderbidge/CS235 | 305000b8030345f1329eff8335d4294ffa56692d | f61add72dd91aa7a15f19de5d2e57048e911369f | refs/heads/master | 2021-06-19T04:34:36.220270 | 2017-06-20T06:42:47 | 2017-06-20T06:42:47 | 94,857,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,061 | cpp | BST.cpp | //
// BST.cpp
// BST
//
// Created by Brandon Derbidge on 11/10/16.
// Copyright © 2016 Brandon Derbidge. All rights reserved.
//
#include <stdio.h>
#include "BST.h"
BST::BST()
{
root = NULL;
}
BST::~BST()
{
clear();
}
//Please note that the class that implements this interface must be made
//of object... |
844bfc62db50d8108fae9ec1af44f6f911bbf7d9 | 20143b4341b408cb96e268b65c06a4f828f10966 | /S3DLaTeXRenderer/cLaTeXMath/src/latex.cpp | 054736c872563b046cefe1f15d38536743d0014a | [
"MIT"
] | permissive | sthairno/S3DLaTeXRenderer | 1934e97862b4e8251e7dbd9ed5677b3649921e97 | d7332bd170c28173f5e45f0702e0b16fe38a9425 | refs/heads/master | 2023-02-19T20:14:31.566338 | 2021-01-24T09:49:48 | 2021-01-24T09:49:48 | 268,242,766 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,814 | cpp | latex.cpp | #include "latex.h"
#include "core/core.h"
#include "core/formula.h"
#include "core/macro.h"
#include "fonts/fonts.h"
#if CLATEX_CXX17
#include <filesystem>
#endif
using namespace std;
using namespace tex;
string tex::RES_BASE = "res";
static string CHECK_FILE = ".clatexmath-res_root";
TeXFormula* LaTeX::_formu... |
567925b7332c3c0de8dfc204b9b46013f521f0d3 | 0e906735f9888f9108f998b7ddfcf158536187e8 | /Lab_2/debug/moc_selectcity.cpp | f5b2267428a520b01b573b55161a757c0d23c64b | [] | no_license | VitaliiBabichok/StudentsRating | 97abd7343b57ca6a85f32bc6444c4e8c78fb00e9 | 5ac9ae1c91b5ee4b8a8e92cc02d4fbf8b4c7f4fc | refs/heads/master | 2023-04-17T18:16:26.267833 | 2020-12-28T18:55:33 | 2020-12-28T18:55:33 | 359,857,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,191 | cpp | moc_selectcity.cpp | /****************************************************************************
** Meta object code from reading C++ file 'selectcity.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.1)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
97b191eca2651a94d3a0ae4faaa1566b442e35b1 | d671723be889a1968f7aa93e594717e41374a476 | /CodeVs_C++/CodeVs-Silver/1130.cpp | 399d6178fb398f8595611e2f2d953eae2dc91d3b | [] | no_license | shiqitao/CodeVs-Solutions | 3ee71868894fb9bb823bbd53b6cca26f929d184e | 422bc565ebff207da49cf0ea63e145e66d89c625 | refs/heads/master | 2021-07-05T20:21:31.965842 | 2017-10-01T13:45:18 | 2017-10-01T13:45:18 | 94,693,307 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 1130.cpp | #include <iostream>
using namespace std;
int main()
{
bool sign;
int n; cin >> n;
if (n >= 0) sign = true;
else
{
sign = false;
n = -n;
}
int temp = 0;
while (n != 0)
{
temp = temp * 10 + n % 10;
n = n / 10;
}
if (!sign) temp = -temp;
cout << temp << endl;
return 0;
} |
b522945ff180a2baf7114279c055f2ecd660b54b | f3d628043cf15afe9c7074035322f850dfbd836d | /atcoder.jp/abc199/abc199_d/main.cpp | b90ceb7b05efa74e71c2bf600f9fd474802d7ead | [
"MIT"
] | permissive | Shahraaz/CP_S5 | 6f812c37700400ea8b5ea07f3eff8dcf21a8f468 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | refs/heads/master | 2021-07-26T13:19:34.205574 | 2021-06-30T07:34:30 | 2021-06-30T07:34:30 | 197,087,890 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,546 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/debug.h"
#else
#define db(...)
#endif
#define all(v) v.begin(), v.end()
#define pb push_back
using ll = long long;
const int NAX = 2e5 + 5, MOD = 1000000007;
int64_t solveCase(int N, int M, const vector<int> &A, const vector<int> &B)
{
vector<... |
e22d5c78c2c0f33064fb0f2a1ca53a5c8f3b618e | 50e0f9b28924b0fd241d8e94e517533cc49b0d98 | /src/CxxAbbCore/include/CxxAbb/Timestamp.h | 90340879e22afe9a13f38e9d34d324df1599a58e | [] | no_license | PrabodhaSrimal/CxxABB | 120c30689257a969d408461eb6ed6be069579baf | 759ed2f29661ad138ed7cfcb7fc32e1ccc21e796 | refs/heads/master | 2021-06-13T08:26:00.458020 | 2017-03-23T07:39:38 | 2017-03-23T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,538 | h | Timestamp.h | /**
* _| _|
* _|_|_| _| _| _| _| _|_|_| _|_|_| _|_|_|
* _| _|_| _|_| _| _| _| _| _| _|
* _| _| _| _| _| _| _| _| _| _| ... |
a10633fef0553b15de0ad7ddea1ecae0ad4ee651 | c92e18501d8962b58c8f7c5f531a8b9aafc9d0ef | /CCC/ccc12s3.cpp | fe2ff428a789c1aa2383381adf14863da52ceffa | [] | no_license | Dan13llljws/CP-Solutions | 8bc79208b741959c924ec117c2a8a9c7e79be0d8 | 4989119875843da53e0e076ecd9155a71112be8a | refs/heads/master | 2023-08-16T16:41:13.599206 | 2023-08-10T04:26:53 | 2023-08-10T04:26:53 | 254,217,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | cpp | ccc12s3.cpp | #include <bits/stdc++.h>
using namespace std;
#define scan(x) do{while((x=getchar())<'0'); for(x-='0'; '0'<=(_=getchar()); x=(x<<3)+(x<<1)+_-'0');}while(0)
char _;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
pii p[1001];
int n, x, ans1, ans2, ans3;
bool cmp(pii a, pii b){
... |
0e084fac6ed33de5d74da370ac74b75de5310339 | 30e1b23df7b8e024758ce44fbf5e759fbae81d2b | /src/ge/graph/passes/attach_stream_label_pass.cc | 9962821be031b0303b3c93da21656d67f94d96b7 | [
"Apache-2.0",
"LGPL-2.1-only",
"MPL-1.0",
"MPL-2.0-no-copyleft-exception",
"GPL-2.0-only",
"BSD-3-Clause",
"AGPL-3.0-only",
"MPL-1.1",
"MPL-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leonwanghui/graphengine | dd730f91d64bb9a047e06aa9bffdde9e591ab0fc | 534a45c714fbddf344f1260100f48b9e66735b53 | refs/heads/master | 2022-12-04T18:57:15.957663 | 2020-08-29T06:37:07 | 2020-08-29T06:37:07 | 291,641,909 | 1 | 0 | Apache-2.0 | 2020-08-31T07:10:12 | 2020-08-31T07:10:11 | null | UTF-8 | C++ | false | false | 9,988 | cc | attach_stream_label_pass.cc | /**
* Copyright 2019-2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
3065d8e2b200c6ef66fd0e167446d28e85e3ae80 | 5e0a5204fa66102f37a1c90c62fc835e78af8b01 | /ftma/include/log/logset.h | 95ff626c1b78bbdab37d51b8a7a5c0474f5a9cc3 | [] | no_license | djuanbei/graphmodel | 50854fe170fa8c1d307898968f75100b92140f5e | 1223478f6534488b9a68c09af234559781607201 | refs/heads/main | 2023-03-18T22:54:54.172329 | 2021-02-27T08:41:18 | 2021-02-27T08:41:18 | 343,457,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | h | logset.h | /**
* @file logset.h
* @author Liyun Dai <dlyun2009@gmail.com>
* @date Thu Dec 5 08:28:52 2019
*
* @brief loging setting
*
*
*/
#ifndef LOG_SETING_H
#define LOG_SETING_H
//#include <glog/logging.h>
namespace graphmodel {
void logSet();
}
#endif
|
679a2945358a6a5b8fc8ce5992e33cfcb8ca4aff | 4c5dfb3a58a0d61ec35a9109391ff9f29372e25c | /LeetCode/Remove_Linked_List_Elements.cpp | 43af3fd680d63bce824cd48708dc794222460ce2 | [] | no_license | bingbingzhenbang/LeetCode_Answers | 2f9ed861e1b492198417fb90fca694ef09592d6d | 2dee09505a8e942c4c08e285c8ac589894e504f5 | refs/heads/master | 2021-06-12T04:29:32.770480 | 2021-05-16T12:54:53 | 2021-05-16T12:54:53 | 65,536,300 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | Remove_Linked_List_Elements.cpp | //Remove all elements from a linked list of integers that have value val.
//
// Example
//Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
//Return: 1 --> 2 --> 3 --> 4 --> 5
#include "ListNode.h"
#include <cstdlib>
struct ListNode* removeElements(struct ListNode* head, int val)
{
if (head == NULL)
... |
21bd8cc533ce164753a32d87ae04aea776eb5d34 | a909452dd3bd97d934429a10cb189f2e8e959926 | /waitForKey.cpp | 51ea4f994e1e1f8bc543ae0dc9048fd0c255a63b | [] | no_license | bckcmo/FantasyGame | d7ab1e676a7296e5aa1df339b518a2a35e5f5cfe | 65640b5bb3816145e51b3a5303d6bafb31635c97 | refs/heads/master | 2021-01-21T16:45:32.046777 | 2017-05-20T18:02:42 | 2017-05-20T18:02:42 | 91,906,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | waitForKey.cpp | /*
*Program Name: Project 3
*Author: Brendan Corazzin
*Date: 4/20/2017
*Description: This is the waitForKey function implementation file.
*/
#include <iostream>
#include "waitForKey.hpp"
/*
*The waitForKey function pauses the terminal and continues once the user has pressed any key.
*Code taken from http://stackoverf... |
fad0ecaf7e0a43fdfdb94f49506aa356c70efa2b | 971b2cea2d1c3001aadc8ca1a48110b7db1ed5f2 | /plugins/gui/src/settings/settings_widgets/settings_widget.cpp | 5dc70115e383068afa8f9b753184731692686599 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | emsec/hal | 70ad2921739967d914dd458984bd7d6d497d3b0a | e4fae37bec9168a61100eacfda37a1f291b4d0be | refs/heads/master | 2023-09-02T20:27:32.909426 | 2023-09-01T13:03:24 | 2023-09-01T13:03:24 | 169,076,171 | 510 | 72 | MIT | 2023-09-01T13:03:26 | 2019-02-04T12:37:20 | C++ | UTF-8 | C++ | false | false | 4,946 | cpp | settings_widget.cpp | #include "gui/settings/settings_widgets/settings_widget.h"
#include <QBoxLayout>
#include <QLabel>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QStyle>
#include "gui/settings/settings_items/settings_item.h"
#include <QDebug>
namespace hal
{
SettingsWidget::SettingsWidget(SettingsIte... |
1a66b359dda571c3ccbf8d800013557379f0d676 | d2d72032d3fa4537c0c278c199fcb447d791e48e | /libs/draw/polylines.h | bc917354a14ecfe714ea35e653e7451017e2957a | [
"MIT"
] | permissive | lineCode/gecko-1 | 28eb3b2964625e14aff7f3d20a66a9110280b573 | 6d874fbbddad65371958e6415ca07027cd1c89b8 | refs/heads/master | 2020-04-05T14:50:12.902104 | 2018-11-04T08:07:00 | 2018-11-04T08:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,738 | h | polylines.h | //
// Copyright (c) 2014-2016 Ian Godin
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#pragma once
#include <vector>
#include "polyline.h"
#include <gl/vector.h>
#include <gl/mesh.h>
namespace draw
{
//////////////////////////////////////... |
4288dc0cd9a66d90f636f5cf2ddecad2325ba92d | 5935fec4deb808ab460978db4c688bbae3f6cf69 | /lw4/Shapes/CTriangle.h | 8288999224e47d3247ce866f2d9261194b3098f1 | [] | no_license | MaximKudryavtsev/ood | eef279a07a57747a070475db6adb0530c0bd288d | 9a531fbc22a693ad55fe85edab73fcbb5780034f | refs/heads/master | 2021-05-01T09:56:35.425819 | 2018-05-29T20:42:59 | 2018-05-29T20:43:03 | 121,100,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | h | CTriangle.h | #pragma once
#include "CShape.h"
#include "Point.h"
class CTriangle final :
public CShape
{
public:
CTriangle(Point p1, Point p2, Point p3);
CBigNumbers GetPerimeter() const override;
CBigNumbers GetSquare() const override;
private:
Point m_p1;
Point m_p2;
Point m_p3;
}; |
297636efcf16e4e67ac4b3785570172d02cb86a0 | b9c93576e7927c30178ead0792c976ec6ad40fd9 | /2sum-BST.cpp | c0e57583a17fdf1f26e3d32f649f83d297070978 | [] | no_license | therealpyr0/LeetCode-Solutions | 12faedaca669a73c38f5652bf6ef8796289a91be | a4a393d52dc366ae8268624c2dfe40946aca7c5c | refs/heads/master | 2020-03-26T05:16:07.329959 | 2018-12-21T11:06:17 | 2018-12-21T11:06:17 | 144,547,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | 2sum-BST.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> arr;
void inorder(TreeNode* root){
if(root==NULL)return ;
... |
843851cccdcb16ca9564a50fd9f3b6e53feefb46 | fdd36925131f311334cf3615eac31a15b7df795d | /examples/neuralNetwork.cpp | b0d58102b35599555627310c6086c438e7d74580 | [
"CC-BY-4.0"
] | permissive | urrong/dCpp | ee5d97a9957af6a4d53a6fbbe52661537679d859 | 16fbf63f7e9d5405990b6fb1fff93442367af685 | refs/heads/master | 2021-01-12T11:30:35.273626 | 2016-10-31T19:07:15 | 2016-10-31T19:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,025 | cpp | neuralNetwork.cpp | #include <iostream>
#include <matrix.h>
using namespace std;
using namespace dCpp;
void softmaxActivation(std::vector<var>& V){
var sum(0);
init(sum);
for(var v:V){
sum=sum+exp(v);
}
for(unsigned int i=0;i<V.size();i++){
V[i]=(exp(V[i])/sum);
}
}
void sigmoidActivation(std::ve... |
3997e77ab9fcfd24448413b304ce1db16e988f7b | 1dff11f2ccadfeb648230cf58d0c35c3cb8b914c | /Day.h | c2ceffbc13978e956f9919398980f00a0b94b5ef | [] | no_license | SiChiTong/TimeTrackerQt | 8d5781130ed0e41adbfcddcd5fc40664ffacdbee | a32176010aa36a9fb17a1e500c58cf16c743c871 | refs/heads/master | 2021-05-27T01:51:53.890769 | 2011-12-19T21:00:06 | 2011-12-19T21:00:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | h | Day.h | #ifndef Day_H
#define Day_H
#include "Event.h"
// STL
#include <vector>
// Qt
#include <QTime>
class Day
{
public:
Day(){}
Day(std::vector<Event> events);
QTime ComputeBreakTime() const; // The total amount of time between all of the "OUT BREAK" and "IN BREAK" pairs
QTime ComputeLunchTime() const; // The... |
01c66e6eb243bc36385d47a5d16b7b2bc54b5cbf | e09b1bf717ec57ad96a7d3ae578cfe3656c07e34 | /src/cSPADE/maxgap.cc | 0fcf023ce9cb92ff87edbba38695a8b57578d40a | [] | no_license | cran/arulesSequences | 230fa0e5689e8f59f6bd503dfb66fea370ee9688 | 1c5186556a8bac14b5cfc841e9c1597943541d62 | refs/heads/master | 2023-05-26T21:58:08.808843 | 2023-05-25T05:47:05 | 2023-05-25T05:47:05 | 17,694,472 | 10 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 3,112 | cc | maxgap.cc | #include <math.h>
#include <errno.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
//#include <sys/mman.h>
//#include <malloc.h>
#include <limits.h>
#include "spade.h"
#include "maxgap.h"
#include "par... |
2ca5a238400c90403f9d304d8fa25562ffd3ef68 | b68741df720668a54b3d0896f4a350d6654ac095 | /tools/standalone-generators/animake/main.cpp | fcfe58c86835f9a35fa439ce008f6e297810422f | [
"BSD-2-Clause-Views"
] | permissive | ls1mardyn/ls1-mardyn | 93a3f1b95b3b4fb06800dd9a2a2a2cc33fe7648a | af5365a92dc5960a19bc35128bf9c38eb1c260a6 | refs/heads/master | 2023-08-28T14:40:36.574730 | 2023-08-09T10:04:34 | 2023-08-09T10:04:34 | 152,977,725 | 23 | 19 | NOASSERTION | 2023-09-08T08:55:34 | 2018-10-14T13:38:41 | C++ | UTF-8 | C++ | false | false | 7,580 | cpp | main.cpp | #include "Domain.h"
#include <fstream>
#include <cstdio>
#include <math.h>
#include <string.h>
using namespace std;
int main(int argc, char** argv)
{
const char* usage = "usage: animake <prefix> -c <density> [-e] [-f <fluid>] [-g <second component>] [-J <eta>] [-m <chemical potential>] -N <N_fluid> [-r] [-s <siz... |
333f0f61a8225869fbbb1ea62b49b15d7f7d1297 | d1e7bb385d51ff6f989725d2194d59a940608828 | /walle/src/main.cpp | 0c280503dd06c8b6e15523a08e968f55813fe1a2 | [] | no_license | mobangjack/walle | 55977d45da9e5cdac5f36d118f5cded5bf64c1fd | 6e73c1d3860cca30aa9a3903c73e3ce4a03edc30 | refs/heads/master | 2021-01-19T02:28:00.712485 | 2016-06-16T09:13:19 | 2016-06-16T09:13:19 | 61,277,833 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | main.cpp | #include "walle.hpp"
int main(int argc, char **argv)
{
Walle walle("ttyHS0", 10);
cv::VideoCapture cap(0);
if (!cap.isOpened()) {
std::cout << "fail to open camera" << std::endl;
return -1;
}
cv::Mat frame;
while (1) {
cap >> frame;
walle.guide(frame);
}
return 0;
}
|
ce83e535aebdeda85c12029693313a431c6d76a6 | 3cc352b29b8042b4a9746796b851d8469ff9ff62 | /src/paths/long/large/tools/Subproject.cc | e6d2826ab2cd023ca9c0bc005384d03be06e7818 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | CompRD/BroadCRD | 1412faf3d1ffd9d1f9907a496cc22d59ea5ad185 | 303800297b32e993abd479d71bc4378f598314c5 | refs/heads/master | 2020-12-24T13:53:09.985406 | 2019-02-06T21:38:45 | 2019-02-06T21:38:45 | 34,069,434 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,782 | cc | Subproject.cc | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2015) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
636da2c3fbf9c9d3f9864becca20ddb953fa03ab | 22a0099eccbe2ef91d5e148aee6d4219469a4dd3 | /14_Clipping/include/3D/Mesh.h | 8b0d880b97bb82e51b607295bedf93645d8e32df | [] | no_license | aalekhm/PixSoR | 184809df751c3274d1d3e1bf3608df90386ee1aa | a86930758205919433cab65bb3558732994f2068 | refs/heads/master | 2022-11-29T14:17:54.783486 | 2020-08-11T16:50:37 | 2020-08-11T16:50:37 | 286,780,927 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,566 | h | Mesh.h | #pragma once
#include "3D/Vertex.h"
#include <vector>
#include "3D/MeshObjLoader.h"
#include "Renderer/IShader.h"
#include "3D/Transform.h"
#include <memory>
class Mesh
{
private:
struct _cookie {};
public:
Mesh(_cookie);
static std::unique_ptr<Mesh> create(const char* sFileName, const char* sTextureF... |
3ef4738490e9bb354958c60c71aa438c87aa9d0d | 30e4871e308262195726e757756a5b3bf6f7fbeb | /data-generation/LaplaceDataGenerator.h | 9c44405d8641a500358fcf9f34ba9d7e600d4d97 | [] | no_license | kparthan/laplace | 979c04e74e15e8da81de166179e4060aef44a1ae | bfcccdcf66052bcba7208c133405ba39af11619a | refs/heads/master | 2020-06-14T16:41:53.578611 | 2015-10-03T04:53:38 | 2015-10-03T04:53:38 | 75,025,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | h | LaplaceDataGenerator.h | #ifndef LAPLACE_DATA_GENERATOR_H
#define LAPLACE_DATA_GENERATOR_H
#include "Support.h"
#include "DataGenerator.h"
#include "Laplace.h"
class LaplaceDataGenerator : public DataGenerator
{
private:
//! An instance of a Laplace distribution
Laplace laplace;
public:
//! Null constructor
LaplaceDataGe... |
17f9cd5d52f2dbfcfe0a6f9ed3b15cd00275782d | 982b3a8bf1c8f87b38e4e02743abf95508876d2e | /src/hps_event/EcalCluster.cxx | 7cdfdc6c5b08338a6ed4fd2aa40f940dcf2b9a5f | [] | no_license | MarianaT27/hps-dst | ad2d4e513c5a27e28a8838f9ac833e90a4e76aba | 8c181a827f62bcefce3e45b9aa441bfd3d720283 | refs/heads/master | 2022-02-12T05:07:02.789026 | 2019-03-15T22:42:36 | 2019-03-15T22:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,703 | cxx | EcalCluster.cxx | /**
* @file: EcalCluster.cxx
* @author: Omar Moreno <omoreno1@ucsc.edu>
* @section Institution \n
* Santa Cruz Institute for Particle Physics
* University of California, Santa Cruz
* @date: February 19, 2013
*/
#include "EcalCluster.h"
ClassImp(EcalCluster)
EcalCluster::EcalCluster()
: T... |
87273cd9f48363a500350fb5b5e30fe78444c235 | 6b8c73c5e2d2361b0d6e2c13fb838d457cae01dd | /leetcode/379/main-hashset.cc | 1e9248689f6b2326966992dd49bd1fd65b555bdd | [] | no_license | jimlinntu/gym | 502f374aed09128c5cce27eecc4c44d2636774ec | 04f52fdb1f3725cb4fc0d9c78459d0364f67d14e | refs/heads/master | 2023-03-04T23:43:12.346992 | 2023-02-27T03:58:16 | 2023-02-27T03:58:16 | 213,947,918 | 4 | 3 | null | 2020-10-01T14:49:12 | 2019-10-09T14:58:59 | C++ | UTF-8 | C++ | false | false | 1,150 | cc | main-hashset.cc | class PhoneDirectory {
public:
/** Initialize your data structure here
@param maxNumbers - The maximum numbers that can be stored in the phone directory. */
int n;
unordered_set<int> nums; // available nums
PhoneDirectory(int maxNumbers) {
n = maxNumbers;
for(int i = 0; i < n; i+... |
37e347f4de9352d777ec68afaf095ec2a0f4a03a | a71fe5d602d20419b7e8348db12f3d4804065aca | /Unix/UnixTerminationHandler.h | 7534d6693d66979b33ab84655675f54312a72034 | [
"MIT"
] | permissive | malord/prime | 4f0fd05426272bfcf4be46b253386dc1b018dfbb | f0e8be99b7dcd482708b9c928322bc07a3128506 | refs/heads/main | 2023-06-18T10:05:36.318919 | 2021-07-20T07:49:13 | 2021-07-20T12:49:13 | 376,293,500 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,360 | h | UnixTerminationHandler.h | // Copyright 2000-2021 Mark H. P. Lord
#ifndef PRIME_UNIX_UNIXTERMINATIONHANDLER_H
#define PRIME_UNIX_UNIXTERMINATIONHANDLER_H
#include "../Config.h"
#include <signal.h>
#include <unistd.h>
namespace Prime {
/// Takes care of setting up signal handlers for SIGINT (Ctrl+C), SIGHUP, SIGTERM and SIGPIPE.
class PRIME_P... |
ea26351a40f1916c56f7692c6ba484b76c236a2f | 719a221de2dfdcb5d976290811e9fcf072296271 | /Arduino Codes/Wireless_Byte/delay_est_plant/delay_est_plant.ino | d634f63cadab25556ad1edb539604b18b87499e5 | [
"MIT"
] | permissive | ROAD2018/WNCS_Delay_Estimation_Compensation | cbbd7e505d1bf1db84e3558e7bf83bd37f44b439 | 0a5eb3dff46428e4cfdc06dda5046435c259f9d8 | refs/heads/master | 2022-12-30T20:32:33.409517 | 2020-09-29T07:58:00 | 2020-09-29T07:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | ino | delay_est_plant.ino | byte drive;
unsigned long t2;
unsigned long t3;
unsigned long t4;
void setup() {
delay(5000);
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
if (Serial1.available())
{
drive = Serial1.read();
}
delay(20);
int x = random(15);
delay(x);
Serial1.write(drive);
}
|
55e25b3ec835b7e3e7882bf0c5096af6d9cbdff7 | 42e68766f6063cfcc58fd2675cf4ca989843af35 | /code/app/sensors/barometer.h | 742d18e9597925954f4f3d611178f7f72d88aadd | [] | no_license | gmsj-lab/nucleo_stm32_tubo | 788eaecea04bceb49bfe2e33f743d4afb56cd1d1 | e570403190388cb3d1b55476aee1b53260b0aa06 | refs/heads/master | 2020-07-30T02:37:47.877629 | 2019-09-21T21:41:19 | 2019-09-21T21:41:19 | 210,056,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | h | barometer.h | /*
* barometer.h
*
* Created on: 8 sept. 2019
* Author: gmsj
*/
#ifndef CODE_APP_SENSORS_BAROMETER_H_
#define CODE_APP_SENSORS_BAROMETER_H_
#include <string.h>
#include "stdint.h"
#include "BMP180.h"
#include "sensor.h"
#include "utils.h"
class Barometer : public Sensor
{
private:
bmp180_calib_data c... |
302fd20e97b5a7753f6ba6b119d2474c07f8104c | 52c0f5d7fa99a9e94e3086f1b563ba528dc4cbea | /stacks/reversing_stack_recursion.cpp | f2a2137d9386b13767d794cf1418f164c88d14bf | [] | no_license | Sagar2402/450Qns_DSA_SHEET | a16b87e115cda96f6dc51d12fceb62b2ddde244f | fe889a7ce5bbb2309fe471f4ee9996f10d66f26a | refs/heads/main | 2023-07-17T06:31:47.977982 | 2021-09-07T16:57:24 | 2021-09-07T16:57:24 | 404,053,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | cpp | reversing_stack_recursion.cpp | #include<bits/stdc++.h>
using namespace std;
void insertbottom(stack<int>* s, int n)
{
if((*s).empty()==true)
{
(*s).push(n);
}
else
{
int a=(*s).top();
(*s).pop();
insertbottom(s,n);
(*s).push(a);
}
}
void reverse(stack<int>* st)
{
i... |
163e12d6ddc4ebc7f330e88a39e889a1b555a5e6 | 93bb53787cb3e9fb32371bb0fdc4e9227edce60e | /infoarena/palindrom/main.cpp | 1d5fe4f02d3cf9b07bf3a04289b1caee40e59483 | [] | no_license | lupvasile/contest-problems | b969f6e591d1b3feaebf5675b999642b1f2ade32 | a484632c23d8b62b98d550446f697675b50e9dc6 | refs/heads/master | 2021-07-03T22:19:41.142998 | 2017-09-27T21:00:02 | 2017-09-27T21:00:02 | 105,061,972 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <cstring>
#include <algorithm>
using namespace std;
ifstream f("palindrom.in");
ofstream g("palindrom.out");
#define nmax 200010
//#define cout g
char s[nmax],rs[nmax];
int pref[nmax],pos;
int n,i;
void make_pref()
{
pos=0;
for(i=2;i<=n;++i)
{
while... |
96dc4d829a921ff70d043cec20376aec4cbe9899 | 3da66d7ae9bb85a2799f528cecfddafddc6328d1 | /Firefox.lnk/Firefox.lnk.ino | d79b97244ca68b42c63ae22dbd0bf0ca98cd1147 | [] | no_license | Gazzola-Alice/verifica_gazzola_alice_3ai | d2b02fb53ded22e463b4874c48add4e2e9a10a99 | d52e745197386b09639bb56249b878dc10039b37 | refs/heads/master | 2020-04-23T06:45:16.174798 | 2019-02-16T10:40:10 | 2019-02-16T10:40:10 | 170,984,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,530 | ino | Firefox.lnk.ino | int ledverde = 8;
int ledrosso =11;
int ledgiallo=10;
int ledbianco=9;
int i=0;
int durata;
int sequenza;
void setup() {
pinMode(ledverde,OUTPUT);
pinMode(ledrosso,OUTPUT);
pinMode(ledgiallo,OUTPUT);
pinMode(ledbianco,OUTPUT);
durata=random(100,1000);
Serial.begin(9600);
Serial.println("Durata random: ");... |
db8f39707fcfe173bf482cb355dbfd8716f42a03 | b5219895d4e2c71662ae3fa1eb9d08a0986642c1 | /27Gp3Shoot/src/dice.cpp | 94c5978bd5a4d04d13e1eb6f8ec229c8714a27e7 | [] | no_license | jecDiceButtle/DiceBattle_Beta | 1860fab3d3f0fb26dc1b7e88824b642b4fbc8062 | 15b24ce68de8035f04f0016f82002ced55a2fa0a | refs/heads/master | 2016-09-06T13:32:47.212355 | 2015-07-01T03:17:41 | 2015-07-01T03:17:41 | 36,175,506 | 1 | 0 | null | 2015-07-01T03:17:41 | 2015-05-24T14:15:44 | C++ | SHIFT_JIS | C++ | false | false | 12,288 | cpp | dice.cpp |
#include "dice.h"
#include "../../lib/gplib.h"
//tuika
#include "monster.h"
#include "movableObject.h"
//3Dカメラ
extern LPDIRECT3DDEVICE9 pD3DDevice;
//メッシュ全体管理クラス
extern std::shared_ptr<Dx_Camera> dxCamera;
extern std::shared_ptr<DX3DMESHMANAGER> meshManage;
namespace game
{
using namespace ci_ext;
using name... |
4b6dd65e46c7f844f3b49397781145078ea92c95 | 307c315a79f505aa9e3ac0227a003a2f185ba2ec | /module_04/ex00/Sorcerer.cpp | 0ac3e1dab600bae3167ca843cb9005bf9d44924d | [] | no_license | EudaldV98/Piscine_Cpp | c0d7791c996127fff7578b53a550cf7cd55ccae6 | 445dc6752e4b1c26dd1715989da799317e5ab40b | refs/heads/master | 2022-07-12T07:42:38.664212 | 2022-05-30T12:09:52 | 2022-05-30T12:09:52 | 243,049,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,588 | cpp | Sorcerer.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Sorcerer.cpp :+: :+: :+: ... |
75e41371813674f39bcbbd6b6de7a6f06e09b2a5 | eb667f1737a67feb07bf2d1298ff6757526ee8fb | /695 Redundant Connection II/Redundant Connection II.cpp | f4cd43c444b7843d7e0ef123382ca7e21daf4159 | [] | no_license | yukeyi/LeetCode | bb3313a868e9aedada3fe157c6307b00d32a09c9 | 79d37be2aefd674e885a5bdc6dac0a5adf02f91c | refs/heads/master | 2021-04-18T22:18:26.085485 | 2019-06-09T06:25:29 | 2019-06-09T06:25:29 | 126,930,413 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | Redundant Connection II.cpp | class Solution {
public:
vector<int> findRedundantDirectedConnection(vector<vector<int>>& edges) {
int n = edges.size();
vector<int> num(n,0);
unordered_map<int,int> M;
int first = 0;
int second = 0;
int base = 0;
for(int i = 0;i<edges.size();i++) {
... |
55b4b2520239cb73128c4b462ae83821e09d9562 | 7cdaf3063091b2be3cb86925adeb5423ea059fb9 | /lab7_3.cpp | c8893927ffa2b794fdf0da12d667815225020f46 | [] | no_license | cpe102/lab7-2562-2-peatasura | a494bf3e11fc277c2bee98764966d15d56a5bf7b | c4bef6653b4b1e4bbde6fa08ee70b3ee477e577c | refs/heads/master | 2022-03-30T10:39:09.623877 | 2020-01-21T08:53:45 | 2020-01-21T08:53:45 | 235,282,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,297 | cpp | lab7_3.cpp | //status = "ONE-NIGHT-STAND";
#include<iostream>
#include<string>
using namespace std;
int main()
{
int age , height , money ;
/* string a,b,c,d,e;
a = "status = UNFRIEND";
b = "status = BEST FRIEND";
c= "status = ONE NIGHT STAND";
d ="status = FRIEND";
e = "status = MARRIED";*/
cout << "... |
6e47285651bd054839f58b6493fb2031e4b4ba2a | 10355d7c57917704ddd6aa2d9c7c4792d3ccb55e | /Terminaltor/Terminaltor/ShootCommand.h | 1c4bc015f5c69cc5a8b50a6df0bef08cd1c6dc81 | [] | no_license | paulfigiel/Terminaltor | f3d64a44190d1a295f46e6431798b38f73836fb8 | 6a244dbe1c91938341b57a242b71eeb811f545f8 | refs/heads/master | 2021-06-11T18:53:31.124095 | 2017-01-23T19:38:49 | 2017-01-23T19:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | h | ShootCommand.h | #pragma once
#include "Command.h"
#include "Character.h"
class ShootCommand :
public Command
{
public:
ShootCommand(Character *c);
~ShootCommand();
void execute();
private:
Character *character;
};
|
9a3d8072330a1a457bc4370b563268b9c8972f5c | 64bf21e9b4ca104557d05dc90a70e9fc3c3544a4 | /extensions/mpi/startup.h | de09b01946550420144b1504c7df52ff25aade66 | [
"BSD-3-Clause"
] | permissive | pyre/pyre | e6341a96a532dac03f5710a046c3ebbb79c26395 | d741c44ffb3e9e1f726bf492202ac8738bb4aa1c | refs/heads/main | 2023-08-08T15:20:30.721308 | 2023-07-20T07:51:29 | 2023-07-20T07:51:29 | 59,451,598 | 27 | 13 | BSD-3-Clause | 2023-07-02T07:14:50 | 2016-05-23T04:17:24 | Python | UTF-8 | C++ | false | false | 692 | h | startup.h | // -*- C++ -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2023 all rights reserved
//
#if !defined(pyre_extensions_mpi_startup_h)
#define pyre_extensions_mpi_startup_h
// place everything in my private namespace
namespace mpi {
// create a communicator group (MPI_Comm_group)
extern const char * cons... |
673f1efe400e02e498be39ec43bb56f7167039e4 | 414a161e48c3598ed029636c1773a055a9fc709b | /V-Pal/testing/po_UT.cpp | 5dc76b2dd67a591207783e4b6acb9469154399d8 | [] | no_license | Kanoog/V-Pal-csci5801 | be77fe914f20e6fc9afdca3fedec11388d07fd9c | 3a3eec04ec6d44ed3636b22a83466d8be9cd08a8 | refs/heads/master | 2023-07-15T12:19:30.466154 | 2021-08-31T22:04:02 | 2021-08-31T22:04:02 | 391,151,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,715 | cpp | po_UT.cpp | // Tests for OPLV
#include <gtest/gtest.h>
#include "../src/po.cpp"
class POTests:public::testing::Test
{
protected:
PO * testpo;
virtual void TearDown()
{
delete testpo;
testpo = NULL;
}
};
TEST_F (POTests, Co... |
88f5e3fdf69de7ed4824c5ba48ae1ac168475ad2 | c4710ebbef3afb53ce015895462d016bf8b8c4f4 | /fenwick_tree/main.cpp | 3f473525bc089c642fb6a3d234368c288cc5ec8b | [] | no_license | nertc/algorithms-cpp | 94f61f49fcfa55a2e9f5c0dc9d5d48216e326424 | 64d85155b937f2d64619d1ced50d8d9bae22bac5 | refs/heads/main | 2023-03-24T03:47:45.619554 | 2021-03-18T12:33:23 | 2021-03-18T12:33:23 | 347,333,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,200 | cpp | main.cpp | #include <vector>
class fenwick_tree
{
private:
int _limit;
std::vector<long long> _tree;
void init(int limit)
{
_limit = limit;
std::vector<long long> tree(_limit);
_tree = tree;
}
public:
fenwick_tree(int limit)
{
init(limit);
}
fenwick_tree(lon... |
c943f8b861fc640e917a5041988686095573a574 | 0f8965ca3ef310dc0ba47f383ebdcc1bcef3616a | /ext/TslGame_MULTI_HACK-master/PUBG 2.3.3/SDK/PUBG_CountDownWidget_classes.hpp | bf9f75e8f0975be9f782bd8ff12cc04c11600d16 | [] | no_license | sbaa2014/MFCApplication1 | dc8f58200845ad6c51edb7aff72b3532ad63f532 | ca6106582c77a55d50cfa209341dc424757d3978 | refs/heads/master | 2021-01-20T17:19:52.409004 | 2017-07-14T11:47:28 | 2017-07-14T11:47:28 | 95,742,921 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,904 | hpp | PUBG_CountDownWidget_classes.hpp | #pragma once
// PUBG (Beta) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace Classes
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass CountDownWidget.C... |
7dbd6b84cdbd70d3c2e2b8fe609ce3dff21d659f | 083d1eab55e6a72fe159ded96cd36ed82f8ed909 | /Source/Public/CHashMap.h | 6c3581236fea57c03f18fba6ad489af31f4c7484 | [] | no_license | 854825967/mylib | d585b7a9f6831172845775c079e844c230d349e1 | 920a509b5f3061edba6204c0747df076e53b5ca6 | refs/heads/master | 2021-01-10T19:03:30.128220 | 2014-04-24T01:47:08 | 2014-04-24T01:47:08 | 12,265,441 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | CHashMap.h | #ifndef CHASHMAP_H
#define CHASHMAP_H
#if defined WIN32 || defined WIN64
#include <hash_map>
using namespace std;
using namespace stdext;
#define CHashMap hash_map
#elif defined linux
#include <tr1/unordered_map>
using namespace std;
using namespace std::tr1;
#define CHashMap unordered_map
#elif defined CC_TARGET_OS_I... |
75afdd68b89042b1e8eaab6ad3e435bf7a6b2f94 | 124126c3e56d05dca476416dad02e0173a3adfbf | /ChomboTools/IntegralAndExtraction/ForceExtraction.hpp | 5b2369aa4c08ab81eacd4f41c77976ad8dff1d80 | [] | no_license | KAClough/Postprocessing_tools | 867658129dd4171486cdd6f6ba0a9585ee0a329d | 3895492a95680482867df5677dd1c8cfeebc8092 | refs/heads/main | 2023-02-28T18:07:01.648809 | 2021-02-10T09:36:11 | 2021-02-10T09:36:11 | 335,055,273 | 0 | 0 | null | 2021-02-01T19:06:58 | 2021-02-01T19:06:58 | null | UTF-8 | C++ | false | false | 2,563 | hpp | ForceExtraction.hpp | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#ifndef FORCEEXTRACTION_HPP_
#define FORCEEXTRACTION_HPP_
#include "SphericalExtraction.hpp"
//! The class allows extraction of the values of the force components on
//! Spherical shells at specifi... |
a192e356c2c40c0b39691f9011c0e7ebd011f964 | cf2c245884d75aff36f71683e462abe55b7cbf90 | /Source/TPT/TPTLeftController.h | d4cb4683962bb0dd36f50a31070a4b4632a50bcf | [] | no_license | ssapo/TPT | c2d9a251f80472cee54424a36c770cd58c4333b6 | 06f990ea06663fe06d355881a51c6f48b88631e9 | refs/heads/master | 2022-04-07T16:10:00.759433 | 2020-02-23T08:06:03 | 2020-02-23T08:06:03 | 205,627,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,877 | h | TPTLeftController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "TFTWidget.h"
#include "DelegateCombinations.h"
#include "TPTLeftController.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FLeftControllerMovementOver);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_On... |
4cd4287fd1d522f2e63a49047856765a6709f6d3 | fdcedbd41b3c7960096900d42cc0d93c5c136b6e | /PGG_FlyingTeapot/Stars.cpp | 77a378eacb41610c2c422d98a0a1b21529c43714 | [] | no_license | JakerzW/PGG-Assignment | f6c0f21b706feef823a8500f2085025611bda038 | f254c9f20e359f3e96f465076bce4e6529e21bc0 | refs/heads/master | 2021-09-03T20:54:58.864837 | 2018-01-11T22:38:01 | 2018-01-11T22:38:01 | 113,864,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | Stars.cpp | #include "Stars.h"
Stars::Stars()
{
starsMaterial = new Material();
// Stars needs a different shader as we just want the plain texture to show up and not have any lighting effects on it
starsMaterial->LoadShaders("VertShader.txt", "StarsFragShader.txt");
starsMaterial->SetDiffuseColour(glm::vec3(1.0f, 1.0f, 1.0f)... |
3eb5a817a4da7c598804201b2a1f2ebf50e5277a | c29d3927edc897dca78865b4d19a243462f6ac93 | /hylafax/src/libhylafax/TypeRules.h | ce90d9e4d2f10be9579f291dcc15558a8b160943 | [] | no_license | trandaihiep/hylafax | f74b58935e8b4794fe809ad7ec8afedfd6afc937 | 1409e7664404db7887116a56fa47e9272e7b5883 | refs/heads/master | 2021-01-01T17:53:22.699025 | 2017-07-27T17:52:36 | 2017-07-27T17:52:36 | 98,186,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,021 | h | TypeRules.h | /* $Id$ */
/*
* Copyright (c) 1990-1996 Sam Leffler
* Copyright (c) 1991-1996 Silicon Graphics, Inc.
* HylaFAX is a trademark of Silicon Graphics
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the ... |
4e7eb3a346a1e86b3ecf1c8eb30791b6f40ea5ec | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/VCSamples/VC2010Samples/MFC/Visual C++ 2008 Feature Pack/DesktopAlertDemo/MSNVisualManager.h | 8e3fa9ed3f2461fdaeeabc39e223c658897ef2ca | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 837 | h | MSNVisualManager.h | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sour... |
f1c68252995d240eace644fbf8342f65585cab32 | 4c9716c0e708a4c8ddb5b63925f21f284701a42c | /code/btas/ctf-master/src/contraction/sym_seq_ctr.h | 71a86fa58eb40d1150f4fc8e8a8c1921a3faa6d7 | [
"BSD-3-Clause"
] | permissive | shiyangdaisy23/tensor-contraction | 8564e97c820be07614d9f821210c8ea99533b4c6 | cc79c5683da718dfc8735aea7f56fba36fb628b9 | refs/heads/master | 2021-01-16T18:24:02.409163 | 2017-08-11T20:45:48 | 2017-08-11T20:45:48 | 100,068,903 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,312 | h | sym_seq_ctr.h | #ifndef __SYM_SEQ_CTR_H__
#define __SYM_SEQ_CTR_H__
#include "../tensor/algstrct.h"
#include "../interface/functions.h"
namespace CTF_int {
void compute_syoffs(algstrct const * sr_A,
int order_A,
int const * edge_len_A,
int const ... |
c9054132b1547ea4b540e59689027c4f2543311d | 27f3d4369938e71bc43dc8ef19e974f8c7c8bbe8 | /Graph/BFSandDFSProblems/LargestPeiceProblem.cpp | 5272138e2d1b926a20e4069ea245edf7cb085f57 | [] | no_license | prikshit-1103/CodingNinjaRevision | dd63b9b21668b1d0653f2cbc7159114f7d0626ea | 57095301ad09e7c0c5aeb30923b2a205e5993949 | refs/heads/master | 2022-11-08T17:35:35.595291 | 2020-06-17T18:14:56 | 2020-06-17T18:14:56 | 273,052,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | LargestPeiceProblem.cpp | //Largest Piece
//Send Feedback
//Its Gary's birthday today and he has ordered his favourite square cake consisting of '0's and '1's .
//But Gary wants the biggest piece of '1's and no '0's . A piece of cake is defined as a part which consist of only '1's, and all '1's share an edge
//with eachother on the cake. Give... |
e6326b2df3b699112948dc4b597f853e5a8b2d29 | ac2b38427449c60d9ebd9a05a4e04fb100a682fc | /Library/Storage2/KERNEL_FUNCTOR.hpp | 16fcaa23825208e72c6f3764dd5d6ade84152273 | [
"Apache-2.0"
] | permissive | zjuyaron/IDP | 5569e9ca90dc613db035ca94e5d730da97d01981 | 235b04ce2be018df50ba4c84370b56631dce0a66 | refs/heads/main | 2023-08-29T17:10:41.833619 | 2021-11-09T18:52:13 | 2021-11-09T18:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | hpp | KERNEL_FUNCTOR.hpp | #pragma once
#include "./HANDLE.hpp"
#include "./UTILS.hpp"
#include "./RANGE.hpp"
namespace JGSL {
namespace storage {
template <class AoSoA, class F, typename... Types>
struct LinearKernel {
using Handle = LinearHandle<AoSoA, Types...>;
SliceHolder<AoSoA, Types...> slice_holder;
F kernel;
Lin... |
259e2b587f1380c3ad3a41c147c1242b018acccd | 6a246869b9f099f043f3e6bd613fc90992ce19fe | /Talat/BoardProperties.cpp | e564259031154ee8743e664b312efc8279905988 | [] | no_license | justcasualguy/Talat | ab9b531dcbc04c9803f76334c769d768684fe7d2 | 511972d100eda22061f5d6f682963ea36e8b0a82 | refs/heads/master | 2020-05-24T21:22:12.407155 | 2019-06-29T13:16:36 | 2019-06-29T13:16:36 | 180,581,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,800 | cpp | BoardProperties.cpp | #include "pch.h"
#include "BoardProperties.h"
BoardProperties::BoardProperties()
:fieldsVertical(5), fieldsHorizontal(5),
fieldWidth(14), fieldHeight(8), boardColor(WHITE), boardLook(L'x')
{
boardHeight = fieldsVertical * fieldHeight + 1 - fieldsVertical;
boardWidth = fieldsHorizontal * fieldWidth + 1 - fieldsHor... |
d820c5293e1b6a57ff8562a0e23de998707eec77 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /core/include/tencentcloud/core/profile/ClientProfile.h | f069108730d912b7dace0cb6d4c087c8c738fb40 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 1,929 | h | ClientProfile.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
e920c2f14eb4b3823086364ffa4177cf9a74941f | 48d4cc56a3494276df563013e46cc29c22931bcf | /vs2017/ui/mainwindow/workbench/AppWebView.cpp | d1801f27b3bc704fde8fdc459ce3827c0517e76f | [
"MIT"
] | permissive | cheechang/cppcc | 8e8fde9eedc84641b3bc64efac116a32471ffa1d | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | refs/heads/main | 2023-03-16T23:09:56.725184 | 2021-03-05T09:46:28 | 2021-03-05T09:46:28 | 344,737,972 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,564 | cpp | AppWebView.cpp | #include "AppWebView.h"
#include <QUrl>
#include <QDebug>
#include "common/Common.h"
#include <QDebug>
#include <QFileDialog>
#include "common/UIUtils.h"
//CSharedPtr<QWebChannel> m_WebChannel = CMakePtr<QWebChannel>();
namespace ui {
AppWebView::AppWebView(QWidget *parent)
: QWebEngineView(parent)
{
//m_BrowserC... |
a085041aa7de32f72a2c35451a1d9645d1842773 | 2b7ab610f5a4a51ea34f18b33dee8632d9d13b1a | /DoubleLL.h | caa2456ed06f9668d760d560762cbed33b04079f | [] | no_license | npeverett/Assignment5 | fc82d9bfa6d134439fa4e6cf64da313f35be6e11 | 1a28a3b51789dc8881a1ad10e9f8c9a14b23fa10 | refs/heads/master | 2020-04-05T11:09:13.411867 | 2018-11-26T06:30:05 | 2018-11-26T06:30:05 | 156,824,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,626 | h | DoubleLL.h | #pragma once
#ifndef DLL_H
#define DLL_H
#include <iostream>
using namespace std;
//ListNode CLASS
template <class T>
class ListNode
{
public:
ListNode();
ListNode(T d);
~ListNode();
T data;
ListNode* next;
ListNode* prev;
};
template <class T>
ListNode<T>::ListNode()
{
}
te... |
c829c99f61ae76c96923e1052f646f60e4815bde | 2e0fcd3660b73fc661722e752027636eb4c11ae7 | /cpp/components/validation-ctt/HEAD/ctt_testcases/ControllerServicePresetBusObject.cpp | 9436c8281a8faa6bbe1ce0c73fc81122798bfb75 | [
"Apache-2.0"
] | permissive | alljoyn/compliance-tests | 5e8cc57a38db675c1dad398055a83d301e4a6f50 | 8132b8863e573e6dfc0b92ab2d03c2d2e7ad1cbb | refs/heads/master | 2021-09-11T12:46:47.902484 | 2018-04-06T21:43:57 | 2018-04-06T21:43:57 | 112,536,091 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,054 | cpp | ControllerServicePresetBusObject.cpp | /******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying mater... |
e754cc271cc63d523a492e918bf86966277b4ae7 | 30a0fbb893dbe995c2282c2541cd4dd3fdaee5e3 | /Random Number Generators/random_num_generators3.cpp | 7ad7b3f92ea2f1930a1d51a1e2ee4b7a9686d02c | [] | no_license | fabnonsoo/Cpp_projects | c629fc52285a81053c0962ede32126f230576343 | 9faae359e50f4c1cd1e4c8a526a5d0cb1b269e26 | refs/heads/master | 2022-11-29T06:26:36.498923 | 2020-08-12T17:44:02 | 2020-08-12T17:44:02 | 284,071,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | random_num_generators3.cpp | // While this block of code allows us to use "time(0)" to change the algorithm of srand() and rand(). Hence, giving us different random numbers when we run the code....
// We must add a C++ header file knowm as:- "#include <time.h> OR #include <ctime>" to ensure we invoke the time(0) function for "srand()", else we'll... |
e84176f051d719b959cf3d5d37c6ce0cc0db82aa | ae9b06486266e4c68990ad399be35062d3ea7837 | /fubble/version/server_application.cpp | d1dfa8af44020e310eb44977c7e38e7b219580dd | [] | no_license | lineCode/fubble | ffd262109009da6336b149b41b551f302f68d1aa | 2b0bddb65b881ab4a0a7ed629fb08ccc7774da82 | refs/heads/master | 2023-03-24T11:07:22.817007 | 2021-03-25T10:09:18 | 2021-03-25T10:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,948 | cpp | server_application.cpp | #include "fubble/utils/logging/initialser.hpp"
#include "fubble/utils/logging/logger.hpp"
#include "fubble/utils/options_adder.hpp"
#include "fubble/version/server.hpp"
#include <boost/asio/signal_set.hpp>
#include <iostream>
int main(int argc, char *argv[]) {
logging::add_console_log(logging::severity::debug);
lo... |
fe230764fc21a06c9016659b33a258390bfa3546 | 705fce64ddf61fc0dbf3396c77c07474453640a0 | /Soft-Renderer/camera.h | 462d806dc661cb5d2f73587297fbb5eb5bb8a02b | [
"MIT"
] | permissive | Alekssasho/Soft-Renderer | afa8fd97bf681c3358a9fc27f7616759a326ec2c | 751114495d9a328a69c9374e4aa68bddb6c42a59 | refs/heads/master | 2021-01-01T17:15:39.205049 | 2014-03-28T18:05:01 | 2014-03-28T18:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | h | camera.h | #ifndef CAMERA_H
#define CAMERA_H
#include "glm/glm.hpp"
namespace SoftEngine
{
class Camera
{
private:
glm::vec3 m_position = glm::vec3(0.0f);
glm::vec3 m_target = glm::vec3(0.0f);
public:
glm::vec3 position() const { return m_position; }
glm::vec3 target() const { return m_target; }
void s... |
a470ef550c0c903fd6d587ef770a28c1ce233c18 | 26572ac69fe8884056556e8dc0c5ee5a84b169ca | /Sample.cpp | 2667136401d7209d8283df610c19adff691644fa | [] | no_license | gauravcse/Codes | 8cb04692ef1610b08251b08f86a6dc365cbb5012 | 67db58301f9c3372d46f7131ead949400091dd27 | refs/heads/master | 2021-01-10T11:18:00.041234 | 2016-11-02T15:54:18 | 2016-11-02T15:54:18 | 49,191,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | Sample.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void) {
char *c,*s;
int x=0,y=0;
char ch;
while(ch=getchar()!='\n') {
c[x++]=ch;
}
printf("\n");
c[x]='\0';
printf("%s",c);
for(;y<x;y++)
printf("%c",c[y]);
}
|
3fb551eef3d142bf57271f812fff194384fa1ed3 | 339cc59a7c5021159ad063ce06019c0d14a35b49 | /neutrinocommon/c++/old/v2/physconst.cpp | 3c3b73c690bb6493bc1a05a91e5a7ba181f8e08a | [] | no_license | arguelles/NeutrinoCommons | ebb3408f38327c6b1a8c7d3652668a9ec807922e | cb8f34015c43b40c0d343f516be8d447ebef7006 | refs/heads/master | 2022-12-14T14:01:37.538098 | 2020-08-31T15:10:07 | 2020-08-31T15:10:07 | 291,744,493 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,187 | cpp | physconst.cpp | #include "physconst.h"
PhysConst::PhysConst(void){
/* PHYSICS CONSTANTS
#===========================================================================
# NAME
#===========================================================================
*/
name = "STD"; // Default values
... |
c5c92368fd9a861614c3cdea76b7e6039db6ef72 | acb4df35c2251797e6292f24d89d29f64c7367f6 | /Framework/Common/Scheduler.cpp | 2726bdd4b6ba9344788457eeab1001866ae81a8f | [
"MIT"
] | permissive | yhyu13/GameEngineFromScratch | 8e1f639e988c207f76d5d041536e8b58da708c79 | 0dc128360db53f4e3ec4fc488e8237acea6da3a8 | refs/heads/master | 2020-06-16T12:05:38.522076 | 2020-05-08T20:43:32 | 2020-05-08T20:43:32 | 195,565,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24 | cpp | Scheduler.cpp | #include "Scheduler.hpp" |
7e7eca6c4a4f4dae74064d381badfb981d53cee7 | d0889089b86bc407b154879cb294e703f9303989 | /Lumos/External/spdlog/src/cfg.cpp | e5713ccafff5d2040913d9181b7df0e0850dedd8 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | jmorton06/Lumos | 9ab96420c619d9baac07e4561d0a7e83645d54c8 | e5f0ebfa9049d3515caaad056fda082a1e9d74ae | refs/heads/main | 2023-09-01T02:48:00.496623 | 2023-07-06T07:31:44 | 2023-07-06T07:31:44 | 164,933,352 | 1,052 | 126 | MIT | 2023-09-06T08:08:18 | 2019-01-09T20:32:10 | C++ | UTF-8 | C++ | false | false | 279 | cpp | cfg.cpp | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#ifndef SPDLOG_COMPILED_LIB
# error Please define SPDLOG_COMPILED_LIB to compile this file.
#endif
#include <spdlog/cfg/helpers-inl.h>
|
13ef7d25a7a09a7611e89468749a7d563d156fc9 | d88427a96fb23135794539a2d7b6cdbfbee34a83 | /laundry/tampilan/utama/utama.cpp | 2856fd23375f487cf886ae8229a10176357364a2 | [] | no_license | WahyuSetiawan/cplusplus_contoh | 92db7b437888e6338ca2525e2d91c3ea5706f1cc | 4dad728a92ec9796ad177bf5973ef3f0a20d32d3 | refs/heads/master | 2023-01-22T20:04:46.996247 | 2020-12-06T04:30:47 | 2020-12-06T04:30:47 | 315,643,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,647 | cpp | utama.cpp | #include "utama.h"
#include <stdlib.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include "./../component.h"
#include "./../harga/harga.h"
#include "./../transaksi/transaksi.h"
#include "./../rekap/rekap.h"
#include "./../pengambilan/pengambilan.h"
int tampilkanMenu();
int tampilan... |
77e2fa83a73d35b0864147575ddee52e9afeed97 | 55ae9643ce366b1d5e05328703cd82af5bf2bde3 | /1375.cpp | 41eef8e846c55c3cc5939ea72313df4bb10844b0 | [] | no_license | thextroid/edunote | 486a9030cc60e1aca454d55d8228babe4d7cedf8 | 8fe6ac5929ce3fc322a2196ab716d4cc9136786e | refs/heads/master | 2021-01-19T21:40:43.428088 | 2017-04-19T01:59:11 | 2017-04-19T01:59:11 | 88,685,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | 1375.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#define FOR(i,a,b)for (int i = (a); i < (b); ++i)
using namespace std;
char reverse['z'];
void render(string& s){
FOR(i,0,s.size())
if(s[i]=='0')
s[i]='O';
}
bool isPalindrome(string& s){
int t = s.size();
FOR(i,0,t/2)
if(s[i]!=s[t-i-1])
return false... |
f090459f0f6007144c3a838c9dabb49d02c9bbf4 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondFormats/DataRecord/src/L1MuDTPtaLutRcd.cc | 3b3f1aad26b218ab39e12a627ffdf94b586db4d8 | [
"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 | 179 | cc | L1MuDTPtaLutRcd.cc | #include "CondFormats/DataRecord/interface/L1MuDTPtaLutRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(L1MuDTPtaLutRcd);
|
40593ee3f8579fe73f1b74fb8b991b49f72dd99d | 91ff458bb8da0a28b8d025043d9e374c107bf7ba | /src/0313_Super_Ugly_Number/Super_Ugly_Number.cpp | c2101d7ce976721f5b1c94ee08c4d9806ba50ee9 | [] | no_license | PengJiaqiao/LeetCode_Diary | 0cefb3f8cafac54fb6eb04aa91c24aa5f6cb1688 | cbe3f4f6a026d3e8f47f97af0106bd3d1e236037 | refs/heads/master | 2021-08-09T16:25:02.202672 | 2020-05-05T15:08:23 | 2020-05-05T15:08:23 | 172,994,940 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | Super_Ugly_Number.cpp | class Solution {
public:
int nthSuperUglyNumber(int n, vector<int>& primes) {
ios::sync_with_stdio(false);
cin.tie(0);
if(n == 0) return 0;
vector<unsigned int> res(n), pre(primes.size(), 0);
res[0] = 1;
for(int i = 1; i < n; i++) {
unsigned int Min = res[... |
24ad7ceb5850e7f0950494758c7f7fe807b4d835 | 1ae40287c5705f341886bbb5cc9e9e9cfba073f7 | /Osmium/SDK/FN_B_Prj_CeilingTrap_Falling_functions.cpp | 143ff214ff8c73f38ce46fd10aa56b4ef6fbe9a4 | [] | no_license | NeoniteDev/Osmium | 183094adee1e8fdb0d6cbf86be8f98c3e18ce7c0 | aec854e60beca3c6804f18f21b6a0a0549e8fbf6 | refs/heads/master | 2023-07-05T16:40:30.662392 | 2023-06-28T23:17:42 | 2023-06-28T23:17:42 | 340,056,499 | 14 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 9,636 | cpp | FN_B_Prj_CeilingTrap_Falling_functions.cpp | // Fortnite (4.5-CL-4159770) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function B_Prj_CeilingTrap... |
0e3c8ec8d68354d6bef982b9377eb9d50424bf60 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-fully/66/p_rgh | 51bd31e0db70a03e035cfe7814dde2bee5c2c92e | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197,929 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
8f3c3757648f7ea893b9aeb3db917d0e1ef3ac25 | fc13f0033c94ba82e6c8ed73a5bbfb6f07ac46ad | /inc/demuxer/stream_demuxer.h | 86808ea2944d07caf433df8b6b0ae305ce977467 | [
"MIT"
] | permissive | tigertv/NativePlayer | 76b9ee669786e8b0a4b89adcd305966e40256cb0 | 8de394aeb964add1568ddcfc12216930bd895647 | refs/heads/master | 2021-05-19T13:30:09.306726 | 2019-06-12T04:21:43 | 2019-06-12T04:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,338 | h | stream_demuxer.h | /*!
* stream_demuxer.h (https://github.com/SamsungDForum/NativePlayer)
* Copyright 2016, Samsung Electronics Co., Ltd
* Licensed under the MIT license
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPL... |
137c0f24516b6d589f0e7cb55a5964e27c799ce3 | d40d4c2ab743348b26036c2aa4432873d5fda49f | /leetcode/contains-duplicate.cpp | 748342ab6edb4cb3e1940704f5b91eff5a1b6cd3 | [] | no_license | MichalMrena/Competitive | 1a6cce8b959db446b7a4331a4af028043c8a8ace | 0b7a2eb0a8279d6de9c77b0ec0f273d419dfcdc7 | refs/heads/master | 2023-09-01T06:15:14.613596 | 2023-08-29T10:19:56 | 2023-08-29T10:19:56 | 198,774,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | cpp | contains-duplicate.cpp | #include <unordered_set>
#include <vector>
bool solve(std::vector<int> const& nums)
{
std::unordered_set<int> memo;
memo.reserve(nums.size());
for (int const num : nums)
{
if (not memo.insert(num).second)
{
return true;
}
}
return false;
}
int main()
{
s... |
6540c332fa0c729f9b30515c3c560f268cc5286a | 64b07db7aff745968b550e146bc80b047b0e7366 | /source/RTT/Box.h | 5b734a2b02b473a79df32b9592ce5e7b123b3199 | [
"MIT"
] | permissive | hidjou/Ray-tracer | 3adccc9cc8de2404bb3b9b8c607652d742e7e296 | 51a0ad1d4957de4f45b9ff11f6dc012000d5698c | refs/heads/master | 2020-07-26T15:17:55.052192 | 2017-03-13T17:28:22 | 2017-03-13T17:28:22 | 73,720,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | h | Box.h | #ifndef BOX_H
#define BOX_H
#include "Shape.h"
#include <glm/glm.hpp>
using namespace glm;
class Box
{
public:
vec3 position, size;
Box() = default;
Box(vec3 i, vec3 j);
};
#endif |
10ecfb4241f4100aab1eaa05cba520a366aab884 | 117b02dcba68a6b88a72be7f371c04c26d9122c2 | /mts/platform/storage/fsstorageplugin/fsstoragepluginfactory.h | d93e087b4cb7ff1b863969583008f48ecaf2e441 | [] | no_license | 44670/tinymtp | 288f320dc08b987baa389f1ee7d2b2e4d32ddaea | f91d8c94516085a5da5504f166c80d5549d12d6c | refs/heads/master | 2020-12-02T22:44:01.093927 | 2017-07-04T04:22:08 | 2017-07-04T04:22:08 | 96,173,528 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | h | fsstoragepluginfactory.h | /*
* This file is a part of buteo-mtp package.
*
* Copyright (C) 2014 Jolla Ltd.
*
* Contact: Jakub Adam <jakub.adam@jollamobile.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of sour... |
96120eb77ab338146633c6a266c2562247cf8244 | 34677fc69f272b5bbb5220b27153920ca58246f0 | /URI/1555.cpp | d34d59300e90fccdb34ae4ef762ddc0225edbe6c | [] | no_license | gvilardefarias/CP_Judges | 064fbe709a291f54eddb8ded0d1f17cd0f823749 | 4007d1bcc208e036c230e5cd16c52399a9b68fce | refs/heads/master | 2021-01-20T04:46:31.779652 | 2017-04-28T21:07:56 | 2017-04-28T21:07:56 | 89,728,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 1555.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int n,x,y;
scanf("%d",&n);
for(int i=0;i<n;i++){
int r=0,b=0,c=0;
scanf("%d %d",&x,&y);
r = pow(3*x,2)+ pow(y,2);
b = (2*pow(x,2)) + pow(5*y,2);
c = (-100*x) + pow(y,3);
if(r>b && r>c)
printf("Rafael ganhou\n");
else
if(b>r && b>c)
... |
e34d8c7eeaf915c0a9e216f5066f8acff280b40b | ea72f1de1efe691ed038e16ee4a6fc11ad504f3b | /USACO_2011DEC_GRASSPLANT/src/main.cpp | 1b1b451c76f913051c4b3741e8500752705cce63 | [] | no_license | gyf1214/OI | d358f27d1fc5861a26b2d0ac1abc3d68414429a2 | 7b4b33d422462bef8660521617f82a57ebd2ff9c | refs/heads/master | 2020-05-21T23:27:33.052962 | 2019-10-18T22:40:09 | 2019-10-18T22:40:09 | 12,171,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,646 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Feb 12, 2014
* Author: gyf
*/
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
#define clr(i, a) memset(i, (a), sizeof(i))
#define max(a, b) ((a)>(b)?(a):(b))... |
e9e4b622da3a373796e00800345364f7f2897bd5 | 38de511cee50503e4aad809aeb6211470bfba63d | /Graphs 1/Code : Is Connected ?.cpp | ee79ddd97c54739b1513603a100b1e3acabad00d | [] | no_license | Ir0Nick/Coding-Ninjas | 9dcef94418b38bdc75b23ce0a9a7c70f6b439a43 | 24a952d2393337be35f306576b9e35ce480a68e9 | refs/heads/master | 2022-10-27T05:27:03.876427 | 2020-06-13T05:44:18 | 2020-06-13T05:44:18 | 271,807,541 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | Code : Is Connected ?.cpp | #include<queue>
#include <iostream>
using namespace std;
bool isConnected(int**edges,int n,int* visited)
{
queue<int> q;
q.push(0);
visited[0] = 1;
while(q.size()!=0)
{
int num = q.front();
visited[num] = 1;
q.pop();
for(int i=0;i<n;i++)
{
if(vi... |
9624c7d212ba17bf89e56e450089da7f7251769f | 6ff0888b71f1975eaaa404ff0608f7cd2f54dcc3 | /include/red1z/error.h | 678ff80e71863efc4addcf6dac67f7de428bafe2 | [
"MIT"
] | permissive | blesner/red1z | e79f7e04a247db4e30349f029c39caf232b00288 | 4c0251a343ede0c81f19e24f3dd364431ed0aed7 | refs/heads/master | 2023-08-28T21:08:14.135569 | 2021-10-15T13:28:24 | 2021-10-15T13:28:24 | 265,183,451 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | h | error.h | // -*- C++ -*-
#ifndef RED1Z_ERROR_H
#define RED1Z_ERROR_H
#include <sstream>
#include <cstring>
namespace red1z {
struct Error : std::runtime_error {
using Base = std::runtime_error;
using Base::Base;
template <class... Args>
Error(Args const&... args) :
//Base(((std::ostringstream() << ... <... |
20e3d72bd937d3e6e185475e9574f055193d94cd | d0a4a5fb7b1e42fd0efe5e561d3bba6cd0b625db | /LinkedList.cpp | 8ee5537cd61f74232f84770847c56a00a21c8368 | [] | no_license | dmeckley/Linked_List | 21bc930734b55524d30b8ccdce38e1dc24579f3c | 6bc3f026c5e276c2474fef5e4cc12261dcb83792 | refs/heads/master | 2020-04-14T22:40:22.896495 | 2019-01-05T02:04:08 | 2019-01-05T02:04:08 | 164,172,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,995 | cpp | LinkedList.cpp | /*****************************************************
* LinkedList.cpp
*
* Dustin Meckley
* ciss350
* 6/11/15
*/
#ifndef LINKEDLIST_CPP_
#define LINKEDLIST_CPP_
#include "LinkedList.h"
/*****************************************************
* LinkedList()
*
* Default constructor for LinkedList class.
*/
LinkedList:... |
69de4efd016ce61b9fc208a17cc5741cda30c6ac | dc98f7cec78f01a6704d9209964f3abcebb24948 | /GUI/Dreieck.cpp | deafa4d0635b25829011a69994eb8305a75ad818 | [] | no_license | JoergPfe/P2CAN | baf9d50188e450a475bf0d768e3d39fd8c39ae57 | 1e7cb67fc025847e7d2f89c32d3e7080e7a8b61e | refs/heads/master | 2020-06-04T09:59:14.498582 | 2014-11-21T22:42:40 | 2014-11-21T22:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | Dreieck.cpp | /*
* File: Dreieck.cpp
* Author: bpse_sose14
*
* Created on 24. September 2014, 13:38
*/
#include "Triangle.h"
Triangle::Triangle() {
}
Triangle::Triangle(const Triangle& orig) {
}
Triangle::~Triangle() {
}
Triangle::Triangle(GLfloat size,GLfloat dicke)
{
GLfloat tiefePunkte = dicke/2;
glBegin... |
32195afeec748f30efd6ee8f7e2eb040efaab062 | 178e1b1db6944e016653afae092822abf4a2ce4c | /set/101/PathOfHighestSum.cc | eea72b6ab1d87c8a507828edeaf6e492a87c373b | [] | no_license | nupurgarg1211/AlgorithmAndDataStructure | 2b8a315e212cf46f6e24ebeb4efc3f80e33a42d2 | 764bbf4e164cb5c892483bdf496bc51a69426b7d | refs/heads/master | 2021-01-10T05:47:59.542354 | 2015-12-05T13:15:33 | 2015-12-05T13:15:33 | 47,455,528 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cc | PathOfHighestSum.cc | /*Given a (nXm) matrix, with values present in each cell and a few in-accessible cells marked as -1, find the path from (0,0) to (n,m) with highest sum.*/
#include<iostream>
#include<bits/stdc++.h>
int const n=3,m=4;
using namespace std;
// max(sum[i-1][j-1],sum[i-1][j],sum[i][j-1],x,y)
int max(int a,int b,int c,int... |
7770f0885ba0b4c3f0bf3cb3c650ff0f896a6551 | c920079b644668fcea120937ec7bec392d2029bd | /B4---C++-Programming/cpp_bomberman/include/Object2D.hh | 9cade604298b0764b5d106e6bcad0fb50b681e7a | [] | no_license | Ankirama/Epitech | d23fc8912d19ef657b925496ce0ffcc58dc51d3b | 3690ab3ec0c8325edee1802b6b0ce6952e3ae182 | refs/heads/master | 2021-01-19T08:11:27.374033 | 2018-01-03T10:06:20 | 2018-01-03T10:06:20 | 105,794,978 | 0 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 848 | hh | Object2D.hh | #ifndef OBJECT2D_HH_
# define OBJECT2D_HH_
# include "Error.hpp"
# include "GameEngine.hh"
# define IMG_PATH "ressources/img/"
# define RESSOURCES_PATH "ressources/"
# define SHADERS_PATH "lib/gdl/shaders/"
class Object2D {
private:
std::string m_path;
gdl::BasicShader m_shader;
gdl::Texture m_texture;
g... |
5c0bcfdc1332cf1de71330db131623e46b769769 | a27048393df906de8c55a49b7550ce737d98f71d | /MapCreator.h | 890cfe7d66e85fd2ff99bfc4b784ae92f7317d5f | [] | no_license | Magda98/Sokoban | 6b9015bb35a848e35370fa85a30d98e0351e55b6 | 85238bab0c776bb77f4a9e5d7f4d5bfb749e39ba | refs/heads/master | 2020-04-08T20:07:54.890506 | 2019-01-04T12:49:37 | 2019-01-04T12:49:37 | 159,684,945 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,626 | h | MapCreator.h | #pragma once
#include <SFML/Graphics.hpp>
#include <cmath>
#include <fstream>
#include "Player.h"
#include "EndPoint.h"
#include "Box.h"
#include "TileMap.h"
/*!
* \brief klasa MapCreator
*
* Klasa odpowiadająca za tworzenie oraz edycję map
*/
class MapCreator : public Entity
{
private:
sf::Texture sokoban;/*!< Tekst... |
f7d43378f84e4b4b6ab3a16b1e8b0765e4dd48a2 | 133de6eaff352176c285d6062722c10e6e1e450b | /brush/app.cpp | ed62290d972f9e3025e091b4c26137128a2642f7 | [
"CC0-1.0"
] | permissive | retorillo/gdiplus-demos | 2bfae9d56264f16c3fdb5fe11b88703e8e857e8d | 25c1320e565755c64cbaac97b350c5837f393e6d | refs/heads/master | 2021-01-02T09:42:16.058923 | 2017-08-04T10:59:50 | 2017-08-04T10:59:50 | 99,283,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,395 | cpp | app.cpp | #include "app.h"
Gdiplus::Brush* SAMPLE::getBrush(Gdiplus::Rect& rt) {
if (!sizesensitive && cachedBrush.use_count())
return cachedBrush.get();
cachedBrush.reset(createBrush(rt));
return cachedBrush.get();
}
void SAMPLE::draw(Gdiplus::Graphics& g, Gdiplus::Rect& rt) {
Gdiplus::SolidBrush textForegroundBrus... |
dfc3dcde52758452a3ea66aae7c58cb122f82d6e | a3b203dffcafacfb1738c70a61cc9cb8ef988f1c | /test/2.cc | 90b72ba40f40e2de96465504a56df6f5955296be | [] | no_license | mpkuse/eigen_json_io | 65701d1339ed5224a701afd248c4a0bccb5eb402 | 458e782544c2c864ee721df36376d3875565f65d | refs/heads/master | 2023-07-31T19:41:44.403717 | 2021-09-09T22:27:43 | 2021-09-09T22:27:43 | 404,857,048 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 827 | cc | 2.cc | #include <iostream>
// nlohmann::json
#include <json.hpp>
// Eigen
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/Geometry>
// Eigen to JSON
#include <EigenJSONSerialization.h>
int main()
{
std::cout << "Eigen --> JSON\n";
Eigen::MatrixXd D = Eigen::MatrixXd::Random( 2, 5 );
std::cout <<... |
61affe2bb20e350753a28d3e9a07dfe2afff63f5 | 9901d64d94cc23cb3efa477bde224adf757ccb0b | /InvertedIndexDaemon_constants.h | bd89abbbe261c3737a911ebf7a1f7242a9ec7d79 | [] | no_license | zixuanwang/ImageDaemon | d0ba600f8438cff20fa60289a37d9b1253f05733 | ed602bba16aa56d2b4f98833f8084056a33a0680 | refs/heads/master | 2021-01-19T20:27:40.654541 | 2012-04-25T07:32:05 | 2012-04-25T07:32:05 | 3,294,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 486 | h | InvertedIndexDaemon_constants.h | /**
* Autogenerated by Thrift Compiler (0.8.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef InvertedIndexDaemon_CONSTANTS_H
#define InvertedIndexDaemon_CONSTANTS_H
#include "InvertedIndexDaemon_types.h"
namespace net { namespace walnutvision {
class InvertedIndex... |
0aea1979aa61442dd5531310d01d6bf280cc0604 | 04be0fbbd81323307ea6be3a9e0de1ed4b9b0e93 | /lib/Target/HSAIL/MCTargetDesc/RawVectorOstream.h | fc86f6000686f3f437358afdbc07a48186630dc6 | [
"NCSA"
] | permissive | HSAFoundation/HLC-HSAIL-Development-LLVM | d405713e13a2519a059f2fcb5011700a4dfecd85 | d56f1c7eab477ca429631f89321e233ee5dfc4d1 | refs/heads/hsail-review-v4 | 2020-12-22T18:31:54.814050 | 2016-08-20T17:54:56 | 2016-08-20T17:54:56 | 23,843,879 | 16 | 8 | null | 2016-07-21T03:56:41 | 2014-09-09T17:38:02 | C++ | UTF-8 | C++ | false | false | 1,711 | h | RawVectorOstream.h | //===-- RawVectorOstream.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
9008efae228bad3ae7291e43244ec217726e612a | 5c7629e4b901c1433a6d5fb6ad44271fa0d0e748 | /my_chat_client_kernel/services.h | ce5c6d209737c4eead7a46a890c132021d55ddd4 | [
"WTFPL"
] | permissive | ldm0/my_chat | bfbb2ad553d9637037ac2b1a25188f07a3612d9f | 4e20995aea4b8fa668b6b54785bd447bd1cf1a1e | refs/heads/master | 2021-07-18T07:25:01.603375 | 2019-05-31T08:16:04 | 2019-05-31T08:16:04 | 189,553,664 | 0 | 0 | WTFPL | 2020-07-07T05:44:11 | 2019-05-31T08:01:17 | C++ | UTF-8 | C++ | false | false | 309 | h | services.h | #pragma once
#ifndef _MY_CHAT_CLIENT_H_
#define _MY_CHAT_CLIENT_H_
#include<string>
// return 0 means no message, return 1 means get message successfully
int services_get_msg_recv(std::string& msg_recv);
int services_send_msg(const char *msg);
int services_init(void);
void services_close(void);
#endif |
52a0ffb5a4c870df3421e31c40191419d2adb7fc | 35bc9c40286431c55a835625219793e8d12e9e65 | /processing/timeline/yas_processing_timeline_types.h | 2df2b95e60e1555c20bca6ecad6fccf06e31ec66 | [
"MIT"
] | permissive | objective-audio/processing | 07bd9ff77932f37b199edc704935a90bac7bc3b9 | 2963433b633e474113103ff4cbfb4cf1798d4173 | refs/heads/master | 2023-06-08T17:48:50.505776 | 2023-06-04T09:16:17 | 2023-06-04T09:16:17 | 73,592,179 | 0 | 0 | MIT | 2023-06-04T09:16:18 | 2016-11-13T02:59:40 | Objective-C++ | UTF-8 | C++ | false | false | 752 | h | yas_processing_timeline_types.h | //
// yas_processing_timeline_types.h
//
#pragma once
#include <processing/yas_processing_common_types.h>
#include <processing/yas_processing_ptr.h>
#include <processing/yas_processing_track_types.h>
#include <map>
namespace yas::proc {
using timeline_track_map_t = std::map<track_index_t, track_ptr>;
enum class t... |
62040df6b0d135e6bb861770ebaa45c0ec17575d | 7c3a43162be797f6f4c8cfddb295af1fa781c31f | /Lab2_client/messagewindow.cpp | a894d34921742b6de744e03bb89681660e6370ba | [] | no_license | executed/LooperMessenger-dev | d205f5e0fff6d764aa25f970cd20e27d83eaad62 | b451622d299833413c4469973c313988ad716e77 | refs/heads/master | 2020-03-31T05:39:37.246378 | 2018-10-07T16:04:21 | 2018-10-07T16:04:21 | 151,954,414 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,587 | cpp | messagewindow.cpp | #include "messagewindow.h"
#include "ui_messagewindow.h"
MessageWindow::MessageWindow(QWidget *parent) :
QDialog(parent),
frame(new Ui::MessageWindow)
{
frame->setupUi(this);
}
MessageWindow::~MessageWindow()
{
delete frame;
}
void MessageWindow::setAuthenticationInstance(Authentication *auth){
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.