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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3a2b24a633bac8a45b9b91900a989b35aaa2e17 | 3916ad26de1287aaf20c059885d1fcf8c9e10156 | /version.hpp | c70088edfe6db95156c68c96b373c840c38c2f18 | [
"BSD-2-Clause"
] | permissive | lygstate/tippecanoe | e52f7ba575b6662f3991a5450fbd609c39c8c46f | 685e1a436003abcf328ec3070015de25c8e73f81 | refs/heads/master | 2021-01-20T14:47:32.857640 | 2017-05-05T18:47:54 | 2017-05-05T18:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39 | hpp | version.hpp | #define VERSION "tippecanoe v1.17.7\n"
|
bd13aec621aa24032f917171314776a7fdfd5a08 | a0b155ac197a6d07754490832a000a6716ab11be | /CFE_LeapMotion2/Plugins/LeapMotion/Intermediate/Build/Win64/UE4Editor/Inc/BodyState/BodyStateAnimInstance.generated.h | 3f5a60e12c01393834330f148c3606c79bb4cc9b | [] | no_license | killercloss/CFE_RV | 7727905d2118faff834219e5dfb35a175742703c | 52018ce07dc275245ef9718dce1e7227b7391022 | refs/heads/master | 2022-01-15T10:22:11.730759 | 2019-07-01T00:03:14 | 2019-07-01T00:03:14 | 145,898,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,319 | h | BodyStateAnimInstance.generated.h | // Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
5b7682ab78d634d9a853cfe15337c6f0b504f650 | f143e7e6396876990f6985538e8921c719dfad72 | /StatTools/uTagTests.cpp | 6b8ee13e7256a4bc29a9822451632235d202dbee | [] | no_license | anordell/geneTools | 82cc195a38114668b3dc9e0fa02aff2ff0a5d5db | d8ae0de4323c10c1734cadaa6faa39785b2f1f79 | refs/heads/master | 2021-01-18T21:20:58.135420 | 2014-01-05T06:27:42 | 2014-01-05T06:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,242 | cpp | uTagTests.cpp |
#include "uFormats.h"
#include "uTags.h"
#include "uRegion.h"
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <time.h>
#include <thread>
#include <random>
#include <string.h>
#include "utility.h"
#include <time.h>
#include "gtest.h"
/**< Testing our unitary Tag */
TEST(uTagsTest,... |
16509f5146efdce5fb974ef3149b22e181153914 | 4a466f4212416181b3727f2f98d9452536aa39c1 | /IMS_ModuleFunctionData_Gear.h | 726908c949aed1be1fc79da82c592cb3ebf7f264 | [] | no_license | TheNewBob/IMS2 | 24f25843aca5b54ce70f052c2090ad4e22d50d7e | 572dcfd4c3621458f01278713437c2aca526d2e6 | refs/heads/master | 2021-01-19T02:25:03.519558 | 2018-01-29T20:27:44 | 2018-01-29T20:27:44 | 65,005,438 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | h | IMS_ModuleFunctionData_Gear.h | #pragma once
/**
* \brief Holds static data to define a piece of landing gear.
*
* <h3> Config parameters </h3>
* \code
* BEGIN_MODULEFUNCTION GEAR
* TdPos = <float x> <float y> <float z> //the position of the DEPLOYED touchdown point, module relative.
* TdDir = <float x> <float y> <float z> //the DOWN direction of th... |
2879b70d34be4cf069cdb4fa6929748e777213f8 | 34b3623dbd185b9d8e6bc5af787ff656ebb8f837 | /finalProject/results/test/test_movingboundary/wedge05/36/phi | 2a6d93abe7157156082a35256817967ae48a0392 | [] | no_license | kenneth-meyer/COE347 | 6426252133cdb94582b49337d44bdc5759d96cda | a4f1e5f3322031690a180d0815cc8272b6f89726 | refs/heads/master | 2023-04-25T04:03:37.617189 | 2021-05-16T02:40:23 | 2021-05-16T02:40:23 | 339,565,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98,088 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
58f146265be9e54dca8a8e1169a4f6082d0cc842 | a92ce35296dcebf8d8f8f53e54614f1e267b8887 | /B/1036/1036.cpp | c01ff15765f6292676b7e9ca10b5f6cc57ac9194 | [] | no_license | zhaoyiding/PAT | c13697cecb4ecf039f6ad88b59b4ac68fc83b7dc | 78283227682c419eeda78f9065f4efec91fa6d38 | refs/heads/master | 2021-01-19T03:32:30.317682 | 2016-07-02T01:28:00 | 2016-07-02T01:28:00 | 62,428,346 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | 1036.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
getchar();
char c=getchar();
for(int i=0;i!=n;++i)
cout<<c;
cout<<endl;
auto mid=n%2/2.0>=0.5?n/2-1:n/2-2;
for(int i=0;i!=mid;++i)
{
cout<<c;
for(int j=0;j!=n-2;++j)
cout<<' ';
cout<<c<<endl;
}
for(int i=0;i!=n;++i)
cout<<... |
e0ce0c45154695bc085c367a94cc9668949a334a | 1736474d707f5c6c3622f1cd370ce31ac8217c12 | /PseudoUnitTest/Program.cpp | 3abb27942616d437310bbd1aa17090146a1c4d76 | [] | no_license | arlm/pseudo | 6d7450696672b167dd1aceec6446b8ce137591c0 | 27153e50003faff31a3212452b1aec88831d8103 | refs/heads/master | 2022-11-05T23:38:08.214807 | 2011-02-18T23:18:36 | 2011-02-18T23:18:36 | 275,132,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,272 | cpp | Program.cpp | #include <Pseudo\UnitTest.hpp>
#include "TestNew.hpp"
#include "TestMath.hpp"
#include "TestConsole.hpp"
#include "TestString.hpp"
#include "TestConvert.hpp"
#include "TestBitArray.hpp"
#include "TestDictionary.hpp"
#include "TestComPtr.hpp"
#include "TestArray.hpp"
#include "TestArrayList.hpp"
#include "Tes... |
a7bfd3a2614cca35afb22ffb0f6f6e57d099f8ff | 26ff3198d9545341fb1da345c9e5074e4642b338 | /rtype-client/Authentificate.hpp | b60f30cb98bf1b9492c02859d1fca987d508368f | [] | no_license | tolsac/RTYPE | 83de62c7df8cef3c7973bd6f1ffebc32ed3ad029 | 1ec2c3b0e2de6b0e8e8010719ff19555c2fd5389 | refs/heads/master | 2021-01-19T08:15:12.145429 | 2014-09-22T15:09:12 | 2014-09-22T15:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,112 | hpp | Authentificate.hpp | /*
** Authentificate.hpp for Authentificate in /home/tolsa/rtype-2015-tolsa_c/rtype-client
**
** Made by tolsa_c
** Login <tolsa@ubuntu>
**
** Started on Fri Jan 18 00:36:27 2013 tolsa_c
** Last update Fri Jan 18 00:57:53 2013 tolsa_c
*/
#ifndef AUTHENTIFICATE_HPP_
# define AUTHENTIFICATE_HPP_
#include <fstream>... |
cd60fd4fe95ab44ccae4d5d61e5029f00c85d891 | a6b24ce2a114b8577546f9b2b1ef8bf297cf23d4 | /LNote/Core/Graphics/Common/PointParticle_graphics.cpp | bbafa5785cb9b77f7c2f0a6497f3f598a20da428 | [
"MIT"
] | permissive | lriki/LNote | d63dfe9732f7257e6e33d1f82622af602c894267 | a009cb44f7ac7ede3be7237fe7fca52d4c70f393 | refs/heads/master | 2022-12-18T03:49:06.288119 | 2020-09-25T17:12:16 | 2020-09-25T17:12:16 | 298,601,212 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 13,661 | cpp | PointParticle_graphics.cpp | //=============================================================================
//【 PointParticle 】
//=============================================================================
//-------------------------------------------------------------------------
//
//----------------------------------------------------------... |
a88a38e64111e2f3cde7f08e42c595d5c4d11a96 | 694dab51c4c58118fe53b6e08c2bba2da0ca3fb4 | /InVaders/Enemy.cpp | 658d5201306346f91fef3224d26b28236ba4c3ae | [] | no_license | gandastik/InVaders | 07a37acc6f841980c2b86a56b842db5b76a49325 | fd6257cdd7050a1a1d4f6364adf7fa905c545e4d | refs/heads/master | 2023-02-05T06:38:48.410648 | 2020-12-14T14:13:43 | 2020-12-14T14:13:43 | 293,308,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,547 | cpp | Enemy.cpp | #include "stdafx.h"
#include "Enemy.h"
void Enemy::initVariables()
{
this->hpMax = 3;
this->hp = hpMax;
this->damage = 1;
this->points = 5;
this->dropChance = 30;
this->isDeath = false;
this->onGround = false;
this->bulletTexture.loadFromFile("Texture/flipped_bullet.png");
this->sniperBulletTexture.loadFrom... |
6f607471397a17064789285946082255a797f1f9 | ee1a34415079d402bdc2411657d4ff5d8c542bfb | /Device/device/device/GigECamera.grpc.pb.h | 4b1b64eac0b91b52ab6ece674bd59c523fe4578e | [] | no_license | huiyugan/HVVPlatform | ec760a1ee7ab811d44b9ab735e9bd0b02a290611 | d0e39892d89b872a2a151da4c598971e670639eb | refs/heads/main | 2023-08-24T17:37:48.936269 | 2021-10-18T00:50:13 | 2021-10-18T00:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 99,630 | h | GigECamera.grpc.pb.h | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: GigECamera.proto
#ifndef GRPC_GigECamera_2eproto__INCLUDED
#define GRPC_GigECamera_2eproto__INCLUDED
#include "GigECamera.pb.h"
#include <functional>
#include <grpc/impl/codegen/port_platform.h>
#include <grpcpp/impl/c... |
907f62a45db4f2b19dcf5e60f26fd5871929f862 | 49d9eaff00581517bc76f459d4a1087b636dc796 | /Arrays/2 D Array/Alternate no/ALTERNATE.CPP | fb30b17a96ab3f374759d0b92788c51ddef16fd8 | [] | no_license | dipesh1996/Arrays-in-C- | 11d96aea9387166a812fe9f56138b5d070fedc71 | 1c99e4ecb2d8fa70f0ea3feb16f85f101dc9e14b | refs/heads/master | 2020-04-23T05:27:07.824378 | 2019-02-15T23:19:02 | 2019-02-15T23:19:02 | 170,940,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | ALTERNATE.CPP | #include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
int Ary[3][3],counter;
clrscr();
for(int row=0;row<3;row++)
{
for(int col=0;col<3;col++)
{
cout<<"enter value of Ary[" << row << "]["<<col<< "]";
cin>>Ary[row][col];
}
}
for(row=0;row<3;row++)
{
for(int col=0;col<3;col++)
{
if(cou... |
0fce18bd0cb33bc50704ac3bd735120fd9ab812b | 8194c153de598eaca637559443f71d13b729d4d2 | /ogsr_engine/xrGame/trade_parameters.h | 2eec49e7e27bef6936a63f5c2c6c2df41b44366e | [
"Apache-2.0"
] | permissive | NikitaNikson/X-Ray_Renewal_Engine | 8bb464b3e15eeabdae53ba69bd3c4c37b814e33e | 38cfb4a047de85bb0ea6097439287c29718202d2 | refs/heads/dev | 2023-07-01T13:43:36.317546 | 2021-08-01T15:03:31 | 2021-08-01T15:03:31 | 391,685,134 | 4 | 4 | Apache-2.0 | 2021-08-01T16:52:09 | 2021-08-01T16:52:09 | null | UTF-8 | C++ | false | false | 2,000 | h | trade_parameters.h | ////////////////////////////////////////////////////////////////////////////
// Module : trade_parameters.h
// Created : 13.01.2006
// Modified : 13.01.2006
// Author : Dmitriy Iassenev
// Description : trade parameters class
////////////////////////////////////////////////////////////////////////////
#pragma on... |
41bc48e84dba3aa2894b85878742b63c7b3988ae | a4515918f56dd7ab527e4999aa7fce818b6dd6f6 | /Algorithms/Strings/reverse_string_using_stack.cpp | 55e9d5fd483b7145924fd3752572545b79ab50d9 | [
"MIT"
] | permissive | rathoresrikant/HacktoberFestContribute | 0e2d4692a305f079e5aebcd331e8df04b90f90da | e2a69e284b3b1bd0c7c16ea41217cc6c2ec57592 | refs/heads/master | 2023-06-13T09:22:22.554887 | 2021-10-27T07:51:41 | 2021-10-27T07:51:41 | 151,832,935 | 102 | 901 | MIT | 2023-06-23T06:53:32 | 2018-10-06T11:23:31 | C++ | UTF-8 | C++ | false | false | 320 | cpp | reverse_string_using_stack.cpp | #include <bits/stdc++.h>
using namespace std ;
int main()
{
stack <string> s;
string a;
cout <<"enter what you want :) : \n" ;
cin>> a ;
for(int i = 0 ; i < a.length() ; i++)
{
string b ;
b = a[i] ;
s.push(b) ;
}
while(!s.empty())
{
cout << s.top();
s.pop();
}
cout << endl;
return 0;
}
|
2dddc79abe43e80bdac69a9d60901544271906a4 | 03ff9265393152991f442444fbdf1a88a74fccdc | /tests/ts1.cpp | 1e07d1d7f770d628d58014570be90a395a7753c7 | [] | no_license | agatha-flis/6_wyszukiwanie_binarne | 921fdedc356d473b04c0698c11add5f54e513d50 | 557bbafa2f663d176bf1af11095f92b9d342bb0c | refs/heads/main | 2023-05-13T22:27:42.314448 | 2021-06-06T06:33:04 | 2021-06-06T06:33:04 | 373,523,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | ts1.cpp | #include <gtest/gtest.h>
#include "../src/bin.h"
#include "../src/bin.cpp"
TEST(TS1, t1) {
int s =6;
int tab[s]={66,4,22,75,33,20};
EXPECT_EQ(1,w_binarne(1,s,4, tab));
}
TEST(TS1, t2) {
int s =8;
int tab2[s]={66,4,22,75,33,20,11,98};
EXPECT_FALSE(w_binarne(1,s,5, tab2));
}
|
bdec70ece4e19b9f340dfbd4b11ff7e30e6cc89a | 5a7c6aadf360939806248fd335a2ff3fdd988746 | /week_01/05_interpolationPenner/src/customCircle.cpp | f8acc751991e97dfcbf3da35c9258d72c1293503 | [
"MIT"
] | permissive | ovicin/OFAnimation_Spring2015 | 8398b001ab5e2de95c1953f59174d80d9f20eed9 | 9ba30dcf728ca57b265dc80229110dd96fb3ae97 | refs/heads/master | 2021-01-17T01:10:37.991660 | 2015-03-11T03:07:28 | 2015-03-11T03:07:28 | 32,978,657 | 1 | 0 | null | 2015-03-27T09:48:40 | 2015-03-27T09:48:37 | C++ | UTF-8 | C++ | false | false | 857 | cpp | customCircle.cpp | //
// customCircle.cpp
// 01_simpleClass
//
// Created by Bernardo Santos Schorr on 1/31/15.
//
//
#include "customCircle.h"
customCircle::customCircle() {
}
void customCircle::setup(ofVec2f _initPos, ofVec2f _finalPos) {
initPos = _initPos;
finalPos = _finalPos;
}
void customCircle::update(float _p... |
d17632cb6f777f289d15e1cf654ed3ee9bea659c | 8c01b286917ca24bee4d6ede0f1f336cbc445577 | /Distributor/AssistantDll/Module/Picture/AndroidPictureManager.cpp | 1010fb57434fac8cac1741b179978b71697448d3 | [] | no_license | bugHappy/ND91 | 8d501682beb37212aea7e3ba73114c048c4ff689 | 0e0c44927d7b1564fa99e64d6c3ddce319d523bc | refs/heads/master | 2021-04-07T22:09:19.797378 | 2019-08-02T05:30:47 | 2019-08-02T05:30:47 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 15,306 | cpp | AndroidPictureManager.cpp | #include "pch_module.h"
#ifdef MODULE_PICTURE
#include "Module/Picture/AndroidPictureManager.h"
#include "Module/Picture/PictureLibrary.h"
#include "Module/Picture/LoadPhotoBucketsCommand.h"
#include "Module/Picture/LoadPhotosCommand.h"
#include "Module/Picture/AndroidPhotoBucket.h"
#include "Module/Picture/LoadThumb... |
b7af21cb07fef62e5332997db3542b30706ff419 | 6edd69c44900d23793833e6c193f4cf23cd08f65 | /classes/DataManager.h | 13426d5345a82b06490ee7eb3e5d7dd3993fc499 | [] | no_license | MaryRybanenko/pass_manager | 3eb6cf15326a3baea3a4e1a538a55e7c5b873716 | 9200e053d766acea2c20784e351c4f1ab8436e15 | refs/heads/master | 2020-12-30T09:15:18.337431 | 2017-08-15T16:44:07 | 2017-08-15T16:44:07 | 100,399,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | DataManager.h | #ifndef __DATA_MANAGER_H__
#define __DATA_MANAGER_H__
#include "HeaderCommon.h"
struct sRecord
{
std::string resource;
std::string login;
std::string pasword;
};
class DataManager
{
public:
static DataManager* getInstance();
int addRecord(const sRecord& record);
sRecord* getRecord(int index);
int getCountRec... |
82f1fd7046c1245f7c88c519046b9bb7f84f6aa5 | 3f3844bb429c1283ae9527317fa6c4a88473c9c3 | /C++ 4-26-2013/Employee.h | 6f13badbdc97a268617ebcc70272253ec44ce5cb | [] | no_license | Typhoan/Auburn-2011-2013-Code | e12d872c7d3e866d05dd653af9d8efebd91f38e8 | 83030e93f766195afce7b153b1bab85d91c95b2c | refs/heads/master | 2016-09-06T14:08:59.024228 | 2013-12-31T01:28:13 | 2013-12-31T01:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,253 | h | Employee.h | #ifndef EMPLOYEE
#define EMPLOYEE
#include "Client.h"
#include "Account.h"
#include "Password.h"
#include <string>
#include <iostream>
#include <map>
class Employee {
private:
std::string password;
std::string userID;
std::string role;
std::map<std::string, Employee> employees;
std::map<std::string, Client> clien... |
d5e494a208dc205268b3b48984a3418ca5041fd1 | 118ded1d2bad8ae3b5fa5b6abaf4d45b54ece2fa | /src/Library/Receivers/Generic/RawReceiver.h | ae08dde0d0550d96e63625d610d6fb19187bcc9b | [] | no_license | gpoleszuk/kinematic | ab064f6dffeea91f7dd91ebc6eac5c30e3d6ee16 | b5c95c43771f74b17152498b602295ee21c60037 | refs/heads/master | 2021-01-10T10:52:24.487730 | 2011-01-15T17:29:25 | 2011-01-15T17:29:25 | 55,036,059 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,314 | h | RawReceiver.h |
#ifndef RAWRECEIVER_INCLUDED
#define RAWRECEIVER_INCLUDED
// Part of Kinematic, a utility for GPS positioning
//
// Copyright (C) 2006 John Morris www.precision-gps.org
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published... |
ec6497afde1154b7356970b0f6238fcba1a46105 | d5889c8ffa5f0d9369c5226205dccff7f5382379 | /leetcode/easy/706. Design HashMap.cpp | b3d9b163524cee4f3010e2b75754b3ac4a1c232a | [
"MIT"
] | permissive | fpdjsns/Algorithm | 334457a0e18a28b51a54514b91daff798ed833fe | 1414d9368f4047b28808952efa2b0c68792c154c | refs/heads/master | 2023-05-04T16:55:43.599727 | 2023-04-18T14:27:50 | 2023-04-18T14:27:50 | 126,031,686 | 14 | 8 | MIT | 2021-12-06T07:30:28 | 2018-03-20T14:36:02 | C++ | UTF-8 | C++ | false | false | 579 | cpp | 706. Design HashMap.cpp | /**
* problem : https://leetcode.com/problems/design-hashmap/
*/
class MyHashMap {
vector<int> values;
public:
MyHashMap() {
values = vector<int>(1e6 + 1, -1);
}
void put(int key, int value) {
values[key] = value;
}
int get(int key) {
return values[key];
... |
685001e3481670086fc527e1b095144a24dc22ae | 2bb0725d62e75bfb901005610b8ee40fd0d9f40f | /UVA/Volume 101/10195-The Knights of the Round Table/knights.cpp | 4f464e789bc9d4f5d8b498606e11e9195a9a67c3 | [] | no_license | geraldolsribeiro/contests | 623965ede4536ef9654866a1b991c8abf10369f0 | 5c41e07c1e54a48b15ab1816190ac571c8a35593 | refs/heads/master | 2021-01-21T21:05:13.464323 | 2017-03-09T18:35:18 | 2017-03-09T18:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | knights.cpp | /**************************************************************************
* UVa 10195 - The Knights of the Round Table
*
* Autor: Vinicius J. S. Souza
* Data: 03/02/2010
* Tecnicas: geometria computacional
* Dificuldade (1-10): 4
************************************************************************/
#include<stdio... |
0b77ce53085890c7e8021bc0851e9a68ad755c2e | 070f794f3e8a8806b6917ffa0a40b38a28ec9f0b | /linemidpoint.cpp | 823b70056844f41b52028ef097132256a3f20da8 | [] | no_license | anish-jangra/Graphics-Lab | 094d9be8d543d54400e3086cd6efb332b6ec543a | 5dc25010ca53aced65342aab0b92cdae8c574c68 | refs/heads/master | 2022-03-07T22:14:52.912459 | 2019-10-29T12:32:32 | 2019-10-29T12:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | cpp | linemidpoint.cpp | #include<bits/stdc++.h>
#include<graphics.h>
using namespace std;
void midPoint(int X1, int Y1, int X2, int Y2)
{
int dx = X2 - X1;
int dy = Y2 - Y1;
int d = dy - (dx/2);
int x = X1, y = Y1;
putpixel(x,y,WHITE);
while (x < X2)
{
x++;
if (d < 0)
d = d + dy;
... |
8224b309b009e9c8b3136329a9dc63d61c5ccf0b | f1b65a67115058db99e200f3e4288b0ff607da2b | /712_Minimum ASCII Delete Sum for Two Strings.cpp | 921986a5499a576fd8e63cad45a8f6bb1807d32d | [] | no_license | Liurunex/Leetcode | d8d0f28a61f0303274881c144a214892e786afed | 21de5f8b91053c5befc579e34b6c76a9c2fc1ccd | refs/heads/master | 2021-01-25T09:26:16.516436 | 2018-06-05T11:27:38 | 2018-06-05T11:27:38 | 93,832,959 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | 712_Minimum ASCII Delete Sum for Two Strings.cpp | class Solution {
public:
int minimumDeleteSum(string s1, string s2) {
vector<vector<int>> dp(s1.size()+1, vector<int> (s2.size()+1, 0));
for (int i = 1; i <= s1.size(); ++ i)
dp[i][0] = (int)(s1[i-1]) + dp[i-1][0];
for (int j = 1; j <= s2.size(); ++ j)
dp[0][j] = (int)(s2[j-1]) + dp[0][j-1];
for (in... |
51d02fca4f0e01c23663d1d4731ef85eba33d43a | 03ba325820c997599beff5add437d35347a953aa | /source/utopian/utility/math/Ray.h | a85bf3b0d83a59a5b07f0e61c9a02a64aa532813 | [
"MIT"
] | permissive | simplerr/UtopianEngine | cc13a43279bd49f55136120cf75c8c8d5fcff705 | b7c38df663a4b6b2fa1d7c9f1f83dfc661de1a9a | refs/heads/master | 2022-10-12T12:03:19.166812 | 2022-09-28T05:48:31 | 2022-09-28T05:48:31 | 77,483,702 | 64 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 401 | h | Ray.h | #pragma once
#include <utility>
#include <vector>
#include <glm/glm.hpp>
#include "vulkan/Vertex.h"
namespace Utopian
{
struct Ray
{
Ray();
Ray(glm::vec3 origin, glm::vec3 direction);
bool TriangleIntersect(const glm::vec3 &v0, const glm::vec3 &v1, const glm::vec3 &v2, glm::vec3& intersectPoi... |
55b9a5ea4d3cbb92435e9938320a2534511a9789 | 0ac35f3868bafa5e4f5f18c81ede23df48fb1e44 | /multimedia/mediarenderer.h | fe1d02fb859a351e1247a15d89e1879ba4eb8679 | [] | no_license | seem-sky/DlnaServer | b94cc13c9e5eb266fcab32493783dcdd70c5dfe0 | ef3d57ee88c0db7e4cf17162a4c360ef643078c9 | refs/heads/master | 2021-09-01T02:05:31.225042 | 2017-12-24T09:57:45 | 2017-12-24T09:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | h | mediarenderer.h | #ifndef MEDIARENDERER_H
#define MEDIARENDERER_H
#include "Models/listmodel.h"
#include "upnprootdevice.h"
class MediaRenderer : public ListItem
{
Q_OBJECT
public:
explicit MediaRenderer(QObject *parent = 0);
explicit MediaRenderer(UpnpRootDevice *device, QObject *parent = 0);
enum Roles {
s... |
405cbd08d38f814532f8c77ebbeb62974a84ff49 | f69408871e4ab386d9fee20a84eed1e6e2a6ad2b | /c/2012newtest/shift_test/main.cpp | 511007a9f4ff10fbf5fb21286f0d1791d827d855 | [] | no_license | hit-liuchaoth/open | 07d429b8ea3edfe5ad97c834bd91cfb72b647cea | 3b6662e15c0fdcccfe6e9736449f05c03129b405 | refs/heads/master | 2020-04-06T04:03:10.752712 | 2015-06-30T13:42:00 | 2015-06-30T13:42:00 | 38,310,747 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 110 | cpp | main.cpp | #include "stdio.h"
#define rol(a,n) a=a<<n|a>>(32-n)
main()
{
int a=0xf00f;
rol(a,31);
printf("%x\n",a);
} |
bc2f7b927b33328f19e91351e9ada7b59b951a02 | 23cec3b8fee4fee970e53d55a577f47a1a5c68eb | /Delimeter.cpp | 88293bf3ad7229edc5428a0e9ed41d47262e98df | [] | no_license | cmariefelts/fall2019-Assignment3 | 277a3e8fc029e7ca28f5da6949d976ab20585bac | 2c5b5fcc7c1aa14bdba51d3992426e4c112588f1 | refs/heads/master | 2020-08-07T02:37:11.201721 | 2019-10-16T04:29:59 | 2019-10-16T04:29:59 | 213,263,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | cpp | Delimeter.cpp | #include <iostream>
#include "Delimeter.h"
using namespace std;
//CONSTRUCTOR
Delimeter::Delimeter(int countLines, char delimeter)
{
this->delimeter = delimeter;
this->countLines = countLines;
//Setting bool to false
hasPair = false;
//Method that checks for pairs
checkDeliPair();
}
//DESTRUCTOR
Delimete... |
1eb3f5795dc00d3d5d1bfe236125319888410d6f | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/ui/t48/settingui/src/cdlgcustomforward.h | 46d7872bdc7441da97a9a28d4e783333d3310bc3 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 1,672 | h | cdlgcustomforward.h | #ifndef CDLGCUSTOMFORWARD_H
#define CDLGCUSTOMFORWARD_H
#include "setting/include/common.h"
#include "cdlgbasesubpage.h"
#include <QDialog>
#include <list>
class CDlgCustomForward : public CDlgBaseSubPage
{
Q_OBJECT
public:
explicit CDlgCustomForward(QWidget * parent = 0);
~CDlgCustomForward();
stat... |
d04e22f64a35c15c9433a3b0ffcc811e10213170 | e1ed45ac1be69973f2dcd3088b48ee9289f64e6b | /list_test.cpp | 02dcb70bde3c7c058a0c80a553e08ecfb6a8f043 | [] | no_license | fourstring/skip_list | c95d0062dd56450bfd123811a607afbe6b92afd1 | 792cecd63cc2e9f041e28f29e2007d9258cf7918 | refs/heads/master | 2022-04-17T17:57:44.366262 | 2020-03-26T06:33:42 | 2020-03-26T06:33:42 | 250,179,363 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | list_test.cpp | //
// Created by fourstring on 2020/3/6.
//
#include <iostream>
#include <list>
using namespace std;
int main() {
auto l = std::list<int>{1, 2, 3};
for (auto i = l.rbegin(); i != l.rend(); i++) {
cout << *i << ' ' << *l.begin() << ' ' << *i.base() << std::endl;
if (++i.base() == l.begin()) l.p... |
5ffb4910e09a135ebbab9c935295a625304d3102 | 6a1647bf33f21f845e1b65cac485bf51c7d159fe | /AS01/Lab 01B Rainfall Stats Vector/COMSC200 - Lab 01B Rainfall Stats Vector/main.cpp | 918cd9a7dff0ea240fb0b70cf6fb716a7cf3f47a | [] | no_license | ellehf/COMSC-200 | c03fe5629dba7705008d38069a855e32de2368d3 | 080c09cd2f00e55a65ebc02aaa5534bf86dc8338 | refs/heads/main | 2023-03-27T18:00:43.503086 | 2021-03-30T03:28:44 | 2021-03-30T03:28:44 | 352,858,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | cpp | main.cpp | //
// main.cpp
// COMSC200 - Lab 01B Rainfall Stats Vector
//
// Created by Elle Hoarau on 2/4/20.
// Copyright © 2020 Elle Hoarau. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int main()
{
enum Month {Jan, Feb, Mar, Apr, May, June, July, Aug, Sept, Oct, Nov, Dec};
c... |
e2f32f01bd506d20aeda10b91e74d5f684225807 | 94ff2444ffd81f62b11b4e546a3b19d8f9799433 | /leetcode/graph.cpp | 292dc04738d9118a33c665f02b16cd64442f405f | [
"Apache-2.0"
] | permissive | vvhappyguy/Access-to-IT | b1142e1154791a3d2d4f163f06d76a406e9dba2e | 98adda2a71fdda6602c09498051b7472688b3217 | refs/heads/master | 2023-04-30T03:53:15.122058 | 2023-04-21T13:10:12 | 2023-04-21T13:10:12 | 177,744,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,269 | cpp | graph.cpp | #include <algorithm>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
// 1791. Find Center of Star Graph
class Solution1791
{
public:
int fi... |
6a8bf1c89361f4d1104834e85ea75d26bdefc319 | c8aa24cd1c5c071fce70046e50dafdbcd5a4ffc4 | /src/applications/laplaceSteadyTestSolution/laplaceSteadyTestSolution.cpp | 4b15515ecca8ec55d5abb3300e5ff3ac41f90c37 | [] | no_license | wgryglas/SEM | ec57966a6d4ec77029dbff3838c0c3ccbfb6ac9a | adfe38be39b6bed354a007ead6f3ca0f681ef9e9 | refs/heads/master | 2016-09-11T03:15:54.931908 | 2015-05-28T18:35:27 | 2015-05-28T18:35:27 | 35,941,688 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,476 | cpp | laplaceSteadyTestSolution.cpp | #include "iomanagment/case.h"
#include "mesh/Mesh.h"
#include "fields/Fields.h"
#include "solver/Solver.h"
#include "solver/CompoundDiscretOperator.h"
#include "solver/DiscretEquation.h"
#include "utilities/VectorUtils.h"
#include "fieldMath/WeakFormDefinition.h"
void solveEq(SEM::field::GeometricField<SEM::Scalar> &... |
90b6cb775d13ab351251b8445fb6600950c44e08 | 609b5ed11126da70fe95771eed71fd9d7e40c724 | /src/core/world_process.cpp | 139cf49eff0a44c8ad97fece7e0f477448f71efd | [] | no_license | trid/exp | 4930b65913f2cc30d665c6ee19b28e8d937096f3 | bcee0e50939ca941b84f77cd5299bef1775ae012 | refs/heads/master | 2023-02-21T23:25:42.292598 | 2023-02-05T16:19:34 | 2023-02-05T16:19:34 | 24,107,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | cpp | world_process.cpp | //
// Created by TriD on 01.11.2021.
//
#include "world_process.h"
#include "world.h"
namespace Core {
WorldProcess::WorldProcess(World& world) :
_world(world) {
}
void WorldProcess::update(unsigned int delta) {
_world.update(delta);
}
bool WorldProcess::finished() const {
return false;
}
} // n... |
04b2c1307d612baa5c5cd2483162c91b99fccbc2 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/Basic-Dynamic-Mesh-Tutorial-OpenFoam/TUT16rotating/2.08/epsilon | 7f5e09e1af744ab40ecdb1cdf7307d11d966cd29 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,716 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
36d40f7d9d0574ead78b5602ad61e6175a812e7a | 57c33d9f14e2e8fa7ccf69f4da842b619737a859 | /SerialIntercommunicator.h | 730ae4ba52c643e217d1db43df7a779b64c73f90 | [] | no_license | StuckInTheCode/Robo_Library_nightly | 0e87de8f427d360449a5204f00e548e7e712f516 | 26e79e2720089a93880538b21ae15947b8de7dc9 | refs/heads/master | 2023-01-03T21:00:46.919357 | 2020-10-17T09:24:00 | 2020-10-17T09:24:00 | 300,724,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 705 | h | SerialIntercommunicator.h | #ifndef SerialIntercommunicator_H
#define SerialIntercommunicator_H
#include "Arduino.h"
#include "BatteryController.h"
#include "LocationAnalysisCommand.h"
#include "MotorMovementCommand.h"
#include "ServoMovementCommand.h"
class SerialIntercommunicator
{
public:
SerialIntercommunicator();
~SerialInterco... |
5223a72237bae21e2496d87679eafc0d1f6d10e6 | 5f4c2a3ed8c7e4a14f1d0ada20f2d5159711e576 | /Source code/Paint/CShapeFactory.h | e0fb3afa377a4c9df76feb96e33239bb10f92fa3 | [
"MIT"
] | permissive | tqbdev/Paint-Win32 | 00e8b5c5a13ab50fa4f4e36e04f3aa86afc7f81b | ec68ab9c4c0c3bd642951f9b2a2908e5e6db071a | refs/heads/master | 2021-01-24T12:05:17.105365 | 2018-02-27T11:12:56 | 2018-02-27T11:12:56 | 123,114,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | h | CShapeFactory.h | #pragma once
#include "CEllipse.h"
#include "CRectangle.h"
#include "CLine.h"
namespace MyPaint
{
class CShapeFactory
{
public:
IShape* GetShape(int shapeId);
};
} |
704f2c7dc9d6fbfbc7bc2d2bd194d4651ef13e72 | 84abfe6c290c599280c0190c7fb9cd9f3a7d8ac7 | /Physics3D/constraints/barConstraint.cpp | 4f354e8c27cb1a7d26262b4de16d9051181ea885 | [
"MIT"
] | permissive | ThePhysicsGuys/Physics3D | fa86abafd541a71d1b1fe99c1157d3d7aaba7b31 | 37aed8811c07560e20670f9114f606a978440822 | refs/heads/master | 2023-06-22T14:09:09.888412 | 2022-12-22T00:46:00 | 2022-12-22T00:46:00 | 158,881,886 | 297 | 27 | MIT | 2023-06-10T21:20:56 | 2018-11-23T22:07:37 | C++ | UTF-8 | C++ | false | false | 1,906 | cpp | barConstraint.cpp | #include "barConstraint.h"
#include "constraintImpl.h"
namespace P3D {
int BarConstraint::maxNumberOfParameters() const {
return 1;
}
static ConstraintMatrixPair<1> makeMatrices(const PhysicalInfo& phys, const Vec3& attach, const Vec3& barAxis) {
Vec3 attachRelativeToCOM = phys.cframe.localToRelative(attach) - phys... |
4505c832d36cd24b36e7866a3764a4b0e82b700a | 7da24497832d8afafefa36db391d644e7fceef40 | /ABC/138_E_Strings_of_Impurity.cpp | e4db3ea4dd673679cc546e39d630bc1146c37dce | [] | no_license | shugo256/AtCoder | 864e70a54cb5cb8a3dddd038cb425a96aacb54bf | 57c81746c83b11bd1373cfff8a0358af3ba67f65 | refs/heads/master | 2021-06-12T14:46:54.073135 | 2021-04-25T08:09:15 | 2021-04-25T08:09:15 | 180,904,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | cpp | 138_E_Strings_of_Impurity.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
long slen = s.size();
long next[slen+1][26],
buf[26];
fill(buf, buf+26, -1);
fill(next[slen], next[slen+1], -1);
for (long ... |
8fa6a05b9c0174a6bc30c1fc110be2c3009412da | 39bc6a37973c1b3369defd137ace6951ae8675cf | /Container/Container.h | 83111e5c92c202fd68d8d7e9e176fe7552943dca | [] | no_license | hki2345/DirectX11_FrameWork | facdc03671da7dee07344413c2ea3d0ef2d0fa7b | 70db10de425da6c68add18bd18a9b27080ff916b | refs/heads/master | 2021-06-24T13:53:01.411290 | 2019-08-05T15:43:42 | 2019-08-05T15:43:42 | 150,975,486 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,847 | h | Container.h | #pragma once
#include <SmartPtr.h>
#include <DXContainer.h>
#include <unordered_map>
#include <list>
class Force_Container : public SmartPtr
{
public:
wchar_t Name[NAMENUM];
KColor Color;
public:
Force_Container();
Force_Container(const Force_Container& _Other);
~Force_Container() {};
};
enum ZERGUNIT_FORM
{
... |
7d6320f58dba75dfc8bab3c05367729c1d04bdbc | f20e965e19b749e84281cb35baea6787f815f777 | /Online/Online/OnlineBase/src/SCR/scr.cpp | 76de4f79f509bd165ae928f5f207cead3f52da82 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,100 | cpp | scr.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include "SCR/scr.h"
using namespace SCR;
#define BUFFER_GUARD 64
#define belongs_to(d,r,c) (r >= d->row0+d->row-1 && \
r <= d->row1+d->row-1 && \
c >= d->col0+d->col-1 && \
c <= d... |
9ff1d9340e2a38e087f7cb759de9ec744bf12a66 | 00d7b2a20fe7069de784ccdfb9629168cf5e9d1c | /WildCraft/WildCraft/cStaticObject.cpp | 813b7381861957aec0da429141d6587c9a2ea797 | [] | no_license | zambe666/WildCraft | 3d49c04108352d09f1f7de4a001ed009eda2ee06 | 5ab7a922e8bb60cd9815075238e548d6577f46a3 | refs/heads/master | 2020-06-10T05:40:36.243237 | 2016-12-12T02:13:57 | 2016-12-12T02:13:57 | 76,068,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | cpp | cStaticObject.cpp | #include "stdafx.h"
#include "cStaticObject.h"
#include "cStaticObjectManager.h"
cStaticObject::cStaticObject()
: cGameObject::cGameObject(),
m_pShader(nullptr), m_pMesh(nullptr)
{
}
cStaticObject::~cStaticObject()
{
}
cStaticObject::cStaticObject(std::string szFile)
: cGameObject::cGameObject(),
m_pShader(nu... |
de42b007468fcfb2fbcdfd73116bd6b58750ee2b | 6f2f23972a42469c787735e6f055cb11ddd9114e | /src/EigenFactors/examples/example_solve_1_poses.cpp | 2ed166d22e378d791f1a0688770bb953cec1970d | [
"BSD-3-Clause"
] | permissive | anastasiia-kornilova/mrob | 93477e4754b608cfa86a86478eacc09667a660cd | 4238e01657911bfbc853a6633e5708d75a4fad99 | refs/heads/master | 2022-12-24T04:37:57.164706 | 2020-09-22T15:47:06 | 2020-09-22T15:47:06 | 297,700,178 | 1 | 0 | BSD-3-Clause | 2020-09-22T15:59:33 | 2020-09-22T15:59:32 | null | UTF-8 | C++ | false | false | 811 | cpp | example_solve_1_poses.cpp | /* Copyright (c) 2018, Skolkovo Institute of Science and Technology (Skoltech)
* All rights reserved.
*
* See LICENSE file in the root of the mrob library.
*
*
* example_solve_1_poses.cpp
*
* Created on: Oct 23, 2019
* Author: Gonzalo Ferrer
* g.ferrer@skoltech.ru
* Mobile Rob... |
20574369f1ff96f4fb460bc8ebf1f55ba576180e | df53ea7fe2d551ecfff446275f86f4058fd6e6d3 | /src/GPUupdate.h | 14dbd5d3ca4cdc2718821d14599ad0b0718a25a7 | [] | no_license | nishantp9/DNS_GKM_LPT | 76607751150b7be07a641d0d779373cafbed08f6 | 51dffabc38dcc2c6a880b78a8b70e8fcd69c8787 | refs/heads/main | 2023-08-18T21:19:18.274290 | 2023-08-12T12:32:26 | 2023-08-12T12:32:26 | 382,322,339 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | h | GPUupdate.h | #ifndef GPUUPDATEHEADERDEF
#define GPUUPDATEHEADERDEF
#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <omp.h>
#include "param.h"
#include "GPUAlloc.h"
using namespace std;
/**-------------------------------------------------------------------------------------------------------------*
* MACROS DEF... |
4511b0c2ef8104df5d4c6e944e15b2ca985a122f | c9a4b30401e81219b8dd37c4ce78bfc52fec4ba1 | /Dropper/Classes/System/Physics.cpp | a458afef37b28cf96612e7af12409429a1c7999f | [] | no_license | przemeko/dropper | 4291a892aba98f2e595e3e1d6242487b0437c8e5 | a2908921427e5b4720c1eb16d48e72d1b2e39a57 | refs/heads/master | 2021-01-19T03:19:22.441477 | 2012-11-05T21:20:49 | 2012-11-05T21:20:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | cpp | Physics.cpp | //
// Physics.cpp
// Dropper
//
// Created by Przemek on 21.10.2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include "Physics.h"
Physics::Physics(CCNode *node)
{
this->node = node;
this->isEnabledImpactOfNodePosition = true;
}
void Physics::update(ccTime dt)
{
this->v.x += t... |
f85bb4140cdc3530b8d83d328075b237637e8fa4 | 41a5d97e02c54c5737ac782d732996a9e17a0536 | /Task6/Pic.h | 62d5bd58abecd6249dc64adb0cc715a9b5a5c8c6 | [] | no_license | 0uO/Digital-image-processing | 9be4b78a39c66a7bd1608caee5d31dcea7cd7a53 | 0c597589109368e6d391ca85f86a92cbcf7a1f55 | refs/heads/master | 2020-04-10T18:07:31.273810 | 2019-01-04T07:25:07 | 2019-01-04T07:25:07 | 161,194,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,749 | h | Pic.h | #include<iostream>
#include <fstream>
#include <vector>
#include <math.h>
#include "matrix.h"
#include "gdal\gdal_priv.h"
#pragma comment(lib, "gdal_i.lib")
using namespace std;
bool assert(const bool f, const char * s = "\0");
bool existFile(const char *_path);
bool in(const int x,const int l,const int r);
class... |
9ef7cfd8d2d725215462cc276227406834f0aa51 | 6226e8e97c58a8ca025c03412087a53cca2e54b6 | /src/wikipedia.cpp | 560d1183d2ded9f0621785d65ef19515828d619d | [] | no_license | crosslink/xlink | 84511aa1e365770bf3dfd451e453bebd91057d74 | 41dcecbc6c5fa3c44831a9564baaa54ede777024 | refs/heads/master | 2021-01-10T20:03:35.185601 | 2013-07-17T09:25:49 | 2013-07-17T09:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,481 | cpp | wikipedia.cpp | /******************************************************************************
* This file is part of the XLINK - The Link Discovery Toolkit.
* (c) Copyright 2013 Queensland University of Technology
*
* This file may be distributed and/or modified under the terms of the
* BSD 3-cause LICENSE appearing in the file... |
a72c900fe1734e0d51cf8c373742ffbc924d625e | e3923bb81e2478b20c301a1e029efd42812727de | /d17.cpp | 6e65b75f4a587a74841690e8b71c2105b346508b | [] | no_license | Nk095291/D-ladder | 09ab730432dc8a5078e9562936316b8b6e790cc1 | e6c47cf26a984bf72a03ae51e5f77e564ba7a795 | refs/heads/master | 2021-06-13T04:37:07.857898 | 2020-09-15T06:30:42 | 2020-09-15T06:30:42 | 254,423,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,557 | cpp | d17.cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define float double
#define dg(x) cout<<#x<<" :"<<x;
#define dg_array(ar) for(auto x : ar) cout<<x<<" ";cout<<endl;
#define dg_2darray(ar) for(auto x : ar) {for(auto y : x) cout<< y<<" ";cout<<endl;}
#define endl '\n'
#define fast ios_base::sync_with... |
79e8fdf64ca52ad67a3547327b87817c7bd03e03 | 0c0806f41251c878911b0d57f87044d1b5c54c02 | /controller.cpp | ac4ae7c831c4f19b332fda62171673a9ad4aa625 | [] | no_license | amananand01/Software-Defined-Network | 512acd325155a50cfa5007fffec6b889700fa892 | 2d3836a45ac74d9fa912898b12c9173bd5e3a4a4 | refs/heads/master | 2020-04-08T06:44:48.450612 | 2018-11-26T04:39:28 | 2018-11-26T04:39:28 | 159,110,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,749 | cpp | controller.cpp | /*
AMAN ANAND
CMPUT-379 Assignment#3
*/
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include<stdio.h> // for remove
#include<iostream> // std
#include<unistd.h>
#include<fcntl.h>
#include<fstream> // for ifstream
#include<sys/stat.h>
#include <signal.h>
#include<string>
#include <sys/socket.h>
#include <ne... |
85e7307d6ac3746459484eb066d576bda1a9213b | 85b690ce5b5952b6d886946e0bae43b975004a11 | /Application/Input/openfoam-org/processor0/0.65/alphaPhi10 | 34b2357b64a063f82e1238887ac42e205bb365cd | [] | no_license | pace-gt/PACE-ProvBench | c89820cf160c0577e05447d553a70b0e90d54d45 | 4c55dda0e9edb4a381712a50656855732af3e51a | refs/heads/master | 2023-03-12T06:56:30.228126 | 2021-02-25T22:49:07 | 2021-02-25T22:49:07 | 257,307,245 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,528 | alphaPhi10 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0 |
... | |
b9d526c29e35987b03d62ef9f6c2fd9f60fc8a8d | c43ac755962c8cbb1e062eaa2c2efb6a39becc0e | /detector/camera-comp/moments.h | e4e560f02a6d516daf18e245b6543a2d2d7268ed | [] | no_license | jc-gonzalez/fisica | 6272b2fd484e2bd446ead5030f8454bf0afe9f3b | 218567df497b3ef021964242a08f7a65e588bff4 | refs/heads/master | 2022-04-08T05:10:52.725867 | 2020-02-12T18:57:31 | 2020-02-12T18:57:31 | 153,597,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,590 | h | moments.h | //=//////////////////////////////////////////////////////////////////////
//=
//= moments
//=
//= @file moments.h
//= @desc Header file
//= @author J C Gonzalez
//= @email gonzalez@mppmu.mpg.de
//= @date Thu May 7 16:24:22 1998
//=
//=------------------------------------... |
c190d3a264b67bd81fbec133779eeddd70c44f48 | e1ea5f615a2ee3130926cdb506d4804742bc9fee | /plugins/prefetch/fetch_policy.h | cd91ec2570b8d927fbe78702a89744205c6c7fe5 | [
"TCL",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"ISC",
"OpenSSL",
"MIT",
"HPND",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"Licen... | permissive | apache/trafficserver | 1507804151ab2c2ac50012fdecee6200f2c52c1f | c5d7b19d60646de902fc847f80f57030779a4bfc | refs/heads/master | 2023-08-31T20:10:00.381763 | 2023-08-31T19:15:34 | 2023-08-31T19:15:34 | 356,066 | 1,570 | 981 | Apache-2.0 | 2023-09-14T21:04:36 | 2009-10-31T08:00:10 | C++ | UTF-8 | C++ | false | false | 1,912 | h | fetch_policy.h | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may no... |
764f7a0c612d46207443c84c03c8d40576602597 | ebf214d3eeeadd99abc5952882d4552f4e39c107 | /HFO_mgm/src/bhv_block.cpp | c5235fc27dc50318db959ca78512ae2fdc1d7573 | [
"MIT"
] | permissive | goncamateus/graduationMgm | b87e5a068864253ab7704b247600802ef816a15b | ee264d6f1bffdbbbb04c55c8f43146604d54cc88 | refs/heads/master | 2022-04-10T20:37:45.231599 | 2020-03-06T13:21:31 | 2020-03-06T13:21:31 | 197,375,982 | 6 | 3 | MIT | 2020-02-01T18:14:22 | 2019-07-17T11:26:36 | C++ | UTF-8 | C++ | false | false | 4,225 | cpp | bhv_block.cpp |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "bhv_block.h"
#include "strategy.h"
#include "bhv_basic_tackle.h"
#include <rcsc/action/basic_actions.h>
#include <rcsc/action/body_go_to_point.h>
#include <rcsc/action/body_intercept.h>
#include <rcsc/action/neck_turn_to_ball_or_scan.h>
#include <rcsc/actio... |
b5aa2f8eb1c5017d0729845ad7076f9b1cfef682 | e1b6c27c5c260aa9317a381b40a977784cba471e | /Langford/Galgo01.cpp | 96ac72572b05ee5218dd23078028462e98f2492f | [] | no_license | Cuocina/Langford | 56c8b2b178b966ced0faf4072febf0e2f0aaf83c | 5cbdf7676a1bf56388a451395a4c8faee9c5761a | refs/heads/master | 2023-01-04T08:38:35.499447 | 2020-11-03T01:24:02 | 2020-11-03T01:24:02 | 309,537,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 293 | cpp | Galgo01.cpp | #include "PruebasUnitariasLangford.h"
using namespace PruebasUnitariasLangford;
int main() {
EjecutarPruebasUnitarias();
return 0;
}
// Namespace:
// 1) Como crar un namespace: Ver mis .h
// 2) Como utilizarlo
// 3) Como agregar implementaciones a declaraciones (miembro) de un namespace
|
f791d4bab7a86c4b8aa1146b09613df20873cf18 | 70c7cda5e769ac0aec001363a482bc24f50123b4 | /include/flamegpu/io/factory.h | 4cef2a9a0eb10a09aaa23238f9ba12cd247cfc84 | [
"MIT"
] | permissive | Robadob/FLAMEGPU2_dev | a1509c73ffdec2d6bb1c978d0f936418e0892078 | 3e4106078f754ee90957519fa196a863fd257d1c | refs/heads/master | 2020-08-30T22:25:42.476365 | 2019-11-22T18:24:06 | 2019-11-25T11:33:59 | 218,506,894 | 0 | 0 | MIT | 2019-11-27T14:45:12 | 2019-10-30T10:59:22 | C++ | UTF-8 | C++ | false | false | 1,349 | h | factory.h | #ifndef INCLUDE_FLAMEGPU_IO_FACTORY_H_
#define INCLUDE_FLAMEGPU_IO_FACTORY_H_
/**
* @file
* @author
* @date
* @brief
*
* \todo longer description
*/
#include <string>
#include "flamegpu/io/statereader.h"
#include "flamegpu/io/statewriter.h"
#include "flamegpu/io/xmlReader.h"
#include "flamegpu/io/xmlWriter.h"
... |
4dc8a7978bfae885c020ec92099ee372fb19b100 | a8bffd2cd16ec910e1c2a4d0ca6a85e5d50e59e1 | /MayaPlugin/Mayacommunicator/Sender.h | 63058bc8f02622d78e541dfc8cb7a6fb7de63893 | [] | no_license | FiskNi/Noum-MayaRenderer | 98e1b266b5fd5155ac040c80ceee61e4f505b297 | 8bbbd44da654d626119ec92cd9900d280a7c6492 | refs/heads/master | 2022-12-03T15:36:40.107225 | 2020-08-19T17:28:27 | 2020-08-19T17:28:27 | 275,866,720 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,300 | h | Sender.h | #ifndef _SENDER_H
#define _SENDER_H
#include <Includes/Pch.h>
#include <ComData.h>
#include "MayaCom.h"
struct CameraTransformPacket
{
ComData::Camera data;
bool written = false;
};
struct CameraPacket
{
ComData::Camera data;
bool written = false;
};
struct MaterialPacket
{
ComData::Material materialData;
bool... |
4786daa66dcb3d50849170355a71d99778964c97 | 6f0f90fbfc12d28b6b8d21b2a41e114b38d5c544 | /player/src/SceneObject.h | 73a584bdd89737fc3cf7ce70d899b3a5fbc3d761 | [] | no_license | cha63506/pixelnoir | 6725fe372ffad831c7ae14905c363dfb295e3c1a | 376d85f261b5653c72af54c93ac080eb650cf402 | refs/heads/master | 2018-01-15T17:55:40.117149 | 2011-04-12T08:55:55 | 2011-04-12T08:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,981 | h | SceneObject.h | //Copyright (c) 2010 Heinrich Fink <hf (at) hfink (dot) eu>,
// Thomas Weber <weber (dot) t (at) gmx (dot) at>
//
//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 re... |
98caef7d63e4a217e45e2f316b13c9bb32d248bb | bcb4850dad25a041d7d549c20abbe0f709fa8c95 | /Lab02/cmp_matrices.cpp | 07bab72e6bebdf1d7a2a8c308960fbc3fc5aeeff | [] | no_license | StarUnu/AlgoritmosParalelos | f46eae59df4121729b5f209bea6218243691c4f3 | db13e9f82cea49f2bfe0635068aa74c5c1586910 | refs/heads/master | 2020-05-09T21:58:03.902028 | 2019-04-15T09:38:48 | 2019-04-15T09:38:48 | 181,454,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,250 | cpp | cmp_matrices.cpp | #include <iostream>
#include<stdlib.h>
#include<time.h>
#include <ctime>
using namespace std;
void matriz_randon(int ** & matriz_a, int fil, int col){
for(int i=0;i<fil;i++)
{
for(int j=0;j<col;j++){
int num=1+rand()%(101-1);
matriz_a[i][j]=num;
}
}
}
void mostrar_matris(int ** & matriz_a,int fil,i... |
acbbd7c27fa411b727b44e9cfddca1b42e5ae69b | 958644621411a1c7518e830166544353b7471931 | /node/silkworm/db/buffer.cpp | 0958cb53b4ac4ae613647c030f209654ff77fd7e | [
"Apache-2.0"
] | permissive | bdhobare/silkworm | 351d02515cf9599f901e313d4d2b2cb188e9b35c | 9bfe67d07c60ccbfefdf03fd116ef906ce505ef0 | refs/heads/master | 2023-08-05T20:48:31.224181 | 2021-09-09T17:28:09 | 2021-09-09T17:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,948 | cpp | buffer.cpp | /*
Copyright 2020-2021 The Silkworm Authors
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 ag... |
60e489ec7b10f0dae7731b00ee660159c16ec5f6 | df603f191a69565455d2c685f38336d9c9263fc3 | /src/image.cpp | 9d9972f0ecffd4ca52671feada85e3c8b9dfb3d0 | [] | no_license | MateuszMajcher/Bag-of-Words-SVM | c66a451b9165c4003a96c49e327cd19f0df43928 | 25beb68e208a3933f49c6b988d793d122c335248 | refs/heads/master | 2021-01-22T02:08:50.925320 | 2017-05-24T21:06:24 | 2017-05-24T21:06:24 | 92,336,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,393 | cpp | image.cpp | #include "Image.h"
#include <iostream>
Image::Image() {}
Image::Image(const path& path) {
this->image_path = path;
getImage();
}
Image::~Image() {}
Mat Image::getImage() {
return (this->image.empty()) ? this->image = getImageFromFile() : this->image;
}
Mat Image::getImageFromFile() {
Mat image =... |
f0750ed31361f3b8f84fd19df458790e055c2017 | b9df0ba26926acab8c36939d0695388ffdc8c63b | /myless.cpp | 6054907f8c232ef383d9534cfacecefc4de13efa | [] | no_license | maximtzh1000/CppCoursera | 28a5b8268f2992c6e93a65414aba7a854fb6738e | eb72257878824668bd5ed4313160aaa244afe206 | refs/heads/master | 2021-01-01T05:53:46.825096 | 2015-05-19T15:19:15 | 2015-05-19T15:19:15 | 35,242,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | myless.cpp | #include <list>
#include <iostream>
#include <functional>
using namespace std;
class MyLess{
public:
bool operator()(const int& c1, const int & c2){
return (c1%10)<(c2%10);
}
};
template<class T>
void Print(T first,T end){
for(;first!=end;first++)
cout<<*first<<endl;
cout<<endl;
}
int main(){
const int SIZE... |
468ca7a8b91a18dcb9eb4fdcd08634ae90aa7393 | 55fc6e6deedcad966d44543789469586080c60f3 | /RSA.cpp | 405f40e3a57c330bbd84cb77e383ca2bad441534 | [] | no_license | shiftshift/RSA | c43cb39a28ceee142044a6cbee7e80a1c301dfe5 | cd8ce0d4f22e72bdbf4fec4ddee2436008f3b0d8 | refs/heads/master | 2020-04-01T18:13:41.028648 | 2018-10-17T15:26:13 | 2018-10-17T15:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,006 | cpp | RSA.cpp | #include"RSA.h"
size_t RSA::repet_mod(size_t m, vector<int> vec, size_t n)
{
size_t s = 1;
int i = 0;
for (vector<int>::iterator it = vec.begin(); it != vec.end(); it++)
{
if (*it == 1)
s = (s*m) % n;
m = (m*m) % n;
}
return s;
}
void RSA::convert(vector<int> &vec, int e)//十进制转二进制,存到vec容器... |
f9ed8082e85c3fff216270e01e04101fa00b00c7 | 011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3 | /codeforces/round638/b.cpp | 74b3c881deb83ee115c0748842f849f4be430a7a | [] | no_license | ay2306/Competitive-Programming | 34f35367de2e8623da0006135cf21ba6aec34049 | 8cc9d953b09212ab32b513acf874dba4fa1d2848 | refs/heads/master | 2021-06-26T16:46:28.179504 | 2021-01-24T15:32:57 | 2021-01-24T15:32:57 | 205,185,905 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | b.cpp | #include<bits/stdc++.h>
#define ll long long
#define pb emplace_back
#define mp make_pair
#define V vector
#define PII pair<int,int>
#define PLL pair<ll,ll>
#define xx first
#define yy second
#define all(a) a.begin(),a.end()
#define loop(a,b,c) for(int a = b; a < c; ++a)
using namespace std;
const int N = 1e9;
const ... |
db047385c610dd89c6efd80448bf14e22fb8f0be | 268c3ec74b3fa5139191c373cea3cebdd04a2dfa | /309. Best Time to Buy and Sell Stock with Cooldown.cpp | 71fc283118e1961b1d8a984cfb96effcabca9835 | [] | no_license | zslomo/leetcode | 0dd8f3437b9900763dd0add37623a6e5bd9ad878 | 5ad09a331126db97fbe57adb63d93dfdcb729847 | refs/heads/master | 2021-01-10T01:49:26.398856 | 2016-10-27T14:50:55 | 2016-10-27T14:50:55 | 50,284,580 | 12 | 2 | null | null | null | null | GB18030 | C++ | false | false | 870 | cpp | 309. Best Time to Buy and Sell Stock with Cooldown.cpp | #include<vector>
#include<stdio.h>
#include<algorithm>
using namespace std;
/*DP方程:
sell[i] = max(sell[i - 1], buy[i - 1] + prices[i])
buy[i] = max(buy[i - 1], sell[i - 2] - prices[i])
sell[i]代表当天卖出股票的累计最大收益是前一天卖出或前一天买了
buy[i]代表当天买股票的累计最大收益是前一天买了,或者前一天cooldown前两天买了
*/
class Solution {
public:
int maxProfit(vector<int>... |
b80d530cfbd52391f28157e8bfc3894924e21324 | 62d74675721d939baae340864c0e79d3037df189 | /sample program/array_sort2.cpp | 6ea3b5f5d513bc3f940a9ee3d14cffcc35dbdcc4 | [] | no_license | shubhamkanade/cpp-program | c5fe1c85d2adac7c67ebd934c34e9b69509466d4 | 0cf279bd9cd473541a8a72bfee1f4b948d7fdaba | refs/heads/master | 2021-07-12T08:49:14.479420 | 2021-07-06T03:24:06 | 2021-07-06T03:24:06 | 172,293,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | array_sort2.cpp | #include<algorithm>
#include<stdio.h>
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
using namespace std;
int main()
{
int brr[]{43,12,67,23,86,36,58,10};
int size = sizeof(brr) / sizeof(brr[0]);
sort(brr, brr + size);
for(int i : brr)
cout<<i<<endl;
return 0;
}
|
bf6253c609981aa6628dba675593ac87dfdcb351 | 4bc40d60c146300030512b11e375cb8abbf2f5b3 | /LiteX/software/Doom/mc1-doom/src/dstrings.c | 7ba5414bfc720ac228dddccb0adf156014fd49cf | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause"
] | permissive | BrunoLevy/learn-fpga | fd18ea8a67cfc46d29fac9ad417ae7990b135118 | fd954b06f6dc57ee042d0c82e9418e83c4b261b4 | refs/heads/master | 2023-08-23T06:15:43.195975 | 2023-08-04T06:41:22 | 2023-08-04T06:41:22 | 267,350,664 | 2,036 | 191 | BSD-3-Clause | 2023-06-23T13:41:44 | 2020-05-27T15:04:05 | C++ | UTF-8 | C++ | false | false | 2,253 | c | dstrings.c | // Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published b... |
a4db5defea5e95f09d499a902a481c54e8aa67f0 | 557b22a1822d6e88fb77cab6aa7de07d68523f6b | /tests/unit/sccdag_attributes/suite/clonable_alloca/test.cpp | c035893c5174865394bc035e188dcc16d0b5fac4 | [
"MIT"
] | permissive | sapostolakis/noelle | 1330601af6664225f437816e037a2202c388d500 | e9a1eabaac4380b88b462a5e5baa1396706f4bfe | refs/heads/master | 2022-12-27T20:55:53.291375 | 2020-10-08T05:11:32 | 2020-10-08T05:11:32 | 292,887,673 | 1 | 0 | MIT | 2020-09-04T15:50:09 | 2020-09-04T15:50:08 | null | UTF-8 | C++ | false | false | 2,213 | cpp | test.cpp | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
struct ThingOfPrimitives {
char charOne;
short shortOne;
int64_t justRightOne;
long long int reallyBigOne;
};
void writeTo(int &i, int v) {
i = v + 1;
}
int main (int argc, char *argv[]){
if (argc < 1) return 0;
int iteration... |
972985ef5479fefe73d3abd24e1a5298a42d8610 | 550925ae3cf6fe9788615ee3a69c508c09dc78b8 | /helpers/helpers.cpp | c768dbfb29141772d2840fab78296a2653ac132a | [] | no_license | hahmed01/Zoo-Tycoon | 113a5eb465c80d44426623905e4121e45256f875 | ffd565e1ab8c3b6e0b9cfaebe1af8e926085152e | refs/heads/master | 2020-05-14T19:55:59.423029 | 2019-09-14T15:02:34 | 2019-09-14T15:02:34 | 181,937,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,783 | cpp | helpers.cpp |
/*********************************************************************
** Program name: Zoo Tycoon
** Author: Haya Ahmed
** Date: October 21, 2018
** Description: Implementation of the helper functions.
*********************************************************************/
#include <iostream>
#include <strin... |
23e51773c426d6d5e5fb10816cb33be27cc8e369 | d0dabd636d23158c97e35432d8bf0c6f8e97b8be | /increment.cpp | 17c64593eeba0d79657e37f891caa3ae6f6b140a | [] | no_license | Dwikaputra11/Sample | 5ca198d21acaa9d7a8c469a2ffb6ecd6fd615e77 | 25acec4abf9718b79a507c3bba4d50944e5a74dd | refs/heads/master | 2022-12-31T11:11:40.185127 | 2020-10-17T13:51:42 | 2020-10-17T13:51:42 | 304,889,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | increment.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//increment dan decrement
/*Increment ada 2 : preincrement dan postincrement*/
int a = 5;
int b = 5;
//postincrement
cout << a << endl;
cout << a++ << endl; // diprint a dlu baru ditambah satu ,a++ = a + 1
cout << a << endl;
cout ... |
a388efbba5b3bb703714b7ab1ef9a1a39f6fe617 | 1d13848934bdfce2084b6577032069f5718f2efa | /gallery/interview/leetcode/384. 打乱数组.cpp | 31b278843fced27bfd26c446de82f36368042868 | [] | no_license | kifish/prac_code | 3e5081831e99b280c9a97c74e99031f2836644cc | cfc05199c2adac3420e953a1053bb0d362346f55 | refs/heads/master | 2023-03-21T05:30:52.661802 | 2023-03-11T07:17:13 | 2023-03-11T07:17:13 | 121,747,790 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | 384. 打乱数组.cpp | /*
https://leetcode-cn.com/problems/shuffle-an-array/
shuffle
https://leetcode-cn.com/problems/shuffle-an-array/solution/zhong-gui-zhong-ju-384-da-luan-shu-zu-by-1slm/
和下面的链接的第一种解法是一样的
https://leetcode-cn.com/problems/shuffle-an-array/solution/xi-pai-suan-fa-shen-du-xiang-jie-by-labuladong/
另一种等价的形式:
https://yjk9... |
b8beac5a1147decc5dacdba9553a6e5465b5759f | 2b1b459706bbac83dad951426927b5798e1786fc | /src/connectivity/wlan/lib/mlme/cpp/tests/features_unittest.cc | 312fc852cdcc3a1552bc154508be92fc35455bca | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 6,656 | cc | features_unittest.cc | // Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/wlan/common/c/banjo.h>
#include <fuchsia/wlan/common/cpp/fidl.h>
#include <zircon/status.h>
#include <cstring>
#include <gtest/gtest.h>... |
d2445d4a10a73b15d76ee7c98fcfc9bc42949aee | 45fbb99a533c56c2d75ebe2a8d221fe1589ed7c1 | /VS/Spike-Masquelier-LIB/v3/Topology.hpp | 3e144e183885f62c26831a72aa8c858c4218b686 | [
"MIT"
] | permissive | Hao-zy/Spike-Masq | c276e05719b7d6d7abfccb998ef9ac8ce7b38c3d | 01f458dc5792947c892af296ea82d0a7447dd19c | refs/heads/master | 2023-07-12T22:28:38.610978 | 2017-11-07T13:51:27 | 2017-11-07T13:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,280 | hpp | Topology.hpp | // The MIT License (MIT)
//
// Copyright (c) 2017 Henk-Jan Lebbink
//
// 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 without limitation the rights
// to us... |
762bf7d933bd08466617f77b86b31eec3bc1388d | b0538a9f0d4c035a2fbb54746c417789193855b2 | /src/staticmethods.h | 42db02346960b3605a1f6ec03809fdf33ff9ed5a | [] | no_license | Chrono831/Air_Hockey | 0d57e332c9d99ac57ab3229aadb8e6b22d2932fe | a8ba1d435abdcfa05178ce513f29801981b8d0e9 | refs/heads/master | 2021-01-01T17:04:48.217223 | 2011-09-01T05:32:38 | 2011-09-01T05:32:38 | 2,274,933 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 681 | h | staticmethods.h | /**
* Air_Hockey Project File
* https://github.com/Chrono831/Air_Hockey
* Dylan Hall
* dylan.p.hall@gmail.com
* github: Chrono831
*
*
* staticmethods.h
*
* Created: Aug 30 2011 10:32:03
*
* Comments:
*
*/
#ifndef STATICMETHODS_H_INCLUDED
#define STATICMETHODS_H_INCLUDED
#include "stdincludes.h"
... |
dce5911c521eb5da42b59aedd2c2492da74374a8 | 8ecb6b63daf52f04d5815f06a9afe29adcebb42e | /baekjoon/computational_thinking/hanoi_dfs.cpp | 15f9516dccf1491eba90f2031e4a03302c251ea1 | [] | no_license | yejineee/problem-solving | 82cb9deef7cb2da47d90bcd47056edda388c7988 | 1ad2675350169430608961453645e8d686706181 | refs/heads/master | 2023-04-10T05:49:32.466766 | 2021-04-17T02:58:24 | 2021-04-17T02:58:24 | 193,488,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,173 | cpp | hanoi_dfs.cpp | #include <iostream>
#include <stdio.h>
#include <vector>
#include <queue>
#include <utility>
#include <set>
#include <math.h>
#include <algorithm>
using namespace std ;
const int INF = 999999999 ;
const int n_rod = 3 ;
set<vector<vector<int> > > visit ;
int N, dest ;
int next_dir[4] = {-2, -1, 1, 2} ;
int min_move = I... |
2c6c667d7bc4f2059c6ff1df7f03fc564f7770a7 | 8247b3ca89a53f4c70fc0e876d902468f06a31c7 | /code/45.cpp | 0a99e7bb200245743cacac7ab199bfc5801da88a | [] | no_license | Sean-Huang65/leetcode | c0d622554be9a9777ffb7a4c6a34f3eb4fd72813 | 562f8ebcfc67c21a43f0dd5de412437d1e21e4bf | refs/heads/master | 2022-04-01T09:29:23.003496 | 2019-11-20T17:43:00 | 2019-11-20T17:43:00 | 124,843,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | 45.cpp | /*
给定一个非负整数数组,你最初位于数组的第一个位置。
数组中的每个元素代表你在该位置可以跳跃的最大长度。
你的目标是使用最少的跳跃次数到达数组的最后一个位置。
示例:
输入: [2,3,1,1,4]
输出: 2
解释: 跳到最后一个位置的最小跳跃数是 2。
从下标为 0 跳到下标为 1 的位置,跳 1 步,然后跳 3 步到达数组的最后一个位置。
说明:
假设你总是可以到达数组的最后一个位置。
*/
/*
解法一:16ms(58%)
贪心:只记录在跳n次下能够达到的最远位置
可优化方向:dp数组可以省略
*/
class Solution {
public:
... |
78906107f4bb10136b64f0daab6b04fb58301afa | 3f3a42f429f8bcd769644148b24c3b0e6e2589ed | /GameProjectCopy/GameEngine/GameApp/BaseTypes/Math.cpp | b99423d6faeef09308f4fe76b161148b93016cc9 | [] | no_license | DanielNeander/my-3d-engine | d10ad3e57a205f6148357f47467b550c7e0e0f33 | 7f0babbfdf0b719ea4b114a89997d3e52bcb2b6c | refs/heads/master | 2021-01-10T17:58:25.691360 | 2013-04-24T07:37:31 | 2013-04-24T07:37:31 | 53,236,587 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,758 | cpp | Math.cpp | // Copyright ?2008-2009 Intel Corporation
// All Rights Reserved
//
// Permission is granted to use, copy, distribute and prepare derivative works of this
// software for any purpose and without fee, provided, that the above copyright notice
// and this statement appear in all copies. Intel makes no representatio... |
6cd0acc503c8dc67038ed61a82d92833d2fb8814 | d22c60c6076725a6643e40b07d40c666a1b5301a | /chaizhuang/opengl_view/MultiShotsOpenglView.h | 22718e00e50afa48974fac7103ce2a995c06392f | [] | no_license | luohaifenglight/dismounting | ec31e066d89088f0aa4b8c490db2b44a5202fab1 | ccc24d57f38ea904008b698826b1d48122612fa1 | refs/heads/master | 2021-01-02T22:30:15.414464 | 2017-08-09T01:48:28 | 2017-08-09T01:48:28 | 99,332,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,402 | h | MultiShotsOpenglView.h | /****************************************************************************
This file is part of GLC-Player.
Copyright (C) 2007-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 2.2.0, packaged on July 2010.
http://www.glc-player.net
GLC-Player is free software; you can redistribute it and/or modify
... |
e2f08f9de53b84409cfd5ab12b6c3d607fa9d2d7 | 4a3d1d6bf2b67ebcb574315653c8bcf50fd3683a | /main.cpp | ea7822042e18cb3029b1c3f822862983e4545617 | [] | no_license | exelored/My_training | 444690e399276e66b214cdc72ff7b2a7fc237bd2 | c624756269ad2b646560b86b90cecb5d296d8549 | refs/heads/master | 2016-08-11T06:38:29.625555 | 2015-12-08T17:12:11 | 2015-12-08T17:12:11 | 47,408,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,572 | cpp | main.cpp | #include <Windows.h>
#include <cstdio>
//Начало-Прототипы
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // Главная функция
int createWindowMP(HINSTANCE hInstacne);
void upWindow(int &nCmdShow);
void WindowFormMgmt(HINSTANCE hInstacne);
void OpenAndCreate(HWND hwnd, WPARAM wParam);
void... |
91db80dc5917035c709c46495eeb0505c5afc42f | ad9328bca8a855510fd04e382379c61f655bf69f | /Project1/Project1/DeadState.cpp | d4d0d9f1c2fb1c2d3284250060707e71e1fea5e7 | [] | no_license | kooa77/trp2DtileGame_v2 | 1e25eddc0371f783afd49bdc8c6aaae8f0470e6f | 5371156e5eb63cb26ad66671e4a889a8a49d0e1e | refs/heads/master | 2021-05-05T14:09:47.913282 | 2018-02-13T02:16:37 | 2018-02-13T02:16:37 | 118,422,653 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | DeadState.cpp | #include "Sprite.h"
#include "DeadState.h"
DeadState::DeadState(Character* character) : State(character)
{
}
DeadState::~DeadState()
{
}
void DeadState::Start()
{
State::Start();
}
void DeadState::Update(float deltaTime)
{
State::Update(deltaTime);
}
void DeadState::CreateSprite(std::wstring textureFilename, s... |
9c11e9e6a77b82bf5554f072b38797da462eb9a7 | a8e8126f2d284598a1020b710abf740c2a1f163a | /ch03/ex3_17.cpp | 582869fbc523c535430da90aab727279db954749 | [] | no_license | zhuqiweigit/cpp_primer | 99f05254b68d4c8bae2e86e7f8ec3f3ddc498055 | 81eceed74385f36df8ff5c5b63222ec67dce33f3 | refs/heads/master | 2020-09-21T16:40:34.126628 | 2020-05-10T06:26:28 | 2020-05-10T06:26:28 | 224,852,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | ex3_17.cpp | #include <iostream>
#include <vector>
using namespace std;
template <typename T>
inline void outVector(vector<T> a){
decltype(a.size()) size = a.size();
cout << "size: " << size << endl;
for(auto item : a){
cout << item << " ";
}
cout << "\n";
}
int main(){
vector<string> words;
str... |
90b9e86bb3d3a1846d1583efef194e910b8b7821 | ffc4f99006c7e4eac1e74d0f909f048dc9739fba | /dz-3/source files/main.cpp | bf9bdfdcbe71385f22309d22f32b1428f18335e0 | [] | no_license | Denactive/Algorithm | 323b93d97f8ff27bdf6fadca1300a23b4aef8812 | 09251dd5f53f14d1a38ec48785141e25d761e752 | refs/heads/main | 2023-05-27T07:19:14.819773 | 2021-06-06T15:02:16 | 2021-06-06T15:02:16 | 354,117,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | main.cpp | #define BUILD_LISTGRAPH 0
#define BUILD_ROUTES 0
#define BUILD_OPTIMUM_ROUTE 1
#include "list_graph.h"
#include "dsu.h"
#include "8game.h"
#include "Shortcuts.h"
#include "optimim_route.h"
int main() {
if (BUILD_LISTGRAPH)
//run_1();
test_1();
if (BUILD_ROUTES)
//run_2();
test_2();
if (BUILD_OPTIMUM_ROUTE)... |
c75b81f0c753a5316cff4ffa22fe6db100bdc3e8 | 3a7d140ec93581c61c9c5680cf6bbc319266f688 | /Solved problems on contest/left handers right handers and ambigextures.cpp | c16c118c857dc250400e80f760e0581046c6df3e | [] | no_license | Ovishake1607066/Solved-Codeforces-problems | dcc6e33d471e4e92d1cf76b7c5aab4b0278fbf55 | fe038bb365bd666b2bbcad815e9ad3206d7e0988 | refs/heads/master | 2022-07-17T04:12:21.628142 | 2020-05-13T19:20:09 | 2020-05-13T19:20:09 | 263,710,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | cpp | left handers right handers and ambigextures.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int l,r,a,x,y,z,i=0,j,m;
cin>>l>>r>>a;
m=l;
x=a+l;
if(m>r)
{
m=r;
i=1;
x=a+r;
}
if(x==0)
cout<<0;
else if(i==0)
{
if(x<=r)
{
... |
3c2807bc7fa569b6fba8aeb29c11cccc46bccd23 | ade75ca76cc451f63479604ac060560a3ee78b56 | /WaveFunctions/slaterdeterminant.h | 72d4b454b1a0e55461e4074eefe71d35117c4b48 | [] | no_license | vildemjo/vmc_fermions | 988961fa9a64dae2cd87b19f2e9ba47ac762f667 | 5acf710ffce878fd67e1f2d4845c77d4bf1b7d0c | refs/heads/master | 2022-10-10T20:12:47.710679 | 2020-06-03T15:00:49 | 2020-06-03T15:00:49 | 256,224,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | h | slaterdeterminant.h | #pragma once
#include "wavefunction.h"
class SlaterDeterminant : public WaveFunction {
public:
SlaterDeterminant(class System* system, double alpha);
double evaluate();
double computeDoubleDerivative();
std::vector<double> computeDerivative(int particleIndex);
double computeAlphaDerivative();
d... |
6d046bf2aee1c5880cddb25f9301adaf64481ba1 | e0a15d6a8c6c16b3732063dedc7b38b82ec3074d | /C++/maths.cpp | 63853abf7dc9b332bf34673806d60986b47e8934 | [] | no_license | Dharana23/Competitive-Coding | 3ccce7071015d4bd20965668fe024dbcc2818343 | 3760ffc95547d2331ffab5f4c8eae9985029067a | refs/heads/master | 2022-10-11T16:40:44.033279 | 2020-06-12T09:55:15 | 2020-06-12T09:55:15 | 255,526,714 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | maths.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
freopen("bendin.txt", "r", stdin);
freopen("bendout.txt", "w", stdout);
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
int x3, y3, x4, y4;
cin >> x3 >> y3 >> x4 >> y4;
int A1 = (x2 - x1) * (y2 - y1);
int A2 = (x4 - x3) * (y4 - y3);
int left = max(... |
a80776582bda959763e8e4a72aef3cce061a4eb1 | cd27082e85ab63743a2c7b6dc16d2e63d8021694 | /Candidate.cpp | b218d1bcb60bb8b87d6a789cdee9ff677ec74d72 | [] | no_license | MishokkohsiM/C- | 5b4a26b493af06a961ae121e30bdc2d00851b6e1 | 98149846df2ab41ada59e22fde7f79d1f1a5d757 | refs/heads/master | 2020-05-27T10:51:47.502178 | 2019-05-25T16:44:54 | 2019-05-25T16:44:54 | 188,590,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,216 | cpp | Candidate.cpp | //
// Created by mishok on 4/16/19.
//
#include "Candidate.hpp"
Candidate::Candidate():FIO(),email(),vacansies(0) {
}
Candidate& Candidate::instance() {
static Candidate instance;
return instance;
}
bool Candidate::check(vector<int> skills, vector<int> requirements) {
if (skills.size() == 0 && requireme... |
36e65779c9693f39551cfdd13eaffe848db28e34 | 8356e0864dd7d8ba0d290fc43c3acae7e8e9269a | /leti/1303/am/2/lab№2/ChatClient/area_message_form.cpp | 27fd84f2277a702cf08b8537679c2a8c8b9d19d2 | [] | no_license | eugenyk/hpcourse | b5231a59a3eed621fce99baabb1b85f4056e441f | d3360d823e464b0bb2e451fc8594b5471beb8455 | refs/heads/master | 2022-12-24T22:52:28.489809 | 2019-07-01T15:37:33 | 2019-07-01T15:37:33 | 46,411,508 | 32 | 319 | null | 2022-12-16T03:40:17 | 2015-11-18T10:26:09 | C++ | UTF-8 | C++ | false | false | 788 | cpp | area_message_form.cpp | #include "area_message_form.h"
#include "ui_area_message_form.h"
AreaMessageForm::AreaMessageForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::AreaMessageForm)
{
ui->setupUi(this);
connect(ui->sendMessageButton,SIGNAL(pressed()),this,SLOT(getTextMessageFromForm()));
}
void AreaMessageForm::getTextMe... |
6d648838f35f79ec56d7a7156083669d2a17f7f1 | df548a576e6d7bf350dcfd7a20082e09abad9464 | /attr_sort.cpp | 2cc1ab037fcc4321a0456f241e4d9ddf5ed1cc71 | [] | no_license | ruby0701/JuniorProj | 6110f900c909c617df2ab1ee8ee4737b51279358 | b1f6d94c85cd3f5163da03c410158bc8d18b4b84 | refs/heads/master | 2021-01-09T20:16:57.875757 | 2016-07-03T08:54:59 | 2016-07-03T08:54:59 | 62,488,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,381 | cpp | attr_sort.cpp | // attr_sort.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <ctype.h>
#include <algorithm>
#include <map>
using namespace std;
#define attrNum 10
#define bound 51
std::multimap<double... |
1addb7dd79a0346859eca9d449af9f130b3f4724 | d6f3668b930770e3d63bfb5c6fbfeeb187f1c607 | /BassZeroVSTi/Source/GUI/Components/SignalControlEditor.cpp | 01c3d26b1946b7965612dc3f34deb7c9b2f6244e | [] | no_license | gorangrubic/imbAVR.ArduinoSynth | 97240e751f1833a2c9fa472143fbb741b1ce07a8 | 45a9d15e64881bf44e50f3567203b5899f49e9d6 | refs/heads/master | 2020-07-09T00:58:50.968308 | 2019-10-28T05:25:54 | 2019-10-28T05:25:54 | 203,828,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,005 | cpp | SignalControlEditor.cpp | /*
==============================================================================
This is an automatically generated GUI class created by the Projucer!
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
an... |
1033f44c32ac20fefd297b3e195271cad5a1659e | 51bd78dadd37fe06c5b933c60b86d19f335adc73 | /submissions/57581ef1bb50d92eb4000001/src/main.cpp | 4fd81af0d18b313ac91f0f6e11aea2cb2ef9fdd4 | [] | no_license | jsdelivrbot/challenge_word_classifier | f78202f3d91b2f69f4daca3ef6917970d9567b18 | cf80e6489c5310cdc90b25312603d6d47bf8c4dd | refs/heads/master | 2020-04-10T06:11:10.736995 | 2018-12-07T16:22:13 | 2018-12-07T16:22:13 | 160,847,871 | 0 | 0 | null | 2018-12-07T16:22:24 | 2018-12-07T16:22:23 | null | UTF-8 | C++ | false | false | 32,601 | cpp | main.cpp | #undef NDEBUG
#include <assert.h>
#include <map>
#include <unordered_map>
#include <vector>
#include <string>
#include <set>
#include <iostream>
#include <fstream>
#include <array>
#include <algorithm>
#include <stdint.h>
#include <boost/filesystem.hpp>
#include "state.h"
// #include "vld.h"
using nam... |
7c8f119a06741a1af8fda2d07127e1cc235b263f | 6f811c09de0d2a582edbca26ecc7d054fcc380ed | /cpps/cpps_cstate.h | 016bebf73a04f8cbb9d2d5afbd079998591d1710 | [] | no_license | akzi/cpps | 5d80f2402eeea6d8c84a7d37449d2fedcd9719ab | ae577c01b6608ba0eebe882f59b9c7e0732cb7ad | refs/heads/master | 2020-09-06T13:34:40.899864 | 2017-01-14T04:58:28 | 2017-01-14T04:58:28 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,481 | h | cpps_cstate.h |
#ifndef CPPS_CSTATE_CPPS_HEAD_
#define CPPS_CSTATE_CPPS_HEAD_
//===================================
//@Author : Johnson
//@Email : jiang_4177@163.com
//@Date : 2015/11/20 (yy/mm/dd)
//@Module : CPPS_CSTATE
//@Description : CppsState
//@website : http://cpps.wiki
//==================================
namespace c... |
67a0f06a9a3856afba4ddae2767184421b4cc514 | e4ca3e53ecc2dbfc469b7309cdb11447309d0652 | /BLE_TEST/BLE_TEST.ino | f53264f755fa5a2e730defe2fccf3f1aa3afef30 | [] | no_license | pablitocalvo/sketchook | 6623d4c765c4afb09eeb9795f813345001aa8b4c | 25dfaa135cf3b62789871062c1fadf86b4677450 | refs/heads/master | 2020-03-29T23:12:40.662074 | 2018-09-26T17:07:46 | 2018-09-26T17:07:46 | 150,461,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,627 | ino | BLE_TEST.ino | #include <SoftwareSerial.h>
SoftwareSerial bt(2,3); // RX, TX sul modulo !!
//SoftwareSerial bt(RX,TX); // RX, TX
//
String command = "";
int mode=0;
void inviaComando( String comando)
{
Serial.print( "inviato comando=");
Serial.println( comando );
bt.println( comando );
delay(100);
... |
f11f29906cd21a7d232808c8aeaa67ce9721ac61 | e6aed27f4d8d7dfd78882f6b615c133b5b10c3e4 | /pa1/Main.cpp | ca14cd3be01f70926714df4dcac414abed0b2d7e | [] | no_license | jtesquibel/Professional-C-Projects | c46ee3694f6a71efc6321b58e0031b54c9b0f7a8 | 4e80f94d2fca24f7ba0e24237da3e9996ebd3679 | refs/heads/master | 2021-01-13T17:20:52.711316 | 2017-05-19T20:20:29 | 2017-05-19T20:20:29 | 81,892,284 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | Main.cpp | // Main.cpp : Defines the entry point for the console application.
//
#include "RleTests.h"
#include "RleData.h"
#include <cstring>
#include <iostream>
#include <string>
#include <sstream>
#include "RleFile.h"
void Part1Tests()
{
TestFixtureFactory::theInstance().runTests();
}
int main(int argc, char* argv[])
{
if... |
9f2f3c0ad93cf04348f43bc04305d0de636ef6ed | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/content/public/common/resource_type.mojom-shared.h | 50cc09d9df9745516de0a25347835483aa425f79 | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,340 | h | resource_type.mojom-shared.h | // content/public/common/resource_type.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_COMMON_RESOURC... |
3922378fc1f25e0bf084bb68bd552eea1fbcd334 | f8ea7e042a62404b1f420a7cc84b7c3167191f57 | /SimLib/TopoBriteNode.cpp | 4bc3fc828aafd2c70490cae898f55ac3a2572b2c | [] | no_license | alexbikfalvi/SimNet | 0a22d8bd0668e86bf06bfb72d123767f24248b48 | 20b24e15647db5467a1187f8be5392570023d670 | refs/heads/master | 2016-09-15T17:50:23.459189 | 2013-07-05T14:41:18 | 2013-07-05T14:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | TopoBriteNode.cpp | /*
* Copyright (C) 2010-2012 Alex Bikfalvi
*
* 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 Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program i... |
3c0a280aaa9999740637c344a69075c4c938141b | 550ddc3654e88a1c014d467176ed6c1ec6512c5c | /window/global_elem_window_factory.cpp | 4b238f1630e8a27a04d66a94f2d081897d03d32a | [
"MIT"
] | permissive | raultron/elementary-plotlib | 9af495f74cce86f553f423d39d6e216db120787b | 7e1c27c06eae98e3bf0fd0e56ae4c2beafa115f7 | refs/heads/master | 2022-06-02T19:40:18.738996 | 2020-04-29T21:59:50 | 2020-04-29T21:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | global_elem_window_factory.cpp | #include "global_elem_window_factory.h"
#include "native_elem_window_factory.h"
elem_window_factory *global_elem_window_factory = new native_elem_window_factory{};
|
3e72dfdd4e36e13052d5ab4c4badb6ff4375d8c0 | ba23694e565f6fc044be9867ee54d191cb9f3af8 | /codechef/long/magic.cpp | 1cee2975cb3fcf41580ede08da8efd6fb04270bc | [] | no_license | shanu333/Practice-Codes | 20214f2c6b5f12ca1e1d3ee3e0536e9b1370fb98 | 389b359e151e0e95294f3849a2fede14c342b41f | refs/heads/master | 2016-09-06T08:22:26.467120 | 2014-12-02T05:35:38 | 2014-12-02T05:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | magic.cpp | #include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
long long a[100005];
int main()
{
long long int t, n;
scanf("%lld", &t);
while (t--) {
scanf("%lld", &n);
for( int i = 0; i < n; i++) {
scanf("%lld", &a[i]);
}
//sort(a, a + n);
... |
3d40940e576dbb00cfb90ef8f99221fa28d05b45 | 648f4f5c484a308836df17db9730b79d2185a5bf | /src/MetaAuthoringTool/VRCAT.Wrapper/MGUITexture.cpp | 45b4444c6c6d102e574f4b6d32ca7d4563533307 | [
"MIT"
] | permissive | phs008/PrismSolution | 8e2f5e27ed773ffaefba75ad470c91c600947027 | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | refs/heads/master | 2021-01-12T07:43:45.305131 | 2017-01-10T07:01:37 | 2017-01-10T07:01:37 | 77,004,005 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,174 | cpp | MGUITexture.cpp | #include "EGuiPCH.h"
#include "EGuiRoot.h"
#include "EGuiTools.h"
#include "EGuiMath.h"
#include "EGuiDrawCall.h"
#include "EGuiCamera.h"
#include "EGuiPanel.h"
#include "EGuiTexture.h"
#include "EGuiButton.h"
#include "EGuiCollider.h"
#include "MGUITexture.h"
//j2y
namespace MVRWrapper
{
//-----------------------... |
ae853b3af13e0df8e562099294dcc6c856e22548 | 10f43799bdc3a4873ef6d3ccd8ded5bd3a33e740 | /SOLID/Open_Closed_Principle/main.cpp | 1a2c47b9de9a0593c0774f863a45474a03ea6066 | [
"MIT"
] | permissive | danielyoshizawa/Design_Patterns_In_Modern_Cpp | 5716cb3ef3c71b410efa436fee3fff71eaa0ed74 | 88fd14753ff1a8978aa33d9af886129e8ae116ab | refs/heads/main | 2023-01-10T05:29:23.649432 | 2020-11-22T19:26:00 | 2020-11-22T19:26:00 | 313,990,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,417 | cpp | main.cpp | #include <iostream>
#include <algorithm>
#include <vector>
// Open-Closed Principle
// Should be open for extension but closed for modification
//
// I'll replicate the example from the course
// because I really liked the way they did it.
enum class Color { red, green, blue };
enum class Size { small, medium, large... |
214a8debc47e2ff58288c491d5a53233efc93013 | da1500e0d3040497614d5327d2461a22e934b4d8 | /cobalt/renderer/rasterizer/skia/software_rasterizer.cc | 98218da748f5f7146979824ef68dc9f138084b07 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 4,742 | cc | software_rasterizer.cc | // Copyright 2014 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
e81e981c5978d95cce0010e2c64ad7a1d0565f23 | 8f24e07e9e6a0dbf19dbb5beaf7f4daae88671d1 | /Part/Testing/Geom/GPoint/main.cpp | 7b1d6fcbacfe23e16f5192eb658404125139645c | [] | no_license | rischimart/part | ab3043868bff0c5b5ab1690f063cfd85eed0408d | daa45fdac269299549b1cf3e2c0e9c174c361159 | refs/heads/master | 2021-01-23T17:20:35.396553 | 2012-04-17T15:16:54 | 2012-04-17T15:16:54 | 3,990,791 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | main.cpp | #include <GPoint.hpp>
#include <iostream>
using namespace std;
#define CHECK(_e) if (!(_e)) print_error(__FILE__, __LINE__);
inline void print_error(const char* file, int lineno)
{
cerr << "Test fail in " << file << ":" << lineno << endl;
}
int main()
{
GPoint p(2,3);
GPoint q(p);
q.rotate90_then_reflect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.