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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed476a76b3d634794e75cca4004ea832da04a49f | 52ca1b5adba2ca71c41b66f5ba7c9de655718a36 | /src/parallel_omp/include/config.hh | d82b8644721f6f312951d666be8fa6e0efe52438 | [
"MIT"
] | permissive | IGMercier/15418-S20-Parallel-Compression- | 80b8eb3f7a48a09a0435f6e95900ab596bd1c489 | b6521ff5d668908ee8493aa04108b56dd04aaa26 | refs/heads/master | 2022-06-30T01:24:32.786669 | 2020-05-10T23:44:56 | 2020-05-10T23:44:56 | 258,647,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | hh | config.hh | #pragma once
#include <vector>
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define PIXEL 8
#define WINDOW_X 8
#define WINDOW_Y 8
#define SERIAL 0
#if !SERIAL
#define OMP
#endif
#define TIMER
#define NUM_THREADS 8
#define NUM_CHANNELS 3
/* Important data structures */
std::vector<std::... |
869a4865fec046e53303bf82aa35ffc447f5c41d | 3c149320955c2fea946f50abcd8f306c8b18f09d | /code/1598_꼬리를 무는 숫자 나열.cpp | 24de6b88c6c436ad7db2863bbda300c523200f0f | [] | no_license | mingnine/BOJ | 7bd8a1a5242ed40742948a22674986e58f9dcb49 | 6e3e190363b15d5c35014aa24af42f86f4a2b6a3 | refs/heads/master | 2020-05-17T01:10:23.099867 | 2019-11-20T15:13:12 | 2019-11-20T15:13:12 | 183,408,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | 1598_꼬리를 무는 숫자 나열.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a, b, c, d;
cin >> a >> b;
if (a % 4 != 0)
{
c = a % 4;
a = a / 4 + 1;
}
else
{
a = a / 4;
c = 4;
}
if (b % 4 != 0)
{
d = b % 4;
b = b / 4 + 1;
}
else
{
b = b / 4;
d = 4;
}
cout << abs(b - a) + abs(c - d) << en... |
c9ef6497d6959265232091492d21a33f9bfcf3db | 5fa590ba1a19c9eb9f000d652ff3d3a8a0cf1d64 | /EclipseProject/tlib/jni/core/fft/test1.cpp | cfbc31e4e601c473eb5c5ae5b3ca460ab097e108 | [] | no_license | liliang2008ll/Telesing | 416fb9c5d43e41888166fa83aa8fd9722b0ade88 | faca6a55e560a6eaba410c35612746cf120e43ef | refs/heads/master | 2021-01-10T08:10:07.344366 | 2015-12-25T10:47:50 | 2015-12-25T10:47:50 | 47,320,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | test1.cpp |
#include "Transformer.h"
#include "tchar.h"
int _tmain(int argc, _TCHAR* argv[])
{
int len = 16;
Transformer *t = new Transformer(len);
double td[] = {8, 2, 4, -8, 0, 5, -9, 5, 0, 5, 1, 4, 7, 3, 6, 4};
Complexs *fd = t->fft(td,len);
for (int i = 0; i < len; i++)
{
printf("[fft] [ i:%d] %lf %lf\n"... |
c4121085a376312834f73bfd39eef548f9d3ecf9 | 508fff84ee929a68daac4ff900d36912f0d6b6ed | /WarbandLib/rgl_strategic_entity.h | b047dba06e438017c9a7c46447a0dbcb86c1b747 | [
"WTFPL"
] | permissive | blockspacer/wse | f2e05755ba1263c645d0b021548a73e5a5a33ba6 | 3ad901f1a463139b320c30ea08bdc343358ea6b6 | refs/heads/master | 2023-03-16T13:15:04.153026 | 2014-02-13T08:10:03 | 2014-02-13T08:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | h | rgl_strategic_entity.h | #pragma once
#include "rgl_light.h"
#include "rgl_mesh_entity.h"
#include "rgl_particle_system.h"
#include "rgl_render_context.h"
#include "rgl_skeleton.h"
#include "rgl_texture.h"
#include "rgl_timer.h"
#include "stl_vector.h"
namespace rgl
{
struct skeleton;
struct strategic_entity : mesh_entity
... |
236fa348fee370850a7bb73586c2e70a01b163c6 | ffd2ca527b49d447def2702e45f8243897544702 | /src/crayg/tests/TestUsdPreviewSurface.cpp | 3c96ac67e1f03e78322d1318fefa879fe0d8148c | [] | no_license | Latios96/crayg | 17b730f745b9367cc15b55b8f1dbd095a29c86c9 | 57b206d755fb3cafd3dd7a04caa7382cd85f25f8 | refs/heads/master | 2023-08-17T10:26:10.310064 | 2023-08-07T16:23:21 | 2023-08-07T16:23:21 | 144,862,288 | 2 | 1 | null | 2023-01-26T11:43:21 | 2018-08-15T14:17:47 | Mathematica | UTF-8 | C++ | false | false | 1,391 | cpp | TestUsdPreviewSurface.cpp | #include "integrators/AbstractIntegrator.h"
#include "scene/materials/UsdPreviewSurface.h"
#include <catch2/catch.hpp>
#include <fakeit.hpp>
namespace crayg {
TEST_CASE("UsdPreviewSurface::evaluate") {
SurfaceInteraction surfaceInteraction({0, 0, 0}, {0, 1, 0}, {{1, 1, 0}, {-1, -1, 0}});
fakeit::Mock<Abstract... |
ca22254d8b61e559a1a5e5d94181876a71a4d962 | fbd1ce8deef8a606d5afff0ed115572b0261fd16 | /src/PrometheeIVKernel.cpp | f67d67305cc08c762232ad16820c04038aed802b | [] | no_license | lamfo-unb/RMCriteria | 84e2201ccd736753513292bdd53910ef36986d22 | 73238d435a5fcf5990d4d4fa77d6eb9e066a6d26 | refs/heads/master | 2021-03-19T14:25:23.224700 | 2019-09-16T23:36:17 | 2019-09-16T23:36:17 | 75,019,700 | 2 | 0 | null | 2018-04-08T21:26:41 | 2016-11-28T22:25:37 | R | UTF-8 | C++ | false | false | 12,659 | cpp | PrometheeIVKernel.cpp | #include <RcppEigen.h>
#include "Preference.h"
// [[Rcpp::depends(RcppEigen)]]
// [[Rcpp::depends(RcppNumerical)]]
#include <RcppNumerical.h>
using namespace Numer;
class UsualKernel: public Func {
private:
double y;
Eigen::VectorXd vec;
double band;
bool plus;
public:
UsualKernel(double y_, Eigen::VectorXd ... |
0081cfa2a472a790c7250fdbf121ff15ec86d027 | 24cd72f6442855a40d4a80f784a8b0fad6b133a3 | /shaders/shader.h | f90ad073edede836fd47472bcdc8e1dc29b5c495 | [
"MIT"
] | permissive | baleboy/learnopengl | ecdb4b05f33d279518035fdf55af5f4ccb6a3b2f | f82a0b6c12b95bae123c2e4ad1935d33198dcf14 | refs/heads/master | 2020-09-27T23:44:51.884991 | 2020-03-09T05:45:52 | 2020-03-09T05:45:52 | 226,638,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | shader.h | #ifndef SHADER_H
#define SHADER_H
#include <glad/glad.h>
class Shader {
public:
unsigned int ID;
Shader(const GLchar* vertxShaderPath, const GLchar* fragmentShaderPath);
void use();
};
#endif |
c7017a58d247ef934855bb1c546b2c22449f3388 | d2522083f0324e80fe49fa27ee2bf459687d54e5 | /cp_info.h | 96b4f7b0fc067f9d3b5b0fbb814217be1f545d79 | [] | no_license | KuhnTran/Simple-java-.class-file-interpreter-and-SSA-generator | b791d4421ca619c0d2d74b201fbcfb242ddb575d | 5783d6c2c73e79c5d1db8555d7ae281100965da1 | refs/heads/master | 2020-07-30T04:04:45.634465 | 2019-09-22T02:40:15 | 2019-09-22T02:40:15 | 210,080,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,726 | h | cp_info.h | #ifndef CP_INFO_H
#define CP_INFO_H
#include<cstdint>
#include<iostream>
#include"string.h"
using namespace std;
struct cp_info
{
string myString;
cp_info(uint8_t newTag, uint8_t* newInfo)
{
tag = newTag;
info = newInfo;
myString = "";
}
uint8_t tag;
uint8_t* info;
uint8_t ... |
d855fde33dc30716dbf0590827d0c81d9d1d0256 | 1724439e1f3b8e92874ba9f1d67cc4211890a4e4 | /module01/ex02/ZombieEvent.cpp | 8b0e130322e8c176317058b3bff9b3eb5c02a1f1 | [] | no_license | evelon/CPP-Module | 3aac6d1ff8bea2ea0f400832c35dc86057d0d704 | 7534e7d420360a19e411cbd450654f1fdb168552 | refs/heads/main | 2023-04-25T04:17:20.169564 | 2021-05-10T11:21:48 | 2021-05-10T11:21:48 | 358,794,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cpp | ZombieEvent.cpp | #include "ZombieEvent.hpp"
#include <iostream>
#include <cstdlib>
#include <ctime>
std::string ZombieEvent::Type = "";
void ZombieEvent::setZombieType(std::string type)
{
Type = type;
return ;
}
Zombie* ZombieEvent::newZombie(std::string name)
{
Zombie* zombie = new Zombie(name, Type);
std::cout << name << " b... |
8ee106b32c46a1a4f983fd8b61758472d9e7fff0 | 0a3e65d876b7656cfb129ea87fd10e6ad7753709 | /Repo.h | 3fe7bc221345fa2b6fc0b681abcde3fd5709e992 | [] | no_license | LauraDiosan-CS/lab04-stefanverciuc | 44403813e87ab29210884fb7bea364234a5fc063 | 1e5288ce9b52a876392bbe7a0f530b2b1c90b4b6 | refs/heads/master | 2021-03-23T14:13:50.037881 | 2020-03-23T18:05:51 | 2020-03-23T18:05:51 | 247,461,826 | 0 | 0 | null | 2020-03-15T12:27:25 | 2020-03-15T12:27:19 | null | UTF-8 | C++ | false | false | 247 | h | Repo.h | #pragma once
#include "produs.h"
class Repo {
private:
Produs produse[20];
int n;
public:
Repo();
~Repo();
void addProdus(Produs s);
int size();
Produs* getAll();
void delete_produs(int);
void modificare(int, Produs);
};
|
79b09d9cd0bea58c2679c1cbc2cbae38d72e7803 | 38616fa53a78f61d866ad4f2d3251ef471366229 | /3rdparty/GPSTk/core/lib/FileHandling/RINEX/RinexMetData.cpp | c8898ace91435df52d89f6301531c86f23dfadff | [
"GPL-3.0-only",
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 3b467fa6d3f34cabbd5ee59596ac1950aabf2522 | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | refs/heads/master | 2020-06-08T12:42:31.977541 | 2019-06-10T15:04:33 | 2019-06-10T15:04:33 | 193,229,646 | 1 | 0 | MIT | 2019-06-22T12:07:29 | 2019-06-22T12:07:29 | null | UTF-8 | C++ | false | false | 9,951 | cpp | RinexMetData.cpp | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
07c697776ccbec2dd8d38afce66124c6574c874d | b2e014acd7ef4e41d70ff772e12b8dc5cb01f947 | /main.cpp | 8ee37698e41b6d0c1df4c7ff0e96404e9e154419 | [] | no_license | TheOrestes/GL_Framework | 1146bd2e48bb243f22558b9e38b82157943e3633 | 9e5663b513f22e696cfe36140f0617969106f772 | refs/heads/master | 2020-04-17T18:36:19.786257 | 2018-07-13T10:23:23 | 2018-07-13T10:23:23 | 67,712,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,786 | cpp | main.cpp |
#include <iostream>
#include "glew.h"
#include "GLFW\glfw3.h"
#include "Camera/Camera.h"
#include "Scene/Scene.h"
#include "Renderables/FrameBuffer.h"
#include "UI/UIManager.h"
#include "Helpers/LogManager.h"
#include "AntTweakBar.h"
#include "Globals.h"
/////////////////////////////////////////////////////////////... |
1571a1257f5be7b5e4cad53623ae8b55bc09a16c | 801311b0d388fccb3d5f87aaa27605bdeddb4699 | /Chapter3-Q40.cpp | 6107dcfcd67b72e815b7cc6b4b23b6902f8135da | [] | no_license | halilgezer/C-How-to-program--questions | 27fa8fc4c2600cb4d6530ad7364cdaeb5f0c36a1 | 1d47289960847b7593dc2b28d8d35f0c85d91145 | refs/heads/master | 2022-07-18T00:07:57.336062 | 2020-05-11T23:38:05 | 2020-05-11T23:38:05 | 259,046,920 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | Chapter3-Q40.cpp | /* 3.40 (Checkerboard Pattern of Asterisks) Write a program that displays the following checkerboard
pattern:
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
*/
#include <stdio.h>
int main ()
{
int i ,j ;
int number = 15 ;
for (i=1; i<=number; i++ ) {... |
34d8e62429905d01e302ca8903e6d7e9821ee789 | f9e444ca7a9a5c05b4553c85a26565039da48878 | /ToolValues.h | b0c8e779ea746661d579ca361ed19caa2114104c | [] | no_license | tgparkk/paintex | 8105e351e3f26eb147cf02a3b0441f187b40b2d2 | b52c0e24fd5063318b84933ad3b35fb379fbbd4a | refs/heads/master | 2020-06-30T14:30:29.356834 | 2019-08-06T13:30:52 | 2019-08-06T13:30:52 | 200,857,077 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | ToolValues.h | #pragma once
#include "DrawObject.h"
class ToolValues
{
public:
ToolValues(void);
~ToolValues(void);
static COLORREF FgColor;
static COLORREF BgColor;
static int LineWidth;
static FIGURETYPE FigureType;
static int FontSize;
static CString FontName;
static int FontMode;
};
|
bc36bcfcba78c9e52539e2fd6389da5226fbdb76 | 9e999cb9e97f2ed80ef4e50394f9b775f0d929de | /include/Map.h | 9bb18ea01e8b504a47b9520afdc98a503a31d8ed | [
"MIT"
] | permissive | wildskyf/AP-Team-Project | 6d09644feffb19ea0f578b5d62c2ccb4017a5e50 | 9417f4708839dd208589be3eed2b12c7074436fb | refs/heads/master | 2021-01-16T21:56:35.522731 | 2017-04-27T03:40:06 | 2017-04-27T03:40:06 | 48,536,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | h | Map.h | #ifndef MAP_H
#define MAP_H
#include <string>
#include "Plant.h"
#include <vector>
class Land
{
public:
~Land();
bool put( Plant* plant );
bool getStood()const{return isStood_;}
Plant * getPlant() { return plant_; }
const Plant * getPlant() const { return plant_; }
void recycle();
private:
Plan... |
959144ecdf6ed3c38c1cd28aea6198e1e5e560b1 | 47fd8c098546c51169928099054dd7a3955ce10a | /src/qppcad/action.hpp | 0cedaf80978302ba853c4f657ef105c08133867e | [
"MIT"
] | permissive | whtuGitHub/qppcad | d185315ee0b135af1c5cdcda9d8e6bc51440c64d | 1d961af4ad12116be633da5f2d5b374f7e0078c9 | refs/heads/master | 2020-04-08T19:22:35.993408 | 2018-11-29T09:50:17 | 2018-11-29T09:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50 | hpp | action.hpp | #ifndef QPP_ACTION_H
#define QPP_ACTION_H
#endif
|
9b80fe4ab07b4a5fa31dee2b4f6429c1889073d5 | c8987d13443c91f150e3c1c99ab99044608568c0 | /totem.app/src/main.cpp | 60e7236812ffcf3f4e625106bd882c8e4c0eee72 | [] | no_license | joshuajnoble/Totem | 178abf5c1e53c3517590ff932cb03480cdfd54a1 | 6fe30947c14acd16ed0dddf33fc581c9b05bcc5e | refs/heads/master | 2021-05-29T05:55:39.413006 | 2015-09-08T22:17:28 | 2015-09-08T22:17:28 | 33,137,549 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,602 | cpp | main.cpp | #include "ofMain.h"
#include "ofxPGR\src\PGRCamera.h"
#include "ofxArgParser\src\ofxArgParser.h"
#include "ofTotemApp.h"
#include "ofRemoteApp.h"
#include "ofSurfaceHubApp.h"
#include "Utils.h"
#include "..\..\sharedCode\VideoConverters.h"
namespace
{
enum TotemMode
{
TotemMode_Totem,
TotemMode_Remote,
TotemMo... |
676c881e968ffec6dc191b4bc80761d74037542a | 3b5f5b6cd762164a623133f25494e1ac9240af35 | /SimuGUI/HLA/include/ControlCode.h | 4bf4b62bd8008c6764c4b572bb947d9d808de211 | [] | no_license | yuzezhao/SimuGUI-1 | 0010c2bd6982efec29bda4f1bf44fd231c2ed434 | 10e438932d28c4bf15762150e31fa91471b47ead | refs/heads/master | 2020-04-16T22:46:58.068857 | 2019-02-20T08:58:52 | 2019-02-20T08:58:52 | 165,983,510 | 0 | 0 | null | 2019-01-16T06:02:43 | 2019-01-16T06:02:42 | null | GB18030 | C++ | false | false | 468 | h | ControlCode.h | #pragma once
/*
* 等做到暂停、继续功能再加说明
* @date : 2018/10/23
* @author : jihang
*/
#include <QString>
class ControlCode {
private:
//这个地方对应了对象类的类名
static QString TYPE_PAUSE;
static QString TYPE_CONTINUE;
static QString TYPE_END;
public:
static QString getPauseType() {
return TYPE_PAUSE;
}
static QString getConti... |
3282ede2812585cc748300b15494114e9a02f11d | 7a88ebfedf5055e1e2ffd499970f073266a7a6e4 | /analysis/Analyze/MutationAnalyze.cpp | d1c024075f33d3249c90a5f8aa944f2affc9ff0b | [] | no_license | LSheneman/autonomous-learning | 0943162ce48abb6d62db2345f3bc83e8fa2b854b | 4c299c91fd15cc8f37760251c05530909e9cce69 | refs/heads/master | 2021-07-25T09:21:59.025739 | 2017-11-07T00:12:04 | 2017-11-07T00:12:04 | 109,764,002 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,075 | cpp | MutationAnalyze.cpp | //
// MutationAnalyse.cpp
//
// Created by Arend Hintze on 5/29/15.
// Copyright (c) 2015 Arend Hintze. All rights reserved.
//
#include "MutationAnalyze.h"
using namespace std;
///*
// * Run "testAgent" "n" times in world "world"
// */
//
//vector<double> MutationAnalyse::evalAgentNTimes(Agent* testAgent, World*... |
b81e8b2f70b6de6b6c165cd385676221f8e5232f | 510a645d9c474d0537093c65b2a907d8e40afa1e | /file_to.hpp | 32d57c235d67058a0fcf8d4ce6574202303b2e6e | [
"MIT"
] | permissive | soulofmachines/i3barout | 5429555322613d81beecdcd5a6d4c715d6db31a8 | 5dddaa2a22a10cead45ebb67e1947abb60d97dcf | refs/heads/master | 2021-01-20T11:22:07.458191 | 2015-02-18T14:46:39 | 2015-02-18T14:46:39 | 21,767,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | hpp | file_to.hpp | #ifndef FILE_TO_HPP
#define FILE_TO_HPP
#include <string>
using namespace std;
bool file_to_int (const char *path, int &digit);
bool file_to_long (const char *path, long &digit);
bool file_to_string (const char *path, string &line);
#endif
|
39bf09e342b201fb350262cf1bb7179b91f292a8 | bb01a297c43687924cc80fe586651c5f939a9af8 | /src/preferences.h | 313f56b638e3adf9c7263d39f7d17cab322d4925 | [
"MIT"
] | permissive | gejza/qxxx | 59a14536e0aad2e8e113a6718a861d22838a4866 | 85241273ed2a273cb68a4036b13d51f4a445dc8a | refs/heads/master | 2021-09-04T13:10:13.378096 | 2018-01-12T08:19:22 | 2018-01-12T08:19:22 | 117,209,282 | 0 | 1 | MIT | 2018-01-12T08:44:54 | 2018-01-12T07:35:13 | C++ | UTF-8 | C++ | false | false | 502 | h | preferences.h | #ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QObject>
class QSettings;
class Preferences : public QObject
{
Q_OBJECT
public:
explicit Preferences(QObject *parent = nullptr);
static Preferences* instance();
/**
* Provides access to the QSettings instance to allow storing/retrieving
* arbitrary value... |
f6d6624e4ca61e6f877e8f2dd0a3b984b0548ef4 | 3d1a8456d5581c316890f001733e825c9b726bfa | /gff3.h | 90e3e0b93589b7b38cd93c2306eb78cdb1e5b3e3 | [
"BSD-3-Clause"
] | permissive | KTbiotech/thermonucleotideBLAST | fc7a1f10223f057f987791f28a664bda8245ab5c | 0bdfb58a114807fea846dd86727014a1eb622c62 | refs/heads/master | 2023-04-12T06:58:04.636446 | 2021-05-18T15:57:34 | 2021-05-18T15:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,103 | h | gff3.h | // ThermonucleotideBLAST
//
// Copyright (c) 2008, Los Alamos National Security, LLC
// All rights reserved.
//
// Copyright 2007. Los Alamos National Security, LLC. This software was produced under U.S. Government
// contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alam... |
0eed5f50b49403940628d5f30a11e3317b620991 | aaf3e75b3309b6da9c1c1ec8a90ebeb3c1965e2f | /src/helpers/intro_sound.hpp | 260398a8dbaa7a367a462a648f56fda9fbdf1034 | [
"MIT"
] | permissive | tobozo/ESP32-SIDView | 41a72ffd50f01a3213e83434298f091f13d7b158 | e733d44fbd0a74248ccc00758a6221bf4e9c43d4 | refs/heads/master | 2023-03-12T14:27:23.556045 | 2023-03-03T16:36:46 | 2023-03-03T16:36:46 | 254,368,253 | 13 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,748 | hpp | intro_sound.hpp | /*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... |
03584572de1bcda17eae420838fcb8eb92bedf93 | dbf18505b5f04bd743a6b57b85708258ad5e0398 | /emu/cppl/mems/kmm.hpp | ff9c7956093d7145dda63a080e6494322d1c2bc3 | [] | no_license | thanhtrunghuynh93/kangaroo | fbdbd7f14f1aa589d27a22153eca65d105bc460a | b1d1dfcd03919ec077a92ffb7056c99ad2f6418c | refs/heads/master | 2021-05-30T02:20:19.391474 | 2015-11-11T18:21:20 | 2015-11-11T18:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,231 | hpp | kmm.hpp | /*!
@file kmm.hpp
@brief The source file for constant memory manager class.
@details This is the source file for constant memory manager class.
@author M.A.Hakim Newton hakim.newton@nicta.com.au
@author Duc Nghia Pham duc-nghia.pham@nicta.com.au
@date 02.08.2010 QRL NICTA www.nicta.com.au
*/
#ifndef KmmHppIncl... |
0fe6e537867e29201eec322e8832ce2ea0dc8003 | 1bbb28d6daeda789e836085587c0168aafc79bb4 | /PartB/CMPM164HW2B/CMPM164HW2B/Plane.cpp | 7adeaced1b50c7dd62c421d7efbab53d7da30238 | [] | no_license | ValentinoAbate/Cmpm-164-HW-2 | 0c5e64b85fef227f0ed875a2b096aaa1e36a945b | 69a6a476e4ec8767efb67665b4d7c68b169fb3c8 | refs/heads/master | 2021-07-14T00:58:12.032558 | 2020-10-01T20:33:45 | 2020-10-01T20:33:45 | 213,305,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | cpp | Plane.cpp | #include "Plane.h"
bool Plane::Intersect(const Vector3& rayOrigin, const Vector3& rayDir, float& closeHitDist) const
{
auto modN = normal * -1;
// assuming vectors are all normalized
float rayDotNormal = Vector3::dotProduct(modN, rayDir);
if (rayDotNormal > 1e-6) {
Vector3 p0l0 = position - rayOrigin;
closeHit... |
a4b96342c6aba5ba118352277e1d9f5aa6322ee6 | 281130ab01c446533ca32884a7a2adad9e496445 | /thief.h | ea19d0e93920768af4d51ceb30c961e7eb55e82d | [] | no_license | Yarmoski/Thiefman | 54959cd148985ab19a5d7dd9bf70da1f6fafb13a | 4e7c24d94c606b82faaa24f55a1a20cf2ac22d22 | refs/heads/master | 2020-07-14T04:21:04.786838 | 2019-08-29T19:46:48 | 2019-08-29T19:46:48 | 205,236,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | h | thief.h | #pragma once
#include <vector>
#include <string>
void display_misses(int misses);
void intro();
void end_game(std::string codeword, std::string answer);
void display_status(std::vector<char> incorrect, std::string answer); |
08105cbeda139fd6d4692cc8dea8de4185d2ef37 | a91e9b06bd5fbcb2b015b5636b27b28fa14ddbb7 | /02stack_queue/08priority_heap.cpp | 804426ad22d2e55dc58828ae88c006e362b219bc | [] | no_license | Lu-pw/leetCode- | ae19fc423d6df872f51c6329cb9169395cfe7d1c | 3bada460e80cd878583b66a8c70bd987a2f6d588 | refs/heads/master | 2022-07-02T12:44:56.174780 | 2020-05-11T12:16:59 | 2020-05-11T12:16:59 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 806 | cpp | 08priority_heap.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
int main()
{
priority_queue<int> big_heap2;//默认最大堆
priority_queue<int,std::vector<int>,greater<int>> small_heap;//最小堆构造方法
priority_queue<int,std::vector<int>,less<int>> big_heap;//最大堆构造
if(big_heap.empty())
{
... |
3912fc45ec783e3397a2b0e4bb71815d96beed67 | c11fa10cb3e0206e3ca967273da6aa94a15d226d | /test_row.cpp | ce95d97f665e1c65580d0b454a4f561c4089cc93 | [] | no_license | HuuPhuc25/abstract_demo_cpp | 2e72a4e7193388322f5b3854be034de4b0dfaf2a | 8d6c327be515f9cabf6dbc0e4f256e7cebb36b9b | refs/heads/master | 2020-06-13T21:36:48.208040 | 2019-07-02T05:46:32 | 2019-07-02T05:46:32 | 194,795,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,943 | cpp | test_row.cpp | #include "test_row.h"
TestRow::TestRow(/* args */)
{
this->index = 0;
this->init();
}
TestRow::TestRow(int index)
{
this->index = index;
this->init();
}
void
TestRow::init()
{
this->instanceOfField[eId_TestField] = &id;
this->instanceOfField[eCode_TestField] = &code;
this->instanceOfFie... |
82aca57e471c4bd20577605442edc2d46f0976e3 | d163396e126e9d7023febe8c5e66b7577cefef71 | /Source/KMeans.h | 9d7090bac772aa04114b8d86e43ec784082ac414 | [
"MIT"
] | permissive | PeterZs/VisObjInterface | ba3c42b1eb5204e4f2a1f173fddea8e7fb821893 | 10e187d5a84c61b506f5d92808877b7a42960da2 | refs/heads/master | 2020-05-14T23:00:11.916274 | 2019-03-07T20:40:36 | 2019-03-07T20:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,709 | h | KMeans.h | /*
==============================================================================
KMeans.h
Created: 14 Jun 2016 11:27:12am
Author: eshimizu
==============================================================================
*/
#ifndef KMEANS_H_INCLUDED
#define KMEANS_H_INCLUDED
#include "../JuceLibraryC... |
38227ea27880ea8c138606ad99c07ca1ea594ea2 | 66094070d1a878a7ad5e486e58b3851c52dd4a54 | /cpp/RequestReply/Client.cpp | a6df9a446e4a2305bbcb00418a2555085bb03bc5 | [] | no_license | SunriseChen/NetworkPatterns | d4f5570e7d1c80365178e562234534345b3c58ae | 76b16348f49b8aa4f85039d76b451f7f35c410d9 | refs/heads/master | 2021-01-20T07:35:14.596761 | 2017-03-04T12:11:18 | 2017-03-04T12:11:18 | 83,890,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | Client.cpp | #include "Client.h"
#include <iostream>
#include <string>
#include <zmq.hpp>
#pragma comment(lib, "libzmq.lib")
using namespace std;
namespace Sunrise { namespace NetworkPatterns { namespace RequestReply {
Client::Client()
{
cout << "Client::Client()" << endl;
}
// 参考:http://zguide.zeromq.org/cpp:hwclient
void... |
449897d459dc1082d61ab58196ff6155e874830f | d1853dc32105f49790ed299bcca2db3b1d718ece | /codeforces/758/A.cpp | 1abe158efbcd7f0af3d37d91824650ce8651daa3 | [] | no_license | towhid1zaman/Problem__Solving | a8abbd77c68c6f1e9ff8ceecd9332a3d15f741cd | 1407bc0d44165827e8db5599e75115961d569315 | refs/heads/master | 2023-06-05T10:56:17.151354 | 2021-06-20T19:46:00 | 2021-06-26T04:47:16 | 326,334,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | A.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define f0(n) for(size_t i=0;i<n;i++)
#define f1(n) for(size_t i=1;i<=n;i++)
const double pi= acos(-1);
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll n,x;
cin>>n;
ll a[n];
ll sum = 0;
for(ll i=0;i<n;i++)
... |
850f06a1f7e2c617e92e488692278899a52cdd16 | 9ef337ccc3737ecb65272bcfdb30c67dc2167d13 | /PPacmanUSFX/Tile.h | 57f08c9b6961885369e102dae732a8a952df0b81 | [] | no_license | enbohorquezr/Primer_Parcial | d0aa15cfec600ee27b91d3e1aa9dfa0d995aa129 | 39f10c9ec3f00ff59feec5006da8a77a0aaa970e | refs/heads/master | 2023-04-29T07:17:10.557664 | 2021-05-20T14:22:20 | 2021-05-20T14:22:20 | 369,234,504 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,524 | h | Tile.h | #pragma once
#include <SDL.h>
class Pacman;
class Fantasma;
class Fruta;
class Moneda;
class Pared;
class picachu;
class Gengar;
class OtraPared;
class Tile
{
private:
Pacman* pacman;
Fantasma* fantasma;
Fruta* fruta;
Moneda* moneda;
Pared* pared;
picachu* Picachu;
Gengar* gengar;
OtraPared* otraPared;
int ... |
9e45a31838c521c06e2c0e97a667348d781e7b69 | 741b03d7b4953f24d2bc12b8735e690afaaafb39 | /Trabalho-14-08/02/02.cpp | ccd64864ece43a48751ac4b00e81822661ba1dd6 | [] | no_license | Dionmax/MeusTrabalhos-UNIVALI-2p.CC | 2edc485dc6a2266bc1ce1b6f88f31197f78bb8c8 | 816e33811b3bbbd8d3336d7eac3c6a3ddd6c0b09 | refs/heads/master | 2021-01-02T22:54:50.098741 | 2018-09-26T18:22:38 | 2018-09-26T18:22:38 | 99,418,378 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,074 | cpp | 02.cpp | // 02.cpp : Define o ponto de entrada para a aplicação de console.
//
#include "stdafx.h"
#include "iostream"
#include "string"
#include <stdlib.h>
#include <time.h>
using namespace std;
const int TAMANHO = 4;
void matriz_decrescente(int matriz[][TAMANHO])
{
int aux;
for (int cont = 0; cont < TAMANHO; cont++)
... |
6959890abf09e347e408bc83db3f846e27c1cb3a | 636a7be5969593220e30dc5fdb5af056882acdd2 | /CodingChallange01/Star.h | b0cef55e283e247ddb83baed4599bb1d00673b42 | [] | no_license | Ohicram/CodingTrainChallengeOpenGL | e5436af83ba9dfa5515215c94395fbe7f0a8b7c0 | 057042e8bdf79e2910e451ccfb57094227a8e7a4 | refs/heads/master | 2021-09-05T11:32:29.656221 | 2018-01-26T23:32:49 | 2018-01-26T23:32:49 | 116,989,278 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 387 | h | Star.h | #pragma once
#include <cstdlib>
#include <iostream>
#include <glut.h>
//static double speed;
class Star
{
protected:
static double speed;
void init();
double oz;
public:
double x, y, z;
Star();
Star(double _x, double _y);
~Star();
void Show();
void Update();
void SetSpeed(double s);
};
... |
da707e9aa7505a538c80ca40c1a80509d3b5e614 | 12ede69d0d41656eee29116c6c8d76012b2eee5c | /C++基本算法/tree_5.cpp | a2cb5a9a39abf90466b5fb635a9e165a8580c0af | [] | no_license | liuchang9853/Devs | 875fa580172fb2706ba2e7fa8bb4542171b7044d | 18de90a353fb1a01f4ced67c2c8957734a60aeb4 | refs/heads/master | 2022-08-28T12:51:50.543481 | 2020-05-28T16:27:31 | 2020-05-28T16:27:31 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,510 | cpp | tree_5.cpp | /*
题目:请完成一个函数,输入一个二叉树,该函数输出它的镜像。
解法:求镜像,就是将一个事物逐层反转。
*/
#include <iostream>
#include <queue>
using namespace std;
typedef struct BiTNode{
int data;
BiTNode *lchild , *rchild;
} BiTNode , *BiTNodePtr;
//层次遍历,用于测试
void visit(BiTNodePtr T) {
cout << T->data << ends;
}
void LevelOrder(BiTNodePtr T){
queue<BiTNodePt... |
e0ddcf5c25d9add9d859971d98a38ba879444628 | 4192435e7b4c1deb7ed4bfc5c51c28d24fc5f4d9 | /10905.cpp | 640fc15dc8132a102168f2f93cb363e59199230c | [] | no_license | MDNoorUddin/UVA-Solutions | b1640d4ee862f161684fe43cf9a37b080e8e841c | b68a2dbd9cf175775a9ec20a1394ec11a1f8f07b | refs/heads/master | 2021-08-08T10:27:51.272631 | 2020-03-09T19:18:17 | 2020-03-09T19:18:17 | 100,978,184 | 5 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | 10905.cpp | #include<iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<vector>
#include<set>
#include<string>
#include<map>
#include<queue>
#include<stack>
#include<iterator>
#include<algorithm>
using namespace std;
typedef long long ll;
#define MAX 999999999999
#define MIN -99999999999
ll gcd(ll a, ll b... |
e23711feaf3eb681c17e7fd4cebbdb54ee8089fe | ebe0a443d0751c7318f094c4ab9568288dccfc58 | /include/color.h | 84491522f3188be1e89baa878d706544ea6e1de0 | [] | no_license | nackata/geo-engine | 3d0ede799a3d3b9eff28a314b2da075f390cc683 | 960d5569389fbbe79d69d3e7adc73c1e91234708 | refs/heads/master | 2021-06-26T05:43:01.692673 | 2020-11-20T07:51:33 | 2020-11-20T07:51:33 | 182,409,505 | 1 | 0 | null | 2019-10-29T10:23:12 | 2019-04-20T13:29:30 | C | UTF-8 | C++ | false | false | 1,171 | h | color.h | #pragma once
#include <lib/glm/glm.hpp>
enum colorType
{
COLOR_WHITE,
COLOR_BLUE,
COLOR_RED,
COLOR_BLACK,
COLOR_YELLOW,
COLOR_PURPLE,
COLOR_GREEN
};
class Color
{
public:
static glm::vec3 getColor(colorType type)
{
glm::vec3 color;
switch(type)
{
... |
737625fa56cdb43eae59accfc24e2ce5398ea4b8 | b34bbbe43c2852d11cb0815563cf63836fb44011 | /Menu.h | 11e304e90d5f60ed066d56f18f6a6eff461bb838 | [] | no_license | ritikbheda/Valet-Parking | c2c46f73ab82fae2d6abfc485c8cee564e8087c0 | 475724d46ba2d2c3a17f0606eb2cde971a48e43a | refs/heads/main | 2022-12-30T17:16:01.480198 | 2020-10-28T04:05:59 | 2020-10-28T04:05:59 | 307,902,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,581 | h | Menu.h | /* Citation and Sources...
Final Project Milestone 1
Module: Menu
Filename: Menu.h
Version 1.0
Author: Ritik Bheda
Revision History
-----------------------------------------------------------
Date Reason
2020/14/3 Preliminary release
2020/14/3 Debugged DMA
----------------------------------------------------... |
6f41247ef7105c26eb96f5ecc685e39a20cb0502 | ad9acd535492ced23802c69385629d1748e9f2b4 | /source/lw/event/Emitter.hpp | 669166abc108652c78744c54130083f7e58cc512 | [
"MIT"
] | permissive | odiszapc/liblw | 1e90ecf89e816ca2944a910ed53073876926df9e | 0efe82240cc204f61a729027316bf0a5ea5a0c5c | refs/heads/master | 2020-04-18T11:16:08.184092 | 2015-09-18T23:56:24 | 2015-09-18T23:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,197 | hpp | Emitter.hpp |
#include <cstdint>
#include <functional>
#include <list>
#include <map>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include "lw/pp.hpp"
#include "lw/trait.hpp"
namespace lw {
namespace event {
// Implementation details for event emitters.
namespace _details {
template<std::size... |
ef9eee6d325b20194e11a9570b182ad5a87e5df2 | a7dc87259ed3af64b13ae23b4ec4ad046f7051e2 | /Leetcode - Top Interview Questions/326. Power of Three.cpp | fd2845f13e5a853926e55f4c7d53dc57480d8e82 | [] | no_license | vikas436/DSA | a3039b3603a9eb05734064805d55f4b4b8afa1cd | 9f902b8ea40151ce8757d45a5b31a86bd3354d0e | refs/heads/master | 2021-08-07T18:42:31.521708 | 2021-06-19T07:08:41 | 2021-06-19T07:08:41 | 160,209,346 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | 326. Power of Three.cpp | class Solution {
public:
bool isPowerOfThree(int n) {
if(n==1) return 1;
if(n<3) return 0;
while(n>1) {
if(n%3!=0) return 0;
n = n / 3;
}
return n==1;
}
};
/*
log10(n)/log12(3)%1==0;
*/
|
67986e4c80efb24e97b64e059e5aae5b20feaf72 | ce612174574d1b0da370e926ce51c7046ce79acd | /Programmers/DFS, BFS/여행경로.cpp | 8c8c05e55df2577116102862e93637b2a3fb68bf | [] | no_license | sunga08/Algorithm_Study | b90fcd39878078bcc1e1fdbd7b4c7deab65b85e8 | b266add531c8be9dffe39d8b7ec126e55e2c9664 | refs/heads/master | 2023-04-08T17:35:12.023793 | 2021-04-27T07:17:40 | 2021-04-27T07:17:40 | 328,632,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | 여행경로.cpp | #include <string>
#include <vector>
#include <algorithm>
using namespace std;
int max_cnt=0;
void dfs(string startCity, vector<vector<string>>& tickets, vector<bool>& isVisit, vector<string>& answer, vector<string>& temp, int cnt){
temp.push_back(startCity);
if (max_cnt < cnt) {
max_cnt = cnt... |
b37b56b1980f047815f0101a6e59a172e6c7d0d2 | 25db21b0071b35156ff1f905012699e5fc617df8 | /ALU/Divisor/test/counter/jk/dff_tb.cpp | 55ce186cc3f2f3685e4ca061427b12b0c6b8a873 | [] | no_license | sinashan/optimized-ALU | fe77ce4f4ee79f6a8c5c912b413061bed2123045 | a722822ce6dc34b952c3b286f22cd6539001eb44 | refs/heads/master | 2023-03-08T10:37:03.593091 | 2021-02-26T08:43:35 | 2021-02-26T08:43:35 | 342,513,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | dff_tb.cpp |
#include <systemc.h>
#include "dff.h"
int sc_main (int argc, char* argv[]) {
sc_core::sc_report_handler::set_actions( "/IEEE_Std_1666/deprecated",
sc_core::SC_DO_NOTHING );
sc_signal< sc_logic > input;
sc_signal< sc_logic > din, dout;
dff dff1("dff1");
dff1.input(i... |
45a08ba09979ea8beab94b698b8a37f0d5ac0432 | b379bcc5da8d2561222fbc14c2f9b4e1b998b934 | /badaClientSDK/inc/BaseForm.h | 4003b1ce5607ee6a114855b44fd315fc98af3ea1 | [
"MIT"
] | permissive | claymodel/bigcloud | cbd96a020a6d6b36224f84895669782411d99f48 | ee7e69bc428fcf495e135bceec11356bf22b94dc | refs/heads/master | 2016-08-11T16:34:54.088306 | 2016-01-30T09:03:16 | 2016-01-30T09:03:16 | 8,446,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | h | BaseForm.h | #ifndef _BASEFORM_H_
#define _BASEFORM_H_
#include <FUi.h>
#include <FGraphics.h>
#include <FMedia.h>
#include <FSystem.h>
class BaseForm :
public Osp::Ui::Controls::Form,
public Osp::Ui::IActionEventListener,
public Osp::Ui::Controls::IFormBackEventListener
{
public:
BaseForm(void);
virtual ~Base... |
f1c2ee4357f3de08dd421f4bd658d100a68e6c59 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/include/functions/scalar/nbtrue.hpp | 08df75d8f135883bc1d74d7babe4f4eda6de8ed9 | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 184 | hpp | nbtrue.hpp | #ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_NBTRUE_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SCALAR_NBTRUE_HPP_INCLUDED
#include <nt2/reduction/include/functions/scalar/nbtrue.hpp>
#endif
|
2e620241f94db5eab6af7aa3c1c845f8f95bba1b | 3b59884fb983fc78ec34a1ae82003b2c95a0b34e | /src/domain/singleagent/graphdefined/graph_RF.hpp | 3002575122a128d4b22350fe3e02465730281bfd | [
"Apache-2.0"
] | permissive | MarkieMark/fastrl | 8b0704d498b2a7a5378abfbceef2cd2d6c2f10cb | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | refs/heads/master | 2021-01-23T00:25:57.964522 | 2019-03-10T13:17:18 | 2019-03-27T09:12:48 | 92,812,155 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | hpp | graph_RF.hpp |
/*
* Mark Benjamin 6th March 2019
* Copyright (c) 2019 Mark Benjamin
*/
#ifndef FASTRL_DOMAIN_SINGLEAGENT_GRAPHDEFINED_GRAPH_RF_HPP
#define FASTRL_DOMAIN_SINGLEAGENT_GRAPHDEFINED_GRAPH_RF_HPP
class GraphRF {
};
#endif //FASTRL_DOMAIN_SINGLEAGENT_GRAPHDEFINED_GRAPH_RF_HPP
|
7b3e54713cc7588772f7b7782c9880b08cf93e6e | 43cdb19034f303a088fcc3b412fb984ba817f94f | /PROBLEMSET1/Numeros Libres.cpp | b174e367dd76c74d1abea9becde6b93aa8414375 | [] | no_license | renepayan/PRE2016 | 6011f5591c2989745d88b222576207d20a0ca3f6 | c237777b2d4b693a18f5903cb29936471b40d223 | refs/heads/master | 2021-01-20T18:45:17.515064 | 2016-07-18T05:05:13 | 2016-07-18T05:05:13 | 62,906,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | Numeros Libres.cpp | #include <bits/stdc++.h>
using namespace std;
int MCD(long long int a, long long int b){
if(b==0){
return a;
}else{
return MCD(b,a%b);
}
}
short n;
long long int a, b;
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);
cin>>n;
for(int i=1;i<=n;i++){
cin>>a>>b;
... |
c52171c8901b35358485e2ae1136262c1ff7f91d | 5a6a992288c66f2281ac1d7619adfc4732950d4a | /LED2017资料/v2.00.200(libusb)/HAAS/Note.h | 98166209470a788212ad58865b8c5062ed320c86 | [] | no_license | chg95211/LED2017 | e605cc6ec574f5acfecd7b81f0818f7188dec5d8 | d3831ed6bb58328d368ff2d22488ba3156c9624a | refs/heads/master | 2020-04-05T11:37:34.061767 | 2018-01-26T02:41:16 | 2018-01-26T02:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | h | Note.h | #if !defined(AFX_NOTE_H__08DE1897_5E85_11D2_8ABB_D78FD9126220__INCLUDED_)
#define AFX_NOTE_H__08DE1897_5E85_11D2_8ABB_D78FD9126220__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Note.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CNote w... |
8a120808bc455b338ed908463a190e7207aa7dfb | f3ab049ec0dbffc3c1e559bac02df865ba1efa1b | /QtGsmLibTest/main.cpp | c43f8b629e7c3edc88e3a176fd23d70970456e73 | [] | no_license | KurlesHS/QtGsmLib | bc71be32144307bb484183a869ab716a07371c0b | d2b18f295602ad9ce7c6609636ce1ce9b68f7c04 | refs/heads/master | 2021-01-10T02:40:58.995874 | 2014-10-24T10:34:04 | 2014-10-24T10:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,951 | cpp | main.cpp | #include <QCoreApplication>
#include <QTextCodec>
#include <QTimer>
#include <QDebug>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "testinggms.h"
#include "smsmessage/qsmsmessage.hpp"
TEST(QtGsmLibTest, TestSmsMessage) {
QSMSMessage sms;
sms.setText(QObject::tr("Привет"));
sms.setReplyRequ... |
f88890f3f35f278d8ab322cb7c361e1df010dd6e | 1864d6be0f28eea17d097aa94fb0a8f955fa21f3 | /Screen/Memory/include/screen/memory/policies/BasicStackSelector.h | 2012609c9669f6f0a7ab9668a5c5b9801a2467ff | [] | no_license | sivarajankumar/screen3d | a1fd17011248da213fc53be5544fe4e7bcda2906 | 7c7fb5469f80ec8bbcd7202fc1913bb66bd21e49 | refs/heads/master | 2021-01-10T03:19:13.368011 | 2012-11-04T12:44:29 | 2012-11-04T12:44:29 | 49,218,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,637 | h | BasicStackSelector.h | /*****************************************************************************
* This source file is part of SCREEN (SCalable REndering ENgine) *
* *
* Copyright (c) 2008-2012 Ratouit Thomas *
... |
07e2f2d9413c5109e92fa2c66bf6baebd2930f51 | ca9f72a58c960a798ca8710df902eacb50126fab | /modem_proc/brewmp/l4/libs/quartz/src/KxTestCase.cpp | 3c868659b9c7ebdf4102270cf1d57b7f81edf5d2 | [] | no_license | chinahby/7x27A-M | 60f850bb6924ae7826f7381cd054bc294dccdd26 | b51c21961efd2f496bcf9e293e680f57bf4af64e | refs/heads/master | 2015-07-25T18:16:41 | 2013-10-31T12:50:55 | 2013-10-31T12:50:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | KxTestCase.cpp | /*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
Q U A R T Z T E S T C A S E A P I
GENERAL DESCRIPTION
Copyright (c) 2006 QUALCOMM Incorporated.
All Rights Reserved. QUALCOMM Proprietary and Confidential.
*====*====*====*====*====*====*====*====*====*====*====*====*====*... |
2725de0ac9d38c29bad09b63e72c2956563000a2 | 6ad732d9ce6dc612c0a096b1b001d045e4225675 | /src/signals.hh | e8cf82d974563a6804668964811c7e7c38627a19 | [
"MIT"
] | permissive | harshagowda/multithreaded_tcp_server | e7ba64c28b97a7c745945177fde7bbffbbd0b7a8 | 9d8214fe3711207fa8619100594337c725aea63f | refs/heads/master | 2020-07-22T01:56:35.181130 | 2019-04-22T09:51:24 | 2019-04-22T09:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | hh | signals.hh | #ifndef SIGNALS_HH
# define SIGNALS_HH
// No choice but using a global variable for this AFAIK.
extern volatile bool stop_requested;
void register_sighandlers();
#endif // !SIGNALS_HH
|
efa3df7a000caf3466f3f1b090905ea6ca8f8496 | 520b75c144414d2af5a655e592fa65787ee89aaa | /AOJ/Volume15/1517.cpp | 648fb8d44dc462d076b002a05e30b281168726dc | [] | no_license | arrows-1011/CPro | 4ac069683c672ba685534444412aa2e28026879d | 2e1a9242b2433851f495468e455ee854a8c4dac7 | refs/heads/master | 2020-04-12T09:36:40.846130 | 2017-06-10T08:02:10 | 2017-06-10T08:02:10 | 46,426,455 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,391 | cpp | 1517.cpp | #include <iostream>
#include <cstring>
#include <cmath>
using namespace std;
const int MAX = 16;
int n,m;
int r,c,size,angle;
int field[MAX][MAX];
int tmp[MAX][MAX];
int dx[]={0,1,0,-1};
int dy[]={1,0,-1,0};
bool flg;
void print(){
for(int i = 0 ;i < n ; i++){
for(int j = 0 ; j < n ; j++){
if(!j) cout... |
e4c0a9ab19bd24feae4e986c50e0277335e4d623 | 5681c70f6640c6de90d672431231630ff1300a59 | /astro_image.cpp | e71c1251b73ba3341cbead80d3e285da5e8f107f | [] | no_license | larrylart/qhycmd | 14fb9af4054c402cbb87c4608225429c238b29e3 | 01e521ccfbe01c9807fc94e839e6516149d1772f | refs/heads/main | 2023-01-09T01:18:15.129060 | 2020-11-13T22:59:22 | 2020-11-13T22:59:22 | 301,380,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,545 | cpp | astro_image.cpp | ////////////////////////////////////////////////////////////////////
// astro image implementation
// Created by: Larry Lart
////////////////////////////////////////////////////////////////////
// WX :: includes
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/utils.h>
#include <... |
9f3a5767dea36bbbfbc21f7e72a09780c48065cb | 5bee61b9376e0f5bb5906e1a52d306347c344e88 | /HW25.cpp | 54b5dcb9bbc3ae83eea884568306df569a0ebdda | [] | no_license | kangsanguk/C_study | 46c1f0721b2a2333837ec0562395bb44a9adb711 | 68e5595db5f53a1e51df91a040cb1c4d0e24e680 | refs/heads/master | 2023-01-11T22:52:17.209957 | 2020-11-19T08:05:58 | 2020-11-19T08:05:58 | 281,139,983 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,117 | cpp | HW25.cpp | #include<stdio.h>
#pragma warning(disable:4996)
#include<stdlib.h>
#include<time.h>
int input(int n);
void myflush(int n);
int main()
{
int n, num;
srand((unsigned int)time(NULL));
n = rand() % 100 + 1;
num = input(n);
printf("우와~ 맞았당~~~ 추카추카~~ %d 번째 만에 맞추셨습니다.\n", num);
return 0;
}
int inp... |
cd001e5d4d3eb4413b6fc24848424560c59494d5 | 377a0c8082293fc35f48eb1705ea7d20679e444f | /Libs/libMath/Quaternion.h | 9a2fbf54aa0f1c5f1776da8e9baec4f8d18969e0 | [] | no_license | nimlea/PokeEngine | 1ed0953674ff78eebcabcd2a39ef350abb6c5553 | c8d882576357f09d04c1bf3b3514158ebd4f4b4c | refs/heads/master | 2021-05-31T10:44:39.221301 | 2016-05-19T08:35:21 | 2016-05-19T08:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 135 | h | Quaternion.h | #ifndef _QUATERNION_H_
#define _QUATERNION_H_
template<class T>
class Quaternion
{
};
typedef Quaternion<float> Quaternionf;
#endif |
4d2993d04120a3120068bea7d83c1d0f57a717ff | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/ds/security/services/scerpc/hashtable.h | 68f0d6d926ce79009787972a79491e68d118efe6 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,635 | h | hashtable.h | /*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
hashtable.h
Abstract:
This file contains the class prototypes for hashtables
Author:
Vishnu Patankar (VishnuP) 7-April-2000
Environment:
User Mode - Win32
Revision History:
--*/
////////////////////////... |
99e7c913a22ddbd0438255f49465c9b94288956d | f0ff43deda5e7ed448ac6b0b6d9d28d5ee71aa74 | /src/gbj_at24c.h | 45c13abf05ca7bafabe35e22753ee408d6d39332 | [
"MIT"
] | permissive | mklmvm/gbj_at24c | 5a038684d7d503b3355db3f7c416a68536488e8e | 0f2e6ef3ea51e1eff7671240031b4fdde96d282e | refs/heads/master | 2023-03-20T18:18:18.476924 | 2018-12-14T23:58:10 | 2018-12-14T23:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,764 | h | gbj_at24c.h | /*
NAME:
gbjAT24C
DESCRIPTION:
Library for ATMEL EEPROM chips AT24C01 ~ AT24C512 on two-wire (I2C) bus.
LICENSE:
This program is free software; you can redistribute it and/or modify
it under the terms of the license GNU GPL v3 http://www.gnu.org/licenses/gpl-3.0.html
(related to original code) and MIT... |
abd44cdeece53f6b8f24fdad3a8cf8f72d459835 | f28ee1f58f048a28bcb7c567f79465ca6796365e | /questions/chapter01/q1-4/answer.cpp | cd608db76ecb4fcf62f8ca31c4e75651cbb787ce | [] | no_license | TomChoi/coding_interview | d5f41107bab28478e3d3606fa96ef06c890d8dab | c382b8a94c53de603102da403ae225ea3f798c01 | refs/heads/master | 2020-03-23T02:48:05.322830 | 2018-07-27T00:18:42 | 2018-07-27T00:18:42 | 140,992,794 | 0 | 0 | null | 2018-07-20T06:32:24 | 2018-07-15T02:34:49 | C++ | UTF-8 | C++ | false | false | 458 | cpp | answer.cpp | using namespace std;
// Palindrome Permutation: Given a string, write a function to check if it is a permutation of a palindrome.
// A palindrome is a word or phrase that is the same forwards and backwards. A permutation
// is a rearrangement of letters. The palindrome does not need to be limited to just dictionary wo... |
84b9409aa769bcdff0b96bd209c69633d6759f51 | af6ecf0b86e904c9646e4ae4894e41958692415c | /odroid/barc/arduino/arduino_nano328_node_sensors/arduino_nano328_node_sensors_11.ino | 8b676229a5a9eb0bcc8815380ae09d9701515d43 | [] | no_license | Telos4/ggj2019 | 8faaf77f284d3afadb300652f95aa5b533cc0e89 | 64fbf7e343494e9fa8cbfdc72f4db74be770bf96 | refs/heads/master | 2020-04-18T14:42:57.787897 | 2019-01-30T07:20:28 | 2019-01-30T07:20:28 | 167,596,028 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,818 | ino | arduino_nano328_node_sensors_11.ino | #include <SPI.h>
#include <MFRC522.h>
#include <ros.h>
#include <barc/Light.h>
#include <barc/Echo.h>
#include <barc/RFID.h>
#define trigPin 2
#define echoPin 3
const int analogInPin = A6;
constexpr uint8_t RST_PIN = 9;
constexpr uint8_t SS_PIN = 10;
MFRC522 rfid(SS_PIN, RST_PIN); // Instance of the class
/*
type... |
2dd8f0e39d0ad6b11f0078272ec9f07c4d5fb27f | dc4c97509cb0f1ccbda79c24819434fb78275675 | /QRCodeDemo.h | ae51384df9f4f0c9082e5d548732971de99aa488 | [] | no_license | llkid/QRCodeDemo | 4e63b5217d0648cb16191d0125864cb647d81643 | 8088d4b79ad2fd9c07dedffe451f6e86d396045a | refs/heads/master | 2023-03-11T11:27:49.401992 | 2021-02-25T11:17:26 | 2021-02-25T11:17:26 | 342,215,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | h | QRCodeDemo.h | #pragma once
#include <QtWidgets/QMainWindow>
#include "ui_QRCodeDemo.h"
class QRCodeDemo : public QMainWindow
{
Q_OBJECT
public:
QRCodeDemo(QWidget *parent = Q_NULLPTR);
private:
Ui::QRCodeDemoClass ui;
private:
QPixmap createQRCode(const QString& text);
};
|
ff1c79080e2b29f907c3ffde182b7eca8a2c6479 | dd07dabdb704de6700351489082a5493a4cdc151 | /zzxcf/Modifier_replace_cluster_of_blank_with_space_in_directive.h | d84a9c957eae8a671a264a2efc4f06d544c96a28 | [
"MIT"
] | permissive | ZhangZexiao/ZhangZeXiaoCodeFormatter | fe7dea24d8aaab6ad1140416a90eca4c87b96e34 | 609cb3dc3db9bff19fa7d410fdcd35331150c3ed | refs/heads/master | 2020-03-11T19:03:41.228076 | 2018-06-03T23:07:48 | 2018-06-03T23:07:48 | 130,195,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,231 | h | Modifier_replace_cluster_of_blank_with_space_in_directive.h | #pragma once
#include "IModifier_Token.h"
#include "StringsManager.h"
#include "..\zzxcf_tokenizer\zzxcf_tokenizer.h"
#include "Modifier_replace_cluster_of_blank_with_space.h"
#include <algorithm>
//A group of the same or similar elements gathered or
//occurring closely together;
//https://www.thefreedictionary.com/cl... |
efbe89e004e9d44dc60f14555b730396fbef6976 | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/utilities/type.index/type.index.members/cmp.pass.cpp | 0892b60441476ce535eaf945e23d41c54f78dbeb | [
"NCSA",
"LLVM-exception",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,806 | cpp | cmp.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
21b0752663891b274a8c87045816096c0100f725 | c97c11d7c814d4ae93c0eb3c60036cdfd0ea1183 | /算法笔记讲解/SourceCode/第四章 算法初步/散列/B1033 旧键盘打字.cpp | a9e48ef034db0d69447b55e73bb78ec04188ffa9 | [] | no_license | merelydust/Data-Structure-and-Algorithm | c548c75887241a92ce925386d850056cf3fcaec0 | 8e4d7dcd4793d10af9cce5d8714d4ec1a177f0eb | refs/heads/master | 2020-04-11T14:35:34.633322 | 2019-02-26T14:21:44 | 2019-02-26T14:21:44 | 161,860,724 | 43 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | B1033 旧键盘打字.cpp | #include <iostream>
#include <cctype>
#include <string>
using namespace std;
int hashtable[256] = {0};
int main() {
string broken, given; getline(cin, broken); getline(cin, given); // 一个小坑 第一行可能是空的 所以不能cin
bool capital = broken.find("+") == string::npos ? true : false;
for (int i = 0, len = broken.length(... |
f086e1c8066bc0bd555bed5676cbe7c3f41c0ed5 | ed15181309dbda9c34b99172368bbd163e6bc3a3 | /libweb3jsonrpc/Eth.cpp | e72fe4170be3f2d8bfaff5a2a2ebd9b19e6286c7 | [] | no_license | Utispace/UtispaceChain | f15b897712a6fb644e54de2aa178727dd6760520 | 43e4b99b198fbf1b8695c2971a01967e33bc6dba | refs/heads/master | 2020-12-11T09:56:55.045686 | 2020-01-14T11:00:02 | 2020-01-14T11:00:02 | 233,815,216 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,141 | cpp | Eth.cpp |
#include <csignal>
#include <jsonrpccpp/common/exception.h>
#include <libdevcore/CommonData.h>
#include <libcvvmcore/Instruction.h>
#include <libcv/Client.h>
#include <libcv/BlockQueue.h>
#include <libpbftseal/PBFT.h>
#include <libwebthree/WebThree.h>
#include <libcvcore/CommonJS.h>
#include <libweb3jsonrpc/JsonHelper... |
628ccaf3a19d8ad16e302c7e3ef3cb6bf251e63d | 60b680c69898d0f1a7f982c5ac68095adfb56113 | /Sem_2/Lab_3/Task 2/include/logic/items/potions/PotionOfHealth.hpp | 5c049468440c8ef7717394a5e7c64f7e2d5d8944 | [] | no_license | borgishmorg/bfu | ba2feb8c1179771c0cae7b0d1b76896b75be5003 | 426f41ae5b7f7e31491ba7aa5b8c3ae25505fefc | refs/heads/master | 2020-03-31T08:46:36.914439 | 2019-05-29T23:19:51 | 2019-05-29T23:19:51 | 152,072,131 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | hpp | PotionOfHealth.hpp | #ifndef __POTION_OF_HEALTH__
#define __POTION_OF_HEALTH__
#include <cstdlib>
#include "Potion.hpp"
namespace BattleRoyale{
class PotionOfHealth: public Potion{
public:
PotionOfHealth();
~PotionOfHealth();
virtual void drink(Player & drinker, Screen & screen) override;... |
1166b5f2605f37d6921e4f5683a3ee29761c3015 | a2b49d0b5414134df2dbfd690b1fbab66db2d01f | /Exception_handling/exception_handling_with_function.cpp | ad5581122c9f4fef4365136d4ee3abbe55fae511 | [] | no_license | Ngufuli/cpp | 7296e6cae38af27b314a156478899b2dd4a0b3be | c7acc1ea19f2f25c8dc2fe9be52a8ca92af9ae77 | refs/heads/master | 2020-06-28T16:29:51.833907 | 2019-08-03T01:39:33 | 2019-08-03T01:39:33 | 200,281,571 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | exception_handling_with_function.cpp | /*
USING EXCEPTION HANDLING IN FUNCTIONS
*/
using namespace std;
#include<iostream>
void divide(int a, int b)
{
if(b==0)
throw "Divide by zero exception\n";
cout<<"Division of two numbers: \n"<<(float)a/b;
}
int main()
{
int a, b;
cout<<"Enter the two numbers\n";
cin>>a>>b;
try
{
divide(a,b);//function ... |
bf81614a4a5d0ac11bb83603d983019bb0705aea | 87c4d0c8f1dfdfa2753bd88a22a11f3b57054787 | /sms/smsservice/smsservice/serialporthelp.h | d979080dce32c7df42a494c30140bc5091455a8e | [] | no_license | LoveHelp/report | a41f84075afe6e0fbdffbbb6ea11f9b9c3d3a11c | 8bfaadeaf8066b3bce0a37e3dbf90500499c6039 | refs/heads/master | 2021-01-01T16:09:22.326076 | 2017-07-20T06:26:30 | 2017-07-20T06:26:30 | 97,780,882 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | h | serialporthelp.h | #ifndef SERIALPORTHELP_H
#define SERIALPORTHELP_H
#include <QObject>
#include <windows.h>
/** 当串口无数据时,sleep至下次查询间隔的时间,单位:毫秒 */
#define SLEEP_TIME_INTERVAL 500
/** 读数据时间间隔 */
#define READ_TIME_INTERVAL 20
class SerialPortHelp : public QObject
{
Q_OBJECT
public:
SerialPortHelp();
~SerialP... |
8a9804185c94398b0c7ade6477f507fc3d0af4ee | b5abcfa528f14a4a3097eac86a65e746d37e60dc | /868 Binary Gap/BinaryGap.cc | a1cc199724a8d69729a010814b81229c3f08fa3a | [] | no_license | davidchai21/new-journey | 3d3683aeec7a950a6ab4ed7d2a2c2d27a254889b | 1736fd769bb53b9b7b2e5fd5a0cb17f0f71b40f1 | refs/heads/master | 2020-03-23T04:00:17.972869 | 2020-01-10T16:44:50 | 2020-01-10T16:44:50 | 141,060,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cc | BinaryGap.cc | class Solution {
public:
int binaryGap(int N) {
int res = 0;
int last = -1;
for (int i=0;i<32;i++) {
if ((N>>i)&1) {
if (last == -1) last = i;
else {
res = max(res, i-last);
last = i;
}
... |
73079a6d37e17606e1303cda31372ce8dc28c493 | ce169f02601eb3e5542669a4e6b6154bee32a7e6 | /chap5/ElementaryProblem/String/10878.cc | 89bf7d6c96a2c2cb5d2e744f42b1475ffc55cd22 | [] | no_license | nanAdair/aoapc | 6b738708c87b4c0d8ad842febb69be2e92b4e319 | 18eed04e82769e3545e9203df8115e1d232de5d5 | refs/heads/master | 2020-05-17T16:30:10.013779 | 2014-12-24T08:08:24 | 2014-12-24T08:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cc | 10878.cc | /* Title: 10878
* 考察点:
* 转码,开1000个string会报runtime error*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
string input;
int factor[] = {0, 0, 64, 32, 16, 8, 0, 4, 2, 1, 0};
while (getline(cin, input)) {
if (input[0] == '_')
continue;
int c = 0;
... |
02966719ad997df531f8abd966f0a59c22ab0ce5 | 38c653ac9d10ae7f4f5da7bcfe3e6cb5bd6a745a | /Day23/day23_q5.cpp | 81581df964e92008629dbedf6a72dac71c49c7df | [] | no_license | kandarpkakkad/30-Day-Challenge-CPP | 6e326cfc9d02767516c739dc32c0eb7a2df5734c | 75a01e0963104735ae56311c63e2268c3ac86087 | refs/heads/master | 2023-02-27T15:29:00.103608 | 2021-02-06T21:55:55 | 2021-02-06T21:55:55 | 272,061,833 | 33 | 3 | null | 2020-06-18T12:40:50 | 2020-06-13T18:10:39 | C++ | UTF-8 | C++ | false | false | 3,867 | cpp | day23_q5.cpp | #include<bits/stdc++.h>
using namespace std;
/*
https://leetcode.com/tag/topological-sort/
https://www.geeksforgeeks.org/topological-sorting/
You need to run the methods separately.
Input:
5 6
2 3
3 1
4 0
4 1
5 0
5 2
Output:
5 4 2 3 1 0
4 5 0 2 3 1
4 5 2 0 3 1
4 5 2 3 0 1
4 5 2 3 1 0
5 2 3 4 0 1... |
518e396b83d19a1ecf65ee46b3feb09d4a875836 | 8a030d8ddde3279c83d142942825ee813baea546 | /psenvsub.cpp | cc543915de457ff23e1c6f7e333b4ef74b5a877c | [] | no_license | petermilne/PUBSUB_DO | 8f2cbebb55ddd10f519b703079de2571c7e0e247 | 5e0c18965030748da0d247c2845efd222ef8530e | refs/heads/master | 2020-04-19T05:52:29.991265 | 2019-01-28T16:45:36 | 2019-01-28T16:45:36 | 168,001,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | psenvsub.cpp | //
// Pubsub envelope subscriber
//
// Olivier Chamoux <olivier.chamoux@fr.thalesgroup.com>
#include "zhelpers.hpp"
#include <assert.h>
int main (int argc, char* argv[]) {
const char* uri = argc > 1? argv[1]: "tcp://localhost:5563";
int limit = argc > 2? atoi(argv[2]): -1;
std::cout << uri << " limit:... |
66a85b4017169c6f8b9a1664244e3397404c154b | aa812f688d5bf97d3415ddbca65527562ab74026 | /modpuzzle.h | 2f1d7226cb184fd66f2b248bab00c2ea40dfabc5 | [] | no_license | Leyk973/LearnWithRobinMain | 943326dedaca36fab492830424dfa7a0aeb51abf | 9bd3069a33e63c76607dd46399480fec59d34792 | refs/heads/master | 2021-09-14T18:35:45.136658 | 2018-05-17T09:28:25 | 2018-05-17T09:28:25 | 125,331,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | h | modpuzzle.h | #ifndef MODPUZZLE_H
#define MODPUZZLE_H
class ModPuzzle
{
public:
/// \brief Constructeur
ModPuzzle();
private:
};
#endif // MODPUZZLE_H
|
efe9d3d4bd39580833829f9ec6ddd87deef9f075 | 70bb8b423fd5029debfccb01224ba657fed1fde3 | /wiselib.testing/algorithms/routing/ctp/ctp_forwarding_engine_msg.h | 0a4ed84d877724a4b22f3eafe5f6bac010b030aa | [] | no_license | addud/wiselib | 54c9af54105fbe9b8da738fe0aaec7678ff2281a | b453264260fd455a4f2793134eb230cf46697174 | refs/heads/master | 2021-01-16T20:31:26.250125 | 2012-10-04T21:22:24 | 2012-10-04T21:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,176 | h | ctp_forwarding_engine_msg.h | /***************************************************************************
** This file is part of the generic algorithm library Wiselib. **
** Copyright (C) 2008,2009 by the Wisebed (www.wisebed.eu) project. **
** **
** The Wiselib ... |
8ebf56a4dae4c7a705e5777a4f22367b68f8a41f | 9432ef7db359de09d74a18dbf6bf5796f2433879 | /SDL_Project/Player.h | f68d565106b1e84a3fc5e34d5e11d8fb313c7200 | [] | no_license | Tetris566/SDL_Intro_Project | 07250cd9217fead42168a63b8337c1001b375f16 | 20125137d644bd42ab39ac0e28bb3815ad65de94 | refs/heads/master | 2021-01-17T13:00:18.438186 | 2016-06-13T20:53:07 | 2016-06-13T20:53:07 | 56,816,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | h | Player.h | #pragma once
#include "SDLinit.h"
#include "Actor.h"
class Player : public Actor {
public:
Player(std::string Name, int XPos, int YPos, int BaseDamage, int Health, int Score, LTexture Texture);
void ModifyScore(int Amount);
void handleEvent(SDL_Event& e);
void AdvMove();
void CheckCollision(Actor other);
//Max... |
d340e5d17d34194e8bee0dcd122ef7728d34622c | 5a6ccde5f37cc86b6fc0812b2bf40f42eab23906 | /D-set/1037D.Valid BFS?.cpp | dc16f10be5e1b2720fbe68133cd7879a9805d7c6 | [] | no_license | Waqar-107/Codeforces | 23f2b1edffb85f6f020107f03e09a455d3e6e792 | f0d2f25aa6a09c06083b82c39cdf3288ec2eecba | refs/heads/master | 2023-03-09T07:55:46.583363 | 2023-03-04T09:57:44 | 2023-03-04T09:57:44 | 82,915,896 | 196 | 138 | null | 2023-02-11T22:06:20 | 2017-02-23T10:29:34 | C++ | UTF-8 | C++ | false | false | 1,823 | cpp | 1037D.Valid BFS?.cpp | /***from dust i have come, dust i will be***/
#include<bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long int ull;
#define dbg printf("in\n")
#define nl printf("\n");
#define N 200110
#define inf 10000000000000000
#define sf(n) scanf("%d", &n)
#define sff(n,m) scanf("%d%d",&n,&m)
#define sfl(n) sca... |
cb6d43b007cbf72da5300db5d2ebeca5d1a5620d | 0824418d1fdab4e51938d584b2912a7f29fb89c5 | /leetcode/0113-path-sum-2/0113.cpp | 85777678164a7f5b8c94e14da3c92f48ba09ba4e | [] | no_license | MetroWind/problems | 575fd480050e5d8d59c6a08ba0946d48c2c9165b | 2c049996609c5779b4c4509107b68f615a99a1d8 | refs/heads/master | 2022-04-05T13:44:01.374507 | 2020-02-14T23:27:38 | 2020-02-14T23:27:38 | 184,368,702 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | 0113.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
void pathSumIter(TreeNode* root, int sum, vector<int>& path, vector<vector<int>>& result)
{... |
6083ae9aab725e042bc5d94a1e2d9be9fa3e0420 | 34f31a03d87b9fe1f0ac5423106490fcf615dc80 | /C++_HongJungMo/따배씨 Chapter03/3_8_비트단위_연산자_Bitwise_Operators.cpp | f86db46cd0e75ef4d1d6214cc65282b2da88ca85 | [] | no_license | fool8474/DDABAEC | 0d5a0cf7e023af31f4491feaa2d7445aee2acd31 | a06a69eaf720e06f5c332d602a08bd94c16d9fdb | refs/heads/master | 2020-04-29T21:44:07.899252 | 2019-05-20T09:05:02 | 2019-05-20T09:05:02 | 176,422,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | 3_8_비트단위_연산자_Bitwise_Operators.cpp | #include "main.h"
#include <bitset>
using namespace std;
void Bitwise_operator()
{
cout << std::bitset<8>(5) << endl;
cout << std::bitset<8>(12) << endl;
cout << std::bitset<8>(5|12) << endl;
cout << std::bitset<8>(5&12) << endl;
cout << std::bitset<8>(5^12) << endl;
cout << std::bitset<8>(6 >> 2) << endl;
cou... |
4ef0b02f0c2a9f27704dd3432a18b5dd02bd6349 | ecc4bcaa28a1a1b79fd8c610df9f1fb9fc21a42c | /system/segmentedname.h | 6d48f646664399614623dc477843ebdbc52438d8 | [] | no_license | 980f/safely | 9af68ff02e9cba9c8e2057d79364609c22e0799b | 4170aa0d2544485273bb3589218d32955da099ff | refs/heads/master | 2022-05-31T23:49:15.169012 | 2022-01-31T23:32:56 | 2022-01-31T23:32:56 | 76,493,197 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,762 | h | segmentedname.h | #ifndef SEGMENTEDNAME_H
#define SEGMENTEDNAME_H
#include "textpointer.h"
#include <chain.h>
/** base pathname class, @see Pathname for something useful */
class SegmentedName:public Chain<Text> {//prior use of Cstr led to use-after-free possiblilities
/** there are two reasonable approaches to assignment so we forc... |
46cc8f68cfd6f2fea8ce35d66a4ced11e4019dff | 084590bc030d04e9fec2da9522268cc375ff75ed | /cipherData.cpp | b496d37c8d0b6a638996e466b86f952bba652ff1 | [] | no_license | santiagovelezf/Tarea-3 | e3ae52a07a93da806504c3bb60bd4746ddad5a5a | f7645ddacb23ab8fae5bc8b32005466fe3616419 | refs/heads/master | 2020-05-24T12:32:45.558581 | 2019-05-04T17:00:46 | 2019-05-04T17:00:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | cipherData.cpp | #include <iostream>
using namespace std;
void cipherData(int trama[20], int rondas){
int copia[20];
int respuesta[20];
for(int i=0;i<20;i++){
copia[i]=trama[i];
}
for(int i=0;i<rondas;i++){
for(int j=0;j<20;j++){
if(j==0){
respuesta[j]=copia[19]-copia[1];
}
else if(j==19){
respu... |
2dfb4340842be7dae4af6101960bb03e8c161edf | e2ee490a3da13b0c2549f702f4721d38b44cbe72 | /cAnimals.cpp | af9e943c0078e3f0d32599fee6c9298a7445e743 | [] | no_license | nnphong1904/Project1 | 7ecfcbf8a4233a1c79cfc45b6a05c12042825bfe | b29b3209f6873e93c1bc60e44a034c6f0cc47e80 | refs/heads/master | 2020-04-10T09:53:24.898376 | 2018-12-08T14:58:07 | 2018-12-08T14:58:07 | 160,949,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | cAnimals.cpp | #include "cAnimals.h"
void cAnimal::move() {
deleteLeftObj();
mX += 1;
if (mX == 39) mX = 1;
GotoXY(mX, mY);
draw();
Sleep(10);
}
void cAnimal::deleteLeftObj() {
GotoXY(mX, mY);
cout << "_";
}
void cDinausor::draw() {
cout << "D";
}
void cDinausor::move() {
cAnimal::move();
}
void cBird::draw() {
... |
83fc9225634f481013323ed7321a80f548d4d192 | 5f71de529af7e651476890051df4e70739abb1a2 | /Spreadsheet/Spreadsheet/Spreadsheet.cpp | 7b4ddd9e9bebac2828ec36853dcb843982822688 | [] | no_license | annethf/Marginalia | 568c8af21735b9a0cc248f851cb0c469dbda9142 | d9bfe11bf08510521002e31fef12723c199026f6 | refs/heads/master | 2016-09-05T19:44:30.238163 | 2015-06-02T08:02:17 | 2015-06-02T08:02:17 | 17,209,103 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 3,153 | cpp | Spreadsheet.cpp | // Spreadsheet.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Spreadsheet.h"
//可以在类的任意地方访问共有的静态数据成员
int height = Spreadsheet::kMaxHeight;
Spreadsheet::Spreadsheet(int inWidth, int inHeight, SpreadsheetApplication& theApp) :
mWidth(inWidth < kMaxWidth ? inWidth : kMaxWidt... |
9de48f5c5c0dd226eacd37a7a37fcd7302c5e685 | 7fb7615d713dc250b39089d613bedbec1b04392f | /src/GeneticImages/GeneticImages/main.cpp | 40e0f098b2cba056e0166b4845af6c64fd210312 | [
"MIT"
] | permissive | bryan138/genetic-images | 066e5838ad6afabba7a1af2e22c892be4869e0d7 | aa1abd959521ab9daa099d6bc7d59869c67c172c | refs/heads/master | 2021-01-12T01:22:02.300714 | 2018-03-15T17:44:37 | 2018-03-15T17:44:37 | 78,376,100 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,960 | cpp | main.cpp | #ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <stack>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <math.h>
#include <time.h>
#include <ctime>
#include <direct.h>
#include <fstream>
#includ... |
e1f02458ada0b85cfc323d2b7b1401e2d834abcb | e57078808aef5c1c75a5584e2c71ef78287e5a36 | /names/nam.cpp | 2168adeb60fc5b5e55a71e43348a09f0e789edc3 | [] | no_license | TotallyImpressed/Coursera | 2089773153f76ce321f8639e015ce3605ffd472b | 6eb8ecf99642bbb9dace6e14be82f0885dc8bee4 | refs/heads/master | 2020-04-29T03:59:11.942453 | 2019-05-06T14:27:51 | 2019-05-06T14:27:51 | 175,831,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | cpp | nam.cpp | #include <iostream>
#include <map>
#include <set>
using namespace std;
class Person {
public:
void ChangeFirstName(int year, const string& first_name) {
fn[year] = first_name;
}
void ChangeLastName(int year, const string& last_name) {
ln[year] = last_name;
}
string GetFullName(int y... |
d4b21bfb5d3703bd563b6b34d364da4293dfa91f | 21c9a61c287a8a63525ec473d56d43d30cce872e | /Robot-Editor/src/EditorLevelImpl/EnemyObject.cpp | ecae3a8490db00ea1bc34eb678216cd2a34e512a | [] | no_license | lazarev-pv/robot-game | 444242166766bc4753e170177522f6286ae46df5 | f4f22f2f2f7da51c07eb3b148d844fbd187fe867 | refs/heads/master | 2021-01-10T09:17:15.792534 | 2015-10-01T16:57:54 | 2015-10-01T16:57:54 | 43,508,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | cpp | EnemyObject.cpp | #include <EditorLevelImpl/EnemyObject.h>
#include <ChibiEngine/XMLParser/WorldParser.h>
#include <EditorLevel.h>
using namespace game;
using namespace std;
using namespace glm;
EnemyObject::EnemyObject(const glm::vec2& pos, const std::string& enemyClass,const std::string& name)
:NamedPointObject(vec3(pos,0),name... |
0884ce13b5716914486930dd8e3b8ddbdc262d2f | cca91d516f68ee53566d7696ae8aa323f0f30930 | /parallel-data-structures/stack.hh | c79b546a785a8429e83a3b2b66fa2e775ae23168 | [] | no_license | snod4/UnixOperatingSystemAndCProgramming | cd1568a1b6f8a34a2c6ded4de21152385c7d31be | 2be70c5b352c36c53e560a6e9282238c61c6c778 | refs/heads/master | 2023-01-09T20:45:26.814244 | 2020-11-16T04:09:43 | 2020-11-16T04:09:43 | 313,183,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | hh | stack.hh | #ifndef STACK_H
#define STACK_H
#include <pthread.h>
#include <stdbool.h>
typedef struct my_stack {
pthread_mutex_t lock;
struct stack_node * head;
} my_stack_t;
// Initialize a stack
void stack_init(my_stack_t* stack);
// Destroy a stack
void stack_destroy(my_stack_t* stack);
// Push an element onto a stack
vo... |
ff1848c3b6dbbeba0055d70b56bb70664e685758 | 28d24c072a5d4a88752136fd13fe90f6df2dc95e | /src/sort/insertion_sorting.tpp | 441136a3e68df3e746301e2a891381f387e52e8c | [] | no_license | AndLvovSky/exam-4-term | cf77f50d131be8f0801a425b810dc694542cc903 | 67ea8bb7a6c0857da0b47560fab124445cf6b77c | refs/heads/master | 2020-06-04T15:45:38.737273 | 2019-06-20T14:48:06 | 2019-06-20T14:48:06 | 192,088,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | tpp | insertion_sorting.tpp | #include "insertion_sorting.h"
#include "event/compare.h"
#include "event/extract.h"
#include "event/move.h"
#include "event/put.h"
#include "event/start_sort.h"
#include "event/end.h"
#include <memory>
template <typename T>
void InsertionSorting<T>::sort(QVector<T>& v,
const Comparator<... |
494904ff8fb49033f092acaf32b1f165e1122d86 | 8dbd8a3ad5ae2799404990dc018e78177c9a54cb | /Test/t_Handle.h | 43f02bebb0dcba96f4d419106bf3c0df3d36d7b2 | [] | no_license | jellychen/Ballet-Net | 4166ee9951e89f51470a65273fe90b0701888e94 | 79e7fdbfad60780d6dfa5253921fa5d26137079b | refs/heads/master | 2020-05-21T21:00:40.810744 | 2016-11-21T02:46:57 | 2016-11-21T02:46:57 | 65,792,442 | 8 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,856 | h | t_Handle.h |
#include <Ballet/Common/BalInct.h>
#include <Ballet/Common/BalNull.h>
#include <Ballet/Common/BalHandle.h>
using namespace Ballet;
#include <iostream>
#include <memory>
#include <vector>
#include <list>
#include <map>
using namespace std;
#include "shared_ptr.hpp"
class t_Handle_class_base
{
public:
virtual ~t... |
98f40ff1375318b6fe7779ddf52142393fa9acad | ad2249e7504ccb22cace5028d9e8133003548f05 | /cpp/GasStation.cpp | e6337145fe1815411b72fd9f6c50fd3101750452 | [] | no_license | wolaoa/leetcode | cc4fc8e30ced45a4cb0501033e29ea9e7fa72686 | 1dd5192e8beae28d7c08346133e3f47797c42b5a | refs/heads/master | 2021-01-02T08:45:22.746944 | 2018-04-08T11:57:03 | 2018-04-08T11:57:03 | 22,458,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | cpp | GasStation.cpp | #include <iostream>
#include <vector>
using namespace std;
int canCompleteCircuit(vector<int> &gas, vector<int> &cost) {
int station = gas.size();
int i,sum=0,start=0,total=0;
for(i=0;i<station;i++)
gas[i]-=cost[i];
for(i=0;i<station;i++) total+=gas[i];... |
2ecb5d71601495db27f45fe1f44853042f78c90c | 3371510b9bfb3afb15f0e0855cda1ad49eb1dd67 | /URI-ES/PRINCIPIANTE/1061 - Tiempo Del Evento.cpp | 5f0aa8cbbcd9cab9ecee10d7843cb2bdc4491f6d | [] | no_license | felipesdias/Extractor-URI-Online-Judge | 30d031dbf8d55b62a83124e7b20d121ff98fee92 | 74717bd2e51939e7be67b552802b1a1b9612849e | refs/heads/master | 2021-08-17T08:20:54.696524 | 2017-11-21T00:23:33 | 2017-11-21T00:23:33 | 111,474,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | 1061 - Tiempo Del Evento.cpp | // Autor: Felipe Souza Dias <felipe.s.dias@outlook.com>
// Nome: Tiempo Del Evento
// Nível: %d
// Categoria: PRINCIPIANTE
// URL: https://www.urionlinejudge.com.br/judge/es/problems/view/1061
#include <stdio.h>
#include <iostream>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
... |
3e361e938304836e8d99595068c6847a25e39eb5 | d3b25341d274ce4e1d8144ffa0bea0af583afd4e | /ServiceModule/MauServer/include/MauGWSClient.h | 09dbfa6fa899b05bd8c777ebab281ba7b28d3407 | [] | no_license | zwong91/cyaServer | c0a383a44cb0267c8983c9e8426c3e614bda3531 | 721e91268ac7db86bc606534c78b1eca74a222e5 | refs/heads/master | 2020-04-26T05:20:22.916718 | 2017-12-08T03:20:38 | 2017-12-08T03:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | h | MauGWSClient.h | #ifndef __MAU_GWS_CLIENT_H__
#define __MAU_GWS_CLIENT_H__
#if defined(_MSC_VER) && _MSC_VER > 1000
#pragma once
#endif
#include "GWSSDK.h"
class MauGWSClient
{
public:
MauGWSClient();
~MauGWSClient();
int Login();
void Logout();
int SendBasicResponse(SGWSProtocolHead* pHead, UINT16 retCode, UINT16 cmdCode);
... |
ba0683305a0adc88b5bcba72602ab61b77c5620b | 0d9aaae6ed3676698ae39cc386910bc9c8c6928f | /Public/Ava/Memory/Owner.hpp | 0d0aa1ea5a9157a4e2d911af887eecd4dd94de54 | [
"MIT"
] | permissive | vasama/Ava | 4375a83836f767a019d025d2da35844434797cb9 | c1e6fb87a493dc46ce870220c632069f00875d2c | refs/heads/master | 2020-04-04T13:38:54.691085 | 2019-01-05T20:10:17 | 2019-01-05T20:10:17 | 155,969,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,958 | hpp | Owner.hpp | #pragma once
#include "Ava/Memory/DefaultDeleter.hpp"
#include "Ava/Meta/EnableIf.hpp"
#include "Ava/Meta/Identity.hpp"
#include "Ava/Meta/Traits.hpp"
#include "Ava/Meta/TypeTraits.hpp"
#include "Ava/Misc.hpp"
#include "Ava/Private/Ebo.hpp"
#include "Ava/Private/Memory/SmartPtr.hpp"
#include "Ava/Utility/Move.hpp"
na... |
5b82475256ca2b2c5bb75986c57ec1b120dfa2b0 | 533191be4e19f3c51a56d7740c98b59918c6e89c | /Actions/selectaction.cpp | 373f5a12a7e0fbcaca2269d9744ba92257b183f4 | [] | no_license | marwankefah/FlowChart_2_CPP | 4c0c6d0cabf7366a894fd65948c42837427a32a9 | 5a18af50eefcbbb5e89b3f0b7b04c881701f87b6 | refs/heads/master | 2023-04-22T13:59:21.999999 | 2021-05-03T11:44:04 | 2021-05-03T11:44:04 | 363,875,660 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,290 | cpp | selectaction.cpp | #include "selectaction.h"
#include "../ApplicationManager.h"
#include "../GUI\Input.h"
#include "../GUI\Output.h"
selectaction:: selectaction(ApplicationManager* pmanager):Action(pmanager)
{
}
void selectaction:: ReadActionParameters()
{
Input *pIn = pManager->GetInput();
Output* pOut = pManager->GetOu... |
4c30a3d173b7c6ef3dd80a4d03695086e30357d2 | 6d4ecf36ae91b37f413b0c9eff19ce239ba04410 | /PartThreeAlt.cpp | 6ff40bbe71e6913de1b0991706d1ce06744e6375 | [] | no_license | prabsingh/Huffman | bd4e808217453b578c1cc891847f2e6ea408aca1 | 8bc2de7aaa288297bd7fe0833c71a3c4e7312420 | refs/heads/master | 2020-04-07T06:13:05.848687 | 2018-12-01T22:39:14 | 2018-12-01T22:39:14 | 158,126,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,291 | cpp | PartThreeAlt.cpp | #include "utility.h"
/*
Team 7
Prabhdeep Singh
Christopher Goebel
*/
void readCodeTableAlt(string filename, map<string, string> & charCodeMap);
void encodeFileBinary(string inputFilename, map<string, string> & codetable, string outputFilename);
int main() {
string inputFile = "clear.txt";
string codeTableFile = "c... |
aae1807a093f02d71b8745126ea4969b68db10a3 | b1fc87649b3f8e6dd8a6630cbbf3bfc6fb6c7e1d | /exercises/templates/dac/timer.h | 919d98497d8e922c5eae4d95f43d4b7be12424b2 | [] | no_license | ChrisCummins/msc-thesis | bfdef83d92af424157c82968754fd8d10ea42842 | 009c47a5f87f3808d9cc223456e0263b3a9a0b81 | refs/heads/master | 2021-06-02T16:53:35.140227 | 2020-01-18T12:03:50 | 2020-01-18T12:03:50 | 24,074,809 | 3 | 1 | null | 2015-02-23T12:57:30 | 2014-09-15T21:33:36 | C++ | UTF-8 | C++ | false | false | 306 | h | timer.h | #ifndef EXERCISES_TEMPLATES_DAC_TIMER_H_
#define EXERCISES_TEMPLATES_DAC_TIMER_H_
#include <sys/time.h>
#include <ctime>
class Timer {
public:
int us();
int ms();
void reset();
Timer() { reset(); }
private:
struct timeval start;
};
#endif // EXERCISES_TEMPLATES_DAC_TIMER_H_
|
9b769635f0efb6168f32a23675c016b59589ceaf | 387549ab27d89668e656771a19c09637612d57ed | /DRGLib UE project/Plugins/Modio/Source/ThirdParty/NativeSDK/modio/modio/detail/entities/ModioLogo.h | de5e58ba0b817675462577d88f226a78d9ea4785 | [
"MIT",
"BSL-1.0"
] | permissive | SamsDRGMods/DRGLib | 3b7285488ef98b7b22ab4e00fec64a4c3fb6a30a | 76f17bc76dd376f0d0aa09400ac8cb4daad34ade | refs/heads/main | 2023-07-03T10:37:47.196444 | 2023-04-07T23:18:54 | 2023-04-07T23:18:54 | 383,509,787 | 16 | 5 | MIT | 2023-04-07T23:18:55 | 2021-07-06T15:08:14 | C++ | UTF-8 | C++ | false | false | 2,814 | h | ModioLogo.h | /*
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io>
*
* This file is part of the mod.io SDK.
*
* Distributed under the MIT License. (See accompanying file LICENSE or
* view online at <https://github.com/modio/modio-sdk/blob/main/LICENSE>)
*
*/
#pragma once
#include "modio/core/ModioCoreType... |
d9c0ba2c92cb3717cf7172d982dc6ee490a9f2d0 | d7d152b5aee90badcb7e567f8a1acc60ee458f72 | /B5/container.cpp | 5e1ccd4e0f330658e8e968a2b67a8a47c5bb7fd6 | [] | no_license | bazfar/spbstu.cpp.labs | 30ac428c15b8637261f2e3ecf198a744a132b34a | 06bf17f174f56fa7cad723796ff5e04fdf5be25a | refs/heads/master | 2023-03-05T10:51:44.375517 | 2020-04-03T05:41:53 | 2020-04-03T05:41:53 | 252,642,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,956 | cpp | container.cpp | #include <algorithm>
#include <cmath>
#include <iostream>
#include "container.hpp"
geoShapes::Container::Container():
countTriangle(0),
countRectangle(0),
countSquares(0),
countVertices(0)
{ }
void geoShapes::Container::add(geoShapes::Container::shape_ &shape)
{
vec.push_back(shape);
countVertices += shap... |
3a28b82908e5b4786487d9a5ff78ffb74d7a1cd7 | f0fa36520ab0e15574e3f55ef4de06ab12d25444 | /example/ex14_bluetooth_LED/app.ino | 876425a4e8a67ccc5eca1a3d38b2c4b1229d75b8 | [] | no_license | suinautant/learn_Arduino | c07a2aeccefbacbef6b352b0c26b673176935567 | d42a5c7a18fb59a07c8e42bb854c894dc57c8329 | refs/heads/master | 2023-08-15T00:17:53.526142 | 2021-09-16T09:59:51 | 2021-09-16T09:59:51 | 402,038,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,249 | ino | app.ino | /*
블루투스 모듈로 앱에서
3번을 누르면 LED가 서서히 밝아지고
4번을 누르면 LED가 서서히 어두워지며
5번을 누르면 LED가 OFF
*/
#include <SoftwareSerial.h>
int blueTx = 3;
int blueRx = 2;
int LED_PWMpin = 9;
int trig = 4;
int echo = 5;
int distance;
SoftwareSerial mySerial(blueTx, blueRx); // (RX, TX) -> HM-10의 (TX, RX)
String myString = "";
byte n = 255;
void se... |
59982b5515c8b045e95198959e2153bf71ef77b2 | 0de6bb00b35e7ca783d2d58b9e7da7f7b0b5b880 | /MyImaginDemo/Imagin/ServerInfo.cpp | 58bc5879296a68b2978ad6955343713857045544 | [] | no_license | captainwong/MyImaginDemo | 702cfeb4713c32432ba6d18e213956201e6616e1 | 88784bd567b4e6a02aff44cc2f636815583a09b4 | refs/heads/master | 2020-05-17T04:23:06.870664 | 2015-02-03T10:29:59 | 2015-02-03T10:29:59 | 28,596,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,799 | cpp | ServerInfo.cpp | #include "stdafx.h"
#include "ServerInfo.h"
namespace Imagin
{
ServerInfo::ServerInfo()
: _srvInfoObj(CORE_API_INVALID_OBJ)
{
_credCb.destroy_udata = destroy_udata;
_credCb.get_digest = get_digest;
_credCb.get_password = get_password;
_credCb.get_username = get_username;
}
ServerInfo::~ServerInfo()
{
if (cor... |
b06dcc377569b77039c05f4a1ef9a52e400fc383 | cffadb67ca0660d43516069f53a3072f5b63ef21 | /arduino programs/kondo0/kondo0.ino | 125b5503c8f7dd88e299d3447ad5fa7d873dffcf | [] | no_license | jchan1992/industrial-training-test-programs | 7f287f54d9924849af195a623025fa54448f7959 | 262d52c1c12e6ecfb72183e19031b373d22bab23 | refs/heads/master | 2021-01-25T06:55:47.459985 | 2017-06-07T10:56:40 | 2017-06-07T10:56:40 | 93,625,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,675 | ino | kondo0.ino | //set id number for motors;
const int id1 = 0x0;
const int id2 = 0x1;
//record position for motors;
unsigned char pos1 = 0;
unsigned char pos2 = 0;
//record current values for motors;
int cur1;
int cur2;
// code received from pc; 0 = on spot; 1 = below;2 = above...
int state;
// rx and tx values for each motor
unsigne... |
d47b639e8ef4d09ec691c48c0d9931105d6b802e | 129de4469bd6d2fd43d2a231ee1a7be4fd7edf51 | /LinkedList/LinkedList/linkedlistmain.cpp | 98cbeb1d934ff21d47df78ea74922e14cfd8d01e | [] | no_license | ZacharyLloyd/LinkedList | 4f47dfd940f1eb38ec0fee3342d04aad0b9d8d3a | 229b80db2ab0e84fe05aab722e267ff8855051cc | refs/heads/master | 2022-11-03T04:03:56.031837 | 2020-06-14T22:42:35 | 2020-06-14T22:42:35 | 272,263,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,430 | cpp | linkedlistmain.cpp | #include <iostream>
#include "linkedlist.h"
#include "linkedlistfunc.h"
using namespace std;
/*Program to test Node, DLList and their functions*/
int main() {
//Initiate an Integar Doubly Linked List
DLList<double> myList = DLList<double>();
//Logged value
Node <double>* loggedData = nullptr;
//Simple test for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.