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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
088ac9b17fd7e526e800ddb3e3d8f00fdd383dfd | b62ba2b3d86e8fb67c29003a9960b32f2ca5fdcb | /include/vehicle_controller/controller.h | b1e586bf756ccf8c4d176e33238e4356256e3bce | [] | no_license | tu-darmstadt-ros-pkg/vehicle_controller | 1d759ab1b7d27217a1b84b0fc81ad55203bb41ce | b80e0a87d1d185095f52fb80bd45e53fb836cc97 | refs/heads/master | 2023-05-25T05:32:23.228288 | 2023-04-21T19:08:54 | 2023-04-21T19:08:54 | 38,888,418 | 9 | 5 | null | 2022-05-11T06:16:52 | 2015-07-10T15:43:56 | C++ | UTF-8 | C++ | false | false | 5,405 | h | controller.h | #ifndef CONTROLLER_H
#define CONTROLLER_H
#include <nav_msgs/Path.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Vector3Stamped.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/PointStamped.h>
#include <monstertruck_msgs/MotionCommand.h>
#include <monstertr... |
1f6a7fbde8b2177af84912274856d6de860ee2e7 | 0f8dda668f350c66871b0cb29f3d2f96db5c99c6 | /test/e2e/scenario_4.cpp | bc07539f6bef1bb89ce7561e37c23cb0ef79cee7 | [
"MIT"
] | permissive | Warchant/alt-integration-cpp | 5ca36b9683165ea74b1c9db399b451de6a249a18 | 61c1012dd4f4632c1bd288d5bfcb0500a2e4933c | refs/heads/master | 2022-12-04T01:04:14.797615 | 2020-08-19T12:34:27 | 2020-08-19T12:34:27 | 288,698,173 | 0 | 0 | NOASSERTION | 2020-08-19T12:33:41 | 2020-08-19T10:08:48 | C++ | UTF-8 | C++ | false | false | 4,231 | cpp | scenario_4.cpp | // Copyright (c) 2019-2020 Xenios SEZC
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include <gtest/gtest.h>
#include <util/pop_test_fixture.hpp>
using namespace altintegration;
struct Scenario... |
116446af22c08337e1a2ae8897c075ffedccf942 | 639f54d686b560fe2785ddbac4adc408f76169fc | /src/gui/controls/ColorButton.h | 20771c30fc9b0db1c25549028c54588269594f97 | [
"BSD-2-Clause"
] | permissive | SSBMTonberry/pmgui | 17324a6db696a741df931fde56421484a2741a39 | 6f714e65c6d2d0780de346d964daf76d2e21d91c | refs/heads/master | 2023-01-20T07:05:27.027954 | 2023-01-08T10:54:24 | 2023-01-08T10:54:24 | 185,224,228 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | ColorButton.h | //
// Created by robin on 28.01.18.
//
#ifndef PMGUI_COLORBUTTON_H
#define PMGUI_COLORBUTTON_H
#include "Control.h"
namespace pmgui
{
class ColorButton : public Control
{
public:
ColorButton(const std::string &id, const std::string &label, const sf::Color &color, const sf::Vector2<int> &s... |
316d685bbdf25fe1a9602554a67c306e11d0ddff | 4d225758c30ad6e9faa6645bf705d6e31135bf9a | /CompetitiveProgramming/Edit Distance.cpp | 2649f9940fd6dc13f7fefe77e6736ef4ba781095 | [] | no_license | abhi311998/Programming | ba51198e7262213cba051f3f83407082a003008a | 664afaa24a0a0db2d88d95a5feec5f561a3a8e0f | refs/heads/master | 2021-07-18T15:28:21.704570 | 2020-07-23T03:58:13 | 2020-07-23T03:58:13 | 194,397,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | Edit Distance.cpp | #include<bits/stdc++.h>
using namespace std;
int cost(string s1,string s2,int a,int b)
{
//cout<<s1<<" "<<a<<" "<<s2<<" "<<b<<"\n";
int dp[a+1][b+1]={0};
for(int i=0;i<=a;i++)
{
for(int j=0;j<=b;j++)
{
if(i==0) dp[i][j]=j; // that much have to be inserted to s... |
1bbf0a52434dadc98ca36202ae754ba3f9e3b4cc | bc0945070d150c8af7cc56bf6e045a8c2cc7873d | /2332/5470348_AC_204MS_176K.cpp | 42bd6d2b2f5caf83cb02ff6652f50e6ebce81b70 | [] | no_license | fengrenchang86/PKU | ab889d88cd62b3c0b3e00cde5d5c3a652a16221a | 0c4adf6b740d2186b7f23124673cd56520d1c818 | refs/heads/master | 2021-01-10T12:12:18.100884 | 2016-03-07T14:14:33 | 2016-03-07T14:14:33 | 53,328,385 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,256 | cpp | 5470348_AC_204MS_176K.cpp | #include<iostream>
using namespace std;
#define INF 2000000
int a[60][60];
int b[60][60];
int c[60][60];
int n, m;
int shang = 200, xia = -1, zuo = 200, you = -1;
void Input()
{
int i, j;
for (i = 1; i <= n; i++)
{
for (j = 1; j <= m; j++)
{
scanf("%d", &a[i][j]);
}
}
for (i = 0; i <= n + 1; i++)
{
b[i... |
fbcc3e72c862b5a11956eb7938ef44c48a4dfba6 | cc36de75760f1e6b92f44edee9a3486362a04f47 | /Hacker Rank/Strange Counter.cpp | 877080c9d6c1c9c1ab3557bcd47a1eadce30bbc9 | [] | no_license | FahimCC/Problem-Solving | 47b29dc0b549be1199d50f0db4aceb0b44a1e0e6 | 40f65081a4b5f52241a54909a9dd830b23c50586 | refs/heads/main | 2023-06-23T08:16:47.010515 | 2021-07-15T16:05:32 | 2021-07-15T16:05:32 | 335,132,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | Strange Counter.cpp | #include<stdio.h>
int main()
{
/*#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif*/
long long t, m, p;
scanf("%lld", &t);
m = 3;
p = 3;
while (p < t)
{
m = 2 * m;
p = p + m;
}
t = p - t + 1;
printf("%lld\n", t);
return 0;
} |
1d163ae72a8fa73cad53976ad777a5db59407c1a | e8046ffdb0e4c8e95d5799f666dc314b2c2fd9c5 | /tests/test_boundingbox.cpp | 6165b18abd7c51a54cb4010b5f4e259652a33d8e | [] | no_license | tmerr/softphysics | b2d1234fd06750c9c80fdee3427d2ebc1d2eb085 | c6ef6cadfc48ee3eddc23add81fde4b7f7402f86 | refs/heads/master | 2021-01-10T02:39:46.434257 | 2016-01-12T12:37:07 | 2016-01-12T12:37:07 | 46,269,961 | 0 | 1 | null | 2015-11-18T05:57:33 | 2015-11-16T11:15:18 | C | UTF-8 | C++ | false | false | 1,617 | cpp | test_boundingbox.cpp | #include "boundingbox.hpp"
#include <boost/test/included/unit_test.hpp>
#include <glm/glm.hpp>
#include <vector>
BOOST_AUTO_TEST_CASE(boundingbox_contents) {
std::vector<glm::vec3> points;
points.push_back(glm::vec3(-10.f, -20.f, 10.f));
points.push_back(glm::vec3(30.f, 40.f, 0.f));
BoundingBox bb = Bo... |
f9ca7d0b7452609059c0a63d1efa69f548cd1fb9 | 968887bd6ce80c5c479a12fa204899db9d29805c | /amp/a7_linux/mpp/sample/svp/hirt/plugins/proposal/detectionCom.h | 836343e3cfb9a739e53ce6c9a75b7471abcbbb61 | [] | no_license | douniwan5788/DHS2.0_IMX123_3556_1.0.1.3 | e849f98579f02f9bb91f82ac08b200437e57cc69 | b20a733a3e74cf21e336d1024b1aa9eb76eff581 | refs/heads/main | 2023-04-06T14:23:33.803404 | 2020-12-24T03:02:41 | 2020-12-24T03:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,435 | h | detectionCom.h | #ifndef _DETECTION_COM_H_
#define _DETECTION_COM_H_
#include "hi_type.h"
#ifdef _WIN32
#include <direct.h>
#else
#include <sys/stat.h>
#define _mkdir(a) mkdir((a),0755)
#endif
#define DETECION_DBG (0)
#define SVP_WK_PROPOSAL_WIDTH (6)
#define SVP_WK_COORDI_NUM (4)
#define SVP_WK_SCORE_NUM (2)
#define... |
ec324839d888d7ae756bb88be831fdfe00671430 | 98df4ca4bc0ce233de84026fb82286c2e6055206 | /Hacker Rank C++ solve/hellowWorld.cpp | 7c85a4a080b29f5000ff2b872eb298720347fbf9 | [] | no_license | sarowar75856/Hacker-Rank-Solve | 9dd2d2761ce1a4b08dfdb937faac64200dc38237 | eb5d06e20c1bafd3f77f67e1019c971f772c75bf | refs/heads/master | 2020-07-27T15:59:57.446153 | 2019-09-17T20:29:18 | 2019-09-17T20:29:18 | 209,150,087 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | hellowWorld.cpp | #include <iostream>
#include <cstdio>
/*
Sarowar Hossain Bhuyain
City University,Pnathapath,Dhaka,Bangladesh;
Hacker Rank-Sarowar Hossain
Uva-sarowar75856
URI-SAROWAR_BHUYAIN
Toph-sarowar_hsb
*/
using namespace std;
int main() {
printf("Hello, World!");
return 0;
}
|
aefd898e06c74f244dcb88f828d8966f5b0ab6ea | 1f9bfd44ab392fece4abc6c33303e0403a7db3e8 | /generate_data/main.cpp | 36be32c68f32c4569cb729bf4a5e2757a4a0e9d8 | [] | no_license | kovdan01/programming-techniques-hw | fc005bd5f13c00e4e448210b5826c0ca4694d302 | 4092072035e060bf3acc3af15c2516d63f359d03 | refs/heads/master | 2020-12-13T11:38:12.164803 | 2020-05-10T13:59:40 | 2020-05-10T13:59:40 | 234,405,822 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,460 | cpp | main.cpp | #include "entry.h"
#include "geography.h"
#include "names.h"
#include "teams.h"
#include "SQLiteCpp/SQLiteCpp.h"
#include <boost/program_options.hpp>
#include <iostream>
#include <fstream>
#include <random>
#include <string>
#include <utility>
#include <vector>
#include <stdexcept>
std::pair<Country, City> generate_lo... |
1f444191a188105b6a2121c6571832cb9d8c2ef0 | fd27ecdcc3dd0b42b900601aad2b96e8967121ec | /test/rcpp_tests.cpp | ddc58f564f029f64d7eef03de5e7831619c2661e | [
"BSD-3-Clause"
] | permissive | vishalbelsare/xtensor-r | e9d023d06df9b77083113c4604a7fab38df778bc | b92f69a6b93e3b30e4942cfba6a64855441102fa | refs/heads/master | 2023-02-24T04:50:51.392888 | 2023-02-08T10:55:32 | 2023-02-08T10:55:32 | 163,421,172 | 0 | 0 | BSD-3-Clause | 2023-02-08T21:08:35 | 2018-12-28T14:53:25 | C++ | UTF-8 | C++ | false | false | 1,944 | cpp | rcpp_tests.cpp | /***************************************************************************
* Copyright (c) Wolf Vollprecht, Johan Mabille, and Sylvain Corlay *
* Copyright (c) QuantStack *
* *
* Distribute... |
852556d1140ceea978d8682e7430a286914d9736 | 7cd1bf431fb9f188e80a3b26d7f9b5c2a9b77eaa | /src/Geom/Vec2D.tpp | 4628bf3b2666187468933dfea6f44def4b8bfd0b | [] | no_license | andriams/Breakout | daa6180f23eb57d9a1566f898ac723dd63221824 | 18768fa4699bcf70eb68dd442df8daf46169c2d4 | refs/heads/master | 2021-01-20T19:34:10.747589 | 2016-11-06T23:26:51 | 2016-11-06T23:26:51 | 63,947,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | tpp | Vec2D.tpp | #include <Geom/Vec2D.h>
using namespace breakout;
template <class T>
Vec2D<T>::Vec2D(T x, T y) : m_x(x), m_y(y) {}
template <class T>
void Vec2D<T>::setCoord(T x, T y)
{
*this = Vec2D(x,y);
}
template <class T>
void Vec2D<T>::getCoord(T &x, T &y) const
{
x = m_x;
y = m_y;
}
template <class T>
Vec2D<T> Vec2D<T>:... |
5dd03d07e3a1a4caec58df7a2f75e6a2170d0c00 | 2570ed924a40c668405ac87dafcdbd5ed6cef753 | /USACO/USACO_ariprog.cpp | 279d6ce8485c535704821e06a41ced297f7a2219 | [] | no_license | veteran233/My-Code | 4194e14000e330fc14be8f3764ec7c607d614454 | b06666307c6264bb24e00d16a4dc6aab50f955de | refs/heads/master | 2022-12-29T11:05:07.782628 | 2020-10-18T02:08:55 | 2020-10-18T02:08:55 | 207,827,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | USACO_ariprog.cpp | /*
ID: kookinhard
PROG: ariprog
LANG: C++11
*/
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
int main()
{
freopen("ariprog.in", "r", stdin);
freopen("ariprog.out", "w", stdout);
int N, M;
cin >> N >> M;
int Max = M * M * 2;
bool ap[125001];
for (int i = 0; i < 125001; i++)
ap[i] =... |
ba20257d89b8fddaa15c0049c177d82df671fb63 | 947a736009c667d13d8684e7ef36b35b8d379ecd | /02-WindowsApp/MyGame/proj.win10/App/Generated Files/XamlTypeInfo.g.cpp | 72b8792a531687fdce5069c9fb0f53c1ef94feec | [
"MIT"
] | permissive | mspjp/20160611TokyoSeminar | 8c808a2f5311fb4d7d0614af9aeeff68e4a7e025 | b9bfa80da8a3cf3fb352b3b41ebdc6516ef79926 | refs/heads/master | 2021-01-21T14:23:35.726291 | 2016-06-11T05:44:23 | 2016-06-11T05:44:23 | 59,793,725 | 8 | 2 | null | 2016-06-10T14:32:34 | 2016-05-27T01:13:35 | C# | UTF-8 | C++ | false | false | 6,139 | cpp | XamlTypeInfo.g.cpp | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... |
638669a4b18e4faf1271ce81641c266f380b3a52 | f9109a07bc6ec0a6c6849a187676ec43d31e44de | /source/hdk2/hdk2/bin/unittest/tests-gen/complex/expected_client.h | 166eb2885df52f963a298a3cd0976cf184dece65 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rdkcmf/rdkb-Utopia | 1f65d785e5c5f9aaad92185d619482621ee5eac9 | 5765878d1990b050af80ea109ae556fc7b0c27ae | refs/heads/rdk-next | 2023-01-27T11:07:08.540498 | 2022-09-27T11:58:42 | 2023-01-25T09:49:12 | 57,202,219 | 6 | 8 | NOASSERTION | 2023-01-25T17:15:47 | 2016-04-27T09:42:30 | C | UTF-8 | C++ | false | false | 194,056 | h | expected_client.h | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
5f5d1f8ed6353c9d3f562dd1a15a0f7fc70888db | bae9d74fa9bb8f41c435fef762d49c012a037eb9 | /baiduyun.h | ca08627b2538662f987c61d7cfad10e99e0c148c | [] | no_license | labinxu/WebUtils | ced2b68ffc403c67c5f4e71f3e4fd642993d0976 | 12680bd37c1f92ffc9c264161bd47f6c27045b0e | refs/heads/master | 2020-12-23T11:10:31.175392 | 2016-08-04T09:05:57 | 2016-08-04T09:05:57 | 64,919,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | baiduyun.h | #ifndef BAIDUYUN_H
#define BAIDUYUN_H
#include "site.h"
class BaiduYun : public Site
{
public:
BaiduYun(const std::string &name, const std::string url);
bool login();
void logout();
};
#endif //BAIDUYUN_H |
214d4a76e06fff5fe3a7eb826228de511ace42f2 | 7ee4e1089a1f7a30b0952babdb3de7049fe24274 | /Cache/LRU_Cache.h | 57ebb989908607886ebd1e9be2f42ea0a0d9d1c2 | [] | no_license | ajayinnovative2/Insanity | 18408aa283d48addabaf6aa43cb5d08a99e1e479 | 6dc15ce346aeb5f0752d3317712a1b7d70bc291e | refs/heads/master | 2023-03-24T10:26:24.457908 | 2021-03-22T16:56:33 | 2021-03-22T16:56:33 | 322,807,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | h | LRU_Cache.h | #include "LRU_Doubly_Linked_List.h"
class LRUCache
{
int cache_size;
int cache_capacity;
unordered_map<int, DNode*> hashMap;
doubly_linked_list *list;
public:
LRUCache(int CacheSize);
~LRUCache();
int get(int key);
void put(int key, int val);
};
|
bea82ec797e9dae818487a8657848d0aac875406 | c0334e1f29fe9ede1d339399f690a1d9d7c24d21 | /nnet/yolov1.cc | 06daac8b6f4959ea4d564183b182626ef64c5db9 | [
"MIT"
] | permissive | jsharf/plasticity | 846427f6a9bcb86345228377f15aee87f4440418 | f9ecfc4325a2685c2d0d49a8469971dc3146212d | refs/heads/master | 2023-08-10T09:52:44.433162 | 2021-09-15T21:17:26 | 2021-09-15T21:17:26 | 107,581,817 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,565 | cc | yolov1.cc | #include "nnet/yolov1.h"
#include "nnet/convolution_layer.h"
namespace nnet {
namespace {
Architecture YoloArchitecture() {
nnet::Architecture model(kInputSize);
model
.AddConvolutionLayer(
{
448, // width
448, // height
3, // R,G,B (de... |
dc9992546d31ffe3485130ad25c670690b08e272 | f364fab1799af0e3b71c95fefa0fe6a5e0ba6bb7 | /GameEngine/src/TextureCache.cpp | 881f6b7cb04c3df547d9079aa7bee0b7043188db | [] | no_license | indresh07/Flappy-Bird | 843bda335d1870ceeb33c9178b3c397fb6f1151f | ba13af872e006a3b27232bbe445718504362d985 | refs/heads/master | 2021-01-17T23:39:37.147554 | 2017-07-29T02:42:30 | 2017-07-29T02:42:30 | 84,233,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | cpp | TextureCache.cpp | #include "../include/TextureCache.h"
#include "../include/imageLoader.h"
#include <iostream>
namespace gameEngine{
TextureCache::TextureCache()
{
//ctor
}
TextureCache::~TextureCache()
{
//dtor
}
GLtexture TextureCache::getTexture( std::string texturepath){
//finds ... |
f88a09f250b00ba7bc9786861cbf78161966a48d | 11fd93b0ca97d25d21f5fe58f33a7cb07a7df9f4 | /src/ServerAdminUi.h | c5822ef475ecfd82cfeb1639ba59d90dd440643d | [
"BSD-3-Clause"
] | permissive | membranesoftware/membrane-control | d539526139d972a3dd84ea0f757717367bb73c4f | e22498170b1a4e5793db9e7d0686969ca95fe3da | refs/heads/master | 2022-08-15T08:29:38.368208 | 2022-07-18T17:39:49 | 2022-07-18T17:39:49 | 147,160,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,509 | h | ServerAdminUi.h | /*
* Copyright 2018-2022 Membrane Software <author@membranesoftware.com> https://membranesoftware.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright... |
cedf92abec879822eab5e5d6f978b45b136bdc59 | 0636e69f7cc3a94c49d6d481c0120d168d832ebf | /Solutions/GoogleCodeJam/Africa_2011/ReverseWord/ReverseWords.cpp | 393c95951a8ab1c0c3c0a546ac66c85ef41bdcc2 | [] | no_license | TurtleShip/ProgrammingContests | 33e0e261341e8f78c3d8d3bd66bbad0f511acc61 | 2ebd93f9b3d50c10a10c8731d17193e69382ca9b | refs/heads/master | 2021-01-13T02:07:37.539205 | 2016-11-30T18:50:46 | 2016-11-30T18:50:46 | 18,936,833 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | ReverseWords.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cm... |
8217d93fddd91e0191b5e42fc8b277e42669f580 | 27db6e76c7389962ddacdeb2e0dd7297deab3342 | /Baekjoon/10823.cpp | afeb4deff31eda82ab46e5b3f45412e5a6e19565 | [
"MIT"
] | permissive | r4k0nb4k0n/Programming-Challenges | 5055dbbe09cb41754388edf02521d7cc6f52706f | 3d734902a7503f9dc49c97fe6e69e7541cd73e56 | refs/heads/master | 2021-08-15T18:08:27.523310 | 2018-11-22T12:08:40 | 2018-11-22T12:08:40 | 146,325,271 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | 10823.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <queue>
#include <climits>
#include <functional>
#include <string>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <cmath>
using namespace std;
typedef pair<int, int> _int;
// written by dj910401
int main(void)
{
... |
fd361e726b683adb4c742148d424197964dad572 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/operators/print_op.cc | 9e6c823ef1b808da9cb311bda139e76d703f783e | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 2,064 | cc | print_op.cc | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
8c2754b266b57c80ed8d9e2a7c61ca1f7ea0c3bf | 356b3665c3b7adc987e4ef0662051d21a70d576f | /tree.h | a579f8efeb02b45cdbaa098e9f6900458b7b2dcd | [] | no_license | openmailbox/opengl_forest | 34d5d31219396b37e0c99c382663643ccd555b9c | 1518cd9dfc38e7d7543e6af17807656ec0e7795d | refs/heads/master | 2021-05-27T03:30:19.431239 | 2014-05-10T13:08:11 | 2014-05-10T13:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | h | tree.h | #ifndef __TREE_H_INCLUDED__
#define __TREE_H_INCLUDED__
#include <GL/glut.h>
class Tree
{
public:
Tree();
private:
static const GLfloat mat_trunk[];
static const GLfloat mat_leaves[];
void draw() const;
void drawTrunk() const;
void drawLeaves() const;
};
#endif
|
aabd8879e80753dd9fce7ba03e32dac1ded96c00 | b85657b6858c81d309d3e2e8e407e1c816a6f930 | /RubikCubeAssignment/Cubie.h | 1fdcc5cb62437aa41ff11c5de4f0fa15ab6e2711 | [
"Apache-2.0"
] | permissive | BryanRam/RubikCubeDX9 | 08bf8c41448d1a93bc2c31937184c919dad83c95 | 217747c86d46d4eda3b9d1f6208dbe55a74e9525 | refs/heads/master | 2022-10-17T07:31:49.246426 | 2022-09-16T10:30:22 | 2022-09-16T10:30:22 | 126,257,000 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 44,960 | h | Cubie.h | #include <Windows.h> // Windows library (for window functions, menus, dialog boxes, etc)
#include <stdlib.h> // Included for the random number generator routines.
#include <d3dx9.h> // Direct 3D library (for all Direct 3D funtions).
#include <vector>
#include <map>
#include <algorithm>
#include <functional>
#include ... |
a75ca8bce9786326ddded41e4d44bf789739fbe9 | 21d3a9a9c7f047065bd137307dc6150116c32f95 | /src/Space/Hittable.hpp | 536d188eb740390b26a2cd79e22e4646efcdd4bc | [] | no_license | qualiaa/SpaceWorlds | 0a8f99dd5ebcc2fe91b7b3b20c4b85328c4e35ac | 3404d858b8a150f817df826c8447cfe4478acc1f | refs/heads/master | 2020-04-05T18:33:55.453466 | 2014-09-24T00:43:05 | 2014-09-24T00:43:05 | 23,393,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | hpp | Hittable.hpp | #pragma once
#include <chrono>
#include <Tank/System/Entity.hpp>
#include <Tank/Utility/Timer.hpp>
class Hittable : public tank::Entity
{
int maxHealth_;
int health_;
tank::Timer flashTimer, damageTimer;
int flashHalfFrames = 0;
const std::chrono::milliseconds damageTime {300}, flashTime {damageTi... |
7869f1531667b310a46883e4b465af8a082ba553 | a44380d820109813649f95651eea8590e8fd2f26 | /OSX/EHAL/include/usb_hidhost_impl.h | 7cec8045ca2c8663b6fa82b1f7de3633c6292d9d | [
"BSD-3-Clause"
] | permissive | I-SYST/EHAL | 1e8bce9083085bba75aae2314f80310a4925d815 | b1459e8dba9eeebed13f19a4b3d376603f325495 | refs/heads/master | 2022-05-14T12:59:44.041952 | 2022-03-06T04:48:21 | 2022-03-06T04:48:21 | 19,235,514 | 98 | 25 | BSD-3-Clause | 2019-01-30T10:52:08 | 2014-04-28T10:48:51 | C | UTF-8 | C++ | false | false | 3,900 | h | usb_hidhost_impl.h | /*---------------------------------------------------------------------------
File : usb_hidhost_implt.h
Author : Hoang Nguyen Hoan July 9, 2009
Desc : Generic class of Host side USB HID device access
Implementation class for USB device on MAC OS X
Copyright (c) 2009-16, I-SYST, all rights re... |
f68a4c595bbf4cab90c3f099fedbfb258566df23 | 7e71a399231fa331d7b7367486a1c48e5de1677c | /tests/ExternalIndexerTest.cpp | bc6941e70351c17ae7bfeea68dbeed7a2f9bf6e2 | [
"BSD-2-Clause"
] | permissive | sthagen/mattgodbolt-zindex | 777f4e0dd4bbe78ff6b509b7ae38ed21d9782925 | 8a56c7e8d5620126d1a0122c933810ef59f43654 | refs/heads/master | 2022-11-14T10:26:25.626257 | 2022-11-01T16:19:32 | 2022-11-01T16:19:32 | 225,203,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | ExternalIndexerTest.cpp | #include "ExternalIndexer.h"
#include "catch.hpp"
#include "CaptureSink.h"
#include "CaptureLog.h"
using vs = std::vector<std::string>;
TEST_CASE("external indexes", "[ExternalIndexer]") {
CaptureSink sink;
CaptureLog log;
SECTION("Simple test") {
ExternalIndexer indexer(log, "cat", " ");
... |
31ffa89ac3b1c72c1d5e317f8f6b328e56eb799a | bed3ac926beac0f4e0293303d7b2a6031ee476c9 | /Modules/Filtering/ImageGrid/test/itkBinShrinkImageFilterTest2.cxx | df0d090acff1065f2f00f1d50843a01c42033ef3 | [
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"SMLNJ",
"BSD-3-Clause",
"BSD-4.3TAHOE",
"LicenseRef-scancode-free-unknown",
"Spencer-86",
"LicenseRef-scancode-llnl",
"FSFUL",
"Libpng",
"libtiff",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
... | permissive | InsightSoftwareConsortium/ITK | ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb | 3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1 | refs/heads/master | 2023-08-31T17:21:47.754304 | 2023-08-31T00:58:51 | 2023-08-31T14:12:21 | 800,928 | 1,229 | 656 | Apache-2.0 | 2023-09-14T17:54:00 | 2010-07-27T15:48:04 | C++ | UTF-8 | C++ | false | false | 3,388 | cxx | itkBinShrinkImageFilterTest2.cxx | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
8871c41108a632588089e9cbb90fde10425db4c8 | 36ca22161453685aaf428a0dddfbb966968a59c1 | /framework/Manager/AudioManager.cpp | 6b3e246b9a7eedb975f440c77f398e98286ae2da | [] | no_license | romiltendulkar/The-Seeker | d5a55225d3b089020428a6402a646c665a4793c4 | 405113a830f73fd6d9f73e41d1154201a846bf73 | refs/heads/master | 2022-06-13T03:05:35.285699 | 2020-05-12T06:05:47 | 2020-05-12T06:05:47 | 263,240,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | cpp | AudioManager.cpp | /**
* @file AudioManager.cpp
* @author Romil Tendulkar
* @date 10/31/2019
* @brief This class is used to interact with the Audio System class that implements various FMOD functionalities
* Copyright (C) 2019 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prio... |
982bdd8512d7b7a3f6b4800a2a4e2d5e72aeaa98 | 8c76bae46db42fa6c282fa591f1072b204b8e536 | /src/lib/base/Node.hpp | ecce05eafe33f7a61a68c05ad5be9f278e50c0a6 | [
"MIT"
] | permissive | cantordust/cortex | 77acde5423c861bd27d090f67d100e4d1842a07c | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | refs/heads/master | 2023-04-11T15:35:52.514106 | 2017-11-30T06:04:52 | 2017-11-30T06:04:52 | 61,293,678 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,147 | hpp | Node.hpp | #ifndef NODE_HPP
#define NODE_HPP
#include "Link.hpp"
#include "Activation.hpp"
#include "GRF.hpp"
namespace Cortex
{
struct NodeID
{
NR role;
uint idx;
inline bool operator == (const NodeID& _other) const
{
return (role == _other.role && idx == _other.idx);
}
friend std::ostream& operator << (std:... |
1af6b9c2cdad3794460db02a00d4f8ac0f70fa61 | 8f608437957f7c9eb03f0ee00457e10282059ec8 | /CodeChef/CAPIMOVE.cpp | dc2390f4ad59f9c4f2abf3c0849f7389bba343d9 | [] | no_license | npkhang99/Competitive-Programming | 0ddf3cfcfc13825f7fadaf5b53fdef16ca77522f | 1a5e3799e5855996aa56688680765511b0de7281 | refs/heads/master | 2023-06-28T15:17:44.489901 | 2021-07-30T05:31:15 | 2021-07-30T05:31:15 | 66,803,586 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | CAPIMOVE.cpp | // CodeChef
#include <bits/stdc++.h>
using namespace std;
const int N = 50009;
int n;
pair<int,int> p[N];
vector<int> a[N];
int main(){
int TC; scanf("%d",&TC);
while(TC--){
for(int i=1; i<=n; i++)
a[i].clear();
scanf("%d",&n);
for(int i=1; i<=n; i++){
scanf("... |
e185e9b1f85b1abfc988e9140fa07cdc4f8548a6 | 3fa5184b01b152c5fb0f7b23ada556bcc9105403 | /final_code_for_the_project.ino | bcccd76a3d1bb4db9746f0ba6dc845907e462762 | [] | no_license | ray01111989/Security-System-using-Arduino-Bluetooth-Camera-Project | 00bb4eb3934278bda4da1033bb66956b39ddf415 | 3b1f5c954190b64c374ebf44dec3356c9ca2a231 | refs/heads/master | 2020-11-25T04:20:59.895935 | 2019-12-17T03:01:26 | 2019-12-17T03:01:26 | 228,500,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,784 | ino | final_code_for_the_project.ino | /*
Security System using Arduino Bluetooth Camera Project
This project shows an application on 1Sheeld's camera shield.
By using this project, you can track whether anything stranger
has entered your house and capture his photo by using camera
shield from 1Sheeld.
*/
/* Include required shie... |
e51047b029da53c09a87e984bc2cc71ea836529d | 5263fdafefd4214ab2c880718d774b971d00b299 | /ePub3/xml/utilities/io_win.cpp | b205fe2603c91e1159bd682a6a08ab5d5e3201d0 | [
"BSD-3-Clause"
] | permissive | youboox/readium-sdk | b850f551d93553c1e9ee81705e25d8027c2a6af3 | 571a275ee283fb51cef50700ab56a7a48db19023 | refs/heads/youboox-master | 2021-05-04T20:29:36.965545 | 2019-10-11T15:50:39 | 2019-10-11T15:50:39 | 119,815,292 | 1 | 0 | BSD-3-Clause | 2019-10-11T15:50:43 | 2018-02-01T09:43:24 | C++ | UTF-8 | C++ | false | false | 15,376 | cpp | io_win.cpp | //
// io_win.cpp
// ePub3
//
// Created by Jim Dovey on 2013-09-24.
// Copyright (c) 2014 Readium Foundation and/or its licensees. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
// 1. ... |
adfc989f6e511efec6c463f8f7bfbcf7df75603e | 022ddbfd08623b855f50331861309d5429753d99 | /分类/动态规划/完全背包/main.cpp | d64cd1623fe498074aedfbcb56ab84a20f39e643 | [] | no_license | xluos/ACM | 06d6881dac8c12e6e0ded66fc5da43974e3520e7 | e90707178cc203e0e36092dc73bdc807c7daa246 | refs/heads/master | 2020-06-21T07:20:14.584736 | 2018-03-20T13:26:53 | 2018-03-20T13:26:53 | 94,203,765 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | main.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#define max(a,b) (a>b?a:b)
using namespace std;
int f[50005],v,c[2005],a[2005];
void CPack(int cost,int weight)
{
for(int i=cost;i<=v;i++)
f[i]=max(f[i],f[i-cost]+weight);
}
int main()
{
int w;cin>>w;
while(w--)
{
i... |
24f9974b60612a1bcfeeca549a225d8f971e458a | d1938e22e60ddbd858920514e6daaa4a6fc27917 | /41~60/60-第k个排列/getPermutation.cpp | d2c5d419d7661411f96cdbdf665313c410559f23 | [] | no_license | Qoo00/leetcode | e4af7acbbac84d5cbfa5274cfe26fbeae0870f90 | 97bbe90ed30647abbc577acaa0f6a7af99b73605 | refs/heads/master | 2021-04-23T14:00:34.085826 | 2020-03-22T18:11:12 | 2020-03-22T18:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | cpp | getPermutation.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
/*
执行用时 :16 ms, 在所有 C++ 提交中击败了99.61%的用户
内存消耗 :12.3 MB, 在所有 C++ 提交中击败了5.08%的用户
*/
class Solution {
public:
string getPermutation(int n, int k)
{
string ans;
if (n == 0)
return ans;
else if (n == 1)
return "1";
... |
292f4c759db172ee8d2dde49f624fa5c03a045da | 8ff59463f2fac8f94e686233c02713767bdca008 | /Mushroom.h | 9e4d26a39d5c11affc1da9d23a29f854b5517f3b | [] | no_license | vivianh1234/Amusement-Park | 59c81d7373e42b303505a8303a9726cff227143c | a5f3db6f70f9470256d4af8bc8107ac65a8c84da | refs/heads/master | 2023-03-22T02:41:39.263821 | 2021-03-13T00:46:12 | 2021-03-13T00:46:12 | 345,273,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | Mushroom.h | //Mushroom.h: Header file for Mushroom class
#include <FL/gl.h>
#include "TargaImage.h"
class Mushroom
{
public:
Mushroom(void);
~Mushroom(void);
bool Initialize(void);
void Draw(void);
void Draw(float base_height, float base_rad, float top_rad, float x, float y, float z);
void DrawHalfSphere(int scaley,... |
6dbb01a9672575df582089e8227eac0688bcbc11 | 6628bdabc62f9846c377652174c17aab40950d97 | /Fitler.cpp | 72687ebcd2f2551a34e6d6002acbc510d5b661c5 | [] | no_license | davidanew/synth1_vs | 97d155d862a56eb6e186289b6005dfbb96bed046 | b9b28fb00702865775db9c49473111cccb047562 | refs/heads/master | 2020-06-23T02:16:52.154311 | 2019-08-06T08:04:27 | 2019-08-06T08:04:27 | 198,473,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | Fitler.cpp | #include "Filter.h"
#include "math.h"
//See header for explanation
//Constructor only sets parameters
Filter::Filter(float cutoff, float theta){
//const float term1 = (float)-2.0*pi*((float)cutoff/(float)sample_freq);
//const float r = exp((float)-2.0*pi*((float)cutoff/(float)sample_freq));
//volatile flo... |
fb04c59d3c953f33ab6acfbc5750aee96b5cb17a | d347c093172f842a151e5a5dee77bab8e1ca3c9b | /02_WeatherStation/WeatherData.cpp | 50bd0f2789258d1ed2647d02a5d9eecc6917318d | [] | no_license | alisa-efremova/ood2016 | 42042bee5c87f99290451b8aee20cc9cccdea776 | fe9c5977339fc3ccb5e49531e41d5726774d87b7 | refs/heads/master | 2021-06-18T18:26:36.069506 | 2017-06-08T15:07:09 | 2017-06-08T15:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | WeatherData.cpp | #include "stdafx.h"
#include "WeatherData.h"
double CWeatherData::GetTemperature() const
{
return m_temperature;
}
double CWeatherData::GetHumidity() const
{
return m_humidity;
}
double CWeatherData::GetPressure() const
{
return m_pressure;
}
WeatherStationLocation CWeatherData::GetLocation() const
{
return m_l... |
7a44c2148996fb701ee23a76be1aaaf6f2a0bb9a | c30c3466c34c41b49e8c8b2791e0d44ae6277cb2 | /Chase/src.cpp | aa68fe03f8ac202bdaf1e5fa6bcfb0846c3334e1 | [] | no_license | theAnton-forks/Competitive-Programming-Portfolio | 784eb9ff5441f1a81f5501d690f9094698bc34c7 | fb3f099d7ecc37b9117d64faa4c1bdf89e1f18d2 | refs/heads/master | 2022-12-14T03:18:04.941318 | 2020-09-03T05:22:46 | 2020-09-03T05:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,994 | cpp | src.cpp | #include <bits/stdc++.h>
typedef long long ll;
const int maxn = 1e6 + 100;
int val[maxn];
int col[maxn];
int level[maxn];
std::vector<int> adj[maxn];
ll res = 0;
int main(){
std::ios::sync_with_stdio(false);
int t;
std::cin >> t;
for(int test = 0; test < t; test++){
int n;
std::ci... |
7d5579e4b151cd41c3d96b5c8de6c05a9c68cb95 | 4286765dc67cbd2fe78efed4b91de4432f9adeb3 | /Porfireva/war/src/game.cpp | e50d6de2d240913d9a1caacad88e91498c269a4a | [] | no_license | Garanyan/msu_cpp_spring_2017 | 64293be72b3bea7ac6cfcb21ae148053f36bc8df | 9e3df32c0e0b71c15e3995cf2bf731a4f7270e5d | refs/heads/master | 2020-04-01T23:51:17.836329 | 2017-05-21T17:11:01 | 2017-05-21T17:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | cpp | game.cpp | #include <iostream>
#include "../include/armor.h"
#include "../include/arsenal.h"
#include "../include/weapon.h"
#include "../include/unit.h"
void fight(Unit& one, Unit& two)
{
int flag = 0;
while(true)
{
flag = one.Attack(two);
if (flag < 0)
{
if(flag == -1)
... |
c1283b680193c936f27dae60cad6ed5bcdeb31af | 9fa7d9070ec134a72798a65124f4c9ac73d4f011 | /os-sim/Stepper.cpp | c57a03865bda569936ff3307785fd43967ccd9d0 | [] | no_license | emcej/os-sim | fa48f998f8977a23b0d2a914d61d86ca47ac80dc | cf720a0b578ee55111b580042dbb351b602776c2 | refs/heads/master | 2016-09-06T11:42:03.887239 | 2015-01-14T18:20:48 | 2015-01-14T18:20:48 | 25,165,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | Stepper.cpp | #include "Stepper.h"
/*
Stepper::Stepper()
{
}
Stepper::~Stepper()
{
}
void Stepper::Step()
{
std::string message;
std::cin >> message;
if (message != "") {}
//shell.parse(message);
}*/ |
94b6b75f334561269c9a8c01d4ef2062fd829b0a | f59cb07464c690fe9e9a28fa9eb8e561537c631f | /frameworks/runtime-src/Classes/AI/AI.h | acf69102e4c7140d8ba6ef32fe28ca75810b71b4 | [] | no_license | yanjiech/boids | f041d06fe73c4280ef9130713ec1b05f824dc1cc | c3b2fa780f0d9292bc7e58881d8181a3a90a370c | refs/heads/master | 2021-01-15T21:02:45.560045 | 2015-07-17T11:03:50 | 2015-07-17T11:03:50 | 32,959,367 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,410 | h | AI.h | #ifndef __Boids__AI__
#define __Boids__AI__
#include <set>
#include <string>
#include "cocos2d.h"
#include "AIUnit.h"
#include "../Macro.h"
class AI
{
friend class AIUnit;
friend class Border;
friend class Terrain;
friend class NavMesh;
friend class Path;
friend class ReplayToSave;
friend cla... |
c78b537e9bb70858442f9806df5c9750ea0c3a7d | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Calibration/EcalCalibAlgos/interface/EcalPhiSymInfo.h | 65ca63fc0f6bb88781df22cf13e33838329070ac | [
"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 | 3,069 | h | EcalPhiSymInfo.h | #ifndef Calibration_EcalCalibAlgos_EcalPhiSymInfo_h
#define Calibration_EcalCalibAlgos_EcalPhiSymInfo_h
/** \class EcalPhiSymInfo
*
* EcalPhiSym calibration lumi/run based information
*
* Original Author: Simone Pigazzini (2022)
*/
#include <vector>
#include <cstdint>
#include <cassert>
class EcalPhiSymInfo {... |
745d456de6c1d929e5a1e7e9f98a7b8f1a21d2b9 | b36afc58bf5cf42b104a3d997c8514d09d0ae755 | /MultiClient/app/src/main/cpp/common/WinError.h | d52911edce00b60928acf19ea2f95d598b21f939 | [] | no_license | liuchi2016/six | c2e541b226a30ba0635402b4831251b46ac5f0a0 | f3dadf188f26c467b6dae986a44648ad0fc27c5a | refs/heads/master | 2021-08-22T03:53:44.785406 | 2017-11-29T06:25:41 | 2017-11-29T06:25:41 | 104,585,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | WinError.h | #ifndef _LINUX_ERROR_H_2015_06_09_LC_
#define _LINUX_ERROR_H_2015_06_09_LC_
#include "unistd.h"
#include <string>
#include <errno.h>
inline std::wstring ResolveErrorW()
{
std::wstring wserror = s2ws(strerror(errno));
return wserror;
}
inline std::string ResolveErrorA()
{
std::string serror = strerror(errno);... |
74cc26e985c48a65b55c35d1a257f49381de7e85 | 416caf5a79e452e70a3344896311fd97391914fa | /src/nwg_protocolcodec.h | b39021d1fad0d19195e89d20e818851fc164c748 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ynov/nwg | abd063c9709d9c7ec9e71f3be602c0f6ebe1ab70 | 31eb31bb73cc7a71814248c68d66ff4a5febede7 | refs/heads/master | 2016-09-06T04:15:47.036453 | 2015-08-05T16:38:42 | 2015-08-05T16:38:42 | 33,922,702 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | nwg_protocolcodec.h | #ifndef NWG_PROTOCOLCODEC_H_
#define NWG_PROTOCOLCODEC_H_
namespace Nwg
{
class MessageBuffer;
class ProtocolCodec
{
public:
ProtocolCodec();
virtual ~ProtocolCodec();
virtual void transformUp(MessageBuffer *in, MessageBuffer **out) const = 0;
virtual void transformDown(MessageBuffer *in, MessageBuf... |
404fb8f2618dd0da2e8324b38fc5875f5a26839a | 13bc1bef1e25f84cb240677f0fbf5d4b1b6f8463 | /util/godot/core/typed_array.h | 8bb807a0df53cb92859f5f7c20e22ab7139c84ac | [
"MIT"
] | permissive | Zylann/godot_voxel | 8486e8de2e36c48b94f254927c09b16e5ddb5829 | 5be2ec8243bf26b1efc2cb2488c7a4617126fad4 | refs/heads/master | 2023-08-17T04:27:37.356056 | 2023-08-11T20:42:51 | 2023-08-11T20:42:51 | 57,851,492 | 1,935 | 243 | NOASSERTION | 2023-08-02T19:08:34 | 2016-05-01T21:44:28 | C++ | UTF-8 | C++ | false | false | 1,334 | h | typed_array.h | #ifndef ZN_GODOT_TYPED_ARRAY_H
#define ZN_GODOT_TYPED_ARRAY_H
#if defined(ZN_GODOT)
#include <core/variant/typed_array.h>
#elif defined(ZN_GODOT_EXTENSION)
#include <godot_cpp/variant/typed_array.hpp>
#endif
#include "../../span.h"
namespace zylann {
template <typename T>
inline void copy_to(TypedArray<T> &dst, Spa... |
2448e0a7fb86ae668671fc08dcbe43e743e10288 | c489e196b0c5997ddb0401f88ebcfcde1b7ee6ad | /All About C++/chap3drill/main.cpp | 272d59c374be9ef8be94e008171025608418158e | [] | no_license | zaman-projectxix/C-plus-plus | 26abc9a27baade0e4a1739d84c664892c91deea8 | f5a67eff81f90aaedb6d78a42a7b3d4f35d35da1 | refs/heads/master | 2021-01-19T02:14:09.048558 | 2015-06-11T18:45:18 | 2015-06-11T18:45:18 | 37,304,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
int main () {
string first_name = "";
cout << "Enter the name of the person you want to write to\n";
cin >> first_name;
string another_name;
cout << "Enter the name of another friend... |
44017ab48d8e2443e80ea22f99367334a75317bd | f94da7ec05e92e1a8593908143606e545b64c339 | /Visual Studio 2013/projects/AP-Lecture2-Q14/AP-Lecture2-Q14/Main.cpp | 3085b35a2c14de131eece6800bdcdf3f81ff7ebd | [] | no_license | jonhassall/AdvancedSoftwareEngineeringSOFT40051 | 4eaafa655335878fb108c56ec0d59ef11b9481e8 | 968c2df2aa670193313c1b157a4da6dadff15334 | refs/heads/master | 2016-09-03T06:50:46.398250 | 2014-12-01T21:44:13 | 2014-12-01T21:44:13 | 26,221,759 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | Main.cpp | // File: main.cpp
// Version: V1.0
// Date: 15-10-2014
// Name: Jonathan Hassall
// Lecture 2 - Question 14
#include <iostream>
using namespace std;
int main()
{
//Number of lines required
int n = 4;
int current_width = 1;
int i;
int j;
for (i = 0; i < n; i++)
{
for (j = 0; j < curren... |
7dcbfdc0f86bd6be5f9badb5465a8ecf400e4618 | 2f0029ed99079efa2e08cae3e5266c02e04a4144 | /PongArkanoid/game/NetServer.cpp | 52d0831ee3b1239e51715346412a868440b84056 | [] | no_license | NicoPast/ProyectoRVR | 35b8ae0bb9d84ea93dc71c14e9042654edfe01c6 | 9fdbfb73fe56d31e5b8cd0208bbf962586748a57 | refs/heads/main | 2023-05-28T04:29:14.699702 | 2021-06-22T21:54:10 | 2021-06-22T21:54:10 | 377,807,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,526 | cpp | NetServer.cpp | #include "NetServer.h"
#include "GameMessage.h"
#include "Logic.h"
#include <chrono>
#include <unistd.h>
Match::Match() : matchId(-1), server(nullptr), l(this){
}
Match::Match(int mId, Socket* serv) : matchId(mId), server(serv), l(this){
}
// Match::~Match() {
// if(t){
// t->join();
// delete t... |
7829558f916c27ec8aa9127b22f45969d5c05119 | b76b5dbf15c71fbd678c15dc8b218148bff83929 | /backtostart/backward.cpp | 77ae9d3ee8d6573194461032d95df76eba76febc | [] | no_license | zerrorzero/Basic-exercise | 9fcf3f21506923f1fda2353fc8191a9553f79b1a | c14484b035432d2876dbab0ee5b6241333e0da1a | refs/heads/master | 2020-03-27T02:57:50.865738 | 2018-08-23T09:18:38 | 2018-08-23T09:18:38 | 145,829,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | backward.cpp | #include <stdio.h>
#include <string.h>
#include "malloc.h"
int main()
{
char sr[1024];
int a;
printf("please chose whatever you want:\n[1]string in cmd \n[2]txt file \n");
scanf_s("%1d",&a);
if (a!=1 && a!=2)
{
printf("please input correct numb");
}
fflush(stdin);
switch (a)
{
case 1:
{
printf("please ... |
2c5f3d0784f5f66c8b965115c5a970a62c06a05c | 6d01e5afb871ddeb85d666e2218c7a03ee45ae3b | /drivers/I2C_SPI/AusExBMP180/examples/AusExBMP180/AusExBMP180.ino | 158958de033910259b2855c8b2615ecb11a87dea | [
"Apache-2.0"
] | permissive | houtbrion/AusEx | 7cc4fbd604a058a8ad62bda368c42dd161be7c07 | 632ab53c592e744e1ed82f726d44cac0ceefdc86 | refs/heads/master | 2022-02-13T03:26:06.407462 | 2022-01-29T10:56:27 | 2022-01-29T10:56:27 | 135,793,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,465 | ino | AusExBMP180.ino | #include "AusExBMP180.h"
AUSEX_BMP180_CLASS AusExBMP180=AUSEX_BMP180_CLASS(&Wire);
unsigned int count=0;
void setup()
{
Serial.begin(9600);
AusExBMP180.begin();
sensor_t sensor;
AusExBMP180.getSensor(&sensor);
Serial.println("---------------");
Serial.print("Sensor name :") ; Serial.println(sensor.n... |
43180b31f96d45fc74a7ffb907d82327294f7c4b | 930bea86dde3e7a397c755985f1e4ede45eb2347 | /SuspensaoDeServico.h | 6a4373548f1347a9994401c547337122d772c67c | [] | no_license | OtavioPellicano/RegrasDeDescarte | b96d17719076a491eff470198847d85c43c2493a | abad2c808c8f2f1621920d6985abcc7b7b003004 | refs/heads/master | 2021-04-15T17:21:40.088691 | 2018-04-10T14:03:56 | 2018-04-10T14:03:56 | 126,219,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | h | SuspensaoDeServico.h | #ifndef SUSPENSAODESERVICO_H
#define SUSPENSAODESERVICO_H
#include "validade.h"
#include <string>
#include <QDate>
#include <unordered_map>
namespace opmm {
using std::string;
using std::unordered_map;
/**
* @brief The SuspensaoDeServico class
* Caso o voluntário tenha sofrido alguma suspensão no
* seu serviço p... |
2cd2187e7d7a16dc04a2e1943855ecd71f3bf9a8 | c8aa6afffbbc9b7639ab73b6f66f9507d25f2dbd | /TypeList/TypeList.h | f63f2f477c04e7f95637779e45e34b93f7daaa28 | [
"Apache-2.0"
] | permissive | Pharap/PureMetaFunctionalProof | 7d7788e8baa5881782fbe0a692a0288df4d50707 | aae7333301b008194e29c43e2b5c3924f1aa73fe | refs/heads/master | 2020-12-30T14:12:16.698229 | 2017-05-16T01:35:02 | 2017-05-16T01:35:02 | 91,284,047 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 473 | h | TypeList.h | #pragma once
template< typename ... Ts > struct TypeList {};
using EmptyTypeList = TypeList< void >;
#include "Utils.h"
#include "Cons.h"
#include "Null.h"
#include "Length.h"
#include "Head.h"
#include "Tail.h"
#include "Last.h"
#include "Init.h"
#include "Reverse.h"
#include "Concat.h"
#include "... |
3ac8d97246f8d483f666353aa82b6afcdcbdeac5 | 5de74dea4423b05e4bc12252aeec66fe9310364a | /hackerearth/3.cpp | 4c91b54da82e6a8fbe001c6a500b28cee047d8ba | [] | no_license | Sivaramakrishnan1998/Algorithms | f1d1599d59d7d6f99cfd831d0242081b0d348162 | 3bffd31b79a828423b9774aced63cee6ae7adecb | refs/heads/master | 2021-09-28T08:26:24.528717 | 2018-11-16T05:01:03 | 2018-11-16T05:01:03 | 120,369,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | 3.cpp | // sort the string in ascending order
// construct substrings
// search given key is present in substrings if present count++
#include <bits/stdc++.h>
using namespace std;
int main(){
string input;
cin>>input;
std::set<string> vec;
sort(input.begin(),input.end());
//substring construction
for(int out=0;ou... |
6c6b6801f6485f56edcbe6e6698ef55f8f08438a | aaefcb0efdb5c0b59d4c3008723949d66d28ddd9 | /Com'O/Com'O MWITS 3 2014/Contest/Day 3 - 22-4-58/Round 2/B - Logo Turtle/B - Logo Turtle.cpp | cb73ee81fec912b1bd53fcce8ee692fc88abd7fa | [] | no_license | UtopiaBeam/competitive | cb80aaee773e215eab68f172c173e2ec857b90ff | bf445ecb56c80b35fa915ca7bf0925d398a9c4d7 | refs/heads/master | 2020-03-28T20:25:33.124594 | 2019-10-19T03:43:20 | 2019-10-19T03:43:20 | 149,068,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | cpp | B - Logo Turtle.cpp | #include<cstdio>
#include<cstring>
int n,d[4],pos=0;
char a[105],dp[105][55];
int main(){
scanf("%d %s",&n,a);
}
|
d3759e3ef8c091486f99fffc110ab8859d5aa62c | b800fcf6bc5b78a5f84c9da4c3bab74cb8693a3d | /pgm7/Output.cpp | 44cc6cb9586596adf3b9d5d390d4fafda8295f83 | [] | no_license | billymeli/CS311 | 15f3f42259cd5df0c2cf6cd1521c21456225569f | 47f4d26963a85f42b31b45bac71bf56837ec5227 | refs/heads/master | 2021-05-09T16:11:37.693620 | 2018-05-02T01:17:39 | 2018-05-02T01:17:39 | 119,101,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | Output.cpp | // File Name: Output.cpp
// Author: Billy Meli
// Student ID: w882x457
// Assignment Number: 7
#include <iostream>
#include <fstream>
#include <ctime>
#include <string>
#include "Output.hpp"
using namespace std;
using namespace ContainerTemplate;
void Output::outputTickets(const Array<Ticket>& tickets)
{
ofstream ... |
69e88819bd9e83bd5c5d5dcc3d91d6dc3a3cc66b | 08647f47495e8ce1e71b07faa81af0e01af95253 | /stable/smnet-cpp/smnetjs/SMRuntime.cpp | 72279212c74ab6d8abd59a2cb4b781a25f05880a | [] | no_license | taliesins/spidermonkeydotnet | a501b69b9117e39167af71f5ba00615e2f319236 | 734b27034323672192a59383476bf8c846ccc20e | refs/heads/master | 2016-09-10T14:56:22.495133 | 2013-07-17T18:57:35 | 2013-07-17T18:57:35 | 8,103,743 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,102 | cpp | SMRuntime.cpp | /*
= Singleton Development License =
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* This is a license for research and development use only, and does not
include a license for commercial use. If you desire a license ... |
26a68a7ee65078bdac442173e24bce4a88653c81 | 0b4c6a4c1273a08d1bf466bd9aa24a05b8bbc5b4 | /lane_detector/src/lane_detector_core.cpp | c8e7d2db3a6802abdf7cb668d1598768ed1d04be | [] | no_license | qiyutao/carcontrol | 422bef2470c9a184e3e43167f45e6fc2a9240490 | aa02e17cc496508fa06f4de3c0bb341f80560fc8 | refs/heads/master | 2020-03-26T20:55:10.088852 | 2018-08-20T02:15:10 | 2018-08-20T02:15:10 | 145,354,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,381 | cpp | lane_detector_core.cpp | #include "lane_detector_core.h"
LaneDetectorCore::LaneDetectorCore(ros::NodeHandle &nh)
{
image_raw_sub_ = nh.subscribe("/image_raw", 20, &LaneDetectorCore::image_raw_cb, this);
image_transport::ImageTransport it(nh);
lane_result_publisher_ = it.advertise("/detect_lane_image", 10);
mergeImage_publishe... |
35fec8d6d7102dfac2816344d118af734d1015ef | 569f67b18daecd4afb59356ca6cdd660dbe19466 | /PowercastSolutions/libraries/PowercastReceiver/PowercastControlParameters.cpp | c060e8117cc9d4ea1d725af409d2494ad2379289 | [] | no_license | michalg9/WPT | 95f37e5fdb1cf2bb771bb669dea268fa26bdbe6f | 6a680585e3c5dad82d751c05b0cd58cfbad34268 | refs/heads/master | 2020-04-05T22:55:18.859710 | 2014-12-15T23:06:06 | 2014-12-15T23:06:06 | 28,058,750 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | PowercastControlParameters.cpp | //#include "PowercastControlParameters.h"
//
//ExperimentThresholds::ExperimentThresholds() {
// commThreshold = TX4_RSSI_THRESHOLD;
// powerThreshold = RX4_VOLTAGE_THRESHOLD;
//}
//
//void ExperimentThresholds::setCommThreshold(byte threshold) {
// Serial.println(F("Communication threshold change"));
// commThreshold ... |
71f968760881456cbe0c477a681755352d6c041d | e62a452adc71e4137339c65eda57c43c398224f6 | /src/K_point/k_point_set.cpp | 0871dfff38e8b65f818647832c8d83f8424b2594 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | oschuett/SIRIUS | a3b605f90a3d59f2f4cc5eed7c58550767efe448 | 8725bb9bc56d7655df9e02b2a511cb63def29d85 | refs/heads/master | 2021-02-15T05:24:01.229590 | 2020-02-26T14:28:34 | 2020-02-26T14:28:34 | 244,866,626 | 1 | 0 | BSD-2-Clause | 2020-03-04T10:04:24 | 2020-03-04T10:04:23 | null | UTF-8 | C++ | false | false | 17,689 | cpp | k_point_set.cpp | // Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, ... |
a87890df68afe931951e01ef943c740818b962aa | 120a1e22be9d5fcc78a1d1cab723da460e22d71e | /tempLogger/tempLogger.ino | 93205fa0da77f6609f5b8d68de779cac41a5a049 | [] | no_license | poxika/HA | a0f7c720fdd47966d407d30f62adc926185b0c92 | d91cfc8dccb899121557d9959eb5d44e3bd725be | refs/heads/master | 2021-01-20T12:45:15.664869 | 2013-03-10T18:31:00 | 2013-03-10T18:31:00 | 3,549,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,730 | ino | tempLogger.ino |
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SPI.h>
#include <Ethernet.h>
#define DEBUG
#include "tempLogger.h"
#define RF_PIN 8
#define ONE_WIRE_BUS 2
#define GREEN_LED 6
#define RED_LED 7
#define LC1 0x8E
#define LC2 0xF2
// Setup a oneWire instance to communicate with any OneWire devices (not... |
fdfb30ca0c30e6e1f4f03b74ad210af7764f6fcb | 9385b8fc0ecbebc14a269c3b6f2b8911c06e793b | /RRT algorithm/Nodes.h | 7408e4c82c2c9363b5c0e86a20a6020f4000253d | [] | no_license | ali-alaei/RRT | 80ce975338143c10c3932f993e58edda7f4a50ed | 004392b38f714523f0b0ccdf0a80dbfd0b29d80f | refs/heads/master | 2021-01-11T01:25:57.024956 | 2017-01-22T13:30:50 | 2017-01-22T13:30:50 | 70,707,396 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | Nodes.h | #ifndef NODES_H
#define NODES_H
class Nodes
{
public:
Nodes(int, int, Nodes*);
~Nodes();
int getX();
int getY();
Nodes* getFatherNode();
void setFatherNode(Nodes*);
void setX(int);
void setY(int);
bool getIsReached();
void setIsReached(bool);
private:
bool isReached;
Nodes* fatherNode;
int x;
int y;... |
8228ce660f06e995f585c9096bb2c699763e73ac | 78f8fb239ca069dcfa2588f2be4c88ccd66495c8 | /AgnosLupiProto/FireForest.cpp | fc1bc6181002cda499e25495faef4c7d77656555 | [] | no_license | UChervet/AgnosLupi | 219bb602d53efa5a8c0c0928bef31f564f2808eb | 0b1d23d451b23e509c8e12521b3b092b068af797 | refs/heads/master | 2021-01-19T05:01:03.000490 | 2017-06-21T12:20:26 | 2017-06-21T12:20:26 | 87,408,491 | 2 | 0 | null | null | null | null | ISO-8859-13 | C++ | false | false | 3,346 | cpp | FireForest.cpp | #include "FireForest.h"
#include "Organism.h"
#include "Grid2D.h"
#include <stdlib.h>
#include <stdio.h>
#include "string.h"
FireForest::FireForest()
{}
FireForest::FireForest(int w, int h, int nbStep, int densite, int probaPropa) : Simulation(w,h,nbStep), m_densite(densite), m_probaPropa(probaPropa)
{ }
void FireFo... |
e236d462d2276323e06da33316bbb133ad5e4e24 | a1820c9f7c685ff6b75cc66fac17a672dc8a7447 | /src/babel/python.cpp | c6ca6563b822c434894edf796dc0a2ee67e8025a | [
"MIT"
] | permissive | kratsg/awkward-arrow-cmake-pybind11 | 7de4f6d71298f0254dbca07556cb572d20bc3972 | 2dec45f2be3d4f399e92d7b86b38dd740a26e6cd | refs/heads/main | 2023-08-19T06:15:40.653225 | 2021-10-04T18:38:34 | 2021-10-04T18:38:34 | 376,901,576 | 0 | 1 | MIT | 2021-10-04T18:38:35 | 2021-06-14T17:15:49 | C++ | UTF-8 | C++ | false | false | 2,834 | cpp | python.cpp | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <Python.h>
#include <iostream>
#include <arrow/python/pyarrow.h>
#include <arrow/array/builder_primitive.h>
#include <arrow/array.h>
#include <arrow/compute/function.h>
namespace py = pybind11;
using DoubleArray = arrow::DoubleArray;
using Array = arr... |
2a097d40ec75144fd4b300f7aed34bebba35ceb9 | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/CTaskSimpleInAir.cpp | 71c1cbe47f92c311a752fd7b0830091b448ab4d3 | [] | 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 | 319 | cpp | CTaskSimpleInAir.cpp | #include "CTaskSimpleInAir.h"
CTaskSimpleInAir::CTaskSimpleInAir(bool bUsingJumpGlide, bool bUsingFallGlide, bool bUsingClimbJump)
: CTaskSimple(plugin::dummy), m_timer(plugin::dummy)
{
plugin::CallMethod<0x678CD0, CTaskSimpleInAir*, bool, bool, bool>
(this, bUsingJumpGlide, bUsingFallGlide, bUsingClimbJump);
} |
5075e1a0c378056d15fc87dc77aa69abedc192ad | b847a338dcf0d387d003fd9cbde80044db7e190c | /libgalois/test/range.cpp | fa724e4057db512a489a0d4b8d450ceb977cfe11 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | swreinehr/katana | 223b5818b9ac33ed07d5516db95c6278781b9e09 | 9b4eef12dfeb79e35aa07a3a335ce35b3e97c08d | refs/heads/master | 2023-02-09T08:30:58.669704 | 2021-01-02T03:47:01 | 2021-01-04T20:20:48 | 288,578,716 | 0 | 0 | NOASSERTION | 2020-08-18T22:38:10 | 2020-08-18T22:38:09 | null | UTF-8 | C++ | false | false | 973 | cpp | range.cpp | #include "galois/Range.h"
struct LocalContainer {
using iterator = int*;
using local_iterator = int*;
using value_type = int;
iterator begin();
iterator end();
local_iterator local_begin();
local_iterator local_end();
};
struct StandardContainer {
using iterator = int*;
using value_type = int;
i... |
8eccc8b71ccf2f5c5abd4115515d876ddaeae043 | ce28ad06be23c6d76bd85f23a30b22f822d4f504 | /include/QtMWidgets/private/cursorshifter.hpp | ed54b625ae7ec44087bf6c9cd5216b372a91077d | [
"MIT"
] | permissive | pandygui/qtmwidgets | 3333006fc00c0532dc746871eb7f34f8cf9c6738 | d046bae25c84d4d81d38a6042be406f1433c0aba | refs/heads/master | 2021-05-10T11:39:52.653881 | 2018-01-18T06:21:22 | 2018-01-18T06:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51 | hpp | cursorshifter.hpp | #include "../../../src/private/cursorshifter.hpp"
|
a373a118a1a9516c4e24aece1496951d688ff060 | d4702bfb7be83792c541b87bdcbefba18e6c4b67 | /include/map/vec2.h | 14d9e580b30267984ed2eb1f9a32ba2493a2df64 | [] | no_license | tudorcgb/autonomous_car | 568f9fd17e7ee7cfb79ff9e04bc6161c814f936b | 3b56d498b3f5c0f58125337b42d53400274973d0 | refs/heads/master | 2020-07-07T03:43:35.237789 | 2019-08-19T19:41:41 | 2019-08-19T19:41:41 | 203,234,744 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,815 | h | vec2.h | #ifndef VEC2_H
#define VEC2_H
#include <iostream>
#ifndef IGEOMPRIM_H
#include "igeomprim.h"
#endif // IGEOMPRIM_H
/*!
* \name vecLength
* \brief Returns the length or norm of a vector.
* |v| = sqrt(v.x^2 + v.y^2)
* \param vect
* \return double
*/
double vecLength(const std::complex<double>& vect);
cla... |
1317fe0bba9cb2484dc4bf99a22ac711c33e8f95 | f926a8d220232c187e5c45e06a64aa50ac4113ac | /src/filters/ParticleFilter.cpp | 51764144c93ce78259917152caaa9499553b35fb | [] | no_license | elie-moussy/LibPF | 543ac951030689dbbb8e0aa66955ac3d3fcce2be | c820928c1efc40021670cece6648ff6515bf2767 | refs/heads/master | 2020-05-30T22:52:56.636347 | 2014-07-03T13:14:17 | 2014-07-03T13:14:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,711 | cpp | ParticleFilter.cpp | #include "LibPF/filters/ParticleFilter.h"
/*!
* \brief Class constructor : the particle filter is created using context parameters
* here, some context tools such as face detector or blob detector are constructed
*/
ParticleFilter::ParticleFilter(string filename, ImgProducer* imgproducer, twoDDetector* detector, ... |
22d5f774130332b969855fef4730be0912847fd7 | 3a3dedc5f023550bb287718c842f6b633d04fde0 | /EGYPIZZA.cpp | 32f54cbe05684702515eca966f86ed2324190fdf | [] | no_license | imvamshi/codechef | f53ebe9195313fea602cfddb2c4edb30034bcd99 | ca08ce34324db2e16d4dba0f118249c366e946cf | refs/heads/master | 2020-12-25T18:19:49.198885 | 2015-09-30T19:09:14 | 2015-09-30T19:09:14 | 38,028,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | cpp | EGYPIZZA.cpp | #include <iostream>
#include <cstring>
using namespace std;
main()
{
int n,t,i,j,k,l; char p[4];
cin>>n;
i=0; j=0; k=0; l=1;
while(n--)
{
cin>>p;
if(p[2]=='2')j++;
else if(p[0]=='1'&&p[2]=='4')i++;
else if(p[0]=='3'&&p[2]=='4')k++;
}
// This is a greedy problem
// we should be careful about each and every... |
5ed7b833a1ba789555edbf2c03ec58375be7ccc4 | bdc27c22522a99b5bff2ec4cfa95fadcba65747d | /examples/hello/skeleton/helloSkeletonWriter.cpp | 407fe967dcdd3869cc610c52b44c701ca3012606 | [
"Apache-2.0"
] | permissive | ornladios/ADIOS2 | a34e257b28adb26e6563b800502266ebb0c9088c | c8b7b66ed21b03bfb773bd972d5aeaaf10231e67 | refs/heads/master | 2023-08-31T18:11:22.186415 | 2023-08-29T20:45:03 | 2023-08-29T20:45:03 | 75,750,830 | 243 | 140 | Apache-2.0 | 2023-09-14T11:15:00 | 2016-12-06T16:39:55 | C++ | UTF-8 | C++ | false | false | 2,947 | cpp | helloSkeletonWriter.cpp | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* Created on: Jan 2018
* Author: Norbert Podhorszki
*/
#include <chrono>
#include <ios> //std::ios_base::failure
#include <iostream> //std::cout
#include <stdexcept> //std::inva... |
304ca311af5e0b49b4efe6b9f01610faa126fb5d | 3f3b9752bc35f143133ada15fd09d096dcd51db5 | /Lecture-3/sizeof.cpp | 4fb315f207c3827632d334a347314c3935dda23e | [] | no_license | 101vinayak/Cpp-course | 4127d617cd91d2c3d013c2c66ba062aba0bc8027 | 5067abbe965935fc03ce9aa4640536992eba5ed1 | refs/heads/master | 2020-06-13T15:38:28.052811 | 2019-07-03T03:24:49 | 2019-07-03T03:24:49 | 194,697,308 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | sizeof.cpp | #include<iostream>
using namespace std;
int main(){
cout<<sizeof(char)<<endl;
cout<<sizeof(long)<<endl;
/*
int x = 1;
char a = 'A';
cout<<(char)(a+x)<<endl;
//cout<<sizeof(x+a)<<endl;
*/
int z = 35;
double a = 32.1;
cout<<(char)(a)<<endl;
cout<<sizeof(z+a)<<endl;
}
|
3d16b008fa18e7ca2dbcec239c95254bb95c7852 | cf1c2aa20eb7b0127b103086a036a5482330227f | /bquery/prop_loader.cpp | 978d1ac270720b3462a3c4260c98f445d7f96f03 | [] | no_license | sakthivelk22/AmazingHackCH1 | 17c190df30dcbc7f5de4f71938f4b8d71b96359b | 9d1a264a58a727062530a39aa169e06ac1169343 | refs/heads/master | 2021-01-10T01:01:57.824142 | 2015-09-23T17:31:09 | 2015-09-23T17:31:09 | 42,759,874 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | prop_loader.cpp | #include "prop_loader.hpp"
namespace _proploader
{
PropLoader::PropLoader(std::string propFile)
{
std::string line;
std::ifstream buf ;
buf.open(propFile.c_str(),std::ios_base::in);
while (buf.is_open() && !buf.eof())
{
getline(buf,line);
if (line.find('=')!=std::string::npos)
{
mp.insert(std::pair<s... |
3978ac9ed24144db53f4bcdc51298d9c6f479208 | 60507e424fcc6437371496d631e1a4932be45b0c | /src/ivy/graphics/texture.h | a3a5a1d1ad6c095b01b21d298ed329c75b3391bf | [] | no_license | bouncyphoton/ivy | 80818a70d806aa8b1ee59962de6759623e175767 | fd7e4f272c0f6881ec4f488679ff42a1693ec937 | refs/heads/stable | 2023-07-11T05:43:20.827183 | 2021-04-24T06:27:28 | 2021-04-24T06:27:28 | 312,975,257 | 0 | 0 | null | 2021-04-24T06:27:29 | 2020-11-15T06:52:40 | C++ | UTF-8 | C++ | false | false | 2,336 | h | texture.h | #ifndef IVY_TEXTURE_H
#define IVY_TEXTURE_H
#include "ivy/types.h"
#include <vulkan/vulkan.h>
#include <vector>
namespace ivy::gfx {
class RenderDevice;
class Texture {
public:
enum class Type {
TEX_2D, TEX_CUBEMAP
};
[[nodiscard]] VkImage getImage() const {
return image_;
}
[[... |
8961b86c8cef3e39fb2042401f6ab8f8aa352805 | 1f9fbec1df7663622a6dc72ee9144f5d83adabd3 | /tutorials/RNN/main.cpp | 596b5c5b2faf794481d92aae789763b8b996e52a | [
"Apache-2.0"
] | permissive | WICWIU/WICWIU | fd7ac094cc9451ed1eb37e2ebaeb85e554210eb0 | 6e459ac1766ea6b94be30ede4321213ee3938154 | refs/heads/master | 2023-01-23T10:53:41.635007 | 2023-01-07T15:43:47 | 2023-01-07T15:43:47 | 132,969,717 | 123 | 35 | Apache-2.0 | 2021-12-23T08:25:48 | 2018-05-11T00:45:07 | C++ | UTF-8 | C++ | false | false | 4,374 | cpp | main.cpp | #include "net/my_RNN.hpp"
#include "net/my_LSTM.hpp"
#include "net/my_GRU.hpp"
#include <time.h>
#include <unistd.h>
#include <iostream>
#include <string>
#include <fstream>
#include <cstring>
#include <algorithm>
#include "TextDataset.hpp"
using namespace std;
#define EMBED_DIM 64
#def... |
69163fba10cb79a469077bb06252f5b95e79e1b9 | cdaf2ca88ddf24befd202fd16ff9a6a55b40477f | /gcd.cpp | 63bd4709d49562c7065ea6cfed8c0eabd6713bee | [] | no_license | cgt5437/Initial | 19bdba8b083cda5798c4c6f7825e2a5e73c049d2 | 347268d20aa970fbffe8537190a0ca6babba4049 | refs/heads/master | 2020-04-04T20:13:53.120245 | 2019-02-07T20:13:26 | 2019-02-07T20:13:26 | 156,238,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | gcd.cpp | // perform a divide-and-conquer gcd algorithm
// for problem set 1011
// implemented by Your Name Here
#include <cassert>
#include <cstdint>
#include <iostream>
using namespace std;
// the divide-and-conquer algorithm
// @param a one of the values to find the gcd of
// @param b the other value to find the ... |
27d0ddc3008bd074d6d2b6e9abbfdc9c7d16d9f1 | 84a19fe0b89bb19caa1641aeadc9623c1a181767 | /etc/indeednow_2015_qualb/d/d.cpp | d249c91193ee0454a4e50a3ab8644afde1372645 | [
"MIT"
] | permissive | wotsushi/competitive-programming | 75abae653cff744189c53ad7e6dbd2ca1a62e3a8 | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | refs/heads/master | 2021-06-10T06:42:40.846666 | 2021-05-31T10:32:51 | 2021-05-31T10:32:51 | 175,002,279 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | d.cpp | #include "template.hpp"
int main() {
ll(N, C);
vll(a, N);
vvi X(C + 1);
rep(i, N) { X[a[i]].push_back(i); }
repi(i, C) {
ll l = 0;
ll ans = (N + 1) * N / 2;
X[i].push_back(N);
each(r, X[i]) {
ans -= (r - l + 1) * (r - l) / 2;
l = r + 1;
}
out(ans);
}
}
|
39926cf4e66c367bd42fdd4c3e2ed594114c700f | cbe8756c4068574f2f1cf8f0ce6f11632622eccb | /languages/dynlink/ada-interfaces/sequence.cpp | 4bc625b65d50859f2c1bd7a8b2bfc7dedf514624 | [
"Apache-2.0"
] | permissive | sergev/vak-opensource | 78b063c6e139c6c8b57735780120c042a759ffdc | a7e0fc4289cafc1a344d8a1bcbc5e26c8b03c6ff | refs/heads/master | 2023-08-14T07:50:30.069410 | 2023-08-12T08:24:27 | 2023-08-12T08:24:27 | 72,305,253 | 44 | 24 | Apache-2.0 | 2022-06-06T18:26:23 | 2016-10-29T19:32:29 | C | UTF-8 | C++ | false | false | 428 | cpp | sequence.cpp | #include "ada-compatible.h"
class Sequence : public Ada_Compatible {
public:
int Value;
virtual void Next () = 0;
};
class Arithmetic : public Sequence {
ADA_COMPATIBLE_IMPLEMENTATION;
public:
virtual void Next ()
{
Value += 1;
}
};
asm ("__cxa_pure_virtual: ret");
void print_seq (Sequence *s)
{
asm (";;;... |
647909e1e12555a1125b8ce972e19abd2b3888ff | f2ee0909c84a3ee64a21be8118e252602f945808 | /POJ/2374/11378562_AC_329MS_4044K.cpp | ce0b2737f6912895ea5eecf20cb17e4784eeabe8 | [] | no_license | zhsl/OJSolutions | 498d5ec8f5101f7848b72a78b7188ef8d177b38f | c6a390bf839105b39dfb33194604841197e58472 | refs/heads/master | 2021-01-12T09:29:59.063957 | 2017-03-19T07:06:54 | 2017-03-19T07:06:54 | 76,168,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,891 | cpp | 11378562_AC_329MS_4044K.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define LL __int64
#define pii pair<int,int>
#define Max(a,b) ((a)>(b)?(a):(b))
#define Min(... |
ea05935b903db7906291e089f1b9ca53cf0f3cfc | 2ec5bd42b4daf3d6ac632d4d2a1e906ae5e9fbf4 | /gui/ExpandablePanel.cpp | cc84d3579fe14132ad2a29e3ee620309b956d308 | [] | no_license | TheArtvertiser/TheArtvertiserCommon | 7fa7d2f80592d6c2aec8da156cf2f99e722b9672 | d2af6f647b9c0345682b74d0c8471825c7c679e5 | refs/heads/master | 2021-01-01T19:35:12.347916 | 2012-04-26T22:01:39 | 2012-04-26T22:01:39 | 2,136,698 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,851 | cpp | ExpandablePanel.cpp | /*
* ExpandablePanel.cpp
*
* Created on: 29/04/2011
* Author: arturo
*/
#include "ExpandablePanel.h"
#include "ofGraphics.h"
#include "ofAppRunner.h"
namespace gui{
ExpandablePanel::ExpandablePanel()
:isExpanded(false)
{
// TODO Auto-generated constructor stub
}
ExpandablePanel::~ExpandablePanel() {
/... |
2fce834b3e01eb6045dab8a2b3b5223cd79e0125 | b000e8e2c8e734097ca4c5b4d594a6d98e0c6b96 | /src/task/thread_queue.cpp | 3ca3c44a060d2af86f3cd86458bd3fbe77efc5db | [] | no_license | DarkPassion/libcommon | c8176244438db0ee9de95aeb141d9a2c3e394c06 | 18c9e39c4ece9b4582c6b16023bf0bfb99456f61 | refs/heads/master | 2021-05-03T16:54:41.878746 | 2017-12-11T01:45:14 | 2017-12-11T01:45:14 | 72,003,598 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,868 | cpp | thread_queue.cpp |
#include <unistd.h>
#include <algorithm>
#include "task/thread_queue.h"
#include "util/log.h"
namespace libcommon {
ThreadQueue::ThreadQueue(const char* name) : _queue_push_cond(_queue_mutex)
{
_pth = new ThreadImp(name, this, 1000, true);
_pth->start();
LOGD("ThreadQueue ---... |
076798e1c326a5a123f5f14e62a5194419e4a2c2 | 54f225ac5fe50b070eea8b3f0f94af8a1a7478da | /GeeksForGeeks/Basic/Elements_before_which_no_element_is_bigger.cpp | a2c7bc21cc354ace0438f3f0d0a063a52ea9ba00 | [] | no_license | KalaiselvanSivakumar/Competitive-Programming | 56bb1dd1a688f604300f84bbe088d3e49a7dc49e | d340e52219cc1cff81912973327d447835386323 | refs/heads/master | 2021-06-10T12:54:00.737925 | 2020-05-26T13:51:47 | 2020-05-26T13:51:47 | 81,424,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | Elements_before_which_no_element_is_bigger.cpp | #include <iostream>
using namespace std;
int main()
{
int test_case;
ios::sync_with_stdio(false);
cin >> test_case;
int size, maximum, count;
while (test_case--)
{
cin >> size;
int arr[size];
for(int i = 0; i < size; ++i)
{
cin >> arr[i];
}
... |
df3b29d1cf7079b48c9f512d68cec8ad5e148abd | f098868e2355fddccf85211c040fb63a2167eab4 | /comet-service/server/RequestProcessor.cpp | 1c68d72e78c0910e2fae01f1eea96c777bceb08c | [] | no_license | sanchosz/comet | d6e0d6d8d59e918d832355e3cae70cc0edc1a647 | 923e78569d885e2c8583cde0c0696e6ee10250c4 | refs/heads/master | 2020-09-13T08:58:07.739696 | 2013-12-08T19:08:34 | 2013-12-08T19:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 833 | cpp | RequestProcessor.cpp | #include "stdafx.h"
#include "RequestProcessor.h"
#include "mime_types.hpp"
#include <string>
#include <boost/lexical_cast.hpp>
#include <iostream>
namespace comet {
namespace server {
RequestProcessor::RequestProcessor(request_handler& request_handler)
:request_handler_(request_handler)
{
}
void RequestProcessor:... |
7cd7a66f9593450739ba04dc04cf19b32f8d045c | b88e28ee513923651a979ab084f0a6128d8760bd | /Asteroids/AbstractComponent.h | 67167a360e44d77a084dc5a0f27dae9bed775bc6 | [] | no_license | Rofll/Asteroids | b1ce792460e9cf1efe789ff3d17fc7cb2e9fda17 | cd3091c08f5a336192a95421b14e65bcbe908ea8 | refs/heads/master | 2020-12-27T21:47:34.916782 | 2020-02-10T01:34:37 | 2020-02-10T01:34:37 | 238,069,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43 | h | AbstractComponent.h | #pragma once
class AbstractComponent
{
};
|
85579d54d195ca60dd2ccef63db0163289da5229 | 865e5708031fa4771cbde9baf610268b0ef497f9 | /telephone_dsa.cpp | d4d1b96bff3842bde057b2eabb6ab31874f57cee | [
"MIT"
] | permissive | MeredithCL/Algorithms-Basic-Exercises | d89de4d23251ac11a98879818ed85d6545f3f570 | c9cadfbe3cf5a0d6fabb34aa6ff170e97f1e4e83 | refs/heads/main | 2023-03-12T01:13:39.886704 | 2021-02-21T09:34:34 | 2021-02-21T09:34:34 | 331,634,167 | 0 | 0 | MIT | 2021-01-21T13:29:17 | 2021-01-21T13:20:09 | null | UTF-8 | C++ | false | false | 1,666 | cpp | telephone_dsa.cpp | #include <bits/stdc++.h>
using namespace std;
struct Node
{
bool end;
Node* c[10];
Node()
{
end = false;
for (int i = 0; i < 10; ++ i)
{
c[i] = NULL;
}
}
};
void insertx(string str, Node* root)
{
int l = str.length();
Node* temp = root;
for (in... |
6126b23fb74e273f3a83989e0d3df9784560a19a | a5d20c1d3d0f402b34f15081c8d41ec7291f292d | /src/chrono/physics/ChContactSMC.h | 88972fd2ffcfd9005d035e0765f72fe2bc1faae8 | [
"BSD-3-Clause"
] | permissive | projectchrono/chrono | 3535b1a22b3f9ac55cd3bb6c3015f1ee7c78308e | 6a96ca61e232088d9eb5a286e5a12f5b7747ac16 | refs/heads/main | 2023-09-03T21:00:45.434375 | 2023-09-02T13:41:05 | 2023-09-02T13:41:05 | 12,567,717 | 1,874 | 460 | BSD-3-Clause | 2023-09-10T10:30:18 | 2013-09-03T15:34:23 | C++ | UTF-8 | C++ | false | false | 30,263 | h | ChContactSMC.h | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
851af89d6e21a6d943da0b4c2f9c594322c1f130 | ed99fefa5a9bd97388194e9ba2effe52cd7af5a7 | /Servo_motor_with_variable_resister/Servo_motor_with_variable_resister.ino | 1de5a6872aaa025b6cfb206066bf983a89ec36ca | [] | no_license | IsuruVindula/ArduinoBasic | a2b5c3bfd037979a8c81c33ad3e38a34923c98fd | 59cc930f5c48129fd8c741202ffa36d5a7bdd99a | refs/heads/master | 2020-08-11T15:39:48.637895 | 2019-10-14T15:49:51 | 2019-10-14T15:49:51 | 214,589,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | ino | Servo_motor_with_variable_resister.ino | #include<Servo.h>
int inputpin = A0;
int motorpin = 5;
Servo t;
void setup() {
// put your setup code here, to run once:
pinMode(inputpin, INPUT);
pinMode(motorpin, OUTPUT);
t.attach(motorpin);
t.write(0);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
float variab... |
f2c9e0b6426e0dd00cce34f8f8312b6fe18244a9 | 7d7301514d34006d19b2775ae4f967a299299ed6 | /leetcode/string/767.reoragnizeString.cpp | beef36512375517a778e23cdaec3a1000803dae1 | [] | no_license | xmlb88/algorithm | ae83ff0e478ea01f37bc686de14f7d009d45731b | cf02d9099569e2638e60029b89fd7b384f3c1a68 | refs/heads/master | 2023-06-16T00:21:27.922428 | 2021-07-17T03:46:50 | 2021-07-17T03:46:50 | 293,984,271 | 1 | 0 | null | 2020-12-02T09:08:28 | 2020-09-09T02:44:20 | C++ | WINDOWS-1252 | C++ | false | false | 1,888 | cpp | 767.reoragnizeString.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
// ³¬Ê±
string res = "";
vector<string> result;
string reorganizeString(string S) {
vector<bool> used(S.size(), false);
dfs(S, used);
return result.empty() ? "" : result[0];
}
bool dfs(string& s, vector<bool>& used) {
if (res... |
0316b2abafd693998126adec5a4e015733d26781 | 87b61b564f285858fcda8b50b892c2183bd23d51 | /client/appsensorapi/handler.h | e5434fb2d6a53acaad2a3b3e86bb46ad4a6acdbb | [
"Apache-2.0"
] | permissive | randyli/google-input-tools | e1da92fed47c23cf7b8e2ff63aee90c89e1f0347 | daa9806724dc6dc3915dbd9d6e3daad4e579bf72 | refs/heads/master | 2021-05-18T13:00:21.892514 | 2020-04-11T13:26:33 | 2020-04-11T13:26:33 | 251,252,155 | 0 | 0 | Apache-2.0 | 2020-03-30T08:58:26 | 2020-03-30T08:58:26 | null | UTF-8 | C++ | false | false | 3,386 | h | handler.h | /*
Copyright 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
62fb33f341c8d85af949a6385fa79b5627238b0c | b5a42669d1d0f68baa096d60a52fc61da6537634 | /BleSensorRemote.ino | 65d012618f70a84853e3cf9b4c9e890f48b3b479 | [
"MIT"
] | permissive | kornel-schrenk/BleSensorRemote | b34af795c32c9eab308a64b674cf68f99e27b494 | 03c4dfee35a042bd81418143feed2e9c16edf334 | refs/heads/master | 2021-01-18T18:55:41.588086 | 2017-04-18T10:14:54 | 2017-04-18T10:14:54 | 84,364,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,910 | ino | BleSensorRemote.ino | #include "Arduino.h"
#include "SPI.h"
#include "MS5803_14.h"
#include "Adafruit_BLE.h"
#include "Adafruit_BluefruitLE_SPI.h"
#include "Adafruit_BluefruitLE_UART.h"
#include "BluefruitConfig.h"
//Please set it to 1, if factory reset is desired during startup otherwise set it to 0
#define FACTORYRESET_ENABLE 1
#define V... |
4e628820c9648ce259daafc77ea5443377de4b2c | c4f893e379315863b2c7d2c48f4a37d17a698aab | /main.cpp | 545913da35d7ee443fbc678b1b118fb3d5b4f24f | [] | no_license | Raja-Salman-Tariq/RAFT-cpp | d7dc53e5c214d445e14073cf9d1bdbd5c0e9dce3 | eac5ddb3fa445f9a80d8dc0d4bad3cf6472dbf80 | refs/heads/master | 2022-11-28T09:52:03.113848 | 2020-08-12T17:42:48 | 2020-08-12T17:42:48 | 284,457,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | cpp | main.cpp | //#include <coroutine>
#include <zmq.h>
#include <iostream>
#include <vector>
#include "node.h"
#include "network_node.h"
using namespace std;
struct gib{
gib(int i){x+=i, s+="\n";}
int x=37;
string s="jhon";
void pr(){printf("%s, %d, \n", s.c_str(), x);}
};
void sending(Message* m){
printf("\n\n************... |
7e907244276a0fc4aec9a552f99a11bf481337d9 | 73feba25735e195f91c09f8f5a88cc5aba7aba50 | /SmartEyeWin/seApp.cpp | 74271b9114a5caeb7b680baa09ba01f7f3d76d05 | [] | no_license | Tianyue-Zhao/SmartEyeWin | 206a0070ce367133fe6df4041d42121ba68bc1ed | 08c19e591a8ab66d4bbf974c00346a87a15e2f4e | refs/heads/master | 2023-03-05T15:52:16.986874 | 2021-02-21T18:40:43 | 2021-02-21T18:40:43 | 340,796,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | seApp.cpp | #include "seApp.h"
wxIMPLEMENT_APP(seApp);
seApp::seApp() //The seApp class launches the application
{
}
seApp::~seApp()
{
}
bool seApp::OnInit()
{
mframe1 = new seMain();
mframe1->Show();
return true;
}
|
428ec517a4d48c84ff680505cd791d57c81bd569 | 473fc28d466ddbe9758ca49c7d4fb42e7d82586e | /app/src/main/java/com/syd/source/aosp/system/libhidl/transport/include/hidl/HidlTransportSupport.h | d1165985fea49fca8c583e173920e6b6ae0e9ffb | [
"Apache-2.0"
] | permissive | lz-purple/Source | a7788070623f2965a8caa3264778f48d17372bab | e2745b756317aac3c7a27a4c10bdfe0921a82a1c | refs/heads/master | 2020-12-23T17:03:12.412572 | 2020-01-31T01:54:37 | 2020-01-31T01:54:37 | 237,205,127 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,170 | h | HidlTransportSupport.h | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
ca2a3ef343477aa35bf687ec5de4a1a947be7228 | 628be84ee4af573b77778e45a5e9a96ceed97028 | /core/conn/MultiConnManager.h | 54879ef71f9cb002178f9d222087083f01917ee5 | [
"MIT"
] | permissive | forrestsong/fpay_demo | e716535fbcf211ff046a462577d125073bd1507c | 7b254a1389b011c799497ad7d08bb8d8d349e557 | refs/heads/master | 2020-03-26T03:54:34.034924 | 2018-08-03T04:11:14 | 2018-08-03T04:11:14 | 144,476,447 | 1 | 0 | MIT | 2018-08-12T15:04:05 | 2018-08-12T15:04:05 | null | UTF-8 | C++ | false | false | 671 | h | MultiConnManager.h | #ifndef __MULTI_CONN_MANAGER_H__
#define __MULTI_CONN_MANAGER_H__
#include <map>
#include "ConnManager.h"
class MultiConnManager: public LazyDelConnManager
{
public:
MultiConnManager();
virtual ~MultiConnManager();
virtual void eraseConnection(IConn *conn);
virtual void eraseConnectionById(cid_t id);... |
3175b70e9bfc4b116e0efb06e3d19d1a62cc64bf | 559d16b814a837b813c3d8cc0dcf2b36dfca080c | /src/App.cpp | 9bdfd49ad7beea6366c0ff391da808ed215a9eee | [] | no_license | ByteSz/Sofdev-2017 | 3ab79c2191197de0f34235148c3ad6d6a5731362 | 7561bc71464a44e98dfebd5632d26b7306164d80 | refs/heads/master | 2021-12-24T14:15:07.158973 | 2017-06-24T03:52:23 | 2017-06-24T03:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | cpp | App.cpp | #include "headers/Main.h"
#include "headers/GUI.h"
//std::vector<int> v;
//Function called once on startup
//Actually make everything here
void Startup()
{
InitGUI();
}
//Function updated every frame
void Update()
{
UpdateGUI();
DrawGUI();
}
|
da1b260a550feeea660beb86fc97b58369b68d9b | 64675919203eda745bfbf84921a8aec3fa9c4cca | /Problema18/main.cpp | a48140c41bc08fd8b99d98b09c8fb5e087b3eafa | [] | no_license | MateoHoyos/Lab2 | ecbb6b082216644482249f62d683ef2380e13675 | 104bf2f2e6b79049af1fd48024875dd3c3306655 | refs/heads/master | 2023-01-01T15:25:15.601869 | 2020-10-16T18:14:03 | 2020-10-16T18:14:03 | 304,702,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | cpp | main.cpp | #include <iostream>
#include <algorithm> // next_permutation
/*
Problema 18. Las permutaciones lexicográficas son permutaciones ordenadas numérica o alfabéticamente, por
ejemplo las permutaciones lexicográficas de 0,1 y 2 son: 012, 021, 102, 120, 201, 210. Escribir un programa que
reciba un número n y halle la enés... |
2937d6ddf626dc6f0988931dd6d25353ba5cfef4 | 9adb56953c633d9499ec67c351b3c9fc5ab9b521 | /leetcode/c++/lintcode-057-3Sum/3sum.cpp | 19a8da80bffa2f85bbe9b4d82fa36be47816b343 | [
"Apache-2.0"
] | permissive | caohong/practice | 376c41891c4837e86c34bda3e0d9e9b719c0d28a | ae9527f879d6228c66dea9d5909fc471b557caf4 | refs/heads/master | 2021-01-01T17:14:31.819050 | 2017-10-16T14:09:29 | 2017-10-16T14:09:29 | 98,032,181 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | cpp | 3sum.cpp | class Solution {
public:
/*
* @param numbers: Give an array numbers of n integer
* @return: Find all unique triplets in the array which gives the sum of zero.
*/
vector<vector<int>> threeSum(vector<int> numbers) {
vector<vector<int>> result;
sort(numbers.begin(), numbers.end());
... |
d171633a3a7d711c7d5d05198b53fc90bf460f7d | 4f0d8301e8ba37af3cdab6961eb7a9708b7ce3e9 | /team.hpp | e9952ff5e5e59e2c4c305160e8431dfa98c0b305 | [] | no_license | pgallardor/worldcupdraw | 5892075bdd9a68a0eeea8ccb14d44d960cbad911 | c228aa1a6025d59c093ca7c17ab68c93625e5864 | refs/heads/master | 2020-03-28T10:02:27.236245 | 2018-09-10T00:32:01 | 2018-09-10T00:32:01 | 148,078,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | hpp | team.hpp | #pragma once
using namespace std;
class Team{
private:
string _name;
int _conf;
int _pool;
public:
Team(string n, int c, int p){
_name = string(n);
_conf = c;
_pool = p;
}
string getName(){
return _name;
}
int getConf(){
return _conf;
}
int getPool(){
ret... |
fdcb8a2b6d62a54dc041f3ed549411316507525b | 2bbd95003c0e330c12f2e632d80636a4cc98a378 | /general_testing/vision/camera.h | a7eeff62258e5a9b86467249ed95f05df5de913a | [] | no_license | nwatx/Tennis-Ball-Robot | 393fece8abea5777ba77456b1d51487849f2e873 | f43fff7ac28da1213e8210c1c0ab3656f88f8635 | refs/heads/master | 2023-09-04T13:04:03.109197 | 2021-10-09T22:58:24 | 2021-10-09T22:58:24 | 415,450,289 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | h | camera.h | #pragma once
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
class Camera
{
private:
cv::VideoCapture cap;
int imageWidth;
int imageHeight;
public:
Camera(unsigned char index);
cv::Mat getFrame();
int getImageWidth();
int getImageHeig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.