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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef02014c039e32b61fcd9227a71bff0368c679c6 | feb207f41689d5fca13f013a9072125de96b8b44 | /mwnet_mt/netclient/curl/CurlRequest.cpp | fd26b3bc3b0e5634151a9dd98dd5b8f8f517e56e | [] | no_license | cocoj521/libmwnet | d4bc1f13aa07eff31e33b6d46fd312fc83fa9d8e | 27201f76d6c7a81155b264a59a70f3b7ddcefa72 | refs/heads/master | 2023-08-16T21:28:37.202454 | 2023-08-16T08:17:02 | 2023-08-16T08:17:02 | 163,558,652 | 6 | 3 | null | null | null | null | GB18030 | C++ | false | false | 9,353 | cpp | CurlRequest.cpp | #include "CurlRequest.h"
#include "CurlManager.h"
#include "CurlHttpClient.h"
#include "RequestManager.h"
#include <mwnet_mt/base/Logging.h>
#include <assert.h>
using namespace curl;
CurlRequest::CurlRequest(const std::string& url, uint64_t req_uuid, bool bKeepAlive, int req_type, int http_ver)
: req_uuid_(req_uuid)... |
93db6f64de1c373a1b2a6c564bacc0beae89b0c9 | 88846d469c3dc34b68399375f21b1b4b47b2b0eb | /Display The Number.cpp | a9794a6174ba179098be443dbfceadd217663da8 | [] | no_license | Pradumnk23/CF-P-C | 230eda6fa7b8588c8380bcfd25f9313213258287 | ae79f7d3e5aca6499858eb3269c1256dcd881b92 | refs/heads/main | 2023-04-08T00:42:22.028686 | 2021-04-16T14:35:57 | 2021-04-16T14:35:57 | 345,018,595 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | Display The Number.cpp | #include <bits/stdc++.h>
#include <math.h>
#include<algorithm>
#include <vector>
#include <string>
#define lli long long int
using namespace std;
int main()
{
lli t;
cin>>t;
while(t--)
{
lli n;
cin>>n;
if(n%2==0)
{
for(lli i=0; i<n/2; i++)
cou... |
2e7479daf5a03021a086308fc01759dbcb580f2c | 7fedcb7403ea0124996c0e04bc2f744eed1bd122 | /15826/p2/handin/q2/fractal.cc | 69804d312966675d5d7872dd03e5d9b6db76d30a | [] | no_license | SunnyQ/cmu | 902ff2090cddfa91697b6aa729ac1fa92d10f888 | 4dde4c10d12beba86cc297fce3d8a9058709be0a | refs/heads/master | 2020-12-26T01:48:32.340125 | 2013-12-01T18:03:43 | 2013-12-01T18:03:43 | 24,697,795 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,703 | cc | fractal.cc | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_N_SURFACE 100000
#define UP 'U'
#define DOWN 'D'
#define WEST 'W'
#define EAST 'E'
#define NORTH 'N'
#define SOUTH 'S'
typedef struct
{
double p1[3];
double p2[3];
double p3[3];
double p4[3];
double unit;
char direction;
}... |
73f9058bf2ca180c3a2960f38279b61de5da5943 | 1e0dcdc97c933a8b0226cfa8897ae4db73bd12ee | /mod_04/ex03/Ice.cpp | c72bda9c69ceda4c2648198a12d3f04a1d674e57 | [] | no_license | beeguy74/cpp_modules | 95294e04896e604fd311ea39176c4e655febb97f | cc87f56b5c3d2999ff09a8b8e21c8c6690dd9e4b | refs/heads/main | 2023-08-30T11:52:30.975889 | 2021-11-16T09:06:28 | 2021-11-16T09:06:28 | 394,993,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | Ice.cpp | #include "Ice.hpp"
Ice::Ice(): AMateria("ice"){
return ;
}
Ice::~Ice(){
return ;
}
Ice *Ice::clone() const{
return new Ice;
}
void Ice::use(ICharacter &target){
std::cout << "* shoots an ice bolt at " << target.getName() << " *" << std::endl;
}
|
d1edfe86e3ef767452dabd3cf31c6818dcb93663 | 1d395f31bd8fc6485a333618d6f523a1bc9a8489 | /Src/BlackCat.Game/Game/System/Animation/bcAnimationJobBuilder.h | f30f1764894c4f6f5b15c143e64e6e1a4fceac00 | [] | no_license | MohammadRB/BlackCat-Engine | f44f8ced87dee8fd6840fce2917beba74ab8865e | e0490ee54f124ec20e57a3ea1960a07957866a9c | refs/heads/master | 2023-08-23T12:25:10.703995 | 2023-07-19T22:11:48 | 2023-07-19T22:11:48 | 19,066,510 | 3 | 1 | null | 2023-09-10T14:20:59 | 2014-04-23T10:59:49 | C++ | UTF-8 | C++ | false | false | 8,151 | h | bcAnimationJobBuilder.h | // [31/12/2020 MRB]
#pragma once
#include "Core/Memory/bcPtr.h"
#include "Core/Math/bcMatrix4f.h"
#include "Core/Container/bcVector.h"
#include "Core/Utility/bcDelegate.h"
#include "Game/System/Animation/bcAnimationJob.h"
#include "Game/System/Animation/Job/bcSamplingAnimationJob.h"
#include "Game/System/Animation/Jo... |
92aed6bbf941df4bdc7721d41e7e2edb3b770b77 | a183ab80203886cf8af57ab9cfc6ffe60c1c659e | /src/main.cpp | 70b7afc9fd71a332c7fba28e90017db14add10a4 | [] | no_license | rometsch/ising3dcpp | 72491ca18f135105fd5f09774b7a87f3c16ce444 | 8814fbb5f47e982017ce617542fe2f509e5b0f9e | refs/heads/master | 2021-01-22T13:37:14.983027 | 2014-12-07T15:10:27 | 2014-12-07T15:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Dec 5, 2014
* Author: thomas
*/
#include "Lattice.h"
#include "Sim.h"
#include "MyTimer.h"
#include "iostream"
#include <stdlib.h>
int main() {
srand(2);
MyTimer timer;
cout << "L=5" << endl;
Sim* mysim1 = new Sim(5, 4.4, 4.6, 5, 20000, 100000);
mysim1->run();
mysim1->p... |
a44ff1f9209fdc9fd1ba7841391c781aa2bfb641 | e53a2fc0cb2521aaad3d4ea8f43cdf6c15e1722f | /E-Commerce System/Project part3/Buyer.cpp | 695595775df14ac5fe68469dbccd96323fd131cf | [] | no_license | nitzan747/C-Plus-Plus---Projects | d4bb8ce04bdf17440f7ebac4b9cf4813de4581e2 | 64577ab2270bd1965dbb0bd66866f5aff23bddce | refs/heads/main | 2023-06-29T03:53:35.249037 | 2021-08-04T09:27:54 | 2021-08-04T09:27:54 | 340,057,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,644 | cpp | Buyer.cpp | #include "Buyer.h"
Buyer::Buyer(const string& userName, const string& password, Address* address, Order* order ) : User(userName, password, address)//c'tor default --zero all
{
this->order = order;
}
Buyer::Buyer(const Buyer& other) : User(other)// copy c'tor
{
if(other.order!=NULL)
this->order = new O... |
1058a27d563194572088e2a11cb3b787f79c7576 | a250518ae1efe105f2128bd0c0d4e6e54cd87316 | /Source/MainMenu/MainMenu.cpp | 286f097838d2f0c9e3068b7c0024a6a748584c37 | [
"MIT"
] | permissive | BlenderGamer/MainMenu | ecffeed5492472deb96362d2b2e6795902a60337 | 504daac37036e285db1c03fe3d5072742098979e | refs/heads/master | 2022-01-06T21:29:41.717015 | 2018-08-12T17:26:42 | 2018-08-12T17:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | cpp | MainMenu.cpp | // Copyright 2018 Pavlov Dmitriy
#include "MainMenu.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, MainMenu, "MainMenu" );
|
cf966979d21846b93c12910a1a1ef53759f1dacc | 8d03a062b75f65f7a0bc8993842c019a17cc7a8d | /src/components/AnimationStep.cxx | f565154a142674634bc5fd9d8ea654bfc83ba11c | [] | no_license | onatbas/robocubes | 4bde7740be7cc0c8216f0386f116cb82d43407a8 | d48c780a33fe71b5c64a62f68d9c2a730e0bbe76 | refs/heads/master | 2021-06-20T13:12:27.322784 | 2017-01-09T10:32:10 | 2017-01-09T10:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cxx | AnimationStep.cxx | //
// Created by Onat Bas on 06/01/17.
//
#include <components/Scale.hxx>
#include "AnimationStep.hxx"
bool AnimationStep::isNextStepValid() const {
return (nextPath.size() != 0);
}
AnimationStep::AnimationStep() : nextPath(""),
scale(1) {
}
std::string AnimationStep::getPath() ... |
9da9a2dfb1b940327b33963362b6c0aa3c113acf | b1474d2fbb66c8a347acfb26aaa34028f6417f23 | /test/db_test1.cc | a0d39d3b633e49480163e91a46453e7f09f0d22b | [
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause"
] | permissive | ssynn/leveldb_course2021 | 471c4bb004d9d1e630d1311dd973d60a1ee3ef80 | 8007742e864d46525d3dba22d9aa9d75baf59a66 | refs/heads/main | 2023-06-13T22:28:17.783501 | 2021-06-16T11:11:26 | 2021-06-16T11:11:26 | 356,802,628 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cc | db_test1.cc | #include <cstdio>
#include <iostream>
#include "leveldb/db.h"
using namespace std;
using namespace leveldb;
int main() {
DB* db = nullptr;
Options op;
op.create_if_missing = true;
Status status = DB::Open(op, "testdb2", &db);
assert(status.ok());
status = db->Put(WriteOptions(), "1", "hobo");
assert(st... |
c062f0bd71f5a2ac72ec280f2b4ddfac3f741d29 | 77666e03d99e7a8bc6f8fe8cbde2fdf19cc2a875 | /C++/Graphs/Shortest_Path.cpp | 02d5a6d14d3f5a6fade57ba016a4d0d669f620e2 | [] | no_license | malhotrasimran2000/Data_Structures_and_Applications | 10072347c1b8a60cd259b519d2a2f96d5cc344cb | 74511c8524c50130b87d1bc6949d6077f52f96b8 | refs/heads/master | 2022-11-27T21:18:19.702802 | 2020-08-03T17:37:25 | 2020-08-03T17:37:25 | 284,763,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | Shortest_Path.cpp | #include<iostream>
#include<list>
using namespace std;
//Graph Implementation
class Graph{
int v,e;
list<int> *l;
public:
Graph(int V,int E){
v=V;
e=E;
l=new list <int>[v];
}
void print(){
cout<<v<<"\t"<<e;
}
void addEdges(int x,int y){
l[x].push_back(y);
l[y].push_back(x);
}
void bfs(... |
8d8cb0cd936e32e2eb93b3b251dcadef05110a46 | 8cac315d7f6ccbfcf52231b023018fe111fb24de | /luminor_gen.cpp | 93dd795b172882f356cad54f3d755edc4a18887b | [
"MIT"
] | permissive | absbin/luminor | e22ee4ea1ca810bb3e0eb2e1e627c619b4e73494 | 5873ec37f3e877631ec07a58fe4e4eac200aa213 | refs/heads/master | 2020-04-24T15:17:02.573482 | 2018-01-26T16:07:34 | 2018-01-26T16:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,852 | cpp | luminor_gen.cpp | #include "Halide.h"
#ifndef BUILD_RGBA
namespace {
class Luminor : public Halide::Generator<Luminor> {
public:
Input<Buffer<uint8_t>> input{ "input", 3 };
Input<float> b_sigma{ "brightness", 0.0 };
Input<float> c_sigma{ "contrast", 1.0 };
Input<float> g_sigma{ "gamma", ... |
c4f51e1b21d4c5152805af12bf1b741f1543da24 | 2c713beef35146ea3add8abcdfb2d4ad1872a4ab | /soccer/soccer/ai/heur/ReboundAwareNaive.h | e0eb000e55cadfd4342f268654c39c4bdb0b5ef9 | [
"MIT"
] | permissive | radtek/soccer | 22dd520851f2ada7939c0b714d9cc6a88dc9fdea | 7bceea654b50c5c0e18effd38e79249bd295e0a4 | refs/heads/master | 2020-06-02T00:53:31.884646 | 2018-11-03T19:31:49 | 2018-11-03T21:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | h | ReboundAwareNaive.h | #ifndef _soccer_ReboundAwareNaive_h_
#define _soccer_ReboundAwareNaive_h_
#include "../../GameState.h"
namespace soccer { namespace ai { namespace heur {
class ReboundAwareNaive
{
public:
ReboundAwareNaive(double reboundWeight, Player player);
double operator()(const GameState& state);
private:
dou... |
1cfa588b0bd2b36e300d5881d3bc9bcb6cfd75b2 | 3f8f433d15411ddf586fd3dae8b7ed1036cb2ff5 | /Classes/soldier.cpp | f2c385130f2ffd9824899392e8f27ff0e70ab964 | [] | no_license | jj918160/dame-01 | 80d2c6028647f3d5f6beff4792c08f5f9147f25b | 8bef9e56d267cbb6894862b6b605e4024e803598 | refs/heads/master | 2021-01-10T09:10:29.346792 | 2015-09-23T12:30:05 | 2015-09-23T12:30:05 | 42,991,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,814 | cpp | soldier.cpp | //
// soldier.cpp
// animate_homework
//
// Created by mac on 15-7-18.
//
//
#include "Player.h"
#include "map_layer.h"
#include "soldier.h"
#include "zhaoyun.h"
#include "HelloWorldScene.h"
USING_NS_CC;
bool soldier::init(std::string pic_name,int hp,int a,float spd){
if (!Sprite::init()) {
return false;... |
8657cb5aa61f10a940801c36cd43935c04e67e8e | 6637ae8c96457daf90fd08c4d92c817d422e51c7 | /DataStrucutures/Assignments/A10-BinarySearchTree/Binary Search Tree/Binary Search Tree/doublelinkedlist.h | ec1149be6228e8c193889b4933f1a3e3f964c245 | [] | no_license | LydiaDoza/Personal | 40ca1a66dbad7a1a815a15bf9ecf78122beb096c | 87448854d57c259dd075e89782bb734c9c66b34c | refs/heads/master | 2023-03-06T07:54:33.136431 | 2020-02-18T03:28:29 | 2020-02-18T03:28:29 | 38,845,570 | 0 | 0 | null | 2023-03-03T00:04:12 | 2015-07-09T21:12:51 | C++ | UTF-8 | C++ | false | false | 11,977 | h | doublelinkedlist.h | /***********************************************************
* Class: DoubleLinkedList
*
* Managers:
* DoubleLinkedList()
* Default constructor
* DoubleLinkedList(const DoubleLinkedList & copy)
* Copy Ctor
* ~DoubleLinkedList()
* Destructor
* void operator=(const DoubleLinkedList & rhs)
* Overload the = operat... |
4fcdcda286546cd849a002071fe12a21d3643655 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542581622.cpp | 7664498ee7e10908ece995326a8d0ddacd6915fe | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | 1542581622.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
char a,b;cin>>a>>b;
string pw="";
pw+=a;
pw+=b;
int n;cin>>n;
vector<string>s;
for(int i=0;i<n;i++){
string c; cin>>c;
s.push_back(c);
}
for(int i=0;i<n;i++){
if(s[i]==pw){
cout << "YES";
r... |
8aa65961ef20e0fc8b9dc486d61ca71330d00bb0 | be7fa2f1145341e50759d741f414ef423b34df7c | /COMP220/COMP220_Examples/BulletPhysIntergration/PhysicsSimulation.h | c399970890f88ea7e6f42a34520f11d6af825764 | [] | no_license | TristanBarlow/OpenGL-Demo | 2d176b767273de679b35452496cf0283d6862c9f | fef7871d3a9b1e2339a3621a672b95ad52c4a0c8 | refs/heads/master | 2021-10-21T08:02:10.715992 | 2019-03-03T15:36:54 | 2019-03-03T15:36:54 | 104,741,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,146 | h | PhysicsSimulation.h | #pragma once
#include "btBulletDynamicsCommon.h"
#include "Mesh.h"
#include "Camera.h"
#include "Transform.h"
class PhysicsSimulation
{
public:
/**Default construtor for the PhysicsSimulation class, all the initialisation of the bulletphysics is done in this
*
*/
PhysicsSimulation();
/**Deconstructor for the Ph... |
fcac9b49f0dd399da1dec5348bc3703e44b4f466 | 66286815cc5aa5e2598056060cc3a14d6bf297ef | /src/app/gui/forms/dialogs/ConsensusOptionsDialog.cpp | e396387a90fb13f1cb388813462d4edd756f2aef | [] | no_license | lukeulrich/alignshop-qt | 07b022d8b15a75a7474e13f7c0ef3c0e43275577 | 030614f8fcc6c5bb4f6ed7f10987b5e5d11fe764 | refs/heads/master | 2020-07-28T03:06:04.528197 | 2016-11-10T21:19:41 | 2016-11-10T21:19:41 | 73,421,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,981 | cpp | ConsensusOptionsDialog.cpp | /****************************************************************************
**
** Copyright (C) 2012 Agile Genomics, LLC
** All rights reserved.
** Author: Luke Ulrich
**
****************************************************************************/
#include "ConsensusOptionsDialog.h"
#include "ui_ConsensusOptionsDia... |
bc632388d17583348ec40704c5e18380f0802317 | ff61cc8596332ebed3bc21bd5d00e27bd3ebb0d4 | /app/GUI/immediate/HandyWindow_SkillsAndUpgrades.cpp | 9d69e6f4d3c6e75a5547a0792f4d88ad6b88680e | [
"MIT"
] | permissive | celestialkey/survival | 75815593c35266984855d6f60f4dbe86ebeb839a | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | refs/heads/master | 2020-04-15T15:12:23.025140 | 2018-08-08T11:41:54 | 2018-08-08T11:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,466 | cpp | HandyWindow_SkillsAndUpgrades.cpp | #include "HandyWindow_SkillsAndUpgrades.hpp"
#include "../../entities/components/PlayerComponent.hpp"
#include "../../entities/Character.hpp"
#include "../../thisPlayer/ThisPlayer.hpp"
#include "../../Core.hpp"
#include "../../Global.hpp"
#include "engine/app3D/Device.hpp"
#include "engine/GUI/GUIManager.hpp"
#include... |
3af6cb4e5791bb071f33937a9e514f96daa008f2 | 46f2e7a10fca9f7e7b80b342240302c311c31914 | /opposing_lid_driven_flow/cavity/0.0542/p | 6bc806daf8bc1c2b199ee25a8a3ec7ca9546f409 | [] | no_license | patricksinclair/openfoam_warmups | 696cb1950d40b967b8b455164134bde03e9179a1 | 03c982f7d46b4858e3b6bfdde7b8e8c3c4275df9 | refs/heads/master | 2020-12-26T12:50:00.615357 | 2020-02-04T20:22:35 | 2020-02-04T20:22:35 | 237,510,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,288 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
c16f3777274d7b26dbc20bec7b8f85932a81c99c | 38bce4b5d793f146f289cfabf90d945f89fe560b | /demo.cpp | 9ace1d352452c9b96fec381d77f001889037593f | [] | no_license | vilas1999/GeeksForGeeks_Codes | 2f56cb7dde95f49390ba8e76be176122cbda8706 | 3d1147af5f42b32ddeb0373a8b418b841aa047b5 | refs/heads/master | 2022-06-06T07:15:46.083385 | 2020-05-06T19:08:39 | 2020-05-06T19:08:39 | 254,539,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | demo.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
long long t;
cin >> t;
long long m = 1000000007;
while (t--)
{
long long n, a;
cin >> n >> a;
long long res = 0, mat = 0;
for (int i = 1; i <= n; i++)
{
long long sum = (2 * i... |
60042fb643e0f31092bfa71357586786cd999b9e | 84bbd8a45ccf061494e35c644c17af84a2f8ce03 | /Bill.h | 41d12122a54e728edab31ec74413e86dcb619252 | [] | no_license | martynenkoav/Lab5 | 26a954ae1cb6a4949d4c648a4ac2857994c40ca4 | 7dbbcedf6be5047be17c4e825585e3bcbaea40e0 | refs/heads/master | 2023-04-02T01:56:27.411880 | 2021-04-10T15:28:11 | 2021-04-10T15:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | h | Bill.h | #pragma once
#include <unordered_map>
class Bill
{
public:
int ID;
int sum;
time_t now;
std::unordered_map < time_t , int > operList;
Bill() {
sum = 0;
ID = 0;
now = 0;
}
int get_sum();
int get_ID();
void set_sum(int);
void cut();
void add();
void trans();
void add_percent();
};
|
f42230dfd76d151236a5867aeb039154ac376a9c | 80a6dcd8e0e55b1ec225e4e82d8b1bed100fdcd5 | /CodeForces/Codeforces Round #657 (Div. 2)/C.cpp | 05c24dd9ddd0a4dd0a0e2694f7b97b9002db4417 | [] | no_license | arnabs542/competitive-programming-1 | 58b54f54cb0b009f1dac600ca1bac5a4c1d7a523 | 3fa3a62277e5cd8a94d1baebb9ac26fe89211da3 | refs/heads/master | 2023-08-14T23:53:22.941834 | 2021-10-14T11:26:21 | 2021-10-14T11:26:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,429 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
typedef long long ll;
ll n;
void solve(){
ll m;
pair<ll,ll> maxSec = {INT_MAX,INT_MIN};
cin>>n>>m;
vector<pair<ll,ll>> v;
for(ll i = 0; i<m; i++){
ll a, b;
cin>>a>>b;
v.push_back({a, b});
if(maxSe... |
816539e5111beaef92421c1e629419664cedadca | 1c7118f3932609656a5750f6548ce4fa478e5cc9 | /14.3.cpp | 7adb5c04c15fab45a88c345dda056da0734ad94b | [] | no_license | nhat1368/tu-hoc-code | 6021afd2a9faa3c646df9982c51454dc18800de5 | e2eebe02a69d2df7c71529cf8bd87e5ad4f411fb | refs/heads/master | 2023-01-25T05:12:09.491415 | 2020-12-08T20:12:19 | 2020-12-08T20:12:19 | 296,717,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | cpp | 14.3.cpp | #include <stdio.h>
int main()
{
int n;
printf("Enter n=");
scanf ("%d", &n);
int k=0, temp=0;
while (temp<n) {
++k;
temp=temp+k;
}
printf("K: %d\nSum:%d\n",k,temp);
return 0;
}
|
303e643bc3e05653a73e3b6c556a878a4edbb334 | 3ab925c45b0fe3c94a3b83987aefa3d573f36e26 | /ngHCAL/QIE10_Testing/dat/plot_maker_newversion.cpp | edeca8f202c081d8d3d633d9dc83622719ef7dc1 | [] | no_license | falves10/HF_Calibration_Unit_Test | 9e406932db31143cba0d68a75cbea8c8ad6ea9a2 | 90816e3f0405b7af10c2164a088acc377c224177 | refs/heads/master | 2020-05-25T14:58:28.372139 | 2016-11-13T17:55:47 | 2016-11-13T17:55:47 | 69,674,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,046 | cpp | plot_maker_newversion.cpp | #include <iostream>
#include <sstream>
#include <array>
#include <string>
#include <fstream>
#include "TLegend.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TH1F.h"
#include "TStyle.h"
#include "TPad.h"
#include "TF1.h"
#include "TGraph.h"
using namespace std;
void plot_maker_newversion() {
gStyle->SetOptSt... |
fad35dbdfefe649e267632967548897dc6e37822 | 7e51b086d62ebd2c482f7ba6f1709af6615b6e6f | /src/ztup/ztupwallet.cpp | a87a1c55a0a59dd34cb66cdced809318b7802399 | [
"MIT"
] | permissive | tenup-coin/TenUp | 2b5776c818af68f3a55b4a2c6636c4fa17e8be85 | 868339e54cf53a962b68422e3f9c4b7c0436c117 | refs/heads/master | 2022-06-10T11:16:39.765706 | 2022-05-31T16:29:40 | 2022-05-31T16:29:40 | 128,046,241 | 144 | 28 | MIT | 2022-05-31T16:29:41 | 2018-04-04T10:23:55 | C++ | UTF-8 | C++ | false | false | 17,908 | cpp | ztupwallet.cpp | // Copyright (c) 2017-2019 The TenUp developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ztupwallet.h"
#include "main.h"
#include "txdb.h"
#include "wallet/walletdb.h"
#include "init.h"
#include "wallet/wallet.h... |
f55eeaba7419d89d8b3e8495fea5b7ee4483a2df | debddd78c71705a9b2e801629edfc662c8e088f3 | /字符串对象.cpp | bec3b050d027e3630cd13729c2bd03164b80746b | [] | no_license | WXY666541/cplusplus | 09d195d47c6ac2249c1d59c98d4938b6ab81520e | 9c8772e011c7cc1eb2d3f29fdbfa608847191a02 | refs/heads/master | 2022-12-08T10:26:49.198205 | 2020-08-12T13:06:21 | 2020-08-12T13:06:21 | 249,717,263 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,899 | cpp | 字符串对象.cpp | #include<iostream>
#pragma warning(disable:4996)
class String
{
public:
//不带参数的构造函数
String()
{
pstr = new char[1]();
}
//带一个参数的构造函数
String(const char* str)
{
pstr = new char[strlen(str) + 1]();
strcpy_s(pstr,strlen(str)+1, str);
}
//拷贝构造函数
String(const String& rhs)
{
pstr = new char[strlen(rhs.pstr... |
72d10c5db85e39fa55420b445d526705cb621aae | d7ed36a00b5f12dfcbc467a2557844b193e40019 | /windows/findAndManipulate/findAndManipulate.cpp | e765acf07838386b058d4888c5a6adb8309812b5 | [] | no_license | sschieferstein/programmatic-application-manipulation | 271e2471ef39d6c1f2b51fcdccb78048a501c76a | 524d9ec656b3714237418b3573fa38f4fb9aba41 | refs/heads/master | 2023-04-04T11:55:42.923549 | 2017-05-06T00:16:53 | 2017-05-06T00:16:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,984 | cpp | findAndManipulate.cpp | #include <iostream>
#include <windows.h>
using namespace std;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, int iCmdShow)
{
string title;
cout << "Enter the exact title of the window you want to manipulate: ";
std::getli... |
68a99a4e00c033a5e32d4ceeea0f91b6dd4b47ea | 6dde564352d2aeed1f9092d4d39a7b6a95480340 | /Source/LevelConcept/Pickups/LD_HealthUpgradePickup.cpp | fe9c87f47fe108a4ee8faccfaeef32d09ec029e0 | [] | no_license | smsquare/GA312_AdvLevelDesign | f63bf76931de21d87bd0d8522acd4ea5de77fe48 | bacfe5a24684d5316b013027d2ea2d34fe90ed85 | refs/heads/master | 2021-08-30T00:54:57.033481 | 2017-11-21T00:22:42 | 2017-11-21T00:22:42 | 105,947,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | cpp | LD_HealthUpgradePickup.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LevelConcept.h"
#include "LD_Player.h"
#include "LD_HealthUpgradePickup.h"
ALD_HealthUpgradePickup::ALD_HealthUpgradePickup() {
PrimaryActorTick.bCanEverTick = true;
PickupType = EPickupType::PT_UPGRADE;
PickupName = "Max He... |
43d213bbf17961ccd8cf629da141b25a0da72ac2 | 1b38af12a5cc0493efc96d791e0b0ea5cb98389b | /Include/inl/Dbf.inl | 150a13907f82d7cfcc89bb9c949f94c5fa8d7b05 | [] | no_license | shenyczz/KLibrary | efce0689d496f2097d00da7faf46fb73f5102eb7 | 98eab1108f650253d243795222044989432c4d0e | refs/heads/master | 2022-12-14T10:05:58.636127 | 2020-09-18T02:05:17 | 2020-09-18T02:05:17 | 296,487,674 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,454 | inl | Dbf.inl | #ifndef __INCLUDED_DBF_INL__
#define __INCLUDED_DBF_INL__
enum FieldType
{
FieldType_None = 0,
FieldType_Binary = 'B', //
FieldType_Character = 'C', // Lmax=254
FieldType_Date = 'D', // L=8
FieldType_DateTime = 'T', // L=8
FieldType_Float = 'F', // L=32
FieldType_General = 'G', // L=? 通用型 or OLE
Fi... |
b9d3ffd8cbbd55b008e0d152f357605637183fc9 | c3c848ae6c90313fed11be129187234e487c5f96 | /VC6PLATSDK/samples/multimedia/gdi/Fonts/GridFont/Font.Cxx | b021eda8b400083cb51ff9175afda85670b0a107 | [] | no_license | timxx/VC6-Platform-SDK | 247e117cfe77109cd1b1effcd68e8a428ebe40f0 | 9fd59ed5e8e25a1a72652b44cbefb433c62b1c0f | refs/heads/master | 2023-07-04T06:48:32.683084 | 2021-08-10T12:52:47 | 2021-08-10T12:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,200 | cxx | Font.Cxx | #include <windows.h>
#include <windowsx.h>
#include <commdlg.h>
#include <string.h>
#include <memory.h>
#include "app.h"
#include "font.hxx"
//+--------------------------------------------------------
// Class: CFont
//
// Purpose: Abstract a font
//
// History: 22-Jan-1993 asmusf creat... |
742a626c296947f5f277c38b36c61420435d5e6f | 3df6badbe1e4ab7f5f5400e79732868d9c5c9274 | /code/lt0390.cpp | 5b815fda3a561589cd00a9a85936bbd59e95fd5b | [] | no_license | iwtbam/leetcode | fa440bf889b69bf3a6a3de1bf1846db3ca6aace9 | d76b120068919971775595ae306683aa0bab2bde | refs/heads/master | 2021-07-01T10:20:03.507257 | 2021-02-14T14:20:51 | 2021-02-14T14:20:51 | 214,327,800 | 11 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | lt0390.cpp | #include <vector>
using namespace std;
class Solution {
public:
int lastRemaining(int n) {
vector<int> record = {};
int i = n;
for(; i != 1; i /= 2)
record.push_back(i);
int num = 1;
for(int i = record.size() - 1; i >=0 ; i--)
{
if((i... |
b53d94708f2d4585a3017917c333145e7cfa493d | 71f4a843a32e1eb8caf178ded1e77ca6d8be4cee | /Programm/C Language/12_FILE_HANDALING/FL07.CPP | 7bcef57e3a5bd18aa1674c566e602f9b314d85ec | [] | no_license | suvaw/C-and-C-plus | e71a2d676ca7eb641d437bd6784b3d7abe4668d1 | ff27cfd5360e947d4be5bae2ba71ab306f612428 | refs/heads/main | 2022-12-30T01:22:11.985606 | 2020-10-04T18:47:14 | 2020-10-04T18:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | FL07.CPP | //writing data into student file using fwrite()
//==============================================
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct x
{
char regno[15],name[30];
}r;
void main()
{
FILE *p;
p=fopen("student1.txt","r");
while(fread(&r,sizeof(r),1,p)==1)
printf("\nReg. No=%s\tName=%s",r.r... |
f74e5febe6ac011ff1e249d7bece5359c0cd8df1 | b5abcfa528f14a4a3097eac86a65e746d37e60dc | /867 Transpose Matrix/TransposeMatrix.cc | 07794d05c94ff78911aab98e5a47b099e2e5eb0b | [] | 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 | 329 | cc | TransposeMatrix.cc | class Solution {
public:
vector<vector<int>> transpose(vector<vector<int>>& A) {
vector<vector<int> > res(A[0].size(), vector<int>(A.size()));
for (int i=0;i<A.size();i++) {
for (int j=0;j<A[0].size();j++) {
res[j][i] = A[i][j];
}
}
return res;... |
a41edd2b807f0728e1f80cbc1f7e6b3ea1d256d5 | 461b4f0b646d632bb83c1eb7ccbf5d618aab7a86 | /LC_GC_484_Find_Permutation.cpp | 443f152f723b2170743fa4d32cf23afe4316d39d | [] | no_license | pigHasDream/Leetcode | 89e1dd8970f781aab8bdeffce005ee980709c034 | 5c483dec2666e8009e35944fb94ea4d0abeb1e2b | refs/heads/master | 2021-06-23T08:41:40.627950 | 2021-01-03T05:50:14 | 2021-01-03T05:50:14 | 178,759,088 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | LC_GC_484_Find_Permutation.cpp | class Solution {
public:
vector<int> findPermutation(string s) {
vector<int> res;
stack<int> stc;
// key is to realize stack can elegantly reverse
// the order.
// But need to carefully take care the edge cases
int idx = 1;
for(const auto& c : s) {
if(c == 'I') {
res.emplac... |
124a44aae518bf08377f8c284761b20075d010df | f7016001d8e38e6b765df3fd2460b95c51eae93e | /snakeGame/display.cpp | b3cb7f94c6159c13455abae8e86433c568e96ad0 | [] | no_license | khayliang/snake-cpp | b7c311806322211ff3fc9c1d8c0b5b405a0e0bf6 | c21b1f85529af067c68d5540867831ded9aebf76 | refs/heads/master | 2023-01-30T09:17:09.100160 | 2020-12-09T15:08:53 | 2020-12-09T15:08:53 | 319,991,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | display.cpp | #include "stdafx.h"
#include "display.h"
#include <iostream>
using namespace std;
display::display()
{
//modify grid to contain yval + 2 empty vectors
grid.resize(yval + 2);
//for every vector in grid
for (int i = 0; i != yval + 2; ++i)
{
//modify layer to store xval + 2 amount of units
grid[i].resize(xv... |
6a2eef5e8f30b0764764508217d62edbe0ca4729 | b4a552d3f438a2659c3b5a24382c4ffdcf819a73 | /Data.hpp | ddf980f11a0df285705f6dbff09f8d18e6031d4e | [] | no_license | haleyoleynik/ASAMS | 80941baca3d70ab71d640a6978375d8578d7c079 | a4d744331f40c1b023a36e12ab1cb32806846db6 | refs/heads/main | 2023-08-12T03:17:15.455001 | 2021-10-07T18:26:49 | 2021-10-07T18:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | hpp | Data.hpp | // Data.hpp
// Age Structured Assessment Modeling System (ASAMS)
#ifndef Data_h
#define Data_h
#include "Distributions.hpp"
#include <vector>
namespace asams{
template <class T>
class data_base{
public:
std::vector<T> data_m;
std::vector<int> sample_size_m;
std::vector<T> cv_m;
int i... |
df82e9acb8cdad29ba3ff28620754a2280e84f9f | 88ed1b64e256c4885369f78956104559db3d0bd6 | /file.cpp | f30b7702f49db21bbe8c1027d0857fa358918641 | [
"BSD-2-Clause"
] | permissive | macdice/dsfs | 5fd7d24a3281c710ebb41594876045617ed066fa | d6676d7996a2f3b5722b7d37f3aa58233a397aa5 | refs/heads/main | 2023-04-29T08:14:23.760491 | 2021-05-18T09:09:53 | 2021-05-18T09:09:53 | 366,894,288 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,801 | cpp | file.cpp | #include "file.hpp"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <string>
#include <unistd.h>
/*
* Like pwrite(), but with retry and exceptions.
*/
static void
write_all(int fd, const char *data, std::size_t size, off_t offset)
{
std::size_t written_so_far = 0;
do {
... |
25e1310d1f47a9af31966c552c61fa9955733a12 | 1b602711efbcc2a4e7a3b83fec0581478793bdc8 | /d05/ex04/OfficeBlock.hpp | 537b993b66203874953d864860e09fbad382427e | [] | no_license | CaseySingleton/42-cpp-piscine | 3135ec8b024202b6f5b51f5c1607bd255abf42ba | 1efbfbd11230843e30f64eeacca800674d13e3d5 | refs/heads/master | 2020-06-28T06:44:58.661399 | 2019-08-02T04:53:25 | 2019-08-02T04:53:25 | 200,166,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,662 | hpp | OfficeBlock.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* OfficeBlock.hpp :+: :+: :+: ... |
8a31e09b1b0376a382fbec08e0b722bde3d2a0f4 | 7708c30991913f3a83be4fe5c5c4cd1d52777807 | /exportobjects/exportxmlparser.h | 9a1b8c6c219fd610fc669569ddb19773a2773dd0 | [
"LicenseRef-scancode-generic-cla",
"Zlib",
"MIT"
] | permissive | walbourn/contentexporter | 8a408eaed80e313067ec434ddbd0d20c3d1ba562 | fdd626364cdfebc7f21a5ac379a6e4d8b69e8324 | refs/heads/main | 2023-04-01T11:37:47.681937 | 2023-03-31T19:06:52 | 2023-03-31T19:06:52 | 33,885,473 | 75 | 21 | MIT | 2023-02-01T20:05:58 | 2015-04-13T18:17:16 | C++ | UTF-8 | C++ | false | false | 5,180 | h | exportxmlparser.h | //-------------------------------------------------------------------------------------
// ExportXmlParser.h
//
// A simple non-validating XML parser.
//
// Advanced Technology Group (ATG)
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=226208
//--... |
ce8735b1bc448a401941eed471cb94c00de98a80 | b59f020483ac5b5ba52418638b45d1f9c0b9502d | /trunk.devtools/tests/kreatv-uncrustify/test_types_and_macros_before.cpp | 555e2821aaa4491cbd540e2017f8aec7e095b9e2 | [] | no_license | augustine829/Self_research | 1ffad3db1ed3fcc79bd785e32eaf720698dbe785 | 60a04ad3c7b4e88fa0ee8195a9cfa925e1347f52 | refs/heads/master | 2020-06-17T18:42:32.897660 | 2019-07-09T13:50:25 | 2019-07-09T13:50:25 | 196,011,895 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | test_types_and_macros_before.cpp | // DISABLED: unfortunate side effect of sp_addr and sp_after_type
// Testing & and * together with macros
class MySpecialType
{
};
void function(const MySpecialType & a)
{
BOOST_FOREACH(const MySpecialType & b, list) {
}
BOOST_FOREACH(const MySpecialType& c, list) {
}
}
|
61f2d8457fd9de49b8c82d8a2d564946c2f0dee2 | 35cf0af68bc3fef368e1e1dd0ba35f6f3c62a931 | /src/application/OpenDeck/OpenDeck.cpp | d8194cdf1606e9309316ee100ec5349bf76c8b0b | [
"Apache-2.0"
] | permissive | dtmfgold/OpenDeck | cd511172fb37eb56b5ce1eafaa5846ecc60f1ad4 | 173bdaf948738cbeb5db1fee96a05cdcab46010e | refs/heads/master | 2021-02-28T00:36:57.356472 | 2020-03-05T13:12:38 | 2020-03-05T13:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,987 | cpp | OpenDeck.cpp | /*
Copyright 2015-2020 Igor Petrovic
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
629a4f2434e95174fa0f67ab3536d9042134158b | cb8839678ca7c2d6103da3b20cbc4c7c8303284d | /Arduino_Files/Read_Send_PotData.ino | 1e03189264ed5b8224f0b5dbd3415730d5dc8471 | [] | no_license | NischalSehrawat/Self-Balancing-Segway-Robot | 813afea4f846869e069ce492c64d80d84441f40c | e23ebd900ac5c03276aa1a8204fa9f4b35992e5e | refs/heads/master | 2023-04-04T12:58:43.200349 | 2019-07-09T12:02:13 | 2023-03-25T08:15:57 | 134,179,648 | 27 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,080 | ino | Read_Send_PotData.ino |
int p_pin = A0; // Pin to be used for reading Kp from potentiometer
int d_pin = A1; // Pin to be used for reading Kd from potentiometer
///////////////////////////////////////////////////////////////////////////////////////////////////
void setup() {
pinMode(p_pin, INPUT); pinMode(d_pin, INPUT); // Declaring po... |
2d944a333b41d956fca45a7da14e81b3c7561c89 | 4a4c7f11fcedc05d22e4de84597f2393d7bb68a6 | /minCircle.cpp | 86ed77a1aeb112d2eacf92351ba6729368cce3e0 | [] | no_license | ronhrl/Anomaly-Detection-Server | 7ce22a0d5cd1bb94baf55ff523374f12e244dd83 | ef3cfca211a75d3b3f021490213b6f937f3afaa9 | refs/heads/main | 2023-04-14T18:34:27.712092 | 2021-04-18T22:16:12 | 2021-04-18T22:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,067 | cpp | minCircle.cpp | /*
Name: Ron Harel
ID: 308433762
ex2
*/
#include "minCircle.h"
float dist(Point a, Point b){
return sqrt(pow(a.x-b.x, 2) + pow(a.y-b.y,2));
}
//making a circle out of 2 points
Circle trivalCircle2(Point p1,Point p2){
float radius = dist (p1, p2) / 2;
float cx = (p1.x + p2.x) / 2;
float cy = ... |
f24e14cc8491e6a05658b0f3e6a9b6817945c028 | b7128624d25b8a34431751fe504e3c8ad79ee0ce | /src/protocols/altbit/impl/altbitpdu.C.~1.3.~ | 2ae4017670cf1d3059bc388cb722ceaf36ba24c9 | [
"LicenseRef-scancode-x11-xconsortium-veillard",
"BSD-2-Clause"
] | permissive | DOORS-Framework/DOORS | e7a0e9d84064334822f20722ad48d9330ee9368f | 999343fc3a40d9c5ec6e8ef7b46cce95bc751fcd | refs/heads/master | 2022-03-31T16:07:06.960467 | 2019-12-23T15:06:31 | 2019-12-23T15:06:31 | 209,012,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,993 | altbitpdu.C.~1.3.~ | // Editor-info: -*- C++ -*-
// Copyright 2000
// Telecoms Lab, Tampere University of Technology. 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 mu... | |
2efadd2f37f65571cd6da097ace9829f2c81b48b | 366ad2700f4b5627fdd7ade2696a4901b3ec74bf | /A4/src/Cell.cpp | 0c75b08ffff78aa75500e349f4d5d0b957f68d79 | [] | no_license | HaoyuanFu/qualifiedAssignments | f9f4f3dbaf72228ae3e30cdb7a5361e415a75bdc | 834715694956073e082c690be6ba3ef2e3f56b41 | refs/heads/master | 2020-04-24T04:53:14.390586 | 2019-02-24T00:49:22 | 2019-02-24T00:49:22 | 171,718,332 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | Cell.cpp | /**
* @file Cell.cpp
* @author Harry Fu
* @brief Provides the Cell class definition
* @date 4/6/2018
*/
#include "Cell.h"
#include "Exceptions.h"
Cell::Cell() : e(true), c({Card::SC, Card::RA}) {
//
}
bool Cell::empty() const {
return e;
}
Card Cell::getCard() const {
if (e) {
throw emtpy_s... |
43f3686d89339631a5b3f56064257856457de36c | f4aa6bfdf2bf1caacf9e9a8cefd09d00382e9e8c | /My_Study/CBY_Projects/CBY_2DGameProject/EnemyPrcess.cpp | 19e60d0a76ca5497e3fc2224d28b6d27e5d65c8a | [] | no_license | Byeng-Yong-Choi/C_Yong | e39a015b64facd473c5193d21a157b552813e9b7 | 9c2a1856b7c59156c2364ea2bf0a21e3d02eab1d | refs/heads/master | 2020-09-28T14:26:17.358211 | 2019-12-18T04:51:44 | 2019-12-18T04:51:44 | 226,795,230 | 1 | 0 | null | 2019-12-09T05:57:44 | 2019-12-09T05:53:34 | null | UHC | C++ | false | false | 8,144 | cpp | EnemyPrcess.cpp | #include "EnemyPrcess.h"
#include "C_EnemyAttack.h"
#include "C_EnemyPatrol.h"
#include "C_EnemyDeath.h"
#include "C_EnemyStandby.h"
void Enemy::Process(std::shared_ptr<Gokussgss>& obj)
{
m_Action->Process(obj);
}
void Enemy::SetAction(DWORD Event)
{
EnemyrState = EnemyFSM::Get().Output(EnemyrState, Event);
m_Acti... |
aadf8747c95b694146cc148a0f18c265b0220c00 | 6e87ab91da028b132731d09d26d1377277940c11 | /Fall-2013/cs54b/lab11/lab11.cpp | 0a08e2d6806429541985ac9fcffab4d2fb67655e | [] | no_license | chrispeabody/Class-Assignments | a6ccacbc9686344837476fc694c0587c4694b9d6 | 3a226ff4a38a850448c4eec1c4d3e789b0e8ec7b | refs/heads/master | 2021-01-24T11:45:26.810758 | 2016-09-28T19:56:57 | 2016-09-28T19:56:57 | 69,431,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | cpp | lab11.cpp | //Name: CHRIS PEABODY
//Class: CS54 section B
//Date: 11/5/2013
//file: lab11.cpp
//purpose: track typing speeds for a company
#include <iostream>
#include "Speed_recorder.h"
using namespace std;
int main()
{
int id;
int numToEnter;
int currentEntry;
char ans;
do
{
cout<<"\nEnter y... |
c54adc7f2a980974b6471db1fa70426eb46625e7 | c5c7413cefbe8087c75eec7ccc9bed99115e692b | /dfs.cpp | 7f75253dac9ff432dc79cb270a3e87ed995bbcb3 | [] | no_license | kimbochen/programming_practice | 738883921ecbd9a87596fd87496cd4a8a0618d93 | 9c407e6b3854f0e0aab53a87f59678bc95a7d2b5 | refs/heads/master | 2023-09-04T23:05:35.350859 | 2021-10-17T14:04:37 | 2021-10-17T14:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | dfs.cpp | #include "graph.cpp"
void DFSVisit(int v, const Graph& graph, vector<bool>& discovered, vector<Edge>& DFST)
{
discovered[v] = true;
for (const int& u : graph.adjList[v])
{
if (!discovered[u])
{
DFST.emplace_back(v, u);
DFSVisit(u, graph, discovered, DFST);
}... |
8ab07abea70840c66998318db890abf09de831b5 | cded9b21f5bba33ce62c498d9c0c6e9827d25b27 | /agi3d/UserDefault.h | 91d02ecb759e9cd93ef55ca98933bfc26e4fa52b | [] | no_license | siwazaki/agi3d_dev | 1e032b8f908a37fe5a938a87f880bee0ba06efc0 | a6eb504c167da3ca46d7ca685de9dfbaf154327e | refs/heads/master | 2021-01-22T09:00:19.150280 | 2014-04-17T06:12:22 | 2014-04-17T06:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,648 | h | UserDefault.h | #ifndef __agi3d__Setting__
#define __agi3d__Setting__
#include <iostream>
#include "Enums.h"
#include "Observable.h"
namespace agi3d {
class MenuBarController;
/**
* MenuBarで変更可能なデータを保持するモデル。
* MenuBarController以外はプロパティ変更不可。
*/
class UserDefault : public Observable
{
friend class MenuBarC... |
4476c21813dca12ac0a380d0473fb1ddf43129ab | 1377290d821e187998399ca5303ed1a2ffe7ea1f | /socket/tcp_server.cpp | 2d7a9569f9d3f28f6762a4195a40f3c7328f3056 | [] | no_license | coldbloodx/lec | 84b54f02f6b7350c0d23385c462ae0cb351e6957 | 66d06262a1d07c1b85b8aeecb8ba9564c774c0a1 | refs/heads/master | 2021-07-14T23:24:57.632074 | 2021-04-15T06:24:01 | 2021-04-15T06:24:01 | 101,900,255 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,724 | cpp | tcp_server.cpp | //system libs
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>
//c++ libs
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <string.h>
using namespace std;
const int PORT = 3490;
const int BA... |
673927c8432293d559400ef9c44b96ccc7b19a1d | 2aa5cc5456b48811b7e4dee09cd7d1b019e3f7cc | /engine/vfs/zippath.cpp | b42612884aabe3314925fd6fceb67233b2cde396 | [] | no_license | tstivers/eXistenZ | eb2da9d6d58926b99495319080e13f780862fca0 | 2f5df51fb71d44c3e2689929c9249d10223f8d56 | refs/heads/master | 2021-09-02T22:50:36.733142 | 2010-11-16T06:47:24 | 2018-01-04T00:51:21 | 116,196,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,750 | cpp | zippath.cpp | #include "precompiled.h"
#include "zippath.h"
#include "zipfile.h"
namespace vfs
{
#pragma pack(1)
struct FileHeader
{
U32 signature;
U16 version_needed;
U16 flag;
U16 method;
U16 mod_time;
U16 mod_date;
U32 crc32;
S32 compressed_size;
S32 uncompressed_size;
U16 filename_len;
U16 extra_field_le... |
c70ebf52025882ce16de989ba474230f8fdb9cea | a99c71bde9b080549d3a1c770ba6401a65b13516 | /work 2017/ream_hind/ream_hind.ino | d08495dfa9a4cbf115ab5ceb9576ca1e9d8eee70 | [] | no_license | thulfekar/arduino-simple-projects | 6a74028b7a98a3d243af919da79ea13ce989d1e3 | f95e404b7d02bfc0c0002ff12e68cb14b25fb837 | refs/heads/master | 2021-09-03T11:12:53.591408 | 2018-01-08T15:55:41 | 2018-01-08T15:55:41 | 116,693,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,864 | ino | ream_hind.ino | #include <SoftwareSerial.h>
SoftwareSerial bt(2, 3);
String aa , bb , cc , dd ;
char g ;
int a,b,c,d;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
bt.begin(9600);
pinMode(A0, INPUT);
pinMode(A1, INPUT);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
}
void loop() {
// put your ... |
2f1e543c2860dca95bf7d051521642f9edbae123 | 7e090c896c02cd59b1c8fac8a11cd83917ad7426 | /P165PROG.cpp | cbd639604b71bed54fbb496e9ecef3af4e22fcc6 | [] | no_license | ntban/PTITACM | 5d02462d3c9d3bea12e199ca52d4c5c3e51a670b | c45d9302da27febdebade9380bb8a689ca8e6765 | refs/heads/master | 2021-04-02T13:30:10.089034 | 2020-03-18T16:13:02 | 2020-03-18T16:13:02 | 248,280,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | P165PROG.cpp | #include<iostream>
#include<string>
using namespace std;
int compare(string x, string y){
if(x.compare(y) == 0){
return 0;
}
int n = x.size(), m = y.size();
if(n > m){
return 1;
}else if(n < m){
return -1;
}else{
for(int i = 0; i < n; i++){
if(x[i] > y[i]){
// cout<<"Vi tri: "<<i<<"\n";
return ... |
eecc30ccc2ca08ce406c5e48b7f9e643b54df38c | 3f7d7afdf229b27eb6a19f95d9be8078692d4ef5 | /BinarySearchTree.cpp | 0ce7f61118299ac578aae1979b3d3f5a8645eea0 | [] | no_license | ariannagolf/PIC-Homework | 3c6efe452b05bae6cbe6ee974e794081e63cc47e | e22466ca3962d26be9d962e278a29d8ccc79de40 | refs/heads/master | 2020-07-27T03:26:19.754316 | 2019-09-16T16:54:38 | 2019-09-16T16:54:38 | 208,851,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,156 | cpp | BinarySearchTree.cpp | //
// BinarySearchTree.cpp
// Homework 7
//
// Created by Milu on 6/8/18.
// Copyright (c) 2018 Milu. All rights reserved.
//
#include "BinarySearchTree.h"
#include "TreeNode.h"
#include "TreeIterator.h"
void BinarySearchTree::cleanup(TreeNode* p) {
if(p->left) cleanup(p->left); // if p has a left child
... |
974c6a5237a7b793a7943c13a7c53ac78074263d | 136ef215ae05f74d31dab2336979a94dfe960992 | /684-OrganoMidi/Organo_Midi_Semplice/Organo_Midi_Semplice.ino | f8a494b274bac59fbe0e1b4ed273acf30bd3fb5e | [] | no_license | zmaker/arduino_cookbook | 5ff4791ebce916e35060f2e9a7c26a014adeb26c | a972470c10f2c283d66aad8f389acf117a25f01e | refs/heads/master | 2023-08-30T21:08:28.290973 | 2023-08-28T11:14:41 | 2023-08-28T11:14:41 | 135,202,699 | 196 | 134 | null | 2020-05-27T17:53:02 | 2018-05-28T19:46:44 | C++ | UTF-8 | C++ | false | false | 1,258 | ino | Organo_Midi_Semplice.ino | #define OTTAVE 5
#define KEYS 6
int ottave[OTTAVE] = {22,24,26,28,30};
int keys[KEYS] = {23,25,27,29,31,33};
bool notes[OTTAVE*KEYS];
bool pvnotes[OTTAVE*KEYS];
void setup() {
Serial.begin(31250);
delay(2000);
for (int i = 0; i < OTTAVE*KEYS; i++) {
notes[i] = 0;
pvnotes[i] = 0;
}
for (int i = ... |
f3e2c8c2da3576189052a0045aac632639a7c603 | 61c5a9b305d45a0afe7e63faf41c427d4eb7244b | /src/simulators/tableau_simulator.h | a1aa0cf9849e595f8986c672e793f5ba78b1f5ff | [
"Apache-2.0"
] | permissive | ephxyscj1996/Stim | a2a4a141e43d11d2007b9fb7a3852d5520bbdbd7 | 1f35e36c33a6dba244318e904c35b63a3d82977a | refs/heads/main | 2023-06-03T02:53:54.919751 | 2021-06-10T08:53:33 | 2021-06-10T08:53:33 | 376,723,710 | 2 | 0 | Apache-2.0 | 2021-06-14T06:25:48 | 2021-06-14T06:25:47 | null | UTF-8 | C++ | false | false | 11,244 | h | tableau_simulator.h | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
5012cf2ee28b4e35175c159e2b87ad803aef90a1 | 1a3fd15e9be7cf0ca6f0895e240f318043414da7 | /groups/1506-3/shkenev_pa/1-test-version/Checker/Result.h | af5c756e9c3551b7a938a1265b585d3bd734ea79 | [] | no_license | alvls/parprog-2018-1 | 09e2ea3d502165cdc6b9e1d50d4e17ab51b92628 | 293c76b89373669288b7cb454f32e3a7838f4758 | refs/heads/master | 2021-04-28T07:19:33.028962 | 2018-07-05T06:29:28 | 2018-07-05T06:29:28 | 122,221,726 | 0 | 52 | null | 2018-07-05T06:29:29 | 2018-02-20T16:09:14 | C++ | WINDOWS-1251 | C++ | false | false | 2,936 | h | Result.h | #include <cstdio>
using namespace std;
//// Используется для взаимодействия с тестирующей системой
/// Checker может устанавливать вот эти три вердикта:
//AC = Accepted = Решение выдаёт корректный результат на данном тесте
//WA = Wrong Answer = Решение выдаёт некорректный результат на данном тесте
//PE = Presentatio... |
e9f3e969dd83e49af771d36bea783a2bde233296 | 06f506ddf0267d15aaad90b532f3bc73d1d1ea1c | /RtmpLiveEncoder/RtmpLiveEncoder.h | 1d3e0c4fb152aef00da08a413f767669f40a67c1 | [] | no_license | xingskycn/RtmpLive_RABDetection | 12ee51ab1c00eef0f64a2e025d44d9fd6448893f | db9c7cff2c78acda8941ed350ce4279d96eec171 | refs/heads/master | 2020-12-06T17:21:47.343082 | 2013-09-04T07:24:37 | 2013-09-04T07:24:37 | 14,384,334 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,729 | h | RtmpLiveEncoder.h | #ifndef _RTMP_LIVE_ENCODER_H_
#define _RTMP_LIVE_ENCODER_H_
#include <deque>
#include <string>
#include "base/DataBuffer.h"
#include "base/Lock.h"
#include "base/SimpleThread.h"
#include "base/WaitEvent.h"
#include "dshow/DSCapture.h"
#include "FlvWritter.h"
struct RtmpDataBuffer
{
int type;
base::DataBuffe... |
278f3398fbd4f72b26e402d5be6b7a80263e181e | 02a0312af0a33329bf8d54560bfb4f81d2ce9255 | /P2/SDLProject/main.cpp | 3af498d6a4abc51ca68b4dbdf46b47ef4afef421 | [] | no_license | fk798/CS-UY-3113 | d663c258f5ac1b5b8a64ff26b2acdb6fdce93a6a | cb8ecbb2fb0ea9e1c71c47fb64bdad3d78ec003f | refs/heads/main | 2023-04-21T03:29:43.440485 | 2021-05-13T02:46:30 | 2021-05-13T02:46:30 | 330,031,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,491 | cpp | main.cpp | #define GL_SILENCE_DEPRECATION
#ifdef _WINDOWS
#include <GL/glew.h>
#endif
#define GL_GLEXT_PROTOTYPES 1
#include <SDL.h>
#include <SDL_opengl.h>
#include "glm/mat4x4.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "ShaderProgram.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
SDL_Window* displayWi... |
965965734fac6ee5f703b79a503d290bb33d9efa | d074548c8a29009cf2a9d1864f5919e99dc3b22d | /raytrace2015/main.cpp | c51ac4b226d2c2f4e45b12f5d6feb2325622835e | [] | no_license | gensto/Ray-Tracing | ca85418b2e025c78f220bb48833a2eca74b03293 | cec376333a5fc4f2c624a992b47000bcc6010cd2 | refs/heads/master | 2020-06-23T04:48:57.148175 | 2019-07-23T22:46:25 | 2019-07-23T22:46:25 | 198,518,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,018 | cpp | main.cpp | //
// template-rt.cpp
//
#define _CRT_SECURE_NO_WARNINGS
#include "matm.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
// -------------------------------------------------------------------
// Ray struct
struct Ray
{
vec... |
c02895927e57a3d25b60e21549be90883618ff67 | 5cf5b31b5f024881a5d24b423b0fed8e26d4deda | /ProgrammingLanguages/compiler1/cppinvestigation1-3.cpp | 6726144ea686fedaf6ad9bdfbf3ad52a2104cbf0 | [] | no_license | matttilton/coursework | b186a6deb3e19afc177f3228dc9df3114706c59a | 73fb1000d92ab29de06f8212335819f5a4dc07e8 | refs/heads/master | 2021-01-12T02:18:37.819213 | 2018-09-29T03:59:29 | 2018-09-29T03:59:29 | 78,498,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,445 | cpp | cppinvestigation1-3.cpp | //Matthew Tilton
#include <iostream>
using namespace std;
void firstInvestigationFunction2(int x[]);
void firstInvestigation() {
int testArray[] = {1,2,3,4,5,6,7,8,9,0};
cout << "Pointer to array in function 1: ";
cout << testArray << endl;
firstInvestigationFunction2(testArray);
}
void firstInvest... |
397406a46b7dd2e1a2c94e5df472e792f2bf6f8f | c2a6def0c919ef1ec68bad74cb994bbf09242dd6 | /lib/lib_utils/include/lib_utils/FileIO.h | 8e57db7df6ef617560ac480d4ba15bf9960ac1fd | [] | no_license | LukevLuijn/markdown_incl | dc007a914e8733e2a8de41182da0ab06b0feecf9 | 99779799cbb0b70f9d353a4138d9db8657639a70 | refs/heads/main | 2023-08-12T23:58:21.050222 | 2021-10-06T12:00:46 | 2021-10-06T12:00:46 | 412,143,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,634 | h | FileIO.h | //
// Created by luke on 10-08-21.
//
#ifndef FILEIO_FILEIO_H
#define FILEIO_FILEIO_H
#include <string>
#include <vector>
namespace Utils
{
class FileIO
{
private:
typedef const std::string& Path;
typedef const std::string& Name;
typedef std::vector<std::string>& Buffer;
t... |
33960448c7ce88e92677f6734e766d73b7971e63 | f8c5f823cbda556766f161a8b2e09dc146a49315 | /th03/op_01.cpp | e17442c0f1996f4da84f3aa2a32363b1d4bf8c80 | [] | no_license | nmlgc/ReC98 | 134b72a1840d3f6756a9cd2aa36347c66be7a090 | 5876755977731e04e90a1daa9e97ba936f32c44c | refs/heads/master | 2023-07-07T05:11:12.026604 | 2023-06-24T18:38:45 | 2023-07-01T03:22:23 | 21,265,206 | 646 | 39 | null | 2019-11-18T20:30:18 | 2014-06-27T05:37:45 | Assembly | UTF-8 | C++ | false | false | 1,621 | cpp | op_01.cpp | /* ReC98
* -----
* Code segment #1 of TH03's OP.EXE
*/
extern "C" {
#include <stddef.h>
#include "platform.h"
#include "master.hpp"
#include "th03/common.h"
#include "th03/playchar.hpp"
#include "th03/score.h"
#include "th03/resident.hpp"
#include "th03/formats/cfg.hpp"
#include "th03/snd/snd.h"
bool snd_sel_disab... |
bb1c4187b08cfaf1ed37ca169ad804c41bcf36a5 | 55a2d60b759c0aed371ea278f2747b4bf4456cb5 | /src/toolchain/sshrs.inc | fdcaa80784afce1350d2f45d67e869b6633fb437 | [] | no_license | jacobly0/ez80sf | 1ad2c8ec548e0ebdf286263106841fd67ae3e513 | e0e68ac6cdbe4b947986678b3e3cf9899eee23b7 | refs/heads/master | 2023-02-23T22:10:06.612901 | 2023-02-08T15:21:21 | 2023-02-08T15:21:21 | 109,566,597 | 4 | 3 | null | 2023-02-08T03:12:00 | 2017-11-05T09:32:23 | Assembly | UTF-8 | C++ | false | false | 470 | inc | sshrs.inc | assume adl=1
section .text
public __sshrs
__sshrs: ; PREREQ: in.C < 16 CHECK: (int16_t)out.HLs == (int16_t)in.HLs >> in.C && out.A == in.A && out.BC == in.BC && out.DE == in.DE && out.IX == in.IX && out.IY == in.IY
; Suboptimal for large shift amounts
; CC: if C!=0: C*(7*r(PC)+1)+7*r(PC)+(ADL?6*r(SPL)+3*w(SPL):4*r(... |
df5304a108887ebb9c25395e8a15da61eca2c163 | 68217d7f9b09d775d2f6213524404d66686a66eb | /week12/assignment_2/json_object.cpp | 3fe6f7cc3b6feb8d984d5271613f009171636dbf | [] | no_license | idjihw/OOP | 3756b76f40c4d955c35d3a6dbae2e2d95cfc778b | a046a3881eb43acaf2b690754a83d701aba0df35 | refs/heads/master | 2020-07-26T22:49:57.865671 | 2019-12-16T14:32:11 | 2019-12-16T14:32:11 | 208,788,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | json_object.cpp | #include "json_object.h"
#include "json_dict.h"
#include "json_list.h"
#include "data/Integer.h"
#include "data/String.h"
int json_object::_index = 0;
json_object* json_object::parse(const std::string& str){
return parse(str.c_str(), str.size());
}
json_object* json_object::parse(const char* str, int length){
jso... |
81193d0833b7600c9d46d1bf9fc7b86ed04d5826 | 19c3cfb477530e91eff5e31a59c950dab6908697 | /programs/include/Rclib/Core/Core.h | 09907b19d054372a2be99b2862295629f4eb3253 | [] | no_license | rugnight/Rclib | c068429e3e48d29343c0aea2bd4a478980f0d3ab | 7c715b183911a42677298fcfa65b909ff14409bd | refs/heads/master | 2021-01-22T10:03:06.264629 | 2014-04-09T17:04:15 | 2014-04-09T17:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 955 | h | Core.h | //
// core.h
//
#ifndef __RCLIB_CORE__
#define __RCLIB_CORE__
#include <stdio.h>
#include <cstdint>
// 基本型
typedef std::int8_t int8;
typedef std::int16_t int16;
typedef std::int32_t int32;
typedef std::int64_t int64;
typedef std::uint8_t uint8;
typedef std::uint16_t uint16;
typedef std::uint32_t uint32... |
af42dc82d5891769add19876286c00bced4dde1f | 8f11b828a75180161963f082a772e410ad1d95c6 | /packages/network/test/src/EventListener.cpp | cdce5be79ef507011e7522209cb2394c33d2ac25 | [] | no_license | venkatarajasekhar/tortuga | c0d61703d90a6f4e84d57f6750c01786ad21d214 | f6336fb4d58b11ddfda62ce114097703340e9abd | refs/heads/master | 2020-12-25T23:57:25.036347 | 2017-02-17T05:01:47 | 2017-02-17T05:01:47 | 43,284,285 | 0 | 0 | null | 2017-02-17T05:01:48 | 2015-09-28T06:39:21 | C++ | UTF-8 | C++ | false | false | 1,410 | cpp | EventListener.cpp | /*
* Copyright (C) 2010 Robotics at Maryland
* Copyright (C) 2010 Jonathan Sternberg <jsternbe@umd.edu>
* All rights reserved.
*
* Author: Jonathan Sternberg <jsternbe@umd.edu>
* File: packages/logging/test/src/EventListener.cpp
*/
// STD Includes
#include <stdint.h>
#include <time.h>
#include <iostream>
// L... |
1ed87e51238478a0b504acd4d939ee4964517b71 | 20a14e99a71bedc22742ddb64291d224d0c9e2fc | /Term2/Lab6/main.cpp | cc7ca7bde4b6a5c4d1b1bf451d24493a91082868 | [] | no_license | keyclicker/labs | f0cd8ed2261204ff7c42769a9fc0b0d7fa33d842 | 45692d9e2b17253aec061d386ad524f829cbd633 | refs/heads/master | 2023-05-11T16:18:36.693061 | 2023-05-05T08:51:12 | 2023-05-05T08:51:12 | 207,407,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,462 | cpp | main.cpp | #include "src/List.hpp"
#include "src/Vector.hpp"
#include "src/Tree.hpp"
#include "src/AVL.hpp"
#include <random>
#include <iostream>
#include "string"
using namespace std;
template<typename T>
auto rand(T a, T b) {
random_device rd;
default_random_engine re(rd());
uniform_int_distribution<T> drand(a, b);
re... |
5d28fd69370b3f5bc37c391878529fa65beac430 | 41ef7435b063cc738df40b382a7a91be7697902f | /inst/include/Rcpp/vector/00_forward.h | eb5e069aa2815b10465ba9700357f2f25c09db92 | [] | no_license | Libardo1/Rcpp11 | c463cdcd7a18d6dbf4c0b0a472413eac888f011e | 86c689206b132cf7bf846a6ea678e5987f54c3ef | refs/heads/master | 2020-07-10T06:40:52.131968 | 2014-04-29T21:01:19 | 2014-04-29T21:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | h | 00_forward.h | #ifndef Rcpp__vector__forward_h
#define Rcpp__vector__forward_h
namespace Rcpp{
class Na_Proxy ;
namespace internal{
template <int RTYPE> class string_proxy ;
template <int RTYPE> class const_string_proxy ;
template <int RTYPE> class generic_proxy ;
template <int RTYPE> cla... |
7860d4fd52ec864f9f0512c84a21a5a2fe0c824e | 0159c3023736ffbb872438a0e7977920162b83ae | /src/symmtric_tree.cpp | 59a47973eb1ad8bb2da81988772a530921c1a554 | [] | no_license | viennadd/leetcode | e4299d21f613fe366356cb8fb318e2ba0e56b211 | 7a67cee14b46e3d590eee9208c94c48797fb69fd | refs/heads/master | 2021-01-09T06:44:08.578308 | 2016-09-21T07:25:36 | 2016-09-21T07:25:36 | 25,851,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,330 | cpp | symmtric_tree.cpp | #include <stack>
class Solution {
std::stack<TreeNode *> left_stack;
std::stack<TreeNode *> right_stack;
public:
bool isSymmetric(TreeNode *root) {
if (!root)
return true;
TreeNode *left_root = root->left;
TreeNode *right_root = root->right;
while (left_root &... |
a0d5aee840a11bb11e5cfc05de0a40d75e2194b9 | bde277f529956108d7091bda5fb333986476b6b3 | /include/pstore/mcrepo/bss_section.hpp | 422f6b34b5bfaba03d1ecedb493fa2b17ca122c5 | [
"LLVM-exception",
"Apache-2.0"
] | permissive | SNSystems/pstore | 0f0ebd732937a1ea5a7d95a557af7288e285b907 | 05edd7d81e61be96083c582dc5d214c247806940 | refs/heads/master | 2022-05-19T20:59:45.355159 | 2022-03-29T08:39:28 | 2022-03-29T08:39:28 | 104,728,661 | 11 | 6 | NOASSERTION | 2022-03-07T15:52:02 | 2017-09-25T09:17:35 | C++ | UTF-8 | C++ | false | false | 8,657 | hpp | bss_section.hpp | //===- include/pstore/mcrepo/bss_section.hpp --------------*- mode: C++ -*-===//
//* _ _ _ *
//* | |__ ___ ___ ___ ___ ___| |_(_) ___ _ __ *
//* | '_ \/ __/ __| / __|/ _ \/ __| __| |/ _ \| '_ \ *
//* | |_) \__ \__ \ \__ \ __/ (__| |_| | (_) | | | | *
//* |_.__/|___/... |
cdcf37fddf412f9e3529a9767a027a256ce3705c | 195475faface7b25ec595da3581a640d4c60a218 | /ScreenBrightness/ScreenBrightness.cpp | ea01f3fd5bba82cad1e84ec922a299ec238b4c0f | [] | no_license | NtLoadDriverEx/ScreenBrightness | 5acf3616dae322c4963f0cdbbacb96f776912a4a | 07ebbddc3791e5b6429dd1b675019be764d5570a | refs/heads/main | 2023-07-04T17:27:30.370698 | 2021-08-16T03:40:28 | 2021-08-16T03:40:28 | 396,602,793 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,992 | cpp | ScreenBrightness.cpp | #include <windows.h>
#include <iostream>
std::wstring get_computer_unique_classname( )
{
TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1];
DWORD dwNameLength = MAX_COMPUTERNAME_LENGTH + 1;
GetComputerNameW( ComputerName, &dwNameLength );
return std::wstring( ComputerName, dwNameLength );
}
LRESULT CAL... |
7a8e515483866cb1000890f4509baa4d1c4266c9 | 85221a64ad699e9f4d4d3bc508fa776c6b2e1d16 | /DummyClients/DummyClients/GameLiftManager.h | 8afbfe5deea34e01a6c0d7977907761a41c0147d | [
"MIT"
] | permissive | joonhochoi/GameLift | bf6dbabcba868540bd9cf834623b189c65628b39 | 81bbad1e922d977bd885cdaa37f2e05d4fe2b966 | refs/heads/master | 2020-12-24T12:06:37.600884 | 2016-10-27T06:47:53 | 2016-10-27T06:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | h | GameLiftManager.h | #pragma once
#include <aws/gamelift/GameLiftClient.h>
class GameSession;
class GameLiftManager
{
public:
GameLiftManager(const std::string& alias);
void SetUpAwsClient(Aws::Region region);
void PrepareGameSessions(int gsCount);
void LaunchGameSessions();
void TerminateGameSessions();
std::shared_ptr<Aws::Game... |
fec62364dbadc467c4f107b8b3c5e020c2768329 | 50ce5def4110e24250daf1a0c911efa216b4e620 | /C++11/Learn_Modern_C++_BoQian/test.cpp | b9db070ea907644196c375d22cc22151aee8869e | [] | no_license | MicahXIE/DarkPaladin | c62ec92e33576ce247658885cf03149c137dfbc0 | dabc925fd69333f815a5642b36f7c3a3aa68cb94 | refs/heads/master | 2020-03-25T06:26:47.232739 | 2019-08-25T15:39:37 | 2019-08-25T15:39:37 | 143,501,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 113 | cpp | test.cpp | #include<iostream>
using namespace std;
int main() {
cout << [](int x, int y) {return x+y;}(3,4) << endl;
}
|
57693e8d95a1f2ef77a5fa8677afc4d64fdf25d4 | 5b2378fbac6068414cc0ca62d9601167b95e2a98 | /clang-tidy/btc/MultipleParametersOfSameTypeCheck.cpp | 643831b60a55df5e64477d04f43bd5dba82255ff | [
"NCSA"
] | permissive | GerrietReents/clang-tools-extra | 7281a1b2b34f085e9a97c36eb2a942d6db5d9ff8 | 9240ada4922c69f14aa5570a7cdc4eeab24cb6c1 | refs/heads/master | 2020-04-17T08:39:32.598346 | 2018-11-22T17:16:25 | 2018-11-22T17:16:25 | 166,420,528 | 0 | 0 | NOASSERTION | 2019-01-18T14:51:34 | 2019-01-18T14:51:31 | null | UTF-8 | C++ | false | false | 1,958 | cpp | MultipleParametersOfSameTypeCheck.cpp | //===--- MultipleParametersOfSameTypeCheck.cpp - clang-tidy----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
f079d98fc61cf935517004cfec1c7cf329377a3b | b1fcb9fb92c87244d02bfdfef3122a609690ea57 | /C++/bgprocess_far/win_service/MWContext.h | 067a19eddd22ab11e8c0be441f4a844dcc5ee39f | [] | no_license | Krut1la/TempProjects | d8bd9295c0734b44b169542f468690f8f4fa5e0a | e69de7b162a420ea2c22d4a8332fb6516c95db6f | refs/heads/main | 2023-02-12T14:36:40.791198 | 2021-01-12T21:04:22 | 2021-01-12T21:04:22 | 328,257,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | h | MWContext.h | // MWContext.h: interface for the CMWContext class.
//
//////////////////////////////////////////////////////////////////////
#ifndef MWCONTEXT_H
#define MWCONTEXT_H
#include "ServiceContext.h"
class CMWContext : public CServiceContext
{
public:
CMWContext();
virtual ~CMWContext();
void OnServiceStart();
void ... |
8461c44c0c49a875042a172afa5f18b3e2c6f637 | 51083fa8a2ab4c2dbfb1d61d5d5ded0e8fb0fcaf | /MMSEngine/src/MMSEngineDBFacade_UserWorkspace.cpp | 82df7515388639fd24a5297720603e32edfb095a | [] | no_license | smmzhang/CatraMMS | e777d4d1e72b7d69908fc9b096d4b40672a3b66c | 2f2f0761cdbe54bdd8ea48043a39457082a56302 | refs/heads/master | 2023-05-06T11:38:00.222700 | 2021-06-02T06:55:02 | 2021-06-02T06:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198,172 | cpp | MMSEngineDBFacade_UserWorkspace.cpp |
#include <random>
#include "catralibraries/Encrypt.h"
#include "catralibraries/StringUtils.h"
#include "MMSEngineDBFacade.h"
shared_ptr<Workspace> MMSEngineDBFacade::getWorkspace(int64_t workspaceKey)
{
shared_ptr<MySQLConnection> conn = nullptr;
string lastSQLCommand;
try
{
conn = _connectionPoo... |
0e398cb07f862d6595c1709d193001db95470901 | 37c6f192ce691a4a0cdba556a513499bf56f0f2e | /codigo/pessoal/algasmarinhas.cpp | 55bfe4dd32fda78c09b0f456961dbad1d5838b5c | [] | no_license | leticiaSaraiva/Computer-graphics-shader_shaper_projections | 867fac10e856c37ce243a1f25b1f62a564fbd6cf | a727033bfea6edb6270552ea7821576624a5051d | refs/heads/master | 2020-09-26T07:03:44.230717 | 2019-12-05T22:39:16 | 2019-12-05T22:39:16 | 226,198,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,343 | cpp | algasmarinhas.cpp | #include "algasmarinhas.h"
AlgasMarinhas::AlgasMarinhas(){
tipoObjeto = 'a';
}
AlgasMarinhas::AlgasMarinhas(Vetor3D t, Vetor3D a, Vetor3D s){
this->t = t;
this->a = a;
this->s = s;
tipoObjeto = 'a';
}
void AlgasMarinhas::desenha(){
glPushMatrix();
Objeto::desenha();
GUI::setCo... |
07fb75ce97ced38ab1093ab7ee3767a704927be4 | 191f234794a1ada5ca9e21e0ba5109bea99aed64 | /AudioInterface/AudioDeviceManager.h | 0855eb4fa05445856b14ecacc5b4191bc3baf3a9 | [
"MIT"
] | permissive | bergbria/AudioCycler | 0e74761a82949bfaaea80e937e74ac3f999ca619 | 08567a6ac1c2bf6353181a93e198f2dba7c5ebe0 | refs/heads/master | 2016-09-06T12:08:16.126802 | 2015-01-11T20:26:15 | 2015-01-11T20:26:15 | 21,399,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | AudioDeviceManager.h | #pragma once
#include "AudioDeviceInfo.h"
#include <mmdeviceapi.h>
namespace AudioInterface {
public ref class AudioDeviceManager
{
public:
static System::Collections::Generic::List<AudioDeviceInfo^>^ GetAvailableAudioDevices();
static System::Boolean SetDefaultAudioPlaybackDevice(AudioD... |
74c82ffea2e4ad3b7934573c8966f7f3c92f1391 | f1f8878910bcfd3a90d8613916ffa9b38dab3120 | /piscine c++/m07/ex02/Array.hpp | c5d8fd72330ba6a7136c91d46dddd39000076de1 | [] | no_license | buonve/42CURSUS | 93ac16c823c84f7d5c88cf46c2bcb35b8e9d6f48 | ec1eba8d63d8e69ac4fcfcaad77ae9fadc680fdd | refs/heads/master | 2023-08-29T05:52:10.710941 | 2021-10-12T14:16:35 | 2021-10-12T14:16:35 | 347,043,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | hpp | Array.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Array.hpp :+: :+: :+... |
b8a885844d4522a1f05e422128502f76a8765299 | c1b03b59b3974058e3dc4e3aa7a46a7ab9cc3b29 | /src/module-wx/Class_wx_SizeEvent.h | e513d797ab2f12bed79fe426d7b34c2861353d96 | [] | no_license | gura-lang/gura | 972725895c93c22e0ec87c17166df4d15bdbe338 | 03aff5e2b7fe4f761a16400ae7cc6fa7fec73a47 | refs/heads/master | 2021-01-25T08:04:38.269289 | 2020-05-09T12:42:23 | 2020-05-09T12:42:23 | 7,141,465 | 25 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | h | Class_wx_SizeEvent.h | //----------------------------------------------------------------------------
// wxSizeEvent
// extracted from sizeevt.tex
//----------------------------------------------------------------------------
#ifndef __CLASS_WX_SIZEEVENT_H__
#define __CLASS_WX_SIZEEVENT_H__
Gura_BeginModuleScope(wx)
//---------------------... |
51706edf9666042381aaaa3c2efc22c921cba019 | d68e188d8e802ff225b5c3d2cd0e6e98ca177c7c | /Cylindr.h | 487a32ae2c46f2815378e6494637c3f720f870b8 | [] | no_license | andsher93/kursach_thor_cyl | fef1631c07281fc97f192cf01542fc4f2abfce0a | 3f4d3a53923d524bf140e31b68b1a27c93d853f1 | refs/heads/master | 2023-01-27T23:43:26.691142 | 2020-12-06T06:52:05 | 2020-12-06T06:52:05 | 318,965,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | Cylindr.h | #pragma once
//#include "WindowsProject5.h"
//#include "draw_figure.h"
#include "struct.h"
extern float g_sceneWidth;
//extern GLUquadricObj* g_pGluQuadObj;
class Cylindr
{
private:
POINT3D pt_cyl;
double r_cyl;
double height; //height = g_sceneWidth - g_sceneWidth / 8
public:
POINT3D get_pt_cyl();
double get_r... |
4941d9f9ef45d8b24679f678bfe4e1d90d57cc31 | 658a33eef7ad18348e7df31f80032e9aef94673c | /AssetsObject.h | 8241dc0bee916630febb724bfba02bf4637d1d63 | [] | no_license | nerez/Stock-Screener | d667cd7b76298f053ebd5c8f068908c5bb652375 | 9ee12c1a5fbda82e7628d1ffb1e613b0009f0a56 | refs/heads/master | 2016-09-09T22:09:37.565458 | 2015-08-31T14:13:12 | 2015-08-31T14:13:12 | 40,080,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,292 | h | AssetsObject.h | #ifndef ASSETSOBJECT_H
#define ASSETSOBJECT_H
#include "Definitions.h"
typedef struct _current_assets
{
dollars cash;
dollars receivables;
dollars inventory;
dollars short_term_investments;
dollars prepaid_liabilities;
}t_current_assets;
typedef struct _noncurrent_assets
{
dollars property... |
9e0aa0de15e44e98b97238bbb2d226d64402ded2 | dd6de2549e1ba47627b82cf408fd46072b7856f6 | /MXUI/Logic/aslang.cpp | 4fe7b17b40ae965bc705087fd2fe2f00d72e3b7e | [] | no_license | mylifecode/SYprojectcode | 36e5459a2527b9d45f2413c9b78f0f9fb9f6d4e2 | 7328a9b7667bc2d1d03204e84f41f8873b5c3680 | refs/heads/master | 2022-04-14T08:10:25.417006 | 2020-04-11T01:33:08 | 2020-04-11T01:33:08 | 195,399,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,661 | cpp | aslang.cpp | #include "AsLang.h"
#include <QApplication>
#include <QTranslator>
#include <QFile>
AsLang* AsLang::self = NULL;
AsLang* AsLang::instance()
{
if (self == NULL)
{
self = new AsLang;
}
//else cont.
return self;
}
AsLang::AsLang(QObject* parent):
QObject(parent)
,m_abTranslator(NULL)
,m_appTranslator(NULL)
,m_qt... |
4b09c7145df5e468debba6f2828040ef78c2c291 | b23fcfa7b9cf9f88e51dac542fd9e03cb09bd672 | /src/edetect/cuda/CudaError.hxx | 0eecf0cd57ac0d0f2d465c31fffad25dce127527 | [] | no_license | bobekjan/edetect | 8ddeeb32046666752c3e2cf3292c45537a21d054 | e4e0d80ad76578af3d20bf1942fda5303fe4a53b | refs/heads/master | 2021-05-30T16:06:21.174147 | 2015-05-12T00:19:45 | 2015-05-12T00:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,533 | hxx | CudaError.hxx | /** @file
* @brief Declarations related to CUDA error handling.
*
* @author Jan Bobek
*/
#ifndef CUDA__CUDA_ERROR_HXX__INCL__
#define CUDA__CUDA_ERROR_HXX__INCL__
/**
* @brief Thrown on CUDA error.
*
* @author Jan Bobek
*/
class CudaError
: public std::runtime_error
{
public:
/**
* @brief Initializes... |
04fcaef04755304d78a0e5626dbeb14b12cec659 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TrigT1/TrigT1TGC/src/TGCInnerTrackletSlotHolder.cxx | d8c1cc31cdd14855f44515ec673ae474eae193ce | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,056 | cxx | TGCInnerTrackletSlotHolder.cxx | /*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "TrigT1TGC/TGCInnerTrackletSlotHolder.h"
namespace LVL1TGCTrigger {
/** Constructor */
TGCInnerTrackletSlotHolder::TGCInnerTrackletSlotHolder( TGCArguments* tgcargs):
m_tgcArgs(tgcargs)
{
for(int sideId=0; sideId<NU... |
4135dcf12dd7e60b57267b6bef0f8d9faab34901 | 4bbfea35eecf3babf2e89a527e177b545f195fe0 | /slip2_a1.CPP | 10afde9eab798b3af17f0fee378e131a1abbba48 | [] | no_license | anukeswani1406/CPP | a3c51b96a855a02e33f6a52c7e07d381800eb5df | e53e02a978efd1015106936e9d02a9568ee6fde5 | refs/heads/main | 2023-03-20T22:44:09.440170 | 2021-03-19T07:20:10 | 2021-03-19T07:20:10 | 349,179,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | cpp | slip2_a1.CPP | /*
Sip no : 2-1
Write a C++ program using class which contains two data members of type integer.
Create and initialize the object using default constructor, parameterized constructor and parameterized constructor with default value.
Write a member function to display maximum from given two numbers for all objects.
... |
1adf87bc89825d0b268afe63330d4970651d5f13 | 6fe9140244dae1db54abe5bf0ed2026748948803 | /1_course/1_week/1_sum_of_two_digits/cpp/APlusB.cpp | 61f8ac59278ada3ccda29e2213bae0200a658a66 | [
"Unlicense"
] | permissive | chom125/Algorithms-UCSanDiego | f4c93aab1950a29e50dc39e50b45e976cf613a84 | 09d433a1cbc00dc8d913ece8716ac539b81340cd | refs/heads/master | 2022-11-18T20:06:54.829653 | 2020-07-04T21:48:15 | 2020-07-04T21:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | APlusB.cpp | /**
*
* Modern C++ implementation to sum two integers
*
* (c) Copyright 2019 Clayton J. Wong ( http://www.claytonjwong.com )
*
**/
#include <iostream>
using namespace std;
class Solution
{
public:
int sum_of_two_digits( int first, int second )
{
return first + second;
}
};
int main()... |
d1a8ff9d64c4a01aa39886ab4af36fb0e8d4ff6c | 3841f7991232e02c850b7e2ff6e02712e9128b17 | /小浪底泥沙三维/EV_Xld/jni/src/EV_DatabaseUtility_CSharp/wrapper/sqldatabase_wrapper.cpp | 5764ab3c5c82e913af956763f6117335c41f92be | [] | no_license | 15831944/BeijingEVProjects | 62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71 | 3b5fa4c4889557008529958fc7cb51927259f66e | refs/heads/master | 2021-07-22T14:12:15.106616 | 2017-10-15T11:33:06 | 2017-10-15T11:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,465 | cpp | sqldatabase_wrapper.cpp | /* This file is produced by the P/Invoke AutoWrapper Utility
Copyright (c) 2012 by EarthView Image Inc */
#include "databaseutility/sqldatabase.h"
namespace EarthView
{
namespace World
{
namespace Core
{
namespace Database
{
typedef EarthView::World::Core::Database::CSqlDriver* ( _stdcall EarthView_W... |
d17e23cf089d012f9454b04e686fbb51ac3ec1e8 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/Libraries/LibPDF/Page.h | eb8d59a5cde289aff3bb01da2c40dff9b8b0b847 | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 1,686 | h | Page.h | /*
* Copyright (c) 2021-2022, Matthew Olsson <mattco@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefPtr.h>
#include <LibPDF/Forward.h>
namespace PDF {
struct Rectangle {
float lower_left_x;
float lower_left_y;
float upper_right_x;
float upper_right_y;
... |
fe336ac13fb17105147c50b8f7a8c6762aa1d2e9 | e02fa80eef98834bf8a042a09d7cb7fe6bf768ba | /TEST_MyGUI_Source/MyGUIEngine/include/MyGUI_Tab.h | 20dc8f3786077445df29db4cd7b30959df98ea29 | [] | no_license | MyGUI/mygui-historical | fcd3edede9f6cb694c544b402149abb68c538673 | 4886073fd4813de80c22eded0b2033a5ba7f425f | refs/heads/master | 2021-01-23T16:40:19.477150 | 2008-03-06T22:19:12 | 2008-03-06T22:19:12 | 22,805,225 | 2 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 6,739 | h | MyGUI_Tab.h | /*!
@file
@author Albert Semenov
@date 01/2008
@module
*/
#ifndef __MYGUI_TAB_H__
#define __MYGUI_TAB_H__
#include "MyGUI_Prerequest.h"
#include "MyGUI_Widget.h"
namespace MyGUI
{
typedef std::vector<SheetPtr> VectorSheetPtr;
struct TabSheetInfo
{
TabSheetInfo(int _width, const Ogre::D... |
a7f968b7e79667f023d372ea5df25be2d13ac2ba | 7016034bc9b8a41a1bc22d12a09bee6f6060e227 | /Trinity/tests/ComponentTests/switch/switch.ino | 9912816bcdff7ccdf09e7eead8f2c20a1d5292c8 | [] | no_license | octavflorescu/SumoRobo | 8d1746e10a4da16f0533db5aa40983135696c4d5 | 5fcfbebf31cd68003d91b6fff5ef2e18bec046d1 | refs/heads/master | 2021-01-01T05:21:10.040237 | 2016-05-13T18:54:11 | 2016-05-13T18:54:11 | 58,306,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | ino | switch.ino | #include "Utils.h"
#include "Config.h"
int const switchPin = A4;
void setup() {
Serial.begin(57600);
}
void loop() {
Serial.print(analogRead(switchPin));
Serial.write("\n");
delay(500);
}
/*
* 00000000 == 1023
*
* 10000000 == 91
* 01000000 == 184
* 00100000 == 325
* 00010000 == 417
*
* 10001000 ==... |
90b004c83ec2225248badc4a9b6fe9d83a2b69e4 | fe2a7f0dbcddbf766af41ea65a6896b70af0dbf7 | /DigitalLogicSimulator/Library/Il2cppBuildCache/WebGL/il2cppOutput/mscorlib13.cpp | eb30970911b9b1b912dd0ce9b5172cd582c5e89d | [] | no_license | jasonkaufmann/projects | 7f15eee41c76a3b77bd9598e7fa92b5d711c5d9c | 266ddda06d127067be2c16ad5a4a2e4f01c6adb2 | refs/heads/master | 2022-12-14T19:21:32.214377 | 2022-06-06T08:01:28 | 2022-06-06T08:01:28 | 142,910,620 | 1 | 0 | null | 2022-12-08T15:42:03 | 2018-07-30T18:03:22 | C++ | UTF-8 | C++ | false | false | 1,292,777 | cpp | mscorlib13.cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
#include "icalls/mscorlib/System.Globalization/CultureData.h"
template <typename T1, typename T2>
struct VirtualActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const Runtime... |
f325eb989d8e2858f5684353d33f56f865e262c2 | 3b45bde8725a8827f209412fb797b0653b59acd6 | /GameSnipperSFML_Cpp14/DrawBehaviour.cpp | 07ab569d2ec8236c6c26db786163adebdbe8eb28 | [] | no_license | bryansijs/Gamedevelopment | 679a0276ec0b491b3dcd0079af1d2afa05a3f23f | 44d1a233209565de1ab15509e5c29fd7f980620b | refs/heads/master | 2021-06-22T19:11:59.260715 | 2015-11-04T09:02:29 | 2015-11-04T09:02:29 | 41,667,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | cpp | DrawBehaviour.cpp | #include "stdafx.h"
#include "DrawBehaviour.h"
#include <SFML\Graphics.hpp>
void DrawBehaviour::Draw(sf::RenderWindow *window)
{
window->draw(getCurrentImage());
}
sf::Sprite DrawBehaviour::getCurrentImage()
{
return this->unitImage;
}
GameObject* DrawBehaviour::getGameObject()
{
return gameObject;
} |
04befceb92e2561809711b85686b6c48d74e428b | 8e4be5322683f8e93ea46c3647487699d2401ff7 | /stm32/src/main.cpp | 8d90d52bc21a0e55fa3f37f67cd1b97fde7e2ba1 | [] | no_license | danielkucera/tesla-2bus | 0a9dc25ca406efeaa149ceaaddc8588d720ef272 | fceaeb0da561891611a96a2f1d491e688ca2807f | refs/heads/master | 2023-07-18T14:42:58.817281 | 2023-01-30T09:44:53 | 2023-01-30T09:44:53 | 267,779,743 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | cpp | main.cpp | #include <Arduino.h>
#include <CircularBuffer.h>
#define RST PB6
#define SWDIO PB14
#define SWCLK PB13
#define SWIM PB11
#define LED PA9
#define IN_PIN SWDIO
#define OUT_PIN SWCLK
long start = 0;
int pulse_len = 0;
int pulse_cnt = 0;
uint32_t last_fall = 0;
uint32_t fall_len = 0;
CircularBuffer<byte,2048> cbuf;
v... |
1d66963d6fd6b9882e6f03c9dd8130cc5312224d | 156d7b3e35d249377df5923017cc8af52489f97f | /brlycmbd/BrlyTtimp/BrlyTtimp_blks.cpp | 678c550b83f12a1be56000af0c1238f4f4ac0ea3 | [
"MIT"
] | permissive | mpsitech/brly-BeamRelay | fa11efae1fdd34110505ac10dee9d2e96a5ea8bd | ade30cfa9285360618d9d8c717fe6591da0c8683 | refs/heads/master | 2022-09-30T21:12:35.188234 | 2022-09-12T20:46:24 | 2022-09-12T20:46:24 | 282,705,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,960 | cpp | BrlyTtimp_blks.cpp | /**
* \file BrlyTtimp_blks.cpp
* invocation / return data blocks for operation pack BrlyTtimp (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#include "BrlyTtimp_blks.h"
using namespace ... |
d5baf916d768ee8ffc1f5a60ae2ac7f565a409ad | ab6d3fe66df19cfdaaf726e6de066ac4a42ab9e1 | /main.cpp | 40e06e96eaa45796034927689c17a819461174be | [] | no_license | dongxiaohe/LearningCpp | fb22da11cf22cd4a4ed008b6f25c122c6c311ac3 | af81ba56a0dd4b619391e60266ff4ac6614b8c27 | refs/heads/master | 2020-06-12T06:10:29.831372 | 2019-06-28T06:13:55 | 2019-06-28T06:14:46 | 194,217,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | main.cpp | #include <iostream>
#include "BinaryTree.h"
int main() {
std::string greeting {"hello world"};
std::cout << greeting << std::endl;
std::cout << "Hello, World!" << std::endl;
BinaryTree binaryTree;
binaryTree.printVal();
binaryTree.val = "123";
binaryTree.printVal();
std::cout << binary... |
fc8a745fd76dbc1169e4a924fcc446b95719a1d5 | 4c75183c30e9765efea682157dc9c3e90cc0ff39 | /src/SampleProcessor.cc | 9ff391a1e82d2985528e0f51b62a3cb24050321f | [] | no_license | xealits/TopTaus | 76973db7c14c3e3cc740d91e82f75f91817d096c | ad5b08eefaf2354eb775daa8a7936f152815f199 | refs/heads/master | 2020-12-03T05:30:50.081043 | 2014-05-19T14:12:12 | 2014-05-19T14:12:12 | 19,828,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83,810 | cc | SampleProcessor.cc | #include "LIP/TopTaus/interface/SampleProcessor.hh"
// System headers
#include <iostream>
#include <iomanip>
#include <sstream>
// ROOT headers
SampleProcessor::SampleProcessor(double tauPtCut, TString inputArea, TString outputArea):
sampleTauPtCut_(tauPtCut)
{
commondefinitions::inputArea_ = inputArea;
c... |
1215dcf018376d9dbe74ad00c59e100975e66de9 | 455d2617ccb456f54ecca66bbe169c7875c68a41 | /Proyecto/LogicChess/src/modelo/Modelo.hpp | 6fc7b26ae85774d747bbe7193f169234dda92545 | [] | no_license | ariankiehr/LogicChess | c1c6063f9ca0bfdd999ae02240e0d22cfeae67f5 | 6fd801a471eca123df5c0887f1361dc3280db60c | refs/heads/master | 2020-12-11T03:27:24.674146 | 2016-05-22T00:53:24 | 2016-05-22T00:53:24 | 35,691,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,164 | hpp | Modelo.hpp | /* LogicChess: Herramienta didactica para el aprendizaje practico de la Logica de Primer Orden
* Copyright (C) 2011 Arian Kiehr, Matias Ariel Re Medina
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.