blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9801296c57373a26717d0b313695a6f48fb2e37 | 65b85b4685fc430bbba85398ad9ea62b8efd0e05 | /Exp3_Prb2.cpp | 096108163f5eff55826ca1869ff83721d77332d8 | [] | no_license | jhnnnmcstr/Experiment-3 | adf452cdd538f24d2503d44a13bddfffa5e9c185 | 0201dd9319ba8e3d81c88dd93e7ae78b7d994f56 | refs/heads/master | 2020-05-22T14:16:33.531321 | 2019-05-13T11:44:57 | 2019-05-13T11:44:57 | 186,380,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | // Create a C++ Program that store temperature of Province A, Province B and Province C
// for a week (seven days) and display it
#include <iostream>
#include <conio.h>
#include <iomanip>
using namespace std;
const int a = 3;
const int b = 7;
char prov;
int main ()
{
cout << "Enter all temperature f... | [
"noreply@github.com"
] | noreply@github.com |
fb75f1c451e3bd42d0b2e4c2d45d4005967971b8 | 226e99aac4bdd36b1e3fd10f15bfc6bc271e69f9 | /Modules/LogicServer/WrapDirect3dvolume9.h | daa8a6eb790c116dbb6ee2efa5228bff0534c9d2 | [
"Apache-2.0"
] | permissive | zhangq49/sharerender | 908b7ffb5e43eb4ba0f61df06345848b3f1c6c23 | 9819ff9c543cf52bfac16655d1d30417291b5d4c | refs/heads/master | 2020-04-25T09:28:19.181632 | 2017-07-28T03:45:33 | 2017-07-28T03:45:33 | 172,676,610 | 1 | 0 | null | 2019-02-26T09:09:33 | 2019-02-26T09:09:33 | null | UTF-8 | C++ | false | false | 1,516 | h | #ifndef __WRAP_DIRECT3DVOLUME9__
#define __WRAP_DIRECT3DVOLUME9__
#include "GameServer.h"
class WrapperDirect3DVolume9 : public IDirect3DVolume9
#ifdef MULTI_CLIENTS
, public IdentifierBase
#endif
{
private:
IDirect3DVolume9 * m_d3dvolume;
static HashSet m_list;
public:
static int ins_count;
WrapperDirect3DVolume... | [
"alanzw@163.com"
] | alanzw@163.com |
6df508c91a60f6421b0abe30ff730c3020d87c6c | 4cd58cde4255972da4ccdc8c42685d6e970f0f22 | /Decoder.h | f3145fa23084afe1a8dd1f7b85174664eb65d1d9 | [] | no_license | wyh12/ReMux-ScreenCut | d540fd8a2bff8b769c36701bb062064ac0e50ddf | 82a68786c2adf8a9d3276d1b702e9ce703229fc6 | refs/heads/master | 2022-04-11T09:00:54.709902 | 2020-04-01T01:59:54 | 2020-04-01T01:59:54 | 250,301,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,099 | h | #pragma once
#include <string>
#include <iostream>
#include <array>
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/time.h>
#include <libavutil/channel_layout.h>
};
class Decoder
{
public:
Decoder();
virtual ~Decoder();
virtual int init_decode... | [
"noreply@github.com"
] | noreply@github.com |
1c8e4e08b62cb38bbc445704be331fc543c792dc | 41f155c72225983ba64cc8a343600d7b552c7196 | /563.cpp | 6ce5144bfe8418e028ef5cdc3be90c3adc643fa1 | [] | no_license | Jane11111/leetcode | e2c90f2ed0a7c7d1e55b2a47013158467dd567c7 | 81e1ab8061ff7c7f27671496f0b79a2cb3fb5834 | refs/heads/master | 2021-05-10T11:00:34.097762 | 2018-09-23T12:56:15 | 2018-09-23T12:56:15 | 118,399,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | cpp | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
struct TreeNode{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x): val(x),left(NULL),right(NULL){}
};
int findTilt(TreeNode* root);
int RecFindTilt(TreeNode* root);
int main() {
TreeNode *p1=new TreeNode(1);
Tr... | [
"791057615@qq.com"
] | 791057615@qq.com |
2f68220cf97bb34808b857a7b1f7646123cd4ec3 | fb90f1b966522b0b24b87fd8cf424e3b994ae909 | /src/core/ext/filters/client_channel/health/health_check_client.cc | 400d99b07c496d18571418dcba0c5c2e0da8b5f1 | [
"Apache-2.0"
] | permissive | weidk/grpc | 6f1db0121c12605a5149b9d7a74f0f3771bef3ea | 4139ff895fd413c730c4383d24d13a17bbeaea90 | refs/heads/master | 2020-04-02T16:29:07.661956 | 2018-10-25T01:47:56 | 2018-10-25T01:47:56 | 154,614,101 | 1 | 0 | Apache-2.0 | 2018-10-25T05:19:25 | 2018-10-25T05:19:25 | null | UTF-8 | C++ | false | false | 25,497 | cc | /*
*
* Copyright 2018 gRPC 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 agree... | [
"roth@google.com"
] | roth@google.com |
d9e05ca78a8f601fad0b4ad2bcc0e832e8d395cd | 0846ce5bc067f8375746875f0a1499e9af69f589 | /cpp/perspective/src/cpp/gnode.cpp | bc4f90bdc2fb08139f6e1e7f33080fbf3a1b118c | [
"Apache-2.0"
] | permissive | sighttviewliu/perspective | ff1b7364cf76fd36d3c9ec2f68b2fcb0bddd777e | a0c9da8579072442587e73274e7ac1cacf1655c2 | refs/heads/master | 2020-04-25T23:04:49.175527 | 2019-02-27T22:21:25 | 2019-02-27T22:21:25 | 173,132,581 | 2 | 0 | null | 2019-02-28T15:02:35 | 2019-02-28T15:02:34 | null | UTF-8 | C++ | false | false | 43,706 | cpp | /******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
#include <perspecti... | [
"steinlink@gmail.com"
] | steinlink@gmail.com |
9fdc64d69aef5122cee7c79bf0fc0af14dcf0d95 | f6eef853828a7db1aed3904fd00f05f831db7f7a | /Code/Engine/Resources/Shaders/Program.hpp | cd41f820eb6022bdfbb6c48dc18763c2c025bebd | [] | no_license | adrianiusca/CleverProject | 85e7106ba61c139f3996add72104aa40cfbc80eb | 42e62cdcde4d16471d81a63e9ee9c82c5cf6ebc3 | refs/heads/master | 2021-05-14T15:29:04.620435 | 2018-01-09T19:54:06 | 2018-01-09T19:54:06 | 115,994,022 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,047 | hpp | #pragma once
#include "Shader.hpp"
#include "ShaderUniforms.hpp"
#include "Engine/Resources/DynamicResource.hpp"
#include "Engine/Resources/Meshes/VertexAttributes.hpp"
namespace cp
{
typedef map<ShaderUniforms, i32> Uniforms;
typedef map<VertexAttributes, i32> Attributes;
typedef vector<shared_ptr<Shade... | [
"iusca.adrian@gmail.com"
] | iusca.adrian@gmail.com |
98bdefa612ebf9216df5168bd9e4aa1389f51732 | 8010df1fef10ddfd83bf07966cbf7e2e4b0d7ee9 | /include/winsdk/shared/TraceLoggingActivity.h | fc249a048d4e2324d5a31795af25197d51f1703b | [] | no_license | light-tech/MSCpp | a23ab987b7e12329ab2d418b06b6b8055bde5ca2 | 012631b58c402ceec73c73d2bda443078bc151ef | refs/heads/master | 2022-12-26T23:51:21.686396 | 2020-10-15T13:40:34 | 2020-10-15T13:40:34 | 188,921,341 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,955 | h | /* ++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
TraceLoggingActivity.h
Abstract:
TraceLogging activity logging helper classes and macros for C++ for
utilizing ETW activity ids.
Environment:
User mode.
--*/
#pragma once
#ifndef RC_INVOKED
#include "TraceLoggingProv... | [
"lightech@outlook.com"
] | lightech@outlook.com |
ab8ff8d2172a2f0c77ba4f99f815d59edbd0781c | 4a34f4ffda4039415c1105aa2d90487b7a67ca6e | /src/qt/test/uritests.h | 70c6a5885b566e0a7b0b63ea589d672ae61ed8f2 | [
"MIT"
] | permissive | fast-bitcoin/FastBitcoin | 017f77b7c6bf766bf4ee6666c55bdfef71432e8f | f2cc12d1ff8521e103d1290c0c1d9c3ec09b4472 | refs/heads/master | 2020-06-29T00:52:32.317049 | 2019-09-11T05:32:59 | 2019-09-11T05:32:59 | 200,390,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | // Copyright (c) 2009-2015 The Fastbitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FASTBITCOIN_QT_TEST_URITESTS_H
#define FASTBITCOIN_QT_TEST_URITESTS_H
#include <QObject>
#include <QTest>
class... | [
"joshaf.est@gmail.com"
] | joshaf.est@gmail.com |
45c78d86d2759805cca6b216ddaabc1bd1cd8199 | c702357d201235f5a76deb90133dbc3a13c64736 | /llvm/tools/clang/lib/Analysis/.svn/text-base/SValuator.cpp.svn-base | ac727b0ac696ca446a00282a94cf2e7d60599754 | [
"NCSA"
] | permissive | aaasz/SHP | ab77e5be297c2e23a462c385b9e7332e38765a14 | c03ee7a26a93b2396b7c4f9179b1b2deb81951d3 | refs/heads/master | 2021-01-18T11:00:14.367480 | 2010-01-17T23:10:18 | 2010-01-17T23:10:18 | 549,107 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,490 | // SValuator.cpp - Basic class for all SValuator implementations --*- C++ -*--//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | [
"aaa.szeke@gmail.com"
] | aaa.szeke@gmail.com | |
bdf0db4fe5fa1d113496f71baf0646fbc4d2d4aa | 4f7cb5c8da05065c32f7b8c39e0ff7b92e242c58 | /thispointer.cpp | db12d75d23b5b363a0c86f6f5a5e276ea3705dfe | [] | no_license | SathvikSat/c-plus-plus | 5280e0bfa06d464f926c9da486b38a09f60c6704 | abecb4852885a6f19f90c540827d83e2c74851a2 | refs/heads/C++-Practice | 2021-07-15T22:53:23.306380 | 2020-05-18T12:31:18 | 2020-05-18T12:31:18 | 151,201,940 | 1 | 0 | null | 2020-05-18T12:30:56 | 2018-10-02T04:52:29 | C++ | UTF-8 | C++ | false | false | 314 | cpp | #include<iostream>
using namespace std;
class test{
public:
int x;
void setX(int x){
this-> x = x;
}
void print(){
cout<<"x ="<<x<<endl<<this;
}
};
int main(){
test obj;
int y =20;
obj.setX(y);
obj.print();
cout<<endl<<&y<<endl;
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
7e62da9f0b6cac0a12e1f5c659d1a14a950a12a7 | 94064820a761226ffc8a0da1e1b0d562cc6852d6 | /Embryon/game/src/GUI/GameMenu.cpp | 72d48d8a999aa5222278d6cdd01646d8b35d39d7 | [] | no_license | T4g1/Embryon | 71757246f25e07c88d077660cf77c5921a54c157 | 0dd8df13b66af10e9866106285e869a14f635e79 | refs/heads/master | 2020-05-27T20:19:28.471694 | 2012-10-10T18:48:25 | 2012-10-10T18:48:25 | 3,391,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 826 | cpp | /** \file GameMenu.cpp
* \brief Implémente la classe GameMenu
*/
#include "GameMenu.h"
/**
* Constructeur de GameMenu
*/
GameMenu::GameMenu(Core* core) :
GUIPage(core)
{
setId(IN_GAME);
}
/**
* Destructeur de GameMenu
*/
GameMenu::~GameMenu()
{
//dtor
}
/**
* Crée la page du menu
*/
irr::g... | [
"thomasvangysegem@gmail.com"
] | thomasvangysegem@gmail.com |
8db5f3fec190408b899b293e09534bdfbf392e3d | 7e9bda7dee4a0371da36910eac0a2113337090ed | /Lumos/src/Core/OS/Memory.cpp | b84a57044e6968320769bba8ad103260ba5e7fa0 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | sysujack/Lumos | c685651452176185f187caaf3c8a0d5d462ce5ca | 0859d92393262af67b0491f3ba1caa513b03c7a6 | refs/heads/master | 2020-12-04T10:37:22.270870 | 2019-12-05T18:45:54 | 2019-12-05T18:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,587 | cpp | #include "lmpch.h"
#include "Memory.h"
#include "Allocators/BinAllocator.h"
#include "Allocators/DefaultAllocator.h"
#include "Allocators/StbAllocator.h"
namespace Lumos
{
Allocator* const Memory::MemoryAllocator = new DefaultAllocator();
void* Memory::AlignedAlloc(size_t size, size_t alignment)
{
vo... | [
"jmorton06@live.co.uk"
] | jmorton06@live.co.uk |
c51577ac9b2d8ac08d2cb3bcbe00c40dfc4e0d70 | bf2e5b32db429a652c7f056ed5eb81db67c6832f | /ads/week11/3.cpp | 186419cfc8e0e84f63363cb891b6cdb09cff48f4 | [] | no_license | Beisenbek/kbtu-2018-fall-lecture-samples | 6238ea274c669d9ec225ca98141ddde449649787 | d51e72fa9e87d5152f9eb1352726c4f93d7b3259 | refs/heads/master | 2020-03-27T12:57:08.400510 | 2018-11-21T03:54:21 | 2018-11-21T03:54:21 | 146,580,401 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | #include<iostream>
using namespace std;
int f(string s){
int sum = 0;
for(int i = 0; i < s.size(); ++i){
sum += int(s[i]);
}
return sum;
}
int main(){
string s;
cin >> s;
cout << f(s) << endl;
return 0;
} | [
"beysenbek@gmail.com"
] | beysenbek@gmail.com |
4489a7cd6d8e4ded7afaa710a8e8e0e30b0b175c | d051c3294a2b178e701d2c96a61e8b924b04162d | /HashTableL/Node.h | 8d2fe1f7ef3da0f40e884733a87de40403d06152 | [] | no_license | baklazhen/Polinom | bdd7aea65b72511e03e087119c936a58737a43e3 | d856aa51305537294720b526cb5731cc45eb3f77 | refs/heads/master | 2021-01-25T09:08:40.600640 | 2017-06-08T18:49:54 | 2017-06-08T18:49:54 | 93,781,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | h | #ifndef _NODE_H_
#define _NODE_H_
#include <iostream>
#include <fstream>
using namespace std;
template <class KEY, class DATA>
class Node
{
protected:
KEY k;
DATA val;
Node *Next;
public:
Node ();
Node (KEY k_, DATA val_);
Node (const Node &nd);
Node& operator=(const Node& nd);
KEY GetKey();
DATA GetData();... | [
"gotoheaven@yandex.ru"
] | gotoheaven@yandex.ru |
a802a184afca98ab1a37b9fec41e707acb2588af | 82f9296652c12389cf560ca2cd408382f51e431b | /src/net.cpp | 97572cf6345047847e024ff73d5a5f27510f8d96 | [
"MIT"
] | permissive | SchoolCoin/YoCoin | d15418ecfc21519850bd35a14eefa7dc5e441c43 | 50a534685492e81e64b849264f989e1a15bfcdd5 | refs/heads/master | 2021-03-12T22:38:55.571155 | 2014-10-20T12:54:07 | 2014-10-20T12:54:07 | 25,466,771 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 64,264 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"
#include "... | [
"gamerxs1998@gmail.com"
] | gamerxs1998@gmail.com |
4288ee827b93a52cb0542fca3eef97dfae2a55f8 | 243af6f697c16c54af3613988ddaef62a2b29212 | /firmware/uvc_controller/mbed-os/drivers/source/usb/USBCDC.cpp | a5a64c428503be04d23055790fd5c8c9d0e5fc0f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | davewhiiite/uvc | 0020fcc99d279a70878baf7cdc5c02c19b08499a | fd45223097eed5a824294db975b3c74aa5f5cc8f | refs/heads/main | 2023-05-29T10:18:08.520756 | 2021-06-12T13:06:40 | 2021-06-12T13:06:40 | 376,287,264 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,659 | cpp | /*
* Copyright (c) 2018-2019, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/l... | [
"13125501+davewhiiite@users.noreply.github.com"
] | 13125501+davewhiiite@users.noreply.github.com |
dc07a7cf6fb0fc60e15728addfa8fce916dc912d | c4a66686285857e441d05420f970a9b72bc8d5d5 | /2502_SumOfTwoArray.cpp | 7e73e1d4f0617715ed164367ded1a75420dab3ec | [] | no_license | himanshu-rawat/CBcplusplus | 99140cb25a96b66c6160f6689b02d278ac8ba66d | fbb5de2e4945457eed604fc11fb2093da4258ecc | refs/heads/master | 2020-05-03T20:38:32.174661 | 2019-07-24T13:13:06 | 2019-07-24T13:13:06 | 178,807,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | #include<iostream>
using namespace std;
int main(){
int a[1000],b[1000],sum[1000]={0};
int n,m,i,size,val,carry=0,number;
cin>>n;
for(i=0;i<n;i++){
cin>>a[i];
}
cin>>m;
for(i=0;i<m;i++){
cin>>b[i];
}
if(n>m){
size=n;
}
else{
size=m;
}
... | [
"himanshurawatrit@gmail.com"
] | himanshurawatrit@gmail.com |
7825d11ae8e0e84c1d7f8859cedcc12a1526eb1b | 8f0187f8c47a0b3d812b1e9435955a5700b724f1 | /NIFLib/CNiSkinPartition.h | fceb1a5d9d2748460f891b05ddbea38c241f0242 | [] | no_license | Dawn-of-Light/NIFLib | 4c1c046f6fc841b5af31ce6b48425fe60896b2b5 | c397b7c0e3bdf996b4d202b404be81f0870d93eb | refs/heads/master | 2016-08-13T00:58:01.404231 | 2013-04-16T13:47:04 | 2013-04-16T13:47:04 | 47,083,395 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | #pragma once
#include "cnode.h"
/**
* \todo not working on all models
**/
class CNiSkinPartition : public CNode
{
public:
CNiSkinPartition(void);
~CNiSkinPartition(void);
bool Load(CNifStream&);
DECLARE_CHUNK(NiSkinPartition,"NiSkinPartition");
private:
struct s_unknown
{
uns... | [
"graveen@users.sourceforge.net"
] | graveen@users.sourceforge.net |
c3bf08f53ff2a6410d99a2d20c1ee5ff78f2159f | 27c0c781e6bf95c5956a47975c39974ea72f3971 | /best_fit_decreasing.cpp | 7282e47a3d5cefff66dec798fe34dbdeb1c09188 | [] | no_license | simrikm/Binpacking_Algorithms | 6ec45a3d8950c881b663e1bcf47f1b90ff413c73 | e2cf2656b6c42e201cc891d1e42140d8aae9ccde | refs/heads/master | 2020-06-18T10:37:35.397679 | 2019-07-10T20:52:13 | 2019-07-10T20:52:13 | 196,273,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "project2.h"
#include <bits/stdc++.h>
using namespace std;
void best_fit_decreasing(const vector<double>& items, vector<int>&assignment, vector<double>& free_space){
assignment.clear();
free_space.clear();
vector<double> copy_... | [
"simrikm@andromeda-27.ics.uci.edu"
] | simrikm@andromeda-27.ics.uci.edu |
4fe7d281db6e584d7cf43b95e0765497faa33a15 | c54b16b05178f5f8155fcb5e7a86cb91925c9801 | /Alchemy/Kernel/CResourceReadBlock.cpp | 7e05d5603975f1e1f7f7e00a970737458f1bed08 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | SiegeLord/TranscendenceDev | 72e9b668da82e89d36dad0d1655b7752dfabad1c | e936d0c0ab7d9202a05f6261c6cd14497947a3ac | refs/heads/master | 2021-07-19T09:20:22.178976 | 2019-01-18T04:24:57 | 2019-01-18T04:24:57 | 166,512,940 | 0 | 0 | NOASSERTION | 2019-01-19T06:10:02 | 2019-01-19T06:10:02 | null | UTF-8 | C++ | false | false | 1,319 | cpp | // CResourceReadBlock.cpp
//
// Implements CResourceReadBlock object
// Copyright (c) 2019 Kronosaur Productions, LLC. All Rights Reserved.
#include "PreComp.h"
static CObjectClass<CResourceReadBlock>g_Class(OBJID_CRESOURCEREADBLOCK, NULL);
CResourceReadBlock::CResourceReadBlock (void) :
CObject(&g_Class)
// CRes... | [
"public@neurohack.com"
] | public@neurohack.com |
bc844e4740bf79d4761d86b41866ff216acbdee4 | 509649339062e2b3996e8be7328cdbbbee80d87c | /library/video/codec/msdk/dk_msdk_encoder/source/msdk_encoder.cpp | 651386c7d73e6b6152da52b8623f095ef7e020f8 | [] | no_license | RATime360/media-processing-system | ad4f819bbf3f77496ff48bbf7789f553ffe3e1bb | e2aa4cf0f0204a21bc5331912e2cb908f1a69f07 | refs/heads/master | 2021-06-02T17:39:19.356279 | 2016-09-12T08:40:51 | 2016-09-12T08:40:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,523 | cpp | #include "msdk_encoder.h"
#include <time.h>
#include <process.h>
#include <dk_fileio.h>
#include <dk_string_helper.h>
#include <d3d9.h>
#include <dk_macros.h>
//#include <d3dx9tex.h>
msdk_encoder::msdk_encoder(dk_msdk_encoder * front)
: _front(front)
, _config(nullptr)
, _state(dk_msdk_encoder::ENCODER_STATE_NONE)... | [
"archientist@gmail.com"
] | archientist@gmail.com |
eaccb0015a77d2d956aa306da8899d2b733c8c4f | 30656e026ffce9ebf902aa92ac25182750a68ef0 | /Projects/Assignment8.cpp | 78edb009762e474e35517bd16f12166345ab69be | [] | no_license | embosi97/CSCI-211-Object-Oriented-Programming-in-CPP | 7a9aa08c1a1ef1d6b26d8eccdbf0d1a0aa6afacc | ee784090e034a9399be2f0d2644ba5a677c9a6b6 | refs/heads/master | 2023-03-06T11:19:49.539688 | 2021-02-17T01:50:04 | 2021-02-17T01:50:04 | 339,582,743 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,098 | cpp | #include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
void print(int q[]) {
int i, j, k, l;
typedef char box[5][7];
box bb, wb, *board[8][8];
static box bq = { {char(219),char(219),char(219),char(219),char(219),char(219),char(219)},
{char(219),' ' ,char(... | [
"embosi97@gmail.com"
] | embosi97@gmail.com |
6a87f574a8c587f478503d4f06916ee0e94771b8 | ebd8718bb85fa296fb5a1cd6c762941fe54306ae | /core/cc/windows/crash_handler.cpp | 140528f0a0c633e8baa448145a3b66ca2ab59ef0 | [
"Apache-2.0"
] | permissive | y-novikov/gapid | d54f88494f736707f0f1e368b043680531cd5c15 | 17d908132a976dafa904cb001fb57620afe117ec | refs/heads/master | 2021-09-04T06:49:14.455444 | 2018-01-09T20:02:14 | 2018-01-11T17:21:43 | 117,157,387 | 0 | 0 | null | 2018-01-11T21:46:06 | 2018-01-11T21:46:06 | null | UTF-8 | C++ | false | false | 2,474 | cpp | /*
* Copyright (C) 2017 Google 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 agree... | [
"baldwinn@google.com"
] | baldwinn@google.com |
eecc0927363365cfaa9d29622c616e9a71412d02 | 0ab5b3e86ea65a9fb216e7178b3f8ae5fe6b3a1c | /mobile/taf/include/servant/Global.h | 6a1961c4e8730fb0113be4e7e890162926c6e8ee | [] | no_license | lineCode/mobile-1 | 197675bcde3d8db021c84858e276fc961b960643 | 66971911b57105b8ef5ad126b089b3fd1cc0f9b0 | refs/heads/master | 2020-03-29T11:02:22.037467 | 2017-02-13T09:40:59 | 2017-02-13T09:40:59 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,473 | h | #ifndef __TAF_GLOBAL_H_
#define __TAF_GLOBAL_H_
#include <inttypes.h>
#include <iostream>
#include <sstream>
#include <map>
#include <list>
#include <deque>
#include <vector>
#include <memory>
#include <netinet/in.h>
#include <errno.h>
#include <iomanip>
#include <sys/ipc.h>
#include <signal.h>
#include <sys/types.h>
... | [
"zys0633@175game.com"
] | zys0633@175game.com |
7c9afde6bb59a286ebacdcd315bffb25d6f81783 | 53da134a84dd99bb2930e8488b36e73c3e4a4352 | /src/BlockSpawnerFunc/TutorialSpawnerFunc.h | 543a32d0ffa751e3be68ca7b6e28ee51df845e8d | [] | permissive | rishi-menon/Dasher | 27c13fe9c90f900257c4a18877e6097eab8f2deb | 2613d25a5c8484002e37905b445aed1c3f233343 | refs/heads/master | 2023-04-25T20:18:50.579107 | 2021-06-06T06:13:15 | 2021-06-06T06:13:15 | 273,335,716 | 5 | 0 | MIT | 2021-01-19T17:11:38 | 2020-06-18T20:39:53 | C++ | UTF-8 | C++ | false | false | 248 | h | #pragma once
#include "Events/BlockSpawnerLayer.h"
class TutorialBlockSpawnerLayer;
extern TutorialBlockSpawnerLayer* g_currentInstance;
extern void TutorialSpawnerFunc (CircularQueue<Block>& blocksQueue, double& nextSpawnTime, double curPhase);
| [
"rishimenon212@gmail.com"
] | rishimenon212@gmail.com |
ec98a82cd43ac9bc4c7ff36854096e99e95fb1bf | 2f963bca8b440d23edfc9a46c31fdeab65aa15a0 | /third_party/SimpleBLE/simpleble/src_c/simpleble.cpp | d588906ffdd3b042ab04b08953e6faf3387ca556 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | OpenBCI/OpenBCI_GUI_Helpers | 1fa52e150fa1a49480b8c08b342a7e7bc797010a | dd608e9635971c96f14f923a940d277ef7a979f7 | refs/heads/master | 2023-08-31T15:01:03.661902 | 2023-03-13T23:20:24 | 2023-03-13T23:20:24 | 238,425,587 | 4 | 6 | MIT | 2023-08-21T21:38:53 | 2020-02-05T10:38:45 | C | UTF-8 | C++ | false | false | 107 | cpp | #include <simpleble_c/simpleble.h>
#include <cstdlib>
void simpleble_free(void* handle) { free(handle); } | [
"noreply@github.com"
] | noreply@github.com |
373848c832a64a233517413d9c233d66d658e06f | a1f60f65f8d92f89bdb0bce03c12a588279267ca | /src/pubkey.h | d9cad821e91f60611aef12dedceed23e4821134e | [
"MIT"
] | permissive | IngenuityCoin/Ingenuity | e262eadc29e4485336dd04e978869e1501ff28f1 | 475289926e435a9939358c695f4f10d1503bfa0c | refs/heads/master | 2020-04-04T19:14:51.892964 | 2019-03-11T12:11:49 | 2019-03-11T12:11:49 | 156,198,049 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,906 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2018-2019 The Ingenuity developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-l... | [
"44764450+IngenuityCoin@users.noreply.github.com"
] | 44764450+IngenuityCoin@users.noreply.github.com |
3e5f6bb52f1b56bc81e2733f3ee08412a0bbe8e0 | e97178ce0c52be77487a1206cf1d99426fe777a1 | /src/m_random.cpp | 436b803bcae7d8065ccd3354f970014642ec3240 | [] | no_license | RomanHargrave/the-tower-of-babel | 923c0fbd525bb977b0d9719a787ac97b06be4822 | c30c440b1f24ee00976a68a8d761b89c27c590af | refs/heads/master | 2020-06-01T15:24:35.102932 | 2013-02-17T17:37:56 | 2013-02-17T17:37:56 | 35,354,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,977 | cpp | /*
** m_random.cpp
** Random number generators
**
**---------------------------------------------------------------------------
** Copyright 2002-2009 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the fol... | [
"mcthevamp01@gmail.com@0eb28523-2a4b-4d5f-ebe6-796f958357e9"
] | mcthevamp01@gmail.com@0eb28523-2a4b-4d5f-ebe6-796f958357e9 |
c52c7e5cd9447a2830d58081e1039facc0ebf805 | 848d8b12ea7a60e34ab5047367a701a06f473138 | /DLinkedList.cpp | 72df79dcbe23d1f7d9a14a83e5b6ff62d957504d | [] | no_license | 92tnrud92/database | 846f293d556046adfe87edda497dff7c9d269596 | f14725fc254ee28d86f8d2ed3f8a7a8c24ab051f | refs/heads/master | 2021-06-19T01:25:57.853901 | 2017-06-28T13:34:26 | 2017-06-28T13:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,268 | cpp | #include <stdio.h>
#include <stdlib.h>
#include "DLikedList.h"
void ListInit(List * plist)
{
plist->head = (Node*)malloc(sizeof(Node));
plist->head->next = NULL;
plist->numOfData = 0;
}
void FInsert(List * plist, LData data)
{
Node * newNode = (Node*)malloc(sizeof(Node));
newNode->data = data;
... | [
"noreply@github.com"
] | noreply@github.com |
2b06a5fa58bd67fbdc8b785469bacc61f37aaa80 | 962ac382978958d8a85369a1c88321fae1d20098 | /sample_sketch.ino | 82dc1170267a64bb1453c9851a6382b27424df62 | [] | no_license | eriknl1982/esp8266_mh-z14a-mqtt | 909717920210d096a1a924c332c68add88a7ddff | 725b17227411d6a3bda840ca631ec3ec9896eb86 | refs/heads/master | 2020-03-13T23:28:31.988699 | 2018-04-27T19:20:32 | 2018-04-27T19:20:32 | 131,335,938 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,736 | ino | /***************************************************************************
Sample sketch for using a mh-z14a co2 with a ESP8266 sensor and sending the result over MQTT once a minute.
Written by Erik Lemcke, combined out of the following samples:
https://www.letscontrolit.com/forum/viewtopic.php?f=2&t=1785&st... | [
"erik@lemcke.nl"
] | erik@lemcke.nl |
91247f2bc031c02053f0dc9b58649ad9ec3d86fe | 0c846022d0ed927b2d827764ec0e246cca2d7530 | /abc/abc128/3.cpp | a60f6ae0b23850cc897de98e1f496ae5c86a9a89 | [] | no_license | kagasan/atcoder | 03e3e0ba66b763fc3e16ff636e49d951e42d4ef6 | e3f851bbc20a4dd028e80db91b5c3d6b5fc5a61c | refs/heads/master | 2020-05-04T10:15:06.772386 | 2020-03-20T09:39:26 | 2020-03-20T09:39:26 | 179,084,448 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main(){
int N, M;
cin >> N >> M;
int flg[11][11] = {};
int p[11] = {};
for(int i = 0; i < M; i++){
int k;
cin >> k;
for(int j = 0; j < k; j++){
int s;
cin >> s;
s--;
... | [
"ghghkaja@gmail.com"
] | ghghkaja@gmail.com |
64748b43b0af0fd760632c475fc201b4f3b88d1e | 27a013c0b95b09ec9dcd36e72c9817a089919fd9 | /Arduino/tinkercad.ino | fe9640d251c21444888fc6d135c4247cae373250 | [] | no_license | AlejoCuPe/Ovo | 670e1d2d7e867f092edb25e8b64ca46e1fbfcb47 | 4bec7293386820f9be7da9c407952fbe325fd6e3 | refs/heads/master | 2020-05-27T12:58:16.659230 | 2019-05-30T04:59:51 | 2019-05-30T04:59:51 | 188,627,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,251 | ino | /*
A0 instead of 14
https://www.baldengineer.com/tips/arduino-pinmode-on-analog-inputs
*/
const byte tamanoTablero = 4;
const int entradas[tamanoTablero][tamanoTablero] = {
{0, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15, 16}
};
// La RX no pasa nada PERO con la TX se jode por que se intenta
// c... | [
"32588323+Dumaru@users.noreply.github.com"
] | 32588323+Dumaru@users.noreply.github.com |
58f5936184d2f2507f29176f3c0071b379b5d437 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /update_notifier/thirdparty/wxWidgets/src/xrc/xh_dlg.cpp | ae940dffdc7ce485629d0a70539d5dc58d10a622 | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 2,145 | cpp | /////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_dlg.cpp
// Purpose: XRC resource for dialogs
// Author: Vaclav Slavik
// Created: 2000/03/05
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
////////////////////////////////////... | [
"mathieu.caroff@free.fr"
] | mathieu.caroff@free.fr |
5c3ae93835db1ddd5c5e4c77444eaebb1f4d613e | 0fd2e14f1776d186963892e1612439ce57604115 | /CodechefJanuaryLunchtime2019/TheNightsWatch.cpp | ea7f1e6ba1c01430ea86223222c5184fe2a03727 | [] | no_license | aravindm711/contest-archives | 534914e234d67ce1070b03cfb4fa9ce460f0a65e | 42ab2fba88b5fb766c226febfc5045c86f1c0b9b | refs/heads/master | 2020-07-09T01:53:47.893397 | 2019-09-03T18:10:27 | 2019-09-03T18:10:27 | 203,842,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | cpp | # include <iostream>
# include <vector>
# include <string>
# include <cmath>
# include <algorithm>
using namespace std;
# define loopup(x, a, b) for(int x = a; x < b; x++)
# define loopdown(x, a, b) for (int x = b - 1; x >= a; x--)
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int N;
int co... | [
"aravindmurali711@gmail.com"
] | aravindmurali711@gmail.com |
238066e28e4490addbd7b44c268b9c6574d89726 | 807bae02476e9c1e6ebdafe658fdf701dc5b70c7 | /src/pieces/T.cpp | 8b55ae0ceba4b09387c11a9c94248038c47e5381 | [
"Apache-2.0"
] | permissive | benlamonica/tetra-table | 7539a8ffa23bf0d57a75b2ee10ba914b7ea1cf51 | 521082f2a848d04608ef6368004e90e780ef62ea | refs/heads/master | 2021-01-02T08:38:58.308315 | 2017-06-04T16:47:41 | 2017-06-04T16:47:41 | 28,732,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | //
// T.cpp
// TetraTable
//
// Created by Ben La Monica on 1/13/15.
// Copyright (c) 2015 Benjamin Alan La Monica. All rights reserved.
//
#include "T.hpp"
/*
██
██████
██
████
██
██████
██
██
████
██
*/
T::T() : super(std::vector<std::string>({" T TTT ", " T TT T ", " TTT T ", "... | [
"ben.lamonica@gmail.com"
] | ben.lamonica@gmail.com |
6797e12249970816037d3ddbd24c2fa2b4012585 | c3442c04fa2d739a3fbd6ac93a7119c1d18fc873 | /cie_sign_sdk/src/cryptopp/chacha.h | 0fab929a3cec3a262009518fb98081290474b9fb | [
"BSD-3-Clause"
] | permissive | italia/cie-middleware-macos | 47542b2cde1e98cdf35d0e7d0ad91744530e0110 | e26910245026dc091c6c1dec6999395e8669ce63 | refs/heads/master | 2023-06-23T16:10:05.809155 | 2023-06-05T13:02:56 | 2023-06-05T13:02:56 | 147,847,859 | 16 | 4 | BSD-3-Clause | 2023-06-15T09:09:17 | 2018-09-07T16:20:45 | C++ | UTF-8 | C++ | false | false | 9,840 | h | // chacha.h - written and placed in the public domain by Jeffrey Walton.
// Based on Wei Dai's Salsa20, Botan's SSE2 implementation,
// and Bernstein's reference ChaCha family implementation at
// http://cr.yp.to/chacha.html.
// The library added Bernstein's ChaCha classses at Cry... | [
"bitpdg@bit4id.com"
] | bitpdg@bit4id.com |
a47b05188b81a39dcdc4bf53a3e43dd4ca5ddf9c | e1e7b3cd75689fd3d5be3b360fe3183c22c7bd2f | /System.h | 71c15154e9be9b7621779a9d4e10205e9dcdc3bd | [] | no_license | vortex314/Ebos | 7ac8668a55d777b077151cdb51fafb7a6f4895b5 | b5acd621091cafeece618b33ab5eb364498332e2 | refs/heads/master | 2021-01-12T01:16:17.727466 | 2017-12-26T20:13:54 | 2017-12-26T20:13:54 | 78,363,173 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | #ifndef SYSTEM_H
#define SYSTEM_H
#include <EventBus.h>
class System : public Actor {
uint32_t _idxProps;
public:
System(const char* name);
~System();
void setup();
void init();
void onEvent(Cbor& msg);
void reset();
void setBootTime(uint64_t t);
void publishProps();
};
#endif // SYSTEM_H
| [
"lieven.merckx@gmail.com"
] | lieven.merckx@gmail.com |
64993a8490d51d75ec421bf5701ca369bf598a88 | d59e36022692822e5bef9f28d5322a32976bbbd3 | /RPG-控制台版/RoleSel.cpp | 856451b5f49b59fec772542bb01b7f60ac876e1d | [] | no_license | TingXuanR/RPG-Game-In-Cmd | e4781dfb6ec8bbc60b642d07b97ada714e7bdf18 | b6a4e7491d8790b022fd4e36073a474b846f0706 | refs/heads/main | 2023-03-20T10:18:07.125358 | 2021-03-14T15:23:12 | 2021-03-14T15:23:12 | 347,670,442 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,310 | cpp | #include "stdafx.h"
#include "RoleSel.h"
#include "ConfigMgr.h"
#include "GameMgr.h"
CRoleSel::CRoleSel() :m_nState(E_ROLE_ZHANSHI)
{
m_pVecData = CConfigMgr::getInstance()->getRoleDtMgr()->getAllData();
}
CRoleSel::~CRoleSel()
{
SAFE_DEL_VEC(m_pVecData);
}
void CRoleSel::update()
{
if (KEY_DOWN(VK_UP))
{
m_n... | [
"2017211001000513@ecjtu.edu.cn"
] | 2017211001000513@ecjtu.edu.cn |
7cdb3c3a7bf70c87a6f30692e0beb02d5e4985b0 | e168ae8ca5ea46bd7216472b142750cb12947893 | /TREES/BINARY TREE/LevelTreeTraversal.cpp | 92ecaa2232cafcf8eece8a2413c8db5487e15dea | [] | no_license | Priyanshi-Chauhan/DATA_STRUCTURE | f2e815fa66edc68bc8765e00bea9fda2597d9642 | edd1cbc90d19117aba2ac04a5ad8375402e82b44 | refs/heads/master | 2021-08-16T07:58:38.019212 | 2021-08-10T17:21:00 | 2021-08-10T17:21:00 | 224,453,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | cpp | #include<iostream>
using namespace std;
class node{
public:
int data;
node *left;
node *right;
node(int d) {
data =d;
left =NULL;
right=NULL;
}};
node *BuildTree(){
int d;
cin>>d;
if(d == -1){
return NULL;
}
node*root = new node(d);
root->left = BuildTree();
root->ri... | [
"priyanshichauhanx06@gmail.com"
] | priyanshichauhanx06@gmail.com |
3c3853f26e646e4360cbc061a5311ef26aa02aff | 00eedc0c5d00a9bb3eb94ab11c2ccc326174bd86 | /InputHandling/InputMapping/InputConstants.h | 4c3bf77d84dfc3e5bc1626ffbfd1bfd7e2efa545 | [] | no_license | SinclairRoss/CalamityAtStarBase349 | 9d0522cd5470565e42c966c37b82ca258c77dbfb | 0bc42983a5d4c8e9eb43392de7efb7779201c95c | refs/heads/master | 2020-04-18T08:16:52.672563 | 2019-01-24T15:57:23 | 2019-01-24T15:57:23 | 167,390,745 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | h | #pragma once
namespace Input
{
enum class Action
{
INTERACT,
MOVE_UP,
MOVE_DOWN,
MOVE_LEFT,
MOVE_RIGHT,
MENU_NAVIGATE_UP,
MENU_NAVIGATE_DOWN,
MENU_NAVIGATE_LEFT,
MENU_NAVIGATE_RIGHT,
MENU_SELECT,
MENU_CA... | [
"noreply@github.com"
] | noreply@github.com |
7e8ebf50b4cab70e0a58371c84215900f8d81968 | 37c757f24b674f67edd87b75b996d8d5015455cb | /Server/include/dataProcess.h | 1f4dbe31a1e5d83d7d203ca5b3b02f72a0c9bbb1 | [] | no_license | SakuraSinojun/cotalking | 1118602313f85d1c49d73e1603cf6642bc15f36d | 37354d99db6b7033019fd0aaccec84e68aee2adf | refs/heads/master | 2021-01-10T21:20:50.269547 | 2011-04-07T06:15:04 | 2011-04-07T06:15:04 | 32,323,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | h | /***************************************************
Project: grouptalk
author: TaXueWuHen
data Process;
***************************************************/
#ifndef __TALK_DATAPROCESS_H__
#define __TALK_DATAPROCESS_H__
#include <stdio.h>
#include <map>
#include "../include/def.h"
#include "../include/defGr... | [
"SakuraSinojun@02eed91f-dd82-7cf9-bfd0-73567c4360d3"
] | SakuraSinojun@02eed91f-dd82-7cf9-bfd0-73567c4360d3 |
6f6f40c83a20d42c59548d547eb1591ed5042755 | 9fe13c6bea4b915f5509b8591741fcd7f41d20ed | /Week09-2/Greedy1.cpp | 2987b33feb4f93c8c5bfb236a25e04068df8b079 | [] | no_license | Baek-jongwon/study | 34ffce8fcb51097d3b929ac55836ade087c51033 | 5115d850f506f5095c1455c6faf785210bd28d28 | refs/heads/main | 2023-04-01T05:24:17.194650 | 2021-04-13T14:18:54 | 2021-04-13T14:18:54 | 332,777,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | #include <string>
#include <vector>
#include <queue>
#include <iostream>
#include <algorithm>
using namespace std;
int solution(int n, vector<int> lost, vector<int> reserve) {
int answer = 0;
int lost_idx = 0;
queue<int> q;
sort(lost.begin(), lost.end());
sort(reserve.begin(), reserve.end());
int cn... | [
"noreply@github.com"
] | noreply@github.com |
6e3894640094ee8df0e684d8de1a3cc31264917f | bc8e83e8f447e84cd5bb03e9872347e8893e1ead | /google/code jam 2021 round 2/hidden-pancakes.cpp | fbf6137c0e994c25ffa92234d0e0668c88990200 | [] | no_license | plasmatic1/other-judge-solutions | c04861f843f9122b7b69f1bc00fd4a5a839c8473 | 4702e0ddaa9243acd71a1ac241fe8dd3e72ce06a | refs/heads/master | 2022-09-30T08:39:54.284860 | 2022-08-29T03:41:32 | 2022-08-29T03:41:32 | 214,307,016 | 1 | 1 | null | 2021-04-06T16:56:43 | 2019-10-11T00:00:25 | C++ | UTF-8 | C++ | false | false | 4,444 | cpp | // ./hidden-pancakes.yml
#include "bits/stdc++.h"
using namespace std;
// Defines
#define fs first
#define sn second
#define pb push_back
#define eb emplace_back
#define mpr make_pair
#define mtp make_tuple
#define all(x) (x).begin(), (x).end()
// Basic type definitions
using ll = long long; using ull = unsigned long ... | [
"moses@mosesxu.net"
] | moses@mosesxu.net |
f8deb47a65678ab6bff6a58a1bb45e2c17ba6e18 | 1f43d1bb29341c669b0e369c34745a34d5950fc5 | /牛客网/一个浮点数的四舍五入.cpp | fca8b6ccb7102549fd1d57fd651399462e7f58d0 | [] | no_license | narutolai/leetcode | 7f15879c53872d7ae7779fdeaa9311de057b7db3 | 7312fa3e91f4d591e2c2cd401deb1208475ea2c2 | refs/heads/master | 2022-10-29T01:30:32.209024 | 2022-10-23T03:49:57 | 2022-10-23T03:49:57 | 253,961,624 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | #include <iostream>
using namespace std;
int main()
{
double x;
cin >> x;
int d = (int)x;
int r = x - d >= 0.5 ? d + 1 : d;
cout << r << endl;
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
7dc2d00e6487ece7c021e0248da3da3154cf0847 | 28c17bce11196486c299c76a5c8a8db994b9542a | /eval/src/tests/tensor/dense_fast_rename_optimizer/dense_fast_rename_optimizer_test.cpp | 773381b4c7748d8d8fcf39e6d148807e04868fbf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ohad7/vespa | 733ef8247e8dc4da9f297da762c3bc6d71661c18 | ea65fbd5cf342cb2a79c2972727bf1d68bfef9fa | refs/heads/master | 2020-05-01T01:50:40.819377 | 2019-11-21T14:41:40 | 2019-11-21T14:41:40 | 177,204,224 | 0 | 0 | null | 2019-03-22T20:20:25 | 2019-03-22T20:20:25 | null | UTF-8 | C++ | false | false | 3,177 | cpp | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/simple_tensor.h>
#include <vespa/eval/eval/simple_tensor_engine.h>
#include <vespa/e... | [
"havardpe@oath.com"
] | havardpe@oath.com |
3f9187b6ac6d7d4ede37214ddc845bfa02bc99f3 | 89804d52c46e0de7d2ae42572ca4ab09da05bcf7 | /edmond_karp.cpp | 4b60faa04440ccdf5787ad24684f1397fb7c52fc | [] | no_license | LionsWrath/grafos-rework | 0dce70780b8bd2364a4e4778b7ed3df4844c92e5 | 5c9dc5850bf779ced112b811ec69d5ccb0401541 | refs/heads/master | 2016-08-12T18:22:15.640478 | 2015-10-06T03:49:17 | 2015-10-06T03:49:17 | 43,728,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | cpp | #include <iostream>
#include <iomanip>
#include <queue>
#include <map>
#define MAXV 15
#define INF 99999
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;
vii adjList[MAXV];
//Matriz de adjacências utilizada para guardar capacidade residual
int adjMat[MAXV][MAXV];
map<int, int> p;
int max_fl... | [
"caio.tonetti@gmail.com"
] | caio.tonetti@gmail.com |
60c305663610f6b0fde6e819212b970b74756963 | 2717096aeec0fd4211efd22a94f80a269b9c240b | /plag-project/plagproject/media1/ashishsaggar/26.cpp | 849035f6fc37b358a63871da42eb1243325e8b3d | [] | no_license | sanchi191/Plagiarism | 13777c57aa5fae1f51e24d1f2c7f77e5890c7462 | 531b915eba84cb060fa6a2b999fede3569869fbb | refs/heads/main | 2023-09-02T11:43:02.923497 | 2021-11-06T16:15:56 | 2021-11-06T16:15:56 | 403,244,564 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,783 | cpp | #include<iostream>
#include<vector>
using namespace std;
vector<int> merge(vector<int> lt, vector<int> rt,vector<int> &invp, vector<int> &invq)
{
vector<int> result;
while (lt.size() > 0 || rt.size() > 0) {
if (lt.size() > 0 && rt.size() > 0) {
if (invp[lt.front()-1]<invp[rt.front()-1] || invq[lt.f... | [
"sanchisaggar@gmail.com"
] | sanchisaggar@gmail.com |
86315823af8d3a7b997d3aba7fabf0706cc5cd4b | d822ffd937fae821fdc1f96369c26b8b31c0cda6 | /codeforces/p1325B.cpp | 643c1b1dfe2f1c75cf23b6db3e3e789c51d30c0a | [
"MIT"
] | permissive | freedomDR/coding | f8bb5b43951f49cc1018132cc5c53e756a782740 | 408f0fd8d7e5dd986842746d27d4d26a8dc9896c | refs/heads/master | 2023-03-30T03:01:01.837043 | 2023-03-28T12:36:53 | 2023-03-28T12:36:53 | 183,414,292 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int n;
cin >> n;
set<int> s;
for(int i = 0; i < n; i++)
{
int v; cin >> v;
s.insert(v);
}
cout << s.size() << endl;
}
return 0... | [
"xxx@xxx.xxx"
] | xxx@xxx.xxx |
f8b082d0729cb526f8dc7e35113c0f4ea0d30e2e | f21f2ded46b41572720c68039e65e2933faa799b | /soil_read.ino | a87e91e5fa3df962a9989c8ab5123afa77f1feef | [] | no_license | jg302/soil-sensor | 7d053c64bf5b9190ab480c6cbd9e9539907e52c0 | 045bba1bbca1ea822f8cfc888fc3217a9cf011c7 | refs/heads/master | 2021-05-06T22:08:28.411307 | 2017-09-27T09:28:01 | 2017-09-27T09:28:01 | 112,722,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,656 | ino | // YL-39 + YL-69 humidity sensor
byte humidity_sensor_pin = A1;
byte humidity_sensor_vcc = 6;
const int pump_on = 9;
const int wet = 450;
const int dry = 46
5;
float results[5];
const int times_to_check = 5;
int counter = 0;
int average_result = 0;
void setup() {
// Init the humidity sensor board
... | [
"joegray2@gmail.com"
] | joegray2@gmail.com |
19ee4b41aa134a1294ce7cd286c16d543cb17dae | 3db45e05998660d4fd15c2dca7c6431e0759c2e9 | /Floreto/Utils/DataUtils.cpp | 7d4fb8790dee75fef2d7b113cb03ad45ace3cf4c | [] | no_license | flatgames/Floreto | 0015c5186ad9dd5d6bb12ff22a9066bf30351fcc | ac54b1be6a592c310e28e38b515157b7b95cf5d6 | refs/heads/master | 2021-01-22T05:10:55.446306 | 2017-02-11T04:38:49 | 2017-02-11T04:38:49 | 81,630,332 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,255 | cpp | #include "DataUtils.h"
#include "JsonUtils.h"
#include <errno.h>
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
#include <WinSock2.h>
#else
#include <netinet/in.h>
#endif
using namespace cocos2d;
namespace Floreto
{
bool DataUtils::UsingXor = false;
Value DataUtils::readFromFile(const char *filename)
{
std::strin... | [
"alexander.dna@gmail.com"
] | alexander.dna@gmail.com |
51cd868eaa4b1d85ad14472280379beab2d8ad4b | f68c1a09ade5d969f3973246747466e4a540ff74 | /src/prod/src/data/interop/ReliableCollectionService/StatefulServiceBase.h | a1526d4758c60b0bb167c5ce04f5370590decdc0 | [
"MIT"
] | permissive | GitTorre/service-fabric | ab38752d4cc7c8f2ee03553372c0f3e05911ff67 | 88da19dc5ea8edfe1c9abebe25a5c5079995db63 | refs/heads/master | 2021-04-09T10:57:45.678751 | 2018-08-20T19:17:28 | 2018-08-20T19:17:28 | 125,401,516 | 0 | 0 | MIT | 2018-03-15T17:13:53 | 2018-03-15T17:13:52 | null | UTF-8 | C++ | false | false | 4,829 | h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
typedef void(*re... | [
"noreply-sfteam@microsoft.com"
] | noreply-sfteam@microsoft.com |
a85c02d4013c05e6127e138e848be5b155576edc | 2b36b7999765c3910f8b49f7f7dd46edf37471b5 | /light.h | 928a634f0656487244c5afdfc83584965aa515cb | [] | no_license | KayJo/BARealTimeRayTracingA | 69bce04c49b1eea2de51d7ecd241ee7d8937adef | 8e2721230d14ecf085450eaee91df1f5784b1d35 | refs/heads/master | 2021-01-19T09:51:21.487575 | 2013-10-22T10:54:04 | 2013-10-22T10:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | #ifndef LIGHT_H
#define LIGHT_H
#include <QVector3D>
#include "rgb.h"
#include "shaderec.h"
class ShadeRec;
class Light
{
public:
Light();
Light(const Light& l);
virtual ~Light();
virtual Light* clone() const = 0;
virtual QVector3D get_direction(ShadeRec& sr) = 0;
virtual RGB L(ShadeRec& sr);... | [
"user@server.fake"
] | user@server.fake |
5d40420feb857b085f64d151f2d2b4cb75b60738 | 7a44204672c44e103aad47f3afd18952fbd9afd0 | /tags/release-2.2/SupportClasses/Brughera96Channels.h | bd2e5d29fec393432478748f7bb01a81b1f5c06a | [
"MIT"
] | permissive | AuditoryBiophysicsLab/EarLab | 202acdb79489ea903c20e45239a9a3ba820caeba | bc5ccc39076ee0419078e9ff5147e98f28fac3c9 | refs/heads/master | 2020-04-15T20:45:36.062819 | 2019-07-10T11:54:27 | 2019-07-10T11:54:27 | 27,502,131 | 3 | 1 | null | 2017-06-28T01:53:57 | 2014-12-03T18:47:42 | C++ | UTF-8 | C++ | false | false | 883 | h | #ifndef _BRUGHERA_96_CHANNELS_H_INCLUDED
#define _BRUGHERA_96_CHANNELS_H_INCLUDED
#include "HHChannelPopulation.h"
// Note: This factor is used to compensate for the fact that in the original Bushy Cell code by
// Hong Mei Cai and Andy Brughera, the millisecond-to-second scaling factor of 1000 was accidentally
/... | [
"da@bu.edu"
] | da@bu.edu |
60a23b2a0dfeaba75e118a78e74defad0c77cc02 | 970eafae5e57d610147438356a46256ff2881c49 | /A6/P1/cone.h | e2e867901f61facb6ef3e77a165e28aec41c4b82 | [] | no_license | EhsanEsc/AP-Projects | 9b3397d001c23c6244e5844db129d8fa63eed9ed | 96bce50e6fad3384d296f7989c63227ef90b0f71 | refs/heads/master | 2021-06-17T23:21:52.343762 | 2021-02-17T19:31:30 | 2021-02-17T19:31:30 | 178,702,421 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | h |
#ifndef CONE_H
#define CONE_H
#include<string>
#include "shape.h"
class Cone : public Shape
{
public:
Cone(int _x, int _y, int _z, int _rad, int _h);
void scale(int factor);
int volume() const;
std::string get_type() const;
private:
int radius;
int height;
};
#endif
| [
"e.escandari1@gmail.com"
] | e.escandari1@gmail.com |
f55398e07c06e1ad18aa95704be37c37a647640d | 5456502f97627278cbd6e16d002d50f1de3da7bb | /media/capture/mojo/video_capture_types_typemap_traits.cc | bcaf1890e3d41d49c7cd7b30dd538a64e77928d7 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,758 | cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/capture/mojo/video_capture_types_typemap_traits.h"
#include "media/base/ipc/media_param_traits_macros.h"
#include "ui/gfx/geometry... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
1272d580ee7d8ed7c37a5e7a115e48c8fc9a261c | 30596203fbd1a52cdabb368c6ce8e5230d4f4a04 | /ConcurrentAsyncQueueTests/ConcurrentAsyncQueueTryPush.h | 8cf941c0826a576567e7604198c18fc6274e29dd | [] | no_license | LeGnours/Cpp_HandsOn | 5edde874d168a22b9b7c8491e2b5643e6b5bce66 | f1de659d1fdcb7ae827ed57195a7227753c9d746 | refs/heads/master | 2020-03-16T03:42:55.036097 | 2018-05-09T22:45:29 | 2018-05-09T22:45:29 | 132,493,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | h | #pragma once
#include <future>
#include <gtest/gtest.h>
#include "ConcurrentAsyncQueueMock.hpp"
using namespace std::chrono_literals;
class ConcurrentAsyncQueueTryPush : public testing::TestWithParam<::testing::tuple<bool, int, int, int>>
{
public:
void SetUp() final
{
size_queue_used_ = ::testing::get<0>(GetPar... | [
"vincent.couvignou78@gmail.com"
] | vincent.couvignou78@gmail.com |
2a4cabd912e5b45f0a83d97691126f58116940dd | 90c2a4943c5a410ffb71f8f6630d32a2e3a883d8 | /H4API/lib/h4api/H4_Defines.hpp | 88be0a90c471c20b139a294f460d53e409dbf99b | [] | no_license | RoseKavalier/H4MS | 503eca610dc0766dbfafb7dddaa8dffc5cfa8479 | a7db81ef48c1b79bcdecf8aa8c90f7ce828a8178 | refs/heads/master | 2023-08-28T07:43:25.446089 | 2023-01-08T15:02:53 | 2023-01-08T15:02:53 | 228,939,519 | 18 | 2 | null | 2023-01-08T15:02:54 | 2019-12-18T23:41:10 | C++ | UTF-8 | C++ | false | false | 963 | hpp | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created: 20... | [
"rosekavalierhc@gmail.com"
] | rosekavalierhc@gmail.com |
9b9b100e3ed0935f8ffa6b693c1abc39ff080314 | a0b5eb18e791d204bd65ec2a8a4bddb1ea9bb41a | /persona.h | 2078824308dc5cffaebf5fae062a3b0ea6a6faf7 | [] | no_license | JHONEFRAIN98/Reservacion-de-citas-para-una-clinica | 27b35eb60af568039463d46219159c9347576468 | d2abab46f12e25de724c05a0676ca9d863c961d2 | refs/heads/main | 2023-07-07T04:52:35.531228 | 2021-07-31T05:02:05 | 2021-07-31T05:02:05 | 391,257,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | h | #ifndef PERSONA_H
#define PERSONA_H
#include <QDialog>
namespace Ui {
class Persona;
}
class Persona : public QDialog
{
Q_OBJECT
public:
explicit Persona(QWidget *parent = nullptr);
~Persona();
private:
Ui::Persona *ui;
};
#endif // PERSONA_H
| [
"noreply@github.com"
] | noreply@github.com |
18aef2c3f63a7f81ca996fd244684d9a41d744d5 | 721ecafc8ab45066f3661cbde2257f6016f5b3a8 | /codechef/enigma-2020/miniand.cpp | 73700b1291149894bc82108375fc723cb8a7c58d | [] | no_license | dr0pdb/competitive | 8651ba9722ec260aeb40ef4faf5698e6ebd75d4b | fd0d17d96f934d1724069c4e737fee37a5874887 | refs/heads/master | 2022-04-08T02:14:39.203196 | 2020-02-15T19:05:38 | 2020-02-15T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,123 | cpp | #include<bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef long long ll;
typedef long double ld;
typedef vector<ll> vll;
typedef pair<ll,ll> lll;
const ll MOD = 1000000007;
const ll INF = 1e9+5;
const double eps = 1e-7;
co... | [
"srv.twry@gmail.com"
] | srv.twry@gmail.com |
7f3504614270c6d79cf06c5359378ee4cc9102d3 | 5ee0660a0f5f71477ce599c789bdc0b4e7833c20 | /src/lib/diagnose_dups/SignatureBuffer.hpp | 28aff1f40d7ddc1726ad190509e5cbd5af8ebe61 | [
"MIT"
] | permissive | tabbott/diagnose_dups | a2fdcb559b74ae55b2a86ef6e72b085bbb83b5f2 | af8734092c5fda998c2263a60d298a3c80fc13df | refs/heads/master | 2020-12-24T09:39:12.313790 | 2015-09-19T20:15:10 | 2015-09-19T20:36:28 | 42,760,413 | 0 | 0 | null | 2015-09-19T04:59:04 | 2015-09-19T04:59:02 | C++ | UTF-8 | C++ | false | false | 1,876 | hpp | #pragma once
#include "Signature.hpp"
#include "Read.hpp"
#include "BufferProcessor.hpp"
#include "io/BamRecord.hpp"
#include <map>
#include <vector>
#include <algorithm>
class SignatureBuffer {
public:
typedef std::map<Signature, std::vector<Read> > SigRead;
typedef SigRead::iterator SigReadIter... | [
"dlarson@genome.wustl.edu"
] | dlarson@genome.wustl.edu |
f1f47f519c2c29bec5775476f7ba64f6f17b1211 | 14999861023015579b9cd1d08b5692f8425bdcf1 | /miwu/Classes/Army.h | 4b2896f2f303bd0f78b87eda243ee1b0206e3d08 | [] | no_license | jishankai/miwu | 5e9b554f825703414f518c34bf4fc97755830165 | 15ed8f165a5687ca4ace9ffe446c112915119f78 | refs/heads/master | 2021-06-08T13:23:41.748527 | 2014-03-14T10:14:05 | 2014-03-14T10:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | h | //
// Army.h
// miwu
//
// Created by Ji Shankai on 13-6-8.
//
//
#ifndef __miwu__Army__
#define __miwu__Army__
#include "cocos2d.h"
#include "cocos-ext.h"
#include "LayerWithDialog.h"
class Army : public LayerWithDialog
{
private:
cocos2d::CCSprite* s1;
cocos2d::CCSprite* s2;
cocos2d::CCSprite* s3;
... | [
"jishankai@gmail.com"
] | jishankai@gmail.com |
7f330fee8c3e1aea29c2ac69542d158381407912 | 3433f6bd7abf7b09b533ce3ee46081ea11588931 | /HeyaldaAudio/HeyaldaAudio.h | 06221d8f5a0f91fe0a6c291ea9948afd5b95073f | [
"Unlicense"
] | permissive | PooperPig/HeyaldaSimpleAudioEngine | ae320f5261de0c66f9874d0d3703268a943f8466 | b169bab6532822db963372aa200d0278d7906cd6 | refs/heads/master | 2021-01-17T16:48:46.484004 | 2015-07-06T21:10:04 | 2015-07-06T21:10:04 | 38,684,859 | 1 | 0 | null | 2015-07-07T12:01:07 | 2015-07-07T12:01:07 | null | UTF-8 | C++ | false | false | 2,430 | h | #ifndef __Heyalda_HeyaldaAudio__
#define __Heyalda_HeyaldaAudio__
/*
Copyright (c) 2011-2015 Heyalda Corporation
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... | [
"j@heyalda.com"
] | j@heyalda.com |
2d06383737c144a08fd01949cd85da0df21909bc | 6b1bfb419ca81027fa9b3b7d95feaf602b0bb216 | /virtual_base.cpp | 3ecd6472c448bbe0c4ca4201e46d25360aa83c33 | [] | no_license | Arijit365/C-C-examples | df5eba6636b66ffd1358d51748b022efe0c22f7f | cb202d2f7387ee6db89ff3f8ed94b4bf342f4048 | refs/heads/main | 2023-08-16T13:21:15.843508 | 2021-10-12T13:07:02 | 2021-10-12T13:07:02 | 416,333,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | cpp | #include<iostream>
using namespace std;
/*
using virtual base method in c++ program to create class method
student , test , sports , result --> we use the names as class method
*/
class student{
protected:
int roll_no;
public :
void set_number(int a){roll_no = a;}
void print_number(void)... | [
"noreply@github.com"
] | noreply@github.com |
56c8fcae8e5baeb13c32bf6a57a3c170c64c6ebb | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1290. Convert Binary Number in a Linked List to Integer/1290.cpp | 27deba76135ba5da8d50c8d79c6f12e18adf1d1d | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | C++ | false | false | 177 | cpp | class Solution {
public:
int getDecimalValue(ListNode* head) {
int ans = 0;
for (; head; head = head->next)
ans = ans * 2 + head->val;
return ans;
}
};
| [
"me@pengyuc.com"
] | me@pengyuc.com |
96040cd57555f0066e71f555a518a4c7e90212ad | a5771d30a850d6b24932913eda102d50baffc07a | /test_four.cpp | 39d37d790d1473c025df4805523a3cc29ad5465b | [] | no_license | PathfinderTJU/CSAPP_ex01 | 3a4f4228abf17a0dc89ad666991468dfce0f05ad | a5d7f497d8c3b7e6eef811576a58388f45229201 | refs/heads/master | 2020-05-14T01:25:33.276137 | 2019-04-16T12:26:42 | 2019-04-16T12:26:42 | 181,684,584 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,129 | cpp | #include <iostream>
#include "test_four.h"
using namespace std;
void Test4::printAddress(int* a[], int x, int y){
for (int i = 0 ; i < x ; i++){
cout << "a[" << i << "](" << ((a) + (y * i)) << "): ";//编译器的优化,地址加一个int数,会自动乘以int的大小4
for (int j = 0 ; j < y ; j++){
cout << a[i][j] <... | [
"noreply@github.com"
] | noreply@github.com |
c921169f05ef584a7f7f14fea9a3d2b1afe9eb16 | 2f329704f0b497c5751194697a9833011ea023ff | /Macadamian/NothinButNet/src/Sales.h | 759494998ed114e29b0bfa2f599b1040f2c31d33 | [] | no_license | jcmurray/Cascades-Community-Samples | 7f5f9f04d46a5a94932947d507d93dc2273584af | 4749d8105d1136b960784ae451cd78fca5377b4a | refs/heads/master | 2020-04-03T16:46:29.260600 | 2016-01-25T20:03:01 | 2016-01-25T20:03:01 | 4,585,897 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 799 | h | /*
* Copyright (c) 2011-2012 Research In Motion Limited.
*
* 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 b... | [
"daniel.lauzon@gmail.com"
] | daniel.lauzon@gmail.com |
1db8e4c63f4233769de15cad63907eb2056a9bdd | f12e53b806ba418a58f814ebc87c4446a422b2f5 | /solutions/spoj/test/test.cpp | d54a3a387b3a3bcda059bc094b694e6f4b122dab | [
"MIT"
] | permissive | biadelmont/playground | f775cd86109e30ed464d4d6eff13f9ded40627cb | 93c6248ec6cd25d75f0efbda1d50e0705bbd1e5a | refs/heads/master | 2021-05-06T15:49:43.253788 | 2017-11-07T13:00:31 | 2017-11-07T13:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | cpp | #include <iostream>
#include <string>
int main() {
std::string n;
while (std::cin >> n) {
if (n == "42") break;
std::cout << n << std::endl;
}
return 0;
}
| [
"deniscostadsc@gmail.com"
] | deniscostadsc@gmail.com |
f4b823989a14ec68e89191584a6c6841b9a57087 | 6c0a11f53eff7b31ee0c493524e69b003b5938d7 | /src.force/BulletCollision/gim_basic_geometry_operations.h | b0c78e8cdae63532d1c25e73fa57205c290052c4 | [] | no_license | yangfengzzz/Sisy | d2a8a6c34cd24f2eb9ab11bf99c76c68032ccc25 | 1f9637bcdc31905a4fb28fe2b9446c1ed279a923 | refs/heads/master | 2023-02-02T20:16:19.307627 | 2020-03-26T02:03:15 | 2020-03-26T02:03:15 | 322,533,099 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,089 | h | #ifndef GIM_BASIC_GEOMETRY_OPERATIONS_H_INCLUDED
#define GIM_BASIC_GEOMETRY_OPERATIONS_H_INCLUDED
/*! \file gim_basic_geometry_operations.h
*\author Francisco Leon Najera
type independant geometry routines
*/
/*
-----------------------------------------------------------------------------
This source file is part of ... | [
"yangfengzzz@hotmail.com"
] | yangfengzzz@hotmail.com |
98058511dfea47d1650df88ce48bba68555c19ce | 154af226e35a9ba52db9560eca50b07f5ed661fd | /hohejd8/Assignment03hohejd8/Executables/MyTDMInversehohejd8.cpp | 72d928a42b13176333146c64b7c072dd33fd24d4 | [] | no_license | jeffdk/SpecClass2011 | 9492e7386ef03914f2867391c3e5c3a7344bedd4 | 8598c47f3e99e6317285213d2c466eb9715c16fb | refs/heads/master | 2016-09-06T03:33:20.952155 | 2012-09-10T22:29:27 | 2012-09-10T22:29:27 | 1,931,578 | 18 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | cpp | #include "DataMesh.hpp"
#include "Tensor.hpp"
#include "InvertRank2Tensor.hpp"
#include <cstdlib>
int main(void) {
//initialize mesh, Tensor<DataMesh>, and inverses
//const Mesh m(IPoint(MV::fill,10,10));
const Mesh m(IPoint(MV::fill,3,3,3));
Tensor<DataMesh> Trand(3,"aa", m);
Tensor<DataMesh> InvT(Trand.St... | [
"hohejd8@wfu.edu"
] | hohejd8@wfu.edu |
386cf1c19214e587ba243ddac57e16cb8c844fea | 1a403e89c29a81df2b0e980f3855d2f34fb19039 | /C++/trackit.cc | 25fc8cd46a14022141996a94bc88ff3039565bf7 | [] | no_license | saxstrack/SAXSTracker | 33fea692f6e0e4c60e0816f2538c5f03f5e7fbdb | 04f15fd24324208666bd8a2fc7f8b92f1d7a46d3 | refs/heads/master | 2021-01-22T13:08:25.915232 | 2013-06-18T12:14:07 | 2013-06-18T12:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,707 | cc | //#include "opencv/cv.h"
//#include "opencv/highgui.h"
//#include "opencv2/opencv.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "stdio.h"
#include <iostream>
#include <fstream>
//#include <sstream>
//#include <string>
// Sudden changes... | [
"soren.skou.nielsen@gmail.com"
] | soren.skou.nielsen@gmail.com |
618500bf462cf333875cedffe46f006f104f7272 | 56e1d915b1270e38248bb0e0241622eff71d9cf9 | /src/rhal/arduino/motorcontrol.cpp | a38f7dbf470807f90891a60de45e292e5284c814 | [] | no_license | Lichor8/evc | 608d7c3f350257b66c2a897f5f2a3c4aaa76f108 | 53bebcef6221304b3331fa7d1420f0189061c104 | refs/heads/master | 2020-04-05T14:36:18.966653 | 2016-08-31T14:30:43 | 2016-08-31T14:30:43 | 57,280,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,094 | cpp | // import libraries
#include <Arduino.h>
#include "motorcontrol.h"
// functions
void pcontrol(float phi_d, float phi_a, float &omega, float &v, float &e_old, float &E)
{
// PID controller for omega (rotation speed)
const float Kp = 0.1;
const float Ki = 0.0;
const float Kd = 0.0;
float e = phi_d - phi... | [
"r.j.m.v.d.struijk@student.tue.nl"
] | r.j.m.v.d.struijk@student.tue.nl |
cd3d8420b930b44c9189dcac817470df72dda987 | bc01d89e3b77b9b60afd6f5f8fcad5675b813f8e | /natfw/natfwclient/src/natfwcredentials.cpp | e5329be1fc7b8b7a164cd9ff45aed50f68384dab | [] | no_license | SymbianSource/oss.FCL.sf.mw.ipappsrv | fce862742655303fcfa05b9e77788734aa66724e | 65c20a5a6e85f048aa40eb91066941f2f508a4d2 | refs/heads/master | 2021-01-12T15:40:59.380107 | 2010-09-17T05:32:38 | 2010-09-17T05:32:38 | 71,849,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,347 | cpp | /*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.h... | [
"kirill.dremov@nokia.com"
] | kirill.dremov@nokia.com |
12da8af1490b85c8383f8525c7362ff04fdb0a70 | 9de18ef120a8ae68483b866c1d4c7b9c2fbef46e | /third_party/libbase/parsenetaddress_test.cpp | a3bfac860ad0e26f9cedf0c5a6cd776ef2e801a0 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | google/orbit | 02a5b4556cd2f979f377b87c24dd2b0a90dff1e2 | 68c4ae85a6fe7b91047d020259234f7e4961361c | refs/heads/main | 2023-09-03T13:14:49.830576 | 2023-08-25T06:28:36 | 2023-08-25T06:28:36 | 104,358,587 | 2,680 | 325 | BSD-2-Clause | 2023-08-25T06:28:37 | 2017-09-21T14:28:35 | C++ | UTF-8 | C++ | false | false | 3,715 | cpp | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | [
"noreply@github.com"
] | noreply@github.com |
71060ddfe7efda3156c7d8c6ad20ff5001ece985 | 2335eb5096f3fc0cc8348a849e9b68d371b869ae | /Source/Foundation/bsfCore/Scene/BsPrefab.cpp | bf67462d431500412859336c12114d4ffce194bc | [
"MIT"
] | permissive | except134/bsf | d013edd7a22ffd8c8afa68dfaa4e2d621f994671 | 950d7192557f8899dcd4972b17699a20f8335567 | refs/heads/master | 2020-05-07T10:50:07.376865 | 2019-04-09T14:44:05 | 2019-04-09T14:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,929 | cpp | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Scene/BsPrefab.h"
#include "Private/RTTI/BsPrefabRTTI.h"
#in... | [
"bearishsun@gmail.com"
] | bearishsun@gmail.com |
465d659ee16c7afd04c202a23314fa2a643630f7 | 61314f889041b72d98e233a28e4e79c06167d1b4 | /target/qnx6/usr/include/c++/4.4.2/debug/multiset.h | 663bffcbb9302d07345e16fc4ee2e8bf543a2ead | [] | no_license | CyberSys/qnx650 | 37867847dacf9331926736e97009bc0af83850bd | a10a0e62384d0a6a24cc3879dee3b7bacf6d4601 | refs/heads/master | 2021-05-27T03:46:05.775523 | 2014-05-02T00:15:16 | 2014-05-02T00:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,061 | h | // Debugging multiset implementation -*- C++ -*-
// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public Lice... | [
"acklinr@us.panasonic.com"
] | acklinr@us.panasonic.com |
19d930a1cfca30c76217103c2fae006db7741ca7 | efb58f38c456ce47f2f8e9defd9aa8853ad285e2 | /cs3800Proj1_file.h | 2071f1d0a1fc4e896b263c96801ab41076037a37 | [] | no_license | Mashroor/cs3800-1-FileSystemMgmt | c42ebf0d6af41ec5604f624b464476f60a208ea7 | 5aa343465d284a3b08982b875d4998f4fd7358fd | refs/heads/master | 2020-04-19T21:04:19.068508 | 2019-02-13T01:46:45 | 2019-02-13T01:46:45 | 168,431,934 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | h | //file: cs3800Proj1_file.h
//author: Mashroor Rashid, CS3800 Sec B
//Directory class; this class intends to be a dummy file. Stores a few parameters to be manipulated
#ifndef CS3800PROJ1_FILE_H
#define CS3800PROJ1_FILE_H
#include<iostream>
#include<cstring>
#include<string>
#include<ctime>
using namespace std;
class... | [
"mashroor@sbcglobal.net"
] | mashroor@sbcglobal.net |
c27fe3deb092cd158b9df475c3ebbd691bed8683 | 5a157ee5838918ef1fe6624cdbcd9d5408e498e8 | /BOJ/11651.cpp | 02e9f6f658300f1f28ed1620696444abede92303 | [] | no_license | rlagksruf16/Algorithm_Everyday | 93e1071ef667e0a3417104cb1d6f14a5f39967ae | cf9032a04d8be7732a71b874dde124e0cb06421e | refs/heads/master | 2023-06-22T01:55:20.751238 | 2021-07-15T08:01:48 | 2021-07-15T08:01:48 | 217,672,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | // x,y 좌표 거꾸로 정렬하기
#include <iostream>
#include <algorithm>
#include <utility>
#include <vector>
using namespace std;
int main() {
int N; // 갯수
int a,b;
cin >> N;
vector<pair<int, int>>v;
for(int i = 0; i < N; i++) {
cin >> a >> b;
v.push_back(make_pair(b, a)... | [
"rlagksruf16@gmail.com"
] | rlagksruf16@gmail.com |
bc7eca5be264a08b1336ec75645619c5a0d4607e | d5f380982bbde7cb42bdc755f5387c2c08cfb8a0 | /Project files/APM2_Simulink_Blockset/APM2/cores/arduino/DataFlash_APM2.cpp | 7116e6049575e9065525c5292da850392622b14a | [
"BSD-3-Clause",
"MIT"
] | permissive | riscveval/Flight-Controller-design-for-SHAKTHI-C64-Processor | 242f97411769ca232592cc35e2dd87d7f99f2c05 | c5784d0662fd72a464b92a146d1ad615c988fa95 | refs/heads/main | 2023-06-07T22:42:59.921351 | 2021-07-03T15:28:15 | 2021-07-03T15:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,411 | cpp | /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
DataFlash_APM2.cpp - DataFlash log library for AT45DB321D
Code by Jordi Muñoz and Jose Julio. DIYDrones.com
This code works only on ATMega2560. It uses Serial port 3 in SPI MSPI mdoe.
This library is free software; you can redistribut... | [
"shariethernet@gmail.com"
] | shariethernet@gmail.com |
ecef2e9476c42160b1ddd04bad4b6b93f3a83ddc | df773315e24a97629acbebfe023623390ac704b9 | /include/YourDetectorConstruction.hh | a3d91f27cede7b0a267b0c38f1df40b7240446fc | [] | no_license | santiglesias/Practica_Geant_4 | 1a279ce7ffe0f1bbfec260d2e3287223437c2605 | 0a064d4c40cabccd7cddb72fe6ee376fc77c6ec0 | refs/heads/master | 2023-04-12T03:34:04.609449 | 2021-04-22T11:42:10 | 2021-04-22T11:42:10 | 358,546,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | hh |
#ifndef YOURDETECTORCONSTRUCTION_HH
#define YOURDETECTORCONSTRUCTION_HH
#include "G4VUserDetectorConstruction.hh"
class YourDetectorMessenger;
class G4Material;
class G4String;
class G4LogicalVolume;
class YourDetectorConstruction : public G4VUserDetectorConstruction {
public:
YourDetectorConstruction();
virt... | [
"uo258286@fanae45.geol.uniovi.es"
] | uo258286@fanae45.geol.uniovi.es |
44eb193d0d25e19900d9296519f5e03ee49424e7 | 4d7d177b18baa31c11f77bb12cf3144a07b3d589 | /Advanced C/C-MRND2017_WinterCamp/src/P6_Merge2SLLs.cpp | 362da4acdac14e5bf68acfb67509a77fb26bd76c | [] | no_license | pvsmpraveen/MissionRnd | e6bde351c828f349bb18dfeb051103f7faf0ce9c | 68a10595b354f1d5bd23406c4ec9367d1f0ff3b6 | refs/heads/master | 2021-06-15T13:17:26.515233 | 2017-04-24T11:45:50 | 2017-04-24T11:45:50 | 89,233,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | /*
Given two Singly linked lists which are in ascending order.
Return an merged sorted SLL of both
Ex:
INPUT:
one: 1 -> 3 -> 5
two: 2 -> 4 -> 6
OUTPUT:
1 -> 2-> 3-> 4-> 5-> 6
NOTE: Dont create any new SLL's. Just change the links
*/
#include<stdio.h>
struct Node {
char data;
Node *next;
};... | [
"pvsm.praveen@hotmail.com"
] | pvsm.praveen@hotmail.com |
3b4f9bf47e82cdffd756b71ff94fa25c00bfc400 | a1b441f050efee7245b7ef8ebb8597363600c14d | /P3 Variable Management/scope.cpp | 0779e3023286d8c57c0513cf90ed973f354164db | [] | no_license | wuyuz99/COEN-175-Compiler | 9e83fe1eab274ef1fbdc3796accdf007b48a370d | 27929a15fd901ea933064ea9b9866b4af816f2b6 | refs/heads/main | 2023-04-05T13:29:57.881019 | 2021-04-14T22:33:29 | 2021-04-14T22:33:29 | 333,280,014 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,091 | cpp | # include <vector>
# include "type.h"
# include "scope.h"
using namespace std;
Scope::Scope(Scope *enclosing)
: _enclosing(enclosing)
{
}
void Scope::insert(Symbol *symbol) {
_symbols.push_back(symbol);
}
void Scope::remove(const string &name) {
size_t i = 0;
for(; i < _symbols.size(); ++i) {
... | [
"isaac.wuyuz@gmail.com"
] | isaac.wuyuz@gmail.com |
ba7b2c9a2019cccec10cd2fce144913e4a0d4258 | 5502d05107c094946bcd883ae55a974cff2657c5 | /include/SERunAction.hh | dd3ff6ca0c23098dcd4f5b67abf8a2d563514778 | [
"MIT"
] | permissive | yramachers/X-Ray-Beam | 485546c1dc045dc7e7075cf31a495865257d47b1 | 1e296adfc685b076e08b22bb3e4f5dcc748bbf6d | refs/heads/main | 2023-04-10T01:09:34.195973 | 2021-04-22T13:49:36 | 2021-04-22T13:49:36 | 360,232,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | hh | #ifndef SERunAction_h
#define SERunAction_h 1
#include "G4UserRunAction.hh"
#include "globals.hh"
class SEEventAction;
class G4Run;
/// Run action class
///
class SERunAction : public G4UserRunAction
{
public:
SERunAction(SEEventAction* eventAction, G4String name);
virtual ~SERunAction();
virtual void BeginO... | [
"y.a.ramachers@warwick.ac.uk"
] | y.a.ramachers@warwick.ac.uk |
7fdbe77e735a10c60f351734514b7d961902dd44 | 21ede326b6cfcf5347ca6772d392d3acca80cfa0 | /net/network_error_logging/network_error_logging_service_unittest.cc | 9c4369afffbc7bfa1ee5481c1c24bba3f5b0ebf9 | [
"BSD-3-Clause"
] | permissive | csagan5/kiwi | 6eaab0ab4db60468358291956506ad6f889401f8 | eb2015c28925be91b4a3130b3c2bee2f5edc91de | refs/heads/master | 2020-04-04T17:06:54.003121 | 2018-10-24T08:20:01 | 2018-10-24T08:20:01 | 156,107,399 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,975 | cc | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/callback.h"
#include "base/macros.h"
#include "base/test/simp... | [
"team@geometry.ee"
] | team@geometry.ee |
600f67f2a877075d5cbb6a23ec9e0256a96f081c | d245a13a204bd87cec0721521e08c95e724bca56 | /main/regexhtmltag.h | 93c51c96a0d75581476557ad2c887b4493468697 | [] | no_license | arazgholami/azconvert | 8e107d00b98e1f43fd2019c420f48d1016c91ca7 | cf101b4d6180ca72482697f408593e6e09ed45a2 | refs/heads/master | 2023-03-17T06:16:29.788860 | 2019-07-09T19:55:15 | 2019-07-09T19:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | h | /*!
* @file regexhtmltag.h
* @brief This file contains declaration of RegexHtmlTag class.
* @author Mousa Moradi
*/
#ifndef REGEXHTMLTAG_H
#define REGEXHTMLTAG_H
#include "regex.h"
/*!
* @brief The Html tag checker Regex class.
*/
class RegexHtmlTag : public Regex
{
public:
/*!
* @brief Class constru... | [
"mousamk@gmail.com"
] | mousamk@gmail.com |
59f593702a1afbfeeeb14af26eef0fcdf21ac0f3 | dedb0118e61b6b71caabca3e2b310707c2578b08 | /src/init.cpp | 3b66de6851eacd8eaf901c0283104085bb9eefdc | [] | no_license | CorraMatte/WordAsteroid | 91aaa210e9fed43f0508b276b4f7c80d84cfbead | 54b8481636aa3a29247cd493aa87ff606749c6fc | refs/heads/master | 2020-05-20T17:22:36.348435 | 2019-06-10T19:50:23 | 2019-06-10T19:50:23 | 185,685,809 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,124 | cpp | #include "init.h"
// Private
/**
* Funzione che inizializza i requisiti di Allegro riguardanti lo schermo.
*/
static void init_monitor_requirements(){
al_init_image_addon();
al_init_primitives_addon();
}
/**
* Funzione che ordina un array di elementi che rappresentano gli archivi in ordine cre... | [
"corra.matteo@gmail.com"
] | corra.matteo@gmail.com |
a7b9529a3b1e95e334ed62a45c86f4b7b5e6969b | 35baea10e5fe085c1f7a672ab1c003ab27ee3006 | /Classes/EnemyRage.h | ad904e1bcaf1a259b55a593c6ec304d0526abbe9 | [] | no_license | houzisbw/TowerDefense_FinalVersion | e58a19db880d0526233a30b3f88cdd26ba2e273b | 08cde532fa838ce35e1906bba1043c06598df19f | refs/heads/master | 2020-03-26T22:30:27.083129 | 2017-10-07T08:00:52 | 2017-10-07T08:00:52 | 42,089,864 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 953 | h | #ifndef _ENEMYRAGE_H_
#define _ENEMYRAGE_H_
#include "cocos2d.h"
#include "EnemyBase.h"
#include "GameManager.h"
class EnemyRage :
public EnemyBase
{
public:
EnemyRage();
~EnemyRage();
virtual bool init() /*override*/;
virtual void changeDirection(float dt);
static EnemyRage* createEnemyRage(cocos2d::Vector<coco... | [
"983134950@qq.com"
] | 983134950@qq.com |
f2f33498934cdc24220844f3e5e34f705cfbdaae | f8057b780a02274afc77db81ea62bdc793a62f88 | /hardware/arduino/http-solo-polu/http-solo-polu.ino | adaa9fc0fc18710159cf4749464acf14df5c40bb | [] | no_license | aux-lux/polucjant | 3143a1e11cde3d70f0693cada6fa366c094fbef4 | 576de477025134d95959664a6ba04027fd9bd852 | refs/heads/master | 2023-01-29T11:14:31.048249 | 2020-03-18T11:59:15 | 2020-03-18T11:59:15 | 242,981,904 | 0 | 0 | null | 2023-01-24T01:39:18 | 2020-02-25T11:19:31 | JavaScript | UTF-8 | C++ | false | false | 5,672 | ino | #include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
//#include <WebSocketsClient.h>
#include <ESP8266HTTPClient.h>
#include <Adafruit_NeoPixel.h>
#include <credentials.h>
#include "PMS.h"
#define LED_PIN D3
#define NUMPIXELS 1
Adafruit_NeoPixel pixels(NUMPIXELS, LED_PIN, NEO_GRB + NEO_KHZ800);
PMS pms(Serial);
PMS::DA... | [
"maciej.skrzypinski@cognifide.com"
] | maciej.skrzypinski@cognifide.com |
f30bff068ca153d7aa040a8916295174488b41a7 | db6ed48dd2be8edbd038ea0b7aa9d2720d9121e6 | /jni/MPACK/Misc/Uncopyable.hpp | 8d604929f5240f3629c1af99f62b7a4899f1a7d4 | [
"Apache-2.0"
] | permissive | links234/MPACK | c66aa9d6a21c4ebed5bd52ba115b1ed90f57623e | 3eec9616630825d45453e9bf14dae0a3ee4d81e9 | refs/heads/master | 2021-05-16T03:22:02.479750 | 2016-11-21T16:07:10 | 2016-11-21T16:07:10 | 10,639,047 | 1 | 3 | null | 2015-11-27T20:45:28 | 2013-06-12T08:31:51 | C | UTF-8 | C++ | false | false | 267 | hpp | #ifndef MPACK_UNCOPYABLE_H
#define MPACK_UNCOPYABLE_H
namespace MPACK
{
class Uncopyable
{
protected:
Uncopyable () {}
~Uncopyable () {}
private:
Uncopyable (const Uncopyable&);
Uncopyable& operator=(const Uncopyable &);
};
}
#endif
| [
"murtaza_alexandru73@yahoo.com"
] | murtaza_alexandru73@yahoo.com |
f9364f3ae331eb5cc41ae956c7900561e420b6d3 | 7ed28dffc9e1287cf504fdef5967a85fe9f564e7 | /weighted_union_find/abc87_d.cpp | 2658d75043c8896c1424eae5a2ef31aab5c1b340 | [
"MIT"
] | permissive | Takumi1122/data-structure-algorithm | 0d9cbb921315c94d559710181cdf8e3a1b8e62e5 | 6b9f26e4dbba981f034518a972ecfc698b86d837 | refs/heads/master | 2021-06-29T20:30:37.464338 | 2021-04-17T02:01:44 | 2021-04-17T02:01:44 | 227,387,243 | 0 | 0 | null | 2020-02-23T12:27:52 | 2019-12-11T14:37:49 | C++ | UTF-8 | C++ | false | false | 1,979 | cpp | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
// 重み付きUnionFind
// 差分制約に使用 x[ri] - x[li] = di
// root の重みは0
/*
参考リンク
ABC 87 D - People on a Line
https://atcoder.jp/contests/abc087/tasks/arc090_b
*/
template <... | [
"takumi221b4869@gmail.com"
] | takumi221b4869@gmail.com |
da1df3ee3c6213761a9ece9ce82dbd2e0c94d3e8 | 8645ba7368f2ba10893e1ff8962e9e2eedf5104d | /src/Viewer/ViewerGUI.cpp | fcbf52266ae14b2e9d6a576d5d231c3295c7b7ce | [
"Apache-2.0"
] | permissive | reubenlindroos/OmniPhotos | c4560d74fd1bb031cc5c953269b95153ea3716f1 | de62590edc9caf1cfbd1c833bb9176993a10a579 | refs/heads/main | 2023-05-13T19:21:49.495691 | 2021-06-07T10:31:55 | 2021-06-07T10:31:55 | 344,496,849 | 1 | 0 | Apache-2.0 | 2021-03-04T14:10:47 | 2021-03-04T14:10:46 | null | UTF-8 | C++ | false | false | 16,832 | cpp | #include "ViewerGUI.hpp"
#include "3rdParty/fs_std.hpp"
#include "Utils/Logger.hpp"
#include "Utils/Utils.hpp"
#include "Viewer/ImGuiUtils.hpp"
#include "Viewer/ViewerApp.hpp"
ViewerGUI::ViewerGUI(ViewerApp* _app) :
app(_app)
{
// Hide the datasets window by default if only one dataset was found/loaded.
show... | [
"christian@richardt.name"
] | christian@richardt.name |
6d02daca4dead55d5133e8e7705d4d97ddbf1c02 | 4c25432a6d82aaebd82fd48e927317b15a6bf6ab | /data/dataset_2017/dataset_2017_8_formatted/iwashi31/5304486_5697460110360576_iwashi31.cpp | d5785074734a818c846eb5e0a2ece5c507130019 | [] | no_license | wzj1988tv/code-imitator | dca9fb7c2e7559007e5dbadbbc0d0f2deeb52933 | 07a461d43e5c440931b6519c8a3f62e771da2fc2 | refs/heads/master | 2020-12-09T05:33:21.473300 | 2020-01-09T15:29:24 | 2020-01-09T15:29:24 | 231,937,335 | 1 | 0 | null | 2020-01-05T15:28:38 | 2020-01-05T15:28:37 | null | UTF-8 | C++ | false | false | 3,817 | cpp | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <un... | [
"e.quiring@tu-bs.de"
] | e.quiring@tu-bs.de |
1a4e42ac1731c5f5662a2cdb001dd034ef0d3de3 | 6822d7a1de1268cdd7ad52b6a18c206a41077fbd | /aws-cpp-sdk-ec2/source/model/SpotPrice.cpp | 06a7dcc9c89f3b409d2c9b7b1fd6e0942a04e3ee | [
"Apache-2.0",
"JSON",
"MIT"
] | permissive | edolstra/aws-sdk-cpp | 57c924ef54f17a67a955c34239622851a9d52ed8 | b2d6affb450a7e276d39f1590bb644d73d721082 | refs/heads/master | 2020-04-05T14:25:50.895804 | 2016-02-16T02:04:09 | 2016-02-16T02:04:09 | 51,923,609 | 0 | 0 | null | 2016-02-17T13:15:00 | 2016-02-17T13:14:59 | null | UTF-8 | C++ | false | false | 4,756 | cpp | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | [
"henso@amazon.com"
] | henso@amazon.com |
a371f6732ce3b636b78c817d1c6c7151218cad82 | 98b1e51f55fe389379b0db00365402359309186a | /homework_6/problem_2/100x100/0.088/phi | d748c22723a761a1ab01f61518ad6e8b1b6ddf60 | [] | no_license | taddyb/597-009 | f14c0e75a03ae2fd741905c4c0bc92440d10adda | 5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927 | refs/heads/main | 2023-01-23T08:14:47.028429 | 2020-12-03T13:24:27 | 2020-12-03T13:24:27 | 311,713,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 142,976 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | [
"tbindas@pop-os.localdomain"
] | tbindas@pop-os.localdomain | |
34872c1c35fd4e744d69eae1ba27edf5e592ca64 | bc3b1ee1674ab190e22376cfb17aad3eabed867e | /src/classifier/peg_classifier.cpp | 8b626175f5a2f697411839f9fbe4809a921fc031 | [] | no_license | gpldecha/plug_sensor_models | a7c710375aabe175e30db16802dd9d3b9c7cbfcc | 670fe5c9b15b26e7c92c893a73587cb60665c4bf | refs/heads/master | 2021-01-10T10:52:23.769948 | 2015-11-11T08:31:51 | 2015-11-11T08:31:51 | 44,486,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,609 | cpp | #include "peg_sensor/classifier/peg_classifier.h"
#include <optitrack_rviz/type_conversion.h>
namespace psm{
Peg_sensor_clasifier::Peg_sensor_clasifier(ros::NodeHandle& nh,
const std::string& fixed_frame,
const std::string& peg_l... | [
"guillaume.dechambrier@epfl.ch"
] | guillaume.dechambrier@epfl.ch |
16d2ae304d552a5f639309df6f3a3e33e03b9364 | 2fb04334c0255546e8a2a9ccc9b0a0b14c5160dd | /main.cpp | eab0169bea15a6aac5c8627d9d4be0d98c829ba8 | [] | no_license | valerystromov/prac | 2036025117cc0bfd08de157716529c20861c293b | 3368d3e9aaa9f1fb1771dc13848f348a4fe1e3c3 | refs/heads/master | 2020-03-11T21:49:41.524169 | 2018-04-19T21:48:27 | 2018-04-19T21:48:27 | 130,275,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | #include "http_server.h"
#include <iostream>
#include <memory>
int main(int argc, char** argv) {
if (argc < 2) {
std::cout << "Usage: http_server [port]" << std::endl;
return 0;
}
auto server = std::make_unique<THttpServer>(std::atol(argv[1]));
while (true) {
server->HandleQue... | [
"vstromov@yandex-team.ru"
] | vstromov@yandex-team.ru |
31d58f22fa0f0b368b317125b2fd1d5252bccd11 | f7cbdbb9cf3a721be3535af11f314c816e6f38c8 | /program1.cpp | eb86c292b45b5f0ba19d3d2243bf22ee93b769ea | [] | no_license | ugurcandemiir/Program | 886cc4f55f1f8b10fb3655b3dc3f72fd1fb8cbf6 | b78f58330f3294c03dd3c36ff8c02a09a025273f | refs/heads/master | 2020-04-30T11:43:11.998002 | 2019-03-20T20:04:58 | 2019-03-20T20:04:58 | 176,808,451 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,761 | cpp | #include "Star.h"
#include "Star.h"
#include "Planet.h"
#include "Planet.h"
#include "Vector.h"
#include "Vector.h"
#include "List.h"
#include "List.h"
#include <cassert>
#include <iostream>
#include <ctime>
#include <sys/time.h>
using namespace std;
bool unique(long int ids[], int size){
for (int i = 0; i < size... | [
"noreply@github.com"
] | noreply@github.com |
38e9fa207234079fbabe60394acd956a641a610c | 1d3dc598d1084025afbf681493b7987a4dcce62c | /qtfront/exam_view_sub/name_edit.h | df98212a376d4c49a14f64c656e9ace28fe38057 | [] | no_license | viaduct/exam_paper_editor | 0c9b291ebb99a2c5077c15af0870fe265f6bd781 | 1e964f18594dd95e8c71e679c4b079d51b4180b0 | refs/heads/master | 2020-04-09T10:48:02.489742 | 2018-12-06T04:08:05 | 2018-12-06T04:08:05 | 160,283,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | h | #pragma once
#include <QLineEdit>
#include <boost/signals2.hpp>
#include "exam_view_context_holder.h"
namespace wally {
namespace data {
class Exam;
}
namespace qtfront {
namespace exam_view_sub {
class NameEdit : public QLineEdit,
public ExamViewContextHolder
{
public:
NameEdit(QWidget* parent = nullptr);
virt... | [
"arlecchino.account@protonmail.ch"
] | arlecchino.account@protonmail.ch |
31b55bc806deab7baa5e56b6abad7ff6b8b240d9 | 3863e05824b0e07d70d4e2aa8e1908df3adb722c | /player.h | 59f2d4f19fd7fd832d7ce0197108f293569405e5 | [] | no_license | matthewdavidrodgers/what-the-duck | 81f8df27fdd60c258f7bed11226d35783ac28e25 | 4f202bfeb2dc106ad00fce903858be14732a5d6f | refs/heads/master | 2020-03-22T14:41:45.329674 | 2018-09-03T23:01:53 | 2018-09-03T23:01:53 | 140,198,160 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | h | #ifndef PLAYER__H
#define PLAYER__H
#include "twowayMultisprite.h"
#include "enemy.h"
#include <list>
class Player : public TwoWayMultiSprite {
public:
Player(const std::string&);
Player(const Player&);
virtual void update(Uint32 ticks);
Player& operator=(const Player&);
void collided() { collisio... | [
"mdrodge@g.clemson.edu"
] | mdrodge@g.clemson.edu |
97e3383b34caf2577b22ad8204ed79f61d96d7e2 | aa05fdac446463f814bcea568989b3a6575d1ab2 | /Spread And Earn.cpp | dde9a5fc09f429e1300e095d858ab29ee6b0858d | [] | no_license | shubhamrajput0369/SEB273_HackerRank_Solutions | 6014ba371b5e571c1182e0c5f31d45f03cf22776 | 070bda7bd986979f42f8a8a8ec2a1eefd041dcd4 | refs/heads/master | 2022-10-19T22:52:05.821561 | 2020-06-08T17:56:51 | 2020-06-08T17:56:51 | 270,765,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int c, j;
cin >> c >> j;
int a[c], cost = 0, v[c] = {0}, c1, c2;
for (int i = 0; i < c; i++)
cin >> a[i];
for (int i = 0; i < j; i++)
{
cin >> c1 >> c2;
if (v[c1 - 1] == 0 && v[c2 - 1] == 0)
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.