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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
144c11fcd3417d194e432e38a81d2a1d1f0d4c17 | ecb3b06a34e6359facf4931bc28af95d0a217125 | /VREP/Objects/Robot.cpp | 6cc4d9e3cbcd7324abc721abd1bc43de6ab25f1c | [] | no_license | Ernyoke/VREP_Pathfinding | b48046dce79fdc6e1aeab7f3b690648e0f179a2a | 53d0c5f4e90ad718afe85b8b78bfe9892bc3fb20 | refs/heads/master | 2021-01-16T21:52:07.338929 | 2016-06-19T19:51:07 | 2016-06-19T19:51:07 | 57,463,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | Robot.cpp | #include "Robot.h"
RobotBuilder::RobotBuilder(simxInt clientId, simxInt handle) : ObjectBuilder{clientId, handle} {
}
Robot::Robot(const RobotBuilder &robotBuilder)
: Object(robotBuilder) {
}
Robot::~Robot() {
}
|
75b9d2ac1f9807b93700c20defe76d70fb5eb154 | 5ab7032615235c10c68d738fa57aabd5bc46ea59 | /prod_digits.cpp | 28904bbd670fd644c44957828d7a61e398db28fb | [] | no_license | g-akash/spoj_codes | 12866cd8da795febb672b74a565e41932abf6871 | a2bf08ecd8a20f896537b6fbf96a2542b8ecf5c0 | refs/heads/master | 2021-09-07T21:07:17.267517 | 2018-03-01T05:41:12 | 2018-03-01T05:41:12 | 66,132,917 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | prod_digits.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=0;i<t;i++)
{
vector<int> vec;
vec.resize(10);
int var,n;
cin>>var;
n=var;
for(int j=9;j>1;j--)
{
while(var%j==0&&var>0){var/=j;vec[j]++;}
}
if(var>1){cout<<-1<<endl;}
else if(n... |
7da207bd0511458a7427daa1b2f0e28ac236c0a1 | 6071f37accb35963bcc6cf7ea7a6a43cc2aabc09 | /Div3/#515/BSolucion1.cpp | a2797f422c045383c3bb82db1d23424e70a3e93d | [] | no_license | danyvera/Codeforces | 49ca260365ac48586362bffab36802897fc24f5b | 530c891a40f9eb1f92536ecd97aef8d48d30d1d5 | refs/heads/master | 2023-03-02T00:43:58.776872 | 2021-02-03T18:46:49 | 2021-02-03T18:46:49 | 287,805,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | BSolucion1.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n, r;
cin >> n >> r;
vector<int> a(n);
vector<int> heaters;
for(int i=1; i<=n; i++){
cin >> a[i];
if(a[i] == 1){
heaters.push_back(i);
}
}
bool flag=false, possible=true; //flag indica si todos los espacios son calentados
int auxStart, aux... |
0febd45fe9b4f0f561fea3c5c46f399297023af3 | df9667d23b88f69d3a29d2f8320c4cc61921e0ce | /proj/plantsvszombies/Buckethead.cpp | 70552d5c37a55b02d9379c0643274c9712e9f288 | [] | no_license | ckko3/csci2120-spring16 | 7608e5a0af1a5b2ba9a8cc0c60ac8d4a7809c4f0 | 9036fb12ec6fdfe9fbf3c2ab1ec87b94341c585e | refs/heads/master | 2016-09-14T01:32:36.814601 | 2016-05-18T10:21:28 | 2016-05-18T10:21:28 | 58,912,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 168 | cpp | Buckethead.cpp | #include <iostream>
#include <string>
#include "Buckethead.h"
using namespace std;
// constructor
Buckethead::Buckethead() : Zombie("Buckethead", "BH", 3, 9, 1, 3) {
} |
0283a4a233f3dccb989b1bbb7fa2836302144bdb | deed634ee4fb8e3c5817daccc81f17b908ab6d88 | /CURSO DE C C++/programacao_estruturada/Programacao_estruturada/registro3questao.cpp | 4eee17f87552a7d338263418b8b333a9c78d1f1e | [] | no_license | igor-dantas/Universidade | 1fa79db43fe490bbfc0a879d0e03730961c5a165 | 0c33fc1a1038059b81a8ffb467f8074aa66281aa | refs/heads/main | 2023-04-18T03:35:22.261454 | 2021-04-30T21:47:18 | 2021-04-30T21:47:18 | 355,310,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,340 | cpp | registro3questao.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define TAM 10
struct Estoque
{
char nome_produto[30];
char setor[30];
int qtd_produtos;
float preco_prod;
};
struct estoque estoque[TAM];
int cadastro(struct estoque estoque[TAM])
{
for(int i = 0; i<=TAM; i++)
{
printf("Qual o no... |
af75a414803442643a449a13f0a327a9ac9f28ac | d325ae621bf0e8b61afa620f5437ba0fbe338de4 | /elenasrc3/engine/rtmanager.cpp | 8ecb6564ebacf1b1974f5aa53160703f4992c550 | [
"MIT"
] | permissive | ELENA-LANG/elena-lang | 4a39aae6e3f91c36c794633cd17fad50a3ac4f17 | 5826a561f5e3356bc4f411a9a89e6c172f7e2707 | refs/heads/master | 2023-08-31T04:12:01.212527 | 2023-08-19T19:00:39 | 2023-08-19T19:00:39 | 13,586,508 | 245 | 36 | MIT | 2023-08-19T19:00:40 | 2013-10-15T10:02:54 | C++ | UTF-8 | C++ | false | false | 8,458 | cpp | rtmanager.cpp | //---------------------------------------------------------------------------
// This header contains the implementation of the class
// ELENA RT manager.
// (C)2023, by Aleksey Rakov
//---------------------------------------------------------------------------
#i... |
79cfc0b5a1c99aa1094787ec6300ca59fc5dda32 | b805afd5034f0ff2a8b63b7557f8ef41667a8bf1 | /RankingClient/RankingClient.cpp | 8c46afea69c6b690c2ee826973b85e5a30628e57 | [] | no_license | ProQwest/recommendation-4 | f25a7b84534f402d21e9ea43145621224f807bd0 | 0ec31dc8242522971fdd1a41dd9cf1eb5cd62dcc | refs/heads/master | 2021-05-15T06:00:29.942223 | 2017-04-07T02:11:30 | 2017-04-07T02:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,275 | cpp | RankingClient.cpp | /**
* Created by yuanpingzhou on 3/9/17
*/
#include <iostream>
#include <thread>
#include <atomic>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include <boost/exception/all.hpp>
#include <boost/make_shared.hpp>
#include <boost/chr... |
9c7fc213e51a2a4ca94b0614ae7a60ecb38ed20a | 25b00327c5f303cff0cceb37343476a097fcf15b | /ggEngine/ggEngine/TimeBasedEventManager.h | b2e0def1bbbe73a5bdfdbe6f2a4fe0c9d166594a | [] | no_license | truongthanh96/ggEngine | e3fe42ad7d0979c3b0faebcfc19c15c8f6d5b96e | 6c0892b2352311bbd276a0111cbec677eabdd45d | refs/heads/master | 2022-03-29T16:02:49.261047 | 2017-06-14T14:00:16 | 2017-06-14T14:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | TimeBasedEventManager.h | #pragma once
#include "ComponentBase.h"
#include <list>
#include <functional>
namespace ggEngine {
class Game;
class TimeBasedEventInfo;
class TimeBasedEventManager : public ComponentBase {
public:
TimeBasedEventManager(Game *game);
void Update(double deltaTimeInMs);
void Reset();
void AddEvent(TimeBasedEve... |
87ae4268167e54633aca6e6c5d697914a09faa90 | b7697f406c4be05d5b8582e273b8352c56acba53 | /game/PlayerAttributes.hpp | e99672ba006d9b5115d97903f70103881896fbab | [] | no_license | jovobe/cg-14 | 75b531a4887cba2d7305f72d3e8a03ba542eebbf | d968a85dee5e9254a622f52de58a044a045e171c | refs/heads/master | 2021-01-22T14:46:59.895319 | 2016-08-05T22:06:18 | 2016-08-05T22:06:18 | 55,720,671 | 0 | 0 | null | 2016-04-07T19:06:23 | 2016-04-07T19:06:23 | null | UTF-8 | C++ | false | false | 1,874 | hpp | PlayerAttributes.hpp | #ifndef PLAYERATTRIBUTES_HPP
#define PLAYERATTRIBUTES_HPP
#include <chrono>
typedef std::chrono::system_clock::time_point time_point;
/**
* @brief The PlayerAttributes class Properties of the players e.g. health and endurance.
*/
class PlayerAttributes
{
public:
/**
* @brief PlayerAttributes Constructor... |
49f49696197ba7f329b7d2675e9efa49fb4827c7 | a75d0418b2143d6f59635a8833bff49bc903df5e | /DofusTypes/GameRolePlayPortalInformations.h | 7af40f6a4d40049f71000e85e17ba92b199e7c82 | [] | no_license | Arkwell9112/dofus_bot | 30b80850ba41b6a2b562705ec8aa1a6c87cfb8f8 | fc1b805b70c0ed43cbc585322806ece89d057585 | refs/heads/master | 2023-01-16T01:08:06.710649 | 2020-11-23T20:53:00 | 2020-11-23T20:53:00 | 314,084,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | h | GameRolePlayPortalInformations.h | #ifndef GAMEROLEPLAYPORTALINFORMATIONS_H
#define GAMEROLEPLAYPORTALINFORMATIONS_H
#include "PortalInformation.h"
#include "GameRolePlayActorInformations.h"
#include "../BotCoreAPI/BotCoreAPI.h"
#include <string>
#include <vector>
class GameRolePlayPortalInformations : public GameRolePlayActorInformations {
public:
... |
9836c73ef84587028b61f290bcfc2ab86b22a786 | e486d81cc77cc2d9c13a1450f0293a83d62fca7a | /Popovich/Popovich/List.h | abd82a0225c170f93235f00d9778640d145d2c75 | [] | no_license | vital228/Algorithm | 3b468476b6304e800c60f778e47641e311673116 | d7404e56682a1c69f6a954f12ba7ae38e72d6089 | refs/heads/master | 2023-08-31T14:34:35.182347 | 2023-08-07T13:09:42 | 2023-08-07T13:09:42 | 173,559,270 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 5,242 | h | List.h | #pragma once
#include <iostream>
#include <string>
#include "Node.h"
using namespace std;
template<class T>
class List
{
friend class Node<T>;
Node<T>* Head;
Node<T>* Tail;
int count;
public:
class Iterator
{
friend class List<T>;
Node<T>* it;
Iterator(Node<T>* ptr)
{
it = ptr;
}
public:
Iterator(... |
44a13983ed7f2e067a5d9ae618e011ce2e9c7a87 | d96ebf4dac46404a46253afba5ba5fc985d5f6fc | /third_party/libwebrtc/modules/rtp_rtcp/source/rtcp_packet/nack.cc | a4b3d777815091f38d31e91b346d13e31a1ce2ff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified-and-comments-removed | f9de100d716661bd67a3e7e3d4578df48c87733d | 74cb3d31740be3ea5aba5cb7b3f91244977ea350 | refs/heads/master | 2023-08-04T23:19:13.836981 | 2023-08-01T00:33:54 | 2023-08-01T00:33:54 | 211,297,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,347 | cc | nack.cc | #
include
"
modules
/
rtp_rtcp
/
source
/
rtcp_packet
/
nack
.
h
"
#
include
<
algorithm
>
#
include
<
cstdint
>
#
include
<
utility
>
#
include
"
modules
/
rtp_rtcp
/
source
/
byte_io
.
h
"
#
include
"
modules
/
rtp_rtcp
/
source
/
rtcp_packet
/
common_header
.
h
"
#
include
"
rtc_base
/
checks
.
h
"
#
include
"
rtc_b... |
a0b5769ba15aa43ee809f402033af26acad97b0b | 7134436feaa0a5e57b59eb65502475ba5a3998ea | /Graphics/ProgressBar.h | c21484d85f79bdb92b519501f486f7e712f1009b | [] | no_license | BlackLuny/R-demo | bdc8724adc5bd8eb91ec9f92d731d588b1445ec0 | 51ba1818fa8901a99820339b3e203cecc767e1ae | refs/heads/master | 2020-04-26T05:30:04.385162 | 2017-10-31T15:10:57 | 2017-10-31T15:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | ProgressBar.h | #pragma once
#define DLL_EXPORT
#include"PreInclude.h"
#include"UIBase.h"
#include"ControlBase.h"
namespace GuruLib
{
typedef int LOW, HIGH;
class ProgressBar :
public UIBase,
public ControlBase
{
public:
LIB ProgressBar(int x_pos, int y_pos, int width, int height, UnitType type = PIXEL, const char* _unique_... |
3ffdfeed6984f06524e23c3770535e5851e28ed9 | e11ecccc4513e0d871ff5e4eb7ff710471802d6c | /src/Downloader/Helpers/ChunkMerger.hpp | ca5b31b20b7786674f28ac13bc12ae0ae4146dbd | [] | no_license | yura-hb/Downloader | 29f60ce0e8918858ea680c9a330fe35ca553abdd | 5b9e174a4113f9c88a219a96c6cdf3b0c2ea6855 | refs/heads/master | 2022-12-07T05:34:51.409859 | 2020-08-26T07:35:57 | 2020-08-26T07:35:57 | 251,245,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | hpp | ChunkMerger.hpp | #ifndef __CHUNK_MERGER__
#define __CHUNK_MERGER__
#include <iostream>
#include <vector>
#include <iterator>
#include <fstream>
#include "../../Base/Data.hpp"
#include "../../FileManager/Models/LocalReference.hpp"
class ChunkMerger {
public:
/**
* @brief
* Processes the file at the file path and r... |
09775473b279c89e688a3760e5fb01a9f7bb56f7 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/core/pose/datacache/CacheableDataType.cc | ee54b042b2a8665d781980cf36e2530464434c83 | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 5,776 | cc | CacheableDataType.cc | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
cf765261ff3535134fc342ebd38dc4684e22ffcc | d870defbd6aee32217caab4b48596efb82a0794c | /tuduydvd.cpp | 2c754d8377ef9513d7d8272e7cc854f0603e9924 | [] | no_license | Khachuy911/c-plus-plus-language | ea22fe6b771329554f26d124ea7f46df32713796 | dd93faf46c683f73e8ab96776f4804abdadd113e | refs/heads/master | 2023-07-31T22:03:14.530976 | 2021-09-17T10:20:54 | 2021-09-17T10:20:54 | 407,496,850 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | tuduydvd.cpp | #include<iostream>
using namespace std;
int main(){
int n;
float money;
cin>>n;
if(n>10){
money = (n*5000) - ((n*5000)*(0.1));
} else
money = n*5000;
cout<<money;
}
|
06ff9bba338535beb62bf7d164e6ab34146019c3 | e1d7a093d6cdbbb180ee8de1a1b61773e106ac71 | /Project/SpriterPlusPlus/SpriterOverride/sfmlboxinstanceinfo.cpp | 5f9d3043c916f4d6253fc84fa3b2956ff9fec7c8 | [] | no_license | Conny14156/OneFlower | 916f3b9ccecbccf5431323af1d21ac73a9227c41 | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | refs/heads/master | 2020-04-03T22:38:09.582293 | 2018-10-21T16:29:05 | 2018-10-21T16:29:05 | 32,185,135 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | sfmlboxinstanceinfo.cpp | #include "sfmlboxinstanceinfo.h"
#include "../spriterengine/global/settings.h"
namespace SpriterEngine
{
SfmlBoxInstanceInfo::SfmlBoxInstanceInfo(point initialSize) :
BoxInstanceInfo(initialSize),
rectangle(sf::Vector2f(initialSize.x, initialSize.y))
{
}
void SfmlBoxInstanceInfo::render()
{
}
void Sfml... |
e2b2d68879fa27b26e6bf25202e1e4855d4a50d7 | 1db813ac2ea45bbc8719fc3ef7cd157fe5bd885f | /src/InputManager.cpp | e6c7408165199090eb4504a94dfbb53499d3e60c | [] | no_license | gerudoking/Team-Galahad | b3c206b693966023e1420575992d9e8216089ec8 | dcf2a59985b7be55174b6e6c2041aa4ab09f0caa | refs/heads/master | 2021-01-19T10:14:44.850001 | 2017-04-26T17:49:10 | 2017-04-26T17:49:10 | 87,844,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,062 | cpp | InputManager.cpp | #include "InputManager.h"
InputManager* InputManager::instance = nullptr;
InputManager::InputManager() {
mouseX = 0;
mouseY = 0;
updateCounter = 0;
quitRequested = false;
}
InputManager::~InputManager() {
}
void InputManager::Update() {
SDL_Event event;
SDL_GetMouseState(&mouseX, &mouseY);
... |
9f1869a251c9171a6522e2b6cbcd5c2c2e57e19b | f68d677bbbb1eb8ce6c32fc8e6dcaf382c625ae3 | /Source/ProjectIRRUPTION/ProjectIRRUPTIONGameModeBase.cpp | 6185cec25e456147325a735c9c97acbe70f8915c | [] | no_license | ZymbarGameStudio/ProjectIRRUPTION | eaec536a86238760a6477b228421c7a254e1c358 | 53c49e9dd1595c36af9ce8db435d75c8e7e9993a | refs/heads/main | 2023-07-18T00:35:37.228823 | 2021-09-02T10:48:47 | 2021-09-02T10:48:47 | 383,983,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,158 | cpp | ProjectIRRUPTIONGameModeBase.cpp | // Copyright Epic Games, Inc. All Rights Reserved.
#include "ProjectIRRUPTIONGameModeBase.h"
#include "Blueprint/UserWidget.h"
#include "Components/EditableText.h"
#include "Components/TextBlock.h"
#include "Kismet/GameplayStatics.h"
AProjectIRRUPTIONGameModeBase::AProjectIRRUPTIONGameModeBase()
{
}
void AProjec... |
81c95d8d29d30d77d90ed0ad62d3ef5872ac5275 | e81b8117500d0cf2a62ae21565b6fdf29ab8425d | /FirstQtProject_Linux_server/server.cpp | 362313383dd077611b7b1dcfddabef0396842f86 | [] | no_license | iulianpana/Educational-Platform-for-Collaborative-Learning | 3af05f99f97efedfda53f526ada2b6bd111119cc | 02fd6be608b85d922c41b1a45514968e53d256cf | refs/heads/master | 2021-01-11T03:32:04.920732 | 2016-09-22T17:55:54 | 2016-09-22T17:55:54 | 68,945,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,796 | cpp | server.cpp | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... |
2816ace1787065a7aa422a55b4ca07d121e5c4ca | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/7a/78af7194043060/main.cpp | c6669abae497192b299b501061d78a1d38197cfd | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,144 | cpp | main.cpp | #include <boost/thread/thread.hpp>
#include <boost/atomic.hpp>
#include <cstdatomic>
#include <boost/lockfree/spsc_queue.hpp>
#include <string>
#include <cstdio>
#include <sched.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <boost/scoped_ptr.hpp>
#include <sys/time.h>
#include <boost/l... |
4c63557bc8a14a6d413f3e938846114b07e49c7f | 727f6670a95ad8258b878c59929bfa938004f19b | /Editor/SESkeletonEx.cpp | c95a0a2745ab7dcd92b61d6f2eeabaae68d1af92 | [] | no_license | zhouxh1023/Editor | b4f452a79c00a6790bebf72dc2a7ea9d0642752e | 423e628696e4e3229cd5d8c734c95e957c221036 | refs/heads/master | 2021-01-14T14:28:40.925009 | 2015-01-04T04:48:28 | 2015-01-04T04:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,061 | cpp | SESkeletonEx.cpp | #include "stdafx.h"
#include "SESkeletonEx.h"
#include "SESkeletonSerializerEx.h"
#include "OgreLogManager.h"
#include "OgreResourceGroupManager.h"
#include "OgreSkeletonManager.h"
SkeletonEx::SkeletonEx(Ogre::ResourceManager* creator, const Ogre::String& name, Ogre::ResourceHandle handle,
const Ogre::String& gr... |
8b4024a10fede1a109a212a7199e0c0c1178aae1 | b8cf62d2d71c19a653f3dfe509378df3f75e9017 | /loud-and-rich.cpp | 194a4e7d155fa8f90751b96daee425868526cd66 | [] | no_license | Blast07/Leetcode | 30fa937ed7f54911567a2a745f9fae50927d574f | 0fa201b03adb330788f15d983beb290cb2eadd67 | refs/heads/master | 2023-02-27T12:49:58.586149 | 2021-02-03T14:26:06 | 2021-02-03T14:26:06 | 305,392,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | cpp | loud-and-rich.cpp | class Solution {
public:
int loudAndRich(vector <vector<int>> &G,vector <int> &quiet,vector <int> &visited,vector <int>&answer, int i){
for (int j=0;j<quiet.size();j++){
if (G[i][j] && !visited[j]){
int ind = loudAndRich(G,quiet,visited,answer,j);
if (quiet[ind] <... |
c7a70b290b18ea9bb8992ab6922af0d31d454875 | 9a547c67cc6039342d4749760a4ed14a283c88c1 | /client/ClientCareTaker.h | be2cde00710e2930214bfef3c2d3f05d18158061 | [] | no_license | kamotora/patterns | d2489905f80e74ca47518f181466bbe92ebe5ed1 | e15293fde1cc8d84722e9bc8f427ca32143b7a0e | refs/heads/master | 2020-08-29T00:21:05.267052 | 2019-12-17T06:24:30 | 2019-12-17T06:24:30 | 217,665,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | ClientCareTaker.h | //
// Created by artem on 04.12.2019.
//
#ifndef PATTERNS_CLIENTCARETAKER_H
#define PATTERNS_CLIENTCARETAKER_H
#include "ClientSnap.h"
#include "stack"
class ClientCareTaker {
private:
std::stack<ClientSnap *> snaps;
public:
void save(ClientSnap *snap);
ClientSnap* restore();
};
#endif //PATTERNS_CLIEN... |
ed2a69a99b5014be88dc2681db68d940d809170c | 5fd2cb147022d2ae76efac165dc3092206fbe65a | /Pconcepto4/ArdSensorPulsador.ino | 3d47a5a8e92364cc9b9ba4e0c5c71a3d62bbc136 | [] | no_license | jhosep16/OpenHabnRf24 | a7edad40c4b6a451b433f991dcac6a7aea63e813 | 9e5ca0b550231cb4a14a41a9ca62daf0cdb5b875 | refs/heads/master | 2020-04-19T15:46:47.279696 | 2016-09-06T19:55:34 | 2016-09-06T19:55:34 | 67,532,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,051 | ino | ArdSensorPulsador.ino | #include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>
#include <Servo.h>
byte switchPin = 12;
RF24 radio(9, 10);
RF24Network network(radio);
const uint16_t this_node = 1;
const uint16_t parent_node = 0;
const unsigned long interval = 1000; // every sec
struct message_1 {
bool pulsador;
};
message_1 ... |
0f3032a195f6402918d1a1a8c259cb3358c81d0b | 710cc6c71e73636e04e7279ddc6ddded3feb8ef2 | /Sources/Server/WorkerServerScanner.cpp | 74bf5b00ceba9f8d5f97b9df36065219b68fc951 | [] | no_license | ridvoid/Comodo-antivirus-task | 97799a07a08133a030ec24894a1ab3c83aafd255 | afca6f3631ae22e8d2d588440482a8556e937296 | refs/heads/master | 2021-04-06T08:56:16.574029 | 2018-03-14T08:06:03 | 2018-03-14T08:06:03 | 125,175,264 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,673 | cpp | WorkerServerScanner.cpp |
#include "WorkerServerScanner.h"
namespace Test
{
WorkerServerScanner::WorkerServerScanner(IScanner* pIScanner,
Pipe& pipe) : WorkerServerScanner()
{
this->pIScanner = pIScanner;
this->pipe = std::move(pipe);
}
std::unique_ptr<WorkerServerScanner> WorkerServerScanner::Create(IScanner* pIScanner,
Pip... |
242a37008f191953c4a07d9842dc3e002de1f0a9 | 483bf850a06d57e8ac6deee670902f9b6839a560 | /Spring2017/Source Code/Conditional Statements/prime1.cpp | 137d9270335f7dd161007467cbc6318821b91554 | [] | no_license | bafasse/CSCE-2004 | f4dbeec3089b6589eeec11bcaf02c2c1517b9365 | 7ec3a9d3a72c2411593c13ea83b4d9a86eb64392 | refs/heads/master | 2020-04-02T00:37:49.063406 | 2018-10-19T17:17:47 | 2018-10-19T17:17:47 | 153,813,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | prime1.cpp | //---------------------------------------------------
// Purpose: Program to check for prime
// numbers using a factoring approach
// Author: John Gauch
//---------------------------------------------------
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
// Local variabl... |
f7c86f75d2c9f75098931466b31d90b08acdcd51 | 310c510f20db78880f5362354c12e8839db90558 | /CodeForAli/MERGE_NEW_ESG_CODE/PROD_CCG_V3(test)/ESG_V0/Models/BS_HW1F.h | d37ac7ef61271d3cd807306f72600571b475beb7 | [] | no_license | sdzouiten01/sz-project | da8a057726eb07b9b833d75a0d94822b0b264b05 | f7b0057dad14b8c1eed0c8d25ef82749cf52ccda | refs/heads/master | 2021-01-21T04:19:29.495647 | 2016-08-13T17:59:40 | 2016-08-13T17:59:40 | 37,811,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | h | BS_HW1F.h | #ifndef BS_HW1F_H
#define BS_HW1F_H
#include "Diffusion_Model0.h"
#include "../Instruments/InterfaceESG0.h"
#include <Math.h>
using namespace std;
class BS_HW1F: public DIF_MODEL0{
public:
int Time_step;
double Delta_t;
double HW_Alpha;
double HW_Sigma;
double Prorata;
int Antithetic;
int NB_Time_Step;
int NB_... |
b174cc5ff72f633694175d3e213cd78578e90de0 | 7535c99a052d0cf40cd8d3d2170caea429dac685 | /salary/AddTimeCardTrans.h | 63f0b3b797331cfa12f6dfd59e617a51c42e7557 | [] | no_license | cly1231989/salary | 1c9371e2d1568a6dd7c7f0d8be961d93f4993159 | 37dc5c0248f9fd2e6fafef63b717396fd8179e80 | refs/heads/master | 2021-05-09T13:20:35.553291 | 2018-02-11T03:10:33 | 2018-02-11T03:10:33 | 119,031,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | AddTimeCardTrans.h | #pragma once
#include "ModifyEmployeeTransaction.h"
#include "Date.h"
class AddTimeCardTrans :
public ModifyEmployeeTransaction
{
public:
AddTimeCardTrans(int employeeID, const Date& date, float hours);
virtual ~AddTimeCardTrans();
// Inherited via ModifyEmployeeTransaction
virtual void changeEmployee(Employee &... |
9ae907cbbc4f9f390b9a2b2cb0b555a5ded3aa92 | 89d872a4618e5eb33b620bdca7d91cd6083f1078 | /SmallMimic_0.4/Sketch/SmallMimic/SmallMimic.h | 6b84bc307af1ef4a156c1354871423f5d60307ec | [] | no_license | Press-OK/SmallMimic | f37becc0c8aded3d1073fda69e06c2e15343130c | 961c147318f8da887ec72fec7f60fe7d45b8054b | refs/heads/master | 2020-06-17T21:55:46.045839 | 2019-07-09T20:16:14 | 2019-07-09T20:16:14 | 196,070,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | SmallMimic.h | #ifndef SmallMimic_h
#define SmallMimic_h
#include "Arduino.h"
#define ledBlink true // 1/0 to enable or disable LED blinking
#define ledPin 2 // Pin for the onboard LED (Wemos D1 Mini)
#define ledOnState LOW // Pin state for LED on (Wemos D1 Mini is kind of backwards)
enum MouseButton { LEFT = 0 , RIGHT =... |
0c930a45e6e328d4b2a57942da5f04961d8f3e61 | 3c53d57793ed7f416cbe57d3be02e4670ee1742a | /Graph/OpenGL/图片读写/二进制文件读写/C++二进制文件读写.cpp | ea62dc5641adc03da7eddc5607b478defa4fdfb5 | [
"WTFPL"
] | permissive | znvmk/Study | a6f0edd61e7c7befc2b63ed7fa31e0ad9cd747cf | 9af11d2addad51c1b806411b876920ea95482b1b | refs/heads/master | 2022-09-14T01:34:54.792597 | 2022-08-26T20:12:53 | 2022-08-26T20:12:53 | 248,516,565 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,221 | cpp | C++二进制文件读写.cpp |
//转自https://blog.csdn.net/u014646950/article/details/51100185
//C/C++二进制读写png文件
#include "iostream"
#include "fstream"
#include "string"
using namespace std;
/*
class PngMsg
{
private :
unsigned char markMsg[8]; //十进制,相当于16进制89.50.4e.47.0d.0a.1a.0a;
char widthloc;
char heigtMsgloc;
char BitDepthloc;//图像深度
char Co... |
453c013e0c1e029e2b36dd6b187a9b1db3b0a40f | 34d13bdfcb6d2053c394b695f3873d64b790bdf7 | /Splendor/Drawer.cpp | 5e4f3325a5cf85c47363a88766037dcefb181c3e | [] | no_license | yu-chul/Splendors | d0b3d444757cabd5afe41d9a1c58404043a4aeb3 | 2a8b273cbea2f0088de667685f37780b95be419c | refs/heads/master | 2022-12-18T13:19:42.660519 | 2020-09-20T04:04:59 | 2020-09-20T04:04:59 | 296,997,776 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 357 | cpp | Drawer.cpp | #include "Drawer.h"
void pos(int x, int y)//设置光标位置
{
COORD pos;
pos.X = x;
pos.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
void col(unsigned short ForeColor)//颜色设置
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);//获取当前窗口句柄
SetConsoleTextAttribute(handle, ForeColor);//设置颜色
} |
9a5688be5b157833b4706c597e63f8f50f320adc | 3a58b91975c73864ca99dddc6000241f6d551e6f | /Path.h | dd1488cc19b78f512ae3830a6d39c43f8b8640ea | [
"MIT"
] | permissive | jefflbeckman/path | e21fdbab09bd352bf3d68f6591a06ed3e226255b | 62ec991005612553bb7f7d4900227b9e4b257f1e | refs/heads/master | 2021-01-13T17:04:27.551014 | 2015-06-11T21:44:22 | 2015-06-11T21:44:22 | 37,286,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,298 | h | Path.h | #include <vector>
#include <tuple>
#include "Error.h"
struct point
{
double x;
double y;
double z;
inline point operator+(const point& other) const {
point res{ x + other.x, y + other.y, z + other.z };
return res;
}
inline point operator-(const point& other) const {
point res{ x - other.x, y - other.y, z... |
a59d9655171e3515c5634638c8c9d625fdbb024c | d55bcd124949e1445cff92e0b02ce2a7d581d615 | /Game/MarioBaseProject/Background.cpp | ccb06c785072f0f350fda8a48b3c0cceeecfa0d3 | [] | no_license | ScottGarryFoster/UNI-YEAR1-MarioBros3 | a36c8f2b30866217ba98c0ef93c2c17e3524f437 | 6998d63e6376c352f1aab2ef133f712ab5463e3f | refs/heads/master | 2022-03-04T18:10:53.927406 | 2019-11-18T14:17:49 | 2019-11-18T14:17:49 | 222,448,290 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,354 | cpp | Background.cpp | #include "Background.h"
Background::Background()
{
}
Background::Background(SpriteBatch* f_sb)
{
m_sb = f_sb;
m_tsmTransparent = new TextureSelfManaged();
m_tsmTransparent->LoadTextureFromLocation(m_sb->get_renderer(),"Images/Mario3/Transparent.png");
}
Background::~Background()
{
if(m_tsmTexture != nullptr)
... |
a8cab52c6a19b7e46875aa819f7ea4f153bd9e52 | 64c9318f4aaa320f3175b7e16e8602cedfb4a4e2 | /Untitled13.cpp | 292e2b5a1ff84850f71953dc663902c79875c6b8 | [] | no_license | manhhung20020246/Tuan01 | 09e599db5b579dc62f2d6ad0cf7e87a06fe72a09 | 5bd23e1b2f93b324ea547c164916f811d036750e | refs/heads/master | 2023-03-08T13:16:01.779473 | 2021-02-21T10:59:59 | 2021-02-21T10:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | Untitled13.cpp | //b13
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float x,y,a;
cout << "Nhap vao 2 so nguyen:";
cin >> x >> y;
a=sqrt(x*x+y*y);
cout << "Khoang cach tu diem (x,y) den diem O(0,0) la :" << a << endl;
}
|
05dc5dc3d9524da9db6fa3445844d7635756e37d | 5298705370c757d8846d409382f7dcb8450d48b8 | /wbs/src/Simulation/WeatherGeneratorKernel.h | 966d73c65593674719f37c856208c90be50bc209 | [
"MIT"
] | permissive | RNCan/WeatherBasedSimulationFramework | 3d63b6a5fd1548cc5e5bac840f9e7c5f442dcdb0 | 05719614d2460a8929066fb920517f75a6a3ed04 | refs/heads/master | 2023-07-19T21:37:08.139215 | 2023-07-13T02:29:11 | 2023-07-13T02:29:11 | 51,245,634 | 7 | 2 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,242 | h | WeatherGeneratorKernel.h | //******************************************************************************
// Project: Weather-based simulation framework (WBSF)
// Programmer: Jacques Régnière, Rémi Saint-Amant
//
// It under the terms of the GNU General Public License as published by
// the Free Software Foundation
// It is ... |
7343336aa5355a71e9f6838cc72fc155c458fbe9 | b99aeb23c94e66511326d67e58a547c41a1e43e4 | /Nathan Russell_HK Project Attempt 2/Nathan Russell_HK Project Attempt 2.cpp | 6d1cd0294e735782af9e3ef0f14c205dda47176c | [] | no_license | natrusse/Nathan-Russell_HK-Project-Attempt-2 | 15ace8cf749e4e112ccb4d3249825e410a05df66 | a2d24393f28698ba7cff67a976b13e4f47a0459c | refs/heads/master | 2021-05-08T16:32:08.677767 | 2018-02-09T21:50:11 | 2018-02-09T21:50:11 | 120,161,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,216 | cpp | Nathan Russell_HK Project Attempt 2.cpp | // Nathan Russell_HK Game Project-2.cpp
// last edited 2/3/2018 at 10:28
// last synced
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
using namespace std;
using std::endl;
using std::cin;
using std::cout;
void persona() {
//creates a sort of skynet personality
//e... |
f1bb1a498e907d32d89319052ed2acf2349ee9c4 | a1809f8abdb7d0d5bbf847b076df207400e7b08a | /Simpsons Hit&Run/game/libs/scrooby/apps/builder/DlgInsert.cpp | c6e5cef894217587998ea4a1179b5cf1b011d52e | [] | no_license | RolphWoggom/shr.tar | 556cca3ff89fff3ff46a77b32a16bebca85acabf | 147796d55e69f490fb001f8cbdb9bf7de9e556ad | refs/heads/master | 2023-07-03T19:15:13.649803 | 2021-08-27T22:24:13 | 2021-08-27T22:24:13 | 400,380,551 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,958 | cpp | DlgInsert.cpp | /////////////////////////////////////////////////////////////////////////////
// DlgInsert.cpp : implementation file
#include "StdAfx.h"
#include "resource.h"
#include "xObject.h"
#include "DlgInsert.h"
#include "FeData\Helpers\OutputMessage.h"
#include "FeData\Helpers\ResourceManager.h"
#include "FeData\Re... |
26511c51f10d43d2caeaf2c585f48b97d9e093bb | 6044a9313fc48aef6081fe230da4b49759712ab1 | /Sorting_n2.cpp | dfb03eb71c9446512a42a082563fca4d37384466 | [] | no_license | jackthh/Sorting-Algorithms | e9168dfc74a21e19ef09b8dc95c064013950652f | f443d8f34fb1c2649bed8cbd8953bbe033567ae4 | refs/heads/master | 2020-11-29T00:53:08.107725 | 2019-12-24T16:05:08 | 2019-12-24T16:05:08 | 229,967,836 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | Sorting_n2.cpp | #include<iostream>
#include<fstream>
#include<string>
#include<vector>
using namespace std;
int main() {
vector<int> v;
v.push_back(10);
v.push_back(12);
cout << v[0] << " " << v[1] << endl;;
swap(v[0], v[1]);
cout << v[0] << " " << v[1];
return 0;
} |
c1c42c735abfe52fcdcc8c56d5e77519f0b20951 | 299a2cc6fc24111b2c26be398331ff7b5ce9b329 | /tarefa1/tarefa1.ino | e189ef428192e49afc4f8bd8afcd20d47cff7a1c | [] | no_license | rafarubim/sistemas-reativos | ea2c765cc051c210d05497b417957a9a266d359d | 1ba89af9e40ce193ebb14727749e85c59cf84c8b | refs/heads/master | 2021-09-27T09:56:55.245944 | 2021-09-23T20:46:46 | 2021-09-23T20:46:46 | 175,451,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,775 | ino | tarefa1.ino | #define LED_PIN 13
#define BUTTON1 A1
#define BUTTON2 A2
void switchLed(int on) {
if (on) {
digitalWrite(LED_PIN, LOW);
}
else {
digitalWrite(LED_PIN, HIGH);
}
}
int getButton1() {
return !digitalRead(BUTTON1);
}
int getButton2() {
return !digitalRead(BUTTON2);
}
unsigned long lastBlink = 0;
int... |
a76ad3924abca06035fe8f705abc5a2254f839ad | cee179ac9c79c15109cddfc83ba81bb971eb1b7e | /Gui/medGUIWizardPageNew.cpp | c27a5351181e8cbfbdb37d13ecffe0846293de6e | [] | no_license | besoft/MAF2Medical | 8f88ea90a8091d99c70412ce6bca2cc988d6dfe4 | 8fed46786e9b34e7ff4871d2f11728abd69d9541 | refs/heads/master | 2021-01-15T22:29:48.224711 | 2019-07-31T13:57:22 | 2019-07-31T13:57:22 | 41,854,951 | 0 | 3 | null | 2015-09-03T10:52:01 | 2015-09-03T10:52:00 | null | UTF-8 | C++ | false | false | 10,344 | cpp | medGUIWizardPageNew.cpp | /*=========================================================================
Program: MAF2Medical
Module: medGUIWizardPageNew
Authors: Matteo Giacomoni, Gianluigi Crimi
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed W... |
3e4a7f7b80a22edea265cddc11bc5f25572b4074 | 20aab3ff4cdf44f9976686a2f161b3a76038e782 | /c/最小二乗法/最小二乗法console.cpp | 76e20e1d5fbb2e7c11f80fe1821164599e334337 | [
"MIT"
] | permissive | amenoyoya/old-project | 6eee1e3e27ea402c267fc505b80f31fa89a2116e | 640ec696af5d18267d86629098f41451857f8103 | refs/heads/master | 2020-06-12T20:06:25.828454 | 2019-07-12T04:09:30 | 2019-07-12T04:09:30 | 194,408,956 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 826 | cpp | 最小二乗法console.cpp | #include "#system.hpp"
int _Main(){
int num=0;
vectorx<double> Xi,Yi;
double x=0,y=0,xx=0,xy=0;
double a=0,b=0;
cout<<"最小二乗法を行います\n要素数を入力してください >> "<<flush;
cin>>num;
Xi.resize(num); Yi.resize(num);
for(int i=0;i<num;i++){
cout<<"X["<<i<<"]=? >> "<<flush;
cin>>Xi[i];
}
cout<<endl;
fo... |
9e7b1fbb7db82bc8266a349530f921711eca8f9b | 3841f7991232e02c850b7e2ff6e02712e9128b17 | /小浪底泥沙三维/EV_Xld/jni/src/EV_Graphic_Java/wrapper/frustum_def_wrapperjava.cpp | 8a783728245f9f8b21bd0eda1027a5c847cbd6e2 | [] | 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 | 1,594 | cpp | frustum_def_wrapperjava.cpp | /* This file is produced by the JNI AutoWrapper Utility
Copyright (c) 2012 by EarthView Image Inc */
#include "stableheaders.h"
#include "graphic/frustum_def.h"
#include <jni.h>
#include "core_java/global_reference.h"
#include "core_java/jni_load.h"
#include <typeinfo>
namespace EarthView
{
namespace World
{
name... |
8131fd955b3bf0b0e4c314e9423659583f83b9b1 | 28125dc1d0090d864c3414472b0794d3939ff728 | /minimizing coins.cpp | 6922edb06156f17f29fc6f9b926325364fb2ba5d | [] | no_license | Wadshah/c-codeforces | d4baeac02ef26ef8ccf4e3add92ecd4094ace582 | 8ea16f66e64910a2076d48aea7b2e9c7892bd55e | refs/heads/main | 2023-08-03T16:22:12.213406 | 2021-09-18T09:00:39 | 2021-09-18T09:00:39 | 407,808,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | minimizing coins.cpp | #include<bits/stdc++.h>
#include<iostream>
using namespace std;
#define ll long long int
#define inf 1e18
#define mod 1000000007
const int N=1e5+5;
void file_i_o(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("inputf.in", "r", stdin);
freopen("outputf.in"... |
1842477bc4ab279c8909afdcf8ed48e821b80570 | 55955d0dcbe4a9082189df0849dae53babaa6fe4 | /Yingge/lang/cs.h | 9dbd4a1957c97d2ec8af4702baa490b1361ab31b | [] | no_license | husathap/Yingge | 4fd42419a823961aec65cee2756d14b891a513c1 | 0de4ec289324914dabb215c870a064396d5494d8 | refs/heads/master | 2021-01-01T18:48:14.046338 | 2014-06-10T14:12:11 | 2014-06-10T14:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,095 | h | cs.h | #pragma once
/*
* Here is Oriole specification for language to create a cutscene.
*/
/* Here is the import for the cutscene header. So if you import the language,
* you won't need need to include cutscene and sceneNavigation.
*/
#include "../core/cutscene.h"
#include "../core/sceneNavigation.h"
#include "common.h... |
64a6601733f7e23fa68fd047d6755eaa03c2d480 | 5359a45ccc0edd4f509dfb9e9346be52ebf220d3 | /src/display/NetworkMonitor.cpp | ee03fe17aa066a320ce47aef1338c01d671de7bc | [
"MIT"
] | permissive | thetoster/remoteControl | cb59598ed36de9bcfb9267810e7500c8a7f82f48 | e4f074f38f35ec0789be5b0cbab52b2dfc1c059d | refs/heads/master | 2020-03-25T02:46:53.836697 | 2018-11-10T21:32:16 | 2018-11-10T21:32:16 | 143,307,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,650 | cpp | NetworkMonitor.cpp | /*
MIT License
Copyright (c) 2018 Bartłomiej Żarnowski
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 use, copy, modify, mer... |
2ae8187a7df14af06e2b54f9a6fb163574fdbc22 | 6a5ddccabcd725caa22037f51e7ab9753db5d67a | /code/test_cplusplus001/test_cplusplus001/main.cpp | bc7147e75c85122935e016cac2ceca0b8c487c6b | [
"Apache-2.0"
] | permissive | Macleowh/Test_CPlusPlus | 36d26053329bd5428317d9c040e84d95d9ed7f2a | ca8b43e3d40c05f2929050c18508d3ae9bba8d88 | refs/heads/master | 2020-11-25T21:16:37.769466 | 2020-01-08T12:47:53 | 2020-01-08T12:47:53 | 228,851,229 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 22,282 | cpp | main.cpp | #include <iostream> //#include 是包含文件的意思 <iostream> 输入输出流(接受键盘的输入和控制台的输出功能)
#include <string> // <string> 字符串相关文件
#include <array> //std::array 标准库 array头文件
#include <fstream> //std::ofstream std::ifstream 文件流操作
#include <io.h>
//int main(){ return 0};
//main函数是程序执行的入口,整个项目只有这一个执行入口
#include "calculate.h" /... |
4780ca561b3c72583d1e24cc4595c450b6566f2d | fb7fe6e935738e486c6f6341d049f3e845b0ffb8 | /DirectX/DirectXMy2DCollision/CollisionCheck.h | 81f2c50790afe885fccdc0495171c777aa883450 | [] | no_license | ilhaeYe/My2DCollision | da0888a5e70e5c0699d9e194e6651253dd479227 | 2cc1ee3abf3447e2af1da7c9d4ab90249ee5434e | refs/heads/master | 2020-12-08T23:53:33.393254 | 2016-09-01T16:06:26 | 2016-09-01T16:06:26 | 66,897,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,092 | h | CollisionCheck.h | #ifndef COLLISION_CHECK_H
#define COLLISION_CHECK_H
#include "Shape.h"
// AABB
bool AABBCollisionCheck(std::shared_ptr<Shape> s1, std::shared_ptr<Shape> s2);
bool AABBCollisionCheck(vector<AABB> v1, vector<AABB> v2);
bool AABBCollisionCheck(AABB aabb1, AABB aabb2);
bool IsGreaterPoint(const Point& p1, const Point& p2... |
b2319f046ac0f8e83cbb5165fa8604cd05a15515 | c3e260bc0e6c682011ade2edcf7e1d13e4a69989 | /notes/04-10-2017_fundamentals_design_meeting/future.hpp | c55bd14fd80db15efdc1ed0ec722b312aed0e122 | [] | no_license | brycelelbach/pagoda_spec | d41231b3517e9c238ba815aaf20e7c32b84f81f3 | ebdb08966f592a294a445cc1f5adad6cdea4a20d | refs/heads/master | 2021-01-19T11:22:12.563774 | 2017-04-13T16:08:42 | 2017-04-13T16:08:42 | 87,958,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,953 | hpp | future.hpp | // std::future
template <typename T>
struct future;
// Jon's approach
template <typename... T>
struct future;
// Bryce likes this because it simplifies when_all
//template < class InputIt >
//auto when_all(InputIt first, InputIt last)
// -> future<std::vector<typename std::iterator_traits<InputIt>::value_type>>;
... |
53ee492a9f88d820621fb819c9dd3febb9115ff6 | 6197740e6297da2f3d0c8ffd2a1d7ef5d8b3d2cb | /DotNet/Foundations of C++CLI/Chapter09/extension_monster.cpp | 515e887949e55ffda56dbf8f184fd37bbdf3f2c6 | [] | no_license | ssh352/cppcode | 1159d4137b68ada253678718b3d416639d3849ba | 5b7c28963286295dfc9af087bed51ac35cd79ce6 | refs/heads/master | 2020-11-24T18:07:17.587795 | 2016-07-15T13:13:05 | 2016-07-15T13:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | extension_monster.cpp | using namespace System;
namespace MonsterExtensions
{
public ref class Attack
{
};
public enum class AttackTypeEnum
{
Type1,
Type2
};
public ref class AnimationSequence2D
{
};
public interface class IMonster
{
property String^ Name;
property int Strength;
prope... |
5488d1b4dddde722c8003a3c6d11a16ae913305d | 335d85dd022abd7c43c94c98ddfb55193194ba13 | /QT_RPG/Player.cpp | e74233512bd885795378ad51d8e1cd5d96216a03 | [] | no_license | Beokro/QT_RPG | d74a9ee94f96e0713cf426cfd34f660df6fc0b27 | 90edd6021259a1b5bfd7dcd48dc30f8e8ff921d9 | refs/heads/master | 2016-09-01T06:38:02.224318 | 2016-02-03T06:29:44 | 2016-02-03T06:29:44 | 49,862,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | Player.cpp | #include "Player.h"
#include <QGraphicsScene>
#include <QKeyEvent>
#include <QDebug>
Player::Player(QGraphicsItem *parent): QGraphicsPixmapItem(parent)
{
qDebug()<<"left\n";
setPixmap(QPixmap(":/images/Sabers.png"));
setScale(0.5);
}
void Player::keyPressEvent(QKeyEvent * event)
{
if(event->key() == ... |
a85e9b52b85f2bd746dd32b773c1d389b7726968 | b2e454bd8b8026fb70fe30a9d8213dc44d3cf77f | /src/bootd/core/SignalManager.h | f3f2acc472c82f6618c03d77d2eea48662394cd9 | [
"Apache-2.0"
] | permissive | webosose/bootd | 40f960e1664872a2f3cb73a909c1363793af4498 | efdc932c92e437002ed60d5d6d038e0f8bae71c3 | refs/heads/master | 2021-07-21T03:38:26.613417 | 2021-05-25T03:14:28 | 2021-05-25T03:14:28 | 125,002,521 | 4 | 6 | null | 2019-06-17T15:39:49 | 2018-03-13T06:22:37 | C++ | UTF-8 | C++ | false | false | 1,717 | h | SignalManager.h | // Copyright (c) 2013-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
2d4719709f030ea5f64772bc983c4d70bf1e3241 | 0b3149881206f04e6d3c2d3ddb9aa8a214a04c93 | /uri 1044.cpp | 07faafcdaf550fe1e970713273c17cf44749a885 | [] | no_license | lamia185/Uri_OnlineJudge | 6b2842a41abfcbd60ceb7743e3fae591c3d3bd1f | b8bed349c321e823d9dc2c1adc5953b0c16449a0 | refs/heads/master | 2021-07-08T12:45:35.009975 | 2017-10-07T18:03:18 | 2017-10-07T18:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | cpp | uri 1044.cpp | #include<stdio.h>
int main()
{
int A,B;
scanf("%d %d",&A,&B);
if(A%B==0 || B%A==0)
printf("Sao Multiplos\n");
else printf("Nao sao Multiplos\n");
}
|
ba289ead8da4156897338ae5dbafcbaf448b81c1 | eebcc10e3c8e93ce48735f459fbfd924b508e35f | /test/lattice/Helpers.cpp | 109457cb33d723e0793909f8b90d8db0449af267 | [] | no_license | amnn/killer-sudoku | 43275c36a18a587ae7808cbe7adc9afb0faf251b | f97af6d13cccd264af82b9c00aa29772f394515d | refs/heads/master | 2021-01-13T05:45:45.827534 | 2017-03-22T01:45:34 | 2017-03-22T01:46:56 | 78,940,345 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 764 | cpp | Helpers.cpp | #include "Helpers.h"
namespace lattice {
namespace helpers {
std::vector< std::vector<uint32_t> > ivals(Node *root)
{
std::vector< std::vector<uint32_t> >
vals {};
for (Node &row : root->vertRange()) {
vals.emplace_back();
auto &rowVals = vals.back();
for (Node &node : row.horizRange()) {
... |
6c5d79d1c7c929baf6e97423db716c7708a0a6b5 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/60/62.c | 658a045e6bb8f66f5baac845e21f12914c503f70 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | c | 62.c |
int prime(unsigned int x)
{int y;
for (y=2;y<=sqrt(x);y+=1)
if (x%y==0)break;
if (y>sqrt(x))return 0;
return 1;
}
void main()
{int youmeiyou,i,n;
youmeiyou=0;
scanf("%d",&n);
for (i=5;i<=n;i+=2)
{
if (prime(i-2)==0&&prime(i)==0) {printf("%d %d\n", i-2,i); youmeiyou=1;}
}
if (youmeiyou==0)printf... |
d14386652f8dcbe00307039a472515658b093a98 | daf17b14d2f1d544ea23d9523aab7038f85ee613 | /CombatUnit.hpp | b7395627cd4bc17b8b695201f8412ff0157a109a | [] | no_license | Clenoci/Dungeon-Adventures | b5720e5b1d987da7a0e5e4cd8bdc8b5d4b9969ee | 261f658f1f1045c9974a2c0a1a13611b0590a2ea | refs/heads/master | 2020-03-08T05:04:49.443181 | 2018-04-03T16:46:32 | 2018-04-03T16:46:32 | 127,938,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | hpp | CombatUnit.hpp | #ifndef COMBATUNIT_HPP
#define COMBATUNIT_HPP
#include "Item.hpp"
#include "HealthPotion.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
class Item;
class CombatUnit {
public:
CombatUnit(std::string name,int health,int damage);
void UseItem(Item* item, CombatUnit* target);
void ModifyHea... |
5c9fe579b6179acbf9f1ee2de1208d4644f7741a | 1b8bd250d7181c8b25a0a07eaff9eeda1f1fb4a8 | /MediaPlayer/app/src/main/jni/libsrc/threads/ScopedLock.h | ae72c4a898fddcdb4d84e548dde296a6c1729452 | [] | no_license | asdlei99/MediaPlayer-1 | 14e76c6bd1305fe2e77b930d93b402f73e29695c | f290c1038646496df8cd779c4c2d8ec50b8be85b | refs/heads/master | 2020-12-06T14:17:04.980762 | 2016-08-11T09:30:09 | 2016-08-11T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | h | ScopedLock.h | #ifndef HEADER_GUARD_SCOPEDLOCK_H
#define HEADER_GUARD_SCOPEDLOCK_H
#include <OpenThreads/Mutex>
namespace JAZZROS {
template<class M>
class TScopedLock {
private:
M &m_lock;
TScopedLock(const TScopedLock &); // prevent copy
TScopedLock &operator=(const TScopedLock &... |
8eaf00b1cbb0f3fea8d10ba409d1f27be1eed1c1 | 0daabdbabc70ef199142e462b7c9d2970e35b83c | /D3D.h | 8bab5bfc6778911a0ef91165387b195866f84e43 | [] | no_license | vbruder/Engine | 9baa0b9a1108cd68e92bd876a38c330f4b25ef8a | ed0c22bcc7596836b6ba7f2f47fc75b1b4d15a57 | refs/heads/master | 2023-01-01T12:50:35.463333 | 2020-10-28T10:31:39 | 2020-10-28T10:31:39 | 12,707,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,289 | h | D3D.h | #pragma once
// linking
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "d3d11.lib")
// includes
#include <dxgi.h>
#include <d3dcommon.h>
#include <d3d11.h>
#include <DirectXMath.h>
#include <DirectXPackedVector.h>
using namespace DirectX;
using namespace DirectX::PackedVector;
class D3D
{
public:
D3D(... |
e7bdacd8d0d8789e3e66215ae49e514807c621c8 | f8939077f6e66cbd27b40e25a3cf8b7e84e4d852 | /operator_overloading/complex_matrix.cpp | 48ba8793cdb9f8ee44ee31bb4324c2331946da98 | [] | no_license | aashreyj/oops-lab | c7f21bc0589607aed7ec5d3b7a6fe023d73d6723 | 938a2e6a4457a0cfd8f97a1adbd1b7914b39edf1 | refs/heads/master | 2020-04-17T22:46:37.802142 | 2019-05-07T20:51:48 | 2019-05-07T20:51:48 | 167,008,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,330 | cpp | complex_matrix.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
#include<math.h>
class complex_num
{
public:
int real, imag;
complex_num() //default constructor
{}
complex_num(int r, int i) //constructor with arguments
{
real = r;
imag = i;
}
complex_num(const com... |
33114e88d3dfea850be708fd518622551776ee80 | ef4103c54d930ccddf025bb743e399587b7b5c4d | /sources/entity-component-system/SystemManager.h | b82adfabc2751d4428e410331100d1e1f52dfb6a | [] | no_license | PatrykOstasz/sdl2_trainings | 9995ec198b354e2e9cc574c140a0472128f8396e | b5fe16324614d3bfc405be13e6d9367fd5f14af9 | refs/heads/master | 2020-04-26T21:02:08.604854 | 2019-05-09T21:55:06 | 2019-05-09T21:58:31 | 173,830,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | SystemManager.h | #ifndef SYSTEM_MANAGER_H_INCLUDED
#define SYSTEM_MANAGER_INCLUDED
#include <memory>
#include <vector>
using std::unique_ptr;
using std::vector;
class Entity;
class SystemManager {
private:
vector<unique_ptr<Entity>> mEntities;
public:
SystemManager();
~SystemManager();
void update();
void draw()... |
f0203c154e8e1d09392669754f1f044a3d21ffcd | c26907ea2a54797aeaa780ff14a521cd1d13ff74 | /connectdb.h | 1086ec40391be6508428bc49f22902dd7b040d1c | [] | no_license | AllFor1ONE/oneForAll | bd6d517b96523fdf36f348639d8aadb10c23c77e | ab514ede75a91c8cd34d2c343e8c11cb7ec9bcc8 | refs/heads/master | 2021-07-20T06:54:31.170576 | 2020-05-31T03:16:25 | 2020-05-31T03:16:25 | 174,071,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | h | connectdb.h | #ifndef CONNECTDB_H
#define CONNECTDB_H
#include "customer.h"
#include "employee.h"
#include "manager.h"
#include "rental.h"
#include "disc.h"
#include <QtSql/QSql>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>
#include <QVariant>
#include <QtSql/QSqlTableModel>
#inc... |
1523c904db1c61ae26e55ce1c4f03b4bd022f9ad | 0f67f4b756d4618c470f9c940d5bb7b902c98585 | /MumbleVoipModule/MumbleVoipModule.cpp | 15c6e87984f2c89fb2ca90fe2e9eb52583af3e0f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jonnenauha/naali | 8dc7e5a9802f0206c97b067d8675f49e602f6488 | 50060338255e9e5f6427b2f57b93bb884954d14b | refs/heads/master | 2020-12-25T08:38:09.291039 | 2010-03-20T13:22:58 | 2010-03-20T13:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,067 | cpp | MumbleVoipModule.cpp | // For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MumbleVoipModule.h"
#include "MemoryLeakCheck.h"
#include "LinkPlugin.h"
#include "RexLogicModule.h"
#include "ModuleManager.h"
#include "Avatar/Avatar.h"
#include... |
ecaf6a03952aa55e207cd16d4e34258c1ae08a80 | c8045a13bd1ebe378b242c98f1aa3d7d0c3a8cf1 | /367_Valid_Perfect_Square/sol.cpp | 5b10d3e47cb43d3bad4a98e51461ef572a829f30 | [] | no_license | IrvingW/LeetCode-problems | 1e6f85c71400043f1dc97d99e11297357ce11aaa | 65cd70ec4fd0335cc6e536db1e1373aa5630b4b5 | refs/heads/master | 2018-11-15T17:18:08.056162 | 2018-09-02T09:45:04 | 2018-09-02T09:45:04 | 118,145,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | sol.cpp | class Solution {
public:
bool isPerfectSquare(int num) {
// 1, 4, 9, 16, 25
// sub: 1, 3, 5, 7, 9
int sub = 1;
while(num > 0){
num -= sub;
sub += 2;
}
return num == 0;
}
};
|
1af37072cbfd8b2b4bc0a161c956636cb63a7b28 | 9d64a176b20c1451f9e61e0cd4a910c875567c16 | /srg_worldmodel/include/srg/SRGWorldModel.h | 9216814601583b959d9717853b31d9c9a7afdbcc | [
"MIT"
] | permissive | nio-core/alica-fog-simulation | ad6a37f4e984762984148be3b5e925f050100e0b | 73dcb48fac3e5a42e88ae345b3896f7629dba39c | refs/heads/master | 2022-12-12T17:40:43.602352 | 2020-07-02T12:43:44 | 2020-07-02T12:43:44 | 274,662,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,017 | h | SRGWorldModel.h | #pragma once
#include "wm/BasicHumanNeeds.h"
#include "wm/SRGSimData.h"
#include <SystemConfig.h>
#include <essentials/EventTrigger.h>
#include <knowledge_manager/ASPKnowledgeManager.h>
#include <supplementary/InformationElement.h>
#include <supplementary/WorldModel.h>
namespace essentials
{
class SystemConfig;
}
n... |
4ff70e7dc0d3014ef63c8e9f56b803c9fb6a900c | f0d4e5b2bc6a688dff5dd4d1d0178b3c6e8b3309 | /include/lockwrapper.h | 2d3a1f41ba5d010b53f223bdd52370773614e149 | [
"Apache-2.0"
] | permissive | cac2003/GAM-1 | 25a2d0f839e00c0c8a0a28629cac8a4a9f007925 | 218c5a1e985bd7572f9f8a938f9e3c7468868be4 | refs/heads/master | 2020-03-30T20:03:44.334154 | 2018-10-05T05:50:48 | 2018-10-05T06:12:44 | 151,571,503 | 3 | 1 | null | 2018-10-04T12:55:21 | 2018-10-04T12:55:21 | null | UTF-8 | C++ | false | false | 708 | h | lockwrapper.h | // Copyright (c) 2018 The GAM Authors
#ifndef INCLUDE_LOCKWRAPPER_H_
#define INCLUDE_LOCKWRAPPER_H_
#include <mutex>
#include "settings.h"
class LockWrapper {
#ifdef USE_ATOMIC
bool lock_ = 0;
#else
std::mutex lock_;
#endif
public:
inline void lock() {
#ifdef USE_ATOMIC
while (__atomic_test_and_set(&lo... |
3b0c1bacd10887d57594e1726521807a6f2ea657 | 661949d22526a5963a64a654badde761d660721d | /CC_ForestGathering.cpp | 80813d1cc690a5754893ae67cb76deb4ebfe6d6d | [] | no_license | Sandeep1991/Coding | c6fae54c50438086cc8746a85d5288687680d151 | 6e66bf34173fe3be0d4e728eadf7927c184a9800 | refs/heads/master | 2021-01-19T02:40:18.638877 | 2019-07-17T05:13:33 | 2019-07-17T05:13:33 | 51,288,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | CC_ForestGathering.cpp | //Code Chef Forest Gathering May 2016 Long contest challenge
//https://www.codechef.com/MAY16/problems/FORESTGA
#include <iostream>
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
ll N, W, L,a,b;
vector<pair<ll,ll> > T;
pair<ll,ll> temp;
cin>>N>>W>>L;
for(ll i=0;i<N;i++)
{
... |
e8b3b31698b0ee78886374c27e7c372e1128af20 | 647ce8d4550c4f4cc61f597747c238adb1fbcd54 | /client/caller.cpp | b8def2003dc619556de83d74cd428f8d6ac3c0d8 | [] | no_license | tantan580/qDbus-demo | d036bf7debeb3b6fe4487ecb67822d763709e1c7 | e74532447404ef55aae129a5c3e2f1782ef212dd | refs/heads/master | 2022-10-22T13:31:26.823891 | 2020-06-17T09:00:36 | 2020-06-17T09:00:36 | 272,914,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,518 | cpp | caller.cpp | //caller.cpp
#include "caller.h"
#include <QDBusInterface>
Caller::Caller(QObject *parent) : QObject(parent)
{
//receive signal method 1
// QDBusConnection::sessionBus().connect("com.openthinks.dbus.service", "/","com.openthinks.dbus.interface","nameChanged", this,SLOT(onNameChanged(QString)));
//receive sig... |
fbb62c10357be8f76d4522323c5b9625b66674d8 | de61b89b6cfafeafe9574a5338d300e9b90dbc1f | /UocSoChungLonNhatCuaNSoNguyenDuongDauTien.cpp | 2e3f17d234ea1e872b6df85246fadac0859af9b3 | [] | no_license | nha20042000/phao-thi | 08b630f1dfe9163659f46de0200f468efa999b92 | d4df381a2eb0a98809c32273ae99d9f7fb682a65 | refs/heads/master | 2023-07-23T00:29:20.815767 | 2021-08-24T16:37:37 | 2021-08-24T16:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | UocSoChungLonNhatCuaNSoNguyenDuongDauTien.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll bcnn(ll a, ll b){
return a*b/__gcd(a,b);
}
int main(){
int t;
cin>>t;
while(t--){
ll n;
cin>>n;
ll x=1;
for(ll i=1; i<=n; i++){
x=bcnn(x,i);
}
cout << x << endl;
}
}
|
213a537cbb35a8299655e0a735d3154446ad909c | 88bc7a62727b23435c9f62b894c82dd992a594d6 | /iTalkClientnewnew/iTalkClient/friendmsg.h | f4d0914ff1895110862755c40e91eda3a9ed18c8 | [] | no_license | L65430/italk | 52a0fa0deb12964709f71b155bd39c6a3869f5c8 | 884e47572f542e11ec1cb8cf1ff346434bc3935e | refs/heads/master | 2020-04-14T05:18:52.206688 | 2018-12-31T09:40:45 | 2018-12-31T09:40:45 | 163,657,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | h | friendmsg.h | #ifndef FRIENDMSG_H
#define FRIENDMSG_H
#include <QWidget>
#include<QLabel>
#include<QMovie>
#include<QMouseEvent>
#include<QDebug>
#include<QPropertyAnimation>
#include<QImage>
#include<QDesktopServices>
#include<QPropertyAnimation>
#include<QNetworkAccessManager>
#include<QCryptographicHash>
#include<talk.h>
namespa... |
8b507092f830b8ece4317b11ec320f6d3ae06b1d | e104495e2b5834d7f4da7a4fd0499328e8be4141 | /SeleneDev/Code/Selene/Render/seTextRenderer.h | d2888c65214a5973c62f6a481ffc69ecd2b6ed9c | [] | no_license | giliaidzin/Selene | 2e9936fbd9ebb17e924635f174d4b7c7601b9edf | 757d04933b38d668457b952ca30cb985e9542bb0 | refs/heads/master | 2016-09-03T07:11:33.048006 | 2013-03-10T10:05:41 | 2013-03-10T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | h | seTextRenderer.h | #ifndef SE_TEXT_RENDERER_H
#define SE_TEXT_RENDERER_H
#include "Selene/Utils/seStdIncludes.h"
namespace Selene
{
class CTextRenderer
{
public:
CTextRenderer();
virtual ~CTextRenderer();
virtual void Render();
virtual void Enable();
virtual void Disable();
virtual void SetEnabled(bool enabled);
vi... |
24169473b94d95e01cc823026608708c9858a51b | c0164407327b147c68c76b039c31c39b1446b012 | /C++Programs/RandomNumbersGenerator/randomGenerator.cpp | 4c231b7b9e2361fb2782fa781df7448751c22e2b | [] | no_license | NDK-Secrets/NDK-Projects | 880cb24b7d1edc8b4425f9c1664f464a3b24a8ba | c31f1e492b1cc7b8bf20589fa5e46f1ecf5e27f7 | refs/heads/master | 2021-06-28T13:55:00.877121 | 2017-09-17T18:10:26 | 2017-09-17T18:10:26 | 100,281,315 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | randomGenerator.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(){
srand(time(0));
for(int i=0;i<20;i++){
cout<<1+(rand() % 100)<<endl;
}
}
|
cf5a09a547b9fd392e5d5421fcb132b9c9290f39 | 6a02792296ab3195ccabc381ed82841e9c53ce79 | /include/macho/macho.h | b2bf432acacbe6e015534635a1942d3bf5357a3e | [] | no_license | al45tair/libmacho | 843ce1993b9e50a4f47159f1c226ae8ff65867b0 | e4372070ac8e121289c3806b1b4456b560f06f05 | refs/heads/master | 2023-03-12T13:13:35.379363 | 2013-10-16T13:11:31 | 2013-10-16T13:11:31 | 96,516,032 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | macho.h | /* Emacs, this is -*-C++-*- */
#ifndef LIBMACHO_H_
#define LIBMACHO_H_
#include "types.h"
#include "file.h"
#include "architecture.h"
#include "object.h"
#include "load_command.h"
#include "segment_command.h"
#include "dylib_command.h"
#include "uuid_command.h"
#include "rpath_command.h"
#include "umbrella_commands.h"... |
38a0b344ec24c443c2e21d11f90d58f76aada2ef | b0df22a4b4dadddd3a9494e6efbd3fc4459c5e0d | /leetcode/add_two_numbers.cpp | e0ab854227ab58cb8473b69eba836532ed7bb9d3 | [] | no_license | nkhaldi/Cpp | df893fac1e99c44785bfdd0cb513bf5753fe62bd | 49011419cdcb040e01c5bdc7ce29669d734ce015 | refs/heads/main | 2023-04-13T22:37:59.319725 | 2023-04-06T18:51:03 | 2023-04-06T18:51:03 | 192,748,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | cpp | add_two_numbers.cpp | /*
* You are given two non-empty linked lists representing two non-negative integers.
* The digits are stored in reverse order, and each of their nodes contains a single digit.
* Add the two numbers and return the sum as a linked list.
* You may assume the two numbers do not contain any leading zero,
* except the ... |
b7282475de9a9508114243d629cdc838a2e0437d | 25036510998bfac800959ee2eab9affbf359c416 | /projects/Hack-N-Slash/src/tile_map.cpp | eeaf6ae8a6c7e2c95afe1aef204e1b82ca148710 | [] | no_license | TwoTwentyFour/SDL2 | 1e78afcdc5639cf074535b92231ff15495aa2c90 | ce4925e80993077fd00a3adad2a3ecb2fdeb6d5a | refs/heads/master | 2021-05-13T19:07:57.048372 | 2018-01-10T00:42:55 | 2018-01-10T00:42:55 | 116,886,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,660 | cpp | tile_map.cpp | #if _WIN32
#include "SDL.h"
#else
#include "SDL2/SDL.h"
#include "SDL2/SDL_ttf.h"
#endif
#include "tile_map.h"
#include "defines.h"
#include <fstream>
AV_Tile_Map::AV_Tile_Map()
{
/*if ( TTF_Init() < 0)
{
printf( "TTF_Init Error: %s\n", TTF_GetError() );
return;
}*/
srcRect.x = 0;
srcRect.y = 0;
srcRect... |
be1f7afc196275d751955c5ed8886d7622034e44 | cb1b74c4b25440d7e1c8122bdd3895070016d2e5 | /aesalgorithm.cpp | 6465ada6d36f6216f2c0ec20b0e5d0012f9d0163 | [
"MIT"
] | permissive | AyushBhargav/MUCrypt | 31f529e1b0f9acd7a4ed2597fe767ccceeb3c36c | 3feddfb5ba8fcd04fc41329665d3b7fab1a9eb56 | refs/heads/master | 2022-01-05T03:23:53.200255 | 2019-05-18T17:55:53 | 2019-05-18T17:55:53 | 107,712,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | cpp | aesalgorithm.cpp | #include <aesalgorithm.h>
#include <openssl/aes.h>
#include <string>
using namespace std;
AESAlgorithm::AESAlgorithm()
{
}
string AESAlgorithm::encrypt(string args[], int n) {
unsigned char* oneKey = (unsigned char*)args[0].c_str();
AES_KEY key; // must be 16 bytes
AES_set_encrypt_key(oneKey, 128, &key)... |
91a83000a54629728dda19a2ea58e89a9512c31d | f0b8f6726249e494d407c43093e26b044f3bd4d6 | /menu.h | 9bccf4a287c3d2ac552bc77caad9744cb8714df1 | [] | no_license | clanqt/Project75-nif | b513a32fed5245913290653d210fa8558432f9a4 | 46995523ceadc70c345ffeca81f006d3df8b8b67 | refs/heads/master | 2020-04-25T20:11:40.096870 | 2019-02-28T05:44:17 | 2019-02-28T05:44:17 | 173,045,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,369 | h | menu.h | #ifndef MENU_H
#define MENU_H
#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QUrl>
#include <QTimer>
#include <QEventLoop>
#include <QKeyEvent>
#include <QScrollArea>
#include <QInputDialog>
#include "downloadmanager.h"
namespace Ui {
class Menu;
}
class Menu : public QWidget
... |
1ae71312b7f8e93acc8970ae8a0e7fd298bc82ea | 7d5ab12afa98390e714faa9cfd8c6bfe0ab505f8 | /include/CppUtil/RTX/MatVisitor.h | d1d95050c9aff9f811eab1762ced7f405ebfc785 | [
"MIT"
] | permissive | huangx916/RenderLab | 6199b0a4bc44cbae5b28291f999484eedec7de87 | a0059705d5694146bbe51442e0cabdcbcd750fe7 | refs/heads/master | 2020-07-21T21:46:31.215327 | 2019-09-07T09:47:02 | 2019-09-07T09:47:02 | 206,981,200 | 1 | 0 | MIT | 2019-09-07T14:40:54 | 2019-09-07T14:40:54 | null | UTF-8 | C++ | false | false | 838 | h | MatVisitor.h | #ifndef _RTX_RT_MATERIAL_MAT_VISITOR_H_
#define _RTX_RT_MATERIAL_MAT_VISITOR_H_
#include <CppUtil/Basic/HeapObj.h>
namespace RTX {
class Material;
class Lambertian;
class Metal;
class Dielectric;
class Light;
class OpMaterial;
class Isotropic;
class MatVisitor : public CppUtil::Basic::HeapObj {
HEAP_OBJ_SE... |
0a94fad43a16a4b89d1abd636bd558f86c690d93 | c0cb14bdf5c3b2e97dd5eba73fb21e825c0000a4 | /hackerearth/Super String.cpp | d355242b4086d9fc292d5373bf1217a988465235 | [] | no_license | MISabic/Competitive-Programming-Problem-Implementation | 799cab32a3519b60dfa390f6e115a50d105f12c1 | 04e1a68f45ce2fabe33b7006fe78c680d39fb12f | refs/heads/master | 2022-12-08T13:59:49.044444 | 2020-08-11T06:07:41 | 2020-08-11T06:07:41 | 286,660,692 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | Super String.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n,k;
string str;
cin>>t;
while(t--){
cin>>n>>k>>str;
int m=999999,pos;
for(int i=0; i<n; i++){
if((int)str[i]<m){
m=(int)str[i];
pos=i;
}
}
vec... |
305800e42c2e86cfc4f8cffcc3285c1c5eb7ce9b | 555951c2daef8cace91229e3bcdcba1af89d776a | /LunarPool/Mur.cpp | 90418020b532bd0f16868d1a945a27719029b467 | [] | no_license | PigeonZombie/LunarPool | 1699122fa3c5782f165aede656079ebd286a52ea | 7f0b415a72ae834167c6e96fde9fa9067f17447f | refs/heads/master | 2021-01-13T09:03:08.497657 | 2016-10-30T15:33:54 | 2016-10-30T15:33:54 | 72,357,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | Mur.cpp | #include "Mur.h"
Mur::Mur()
{
}
Mur::Mur(const float _x, const float _y, const float _largeur, const float _hauteur)
{
x = _x;
y = _y;
largeur = _largeur;
hauteur = _hauteur;
rectangleMur = IntRect(x, y, largeur, hauteur);
}
Mur::~Mur()
{
}
float Mur::GetX() const
{
return x;
}
float Mur::GetY() const
{
re... |
18723e84aa3b4a9ed50dae4214ed53492aed9c14 | d0c2553e7a2fa6639e814143260c8a51791c11cb | /FIT2096 Week 6 Solution/FIT2096 - Week 6 Solution/FIT2096 - Week 6/BulletManager.h | 441e472e085e6b8851293ae391b2debae7f306d1 | [] | no_license | hpy9707/Assignment3 | 7337d00ceac57931f103bca51561f93a2f33f26c | 86831bb213615db83f157dae8f5c25413e412bb3 | refs/heads/master | 2020-03-17T03:20:25.187444 | 2018-05-27T09:29:37 | 2018-05-27T09:29:37 | 133,230,843 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | h | BulletManager.h | #ifndef BULLETMANAGER_H
#define BULLETMANAGER_H
#include <vector>
#include "MeshManager.h"
#include "TextureManager.h"
#include "Bullet.h"
#include "MathsHelper.h"
class BulletManager {
private:
MeshManager* m_meshManager;
TextureManager* m_textureManager;
Shader* m_shader;
//int m_clipsCapacity;
//float m_reloa... |
99547a479eba698d888a8f99817a66e21efc4542 | f9285898735714b3e301c310f7b6d2c0a2c22798 | /tests/ExternVarDeclTest.cpp | 103f19e5c376f883f10abfa2de43d5eb8b4ba95a | [
"MIT"
] | permissive | andreasfertig/cppinsights | dcb6c53e0c79770df383067e70b852fde7fb24f5 | 50b962d6bb6d96c567a5b0870c3c828405b40d14 | refs/heads/main | 2023-08-27T06:36:33.307787 | 2023-07-31T05:21:49 | 2023-07-31T05:21:49 | 131,510,015 | 2,465 | 156 | MIT | 2023-09-13T11:31:36 | 2018-04-29T16:21:08 | C++ | UTF-8 | C++ | false | false | 66 | cpp | ExternVarDeclTest.cpp | int main()
{
extern int err;
return err;
}
int err = 2;
|
dcaf858e9a978fa82c5b32864e46a118c3990a19 | 9da88ab805303c25bd9654ad45287a62a6c4710f | /Cpp/LeetCode/wc226_2.cpp | d28a7b9402441c762c0fc58b1fe6f41721666924 | [] | no_license | ms303956362/myexercise | 7bb7be1ac0b8f40aeee8ca2df19255024c6d9bdc | 4730c438354f0c7fc3bce54f8c1ade6e627586c9 | refs/heads/master | 2023-04-13T01:15:01.882780 | 2023-04-03T15:03:22 | 2023-04-03T15:03:22 | 232,984,051 | 2 | 0 | null | 2022-12-02T06:55:19 | 2020-01-10T06:47:00 | C | UTF-8 | C++ | false | false | 1,007 | cpp | wc226_2.cpp | #include "usual.h"
class Solution {
public:
vector<int> restoreArray(vector<vector<int>>& adjacentPairs) {
unordered_map<int, vector<int>> edges;
for (const auto& e : adjacentPairs) {
edges[e[0]].push_back(e[1]);
edges[e[1]].push_back(e[0]);
}
vector<int> ter... |
a25a55a198349dc3f9637f66f8ea82de19ad4c97 | fe28250f9b9a7eacde867976d43be0b86d64acfc | /9990/coolant/alphat | b32c8f72af2e48804af39eb8647d3dcec11f1be6 | [] | no_license | vitorvas/teste2 | d179705e27fc070644a5e44d5b2fcef976504200 | 5f8c9ff21d48d6fb5ed7ef503a0601dac1bcf924 | refs/heads/master | 2021-01-09T20:17:09.115079 | 2016-07-21T20:07:21 | 2016-07-21T20:07:21 | 63,899,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277,502 | alphat | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.x |
... | |
495e19a7ec83c8ee495b4f4471ae5cb6611c322c | 72aca11f973b7c337012475ad3111cd20a5dd589 | /openjudge/1.05-Loop/34-Factorial.cpp | e0d9840bf076e21e26d3523fc565caffbd6e9c51 | [] | no_license | aplqo/exercises | a4cee1acbef91e64aee2bd096cd7e0bb834926a4 | e28f14eaf89481c34bc1a27206e8cea2d2d94869 | refs/heads/master | 2021-06-25T06:34:09.535835 | 2021-04-08T13:52:39 | 2021-04-08T13:52:39 | 217,698,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | 34-Factorial.cpp | #include <iostream>
using namespace std;
int main()
{
int n, last = 1, ans = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
last *= i;
ans += last;
}
cout << ans;
return 0;
}
|
16ac75b2e3f40a7d50b24fc44cb1f59759d97973 | d3d4b3ee12abc93bacba24b326b8328a39ffb697 | /Assignment2/OgreApp1/src/Player.cpp | 4ae35a9ad035da6903afb6ddad0f50f66e00e723 | [] | no_license | roccivic/ogre3d | 4447ae36a0809d5a88704aa2bf5986ed968949ee | d6cd36ac939a5548ff58bbbb38d41c9fc2a1780b | refs/heads/master | 2021-06-01T11:57:03.005012 | 2021-05-21T15:49:32 | 2021-05-21T15:49:32 | 18,532,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,109 | cpp | Player.cpp | #include "Player.h"
Player::Player(Ogre::SceneManager* mSceneMgr) {
this->mSceneMgr = mSceneMgr;
rotated = false;
position[0] = 0;
position[1] = 0;
direction = Direction::NORTH;
mRotating = false;
mRotatingLeft = false;
walking = false;
dying = false;
dyingProgress = 1.0;
nextKey = 0;
}
Pl... |
4eca7d677c73eafeb03e040378ae1c1e9dd5760a | ca5757f0b877bbb752e6ab49bebfdd19072b3a90 | /tests/src/basic_types/integer.cpp | 900a693996509b08aa1fd131b0f9a1b2502687d5 | [] | no_license | andrewstalin/asn.1 | a593b8cf4a9af2b5864dd391976e6851e8be5c07 | dc759d70dea8816b7e7d76cafbc319a3a2d25b94 | refs/heads/master | 2021-01-12T06:28:06.956067 | 2017-05-31T04:32:16 | 2017-05-31T04:32:16 | 77,364,838 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,049 | cpp | integer.cpp | // Licensed under the MIT License <http://opensource.org/licenses/MIT>
// Author: Andrew Stalin <andrew.stalin@gmail.com>
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PU... |
fb46b25c3ba7990dfd5822d69ec8e011ddd892a9 | fc9d6ab3315ba46a1f03955053c1517397df8c1f | /NeoAnimation/NeoAnimation.ino | 151da0c25203beeac91d4a4c93af833874876bc7 | [] | no_license | bradenjarvis/NeoPixel-Arrays | 733ce3d4af087919259f082fc399d99bc383d6c4 | e3b6b8f95593e3693df52ae21d321783d8e7ca05 | refs/heads/main | 2023-03-09T07:24:26.243437 | 2021-02-15T20:09:38 | 2021-02-15T20:09:38 | 339,194,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | ino | NeoAnimation.ino | #include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel strand(64, 0);
#include "frames.h"
int colors[4][3] {
{0, 0, 0},
{255, 0, 155},
{0, 0, 255},
{200, 200, 0}
};
int whichFrame = 0;
void setup() {
strand.begin();
strand.clear();
strand.setBrightness(10);
}
void loop() {
for (int i = 0; i < strand... |
0f068fcd6c37e7094c470bfd0f21473c56c42ea2 | 099cb48fffffd57ef1cb96b0e3ef08618ab7d6ce | /CAndAsm/c.cpp | ec0c2f88b73407cde99c4931fedfc47050c6b52f | [] | no_license | pokerfaceOo/OS | c592e3b0e7f778c4062ff339e64c8b6639d663b2 | 8ad90e772cfb4dc5a8c89510f07e39e1ab85e6b9 | refs/heads/master | 2021-01-23T02:35:18.436250 | 2012-01-25T17:11:09 | 2012-01-25T17:11:09 | 2,838,780 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | c.cpp | #include <iostream>
#include <cmath>
using namespace std;
extern "C" {
void asinb (double, int);
void printNumber(double a) {
cout << a;
}
}
int main() {
asinb(M_PI / 2, 3); // 3 * sin (PI / 2)
return 0;
}
|
0b89c3d2c3c71da162cd128c5635ed2b4d54df4c | 0433091a40752313e015bf761b327abb319ec1d1 | /GameClicker/qgcbroadcaster.cpp | bae027edee528cfe92f9e78a26d0374f9c4554ac | [
"MIT"
] | permissive | alexzk1/game_clicker | 8c08bfeb419d801444eb25a2a764319255f8cd65 | 43f4ebb7640ab2bfa0af075d971d4276ab8f4066 | refs/heads/master | 2021-01-20T04:49:45.865445 | 2017-04-28T19:56:32 | 2017-04-28T19:56:32 | 89,739,554 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | qgcbroadcaster.cpp | #include "qgcbroadcaster.h"
QGcBroadcaster::QGcBroadcaster(QObject *parent) :
QObject(parent)
{
}
bool QGcBroadcaster::signalBroadcast(QString signal)
{
}
|
821e0876981ac80b55334ab7365bf860edabf08d | ad6330253f40fe769f341414ec88f7bdc5616118 | /src/scoring.hpp | 0d60009bee6a630cda74d51b5850e2b0f7fdafab | [] | no_license | huggle/extension-scoring | 4591e38addc0619cd7af5bc55083fb4b7043755b | d953cf08d62d32fac5aecb15faf1cc975d293da1 | refs/heads/master | 2021-01-17T09:21:27.887704 | 2020-04-13T08:29:38 | 2020-04-13T08:29:38 | 41,301,025 | 1 | 1 | null | 2018-12-24T22:41:51 | 2015-08-24T12:12:05 | C++ | UTF-8 | C++ | false | false | 2,437 | hpp | scoring.hpp | //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 is distributed in the hope that it will be useful,
//but... |
0a2379845e1be883f92a746de5b80c97324d106e | cc63466d8a66bb8925508791c007c0054149ce5a | /msj_archives/code/BugSlayer/TraceSrv/Trace.cpp | f6793a0ffadf2a1229b4f2fd2ce7476c2c478929 | [
"Unlicense"
] | permissive | liumorgan/misc-code | 9675cc258162064083126a22d97902dae36739c9 | d47a8d1cc41f19701ce628c9f15976bb5baa239d | refs/heads/master | 2022-06-29T20:41:54.288305 | 2020-05-13T00:20:05 | 2020-05-13T00:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,939 | cpp | Trace.cpp | /*----------------------------------------------------------------------
John Robbins
Microsoft Systems Journal, December 1997 - Bugslayer Column!
----------------------------------------------------------------------*/
#include "stdafx.h"
#include "TraceSrv.h"
#include "Trace.h"
IMPLEMENT_MEMDEBUG ( CTrace ) ;
// Th... |
2911b20d451b134348c1471f6ea67d50eacf186b | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ui/ash/app_access_notifier.h | 893b0a839554acbb7092c7a992288b4d59669ffd | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 4,888 | h | app_access_notifier.h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_ASH_APP_ACCESS_NOTIFIER_H_
#define CHROME_BROWSER_UI_ASH_APP_ACCESS_NOTIFIER_H_
#include <list>
#include <map>
#include <string>
#include <vector>
#... |
5f2101c75d14f020d7b0413afac418822459657a | 39bd02bc9d5bdc3fe00433b9080c5466451f792e | /engine/runtime/libs/graphics/public/GxGraphics/Graphics/Gpu/GpuResources.hxx | 42a6cc50a823386de307444dc366cad6211d05a0 | [] | no_license | selmentdev/graphyte-engine | 7db986ec0b24b458348d4d632c661ce9f81ad671 | ed7bcda3d077d2eaa47c2d738b9d03c57adf60f2 | refs/heads/master | 2022-03-05T11:09:07.598388 | 2021-01-10T00:42:54 | 2021-01-10T00:42:54 | 219,206,110 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,215 | hxx | GpuResources.hxx | #pragma once
#include <GxGraphics/Graphics.module.hxx>
#include <GxGraphics/Graphics/PixelFormat.hxx>
#include <GxGraphics/Graphics/Gpu/GpuDefinitions.hxx>
namespace Graphyte::Graphics
{
class GpuResource
{
};
static_assert(!std::is_polymorphic_v<GpuResource>);
class GpuSampler : public GpuResourc... |
5fb5ca3f53539c9ed1b274cc3b45eca7ec37c85a | 0ed8ccb2e6fe8070087f687b492f77462bd4ffb9 | /code/09.2 Lesson 2 Triangle rasterization and back face culling/Geometry.cpp | 81507afc0a7ae1b286256a0b0a0207874a4db680 | [] | no_license | joyce725/RenderLearningPlan | b7921e8e925ad8fc7695f0b87eb9c82cd581a937 | a44411da6761f634813173b36974bdf8a7e08fe0 | refs/heads/master | 2023-03-23T23:26:20.805506 | 2021-03-11T07:15:01 | 2021-03-11T07:15:01 | null | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 10,249 | cpp | Geometry.cpp | #include "geometry.h"
////////////////////////////////////////////////
vec3 Vector_Add(vec3& v1, vec3& v2)
{
return { v1.x + v2.x, v1.y + v2.y, v1.z + v2.z };
}
vec3 Vector_Sub(vec3& v1, vec3& v2)
{
return { v1.x - v2.x, v1.y - v2.y, v1.z - v2.z };
}
vec3 Vector_Mul(vec3& v1, float k)
{
return { v1.x * k, v1.y *... |
f0abffa175bc0c4cd9eae078845aec00e0c95deb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708284669460480_0/C++/yuzmukhametov/b.cpp | 2d3fa9d5fca13facb662cf7a55ff07550bee717d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,704 | cpp | b.cpp | #include <iostream>
#include <sstream>
#include <cmath>
#include <string>
#include <string.h>
#include <cstdio>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <cassert>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define ... |
61d42c3a27d424b1ae81f3d3651b88a5e0395459 | eb57f329a82f96dd8e39ac2f3289338fdf993e34 | /lcm_defs_local/exlcm/waypoint_t.hpp | 0b9a3261dd311aa08644193d2e5aaff435e49fc8 | [] | no_license | pinakigupta/BehaviorUtilityTreeBased | 2f391f9708d6bb04180e9373aa93f80b05c28b1b | c062f35b6d4e34ca0bffb0a66a8ca13ab0cce474 | refs/heads/master | 2020-09-11T18:14:44.377133 | 2019-11-16T19:40:37 | 2019-11-16T19:40:37 | 222,149,428 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | hpp | waypoint_t.hpp | /** THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT MODIFY
* BY HAND!!
*
* Generated by lcm-gen
**/
//#include <lcm/lcm_coretypes.h>
#ifndef __exlcm_waypoint_t_hpp__
#define __exlcm_waypoint_t_hpp__
namespace exlcm
{
class waypoint_t
{
public:
float station_m;
float east_m;
... |
d0572f7aa3c0b1bf2bb9df93ecbce7aed946e672 | 8bd4a8c02f7b7a804e743cd38877811f547bb339 | /CodeChef/JDELAY.cpp | 38c1624d5ad43c439eb1a4ded53784f842ed5ede | [
"MIT"
] | permissive | dkp1903/Competitive-Programming | c314257bf3ea7f40d720a60e259f0a0398de94a4 | 564d1730fb78a6bf0678dd7184a9f8669f53c9bf | refs/heads/master | 2021-07-05T22:16:24.747709 | 2020-04-22T11:29:11 | 2020-04-22T11:29:11 | 187,431,446 | 2 | 1 | MIT | 2020-10-02T07:45:38 | 2019-05-19T03:54:41 | C++ | UTF-8 | C++ | false | false | 430 | cpp | JDELAY.cpp | /**
* Template for Contests
*
* @author Sanjeev
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t, n, s, e;
cin >>t;
while(t--){
cin >>n;
int ans = 0;
while(n--){
cin >>s ... |
f6371b99d3f207cda9e73bf69dcf805b9f76cd68 | 6b964321fd16a00b0f79fc8bb222165acd49a43f | /cs130/lab7/lab7.cpp | 9722ea8621dd3ca615a4e272b0b789f73cd169cd | [] | no_license | dkwired/coursework | f447659485fded8e33a826a35867c01246860175 | 014e5b8f39b84e20d85cd1655c5a5b2267da6433 | refs/heads/master | 2020-03-29T19:52:09.596267 | 2014-04-08T21:12:23 | 2014-04-08T21:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,288 | cpp | lab7.cpp | // Name: David Klein
// Quarter, Year: Fall 2013
// Lab: 021
//
// This file is to be modified by the student.
// main.cpp
////////////////////////////////////////////////////////////
// FRONT VIEW - Drop z axis
// SIDE VIEW - Drop x axis
// TOP VIEW - Drop y axis
#include <GL/glut.h>
#include <math.h>
#include <iostr... |
d5b5b150e8929278be2e063d233c1e16aadf0952 | fa8b89fe6c88c2924dd8ab4cc9aee93e96381808 | /KeyboardArrows.cpp | b70fcc7d4ae76f535555277424e51693692c4c74 | [] | no_license | xorde/xoStandardIO | d99f519569f2f494e762349fd5b7c6f50596623f | 65f48e923a2e184b6c7d91be60cbdc594921e7b1 | refs/heads/master | 2022-11-23T03:42:53.338904 | 2020-07-17T12:38:09 | 2020-07-17T12:38:09 | 281,124,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,845 | cpp | KeyboardArrows.cpp | #include "KeyboardArrows.h"
#include "helpers/GlobalKeyboard.h"
KeyboardArrows::KeyboardArrows(QObject *parent) : ComponentBase ("KeyboardArrows", "Generated triggers on arrow or WASD keys", parent)
{
setIcon(":/images/gamepad.svg");
createOutput("Up", m_arrowUp).sampling(0ms);
createOutput("Down", m_arro... |
ff0d115b4615e2fe25f661df5007165fcbc1aab6 | e8a705fc184997c48cf6270783d459b1954ce158 | /C++/20_ValidParentheses_Easy.cpp | 5b623d57e91ec8b7fc034070d310a147a3d09c5d | [] | no_license | reckhhh/LeetCodeSolutons | 3ba7b45d4f048eb7018a1e58512d73138546a649 | 80841c7ea0d450d62b2f96ceefd0f9d16f45ac73 | refs/heads/master | 2021-01-10T05:06:06.163822 | 2015-06-12T15:02:36 | 2015-06-12T15:02:36 | 36,565,084 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | 20_ValidParentheses_Easy.cpp | /*
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
Tags: Stack, String
*/
class Solution {
public:
bool isValid(string s) {
stac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.