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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6416a433c8cab5e58a96482f973b19c9339fb11 | b8f72bd3b4ad1f616ad74d4c32c55b3fd2888f44 | /pbinfo/3101.cpp | 224fed02e6fea6b27d7854c0cfa5bf44535c5638 | [] | no_license | OloieriAlexandru/Competitive-Programming-Training | ec0692e2860e83ca934b0ec0912722360aa8c43c | eaaa5bbc766e32c61a6eab3da38a68abb001f509 | refs/heads/master | 2020-05-29T17:50:53.841346 | 2020-04-25T15:53:08 | 2020-04-25T15:53:08 | 189,284,832 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | cpp | 3101.cpp | #include <bits/stdc++.h>
#define pii pair<int,int>
#define mp make_pair
#define lld long long
#define ld long double
#define pb push_back
#define nmax
using namespace std;
int main()
{
freopen("xorcrypt.in","r",stdin);
freopen("xorcrypt.out","w",stdout);
string s1, s2;
std::getline(cin, s1);
std::ge... |
ea5bf836653cb059beaa4e7461e7767696cf5329 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/Basic-Dynamic-Mesh-Tutorial-OpenFoam/TUT16rotating/3.46/phi | a590b17e23186355a8adb6b9952c10c476dd39a0 | [] | 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 | 87,857 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
f56091adb940f3e05565c8ed0b9a89ef3346d356 | 02c93717bdb42b24cf1f161b0099b43e2ca0c454 | /include/pipeline/brdf_lut_pass.hpp | c90c118265ee59d718d4115d8489d66b523a77e7 | [] | no_license | AlexandreGIRARD/engine-2.0 | 4a917084fa0723a6e2013fed0f2e72200f132f16 | 9c15bb883fa05eb390c0ebbec4bdf0fcbd33f9aa | refs/heads/main | 2023-05-01T19:42:30.841156 | 2021-05-19T20:00:04 | 2021-05-19T20:00:04 | 350,868,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | hpp | brdf_lut_pass.hpp | #pragma once
#include "pipeline/screen_pass.hpp"
namespace pipeline
{
class BRDF_LUT_Pass : public Screen_Pass
{
public:
BRDF_LUT_Pass(unsigned int width, unsigned int height);
~BRDF_LUT_Pass();
void render(Camera* camera, Scene* scene) override;
const std::vector<shared_a... |
02d467be4bf3cc33422a3d326aa4ddfbe2c2ab93 | 8a342cf37977543761a901142a65822013da7c48 | /projeto1/src/actions/Loop.cpp | a6fc7773e96441441f95f0aefaacdb8621b0981a | [] | no_license | hexengraf/lambari | d5c55a6fc19bc172de77b66eaa5d4b5a2b57ce01 | e13e707cba134ebb2e6af287527a122b0dbdda71 | refs/heads/master | 2021-06-10T17:28:13.131822 | 2016-12-06T01:19:52 | 2016-12-06T01:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | cpp | Loop.cpp | #include "Action.hpp"
Loop::Loop(Action* init, Action* bool_expr, Action* update, Action* code)
: init(init), update(update), code(code) {
fail = fail || (init != nullptr && init->error());
fail = fail || (bool_expr != nullptr && bool_expr->error());
fail = fail || (update != nullptr && update->error());
auto... |
c15a086a90c5f596fd87e710129c326babe0183d | b00c54389a95d81a22e361fa9f8bdf5a2edc93e3 | /vendor/intel/apps/ituxd/jni/thermalJNI.cpp | 5d00bcea3159e6c92e1e79733caef0ea73b170ce | [] | no_license | mirek190/x86-android-5.0 | 9d1756fa7ff2f423887aa22694bd737eb634ef23 | eb1029956682072bb7404192a80214189f0dc73b | refs/heads/master | 2020-05-27T01:09:51.830208 | 2015-10-07T22:47:36 | 2015-10-07T22:47:36 | 41,942,802 | 15 | 20 | null | 2020-03-09T00:21:03 | 2015-09-05T00:11:19 | null | UTF-8 | C++ | false | false | 8,499 | cpp | thermalJNI.cpp | /*
* Copyright (C) 2014 Intel Corporation
*
* 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... |
d41bd349783e409f140e819120915e19c67eb9c7 | 46264b5a4106daeddcbafcd40e4f82dcbf71cef8 | /G06_AA2/Scene.cpp | 3f72b32f9422ea41dc6147c6b605a01bad2ca75f | [] | no_license | Taspaya/P3_TecRepo | 557d4d8f5803938ca071ff26508d4af00eef5a9c | 82c979725733698ad44aa28a1d4183de7a9bb4ee | refs/heads/master | 2021-08-31T08:54:05.104951 | 2017-12-20T20:41:21 | 2017-12-20T20:41:21 | 114,694,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | Scene.cpp | #pragma once
#include "Scene.h"
Scene::Scene()
{
}
Scene::~Scene()
{
}
//Definicion de los metodos virtual
// Metodos que van a heredar los hijos
void Scene::HandleEvents() {
}
void Scene::Update() {
}
void Scene::Draw() {
}
typeScene Scene::GetTypeScene() {
return cu... |
71a583ca8b1504916ebc78e4c866e8ef9ab654b1 | 77e63a17fa992594256e8549c39838ec671d0b13 | /includes/CGBeads.hpp | 3df7c38e60fd76a01718d358abfa9ab92785dc7e | [
"MIT"
] | permissive | ToruNiina/PDBtools | 44ea34a879637a03f84202d04a3300a31d815ad5 | 7dc708429421e2cbdda8997c69e4e39d71e4acda | refs/heads/master | 2021-01-10T15:16:49.660065 | 2015-11-10T10:33:01 | 2015-11-10T10:33:01 | 44,656,262 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,603 | hpp | CGBeads.hpp | #ifndef ARABICA_CG_BEAD
#define ARABICA_CG_BEAD
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <string>
#include <memory>
#include "PDBdef.hpp"
namespace arabica
{
class CGBead
{
public:
CGBead(){}
~CGBead(){}
void get_line(std::string& line);... |
caf4a854f32342bbb5d3e3fca3d9c163c01bda27 | 2bc9d20361f2fbba5e2a3cab16a1a951d4b48105 | /addfieldsdialog.cpp | 740682526b6daaa942b33170e87e5a0da771ab2a | [] | no_license | jcespinoza/JCs_Access | 7eefb5cf6e5e60e25bd2d86ebdf1731975ca4a91 | 98d6d1529567ef003630b4c7077021ed1edd60a8 | refs/heads/master | 2021-01-15T23:07:41.924809 | 2014-06-26T19:36:03 | 2014-06-26T19:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | addfieldsdialog.cpp | #include "addfieldsdialog.h"
#include "ui_addfieldsdialog.h"
AddFieldsDialog::AddFieldsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddFieldsDialog)
{
ui->setupUi(this);
}
AddFieldsDialog::~AddFieldsDialog()
{
delete ui;
}
void AddFieldsDialog::on_buttonBox_accepted()
{
type = ui->cboFie... |
a61272ca853d606b9b0ae8763ac5791776d22183 | 4ff22271416adff55bffd574bf84135c6710b8b0 | /Core/OI2/packets.h | c380dc5f57c2672468d8fa81a47536907effd57e | [] | no_license | roboticsteame/LAB2 | 7d0488d0bc6c5f021a63825c1ea4929c198b80ca | d0d3d8e1d1e2550fe827fa7358f5511658fa6398 | refs/heads/master | 2021-01-09T20:39:22.496214 | 2016-06-23T14:53:55 | 2016-06-23T14:53:55 | 61,122,589 | 0 | 1 | null | 2016-06-23T14:53:56 | 2016-06-14T12:52:35 | Python | UTF-8 | C++ | false | false | 7,661 | h | packets.h | #ifndef PACKETS
#define PACKETS
#include "error.h"
#include <stdint.h>
#include <vector>
#include <cstring>
namespace OPCODE {
const byte start = 128;
const byte reset = 7;
const byte stop = 173;
const byte baud = 129;
const byte safe = 131;
const byte fu... |
7d04ed19505387bd2306061fc8e717a82f8a410e | cc410bba79b3d4ac144d8f81d18c2a1965d24a06 | /Art Institute of Vancouver/Semester_5/VGP220 Algorithms and Data Patterns I/assignments/final/smartPointer/smartPointer/cSmartPointer.h | 9730fde59ac84c175101cd304be8f33071610908 | [] | no_license | Khillasaurus/School | 6d1ffc96e4c1d9a28f99cc423ce5e0bdea370380 | d3c8cefef74ff8786bb172cd4c8925d9bb94af5b | refs/heads/master | 2020-03-30T05:53:48.030096 | 2015-08-07T19:47:03 | 2015-08-07T19:47:03 | 38,567,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | h | cSmartPointer.h | //====================================================================================================
//File: cSmartPointer.h
//Created: 2012/09/10
//Copyright: Daniel Schenker
//====================================================================================================
#ifndef CSMARTPOINTER_H
#define CSM... |
769438411f110506a87ac5e877438ca60c5c21ef | 22ae5395f349b2a6730efdaab25f7a56e4b76f92 | /My_CPP_Examples/template_struct/main.cpp | d727fd526a89f2877a2fee09ac3f07638c6bce4b | [] | no_license | Andrey606/Cpp_lessons | 479b834cd0d7398991830f1611037c058be905ff | 2057157d948e4d9861538dd8e35aadfaf952dcf6 | refs/heads/master | 2023-07-15T22:30:07.354413 | 2021-08-29T19:10:15 | 2021-08-29T19:10:15 | 266,346,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | main.cpp | #include <iostream>
using namespace std;
template <class T>
struct A
{
T e;
T e1;
};
int main()
{
A<int> a = {2, 10};
A<double> b = {2.5, 6.8};
cout << "a<int>: " << a.e << endl;
cout << "a<double>: " << b.e << endl;
}
|
4c695e9d9ad1a69729ed555b543bb0be0631f922 | 471f4ad7c5613cfcb2e007f3bda7adc6598a1d10 | /Sources/7 - Object Lights, Path Tracing/Light.cpp | 6f3443b7d57600827363471cfa0628778e93c740 | [] | no_license | emrebarisc/AdvancedRayTracing | 06d9528606c8df67ab0ff93195575aa8d07eefd3 | 8a4b8ecfe94720319bd4f995d0dadf0743df1966 | refs/heads/master | 2021-04-27T09:58:13.931219 | 2018-06-20T16:05:39 | 2018-06-20T16:05:39 | 122,525,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | cpp | Light.cpp | /*
* Advanced ray-tracer algorithm
* Emre Baris Coskun
* 2018
*/
#include "Light.h"
#include "ObjectBase.h"
#include "Scene.h"
#include "LightMesh.h"
#include "LightSphere.h"
bool Light::ShadowCheck(const Vector3& lightPosition, const Vector3& positionAt) const
{
float distance = (lightPosition - positionAt... |
26cd9b21146e2abfa0afcab287cba3c3e73023a9 | 14d00d85597673e65ca6724e1ea36454bdb09db9 | /q_DBUS/service/service/app_run_qthread.h | 62473afa037784d6014bfab4387f154f2468d01a | [] | no_license | HuaYaDong1/Sandbox-start-runservice | 2bb2aadf4759d43e9e61d08237c4c8b2d6d4dbb8 | 1a54370d75d798e09ca021dbb555469809b95f42 | refs/heads/master | 2022-11-20T08:49:17.163559 | 2020-07-16T11:39:21 | 2020-07-16T11:39:21 | 274,640,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | h | app_run_qthread.h | #include "app_run_qthread.h"
#include <QDebug>
App_run_Qthread::App_run_Qthread(QString app):
appname(app)
{
workCount = 0;
}
void App_run_Qthread::run()
{
std::string str = appname.toStdString();
const char* ch = str.c_str();
system(ch);
}
|
8f3b8cbb9452e46e32e0a025093581a97fbaeff7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658068650033152_0/C++/Hachimori/C.cc | 45fce782f82c5ce53f77356fcece950838598c05 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,656 | cc | C.cc | #include<iostream>
using namespace std;
const int BUF = 25;
int row, col, K;
void read() {
cin >> row >> col >> K;
}
void dfs(int r, int c, bool visited[BUF][BUF], bool toPut[BUF][BUF]) {
static int dr[] = {-1, 0, 1, 0};
static int dc[] = { 0, 1, 0, -1};
visited[r][c] = true;
for (int i = 0; ... |
595270a36acbfa231f1fc2f8ec9f17220d1d0d7e | 155b023b1f9b286064a20ede6320e3bd8fb77011 | /0611.Valid Triangle Number/binarySearch.cpp | 331b85c59acd6598e49aea27fc085eebfa99e53c | [] | no_license | zztttt/LeetCode | e34b01dafb11381beeaf1ffe607c310dd5134506 | 7f803bba7ae6e569833adca6294709fa1c494a93 | refs/heads/master | 2022-08-10T08:00:46.532738 | 2022-08-05T15:25:00 | 2022-08-05T15:25:00 | 165,406,546 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | binarySearch.cpp | class Solution {
public:
int triangleNumber(vector<int>& v) {
sort(v.begin(), v.end());
int len = v.size(), ret = 0;
for(int i = 0; i < len - 2; ++i){
int k = i + 2;
for(int j = i + 1; j < len - 1 && v[i] != 0; ++j){
int index = searchIndex(v, k, len -... |
c522ce5a57b7aca24e462069935748c59b6d164d | c74e77aed37c97ad459a876720e4e2848bb75d60 | /700-799/789/(31679895)[OK]C[ b'Functions again' ].cpp | 3369d1e24e49c53171916872022d7d1bd986a337 | [] | no_license | yashar-sb-sb/my-codeforces-submissions | aebecf4e906a955f066db43cb97b478d218a720e | a044fccb2e2b2411a4fbd40c3788df2487c5e747 | refs/heads/master | 2021-01-21T21:06:06.327357 | 2017-11-14T21:20:28 | 2017-11-14T21:28:39 | 98,517,002 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | (31679895)[OK]C[ b'Functions again' ].cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long uLL;
typedef long double ldb;
typedef pair<int,int> pii;
int A[100000];
LL S[100000];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);
int n;
cin>>n;
for(int i = 0; i < n; ++i)
cin>>A[i];
f... |
183d7b9e5deae845e916f7e4509f0cbdc17ce234 | 019c418704b6ff9b32fae47b0df3b5f5ae1e9508 | /Training/P1/A/A.cpp | f5e6391185dcfa892ff95e16262247d8cd90fe95 | [] | no_license | amsimoes/lpa2017 | e36e09e82b84f4e9784b06e49480c13295a129eb | 4a6e20bcdd2c0e9f3bb2c57ea022e0cc1906e3ef | refs/heads/master | 2021-03-30T17:24:27.529774 | 2017-06-21T23:08:19 | 2017-06-21T23:08:19 | 81,369,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,043 | cpp | A.cpp | #include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#include <string.h>
#include <sstream>
void init_matrix(int** &matrix, int rows) {
matrix = (int**) malloc(sizeof(int*) * rows);
for(int i=0; i<=rows; i++) {
matrix[i] = (int *) malloc(sizeof(int) * i);
}
}
void input(int... |
0a589c485e4307913baec9040f6c4fb0f04b8893 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_1/C++/pranavPrakash/main.cpp | 973e3fac5ab3e851745d0b08a1ea31e404fb881d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,094 | cpp | main.cpp | //
// main.cpp
// Codejam A
//
// Created by Pranav Prakash on 4/11/15.
// Copyright (c) 2015 Pranav Prakash. All rights reserved.
//
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, const char * argv[])
{
ifstream fin("input.txt");
ofstream fout("output.txt");
int... |
f3abbf55e3b8a2b83d16f53f2438dfa08c8d8b47 | 1c024dfbca35f4c829d4b47bdfe900d1b1a2303b | /shell/common/language_util_linux.cc | 58754f80ef82533490b5f6c14a448b37421421d3 | [
"MIT"
] | permissive | electron/electron | 1ba6e31cf40f876044bff644ec49f8ec4923ca6a | 0b0707145b157343c42266d2586ed9413a1d54f5 | refs/heads/main | 2023-09-01T04:28:11.016383 | 2023-08-31T14:36:43 | 2023-08-31T14:36:43 | 9,384,267 | 99,768 | 18,388 | MIT | 2023-09-14T19:50:49 | 2013-04-12T01:47:36 | C++ | UTF-8 | C++ | false | false | 1,034 | cc | language_util_linux.cc | // Copyright (c) 2020 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/language_util.h"
#include <glib.h>
#include "base/check.h"
#include "base/i18n/rtl.h"
namespace electron {
std::vector<std::string> GetPreferredLanguages() {... |
54865ca76bfb957f22f8aae88c0c95618f55e8e9 | 5918a09f1d8d36286662f55a05f1f239fc4c6040 | /sparta/sparta/statistics/Histogram.hpp | 3d07c8df6abe251d060d2c5426934d1b0dd43194 | [
"Apache-2.0"
] | permissive | sparcians/map | ad10249cc2f33ae660ca2f54fc710c379f3977bd | c2d5db768967ba604c4747ec5e172ff78de95e47 | refs/heads/master | 2023-09-01T17:56:53.978492 | 2023-08-28T21:40:12 | 2023-08-28T21:40:12 | 227,639,638 | 107 | 40 | Apache-2.0 | 2023-09-06T01:17:39 | 2019-12-12T15:37:36 | C++ | UTF-8 | C++ | false | false | 20,893 | hpp | Histogram.hpp | // <Histogram.h> -*- C++ -*-
/**
* \file Histogram.hpp
* \brief Histogram implementation using sparta Counters
*/
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include "sparta/utils/MathUtils.hpp"
#include "sparta/simulation/TreeNode.hpp"
#include "... |
4122f8770d4bfbf6027e1689c9c1b7538a2ad541 | 79d7905a4280768af0680127899467064701bc79 | /NotifierArduino/NotifierArduino.ino | f0d2c108365f1155b1e02ba731abe0bb5bf9e251 | [] | no_license | brunodles/Notifier | 68ce31cdbd9258acdb879d1f22d025beaa63dc9a | d9dff09ad8b4c05bddc6ca339a441eae68beb9e6 | refs/heads/master | 2020-05-29T12:26:58.298192 | 2016-03-23T16:39:24 | 2016-03-23T16:39:24 | 36,777,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,038 | ino | NotifierArduino.ino | #include <SoftwareSerial.h>
#include <stdlib.h>
#define bluetooth_rx 3
#define bluetooth_tx 2
#define onboardLed 13
#define redLed 12
#define greenLed 11
#define blueLed 10
#define lightSensor 0
#define mainLoopDelay 5
#define commandLedDelay 5000
#define lightDelay 250
#define lightDivider 3
int redA;
int greenA... |
b338e70d76089216247bf7276a128b0e9fcdc255 | 29af718d33105bceddd488326e53dab24e1014ef | /Experimentation/Investigations/Cryptography/AdvancedEncryptionStandard/plans/KeyDiscovery/008/1_1_8/general.hpp | 68570a3d23c4dfed2bd23e8cf973b20d655a3be4 | [] | no_license | OKullmann/oklibrary | d0f422847f134705c0cd1eebf295434fe5ffe7ed | c578d0460c507f23b97329549a874aa0c0b0541b | refs/heads/master | 2023-09-04T02:38:14.642785 | 2023-09-01T11:38:31 | 2023-09-01T11:38:31 | 38,629 | 21 | 64 | null | 2020-10-30T17:13:04 | 2008-07-30T18:20:06 | C++ | UTF-8 | C++ | false | false | 59,344 | hpp | general.hpp | // Matthew Gwynne, 18.7.2011 (Swansea)
/* Copyright 2011 Oliver Kullmann
This file is part of the OKlibrary. OKlibrary 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 and included in this library; either version 3 ... |
e0c70cb212ba871bcbbf4dd528ea68ba34b2baea | 80c10e1aab0738d4c30a832538558ea6d294c3ff | /PhysX.Net/PhysX.Net/Source/Cloth Mesh.h | e9539bfebc61345a9f824b8e5cac31e4b91ca26d | [
"MIT"
] | permissive | corefan/PhysX.Net | 4f2334520043aa7c9cfd96c054cc2ee30bf3974e | f1144841e397088301bacbd4b8e24f5066180f7c | refs/heads/master | 2020-12-30T13:40:16.784563 | 2017-01-11T21:08:59 | 2017-01-11T21:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | h | Cloth Mesh.h | #pragma once
#include "IDisposable.h"
using namespace System;
class NxClothMesh;
namespace StillDesign
{
namespace PhysX
{
ref class Core;
interface class IStreamReader;
ref class ClothMeshDescription;
public ref class ClothMesh : StillDesign::PhysX::IDisposable
{
public:
virt... |
af0e3b532ae56bd2c6a561b2e1a96b6c68b0d34d | fd580ce0f00b3a7723e4ecc2ffb6ad6a609ae93f | /hostsvc/RPCServer.hpp | 5b604681fa2105c2132af91d72e4e351650231a9 | [
"BSD-2-Clause"
] | permissive | lishunan246/b | ff9304dcf9c23c44b945fd870962196b93f40d46 | 82023dee34b023dfbc3dd2f0381fdbd7e266604e | refs/heads/master | 2021-03-27T11:49:27.208169 | 2016-06-05T16:30:42 | 2016-06-05T16:30:42 | 60,469,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,413 | hpp | RPCServer.hpp | #include "HostSvcCommon.hpp"
#include "Client.hpp"
#include "ClientManager.hpp"
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
namespace GkcHostSvc
{
using namespace websocketpp;
using ClientMap = map<connection_hdl, Client::pClient, owner_less<connection_hdl>>;
class RPCServer
{
... |
62ee1604b571962a91e419319632688ef897d292 | 2939762a43834b2aeab23671a18a6e65e51e2d44 | /scene/Player.h | 68d65b3caeecbfd192fc4789f5b99b267be58877 | [] | no_license | dimajolkin/snakeConsole | 8d40767fe930436f2161c1b0d1529d6ef579dcf7 | 68f5d5e3fd69f8568f13b01e182c7e3fbaceacdb | refs/heads/master | 2020-04-06T04:11:38.172523 | 2017-04-01T20:51:34 | 2017-04-01T20:51:34 | 59,434,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | h | Player.h | //
// Created by dima on 22.05.16.
//
#ifndef SNAKE_PLAYER_H
#define SNAKE_PLAYER_H
#include "Sector.h"
class Player {
protected:
int level = 0;
bool life = true;
Sector *start;
public:
Player() {
}
Player(int x, int y, int color) {
start = Sector::create(x, y, color);
}
... |
6a1139112f9236da9190eec66c7fd3559d520306 | c12ad4cde1d176cdc9c5b5c74abd2c129705e5c1 | /Basic/03. naiveMultiplication.cpp | be74de618379031062d575e8cb162b7e9ea0612c | [] | no_license | SadatJubayer/Algorithms | 7d68ddd5f1cf0516dce853e2836572fd933236c4 | 8ddc193b64226f8b40bd75e709dbc9068cf15ed3 | refs/heads/master | 2020-03-18T05:14:15.024605 | 2018-12-26T17:18:01 | 2018-12-26T17:18:01 | 134,330,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | 03. naiveMultiplication.cpp | #include <iostream>
using namespace std;
int naiveMultiplication(int x, int y)
{
int mul=0;
while (y!=0)
{
mul = mul+x;
y --;
}
return mul;
}
int main()
{
int a, b;
cout << "Enter First number : ";
cin >> a;
cout << "\nEnter Second number : ";
cin >> b;
cout<... |
a1df6643331983880c9ed2b5351793534185c445 | 1ddb37f8e6d2be48d893d9285f426c1e90c33566 | /rgbdscan/include/include.old/fileSource.h | 0cd2afe9d3cb5bd144605964d6e9961ae9285db1 | [
"Apache-2.0"
] | permissive | ttykkala/recon | bd0ce04c78c637648cdceed594661b5059ffaf62 | fe73b0f1023ff177e6870ed1426604e380e078b7 | refs/heads/master | 2021-01-13T09:03:55.094792 | 2017-06-24T13:46:41 | 2017-06-24T13:46:41 | 70,162,184 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,419 | h | fileSource.h | /*
stereo-gen
Copyright (c) 2014, Tommi Tykkälä, All rights reserved.
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later versi... |
e0a095a9f75dbf874fdc8db10ea697799c975c1b | 490f75c317277b6293fbbb2c4a3e23c030cf4431 | /IMovingGameObject.cpp | b3cdef8f6f06875d69f0bf7e7026e41de37b1cea | [] | no_license | sailennair/SpaceRider | 55c08a7498c4aa96f19b00cc722ace444b43b47d | ae3a8c5b5d1e2cdf1f0e675fc1371559a376276f | refs/heads/master | 2021-07-13T09:30:03.296151 | 2017-10-04T12:35:06 | 2017-10-04T12:35:06 | 105,766,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33 | cpp | IMovingGameObject.cpp | #include "IMovingGameObject.h"
|
83b13eab5f0eacdc0405f5aacfa608d1ef413aa2 | 70a030ba89d4d95f18b217e7a0b5969955102dda | /src/misc/pv/bitSet.h | 4b59bb6e3d8b8cc19e3bb1c7346e19c5bffec938 | [
"MIT"
] | permissive | epics-base/pvDataCPP | ffac43a94f12d3caa1cae13bf98e805301cebd2e | eac2a8e70f567412a4c51276d2a5826382b9b65e | refs/heads/master | 2023-08-25T04:12:22.806787 | 2023-07-17T22:00:05 | 2023-08-07T04:30:32 | 29,925,681 | 10 | 24 | NOASSERTION | 2023-08-07T04:30:34 | 2015-01-27T17:30:09 | C++ | UTF-8 | C++ | false | false | 10,649 | h | bitSet.h | /* bitSet.h */
/*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
/**
* @author mse
*/
#ifndef BITSET_H
#define BITSET_H
#if __cplusplus>=201103L
# include <initializer_list>
#endif
#include <vector>
#include <pv/pvType.h... |
00fd2a483e5cb372f259ec487d8ee3a406bb3835 | c0f9a5bb1439b225172a2823550cd80c193fca83 | /crawler.cxx | d6b6fee07ca62548e5bf412cedaf2ff792dabc52 | [] | no_license | flamingoen/fagprojekt | 59def102dbb0f1b215e6dbd48e7d2ef83bbe8340 | 63d75fe425e4dcad65165fe8441d78e2974d8e9b | refs/heads/master | 2016-09-07T18:11:20.655293 | 2015-07-07T06:33:32 | 2015-07-07T06:33:32 | 38,668,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,298 | cxx | crawler.cxx | /*
* cCrawler.cxx
*
* Created on: 08/04/2015
* Authors: Martin Obel Thomsen, Daniel Blyme Gruntwig, Andreas Rømer Hjorth
*
*/
#include <crawler.h>
QList<QStringList> getSeries(QString dirPath){ // s134862
return sortSets(dirCrawler(dirPath));
}
// List the files in "dir_name".
QStringList dirCrawle... |
d300156d1368670f056b752308645a2079dfba36 | 5ddf2ab503bcc40182b03019d6b3d527728cb18a | /src/supervisor/src/supervisor_node.cpp | 08d49163d727d47293b6880c8a47af574b7d909f | [
"MIT"
] | permissive | apo360/catkin_ventsup_ws | 3ae007a8ced078e4b9caf8cc47b5b9a0dd9c79c7 | de1419217252865c25d8292a6f0211e16e755607 | refs/heads/master | 2023-01-11T12:15:01.124327 | 2020-11-09T12:13:57 | 2020-11-09T12:13:57 | 261,281,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,095 | cpp | supervisor_node.cpp | #include "ros/ros.h"
#include "std_msgs/String.h"
#include "supervisor/imgData.h"
#include "supervisor/imgDataArray.h"
void GPSCall(const std_msgs::String::ConstPtr& msg)
{
ROS_INFO("GPS: [%s]", msg->data.c_str());
}
void PlanoCall(const std_msgs::String::ConstPtr& plan)
{
ROS_INFO("Plano: [%s]", plan->data.c_str... |
7d914e73e5d2d0277cb571811e75d0e8e54325b3 | 87b416ca6c742d413ff3e6bc156b611fabecfa72 | /cmdserver/CmdDispatcher.cpp | b883eeb9ebec06b5bf21407547240d8158bfc665 | [] | no_license | killwing/mytests | 895df7b5f4dacf6f8c394111b5048805697e275e | 36592fe0a3c33f0ff6eac0ad0617c4f907233861 | refs/heads/master | 2016-09-06T18:00:20.668274 | 2013-12-11T09:03:55 | 2013-12-11T09:03:55 | 3,735,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | CmdDispatcher.cpp | #include "CmdDispatcher.h"
#include "CmdChannel.h"
void
CmdDispatcher::dispatch(char type, const std::string& cmd) {
CmdChannels::iterator it = channels_.find(type);
if (it == channels_.end()) { // new type
boost::shared_ptr<CmdChannel> p(new CmdChannel(lock_, cond_));
channels_.insert(CmdChann... |
cb33f6f85e91f66b2d388d98996811a5ae9c49ed | fbc36128020c1571b2a62aa18a23ded2e6910923 | /graph/graph.cpp | c10da229474a7dfdbe418480d4b886d5b49e6062 | [] | no_license | kirthivaasan/algorithms_class | 1e0bfd54b692066e01fbd8469f0e71940ab8297b | de809ff8d58a4b6670f436272ff573f5a81b4e3f | refs/heads/master | 2021-01-12T04:54:12.946080 | 2017-01-02T03:47:20 | 2017-01-02T03:47:20 | 77,809,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,822 | cpp | graph.cpp | #include "graph.h"
#include <iostream>
namespace kirthi
{
graph::graph(size_t t_num_nodes) : graph_size(0) {
g.resize(t_num_nodes);
}
graph::~graph() {
}
bool graph::inBounds(size_t node) {
return node >= 0 && node < g.size(); // node < num_nodes
}
void graph::addEdge(size_t u, size_t v) {
if (inB... |
5f6470d6bb07293825418a3a040101ac340102be | c87caa3e5daa2000a101061751304ef2c5cc10f2 | /codes_KRR_randbin/include/KernelMethods/BlockDiag.hpp | ed30a05f7c1fd45d6a8b9f4c0290c3627440b6c7 | [
"BSD-3-Clause"
] | permissive | rnaimehaom/RandomBinning | 8a8c376dc077aabeb5c8080ed382ed2b29f23b74 | ff50c9cb95183c69e51c9a44af37258a1045eda4 | refs/heads/master | 2022-05-10T13:06:35.858714 | 2018-09-14T03:18:03 | 2018-09-14T03:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,017 | hpp | BlockDiag.hpp | // The BlockDiag class implements the kernel ridge regression by using
// block-diagonal approximation.
//
// y0 = K0 * inv(K + lambda) * (y-ymean) + ymean.
//
// We let c = inv(K + lambda) * (y-ymean); then y0 = K0*c + ymean.
#ifndef _BlockDiag_
#define _BlockDiag_
#include "../Matrices/BMatrix.hpp"
template<clas... |
748de8262dcd032d2ba5d10299d813e79b73ac53 | e789ee01dff54a007527de3ed73065fbb38f2fe2 | /clickHeart.cpp | 5900592b9ca6fc8ce2c832d6f308af7db945c0cb | [] | no_license | wallacewolv/ClickHeart | 4de71b683593d7b0437c2616770a073077ba7a0e | 3e81f5dc5f6509e506e6086fd02b5b80618d4956 | refs/heads/main | 2023-02-11T05:31:38.057180 | 2021-01-07T23:23:45 | 2021-01-07T23:23:45 | 327,747,913 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 17,899 | cpp | clickHeart.cpp | #include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include <fstream>
#include <locale.h>
#include <vector>
#include <time.h>
using namespace std;
// Chamada dos cabeçalhos header´s
#include "loginAtendente.h"
#include "loginAdministrador.h"
#include "loginRecursosHumanos.h"
#include "areaDoPa... |
0d568f49fbb3eac16456c199b77a42af05a5550c | 8ae158f32a6b3c4340f74cbb3069c8d5312e4c51 | /lexer/LexerStateIdent.cpp | 87b2630861bc2dfd43e897f466f0806bc116993d | [] | no_license | qljsky/XtremeScript-Learning | abd0230057a95f6e7254537ce061d4e8362d9f34 | a77f292fdac0965ade3ca4733f559121ff4e9282 | refs/heads/master | 2021-12-13T18:07:26.388948 | 2017-03-29T11:28:24 | 2017-03-29T11:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | LexerStateIdent.cpp | #include "stdafx.h"
#include "LexerStateIdent.h"
#include "Lexer.h"
LexerStateIdent* LexerStateIdent::_instance = nullptr;
LexerStateIdent::LexerStateIdent()
{
}
LexerStateIdent::~LexerStateIdent()
{
}
void LexerStateIdent::HandleChar(Lexer * _lexer)
{
if (_lexer->IsCurrCharIdent())
{
}
else if (_lexer->IsCur... |
7f573a9290d277b03ae5980b2117ced05dfc9dd4 | cec2311afeec36a9f48d9322fb5fde50ebb80042 | /ASCIIArtImg.cpp | cadebdcd1a7649653b1fb532bf87fed60ac8017e | [] | no_license | EmilJohn24/ASCIIArtImg | ace0e262d044e214a2224c29e7f3fb23707d5c85 | fa8d1d30330f7d672df2c6e90afc761d51df70f2 | refs/heads/master | 2020-07-15T06:52:59.623198 | 2019-09-04T05:56:36 | 2019-09-04T05:56:36 | 205,505,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | ASCIIArtImg.cpp | #include "CharSpitter.h"
#include <string>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <memory>
int main(int argc, char **argv){
//consider transferring everything to a class
std::unique_ptr<CharSpitter> spitter;
std::string guide = "guide.txt";
std::string img;
int compressio... |
9141df2f7219f1ab9585c5d13028c6472c640135 | 03c4096d19255a6e72b40949ff2e77ba79fa74f7 | /ParticleID/RICHAnalysis/Poisson.cc | fffcd5a5b72817fce71b58fa674d9d1e884071db | [] | no_license | sPHENIX-Collaboration/analysis | c0687cd1b4ea9ec426e71303d2a8b4c34d19c11c | dc932e3355d09898bba525ac1e6292ade5c48d02 | refs/heads/master | 2023-08-31T22:22:52.275236 | 2023-08-29T22:53:04 | 2023-08-29T22:53:04 | 37,741,543 | 4 | 58 | null | 2023-09-13T19:37:21 | 2015-06-19T19:25:00 | C | UTF-8 | C++ | false | false | 593 | cc | Poisson.cc | // Some documentation //
#include "Poisson.h"
using namespace std;
long double
Poisson::poisson_prob( double mean, int value ){
double prob = exp1( mean, value ) * exp2(mean) / fact(value);
return prob;
}
long double
Poisson::exp1( double mean, int value ){
long double output = pow( mean, value );
ret... |
46f273da1829689e01fdf85866363fc9d3eaadfa | 91ff1a932edcfd1d2c67c6a569daa30c2bb3c0d7 | /inc/devices/led.h | 101d0fda1e49f03d70c604495d65e5bace59c290 | [] | no_license | spiralray/stm32f4discovery_dualshock3 | 5f08cdbd055795e951ddf3e55042629286a5dd2b | 30fe7f5474afa14e956395e2f50e6a7c5ae35fc6 | refs/heads/master | 2020-04-05T23:06:43.276315 | 2015-08-30T17:13:49 | 2015-08-30T17:13:49 | 41,635,785 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | led.h | /*
* led.h
*
* Created on: 2014/10/05
* Author: spiralray
*/
#pragma once
#include "config/stm32plus.h"
#include "config/gpio.h"
namespace stm32plus{
class Led {
private:
GpioPinRef pin;
bool state;
public:
Led(GpioPinRef _pin){
pin = _pin;
state = false;
Off();
}
... |
cbd95ab282fdec4a973f4a9259df3f74aaf69568 | 903d6af178b68628ed4bfd9501b85f07beeb5db9 | /code/proxyMain.cpp | 1e6390395787679257cb0dfee4bea3a0cf469f8f | [] | no_license | cccyaa/568_hw2_proxy | bf8adb0c0d230ec33f442fff3c3655f24bf11cc0 | b96133bdb5052e1d19eb95c088b79b3b23bda122 | refs/heads/master | 2021-01-26T07:59:40.515546 | 2020-02-29T04:48:58 | 2020-02-29T04:48:58 | 243,375,588 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,066 | cpp | proxyMain.cpp | #include <iostream>
#include <cstring>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <utility>
#include <unordered_map>
#include <thread>
#include <mutex>
#include "proxyServerGET.cpp"
#include "proxyServerCONNECT.cpp"
#include "parseB... |
fadc88708d48baf47adc254d66059dfa66904e9c | e4c3ddaad088b6f221ec2f0f1e3932b3744ebc90 | /Cities/Source.cpp | 76c69e29de728c97635ba25cd934065cb18d834e | [] | no_license | stolidpig/repos | 728395911073f56cac503e587994ad0f188566d6 | b7f5323e5be482e72c4dcbbfa6e759ba039cd29a | refs/heads/master | 2023-05-12T06:30:03.359920 | 2021-06-03T09:08:23 | 2021-06-03T09:08:23 | 350,403,740 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 728 | cpp | Source.cpp | #include "../../std_lib_facilities.h"
int main() {
vector<double> vDistances = {};
double dSmallestDistance = DBL_MAX;
double dLargestDistance = DBL_MIN;
double dSum = 0;
double dMeanDistance = 0;
for (double dDistance; cin >> dDistance;) {
vDistances.push_back(dDistance);
dSum += dDistance;
if (dDistanc... |
1eb6efb7bb5d02ac68f7cafbde5503f9e31895f1 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_15924.cpp | 9be2175bda5954b503dc11350769711a64907533 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39 | cpp | Kitware_CMake_repos_basic_block_block_15924.cpp | free(iso9660->joliet.pathtbl[i].sorted) |
f9efd70427af8b298b8b55e615df25fe1dd2f56d | a7ef7da29f8fd3637e9e7c43d49fd1239648a53c | /src/synth/tracker_data_static.hpp | 0be7e3ae1a7d02d9d4af3a1fa81df25f891b5645 | [
"BSD-3-Clause"
] | permissive | faemiyah/faemiyah-demoscene_2016-08_80k-intro_my_mistress_the_leviathan | 589689a4aa6545cc17d1003c29d72b3cb65c8622 | bc3b75b009364dd5b982e137ba86889374d9ac3f | refs/heads/master | 2023-02-20T17:57:03.601652 | 2023-02-07T17:42:49 | 2023-02-07T17:42:49 | 65,150,000 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | hpp | tracker_data_static.hpp | #ifndef _TRACKER_DATA_STATIC_H_
#define _TRACKER_DATA_STATIC_H_
#include "types.hpp"
struct TrackerCell {
int note;
int octave;
int instrument;
int fx;
int param;
};
struct TrackerRow {
TrackerCell cells[8];
};
struct TrackerPattern {
TrackerRow rows[96];
};
#endif // _TRACKER_DATA_STAT... |
bb03290ad3aea12e812341d7fdeea47b4bd0771b | 8dc765c34b0b56ee3bd10c79d185b3f1fcfbae72 | /lectures/01/SortedArray/Source.cpp | 6c2137f8854dc3f86f2e22da271e303ea483d332 | [
"CC0-1.0"
] | permissive | peshe/SDP20-21 | f0c876c7bd9c42d443880cc06510281cdedfd034 | af298e723c2934036048b26b168f8f8607fcec40 | refs/heads/master | 2023-02-24T17:49:37.136197 | 2021-01-20T20:34:45 | 2021-01-20T20:34:45 | 297,893,818 | 11 | 7 | CC0-1.0 | 2021-01-11T09:32:06 | 2020-09-23T07:49:07 | C++ | UTF-8 | C++ | false | false | 3,627 | cpp | Source.cpp | /******************************************************************
* Sample code to the course "Data Structures And Algorithms", FMI
*
* A template class for sorted dynamic array.
* Illustrate the proxy design pattern
* and sample unit testing with GoogleTest framework
*
* (cc) Petar Armyanov, FMI, 2020
*************... |
c99f21e088948b44e1703794e7c9f2079cb13d81 | b1f4fbc43afc61acf7566c4d2c7520919f4d8520 | /PACMAN_CUBERITE/src/file_functions.cpp | 352f38d6cb3593de9215a3d2fa1f236876cd0950 | [] | no_license | MinecraftWorldEditor/MinecraftWorldEditor-1 | 725ab61906e5c272698cfd660679c6d0fccc3641 | a1657cc661a5bf60c3b7efcf72110be9dcf7fda9 | refs/heads/master | 2023-03-24T04:29:22.988312 | 2021-03-13T03:11:17 | 2021-03-13T03:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,473 | cpp | file_functions.cpp | #define SFML_STATIC
#undef UNICODE
#include <conio.h>
#include <wchar.h>
#include <winsock2.h>
#include <io.h>
#include "WinMain.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <sys/stat.h>
#include <iostream>
#include <cstdlib>
#include <Windows.h>
#include <Winuser.h>
#include <... |
b99a1b1f7ed3d2e302689bd0318fd8c9f504162b | 917da36e63b1235b435c7c43e2cb1f54fac12b52 | /gestionproduit.cpp | 330b0b34b339b392103dfe0a063c4dcc3c48a885 | [] | no_license | nefissaKhiari/Smart_Restaurant_2A19 | a66d0fc3df0e7ba4c4632226f4f6dee172ddc80e | d03c7d210ff10c93258f9161927e8ba2a2620077 | refs/heads/main | 2023-05-02T23:59:58.390292 | 2021-05-06T09:10:49 | 2021-05-06T09:10:49 | 344,575,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,324 | cpp | gestionproduit.cpp | #include "gestionproduit.h"
#include "ui_gestionproduit.h"
#include "produits.h"
#include "fournisseur.h"
#include <qmessagebox.h>
#include <QIntValidator>
using namespace qrcodegen;
Gestionproduit::Gestionproduit(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Gestionproduit)
{
ui->setupUi(this);
... |
37d08ee2b184d97e0ae3cd7ad717b12c0ac610dc | 21c16e2c273d00304bd79ab966007d8e9c1ba09c | /codeforces/0010/d.cpp | 9289a48af2411a81f127d59d7647d0f27f054257 | [] | no_license | TimothyHorscroft/competitive-programming | 93f31f3863d0b5d82ce7538d22cb69d4514608a0 | db2f1e743c0c92aff192e27dbb07bdb114fae641 | refs/heads/master | 2023-08-17T03:35:51.099751 | 2023-08-12T15:01:44 | 2023-08-12T15:01:44 | 276,879,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,583 | cpp | d.cpp | #include <bits/stdc++.h>
using namespace std;
#define lglg long long
#define FOR(i, a, b) for (int i=(a); i<(b); ++i)
#define ROF(i, b, a) for (int i=(b); i>(a); --i)
#define CASET int _T; cin >> _T; REP(caset, 0, _T)
#define vi vector<int>
#define vb vector<bool>
#define vs vector<string>
#define vvi vecto... |
dc19b5f57c515ee516c0659e0ea0aeb82eeea52e | 671944f1d972067c8dc2fe9bf4cbaabb6729ba0c | /fileviewer.h | 7905314f941c8210187d6967029e0ff4380db0f2 | [] | no_license | caleb92/RhinoApp2 | eb784a45bd6ba569b0c2e0b18b97957bf5e86a4e | 8393cfe2b7f17da8a302277bba43cebc969329c8 | refs/heads/master | 2016-09-05T20:18:10.050681 | 2014-12-09T02:21:41 | 2014-12-09T02:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | h | fileviewer.h | #ifndef FILEVIEWER_H
#define FILEVIEWER_H
#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QTabWidget>
#include <QTextBrowser>
#include <QVBoxLayout>
#include <QLabel>
class FileViewer : public QWidget
{
Q_OBJECT
public:
explicit FileViewer(QWidget *parent = 0);
signals:
public slot... |
1f1aef0ec3c64b13aff75851e134906c2a3fb3c4 | b47e72d35056a65700645ea58ebefea00ebb678d | /OpenGL/inc/MyApplication.h | 5d1a82b99070f46460963dc2467c5e7f14094c18 | [] | no_license | ShaneCoates/OpenGL | fe709c2bef7ed0c590c243af9633a0a9a60bfb8a | 1511c5abb427c2714491e4a2f803a3453fc7185d | refs/heads/master | 2016-09-08T11:05:27.296446 | 2015-02-20T05:43:54 | 2015-02-20T05:43:54 | 31,050,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | h | MyApplication.h | /*
Author: Shane Coates
Description: simple application class
*/
#ifndef APPLICATION_H
#define APPLICATION_H
#include <glm/glm.hpp>
struct GLFWwindow;
class GameStateManager;
class Application
{
public:
Application();
~Application();
void Run();
protected:
private:
double GetDeltaTime();
GLFWwindow* win... |
a951b51a5fff3f79312940bc8b7ab0df423741eb | f6eb8f55a4226a73f87c0acf6cdef347ad02f03d | /chanukah.cpp | 05867aa9478e3a46f38951bf08d0fe20afacef88 | [
"MIT"
] | permissive | chm15/kattis | 92da70368405054e8c8ddcf07c349ab5f10e32dd | 0f8a04d6ed4b4b18ecbe970f229f9f6e854a5946 | refs/heads/master | 2023-02-24T15:14:08.566973 | 2021-01-30T03:00:59 | 2021-01-30T03:00:59 | 300,067,967 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | chanukah.cpp | #include <iostream>
int main() {
int p;
std::cin >> p;
for (int i=0;i<p;i++) {
int k, d;
std::cin >> k >> d;
int carry = 0;
for (int i=0;i<d;i++) { carry+= i+2; }
std::cout << k << ' ' << carry << '\n';
}
return 0;
}
|
064a560bd5c60872884b0ba8586b837be03f3155 | d352d1f57cfd741efd6559ecd4c5882d2dbd4f26 | /eval/src/tests/tensor/tensor_mapper/tensor_mapper_test.cpp | 60b17930f0b63a23549c139cc945b1e617c176cb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hshukla/vespa | 69b154388bda4f374370883f8c50360a3ad55f0c | d618d1442bc1963de08e843ef14c49f12ae7e9d9 | refs/heads/master | 2020-05-18T09:48:45.357329 | 2019-04-30T22:17:59 | 2019-04-30T22:17:59 | 184,333,759 | 0 | 0 | Apache-2.0 | 2019-04-30T21:26:04 | 2019-04-30T21:26:04 | null | UTF-8 | C++ | false | false | 8,072 | cpp | tensor_mapper_test.cpp | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/eval/eval/simple_tensor.h>
#include <vespa/eval/eval/tensor_spec.h>
#include <vespa/eval/tensor/default_tensor_engine.h>
#include <vespa/eval/tensor/tensor_mapper.h>
#include <vespa/ev... |
e85ebe6b1630e257767e468a363d5a9358481058 | 18d6d3767d931a1b366ae0dac1a899ae4a5a4ba5 | /AIServer/N3BASE/N3VectorAndMatrix.cpp | b172d18259b47080d735acdf1d3d65b3acce7d05 | [] | no_license | MysteryGuest/snoxd-koserver | 3a2d26670882d05872bd463ddbc913fcf3c6b532 | 64fc9e06027f9f3430fbfaf53aef81e48509d888 | refs/heads/master | 2021-01-23T03:58:57.942573 | 2012-09-03T15:31:09 | 2012-09-03T15:31:09 | 5,740,866 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 14,130 | cpp | N3VectorAndMatrix.cpp | #include "N3VectorAndMatrix.h"
extern float __sfSs[3600]; // sine
extern float __sfCs[3600]; // consine
extern float __sfTs[3600]; // tangent
inline void InitTrigonometricFunction()
{
float fRadian;
for(int i = 0; i < 3600; i++)
{
fRadian = ((i/10.0f)/180.0f) * 3.141592654f;
__sfSs[i] = sinf(fRadian);
__sfCs... |
99d17a2f99c2f194f64e00cace4ba70ea6d874a7 | ce5aafe4747abb0f9d831cda9b4dc6ef1adb8384 | /bcl/heatbath.hpp | d648f59aed7d8648aaf2576dfd0f2d0a2b4b8503 | [
"Apache-2.0"
] | permissive | cmsi/bcl | 213c600b9b931e96302bc03ce872e989b336c5b8 | 7b72c842f755be65111eba95b120be90d9e4fa08 | refs/heads/master | 2022-03-14T23:18:02.934072 | 2022-03-10T02:25:24 | 2022-03-10T02:25:24 | 7,656,945 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,026 | hpp | heatbath.hpp | /*
Copyright (C) 2009-2021 by Synge Todo <wistaria@phys.s.u-tokyo.ac.jp>,
Hidemaro Suwa <suwamaro@phys.s.u-tokyo.ac.jp>
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... |
b3e5894248bd5fb9cb2daa73174d99018d996c32 | 771b8d391585df59d8c7438e21e54976c4180011 | /lib/libOTe/cryptoTools/cryptoTools/Common/Matrix.h | 618df1cb93d4ed29e033b63a332221e18a435d08 | [
"MIT",
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | cryptobiu/libscapi | 1f11f92065c1cea418e73b932c9810d374bac060 | 1f70a88548501eaca5fb635194443e7a2b871088 | refs/heads/master | 2023-08-10T08:34:21.304797 | 2022-08-16T16:48:20 | 2022-08-16T16:48:20 | 53,246,303 | 186 | 74 | MIT | 2023-07-20T11:01:17 | 2016-03-06T08:59:43 | C++ | UTF-8 | C++ | false | false | 3,356 | h | Matrix.h | #pragma once
#ifdef ENABLE_FULL_GSL
#include <cryptoTools/gsl/multi_span>
#else
#include <cryptoTools/gsl/gls-lite.hpp>
#endif
#include <cryptoTools/Common/Defines.h>
#include <cryptoTools/Common/MatrixView.h>
#include <cstring>
namespace osuCrypto
{
enum class AllocType
{
Uninitialized,
... |
13d3236368975c0a5850b91579506b5b4fddfaa4 | f16283316d149843bc225c454f82f7c9cccb61f2 | /PhysX.h | b2bebdfcc6d90f3d09c5a675a5b92e6a8a00a8e8 | [] | no_license | tectronics/sigelengine | b566c6e4c2b07a0a8fb23c8e90a6f06411743890 | f5ad5ab6c35df06f34887d589a7cc22e1bf4ed20 | refs/heads/master | 2018-01-11T14:49:48.385573 | 2010-07-20T19:16:50 | 2010-07-20T19:16:50 | 48,101,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,764 | h | PhysX.h | class Actor;
class ConvexDesc
{
public:
NxConvexMeshDesc* cxmd;
NxConvexShapeDesc* cxsd;
ConvexDesc(){cxmd=0;cxsd=0;}
~ConvexDesc()
{
if(cxmd)delete cxmd;
if(cxsd)delete cxsd;
}
};
class PhysX
{
// Physics
NxPhysicsSDK* PhysicsSDK;
NxScene* Scene;
public:
PhysX(int mode);
~P... |
16ffa1a4d2c3de591d5ee2b89a483cb3cc99785c | feb0742ea3aaae6aa9ec814eeac651a641a972c0 | /project/src2/Truck.h | 81c3bb9ff716d39ed005e51814c0f6be7665673c | [] | no_license | hironobukozu/SSE-cpen- | b4a71624797c83e0ff03ec2878d1652ee062d2f9 | f7863df7a18da82c063bf0ba473b5e4b5ea0d5ee | refs/heads/master | 2020-04-08T14:16:47.092379 | 2019-02-09T00:32:08 | 2019-02-09T00:32:08 | 159,429,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | h | Truck.h | #ifndef TRUCK_H
#define TRUCK_H
#include <cpen333/thread/thread_object.h>
#include <iostream>
#include <thread>
#include "Customer.h"
#include "Order.h"
#include "OrderQueue.h"
#include "safe_printf.h"
class Truck : public cpen333::thread::thread_object {
OrderQueue& delivery_queue_;
OrderQueue& ... |
4f114fccfe5e06ec9019938f2b6481a967fb2b56 | 0d43ea7130789da15a0f3fccba58dc1aae895709 | /Classes/utilities/vibration.cpp | 8d81e9e7e2b1e2049232d88aaca49373c7cb4faf | [] | no_license | jwthanh/BuildUpTheBase | 4717b2cae34caece122d1b6b35a69f896df2eefb | 2290ed6636d36f763f810996978f695abe4ab6b1 | refs/heads/master | 2021-06-24T12:02:51.289063 | 2017-07-09T23:11:52 | 2017-07-09T23:11:52 | 97,652,903 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | vibration.cpp | #include "vibration.h"
#include "GameLogic.h"
#include "base/CCConsole.h"
void do_vibrate(int milliseconds)
{
if (GameLogic::getInstance()->get_can_vibrate() == false)
{
CCLOG("NOT vibrating");
return;
};
#ifdef __ANDROID__
vibrate(milliseconds);
#else
CCLOG("vibrating for... |
d3e509c23384997c5735b7c1387024df15f19e80 | 1a69b230bf59c4cc6cf604dfe8153fb5d179eb81 | /problemas_aprendiendo/scc_gooda_2.cpp | 689401cbb298e653e58bdc61d90ef7ae4f44de73 | [] | no_license | FelixMorenoPenarrubia/CompetitiveProgramming | 36de722b5512ba975d9db9e939df2f155092d276 | d459ce5683ad464c34b3a8d0bc0b77557ccfdc24 | refs/heads/master | 2023-03-14T13:35:43.938876 | 2021-03-04T17:01:36 | 2021-03-04T17:01:36 | 344,264,136 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,331 | cpp | scc_gooda_2.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
vvi al;
vvi ral;
vvi scc_al;
vvi scc_ral;
ll cidx = 0;
vi on_stack;
vi st;
vi visited;
vi num;
vi low;
vi scc;
vi fun;
vi f;
int cscc = 0;
vi dp;
ll dfs_scc(int v, int base_idx) {
if(visited[v]) ret... |
8d76a1f3df0c79b10baf3188db41e055374f4041 | 00c801555acd14c9e620242d4f177d5fe406fc01 | /Baekjoon/2178_미로 탐색.cpp | f76395b3fe79fceaf12433fb4fef7689f94327e4 | [] | no_license | moray0211/Algoritm-practice | bd4fb9869cf62a817ab3dd29d396a416c78a5fb6 | ff3cdf51ac33c1b54437bc5f8d122dbcb25b2bbd | refs/heads/master | 2021-03-17T05:54:57.275788 | 2021-03-09T04:58:10 | 2021-03-09T04:58:10 | 246,968,028 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 1,519 | cpp | 2178_미로 탐색.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <string>
using namespace std;
vector<vector<bool>> grid;
vector<vector<bool>> visited;
vector<vector<int>> dis;
queue<pair<int, int>> Q;
int N, M; //N개의 줄 M개의 미로
void bfs(int x, int y) {
visited[x][y] = true;
dis[x][y] = 0;
Q.push(make_pair(x, y));
... |
55d57fe4056edff530fd1542a6a85cf84163d8b1 | 1b6be4be51253bb86c3ddab08bcc6350d23959a4 | /DeskButton.h | b4136b8ab80237c14f4a4138cab32db87d6bc851 | [] | no_license | projectgenesis/quicklaunch | 437437ff50b1133f3c9db369ad82d8e9e0e96f4e | 67c40ae46b10e5d6e9256c58286d5a96df9c21f6 | refs/heads/master | 2020-03-23T09:18:52.067792 | 2018-06-19T16:56:28 | 2018-06-19T16:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | h | DeskButton.h | /*
* Copyright 2003-2007, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Jérôme Duval
*/
#ifndef DESK_BUTTON_H
#define DESK_BUTTON_H
#include <View.h>
#include <Entry.h>
class DeskButton
:
public BView {
public:
DeskButton(BRect frame, entry_ref* ref, const... |
774f2891b98dad501f4076ab085582f7cb7eb21a | 0eef1550cc7fd4e47395451f38d034aa0a462d70 | /src/ESPStepperMotorServer.cpp | 1a14b57e795fb885ac9b8c60a1deabdd0659b9f5 | [
"MIT"
] | permissive | pkerspe/ESP-StepperMotor-Server | 083c60ffaa96bf7aebaf3951dc00a1f97363c327 | d04b6007ac3c31bdfcb6a6a83e358a6a6424e4af | refs/heads/master | 2023-07-09T14:31:17.477556 | 2023-06-30T12:30:40 | 2023-06-30T12:30:40 | 178,730,644 | 169 | 41 | MIT | 2020-07-03T21:28:14 | 2019-03-31T19:08:12 | C++ | UTF-8 | C++ | false | false | 60,434 | cpp | ESPStepperMotorServer.cpp | // *********************************************************
// * *
// * ESP8266 and ESP32 Stepper Motor Server *
// * *
// * Copyright (c) Paul Kerspe, 2019 ... |
a3092161b2e9f065165007b330e7469e8b8cba22 | 729baa75b000c83fdec8c5ae5ed4e6b696a3f068 | /INTERNAL_TREE{SBT}.cpp | b2353b67e735a43890ffc2a5aedaa0f8dfaf2632 | [] | no_license | williamking5/template | d23add345afc8a5a69b7dc9ba554236265000ce7 | 001db612e5baf18f48c59b4bcc3552e9ecd467a8 | refs/heads/master | 2021-01-16T23:48:37.852402 | 2017-05-06T10:26:48 | 2017-05-06T10:26:48 | 53,318,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,554 | cpp | INTERNAL_TREE{SBT}.cpp | #include<stdio.h>
#include<algorithm>
#include<iostream>
using namespace std;
//data默认为int类型,如果要进行修改,请定义新的类型,并重载比较运算符
struct DATA{
int x;
DATA (int t){
x=t;
}
DATA (){}
};
bool operator < (const DATA a,const DATA b){
return a.x<b.x;
}
bool operator > (const DATA a,const DATA b){
return a... |
16d33f085bed569d4a93588a5f042d95f7167d43 | 6372dda67fd243632d9067906dfe6d34d2b77af4 | /Source/SwordCombat/CharacterStates/States/InteractState.cpp | f3d1757bf1b1da8fce7540675590afa52922aa17 | [] | no_license | mehmetcengiz/SwordCombat | e3044e246844547b7751787d4d594744747ba2b7 | 87c00eb2bce45cfd7f6f4ba7f3b6e955ff88d3ed | refs/heads/master | 2021-08-18T16:57:37.922672 | 2017-11-23T10:03:38 | 2017-11-23T10:03:38 | 104,527,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | InteractState.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "InteractState.h"
#include "SwordCombatCharacter.h"
#include "Engine/Engine.h"
void UInteractState::OnRightButtonPressed() {
Super::OnRightButtonPressed();
auto Character = static_cast<ASwordCombatCharacter*>(GetOwner());
Chara... |
a11478b8587b1545977c9f64de8824ed348f4602 | 935a0b90a38839a60eb4f5f32b1a76eb73aa7342 | /OpenCLObject.cpp | 3a2fa3cfff2af06d33b762fd49548c6e3ffd305a | [] | no_license | 3dglazer/oclParts | 8e9c7e18f5d2c9bfb0d47ada900ef094f32580f3 | dba084d69248cc254effd2cef13483ff481d5139 | refs/heads/master | 2016-09-01T16:16:00.751646 | 2013-03-01T09:51:15 | 2013-03-01T09:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,133 | cpp | OpenCLObject.cpp | /*
* OpenCLObject.cpp
* GPUParticleSystem
*
* Created by Zdenek Glazer on 1/30/11.
*
*/
#include "OpenCLObject.h"
#include "OpenGLUtils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <OpenCL/OpenCL.h>
#include "CL_EvenOddMergeSort.h"
#include "CL_MainObject.h"
#de... |
8f6a13886bdcda1f19318c9c1e1c1a672265efbe | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/CTaskSimpleClimb.h | 2fcdeaf9e8658bfe82a16199378bc480d9ebf6d7 | [] | no_license | DaDj/GTA-BTLC | ade014b3d8dbb1ecce6422328be95631226cd6f4 | 15d60cb5d5f14291317235066d64a639fffaf3ea | refs/heads/master | 2023-08-16T23:12:57.867204 | 2023-08-13T21:45:06 | 2023-08-13T21:45:06 | 83,485,003 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 914 | h | CTaskSimpleClimb.h | #pragma once
#include "plbase/PluginBase_SA.h"
#include "CTaskSimple.h"
#include "CAnimBlendAssociation.h"
#include "CEntity.h"
enum eClimbHeights : char
{
CLIMB_NOT_READY = 0,
CLIMB_GRAB,
CLIMB_PULLUP,
CLIMB_STANDUP,
CLIMB_FINISHED,
CLIMB_VAULT,
CLIMB_FINISHED_V
};
class CTaskSimpleClimb : public CTaskSimpl... |
45dc938eccb706c6467e174564c4ebcdfe2b2eec | b62e7086980cb97554b01dbfad64a040f9f80165 | /NtupleMacros/TTDil/dle/anascripts/processDYEstResults.cc | 712f230bb5effdcc1a9080b516fd4950b295f85e | [] | no_license | tastest/CMS2 | f819962e172c712abd82a8b213c4cb2286bcdcfe | e31e02d6037fbef206e216413b4def558ccefb39 | refs/heads/master | 2021-01-10T20:22:52.181267 | 2013-07-12T15:16:31 | 2013-07-12T15:16:31 | 10,772,930 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,219 | cc | processDYEstResults.cc |
#include "processDYEstResults.h"
#include "TROOT.h"
#include "TStyle.h"
TH1F* getRHist(HistogramUtilities *hUtil, sources_t theSource, TString nJets, TString hyp_type)
{
TH1F *h1_met_in = hUtil->getHistogram(theSource, "dyest_met_in", nJets, "_" + hyp_type);
TH1F *h1_met_out = hUtil->getHistogram(theSource, "d... |
ba60de084d3b9b2998c48bc7e05eb8c728337e34 | ee151c233764ec9dd8619744468e931897ef9337 | /src/mythread.h | 997ec97325f99c474acb90f9ee113ae5f1674d49 | [] | no_license | Sackzement/Consolicus | f784a280c71d31c3e2d55339fe0ef18e9648d595 | dc503522c8c6ea89e596fb18feca7f065f56ba22 | refs/heads/master | 2020-05-16T19:50:38.015629 | 2015-07-05T17:02:40 | 2015-07-05T17:02:40 | 37,626,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | h | mythread.h | #pragma once
#include "types.h"
#include <stdio.h>
//============================================
int threadFunc ( void* param )
{
}
class Copyclass
{
private:
ulli sizeMem = 0;
void* mem = nullptr;
byte numMems = 0;
byte threadNum = 0;
public:
Copyclass (ul... |
cae643a0fd14216a62696095253d37361d40c4b0 | 804cc6764d90fdd7424fa435126c7fe581111562 | /AK/Tests/TestLexicalPath.cpp | 5cd0bbb5bc4decac2886a72912d61234569f3524 | [
"BSD-2-Clause"
] | permissive | NukeWilliams/prana-os | 96abeed02f33f87c74dd066a5fa7b2d501cb2c62 | c56c230d3001a48c342361733dc634a5afaf35f9 | refs/heads/master | 2023-06-17T18:39:22.394466 | 2021-07-02T13:37:47 | 2021-07-02T13:37:47 | 358,167,671 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,028 | cpp | TestLexicalPath.cpp | /*
* Copyright (c) 2018-2020, krishpranav <krisna.pranav@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/LexicalPath.h>
#include <AK/String.h>
TEST_CASE(construct)
{
EXPECT_EQ(LexicalPath().is_valid(), false);
}
TEST_CASE(basic)
{
LexicalPath path("/abc... |
b166b7424b9b0b03892d673e72fc528d67615352 | d173d252ff1e350114f02fec3e13e7977113b2c4 | /DSA-Algo/sub_array.cpp | 0f2c8cd4b1bd907f439f27e4889d023bc94bb87b | [] | no_license | Imtiyaz-78/DSA-Basic-in-C- | c5a4d1083992f21038ba9821d7b37828f46a27b6 | 2a4a24a0890c20a75ce3c13080e326c1912cf7c6 | refs/heads/main | 2023-08-21T21:33:48.695981 | 2021-10-08T11:51:56 | 2021-10-08T11:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | sub_array.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int arr[n];
for ( int i =0; i<n; i++){
cin>>arr[i];
}
for( int i =0 ; i<n; i++){
for(int j=i; j <n; j++){
for( int k= i; k<=j; k++){
cout<<arr[k] << " ... |
abe93d2560f50cc4f1d52a06535d0f4fc02efbde | bd3976ee446d30848c06c5479b5896232547d9e4 | /cpp_functional/include/maybe.hpp | 03e2d53ab4a8435b13a29fb6a0983fff63534e67 | [
"MIT"
] | permissive | ayaskovets/sandbox | 5a8254cd3c90410bbe4cbbc592e40a3310779b47 | bff6e46adeaca17067a52fa37a8d0bd9315607ce | refs/heads/master | 2023-05-26T09:56:06.553625 | 2023-05-09T20:39:43 | 2023-05-20T12:33:54 | 370,044,929 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | hpp | maybe.hpp | #pragma once
#include "control.hpp"
#include <optional>
namespace fun
{
template<typename T>
using Maybe = const std::optional<T>;
template<typename T>
constexpr auto Just(T val) -> Maybe<T>
{
return Maybe<T>{std::move(val)};
}
struct Nothing
{
template<typename T>
constexpr operator Maybe<T>() const
{
... |
684baccbba42bae47ae9ea3122b1e663ecb8b818 | 1b8e1ddcb86f0a5cd018bc6b3400c8c6fb1c1984 | /server/socket/.svn/text-base/DBQuery_Map_Entry.h.svn-base | af96dc5da10a2d7d0e0512f4a10e8bcbd04dde0e | [] | no_license | yzfrs/ddianle_d1 | 5e9a3ab0ad646ca707368850c01f8117a09f5bfd | abffb574419cc2a8a361702e012cdd14f1102a6d | refs/heads/master | 2021-01-01T03:32:51.973703 | 2016-05-12T09:27:00 | 2016-05-12T09:27:00 | 58,615,329 | 0 | 2 | null | null | null | null | GB18030 | C++ | false | false | 1,031 | DBQuery_Map_Entry.h.svn-base | /*
*2011-11-10
*by wangshijun
*数据库消息处理框架。
*/
#ifndef __DBQUERY_MAP_ENTRY_H__
#define __DBQUERY_MAP_ENTRY_H__
#include <map>
#include "DBQuery_Processor_Entry.h"
#include "Windefine.h"
#include "Utility.h"
class QueryBase;
typedef std::map< IQueryProcessorObjGet * , DBQuery_Processor_Entry* > DBQueryProcesso... | |
1325c0eed2a7da4f075f8f49198ed98d6792b947 | 1eae6d8f62ded63ae9ef6c8ec89a951fcb44241a | /CF/xringroad.cpp | d4eeee944ed26ce60f22ec924362b02433b1cf23 | [
"MIT"
] | permissive | all0fme/CompetitiveProgramming | 37f594db3221b460f9e4e2557dde717ed46a3a41 | c4ea0128bdac2e57521e6b18c5a164d20787d2f6 | refs/heads/master | 2023-03-06T16:10:58.125280 | 2021-02-10T10:38:38 | 2021-02-10T10:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | xringroad.cpp | #include<bits/stdc++.h>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
long long int n, m, val, steps=0;
cin>>n>>m;
vector<int> hno;
for(long long int i=0; i<m; i++){
cin>>val;
hno.push_back(val);
}
for(long long int i=0; i<m; i++){
if(i==0){... |
d24d0355c4a219ed2e8195e6b381bde3ee7894d5 | 7486e2cdea8750152faba61617d9c856857960c8 | /1074_Z.cpp | 7072304269d74e85e6391d3b99f3287378523560 | [] | no_license | mung3477/Baekjoon-Online-Judge | 719418540d2ef78c99ba7d599b396d64e53a5cbf | 4a33238676314b35bc700ecb8ccd868164fa33e1 | refs/heads/master | 2022-09-07T11:43:18.426458 | 2022-07-18T09:40:38 | 2022-07-18T09:40:38 | 205,815,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | 1074_Z.cpp | #include <stdio.h>
#include <math.h>
int count = -1;
int r, c;
int Z(int len, int r, int c)
{
count += (int)(pow(len / 2, 2) * (r > len / 2 ? 2 : 0));
count += (int)(pow(len / 2, 2) * (c > len / 2 ? 1 : 0));
if (len == 2) return count;
r = r - (r > len / 2 ? len / 2 : 0);
c = c - (c > len / 2 ? len / 2 : 0... |
5a6209f54cd58e68147025e9f75ceac0c170f47c | 77337f9ac278bfd6f5f885b53d9a6b345b120c44 | /DP/Bai008.cpp | e68e95356e06206a3f1be0f1319efdf75379c2f5 | [] | no_license | JackNguyen1209/ICPC_TryHard_ | cd14a9f24e5d794978d827a665e9133e88fc47ff | a4d7a42266814189a27280dac6996809da0c5d64 | refs/heads/main | 2023-07-10T15:55:13.270627 | 2021-08-15T13:47:23 | 2021-08-15T13:47:23 | 367,665,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | Bai008.cpp | /*
Nguyen Duc Anh Phuc_Jacke
*/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<pll, ll>plll;
const ll mo = 1e9 + 7;
int main()
{
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
ll n, m;
cin >> n >> m;
... |
436f79a098a573561a00117526700cc853403609 | 7305b56e320d4996170e316c6e0517d8f14cc821 | /ion/audio/android/OutputDeviceAndroid.h | ec0837b8c330d67735df10bc8e62757952b2d8e6 | [] | no_license | BigEvilCorporation/ion-engine | 13c2d9ac6e1c6dedfa79538b334d5835e8355bdd | eb1724028d8e3d650561b983084a961acaf2d752 | refs/heads/master | 2022-01-16T05:37:36.397880 | 2021-12-28T01:02:33 | 2021-12-28T01:02:33 | 61,315,281 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | OutputDeviceAndroid.h | #include <audio/OutputDevice.h>
namespace ion
{
namespace audio
{
class OutputDeviceAndroid : public OutputDevice
{
public:
OutputDeviceAndroid();
virtual ~OutputDeviceAndroid();
};
}
} |
9002dd65f760cedbf955ca064b7373d3d326c271 | 30f1c0d583502b39c3587b9347c5d64d848f1e2d | /arrays/ccw_rotation.cpp | cec3d01ecd7109e6245d4118303c5f73239c3fd6 | [] | no_license | vimalsheoran/DataStructuresAndAlgorithms | a29cc2cfe63cbfeaebac85adc9d921f42b2d12e5 | b5453cc772f469bf75eee48255ff44dba5970499 | refs/heads/master | 2020-03-18T15:56:12.821223 | 2019-10-20T14:46:39 | 2019-10-20T14:46:39 | 134,938,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | ccw_rotation.cpp | // Counter clockwise rotation of a given array
#include <iostream>
#include <vector>
using namespace std;
int A[10] = {1,2,3,4,5,6,7,8,9,10};
void rotate(int N) {
vector <int> temp;
for (int i = 0; i < N; i++) temp.push_back(A[i]);
for(int i = N; i < 10; i++) {
A[i-N] = A[i];
}
for(int i = 0; i < N; i++) {
... |
5a777b3c0461b66b70261e52f20357a94d205eb0 | 2c8f38819d5277ea8881bf5719bfe93db0f5652d | /src/apps/mplayerc/OSD.h | 9a7384e5339d29b4e30a6e801aa761dd18a80968 | [] | no_license | svn2github/MPC-BE | 2cbdfdec4a1b0333bb76ff69adaa5d578b4d6c96 | 863236e027a03c39a7be896db733d519a9d0c3d5 | refs/heads/master | 2020-12-25T17:56:18.280511 | 2014-11-11T17:23:21 | 2014-11-11T17:23:21 | 11,636,212 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,684 | h | OSD.h | /*
* (C) 2006-2014 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 3 of the License, or
* (at your option) any later v... |
307ef5bd3a088fdccaed3c8ba9a8d288616d2a0f | f4e7439db744d730b027fb6792402dceeb15dd3e | /src/gui/src/XYZInchingWidget.h | 25a75baf2377c1e8ecc1e119e562d85b30402745 | [] | no_license | kindow/AutoCalib | 43b2a64f0966a02d4991ba8c0b5aca04b2b18b36 | aa162a5ac29cba22aef24d427cd9051c2f3065de | refs/heads/master | 2021-10-26T14:10:13.753446 | 2019-04-13T04:10:31 | 2019-04-13T04:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | XYZInchingWidget.h | #ifndef _ECAT_GUI_XYZInchingWidget_H_
#define _ECAT_GUI_XYZInchingWidget_H_
#include "ui_xyzinching.h"
#include "network/device.h"
using namespace ECAT::Network;
class XYZInchingWidget :public QWidget{
Q_OBJECT
public:
XYZInchingWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
~XYZInchingWidget();
void updat... |
75a2fc8c9576729b1ad5c8be0f0ea4ac2e6ade9b | b8f70576e7888e17852a8c6c628a00b2c9df2beb | /Animation.cpp | be5a3ba91778bc48f4bf7c46e2b4acd06891d2d3 | [] | no_license | rgb-empire/AnimationClassTest | aa692df712049e04a9a1cefc235aee2ee256c925 | 7cdaad3d6bf76e7ac029b20ca808e499d4bfa5bb | refs/heads/master | 2020-07-07T20:45:08.481504 | 2019-01-31T21:30:50 | 2019-01-31T21:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | Animation.cpp | #include "Animation.h"
//Animation Class Constructors
Animation::Animation(){
hue = 0;
hueSpeed = 0;
brightness = 128;
rangeStart = 0;
rangeEnd = NUM_LEDS - 1;
prevHue = hue;
}
Animation::Animation(uint8_t newHue, uint8_t newHueSpeed){
hue = newHue;
hueSpeed = newHueSpeed;
brightness = 255;
rangeStart = 0... |
60701d049f3fe9900d1e645d024968c231fdd809 | da86d9f9cf875db42fd912e3366cfe9e0aa392c6 | /2018/solutions/B/SIN-Pleven/seq.cpp | a367cbc16763019a6cd8e1ab086f443ae8a929f2 | [] | no_license | Alaxe/noi2-ranking | 0c98ea9af9fc3bd22798cab523f38fd75ed97634 | bb671bacd369b0924a1bfa313acb259f97947d05 | refs/heads/master | 2021-01-22T23:33:43.481107 | 2020-02-15T17:33:25 | 2020-02-15T17:33:25 | 85,631,202 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,994 | cpp | seq.cpp | #include<iostream>
using namespace std;
long long endOn1Ex[300][300];
long long endOn1[300][300];
long long endOn11Ex[300][300];
long long endOn11[300][300];
long long otherEx[300][300];
long long other[300][300];
long long total[300];
int n,m;
void generate(int n)
{
endOn1Ex[1][1]=1;
for (in... |
92a9c3ea4595390d5e72b91155fc93a7ef35ec31 | 194e716d0e66520e045b1435b3308b7dd7217d4b | /1st_course/1st_semester/10th_homework/task_2/Huffman.h | d57c11a1a56dbfdbd71d5b3f474b6852dc227146 | [] | no_license | ilya-nozhkin/Homework-SPbU | 3a9db38d374556c2586187a66cc0be941aabcd86 | 530b20aef3a24b978bf849b9ac9f55b4d88e06c5 | refs/heads/master | 2021-01-12T10:45:56.238452 | 2018-06-05T13:30:22 | 2018-06-05T13:30:22 | 72,679,644 | 6 | 1 | null | 2018-06-05T13:30:23 | 2016-11-02T20:42:59 | C++ | UTF-8 | C++ | false | false | 404 | h | Huffman.h | #pragma once
#include <inttypes.h>
#include <istream>
struct HuffmanNode
{
bool leaf;
unsigned char symbol;
HuffmanNode *left;
HuffmanNode *right;
};
struct HuffmanSource
{
HuffmanNode *treeRoot;
uint8_t *data;
uint64_t size;
};
HuffmanSource *deserializeFromText(std::istream &stream);
... |
f930b3443e7caaa5142567777f09334c81cfd455 | 9986a16b3cabb024c559d3722e106a6da0558da3 | /Demo/orautil/tags/v1.0/Demo/OraUtilDemo/ex08.cpp | 1f89683914a8d8925d57b0e382a04e6516cdfa9b | [] | no_license | guoyu07/orautil | 688f1ba94c0f85d25155ae2f30bf0e95da056a2b | 47b47698d5ebf9c27bee6dc382e752f8c0c3ace3 | refs/heads/master | 2021-01-24T11:58:13.637485 | 2017-01-11T05:42:57 | 2017-01-11T05:42:57 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,888 | cpp | ex08.cpp | // asppro.cpp : 定义控制台应用程序的入口点。
//
#include <orautil/orautil.hpp>
#include <iostream>
#include <assert.h>
#include <array>
#include <stdio.h>
#include <windows.h>
#include <process.h>
using namespace std;
using namespace asppro::oracle;
#pragma comment(lib, "ociliba.lib")
// 多线程并发操作, WaitForMultipleObj... |
4e78039fe072ae7d6369f15c7592de71cbb2be53 | 42acbdf6df7762a9d4726dfaf9957a0cb547fcb1 | /src/giga/api/data/MimeIconAssociation.cpp | df13ef3677fe9319fd7c44e57ed74aa0e735a0b7 | [
"Apache-2.0"
] | permissive | gigagg/GiGaSdk | 94e38abf50802cb0e33b495ddc0e3dce328e6da3 | db4e806b6f418e431649385e3176c23297bd09b4 | refs/heads/master | 2021-07-01T01:40:07.909120 | 2020-09-22T17:37:41 | 2020-09-22T17:37:41 | 53,601,004 | 4 | 5 | null | 2016-06-24T13:46:51 | 2016-03-10T16:44:46 | C++ | UTF-8 | C++ | false | false | 13,517 | cpp | MimeIconAssociation.cpp | /*
* Copyright 2016 Gigatribe
*
* 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 i... |
6b5de874fb363ef06d75cf5f2994af54093328ed | 4604c12a897f595a755695b07cced97bb46e7215 | /cubiquity-native-plugin/RenderThreadCommand.h | 029b05d97748fbb937f54c22e63c7020aeb7bd88 | [] | no_license | xoyojank/cubiquity-for-u3d-native | 0fbac2058cf54fa1fd9a02d20190f0f2b7d6c3aa | 0b21ab934f529daf2b4805bd9d7406364209b597 | refs/heads/master | 2021-01-21T12:59:21.704468 | 2016-04-26T01:33:39 | 2016-04-26T01:33:39 | 55,821,804 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 426 | h | RenderThreadCommand.h | #pragma once
#include "RefCounted.h"
#include "ConcurrentQueue.h"
#include <concurrent_queue.h>
class RenderCommand : public RefCounted
{
public:
virtual void DoCommand() = 0;
};
class RenderCommandProcessor
{
public:
static RenderCommandProcessor* Instance();
void SendCommand(RenderCommand* command);
... |
fc4a790be62112117e488e6e2cd4d180e4dcba5d | 6e790b19299272268806f8808d759a80401f8825 | /DX/Common/src/Include/Common/estl.hpp | 8ffe6afc7d23efa1ab16f9f26948698f4ce2d03e | [] | no_license | SilvanVR/DX | 8e80703e7ce015d287ba3ebc2fc0d78085d312f1 | 0fd7ec94e8d868c7a087f95f9dda60e97df38682 | refs/heads/master | 2023-07-16T01:42:48.306869 | 2021-08-28T02:36:32 | 2021-08-28T02:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | hpp | estl.hpp | #pragma once
/**********************************************************************
class: None
author: S. Hau
date: August 15, 2018
Extents the standard library for cleaner code or more functions.
**********************************************************************/
#include <algorithm>
namespac... |
4a2a5a2cf5f066e862e742fe4892a03c8e021271 | cd7fedbafd50242e8703863314f9f0655583624d | /lec6_list.cpp | 75d06acddd89a79fd8289a0be4365c88da788f5f | [] | no_license | Lowprophyle/Cpp_module | cc095402c3349a76d7bab58e1c0f26a3b678f316 | 01e7215b7da7e30e368bf9aa0442faa7cad19262 | refs/heads/master | 2021-01-24T11:04:16.434197 | 2018-04-05T03:12:14 | 2018-04-05T03:12:14 | 123,072,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,670 | cpp | lec6_list.cpp | #define _CRT_SECURE_NO_WARNINGS
// Line above stops visual C++ complaining about strcpy being unsafe
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
/* Define a structure which will contain
the details for a person */
struct Person
{
char* pFirstName;
char* pLastName;
int iAge;
Person* p... |
c6a4a4ef0f734dbdb2d0bf6ad3866b747f8c08f2 | 6efb28d0ab32d25f04f864a5e9188a222fd12635 | /src/prox_fantope.h | 26295d43c1f4d5ede13f9635fba42f647c3f26fb | [] | no_license | lxiao0620/gradfps | aea45e976bedcdb0f9325661be2a83481bd37329 | 88ed8a9475bff9b61061f6926b9fe1b49c11ada5 | refs/heads/master | 2022-10-02T15:08:37.819535 | 2020-05-25T17:06:15 | 2020-05-25T17:06:15 | 270,347,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,757 | h | prox_fantope.h | #ifndef GRADFPS_PROX_FANTOPE_H
#define GRADFPS_PROX_FANTOPE_H
#include "common.h"
#include "quadprog.h"
#include "inceig_tridiag.h"
#include "walltime.h"
// min 0.5 * ||x - lambda||^2 + l1 * max(0, max(x) - 1) + l2 * |sum(x) - d|
// s.t. x >= 0
//
// This can be solved using quadratic programming
//
// min 0.5 * ||... |
c9ef47b574d16d936da7f4d05abb4309837df42f | 51f182a861bc5be95314fec55b338a4a53f9bf70 | /Maximum FLow (Ford-Fulkerson Algo).cpp | 9d174ab450128140a8fbe67100436ec79f3ca362 | [] | no_license | meherabrusho/CSE-2221-Design-and-Analysis-of-Algorithms | e0ea08a4bc67300693daa6fbbd2c478421eebe43 | 938802daa2673371fdb6478d9c058cd6ed4b50dd | refs/heads/master | 2021-09-27T15:17:26.768450 | 2018-09-29T09:37:40 | 2018-09-29T09:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,906 | cpp | Maximum FLow (Ford-Fulkerson Algo).cpp | ///Based on lightoj-1153
#include <bits/stdc++.h>
using namespace std;
#define MAX 150
vector<int>adj[MAX];
int rGraph[MAX][MAX];
int parent[MAX];
bool bfs(int source, int sink, int n){
bool visited[n];
memset(visited, false, sizeof visited);
queue<int>q;
q.push(source);
visited[source] = true;... |
af8bd70d927be6da96bfa0e14ff3b37210d78d9e | bebf8a779790a578251fbd7f961751243c43957c | /mnistdataset.cpp | f93f16d52d934de7fd928de830e3ef11a92c01fd | [] | no_license | wadzapi/YANNDigits | cf20976b28829f106b8d5bac03356b2b8192de8c | 0eb89810296ee6bee30fdbdc0a8f104b50fdb8de | refs/heads/master | 2021-01-13T01:49:42.099410 | 2013-04-24T19:02:45 | 2013-04-24T19:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,651 | cpp | mnistdataset.cpp | #include "mnistdataset.h"
#include <cstdio>
MnistDataset::MnistDataset() :
images_magic_number(0),
labels_magic_number(0),
num_labels_(0),
num_images_(0),
num_rows_(0),
num_cols_(0),
is_images_loaded(false),
is_labels_loaded(false) {
}
void MnistDataset::DeleteImages() {
if (is_ima... |
b427de51d7b510cc2d91c82164fd6f2e396c2003 | 15bb1d660362a264ae697b727696b7d1ebc7e7f6 | /8-7练习/练习.cpp | 86413046cb64dbe1a746b44584ae862ddba9283c | [] | no_license | lwgithubcode/new | 0bcb6774429b9cce7e2ae6875b9699eebd1b18f5 | 6dab17327b1dd72cc450898bce4462737b4e66a9 | refs/heads/master | 2022-12-05T09:19:51.968207 | 2020-08-26T13:44:27 | 2020-08-26T13:44:27 | 260,252,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,478 | cpp | 练习.cpp | //#include<iostream>
//#include<stdio.h>
//using namespace std;
//
//int main()
//{
// double choose[21] = { 0, 1, 1 };
// for (int i = 3; i <= 20; i++)
// {
// choose[i] = choose[i - 1] * (i - 1);
// }
// int n = 0;
// while (cin >> n)
// {
// double all = 1;
// for (int i = 2; i <= n; i++)
// all *= i;
// doubl... |
52e08ec8923cfa68829c869e8e314617667fe66f | 5286786bf3e39611bec27a972b9feb7fbd81f3f1 | /examples/readPMS/readPMS.ino | 48ae73f41ef23932a00d39c8ee501c9d33c56a9e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | SGBotic/SGBotic_PMS5003 | 60565383afdd308d4b8aeef1f47e3752abe80877 | 410345a6e295883ae118119526e3c7f5a7806a94 | refs/heads/master | 2020-03-17T05:00:49.330868 | 2018-05-14T03:13:00 | 2018-05-14T03:13:00 | 133,298,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | ino | readPMS.ino | #include <SGBotic_PMS5003.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
SGBotic_PMS5003 PMS5003 = SGBotic_PMS5003(&mySerial);
// Hardware serial,
//SGBotic_PMS5003 PMS5003 = SGBotic_PMS5003(&Serial1);
uint16_t PMSdata[data_size];
void setup() {
Serial.begin(9600);
PMS5003.begin(96... |
c2335aa0219b13e1c75c4100036f4c8af74f3824 | 39bcafc5f6b1672f31f0f6ea9c8d6047ee432950 | /src/verification/deserialized_statement_verifier_v2.cpp | f3d349e70f368e0e42d679478d553d45180ec36e | [
"MIT"
] | permissive | duckdb/duckdb | 315270af6b198d26eb41a20fc7a0eda04aeef294 | f89ccfe0ec01eb613af9c8ac7c264a5ef86d7c3a | refs/heads/main | 2023-09-05T08:14:21.278345 | 2023-09-05T07:28:59 | 2023-09-05T07:28:59 | 138,754,790 | 8,964 | 986 | MIT | 2023-09-14T18:42:49 | 2018-06-26T15:04:45 | C++ | UTF-8 | C++ | false | false | 1,581 | cpp | deserialized_statement_verifier_v2.cpp | #include "duckdb/verification/deserialized_statement_verifier_v2.hpp"
#include "duckdb/common/serializer/buffered_deserializer.hpp"
#include "duckdb/common/serializer/binary_serializer.hpp"
#include "duckdb/common/serializer/binary_deserializer.hpp"
namespace duckdb {
DeserializedStatementVerifierV2::DeserializedState... |
d24497436f819276658de028342236a23fd09ea6 | d89cf43409cc73e316b23360575eea5d5bf4d071 | /Parts/VehicleBody/Small/BicycleBody.h | 154b4e0e233d5de444d59db5a8d3c2b7887c2d35 | [
"Unlicense"
] | permissive | Wyder7PL/Builder | 1aec2fbaeedf6bfc22b3d13e285a2dd9bf2fa907 | c5fa84ce832015740883a2a89de9ca4cfc88c7c2 | refs/heads/master | 2020-05-20T00:13:29.986354 | 2019-05-06T23:21:45 | 2019-05-06T23:21:45 | 185,282,365 | 0 | 0 | Unlicense | 2019-05-06T23:21:46 | 2019-05-06T22:48:21 | C++ | UTF-8 | C++ | false | false | 221 | h | BicycleBody.h | #pragma once
#include "SmallVehicleBody.h"
class BicycleBody:public SmallVehicleBody
{
public:
virtual int GetPassagersStorage();
virtual float GetItemsStorage();
virtual float GetMass();
};
|
acc61fc9fa86791a8a9b81efdcee69e2f8d944c0 | 0642d5b1153f83815906dc86e335c9f006a4f0c9 | /9.cpp | 14388aaa0757251272866f435181b892d7501ff3 | [] | no_license | Yu-JinChoi/C- | ef84671f5f1516453e1887a80ab5e6f829b142e0 | cf7127c753636bb0257d7f6bee92c1310451412c | refs/heads/master | 2023-02-04T23:23:33.731134 | 2020-12-26T08:57:43 | 2020-12-26T08:57:43 | 324,514,964 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,083 | cpp | 9.cpp | /*
1번 예제 9-1
#include<iostream>
using namespace std;
class Base {
public:
void f() { cout << "Base::f() called" << endl; }
};
class Derived : public Base {
public:
void f() { cout << "Derived::f() called" << endl; }
};
void main() {
Derived d, *pDer;
pDer = &d;
pDer->f();
Base* pBase;
pBase = pDer;
pBase->... |
5ea52762242c9badcfe79d4f3de887fd76301ee8 | 599153c3b43f65e603d5ace2fdac954e66f187af | /codeforces/1218/f.cpp | 203bdb338426fd92de99860555ef48fb27e7b830 | [] | no_license | davidzyc/oi | d7c538df5520f36afc9f652fed6862f2658e5a3e | 88cfea0d3ce62a7ecd176a4285bbfeac419d6360 | refs/heads/master | 2021-05-12T11:49:26.147403 | 2019-10-25T14:18:03 | 2019-10-25T14:18:03 | 117,396,742 | 0 | 1 | null | 2018-01-14T12:22:38 | 2018-01-14T02:54:50 | C++ | UTF-8 | C++ | false | false | 830 | cpp | f.cpp | #include<cstdio>
#include<iostream>
#include<queue>
using namespace std;
const int MAXN = 1e5+7;
typedef long long ll;
int n;
ll k, a;
ll x[MAXN];
ll c[MAXN];
ll cur_c = 0;
priority_queue<ll, vector<ll>, greater<ll> > pq;
int main(){
scanf("%d%lld", &n, &k);
for(int i=1; i<=n; i++){
scanf("%lld", &... |
c4cb0f8c3ebcc0593a10389adcd2b41d1db7daa1 | 98ab935547ba7fc5d1ba52d28759975cf2bc6ec1 | /touch_teensy.ino | 07966d3e5623e8c10ca3f171024c8f34544bdfd7 | [] | no_license | gautamb0/handsfree_reader | 8a4a450c6dd8b6b37b5592ff5449d9574f5b8b11 | 00f59a1cd03afe757e445f7fed9fff016dd28825 | refs/heads/master | 2021-05-16T03:10:08.927971 | 2017-08-15T14:53:08 | 2017-08-15T14:53:08 | 39,641,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,708 | ino | touch_teensy.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#define TOUCH0 19
#define TOUCH1 18
#define TOUCH2 17
#define TOUCH3 16
#define TOUCH4 15
#define TOUCH_THRESHOLD 800
RF24 radio(14,10);
const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };
byte touchReading = 0, lastTouchReading = 0;
byte rightSwipes=... |
9f8eae0efb22091682eccc6629e081e65540a072 | 4acf625712ff24ae4804e716a54b31527c610c10 | /pro_6/main6_1.cc | cdb061842900b3036a7bf21d4dfb9ded82a17d7e | [] | no_license | chuacon/EE259_FA18 | 258096f4fdf4fd00ffe37f15b28a13a0ec9ed71d | 4f01b00554f6294388e0a8601ccb1acf2a029d9a | refs/heads/master | 2020-04-13T06:26:22.738428 | 2019-01-27T07:27:32 | 2019-01-27T07:27:32 | 163,020,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cc | main6_1.cc | // example program: main6_1.cc
#include "p6.h"
int main()
{ LINEAR_SOLVER s(2);
s.SOLVE_LINEAR_EQUATION("DESCEND");
return 0;
}
|
3c7c13ab1813e5dc67d5f497667bcbbaea96158f | 6c5e732bfc440fd34f7a90914941eb600ac3b39c | /ros/coros/coros_messages/include/coros_messages/CostMessage.h | c8e95741bee8b4e7d5841425d4801541ae9cae86 | [] | no_license | efraccaroli/ROSWebServices | e7e0ff2935652b9e2234fa8be9157a85716406b3 | 65f257d68674ddb2d235914e3aee8ecf0a99a408 | refs/heads/master | 2021-01-20T13:58:43.415536 | 2016-01-26T11:30:55 | 2016-01-26T11:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,178 | h | CostMessage.h | #ifndef COST_MESSAGE_H
#define COST_MESSAGE_H
#include "BaseMessage.h"
#include <coros_messages/CostMsg.h>
/**
* RobotTaskCostMessage used for Announcement and Bidding phases
* NOTE: It is better that this class doesn't inherit from TaskeMessage
* to avoid any eventual confusion at the template member funct... |
b77aed25dd1737ec2a758d2deb3bc127c50b5b77 | 5419ec31b9aec07477ac45cb97ee3074fc6fba4c | /Helloworld/Classes/Scenes/CcbArenaShopLayer.cpp | 03b978aaebb6fbb5a807f82ddf53dc9674effffc | [] | no_license | Relvin/RelvinPetTwo | 59ceded93181f2d301f6d33e70367fb45906c9ba | 1b7bc4677c2a9620a2008e0fa9a925d4a5ca1af5 | refs/heads/master | 2020-03-30T06:39:00.198117 | 2015-01-07T09:55:49 | 2015-01-07T09:55:49 | 28,892,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,500 | cpp | CcbArenaShopLayer.cpp | #include "CcbArenaShopLayer.h"
#include "CcbManager.h"
#include "GameSession.h"
#include "CcbArenaShopFrameLayer.h"
#include "CCScrollViewWithBar.h"
#include "ArenaDataMgr.h"
#include "Role.h"
#include "EnumDefines.h"
#include "ConfigGet.h"
#include "GuideData.h"
#include "CcbItemInfoButtonLayer.h"
#include "ResourceSt... |
1d6be4b26fd6e57cbd9b752a1c3b87781f4f0260 | 9b553bbfc8b0807d7f860964d6044d6ccf6d1342 | /include/JSystem/JAudio2/JAISound.h | e94ea2cf13c41b9f4c63c93fa5e3c4496d808551 | [] | no_license | DedoGamingONE/tp | 5e2e668f7120b154cf6ef6b002c2b4b51ae07ee5 | 5020395dfd34d4dc846e3ea228f6271bfca1c72a | refs/heads/master | 2023-09-03T06:55:25.773029 | 2021-10-24T21:35:00 | 2021-10-24T21:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,296 | h | JAISound.h | #ifndef JAISOUND_H
#define JAISOUND_H
#include "JSystem/JAudio2/JAIAudience.h"
#include "JSystem/JAudio2/JAISoundHandles.h"
#include "JSystem/JAudio2/JAISoundParams.h"
#include "JSystem/JGeometry.h"
#include "dolphin/types.h"
#include "global.h"
class JAISoundID {
public:
operator u32() const { return this->mId; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.