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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
562533d7a445d6fd04bccf2890e57ac964e5d0de | 3e0b12f070ba9f395e0568064a2c8a3e562e8808 | /WINDOWS_cpustress.cpp | e3c45c6f1bcfd25d3afacc4774a798139050e0ce | [] | no_license | kevsiraki/Linux-WindowsStressTests | dabfd0e634f42af881f41659550641d9b5ac739b | 4d570c09684892d4ed1a3ea2df4658a6a2fba5db | refs/heads/master | 2022-11-30T07:47:35.758160 | 2020-07-27T20:52:57 | 2020-07-27T20:52:57 | 283,013,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | WINDOWS_cpustress.cpp | #include <windows.h>
#include <process.h>
#include <time.h>
#include <stdio.h>
#include <iostream>
#include <conio.h>
using namespace std;
void task1(void *)
{
while(1)
{
clock_t wakeup = clock() + 50;
while(clock() < wakeup) {}
Sleep(50);
}
}
int main(int, char**)
... |
fdf983a25d2a0904aead6d2e2eb33f091cca7936 | d1b788585475204e43745d080ad5bbb507b79722 | /NWERC 2019/E.cpp | 7d24d969d03b330af9825357c9aff506f44392cb | [] | no_license | yuchengdeng/Personal_Training_Deng | fa59970c1613040b3139a9100fecbcc64cf5e76a | aaa2c7d68481e05cddf108d87232d700eacbd888 | refs/heads/master | 2021-07-12T04:17:28.966783 | 2020-10-03T08:58:59 | 2020-10-03T08:58:59 | 210,610,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | E.cpp | #include<cstdio>
#include<algorithm>
int a[5], aim, sum;
int main() {
for(int i = 1; i <= 4; i++) {
double x;
scanf("%lf", &x);
a[i] = x*1000;
sum += a[i];
}
double x;
scanf("%lf", &x);
std::sort(a+1, a+5);
aim = x*1000;
int tmp = aim*3;
if(tmp >= sum-a[... |
47f3d0cea54220e5aa7fdee224b702e670b55a60 | 90c81d69ed5d0d2b6eae1ec8cd9e23e479b76421 | /Worker.h | 25bf54bf2053ff1fd00b4fc2053db58e829f2085 | [] | no_license | burakcuhadar/Discrete-Event-Simulation | 9fe5663834ba176f41046bb699b186536bcc98b1 | 3ef1982255adcf61c9c1e8984f97751cbd7191f2 | refs/heads/master | 2020-03-18T21:21:04.595962 | 2018-05-29T10:13:33 | 2018-05-29T10:13:33 | 135,275,887 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | Worker.h | #ifndef PROJECT2_WORKER_H
#define PROJECT2_WORKER_H
class Worker{
public:
double busyTime = 0.0;
bool isBusy = false;
Worker();
Worker(const Worker& other);
};
#endif //PROJECT2_WORKER_H
|
f9f7306038fac8987b99c6b3b289b3ac37801ca7 | 9762ada83b606460adfa2898be171d4203512897 | /p2Main.cpp | 81b293d844ba9aeb60831f9154a0e719ee6c000b | [] | no_license | lancenhd/c-proj | 70515adb87ed7cbbe1160e6f544e826566cdc8cc | a20f221fc31929a3ea212a9b5562391d305e386d | refs/heads/master | 2021-01-21T12:21:15.655230 | 2017-09-01T03:11:10 | 2017-09-01T03:11:10 | 102,067,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,889 | cpp | p2Main.cpp | /*********************************************************
//
// NAME: Lancen Daclison
//
// HOMEWORK: Project2
//
// CLASS: ICS 212
//
// INSTRUCTOR: Ravi Narayan
//
// DATE: 4/24/16
//
// FILE: p2Main.cpp
//
// DESCRIPTION: This file contains the driver and the menu which allows the user to interact with the program.... |
edef5a2aa821be713765f4c75650dfc2b589077c | a40a49bdfbec3ec808044f97e8f866a35e6c29bf | /LockingQueue.h | cf9267a25b0b35f02a618e0fd194d0d59f901998 | [] | no_license | geopoulos/concurrentqueues | 3b324db72bbb4c878a8b00a508820d18c921378f | e25a2855eae3341e50da6749a785d75f54b8d19b | refs/heads/master | 2021-01-01T20:42:01.368079 | 2012-02-21T18:49:18 | 2012-02-21T18:49:18 | 3,506,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | h | LockingQueue.h | #ifndef LOCKINGQUEUE_H
#define LOCKINGQUEUE_H
#include <pthread.h>
#include "IQueue.h"
namespace ConcurrentQueues
{
template<class T>
class LockingQueue : public IQueue<T> {
private:
pthread_mutex_t enqMutex;
pthread_mutex_t deqMutex;
Node<T>* head;
Node<T>* tail;
public:
Lockin... |
3ddd97dbd7bd83d9601ada1a2d9530460678b64f | 2b332da28ca7d188892f72724400d79f16cda1b9 | /include/ce2/scene/comp/collider/enums/collider_type.hpp | f0090dd5e41fec60b304183be91757c13dd99d54 | [
"Apache-2.0"
] | permissive | chokomancarr/chokoengine2 | e4b72f18f6fd832c2445b5c7bec1bb538ad62de1 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | refs/heads/master | 2023-05-02T18:05:43.665056 | 2021-04-14T17:54:17 | 2021-04-14T17:54:17 | 191,103,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | hpp | collider_type.hpp | #pragma once
#include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
enum class ColliderType {
InfPlane,
Plane,
Sphere,
Cube,
Capsule,
Mesh
};
CE_END_NAMESPACE
#include "collider_type_str.hpp" |
f83c13c31aeed52f7420c0ca44fa044c2adc405c | 4a77b6fc74def61e4e55c03da0c0b0180a064831 | /main.cpp | 563d75ca01db4369639537960c3ff9d598989317 | [] | no_license | ReedKass/trieNodeTree | 2105246c856d0c0bfaca4ea6bfde1e6c395d7eb4 | e6a3a95cc6a5c465eac8c2c5c814920275664b66 | refs/heads/main | 2023-01-12T10:45:59.304429 | 2020-11-16T02:41:48 | 2020-11-16T02:41:48 | 313,172,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | main.cpp | /* Name: Reed Kass-Mullet
* Date: 11 March 2019
* Assignment: comp15 - proj1
* Description: the main.cpp file for the executable of the
* trieNode tree class.
*/
#include "trieNodeTree.h"
#include "fstream"
#include "string"
using namespace std;
int main(int argc, char* argv[]){
if(argc != 3)
... |
7e4d38214b61927d95f539997111f412d97bb939 | f67f4c6d0d3570d1e99598f51af6fc08f57ad13a | /Linked List 2/Delete every N nodes.cpp | 16729f4dfde7e79c1a6595bbd0d38c86bf9b1ac3 | [] | no_license | prateek200/Data-Structures-and-Algorithm | 71af2e32d93b9efbc5c1a3ab2193d1121031a381 | 94a9be5140d18edd613d31aa6d314a69cf428202 | refs/heads/main | 2023-07-07T07:06:43.066760 | 2021-08-12T09:05:12 | 2021-08-12T09:05:12 | 381,647,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | Delete every N nodes.cpp | /****************************************************************
Following is the class structure of the Node class:
class Node
{
public:
int data;
Node *next;
Node(int data)
{
this->data = data;
this->next = NULL;
}
... |
ffee211e75137172304bbda055bde167eb808604 | 79cd409b4b12f8ab76a31130750753e147c5dd4e | /apps/shawn_apps/duty_cycling/duty_cycling_processor_factory.cpp | ed50d24f01ba8b8dac6d23ee6263bb0358951898 | [] | no_license | bjoerke/wiselib | d28eb39e9095c9bfcec6b4c635b773f5fcaf87fa | 183726cbf744be9d65f12dd01bece0f7fd842541 | refs/heads/master | 2020-12-28T20:30:40.829538 | 2014-08-18T14:10:42 | 2014-08-18T14:10:42 | 19,933,324 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,643 | cpp | duty_cycling_processor_factory.cpp | /************************************************************************
** This file is part of the network simulator Shawn. **
** Copyright (C) 2004,2005 by SwarmNet (www.swarmnet.de) **
** and SWARMS (www.swarms.de) **
** Shawn is free softwa... |
771a97478c4959d41b5db2c97c8fc9df9363014d | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/function_types/detail/synthesize_impl/arity10_1.hpp | 6dda0848957c03c3586fe137a4d50dbf559361ab | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | hpp | arity10_1.hpp | #include "thirdparty/boost_1_55_0/boost/function_types/detail/synthesize_impl/arity10_1.hpp"
|
65ec95261396227e6cc98072bcf6ba2172ff7965 | 565e85570d42a599351e513040e1bda8d05d3948 | /lib/dtv-canvas/src/impl/ffmpeg/audiostream.cpp | a5c314cd1678137127a6b48033a47a1bcfa7befd | [] | no_license | Hanun11/tvd | 95a74b8ee8a939ba06b4d15dce99bdc548e1be7b | 0d113c46014d738d87cb4db93b566d07fcbc031f | refs/heads/master | 2021-12-14T19:41:15.800531 | 2017-05-20T19:54:40 | 2017-05-20T19:54:40 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,620 | cpp | audiostream.cpp | /*******************************************************************************
Copyright (C) 2010, 2013 LIFIA - Facultad de Informatica - Univ. Nacional de La Plata
********************************************************************************
This file is part of DTV-canvas implementation.
DTV-canvas is fre... |
1f7de5ed7b23c808960ccb52e26548960161db52 | 892b9415a759037e3492a0d6a4cdf14b218de213 | /lib/Window.cpp | 096cdb9050e149e660e88b957c1e8bfeed6a8ac5 | [] | no_license | rwols/gintonic | 7ed0153376b97ae135169fb212c8f8f889d8f0c3 | eca7ff31be4cb4a856e75bdb2d68e79ecaea73f5 | refs/heads/master | 2021-01-18T17:52:32.482638 | 2017-06-01T11:33:10 | 2017-06-01T11:33:10 | 86,819,901 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 168 | cpp | Window.cpp | #include "Window.hpp"
#include "RenderContext.hpp"
using namespace gintonic;
Window::Window() {}
Window::~Window() {}
void Window::present() { context->present(); }
|
7e74bc75d7bb2a4dac7fdc3ab5d50841fee57ae8 | f97ce0a588e023675eaa980f2f105f0a9c25ce18 | /UVa/v114/11432.cpp | 50fd77941b0fa81e8dfffe2f814e496ace4f5c1a | [] | no_license | anindya028/Programming-Contest-Problems | a5c49653d990391a6e2003f2ec9d951222cabbe2 | 7038b6267432189de72539ef5ad046d38e730ee8 | refs/heads/master | 2023-03-17T06:27:38.339049 | 2021-02-23T22:58:06 | 2021-02-23T22:58:06 | 277,399,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | 11432.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<ctype.h>
#include<algorithm>
#include<queue>
#include<list>
#include<vector>
#include<string>
using namespace std;
#define Long long long
//#define Long __int64
#define sq(a) ((a)*(a))
#define pb(a) push_back(a)
#define ... |
def95a228b993d635bb87af82a906b9d5c1faae3 | 8da9d3c3e769ead17f5ad4a4cba6fb3e84a9e340 | /src/chila/codexGtk/fwd.hpp | 23c947b3dde967d91a4f9e51634addc22a399ca0 | [] | no_license | blockspacer/chila | 6884a540fafa73db37f2bf0117410c33044adbcf | b95290725b54696f7cefc1c430582f90542b1dec | refs/heads/master | 2021-06-05T10:22:53.536352 | 2016-08-24T15:07:49 | 2016-08-24T15:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | hpp | fwd.hpp | /* Copyright 2011-2015 Roberto Daniel Gimenez Gamarra (chilabot@gmail.com)
* (C.I.: 1.439.390 - Paraguay)
*/
#ifndef CHILA_CODEX__FWD_HPP
#define CHILA_CODEX__FWD_HPP
#include <chila/connectionTools/loader/fwd.hpp>
#include <chila/connectionTools/lib/other/fwd.hpp>
#include <chila/connectionTools/lib/other/common/i... |
6c63fc9de32e41c600a92992711eb7a39e2d0b2b | 799a21e89a17fffee2508d40072d68e065c903e4 | /km2475111/Assignment1/Savitch_8thEd_Chap1_Prob9/main.cpp | d30f0c4fa083638604f20e06a3e5b044d14978f9 | [] | no_license | Hillash/CSC5_Spring_2014_42450 | 5b8204b124338587a06210cf4cf05163463ac557 | 7a513d1a2f355da9a62cf86bf7ea5120699004fa | refs/heads/master | 2020-12-28T23:04:32.682727 | 2014-10-01T06:19:38 | 2014-10-01T06:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | main.cpp | /*
* File: main.cpp
* Author: Kevin R. Mindreau
* Created on February 24, 2014, 9:13 PM
*/
//System Libraries
#include <iostream>
using namespace std;
//Global Constants
//Functions and Prototypes
//Execution Begins Here!
int main(int argc, char** argv) {
// acc is ft/s
int acc = 32;
//in seconds... |
a86858d6c2df4684ff19b78eda5ba96d77a8b4c0 | 757c2e654af75fe27437c3f3eadf25fe8840e436 | /1155.cpp | 0e0339294dad992c9b76a1ad39774212640fa6cd | [] | no_license | AlbertoDoc/Uri-codes | ac60b61e2497978a1aff7f2885b9b55cedbae426 | 6171953d6006d1776acfa006e653e09255b23755 | refs/heads/master | 2023-03-31T06:58:21.963514 | 2023-03-19T22:20:07 | 2023-03-19T22:20:07 | 156,789,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | cpp | 1155.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main (){
double N=1,S=0;
while(N<=100){
S+=1/N;
N++;
}
cout<<fixed<<setprecision(2);
cout<<S<<endl;
}
|
ced1f5d1bea956e52da12240b0627bcb2c5f1b9b | 06c3776c944b44d21181d4dd1f4138bbe1e8b385 | /src/world.cpp | fdb258c74a1246e452e18068b8c98a7dbd83f08e | [
"MIT"
] | permissive | ivfreire/snakie | 05e406a51ef57f555765a302466fab6369391070 | bc1cebfdcbe6ead2f716a2adfc3b2675397f06ae | refs/heads/master | 2023-01-09T21:44:29.332182 | 2020-11-14T18:25:40 | 2020-11-14T18:25:40 | 282,786,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | cpp | world.cpp | #include "world.h"
World::World(int width, int height, int cellwidth, int cellheight) {
this->width = width;
this->height = height;
this->cellwidth = cellwidth;
this->cellheight = cellheight;
this->snake = new Snake(1, 4, 4, this->cellwidth, this->cellheight);
for (int i = 0; i < MAX_APPLES; i++) this->apples[... |
5855f7eaf1d3b6e0643362f5cf7cc1aed12bf084 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_1/C++/sunweijun/A.cpp | 04b6f86c4423900bb11758ebcb2b3c1d9e81ec7f | [] | 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,165 | cpp | A.cpp | #include<cstdio>
#include<cstring>
#define fo(i,a,b) for(i=a;i<=b;++i)
int Q,T;
char f[10][10],s1[10][10],s2[10][10];
bool win(char ch,char f[][10])
{
int i,j,s;
fo(i,1,4)
fo(j,1,4)
if(f[i][j]=='T')f[i][j]=ch;
fo(i,1,4)
{
s=0;
fo(j,1,4)s+=f[i][j]==ch;
... |
fd17e4d5a4a0141bf6b9fc3d11815055b6f9a3b2 | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/TestWebKitAPI/Tests/WebKit2Gtk/InspectorTestServer.cpp | f13b043df16d89d0eba04772ff0f41c6c8d94bae | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | C++ | false | false | 2,521 | cpp | InspectorTestServer.cpp | /*
* Copyright (C) 2012 Samsung Electronics Ltd. 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, this list o... |
14970227fe0ea8c8b9f0516d1591791529732489 | 620dd6f843f0d2f860f6d11ce9fa0c9cda266873 | /body.cpp | b4aacee9d9f9a4568cf69993343ca63cd8fed0e3 | [] | no_license | JonathanZelaya/Snake-Game | 40ebdff687a3d427413d15e7a6f71b59083588d3 | 9c31636ec6f991368fe3dccc8835be307021a3aa | refs/heads/master | 2020-04-09T05:26:44.572253 | 2016-09-14T07:44:28 | 2016-09-14T07:44:28 | 68,182,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | body.cpp | #include "body.h"
void Body::move(int x1,int y1){
for(int i = count() - 1; i > 0; i--){
body_[i].x = body_[i-1].x;
body_[i].y = body_[i-1].y;
}
// set front as the new positions
body_[0].x = x1;
body_[0].y = y1;
}
|
119296623c7dcfdb837cfb087b60eb91e03d5b42 | b21b5ff3469f651c688ffc4d534f3f7183718496 | /PhotoStage/dragdropinfo.h | 1f29783a33fab5a86da06526193b7912b8aa5ffa | [] | no_license | jaapgeurts/photostage | 8d88de7e9d6fe4a714cf0931284d57356006d9d7 | aabfe1b6fd607fab6b4f52089a2b691cebf274af | refs/heads/master | 2021-01-10T10:26:15.306997 | 2019-02-22T12:38:00 | 2019-02-22T12:38:00 | 43,422,797 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | h | dragdropinfo.h | #ifndef PHOTOSTAGE_DRAGDROPINFO_H
#define PHOTOSTAGE_DRAGDROPINFO_H
#include <QList>
namespace PhotoStage {
class DragDropInfo
{
public:
enum DragSourceModel { PathModel = 1, PhotoModel = 2, CollectionModel = 3 };
DragDropInfo(DragSourceModel source, const QList<long long>& idList);
DragDropInfo(const QByteArr... |
f057fa1345e669d90889e33de1dd32be9db269ff | ff5aaec060d4e221e700653d389f9177e8104784 | /petit reseau/reseaux.cpp | e684f6d29b7d5390dcfd897125c56e7e9c84c76e | [] | no_license | hamzaberradadev/deeplearning | 2cf9b3598027d8934a559a90556ad3a2747ac874 | a5acec7ad92144d1f49052f07027459ba3e04a94 | refs/heads/main | 2023-05-07T18:52:59.840756 | 2021-05-11T02:59:59 | 2021-05-11T02:59:59 | 366,238,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,960 | cpp | reseaux.cpp | #include "reseaux.h"
#include< cmath >
reseaux::reseaux(){};
/// <summary>
/// en cours
/// </summary>
/// <param name="langeur"></param>
/// <param name="avant_lang"></param>
reseaux::reseaux(int langeur,int avant_lang)
{
for (int i = 0; i < langeur; i++)
{
double val;
matrice_.push_back(0);
... |
f4c87d9a66523568b79f9e9bf02f89aade793a9e | 70caae4818644fd068f7e74ca0568d9ea6ce17d3 | /OBDII/library/obd/padapter.h | 935e8fe5f0a9f0700be3d3470da6ae54652e861a | [] | no_license | VooDooHeRo/diagnostic | 2ce68336aac49ec740a5639386bce6c32dd0aef3 | 96b4158076053203b7fd562b64b6fad581e6b816 | refs/heads/master | 2020-09-07T05:39:38.545086 | 2019-07-08T11:00:10 | 2019-07-08T11:00:10 | 220,672,672 | 1 | 0 | null | 2019-11-09T16:46:53 | 2019-11-09T16:46:53 | null | UTF-8 | C++ | false | false | 2,357 | h | padapter.h | /**
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009-2016 ObdDiag.Net. All rights reserved.
*
*/
#ifndef __PROTOCOL_ADAPTER_H__
#define __PROTOCOL_ADAPTER_H__
#include <adaptertypes.h>
#include <ecumsg.h>
// Command results
//
enum ReplyTypes {
REPLY_OK = 1,
REPLY_CMD_WRONG... |
0c5bb0f47d72c50cbddefeb6d8311a95cf874622 | 0d73d7e2ff7f30c5b4bc4e3c3c654f519186c187 | /Library/Il2cppBuildCache/iOS/il2cppOutput/Unity.Barracuda.BurstBLAS 2.cpp | 26e037d7d6504c3929499bb5bf8ae924c0ad178d | [
"MIT"
] | permissive | Alex-Greenen/Spectral-Neural-Animation-Unity | 654710696b60db5c1dda2d912c0f15cbd20bc88e | fbd4983c2e260e21b353bf44c682e1413e480ce5 | refs/heads/main | 2023-08-01T08:17:57.781205 | 2021-09-14T17:24:26 | 2021-09-14T17:24:26 | 406,389,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74,699 | cpp | Unity.Barracuda.BurstBLAS 2.cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.IntPtr[]
struct IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6;
// System.Diagnostic... |
cb17b4a7a5f26c9a0ba2978f249551c61b8f5055 | 69b090ef355f26185de7e0df2f6889d5e70356ec | /arduino kit projects/ldrpiano_wo_LEDs/ldrpiano_wo_LEDs.ino | 8d870385223dbd53e5cef96c055223cee87f1315 | [] | no_license | Makeistan/makeistan | 2fec3591da868aedf5521c2129b4b33101ebb9f2 | 65be9e5a03b76e4668d50b6f2b051616ce46daef | refs/heads/master | 2021-01-15T18:14:54.521365 | 2016-09-23T08:08:31 | 2016-09-23T08:08:31 | 60,160,256 | 2 | 1 | null | 2016-06-01T08:43:17 | 2016-06-01T08:43:17 | null | UTF-8 | C++ | false | false | 1,641 | ino | ldrpiano_wo_LEDs.ino | int frequencies1 []= {262, 294, 330};
int frequencies2 []= {349, 392, 415};
int frequencies3 []= {440, 466, 740};
int frequencies4 []= {784, 831, 988};
int frequencies5 []= {1109, 1175, 2093};
const int buzzerPin= 9;
int buttonState=0;
int buttonState2=0;
int buttonState3=0;
int buttonState4=0;
int buttonState5=0;
vo... |
eb28727a38a0dc18b799b5bc56e2e1ba59c7cfbb | 3a8c346a8904296e3edf4d36571f59dc5c78fb07 | /scene/animation/animate.h | 979b9875bc3c90a0903e35bc5fdf9e14ebf95643 | [] | no_license | guidoinit/Look3d | 90b6e9c96f58818e07ef3a1d1ac41ab919a3dafe | 5707cce8a8cf967d18547d8472cb58332a0d2a8d | refs/heads/master | 2021-10-09T13:19:45.496606 | 2017-10-13T21:03:50 | 2017-10-13T21:03:50 | 106,879,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,236 | h | animate.h | #ifndef ANIMATE_H
#define ANIMATE_H
#include <math.h>
#include <vector>
#include "scene/animation/frame.h"
#include "scene/animation/keyframe.h"
#include "mesh/animation/actionvertex.h"
#include "mesh/animation/meshanimation.h"
#include "mesh/animation/meshkeyframe.h"
#include "mesh/animation/meshframe.h"
#include "... |
f7abb35a7b2c84d873223465310a0e1a21ac8102 | 4d4fbfd4ed5b38fb807fc23b8ab5caf30b62b32d | /opencore-linux/engines/2way/src/pv_2way_mux_datapath.cpp | 598fac43384b56621e2007663615992ed08905c9 | [
"MIT",
"LicenseRef-scancode-other-permissive",
"Artistic-2.0",
"LicenseRef-scancode-philippe-de-muyter",
"Apache-2.0",
"LicenseRef-scancode-mpeg-iso",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rcoscali/ftke | e88464f1e85502ffb9c199106bc6cb24f789efcf | e9d4e59c4387400387b65124d4b47b70072dd098 | refs/heads/master | 2021-01-10T05:01:03.546718 | 2010-09-23T02:49:21 | 2010-09-23T02:49:21 | 47,364,325 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | pv_2way_mux_datapath.cpp | /* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... |
af7f9e57de33b91e51bbf139548628efab8a6ea7 | 0d435ccf219bd0011e2b18072d1096260d19f5a3 | /Class Circle Double Linked List/Circle Double Linked List.cpp | 6059c4d6d1a23c85a262a8df387f75cf53a3584f | [] | no_license | canceryoon/Data-Structure-Algorithm | e97b5050cb85b21032d7281047b5f173572c0aa5 | 91a1dc8e9b2a534f8e41bd314b397e9335704551 | refs/heads/master | 2021-01-19T21:19:45.517828 | 2018-02-01T05:50:58 | 2018-02-01T05:50:58 | 88,640,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,614 | cpp | Circle Double Linked List.cpp | #include<iostream>
using namespace std;
struct node
{
int val;
node* prev;
node* next;
};
node* HEAD;
node* createNode(int _val)
{
node* tmp = new node;
tmp->val = _val;
tmp->next = NULL;
tmp->prev = NULL;
return tmp;
}
void appendNode(node* inNode)
{
if(HEAD)
{
node* head = HEAD;
head->prev->next =... |
a9eb16043360581a35cb51a225cc3ad0495582d7 | 7c62729c7c3f2f195f49eaa89dcb6a60909df3e9 | /GstRtpTest/server/main.cpp | cd3acf46e77b56d77f26ce331db14d8394c343ed | [] | no_license | guxinkobe/GstRtp | 68cc03385a0e0723022164cb6ae13a79089a01cc | 22bbe59d41d16367589d2c7ad779ac3abac07cf0 | refs/heads/master | 2020-06-25T19:13:08.055413 | 2019-08-13T08:26:43 | 2019-08-13T08:26:43 | 199,398,841 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,645 | cpp | main.cpp | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <pthread.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <ctype.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "RtpVideo.h"
RtpStreamSender *sender;
//====================... |
bcfe96066810719a320361bdaa2fafb19c149456 | 8e5329ff8b9db2716f250b46236bf164e2caa2dc | /C++/TestCodes/test_arr.cc | 4190504499fb0cbe59a6da31c65a0d087fb5af94 | [] | no_license | mmbillah/ProgPrac | cec857718ded3bca0d61ddec72c98c7bed5d6236 | a40376854fd4f23cbf635a6fbb6142976e24d462 | refs/heads/main | 2023-05-28T20:36:23.849952 | 2021-06-09T23:18:41 | 2021-06-09T23:18:41 | 369,649,731 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cc | test_arr.cc | #include<iostream>
using namespace std;
int i,j,k;
int arr[3][3][3];
int main(){
for (i=0;i<3;i++)
for (j=0;j<3;j++)
for (k=0;k<3;k++)
arr[i][j][k]=1;
for (i=0;i<3;i++)
for (j=0;j<3;j++)
for (k=0;k<3;k++)
cout<<arr[i][j][k]<<endl;
... |
2a5be0873b6e5fcfe636e099efcb27dd6354122a | efa0c98149583a7b0f8902d390d188b1b85de035 | /18_2.cpp | db74652b33695969fb7b492bdc8f535d9eb98f6a | [] | no_license | ChenCongGit/-offer- | 71b7b08bd64a030b620cd6215918d6eafb260e86 | 2085d6dac8cf631571f2418a08cbe442fd4ebf5e | refs/heads/master | 2020-09-30T19:45:00.598795 | 2019-12-11T12:24:21 | 2019-12-11T12:24:21 | 227,359,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,373 | cpp | 18_2.cpp | # include <iostream>
using namespace std;
struct ListNode
{
int m_nValue;
ListNode* m_pNext;
ListNode(int value, ListNode* next=nullptr):m_nValue(value), m_pNext(next) {}
};
ListNode* CreateListNode(int value);
void ConnectListNodes(ListNode* pCurrent, ListNode* pNext);
void PrintListNode(ListNode* pNode)... |
fd3c2065af6a0edd313d9a005f8ddb380a833df2 | 992b4a29066b038e4a8e0ea8257eaac865e6166c | /src/visualisation/ftPressureField.h | c1839d0b5236ce4d80facd6d35e4bc9089463894 | [
"MIT"
] | permissive | julapy/ofxFlowTools | 22af5a773bca8d87f917ea42def73e55cad56003 | 5ae948352fb044bc3de3414070b5172fa54323a8 | refs/heads/master | 2021-01-18T10:51:41.312405 | 2015-07-22T10:12:28 | 2015-07-22T10:12:28 | 41,412,540 | 2 | 1 | null | 2015-08-26T07:59:01 | 2015-08-26T07:59:01 | null | UTF-8 | C++ | false | false | 1,581 | h | ftPressureField.h |
#pragma once
#include "ofMain.h"
#include "ftPressureFieldShader.h"
namespace flowTools {
class ftPressureField {
public:
void setup(int _width, int _height){
width = _width;
height = _height;
fieldMesh.setMode(OF_PRIMITIVE_POINTS);
float xStep = 1. / width;
float yStep = 1. / height;
... |
fd828e2cdd48a26ab01e5e5fc9523a3e0ed3c67e | d4919fec5e01d84abbd9f782611ca66a80d0b61a | /OOP_labs/lab3/vector.h | 9c09d2891f624655b8b3420009737f8c6852f2f2 | [] | no_license | Fogapod/university_projects | b749f978b11bd350192d9557fb6d3808d1e770f0 | e7fe4bd12324833eb6a584cec201dc1d60eac49c | refs/heads/master | 2021-07-10T06:22:04.882826 | 2019-03-16T06:38:36 | 2019-03-16T06:38:36 | 103,112,866 | 0 | 2 | null | 2017-12-30T19:41:41 | 2017-09-11T08:54:38 | C | UTF-8 | C++ | false | false | 224 | h | vector.h | #include <cmath>
class Vector {
public:
double x, y;
double get_module() {
return std::hypot(x, y);
}
void add(Vector v2) {
x += v2.x;
y += v2.y;
}
void substract(Vector v2) {
x -= v2.x;
y -= v2.y;
}
};
|
4353b425ef7469b31be90dd96f491d34a7b0b779 | 7b7570ef6a05e916d67f584ff487068495a75530 | /basicofprogram/pepcodingquestion/theorypart/arraypep/BarChart.cpp | 5206d6b0350ebcbbd306767a840baa28b67b321e | [] | no_license | JeetYad07/DSA | 09a7193c3e54c8f5b4a6aff9efc2cf19df3c5b84 | 484d2760d4c0bba3988cdaa886f06d1857d6ac77 | refs/heads/main | 2023-06-02T07:27:38.815108 | 2021-06-20T08:42:39 | 2021-06-20T08:42:39 | 378,594,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | BarChart.cpp | #include<iostream>
using namespace std;
// The main concept is here to find max value of an array, which act as a floor or row
int main(){
int n;
// cout<<"Enter a number:"<<endl;
cin>>n;
int arr[n];
for(int i=0;i<n;i++){
cin>>arr[i];
}
int max=arr[0];
for(int i=0;i<n;i++){
if(arr[i]>max){
... |
96a57bfdfa6e8083c4904c96134a0563979eec31 | 8b4cd859b2365d8800970f8d699b1a10f46e98bf | /17.电话号码的字母组合.cpp | aa18ebdbcd0578c63552969e82a6e6284826f082 | [] | no_license | 2013fangwentao/leetcode | 4aa2be2422be6e1c10d8f1b804591f43b320d398 | 2ba5639927f6da9f415450b0e01d04503d1790ce | refs/heads/master | 2020-07-07T09:24:45.216182 | 2019-09-03T13:54:47 | 2019-09-03T13:54:47 | 203,314,769 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,984 | cpp | 17.电话号码的字母组合.cpp | /*
* @lc app=leetcode.cn id=17 lang=cpp
*
* [17] 电话号码的字母组合
*
* https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/description/
*
* algorithms
* Medium (49.84%)
* Likes: 367
* Dislikes: 0
* Total Accepted: 31K
* Total Submissions: 62.2K
* Testcase Example: '"23"'
*
* 给定一个仅包含数字 2... |
0789e39be047b3f06e9e15f1272920f0d43f09ca | c603e00f13957e726f2e94a53a19b268ea0f60d7 | /code/Uncertainty/FPG/FPG/source/model/Probabilistic.h | 5dd3f395677c28cf1f03fb34d2b99192290b0537 | [] | no_license | xuanjianwu/plantool | 97015351670732297b5fbe742395c228b7e5ddba | 4fe56c6ff8897690cc2a3f185901dfe3faeb819a | refs/heads/master | 2021-01-21T20:39:03.688983 | 2017-05-30T00:57:44 | 2017-05-30T00:57:44 | 91,229,802 | 2 | 0 | null | 2017-05-14T08:24:03 | 2017-05-14T08:24:03 | null | UTF-8 | C++ | false | false | 1,257 | h | Probabilistic.h | /*
* Probabilistic.h
*
* An interface representing a grouping of probabilities. The
* sum of all Outcomes within this probabilistic group must sum
* to be 1.0. A Probabilistic instance can manipulate the probabilities
* of its child DOMOutcomes to ensure this.
*
* Currently this is implemented by DOMAct... |
08b898bac334c1da34e4585271a18c74688dc30f | 6d76328bbd60ef9fe0e59fe6e20ba1df03d665d1 | /GeneratedFiles/ui_bovwtrainer.h | 83ce68c1467cca98c845aef33b162e4fb6b86ee9 | [] | no_license | WilliamLiPro/BoWtrainer | 9f5e343b3dddff37cbf06a2eb37d7a5ce05259ba | 1b0fca1b2558808de43a0f57111e5e0c937df30c | refs/heads/master | 2020-04-29T17:17:59.709714 | 2019-04-23T02:29:57 | 2019-04-23T02:29:57 | 176,292,682 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,163 | h | ui_bovwtrainer.h | /********************************************************************************
** Form generated from reading UI file 'bovwtrainer.ui'
**
** Created by: Qt User Interface Compiler version 5.3.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
61f925e66bb52b5b20b7158bc6cc11d16cc00dab | cc3b2f2d0b32fd30d7a5b586af82d6548a93b21a | /PropHunt_Game/src/Components/VictoryCheck.h | 64ef1c27d4dff5fede896c1170ac041f9dc1438d | [] | no_license | AndreiRafael/PropHunt_Multiplayer | 5398f9f659647e38d271933871b985c259f23cbe | 62f69c5a73a338b154e0dfd8570191353d8ed3ed | refs/heads/master | 2020-04-06T06:25:56.472422 | 2016-11-25T15:40:09 | 2016-11-25T15:40:09 | 73,871,973 | 0 | 0 | null | 2016-11-18T22:49:59 | 2016-11-16T01:38:40 | C | UTF-8 | C++ | false | false | 1,339 | h | VictoryCheck.h | #pragma once
#include <HifireLibrary.h>
#include <UDPComponent.h>
class VictoryCheck : public Component{
public:
UDPComponent* udpComp;
HudRenderer* rend;
private:
bool ended = false;
bool HuntWon(){
bool propsDead = true;
for (int i = 0; i < NUM_PLAYERS; i++){
if (udpComp->propArray[i]->IsActive())
pr... |
1aaae56cf3f85a13d2eb238419adec4130be1ce2 | d021b7c69ccb0e485c5304246a278f8b6978f3ef | /1141.cpp | 6cdbd6ca82e3ae670739e836e3883bf279483e54 | [] | no_license | caoshen/codehdu | bb888e23691cc7a713017ad942ae39591340b641 | 97672d29d2b123d3d209dedd1637ecc0e1524c85 | refs/heads/master | 2016-09-06T03:11:24.209846 | 2014-07-18T09:27:46 | 2014-07-18T09:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | 1141.cpp | /**1141
**/
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int y;
while (cin >> y , y ) {
int n = pow(2.0, (y - 1960) / 10) * 4;
int num = 1;
double sum = 0;
while (sum <= n) {
sum += log(num++) / log(2);
}
num--;
cout << --num << endl;
}
}
|
4082e0bf30838306d963bffbf352c7b6e645b30d | a5673b7665482ecc069ffab5464076ae38968987 | /spheroidal/sphwv/adder.hpp | 90a9e9e8aebbda522c06d5195983a776f9629e24 | [
"BSD-2-Clause"
] | permissive | leewujung/scattering | b3dd5eaf712bde85990c37a947624925c6787aea | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | refs/heads/master | 2020-04-10T06:54:56.734530 | 2018-03-04T23:15:11 | 2018-03-04T23:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,799 | hpp | adder.hpp | //
// Copyright (c) 2014, Ross Adelman, Nail A. Gumerov, and Ramani Duraiswami
// 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 cop... |
37812fbe0c46ccb98c9183565b8fa21fbb24d9a8 | 2d000b353e54ebb6f55d281d567f46be369b8cc6 | /src/python/corrade/bootstrap.h | 5278628cf33f4692e48d42d3ab1ef1df30147d53 | [
"MIT"
] | permissive | mosra/magnum-bindings | cb31ab52501bed22eddfa3d4688de56e902f22d8 | 93f9eb814bf8532129e1fa4a241bca3a0b69e4e6 | refs/heads/master | 2023-08-02T22:54:48.539927 | 2023-07-23T10:49:03 | 2023-07-23T10:49:03 | 184,422,650 | 20 | 11 | NOASSERTION | 2022-11-29T23:17:22 | 2019-05-01T13:46:31 | C++ | UTF-8 | C++ | false | false | 1,974 | h | bootstrap.h | #ifndef corrade_h
#define corrade_h
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021, 2022, 2023 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this so... |
9aed3d95ff71e717b4c18825fb8331fc2d352ab8 | 88a759d540bbd1c59a4d6558b357c78dfd875d88 | /cppprimer/firstread/prog28.cc | 13db42494540c9055997197b2ae254980ca0624a | [] | no_license | ivantan/cppdevelopment | 20d7df1de7145378af9919989f1a1455cd64884b | aa7ac87c98afbda167ea55dfef1687d6a4455bcd | refs/heads/master | 2016-08-03T05:42:06.446905 | 2015-08-24T13:41:17 | 2015-08-24T13:41:17 | 28,193,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cc | prog28.cc | // Chap 3: String, Vectors, and Arrays
// 'string' type
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main()
{
string s; // s1 is the empty string
cin >> s;
cout << s << endl;
return 0;
// if the input is two words, 'Hello World'
// only 'Hello' will be printed ... |
e1f1fcdd95055d372e94fa061903d81402f386d0 | 729504b2cd94f8d190f459f1f7f367b1a27d3e69 | /src/test/InputSignals.h | 5b70c538a099bd236e89578205a564aa8e8f700a | [
"MIT"
] | permissive | vallant/reta | 76acc08101a010351df4e208695c246ff7536f0d | f9eb515a956ebdb8163beda0cd927dfc64875b62 | refs/heads/develop | 2023-02-28T16:26:25.998866 | 2021-02-01T16:56:20 | 2021-02-01T16:56:20 | 322,025,016 | 2 | 0 | MIT | 2021-02-01T16:56:21 | 2020-12-16T15:33:44 | C++ | UTF-8 | C++ | false | false | 873 | h | InputSignals.h | #pragma once
#include <buffer/Buffer.h>
using InputSignal = std::pair<const char*, int>;
/* A class to hold all available input signals */
class InputSignals
{
public:
/* Initialize the input signals */
InputSignals();
/* Return the number of input signals */
static size_t size();
... |
e88daa0e7aee742996dfa526726893876d6a121a | a373dfebbc35c9fbcf41120b664560c48777b90d | /VolumeRender.cpp | 517c0211506d687c72af3d37532c51a8de121de0 | [] | no_license | hopexn/DVR_RayTracing | 7c13e0c132947dd8c49b10c149ee07da9384929c | 3c65cc3f3a21418ed6645ec370c1b4e3c40d7d67 | refs/heads/master | 2020-04-14T04:10:46.612295 | 2018-12-31T00:42:10 | 2018-12-31T00:42:10 | 163,627,813 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,483 | cpp | VolumeRender.cpp | #include "VolumeRender.h"
#include <iostream>
#include <QLabel>
#include <QPixmap>
#define VOLUME_MAXIMUM_VALUE 255
using namespace std;
VolumeRender::VolumeRender(QWidget *parent) : QWidget(parent) {
width = 256;
height = 256;
this->setFixedWidth(width);
this->setFixedHeight(height);
image = new... |
e0b81aa76f979fc7b60dd0bdf6d8ec1c9d91ad1f | fb0f9abad373cd635c2635bbdf491ea0f32da5ff | /src/coreclr/pal/inc/rt/weakreference.h | d0b88d62e6c1565144f321eb8cb0ef4fdf2acea7 | [
"MIT"
] | permissive | dotnet/runtime | f6fd23936752e202f8e4d6d94f3a4f3b0e77f58f | 47bb554d298e1e34c4e3895d7731e18ad1c47d02 | refs/heads/main | 2023-09-03T15:35:46.493337 | 2023-09-03T08:13:23 | 2023-09-03T08:13:23 | 210,716,005 | 13,765 | 5,179 | MIT | 2023-09-14T21:58:52 | 2019-09-24T23:36:39 | C# | UTF-8 | C++ | false | false | 2,512 | h | weakreference.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
//
// ===========================================================================
// File: weakreference.h
//
// ==================================================================... |
92a860c5b409caf0ca83aca63b1dab6a04299de7 | 4a95ed16ad5f59a7fe5493716f60138518704a74 | /IC_server/win_admin_tcp.cpp | bd6ac2288f37e210a54f53fc22e9e2a5417dcabf | [] | no_license | tingroger/IntelligentCommunity | 2096c15e0db8c20cc6977c2eecf91bacc936c180 | 726eaa57542a5fc08f6fba7c9fb79a6ebeecebbc | refs/heads/master | 2023-03-18T20:37:01.208761 | 2020-12-08T22:38:07 | 2020-12-08T22:38:07 | 319,767,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,174 | cpp | win_admin_tcp.cpp | #include "win_admin.h"
#include "ui_win_admin.h"
#include <QFileInfo>
void WinAdmin::init_tcp_server()
{
server = new QTcpServer;
//监听客户端
if(!server->listen(QHostAddress::Any,SERVER_PORT))
{
qDebug() << "TCP server listen failed";
return;
}
//建立newConnection信号的槽连接... |
655aeb709abeb278595540349a848838faf63fdc | 505ab4574ab1b72f38160ccc5b7a0c3e96aae23b | /wcrg/particle.cpp | d0efe926612761cbd277dd94a238f409125a6adf | [] | no_license | Huaguiyuan/codebase | fd67429336ce0c65fb920d75989f179a3fbfd266 | dedaa11970bae31d90ba5206c1b8ee0a84f5fa18 | refs/heads/master | 2020-03-23T09:13:49.504754 | 2017-05-26T18:56:15 | 2017-05-26T18:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,196 | cpp | particle.cpp | #include "particle.hpp"
particle::particle(const fermi_surface &fs, const hamiltonian &H): H_(H), fs_(fs)
{
patch_ = -1;
kk_ << 0.0, 0.0, 0.0;
bix_ = 0;
sp_ = 0;
}
particle::particle(int patch, int bix, int sp, const fermi_surface &fs, const hamiltonian &H): H_(H), fs_(fs)
{
patch_ = patch;
kk_ = fs_... |
2850994c85dca573c27991e3b26592852cd960eb | 326c7db4f747d3fb8444c6514ee8d04479a444c0 | /include/fluxoExtracao/leitorMapa.h | 80b0381031cac47195783c40716dbd7b729e807c | [] | no_license | LivDelgado/estruturas-de-dados-tp1 | c91ea85bdf9b091214a7bfef3ad1d58f3ea6cea4 | fd6527df6534af9f0d933c76534107a0c12eae2b | refs/heads/main | 2023-07-02T15:01:29.649501 | 2021-08-07T01:25:35 | 2021-08-07T01:25:35 | 333,572,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | h | leitorMapa.h | #include "fluxoExtracao/leitorArquivos.h"
#include "planeta/mapa.h"
#include <string>
#ifndef LEITOR_MAPA
#define LEITOR_MAPA
namespace extracaoZ {
class LeitorMapa : LeitorArquivos {
private:
Mapa* criarMapa(std::string* linhasArquivo);
public:
LeitorMapa();
... |
d04c93531049b2b75603ad95c468552ae31c1f8f | 16151e6183a9db973516c7fad3383a41329a49da | /utility/DFileUtil.cpp | 60a8a71f749a7b6356009299d8fb06a7f084f77f | [
"Apache-2.0"
] | permissive | PaulusChen/Dagger | e00f8c7205011b0687582f7bb474be717403cc08 | 28f6531a708eec0488cc6af4024edad757a4235b | refs/heads/master | 2021-08-23T19:12:30.737890 | 2017-11-30T09:52:13 | 2017-11-30T09:52:13 | 53,682,040 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,307 | cpp | DFileUtil.cpp |
#include <dagger/Dagger.hpp>
#ifdef WIN32
#include <windows.h>
#elif __linux__
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <linux/limits.h>
#include <string.h>
#endif
using namespace Dagger::Utils;
using namespace std;
void DFileUtil::SetCurrentDir(const ::std::string &path)
{
#ifdef WI... |
5a5a066a1af33c8ba6828de36ce19038e59b9b32 | c75c04e8a98426272519fa2976dd82dbc3d3c765 | /src/crypto_concepts.hh | f8d0d27925c1236e4ea246b027841b6947f1c096 | [
"BSL-1.0"
] | permissive | everard/libecstk-crypto | 916a488a7edb0739b6b9a6f65ee49d597d1fa111 | 2b6539ed349fc437e867115e07a0c9eb286c873d | refs/heads/master | 2023-05-13T14:14:55.986331 | 2021-06-08T17:03:28 | 2021-06-08T17:03:28 | 361,812,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,932 | hh | crypto_concepts.hh | // Copyright Nezametdinov E. Ildus 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#ifndef H_7EF44563B1C6470B8FFFEFB77C5D88DF
#define H_7EF44563B1C6470B8FFFEFB77C5D88DF
#include "buffer.hh"
#include <... |
ec77d1127dfe51b8e7bf2bcac707a07c2e0bad7c | 7a478ef9efd0c3b4424c5f2f3a17fede7bb95254 | /Libraries/RegisterMonoModules.cpp | 030783a95c8bb51744ac48eabe27f4fde4112fd0 | [] | no_license | Marcurion/test2 | dfe1bfd3cc50fa24a76cd88f74b52c2c8f9096e5 | 37425035a4db1084b4b03154b16d6cac90c2e31b | refs/heads/master | 2021-01-10T17:01:21.212134 | 2015-11-26T10:32:37 | 2015-11-26T10:32:37 | 46,919,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | cpp | RegisterMonoModules.cpp | #ifndef INIT_SCRIPTING_BACKEND
extern void RegisterAllClassesIPhone();
void RegisterAllClasses()
{
// Register classes for unit tests
RegisterAllClassesIPhone();
}
void RegisterAllStrippedInternalCalls() {}
#endif
void RegisterMonoModules() {}
|
9ae28d446cb660dff7f61460fda184bf9f0ce0bc | 46c98ed99c6f37736725851205be9862f254796c | /include/pgen/pgen.hpp | 88115b0e8fc7551969335a39384445ae26432022 | [
"MIT"
] | permissive | sadn1ck/pgen | 1461476399ea9ea66cbf342b49f7a38301d4461d | ae7b5df204e8cf4d7718a20b2e1339fb3105b9fd | refs/heads/master | 2023-01-15T23:58:29.011127 | 2020-11-24T17:13:48 | 2020-11-24T17:13:48 | 303,749,080 | 8 | 0 | MIT | 2020-10-29T05:28:56 | 2020-10-13T15:34:34 | C++ | UTF-8 | C++ | false | false | 1,436 | hpp | pgen.hpp | #ifndef pgen_H
#define pgen_H
#include <string>
/**
* @brief The pgen class
* @author Anik Das
* @date 23 October, 2020
*/
class Pgen
{
public:
/**
* Constructor
*/
Pgen();
/**
* Destructor
*/
~Pgen();
const char *LENGTH = "-l"; /**< CLI argument of the length */
const char... |
ed7b87c9b3995565e57da125186d590436513e27 | 3af953e3624b7feb7145ebb6081fc751b0c10bc1 | /opengl_renderer/source/index_buffer.cpp | b7a61653a9734aac9b5add95a78330393cff46d4 | [] | no_license | Jengerer/Re-Quake-II | 1a245d501ffde0c1b8dfd27e476afc3b10d7adda | 5e76e7c80ade23f47e525d35e96e56639f0b11f9 | refs/heads/master | 2020-05-26T08:05:04.736766 | 2015-01-15T03:16:20 | 2015-01-15T03:16:20 | 28,839,575 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,724 | cpp | index_buffer.cpp | #include "index_buffer.h"
#include <error_stack.h>
#include <memory_manager.h>
namespace OpenGL
{
IndexBuffer::IndexBuffer()
{
}
IndexBuffer::~IndexBuffer()
{
if (handle != 0) {
glDeleteBuffers(1, &handle);
}
}
// Initialize the index buffer.
bool IndexBuffer::Initialize()
{
glGenBuffers(1, &handl... |
d4c9dec146647d267c25bd98c58a9a79268aca23 | 7f9b37a228205b0fd303096ac56baea3c1b8f5a8 | /tools/llvm-pdbdump/YAMLOutputStyle.h | cbd1817773ce79383efa468bf357c52fcd264647 | [
"NCSA"
] | permissive | weliveindetail/pj-llvm | 774c73412b64960aea644a68fbfab18adaa0997a | a3a6b523e79b797b6db43dfdf21918e7fcd443ab | refs/heads/master | 2021-01-17T18:06:06.162663 | 2016-06-20T12:51:55 | 2016-06-20T12:51:55 | 58,360,621 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | h | YAMLOutputStyle.h | //===- YAMLOutputStyle.h -------------------------------------- *- C++ --*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
1fee74c738bf1d736f3fd62481c5cb5c7d15a81f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1674486_0/C++/petterbb/1.cpp | cdcc20899341800b8135a4d662e7eb678445e959 | [] | 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,753 | cpp | 1.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cstring>
#include <vector>
#include <queue>
using namespace std;
bool vis[1010];
int indgree[1010];
vector<int> a[1010];
int main(){
freopen("1.out", "w", stdout);
int t;
cin >> t;
for(int testCases = 1; testCases ... |
0ed972d319375175895f0552471b99afb532a20f | 5010b46a3ee3be24f7cac71a4ca76053f01647af | /catkin_ws/src/loam_velodyne/src/MapStitcher.cpp | e855191fa5102a14809962f13c80fc8a18b1dcbc | [
"BSD-3-Clause"
] | permissive | el766/Depth-Guided-Inpainting | f3afca7114c4743a6272194b60c013c20d048fbf | 0f3499d9cd5deed2ee213ee8d70395d7202e69ee | refs/heads/master | 2023-04-10T06:40:01.883254 | 2021-04-22T23:11:54 | 2021-04-22T23:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,533 | cpp | MapStitcher.cpp | #include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
#include <message_filters/subscriber.h>
#include <sensor_msgs/point_cloud2_iterator.h>
#include <pcl/io/ply_io.h>
#include "../include/loam_velodyne/Twist.h"
#include "loam_velodyne/LaserMapping.h"
#include "lib/math_utils.h"
#include "../include/loa... |
c0875ef1377b4b0bee0189855123dbc62ec6d3ee | 07cc4d9e645f506056c45787507017db9b857fdd | /day4/const.cc | 3f872e4790e8bd7f60163ab8acffe4e49e33d5e9 | [] | no_license | lesswork/plus | b5aa96ef9455682306c287d8a418484b3a1c7f32 | de27ea6808f8ec76c08a3e942c87a8176811fe35 | refs/heads/master | 2020-12-25T16:47:49.661307 | 2016-08-25T06:44:02 | 2016-08-25T06:44:02 | 66,532,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cc | const.cc | #include <iostream>
using namespace std;
class Base
{
const int c;
int b;
public:
Base(int arguments) : c(arguments)
{
b = 10;
cout << "cttor() called" << endl;
}
~Base()
{
cout << "dttor() called" << endl;
}
void display(void) const
{
//we can not modify in const function
//b++;
cout << "const... |
278032b425b1f7b29ed37de7352273f0f905586e | f5b3bf329be9f4cdc9b896577a1206c6b126f0ac | /Source/Client/CMP303 Coursework 1701542/GameState.cpp | 7a1a9d6ce2d392a4f854ce2b6d90e8018d4966a9 | [] | no_license | 1701542/NetworkingCoursework | acae0da6c9c34f7be2c5eb6946de22195a76e559 | 9c0ad0e53623d7d44e10239d2949c1bf3140c75d | refs/heads/main | 2023-03-29T19:31:10.671159 | 2021-03-08T16:20:58 | 2021-03-08T16:20:58 | 345,718,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,172 | cpp | GameState.cpp | #include "GameState.h"
#include <string>
GameState::GameState(sf::RenderWindow* hwnd, InputManager* input, _STATE* state)
{
window = hwnd;
inputManager = input;
currentState = state;
level = new Level(window);
}
GameState::~GameState()
{
}
void GameState::AddNewPlayer(unsigned short port)
{
// Create a playe... |
c512fa5b42563f2e7fcb988675dbaa64602efd1e | 2e0472397ec7145d50081d4890eb0af2323eb175 | /Code/include/OE/Graphics/2D/PathRenderer.hpp | b3306c1d9df4ee5f467ae5adbe386c10045c8d65 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mlomb/OrbitEngine | 5c471a853ea555f0738427999dd9cef3a1c90a01 | 41f053626f05782e81c2e48f5c87b04972f9be2c | refs/heads/master | 2021-09-09T01:27:31.097901 | 2021-08-28T16:07:16 | 2021-08-28T16:07:16 | 99,012,019 | 26 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,690 | hpp | PathRenderer.hpp | #ifndef GRAPHICS_PATH_RENDERER_HPP
#define GRAPHICS_PATH_RENDERER_HPP
#include "OE/Math/Vec2.hpp"
#include "OE/Math/Vec4.hpp"
#include "OE/Math/Mat4.hpp"
#include "OE/Math/Scissor.hpp"
#define MAX_DRAW_COMMANDS_BUFFER_SIZE 50000
#define MAX_POINTS_BUFFER_SIZE 50000
#define MAX_PATHS_BUFFER_SIZE 5000
/* Based on Nano... |
45bd3fb863a82d87a6b79072e589e81b50ebbdf7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/signin/internal/identity_manager/account_capabilities_fetcher.cc | b93286b42e35b8226e530b23d00b92c5ef14ccc5 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 923 | cc | account_capabilities_fetcher.cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/signin/internal/identity_manager/account_capabilities_fetcher.h"
AccountCapabilitiesFetcher::AccountCapabilitiesFetcher(
const CoreAccountInfo& accoun... |
8e5cd0a0db0d1763acaeb231248befd3d8196836 | d14853c465ede75b0f18f3ee59654310580e2551 | /editor/mainwindow.h | 0c894c73ee44941c650eae4a5c3703bea91204ab | [] | no_license | k3a/Panther3D-2 | dec2f4ef742c1b57da1f17e2b55c39d471e0309a | f906796e331d70ac963d0b899c4c83c50b71cdc0 | refs/heads/master | 2021-01-10T22:23:02.226127 | 2014-11-08T21:31:46 | 2014-11-08T21:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include "propertyeditor.h"
#include "engine.h"
namespace Ui
{
class MainWindow;
}
using namespace P3D;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();... |
20e9314641e2f4d25698d0fc411d69b6d761bc9a | 6c4aa65b25a759d63579086d323e074e4050cca8 | /Stream IO/PhoneBookWithFile/PhoneBookWithFile/PhoneBookWithFile.cpp | 5256f1048abfbc5c2926bde192c962a1ac9cb658 | [] | no_license | ElenaSerbova/C-OOP | 629e74c32c489b948792a7f7ac601cec2d367f12 | 410ed8845a3565f1b001c731d4207f27e1216953 | refs/heads/main | 2023-07-18T03:18:03.887635 | 2021-08-25T11:04:19 | 2021-08-25T11:04:19 | 348,690,051 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,308 | cpp | PhoneBookWithFile.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;
class Contact
{
public:
string name;
string phone;
};
//ввод данных с клавиатуры
void InputNewContact(Contact& contact);
//сохраниение контакта в файл
void SaveContact(const Contact& contact);
//считывание всех ... |
4422747d87f017189847f00a57bd6c30916f5d7d | ab5d268ff52f93985b2f59033856b00e110029e0 | /37_Sudoku Solver.cc | c63b1731c54ba2de4dec0c255b8422a62413b66c | [] | no_license | fiony/leetcode | 8d120a0f5ae9e2248003e36152a2cbe6431fbe63 | 216924f88478619d853d260fa640b3a5d349ea02 | refs/heads/master | 2021-01-02T09:00:36.192553 | 2018-02-15T13:03:41 | 2018-02-15T13:03:41 | 99,121,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,956 | cc | 37_Sudoku Solver.cc | class Solution {
private:
const int NUM = 9;
const int SUB_NUM = 3;
const int ALL_CANDIDATE = 0x1FF;
const int digit2flag [9] = {0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x100};
public:
typedef struct{
int i;
int j;
int candidates; // avaialbe candidates to fill the cell
... |
fad9138625fcbe54395b4078108ed46910dca835 | 04ae93f4a65c511db92d8064f85851dcaf65eb07 | /ar_jitendra __testproject/basic/aruco_simple.cpp~ | 003310e25b75db247c34236ffd6fb6de15bbfc96 | [] | no_license | jitenderss/Summer14 | b32e1ddfc6f27f2ce5fe7b61c9e187d586a74102 | 049cba0fcb48f7986433e2b54f1e73f6d1d8ca8c | refs/heads/master | 2016-09-06T18:37:15.458495 | 2014-07-10T07:53:03 | 2014-07-10T07:53:03 | 19,976,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | aruco_simple.cpp~ | #include <iostream>
#include <aruco/aruco.h>
#include <aruco/cvdrawingutils.h>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
using namespace aruco;
int main(int argc,char **argv)
{
try
{
if (argc!=2) {
cerr<<"Usage: in.jpg "<<endl;
return -1;
}
Mark... | |
d0c84688da5633d40e8f6cf5cda34fa55a0bb467 | 46e3575e04c55b84c3c7bb5dc60fa6d34d5f4236 | /KaboomGraphicsEngine/stdafx.h | da694b3bc178ff7983851eb8047cf68f8865ff9d | [] | no_license | blockspacer/Kaboom | ba269827bdc86cba890f48ee0cc0134f7bda8acc | 6b75e1a5ff08ef1ebdb73bbd07c4fe8214644e58 | refs/heads/master | 2021-03-03T19:16:26.676258 | 2017-04-20T04:58:37 | 2017-04-20T04:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | h | stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <string>
#include <vector>
#include <iostream>
#inclu... |
853f80ddc2febf1c75ea0ecf0be960551186ea39 | 6d258d9abc888d6c4640b77afa23355f9bafb5a0 | /c++17/boyer_moore.cpp | a3bd4d3f1c8588efc8def2f97288c0483f9dbae7 | [] | no_license | ohwada/MAC_cpp_Samples | e281130c8fd339ec327d4fad6d8cdf4e9bab4edc | 74699e40343f13464d64cf5eb3e965140a6b31a2 | refs/heads/master | 2023-02-05T00:50:47.447668 | 2023-01-28T05:09:34 | 2023-01-28T05:09:34 | 237,116,830 | 15 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | boyer_moore.cpp | /**
* boyer_moore.cpp
* 2022-06-01 K.OHWADA
*/
// g++-11 boyer_moore.cpp -std=c++17
// reference : https://qiita.com/Reputeless/items/db7dda0096f3ae91d450
#include <iostream>
#include <string>
#include <algorithm>
/**
* main
*/
int main()
{
const std::string in = "ATGGTTGGTTCGCTAAACTGCATCGTCGCTGTGTCCCAGAA... |
98bc1d79d8141d9caf6fd50ac14076c93a817f49 | de45eb787bf813be6f2a1951f514984b4e36c039 | /WindowsStore/WindowsStoreImpl.cpp | 3a3999d32e598b45453e5c0772865d8041ecec07 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/MFCStoreClient | bfedeea23df0731652b4a42121f8c95bcbbc2085 | 5da0d0c5c25fd444c60b418a61a4b72e1ff04723 | refs/heads/master | 2023-08-24T12:48:13.725927 | 2022-09-01T21:30:42 | 2022-09-01T21:30:42 | 160,876,128 | 14 | 11 | MIT | 2022-09-01T21:30:43 | 2018-12-07T21:14:34 | C++ | UTF-8 | C++ | false | false | 5,683 | cpp | WindowsStoreImpl.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "WindowsStoreImpl.h"
#include <ppltasks.h>
#include <shobjidl.h>
#include <wrl.h>
#include <string>
#include <sstream>
#include <functional>
using namespace concurrency;
using namespace WinRT;
using namespace... |
b498e12969f64dbad4f6a3d3808ea62c41fe1466 | d9b6de55af0b6e1493fc77abd28a9cab21ed5c36 | /unit_tests/_gtest_extensions/gtest_throw_what.hh | 7ceb45b35edb06146897a073d4827b5b85a57ab3 | [] | no_license | flow123d/flow123d | 016af7cd55b5a8ed9426d843aace62f12b01cbb1 | 1f02b2c851f0e6ec2f93321b623000381b558a0b | refs/heads/master | 2023-09-05T01:38:06.288200 | 2023-09-04T13:24:38 | 2023-09-04T13:24:38 | 13,628,170 | 17 | 16 | null | 2023-09-12T11:27:36 | 2013-10-16T18:56:28 | C++ | UTF-8 | C++ | false | false | 2,787 | hh | gtest_throw_what.hh | /*
* gtest_throw_what.hh
*
* Created on: May 21, 2012
* Author: jb
*/
#ifndef GTEST_THROW_WHAT_HH_
#define GTEST_THROW_WHAT_HH_
/**
* Macros for death test that test particular class of exception
* and more over test contents of message created by its what() method.
*/
#include <gtest/gtest.h>
// Ret... |
9a3a07a30626c59663dedd2f4cbaafc14ef91667 | ffac7f82e8e637c4b283b274d053c576a6e442e6 | /software-renderer/crender-mt/crender-base.h | 528c5cb823959a68bc67523d3140227356d3a0c3 | [] | no_license | Zeimd/crender-mt | fb4dd919849c535c6676163fd5460ee7e7ff631e | ac577975fa99f95ef8d59c11153df198d71b4961 | refs/heads/master | 2022-12-08T22:41:01.296965 | 2022-12-06T12:21:33 | 2022-12-06T12:21:33 | 157,098,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | h | crender-base.h | /*****************************************************************************
*
* crender-base.h
*
* By Jari Korkala 4/2013
*
*****************************************************************************/
#ifndef _CENG_CRENDER_BASE_H
#define _CENG_CRENDER_BASE_H
#include <ceng/datatypes/basic-types.h>
#include <ceng... |
a003e80659f0c7195781d9043d72b49ca5d5b0b5 | d932716790743d0e2ae7db7218fa6d24f9bc85dc | /ash/laser/laser_pointer_view.cc | 81d376e6c22ef26d3b9ed3c09cc24747b2c6d981 | [
"BSD-3-Clause"
] | permissive | vade/chromium | c43f0c92fdede38e8a9b858abd4fd7c2bb679d9c | 35c8a0b1c1a76210ae000a946a17d8979b7d81eb | refs/heads/Syphon | 2023-02-28T00:10:11.977720 | 2017-05-24T16:38:21 | 2017-05-24T16:38:21 | 80,049,719 | 19 | 3 | null | 2017-05-24T19:05:34 | 2017-01-25T19:31:53 | null | UTF-8 | C++ | false | false | 28,870 | cc | laser_pointer_view.cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/laser/laser_pointer_view.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <algorithm>
#inclu... |
b2b89856a952f707062f53f092b89cbf8a0c9936 | 4539096063554682a5c5ce71f5e508d2cfe55ecc | /loop_openmp_mt.cpp | 5cfe2b03646c4d0204127b50337ff172fc9dd92e | [
"MIT"
] | permissive | wedusk101/CPP | 6002035c2c95749d290e32e9415cdcdf42746ff0 | 0ab6ea1304bf82990d83d8c2d1bf19b277c21c57 | refs/heads/master | 2023-05-30T07:28:20.952376 | 2023-05-26T17:16:07 | 2023-05-26T17:16:07 | 77,129,709 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | loop_openmp_mt.cpp | #include <iostream>
#include <ctime>
#include <cstdlib>
#include <omp.h>
int main()
{
srand(time(NULL));
unsigned long long x= 0, sum = 0;
std::clock_t start, stop;
std::cout<<"Please enter the number of terms to add."<<std::endl;
std::cin>>x;
//omp_set_num_threads(2);
start = std::clock();
//#pragma omp paral... |
ae66e0e4e5f1aab3215d02e7fecefbcfe72e30cb | aab8c32b55d7c75cd7806ce8a4c4170891926bff | /cnodetablemodel.h | 7691f47f38ccbeae0c2cca014f77262fab07e87a | [] | no_license | INSYEN/DTNOTronAdminGUI | 129333862d09f304882b8788ecb9ef242e40e008 | 1b6223c02c4a30a8ada9a84d26ad6073b8929d63 | refs/heads/master | 2021-01-01T05:17:02.974924 | 2016-05-09T11:44:41 | 2016-05-09T11:44:41 | 58,369,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | h | cnodetablemodel.h | #ifndef CNODETABLEMODEL_H
#define CNODETABLEMODEL_H
#include "cjsonarraytablemodel.h"
class CNodeTableModel : public CJsonArrayTableModel
{
Q_OBJECT
public:
//Typedefs and enums
typedef enum
{
COL_NODENUM,
COL_AMPEID,
COL_HOSTNAME,
COL_COMMANDGENERATOR,
COL_PROTO... |
afd92b9c905be244483f27efd951d2a16e14151f | f0074aa6e7ed67b1f7b655966292ae2bc44ecec1 | /Raytracer/Raytracer/Light.cpp | 55297197cdac59cbe126c5dfb004e8d7bc9b1289 | [] | no_license | mvignale1987/computer-graphics | 68d4d3d3a4b4ee879f6a6a93891baf54712e9db6 | 397f2753c4431bff9a7ce76015ede7bcbdf2e9a1 | refs/heads/master | 2021-01-01T04:01:19.644099 | 2015-01-07T02:35:44 | 2015-01-07T02:35:44 | 58,962,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | cpp | Light.cpp | #include "Light.h"
Light::Light():
m_linearAttenuation(0),
m_quadAttenuation(0)
{
}
Light::Light(
const Vector3& position,
const Vector3& ambientColor,
const Vector3& diffuseColor,
float linearAttenuation,
float quadAttenuation
):
m_position(position),
m_ambientColor(ambientColor),
m_diffuseColor(diffuseCo... |
01288f599465b9f7503287d8e53449331d090fe8 | 5f0c0b915d537de3a60af8cb61a8610efad0667a | /PlaneSimulation/src/runway.cpp | 4742d803ed7463ab7d6e671dcf46339ca7b5ef60 | [] | no_license | jackdvpt/Airplane | a4f4fde7da9f6bae9b5ce4dffdd8ee282c1af2d6 | 1adc7ee7df699c909877356302288baff4537156 | refs/heads/master | 2021-09-02T14:16:27.318285 | 2018-01-03T05:08:55 | 2018-01-03T05:08:55 | 116,093,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | runway.cpp | /*
* runway.cpp
* Draws a runway (as a square) and then stretches it out
* Created on: 30/05/2017
* Author: Jack Davenport
*/
#include "runway.h"
void run(void) {
glBegin(GL_POLYGON);
glVertex3f(1, 0.1, 1);
glVertex3f(-1, 0.1, 1);
glVertex3f(-1, 0.1, -1);
glVertex3f(1, 0.1, -1);
glEnd(... |
4f0c340e7de6e6fb59d5db98f6692e2496aa6533 | ddd6148607906a91b584f57134c439747858925a | /IR_tx.cpp | 1d728b3b77661005e06480963d7fc15747e11154 | [] | no_license | bobparadiso/voiceRemote | 4861b9c6d3ba462b3ad9b2438fa95cf231972b3f | 82684097a3451daf30dca700ef6d09978e8a75c3 | refs/heads/master | 2021-01-01T03:58:25.720513 | 2016-05-04T02:22:06 | 2016-05-04T02:22:06 | 58,015,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,189 | cpp | IR_tx.cpp | #include <Arduino.h>
//digital pins 10 & 11
#define IR_LED_PORT PORTB
#define IR_LED_DDR DDRB
#define IR_LED_Mask (_BV(2) | _BV(3))
//
void setupIR_TX()
{
IR_LED_DDR |= IR_LED_Mask;
}
// This procedure sends a given kHz pulse to the IRledPin
// for a certain # of microseconds. We'll use this whenever we need to se... |
4730c4b0055379644ebf099b82fe1600bbb9a3ad | 061a75b319351f530b428413c33e1efc6b2937a1 | /keyssortfilterproxymodel.cpp | 6aa7dd7fb24d9a00744b9af3f4a8504c7c2141a9 | [] | no_license | ravirdv/s60-password-manager | 169531c1457fe266dc66cb4112e656a7081419c5 | e8329741c2ef7ca23699fe2c8284f8c654e1757f | refs/heads/master | 2021-01-21T18:06:33.542841 | 2012-02-04T17:30:27 | 2012-02-04T17:30:27 | 92,015,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | keyssortfilterproxymodel.cpp | #include "keyssortfilterproxymodel.h"
#include "QDebug"
KeysSortFilterProxyModel::KeysSortFilterProxyModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
}
void KeysSortFilterProxyModel::sortBy(QString roleName)
{
beginResetModel(); // Do I really need that?
if (roleName == "name") {
set... |
7d8d22d98926594e86ac2e587f2fc36d9babd8cc | cb56f8fe6b0fb074c4b52b834bb67866e1f9d280 | /sources/Application/Player/PlayerChannel.cpp | d673e1092e3f932acfa74918a6d25031f226db4a | [
"BSD-3-Clause"
] | permissive | djdiskmachine/LittleGPTracker | 64f45a650e8211aa78fd77bc891d4316ce9a41e9 | ec13c06cd07ac9dd93f7390d6464fc02010b100b | refs/heads/master | 2023-07-25T22:31:15.699304 | 2023-02-16T21:23:18 | 2023-02-16T21:23:18 | 520,839,751 | 17 | 5 | BSD-3-Clause | 2023-09-12T13:59:00 | 2022-08-03T10:43:10 | C++ | UTF-8 | C++ | false | false | 1,549 | cpp | PlayerChannel.cpp |
#include "PlayerChannel.h"
#include "Application/Player/SyncMaster.h"
#include "Application/Mixer/MixerService.h"
#include "Application/Model/Mixer.h"
PlayerChannel::PlayerChannel(int index) {
index_=index ;
instr_=0 ;
muted_=false ;
mixBus_=0 ;
busIndex_=-1 ;
}
PlayerChannel::~PlayerChann... |
3c5f8178ff95cb6459193d11c085ea1a5d586742 | a395d2a29a1d47afe9addf1a0d3f8cf3e19879f9 | /src/HaltonSequence.cpp | 7d95e8947ec1706dc428efe06f8a978f7bfa1d0c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | eliask/libseq | c467d55053bf49731cb9a45da550bea20a66b584 | 6ae01e34f91c5008bae46f3f19068d5f36869ca1 | refs/heads/master | 2021-01-13T01:55:26.973994 | 2013-01-30T12:16:22 | 2013-01-30T12:16:22 | 7,913,606 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,263 | cpp | HaltonSequence.cpp | //////////////////////////////////////////////////////////////////////////////
//
// HaltonSequence.cpp, 8.8.99, Ilja Friedel
//
//////////////////////////////////////////////////////////////////////////////
//
// Status: not tested in context of class Sequence
//
///////////////////////////////////////////////////////... |
7b82743d95cc17adf37fd6ff65b7383b6fa8a603 | 85883da801481f8a1e3467b4f36cbe483f69430d | /muduo/chp01/mutable.cc | f3b1ed5ca65903644f50819f211d7c9a9f9e2ff1 | [] | no_license | g1050/Daily_2020 | a55fd2181a60c870ae16f8adf02bcbc22dd94869 | 96e3a15625cd9313b3062b2a08f243e1aab71810 | refs/heads/master | 2020-12-23T00:11:57.154246 | 2020-05-31T01:10:02 | 2020-05-31T01:10:02 | 236,970,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cc | mutable.cc | #include <iostream>
class Test{
public:
Test():times(0){}
~Test(){}
void Output() const{
std::cout << "Hello World\n" << std::endl;
times++;
}
int getTimes() const{
return times;
}
private:
mutable int times;//mutable变量在const中是可以修改的
};
int main()
{
Test test;
test.Out... |
b6fdfea2889992fb3de9788411729f417ff35cc8 | e620cff91edffba0ebae17d9235f03db27363ffe | /controllers/test.cpp | f8faa2e57286c35be98b218800b4e53e7622fa9b | [] | no_license | marty1885/drogon-pytorch-poc | 5aa23bac7f7ec945b1ed6132ed080f1439b1d122 | a58943dcc44041d024596b18c538b036cfd52797 | refs/heads/master | 2023-07-14T05:54:30.163512 | 2021-08-29T08:42:30 | 2021-08-29T08:42:30 | 400,919,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 964 | cpp | test.cpp | #include <drogon/HttpController.h>
#include <torch/torch.h>
#include <ATen/ATen.h>
using namespace drogon;
class testctl : public drogon::HttpController<testctl>
{
public:
METHOD_LIST_BEGIN
//use METHOD_ADD to add your custom processing function here;
ADD_METHOD_TO(testctl::invoke,"/models/{1:model_name}/... |
f88c719c4e175fc7c864f0c6f32d8db00a3e4d38 | 338e958ce2b6f0cad9fa53e2ece8a77187dbbafe | /src/TessaSRMM.cpp | c08e3534e8fdf66db8598e1e89ef0467aeb4d759 | [] | no_license | sander/tessa | 5f705971e18ff6a35b7f8dab785da4d13152a45a | 3cc66fae33d0e448cf1ac104ca4f4973162d868d | refs/heads/master | 2021-01-23T15:58:36.633874 | 2007-11-26T22:32:41 | 2007-11-26T22:32:41 | 33,049,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,313 | cpp | TessaSRMM.cpp | #include "TessaSRMM.h"
BEGIN_EVENT_TABLE(TessaConversation, wxWindow)
EVT_SIZE ( TessaConversation::OnSize)
END_EVENT_TABLE()
TessaConversation::TessaConversation(wxWindow *parent, wxWindowID id)
{
// Create frame window
wxWindow::Create((wxWindow*)parent,id, wxDefaultPosition, parent->GetCli... |
e873308fb8899e140c16ade5fa740b41c7b142c3 | 6c44f94a9f1ede431534007007477112c83bb31b | /Source/ertgertgergre.cpp | c70811163d010445624d800514cad2e7829b7fe2 | [] | no_license | ItsVisual/GTA-V-SHADOW-MOD-MENU-SOURCE | e24b5a6fbc6151fcec7d6ae706fa6e5bffd25fb7 | ecc220bc53a2d77d06c7667d6a401e0062135752 | refs/heads/master | 2022-11-20T00:25:30.379274 | 2020-07-19T15:29:37 | 2020-07-19T15:29:37 | 280,697,670 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,888 | cpp | ertgertgergre.cpp | //Menu::Option("Airport Top", -1030.025146, -3015.658691, 49.091133);
//Menu::Option("Airport Bottom", -1500.652588f, -2858.271729f, 13.954378f);
//Menu::Option("Airport Office", -1559.734741, -3237.086182, 29.634100);
//Menu::Option("Franklin's Crib", 8.069606, 537.153015, 176.028015);
//Menu::Option("Micheal's Cr... |
9ba0aca9fcd1a5576b2a0f0eb7da9d5250aeefad | e15251ea93ce87e59d446e4e4a84b9fcb85ad64f | /my_work/rush00/Entity.class.hpp | 6db5897dae589e10cb86cbae9b0333d50cd285db | [] | no_license | motaylormo/CPP-Piscine | 91d920e170554ebf9d692f253c7812d0abb73ca9 | 2e3d072966183788fd500ca44ad63c66d1cb2cfd | refs/heads/master | 2020-08-21T00:16:58.188147 | 2019-11-21T18:40:16 | 2019-11-21T18:40:16 | 216,080,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | hpp | Entity.class.hpp | #ifndef ENTITY_H
# define ENTITY_H
# include <curses.h>
class Entity {
public:
Entity(void);
~Entity(void);
Entity(const Entity &ref);
Entity& operator=(Entity const &rhs);
Entity(int x, int y, int size, char c);
bool left(int min);
bool right(int max);
bool up(int min);
bool down(int max);
void print(... |
1118c022d7632e115cd804dab50009f696437611 | 59d8f0558f841c9c046d63ed24a124931bfa831a | /searchbar.cpp | d54bb627be46b08e7f51410aa6c751d0f45c1d56 | [] | no_license | jbw3/SearchTest | 0d003e5d4597c1eb3fad5eb5be542fd719272f80 | 7a012f405406bcc4972cae7d5fb0a27fd157d5fe | refs/heads/master | 2020-04-17T19:55:40.936879 | 2015-03-21T18:52:35 | 2015-03-21T18:52:35 | 32,645,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | cpp | searchbar.cpp | #include <QKeyEvent>
#include "searchbar.h"
SearchBar::SearchBar(QWidget* parent/* = 0*/) :
QLineEdit(parent)
{
}
void SearchBar::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
{
emit enterKeyPressed();
}
else
{
QLineEdit... |
4a8d72050436e909fe45d8693279c229c79c40da | 4b19135464a032c1d5271cd1ae58afb21df38584 | /Samples/C++/Demos/Donuts4/StdAfx.h | 80270526c93fe02d8633c64532d29f22fa0e8e0f | [] | no_license | sjk7/DX90SDK | f47cebbba53133923880004bc6e3a33cff1fe895 | dd155425badb2cd3993c27f869efc007764e599b | refs/heads/master | 2021-08-26T07:47:03.826451 | 2021-08-12T05:03:03 | 2021-08-12T05:03:03 | 253,911,891 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,524 | h | StdAfx.h | //----------------------------------------------------------------------------
// File: stdafx.h
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//-----------------------------------------------------------------------------
#pragma once
#ifndef STRICT
#define STRICT
#endif
#define DIRECTIN... |
c9787e306668bbc2e54fa849d79f1778507bc95b | ca1805c587ef2dbf86e44856f4956a89dfe8e89c | /src/graph/graphsearch.cc | abbbe91e7d7ca88245e6f5589d3af85d34cabc05 | [
"MIT"
] | permissive | y26jin/liby26jin | f29eed8c4959d3eff20b71caa4565fe1ea6c6d92 | cb331d07d04d8ccc15d356a3ba7e31fd2e1ceb9d | refs/heads/master | 2021-01-10T19:39:21.614638 | 2014-03-02T20:55:49 | 2014-03-02T20:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cc | graphsearch.cc | #include "liby26jin.h"
#include "graphsearch.h"
void BFS(Graph *graph){
if(graph == NULL){
DEBUG("Graph is NULL!");
return;
}
// Keep track of visited vertices
Vertex *finishList = (Vertex *)malloc(graph->vnum * sizeof(Vertex));
Vertex *targetList = (Vertex *)malloc();
}
void DFS(Graph *graph, V... |
7194676f52df4106cbb278d69d82470e769f4d16 | 5c18374f3f2fd48fa0f029183910eec54373b63c | /Bits/ToggleBitAtPosition.cpp | 99f66ac547fa822b9a38d2eb139fb13917c248c3 | [] | no_license | nguyenchiemminhvu/Algorithms | f65984e903a8ebd64fad5ad2069d2a6a019440df | 88359a31097ebea7e76588b0c2a42880c64d1aba | refs/heads/master | 2021-08-17T00:20:26.661854 | 2021-07-03T00:46:51 | 2021-07-03T00:46:51 | 274,611,559 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | ToggleBitAtPosition.cpp | /*
Toggling means to turn bit ‘on'(1) if it was ‘off'(0) and to turn ‘off'(0) if it was ‘on'(1) previously.We will be using ‘XOR’ operator here which is this ‘^’. The reason behind ‘XOR’ operator is because of its properties.
Properties of ‘XOR’ operator.
1^1 = 0
0^0 = 0
1^0 = 1
0^1 = 1
If two bits are different then ... |
bac7a0292ba47a3568cac85e1360d0740ed589ba | 40e5d332268d05c3f2ed0b4a1bdbd70ef650977f | /lib/Transforms/Optimizations/DivideGlobalAPIntoAPs.cpp | 8d0b541ee8ec405a6361878b818a9996b37bdfe7 | [] | no_license | sinferwu/onnc | 7c4766d0aedadb268a010eebbae1644381b3649b | 6628eb7eafa2fd9820a7e1191feff441ac03811e | refs/heads/master | 2023-08-25T07:26:28.360621 | 2021-06-17T17:57:18 | 2021-06-17T17:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,313 | cpp | DivideGlobalAPIntoAPs.cpp | //===- DivideGlobalAPIntoAPs.cpp ------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/Core/PassSupport.h>
#include <onnc/IR/ComputeOperator.... |
84ac27283208d7f37027f45ef3e42480a2a301fa | f89d365228e236cb9875114524c9460360234676 | /Week-01/Day-02/16. AnimalsAndLegs/main.cpp | ecbf07b1db74b14364382e09ac751b3a718d8eed | [] | no_license | green-fox-academy/Dextyh | 8c08afc3318df61b99029c8a3c821c8eed21da0b | 2da333d385526aeda779605f129e35e70b266034 | refs/heads/master | 2020-04-02T17:22:06.014213 | 2019-01-30T11:36:03 | 2019-01-30T11:36:03 | 154,655,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | main.cpp | #include <iostream>
int main() {
int chickens;
int pigs;
std::cout << "Greetings Farmer! Can I ask how many chickens you have? And also tell me how many pigs you own please!" << std::endl;
std::cin >> chickens >> pigs;
std::cout << "Nice! Do you know that how many legs all of them have? I will ... |
c766e7a668df3ec8819c32bf2713424c177ba867 | d4638a5bc8c372a32afe115dcb26a7f05b420165 | /gyazowin/Size.cpp | df3e201360cef107a50b2e3a05f2b4f30294612b | [] | no_license | ffoxin/gyazo | aa0b14873ec3be426b80b94f6c635d0829280dcb | b9ebd0a9e211e842050c05ea6594a793220c5576 | refs/heads/master | 2021-01-23T03:12:23.760105 | 2014-11-11T11:53:27 | 2014-11-11T11:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | cpp | Size.cpp | #include "size.h"
#include <utility>
namespace Gyazo
{
BaseSize::BaseSize()
: cx(size.cx)
, cy(size.cy)
{
// empty
}
BaseSize& BaseSize::operator=(BaseSize const& baseSize)
{
if (this != &baseSize)
{
size = baseSize.size;
}
return *this;
}
void BaseSize::Init(LONG const& cx_, L... |
b08c79ed98d328ccf31f162963d87259ea3fc775 | 3488502026b9f40fdc91ede22b76ab98c58faee0 | /lib/Acoustic Alarm/Buzzer.cpp | a9d917ca2da30020b906d2cd3aa6fe6f8eccce9e | [] | permissive | HDventilator/hdvent-control | 2aa224a5d428ec3c35e69ba65e4c2abfe09825c7 | fd04688063a77674115c6904edd5a38ea36c10b8 | refs/heads/master | 2021-05-18T21:18:19.859172 | 2020-12-15T15:18:12 | 2020-12-15T15:18:12 | 251,425,210 | 0 | 0 | MIT | 2020-05-17T20:35:08 | 2020-03-30T20:50:08 | C++ | UTF-8 | C++ | false | false | 1,010 | cpp | Buzzer.cpp | //
// Created by david on 26.09.20.
//
#include "Buzzer.h"
Buzzer::Buzzer(uint8_t pin, uint16_t onInterval, uint16_t offInterval) : _pin(pin), _hiInterval(
onInterval), _loInterval(offInterval) {
_isHigh = false;
_on = false;
}
void Buzzer::service() {
if (_on){
if (_isHigh) {
... |
169832ff582f719149e2d78887aee97c2dc4b710 | 00add89b1c9712db1a29a73f34864854a7738686 | /packages/utility/interpolation/src/Utility_HistogramInterpolator.hpp | 48ed798c911769cff7bda7cab54f0f3da322fd8c | [
"BSD-3-Clause"
] | permissive | FRENSIE/FRENSIE | a4f533faa02e456ec641815886bc530a53f525f9 | 1735b1c8841f23d415a4998743515c56f980f654 | refs/heads/master | 2021-11-19T02:37:26.311426 | 2021-09-08T11:51:24 | 2021-09-08T11:51:24 | 7,826,404 | 11 | 6 | NOASSERTION | 2021-09-08T11:51:25 | 2013-01-25T19:03:09 | C++ | UTF-8 | C++ | false | false | 4,517 | hpp | Utility_HistogramInterpolator.hpp | //---------------------------------------------------------------------------//
//!
//! \file Utility_HistogramInterpolator.hpp
//! \author Alex Robinson
//! \brief The histogram interpolator declaration
//!
//---------------------------------------------------------------------------//
#ifndef UTILITY_HISTOGRAM_IN... |
5b48fc8821448880c5e2c2d3566ad3dea278d603 | c7326f7e59c2635b3e5caf2f06ba0c509ab00c05 | /tests/stack_test.cpp | d18bac8686d3b57493867df71d903ff88d5a0562 | [
"MIT"
] | permissive | senior-sigan/data-structures-training | d9e37412311863bbaf4d3a69160ca7208b3c90a0 | 4317ff8d029dbc368328fa3afb6bbb48e0ac1c30 | refs/heads/master | 2022-12-08T03:11:31.450063 | 2020-08-22T15:46:13 | 2020-08-22T15:46:13 | 260,488,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,300 | cpp | stack_test.cpp | #include <gtest/gtest.h>
#include <stack/stack.h>
#include <memory>
TEST(stack, just_create_stack) {
my::Stack<int> stack;
}
TEST(stack, push_object_to_stack_changes_size) {
my::Stack<int> stack;
ASSERT_EQ(stack.size(), 0);
stack.push(42);
ASSERT_EQ(stack.size(), 1);
stack.push(7);
ASSERT_EQ(stack.size... |
431f978df32ae50eccaa60b05579a2827d29dbce | 0c69ac4bb6bb84db8d7b3f498fb1ffa67fe9aa76 | /cdb proj/кружок/подсчёт покрытых точек/main.cpp | 0b391117d316858d71aeb32d0af352ff9f26e199 | [] | no_license | petr-konovalov/c-projects | 42325cc0f2462bf7cb40028823c94176f300e68c | 9cec0f43790d3339148d8e5dbde03342f5900e52 | refs/heads/master | 2020-09-12T02:00:54.887681 | 2020-03-01T12:45:14 | 2020-03-01T12:45:14 | 222,263,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for(int i = 0; i < n; ++i)
#define debug(...) fprintf(stderr, __VA_ARGS__); fflush(stderr)
#define pb push_back
#define mp make_pair
#define F first
#define S second
const int K = 2e5 + 10;
typedef long long ll;
typedef double db;
typed... |
c970bcd7f3d247cd8719ed6470419111b6cfa00e | 0a6ad2f54688ec99e17ed4f74c47b7cac5955904 | /include/Components/GUIElement.hpp | 5fc8f0679ae84bfa1f0c0f91c66fcfbb6abe5f54 | [] | no_license | jamilettel/IndieStudio | b758ba2eb21ef006a88b3f6cf050cbdd75951fcc | 5dfef5e3797c8e1916ed0a19cc52b49b83f3ec46 | refs/heads/master | 2022-10-12T22:12:57.172659 | 2020-06-15T13:29:43 | 2020-06-15T13:29:43 | 261,168,491 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | hpp | GUIElement.hpp | /*
** EPITECH PROJECT, 2020
** IndieStudio
** File description:
** GUIElement
*/
#ifndef GUIELEMENTCOMPONENT_HPP_
#define GUIELEMENTCOMPONENT_HPP_
#include "ECS/Component.hpp"
#include "Components/Window.hpp"
namespace is::components {
class GUIElementComponent: public is::ecs::Component {
public:
... |
d1709cb777ca1dc9f961600bdc3364179a516a7d | 211325f1b3c6cff31ac1538e43df8f65b7b41103 | /src/tcp_listener.hpp | b15a4f896c1e8a634ed5931ebf8f9fe541bcd808 | [
"BSD-3-Clause"
] | permissive | byao001/bsnet | 00cc51a24cc0fe9b45a62e96665784dc5882a33e | 70095881d7038e247032e4d8102355bdf3a25238 | refs/heads/master | 2021-08-31T16:33:31.220071 | 2017-12-22T03:12:40 | 2017-12-22T03:12:40 | 109,085,800 | 0 | 0 | null | 2017-11-01T04:20:23 | 2017-11-01T04:10:38 | C++ | UTF-8 | C++ | false | false | 843 | hpp | tcp_listener.hpp | //
// Created by byao on 10/31/17.
// Copyright (c) 2017 byao. All rights reserved.
//
#ifndef BSNET_TCPLISTENER_HPP
#define BSNET_TCPLISTENER_HPP
#include "event.hpp"
#include "eventedfd.hpp"
#include "utility.hpp"
#include <cstdint>
namespace bsnet {
class Addr;
class TcpStream;
class TcpListener : public Evente... |
a0dbfae4f11e3595a753ddb487c9faaf1b3718f1 | 55eb2ffe4aa9ee4b18b1ee4d2e9f02e817bd059e | /Week 2/3. Lists/include.cpp | 39b3558a783423c13248475cd3d4e4667e005ce8 | [] | no_license | wmoralesdev/AA0220 | e5803838805defbc09cdb0bb93c630400cee1a68 | 83d97cd624b03d518a3562fd20e4af42e5bc8d5f | refs/heads/empty | 2023-06-01T02:06:06.290716 | 2021-06-29T05:04:27 | 2021-06-29T05:04:27 | 287,404,924 | 13 | 15 | null | 2020-09-22T22:14:42 | 2020-08-14T00:14:03 | C++ | UTF-8 | C++ | false | false | 2,410 | cpp | include.cpp | // Linked list, not circular, not double linked
#include <iostream>
#include <list>
using namespace std;
int main(void) {
list<int> l;
// push_back - appends element at list end
l.push_back(1);
l.push_back(2);
l.push_back(3);
l.push_back(4);
// push_front - inserts element a... |
931a0c1a5df909083de630c311a6a7af8acffc0c | 33394856a8de0e824ec49a3643e387cdbacca0c6 | /SolvedProblems/HDU/2056.cpp | fec2285644eaf9ce9db1e711ded59c05140d1dfe | [] | no_license | MoogleAndChocobo/ACM-Learning | caf116d713c24d14af166dac701e7812e495405b | 9a86daf172c3a74aab69f2054f222f51c5939830 | refs/heads/master | 2021-08-10T15:40:43.108255 | 2018-09-14T07:06:04 | 2018-09-14T07:06:04 | 129,596,917 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cpp | 2056.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define rep(i, a, b) for(int i = a; i <= b; i++)
#define mem(a) memset(a, 0, sizeof(a))
#define dow(i, a, b) for(int i = a; i >= b; i--)
#define sfi(a) scanf("%d", &a)
const int MAX = 1e4 + 5;
const int N = 1e4;
struct Node
{
double x1, y1, x2, y... |
da1a9a42835c9c16883142d39df66fdd3badd7c2 | 82cbd7396dd988a861d8493715642b8b48c90352 | /code/chapter_8_the_io_library/exercise8.9.cpp | 7b9adad108158725e5002fa07245a5d32e57e99c | [] | no_license | max-young/cpp_study | 7f548aa252430f1f09dab61ed1ef0a3ba5a5276c | 5f3606d96c08d88576cd7293356b6860c4b78e73 | refs/heads/main | 2022-07-09T20:11:51.090084 | 2022-07-07T08:01:40 | 2022-07-07T08:01:40 | 339,992,576 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | exercise8.9.cpp | // Exercise 8.9:
// Use the function you wrote for the exercise 8.1 to print the contents of an istringstream object.
#include <iostream>
#include <string>
#include <sstream>
using std::cin;
using std::cout;
using std::endl;
using std::istream;
using std::istringstream;
using std::string;
istream &printStream(istrea... |
c89e6fd355873dc786a2ef3d491450e2daf1e01b | 6fcea3030826b88cb41040ceba177aee8e8ba443 | /C - Servers.cpp | a88b60b42b1d66fd3e228477b961fc2c3ca925a6 | [] | no_license | KhaledMosaad/Comptitve_Programming | f1121d027c0730364623b4ab1fcbaea94c4e3c3d | f79235389827be3a90ee6f6948561471dc576ab0 | refs/heads/main | 2023-05-27T20:09:00.431124 | 2021-06-11T01:07:10 | 2021-06-11T01:07:10 | 375,865,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,566 | cpp | C - Servers.cpp | #include <bits/stdc++.h>
using namespace std;
#define all(v) (v.begin(),v.end())
#define sz(v) ((int)((v).size()))
#define F first
#define S second
#define pb push_back
#define mp make_pair
#define endl '\n'
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef pair<int, int> pii;
type... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.