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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4217edde04929fc036d6c6d8e3e6ccb86e33cb1 | a07e60ba45f5ef3e19a4c0510d5beae70747cb0b | /Solver/Solver.cpp | 3cec8ffbedd36c7921084617dc86b1e600c1991c | [] | no_license | hnefatl/Sudoku | c6cdfd9bb66681ce3c65c62b14d303633e365de8 | 3ed97ee1702058dad039559a117c94427f559b85 | refs/heads/master | 2020-07-23T19:29:46.769451 | 2016-08-30T18:19:44 | 2016-08-30T18:19:44 | 66,859,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,537 | cpp | Solver.cpp | #include "Solver.h"
#include <queue>
#include <iostream>
#include <iomanip>
double DefaultEvaluator(const std::vector<Variable> &Variables, const std::vector<Constraint *> &Constraints)
{
unsigned int HaveValue = 0;
for (unsigned int x = 0; x < Variables.size(); x++)
{
if (Variables[x].HasValue)
HaveValue++;
... |
1525a6702c889c5f2936f484b6e5b31a78e62585 | 6de7f1f0d9be7d0659902dc60c77dcaf332e927e | /src/libtsduck/base/types/tsBufferTemplate.h | c26ca1a7f4f7d9f73478ef40670ed9132007881d | [
"BSD-2-Clause"
] | permissive | ConnectionMaster/tsduck | ed41cd625c894dca96f9b64f7e18cc265ef7f394 | 32732db5fed5f663dfe68ffb6213a469addc9342 | refs/heads/master | 2023-08-31T20:01:00.538543 | 2022-09-30T05:25:02 | 2022-09-30T08:14:43 | 183,097,216 | 1 | 0 | BSD-2-Clause | 2023-04-03T23:24:45 | 2019-04-23T21:15:45 | C++ | UTF-8 | C++ | false | false | 9,438 | h | tsBufferTemplate.h | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2022, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
8e7f5cd1a69fef4249060ef58e75a3b6fd27031f | facd97329e40f72587386ed3148cd519ad366a80 | /StorageManagerPlugin/include/CatalogModel.h | 2817ca2e56fd82ca5675c51c555983004864181f | [] | no_license | KernelMD/Catalog | 51218be507b64f5e2b30117615d7242192e668a2 | 7742fdfefd6b099628050002d72422bf0df6fe90 | refs/heads/master | 2016-08-04T06:18:26.356487 | 2015-04-27T13:05:31 | 2015-04-27T13:05:31 | 34,670,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | h | CatalogModel.h | #ifndef CATALOGMODEL_H
#define CATALOGMODEL_H
#include <QAbstractListModel>
#include <QByteArray>
#include <QHash>
#include <QList>
#include "../include/AbstractCatalogEntry.h"
class CatalogModel : public QAbstractListModel {
Q_OBJECT
public:
enum Roles {
typeRole = Qt::UserRole + 1,
identRole,
parentIdentRol... |
ae7816e7c70c816a6e0f7c1f4367244e9a15c9d2 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/old_hunk_6559.cpp | d7d50b6b9eefe8db8644d5d2973ecb37e6c5cd7f | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24 | cpp | old_hunk_6559.cpp | }
return buf;
}
|
70437b946f612afb26b539ddef9adea466df01e7 | ef7d308ff157eb43d9056dae91ea24effd2f32b2 | /MissingParentheses.cpp | a11a651db54a5441a443fcc63f00f8f82c636125 | [] | no_license | abhiranjankumar00/TopCoder-SRM-submissions | cd37f2f2638c2e40daa571d08e2b068382921f23 | d0d3ee3bde2be630f6126d53f4bb0ea008a03150 | refs/heads/master | 2021-01-18T01:42:20.313261 | 2018-04-09T19:04:42 | 2018-04-09T19:04:42 | 5,789,738 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,279 | cpp | MissingParentheses.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cst... |
9519ef5b1e945b32e422fedfc8bb382d9258e0eb | 0454fb2210c70c0b48bfabe484c7efee7120eb8d | /gbjson.cpp | e98f0957dd4747b5eb290544b903a23ff95e61e9 | [
"MIT"
] | permissive | fbuermann/gbjson | e1d4c05c71294ef85fa3aa80b619c286c0615180 | a1e840f998a36c7a10041e4fc073fa7aba36f13f | refs/heads/master | 2020-05-09T15:46:44.603377 | 2019-04-30T19:32:04 | 2019-04-30T19:52:13 | 181,245,260 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 27,584 | cpp | gbjson.cpp | /*
* gbjson.cpp: GenBank<->JSON conversion library
*
* Copyright (c) 2019 Frank Buermann <fburmann@mrc-lmb.cam.ac.uk>
*
* gbjson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
/**
* @mainpage gbjson - A GenBank to JSON converter
... |
f7c072affd56b85ce17f0fcbef7b877a1705e96e | d11e48aacb94fc85a40e967d53a8283a0be3f0ff | /Classes/HelloWorldScene.h | 70b718c7909a2e9dee9f79fc87473855f070c451 | [] | no_license | retrobrain/ParanoidArkanoid | 1007262356189956d35faf9b17eb97c6a668fc2c | 6a662022f498965fd2f55c3ba7659554f0252ce9 | refs/heads/master | 2021-01-22T04:56:59.683173 | 2015-06-22T07:12:22 | 2015-06-22T07:12:22 | 28,586,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,354 | h | HelloWorldScene.h | #ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
#include "Brick.h"
USING_NS_CC;
const float SPEED = 240.0;
const int BORDER_AMOUNT = 4;
const int BRICKS_AMOUNT = 4;
class HelloWorld : public cocos2d::LayerColor
{
public:
// there's no 'id' in cpp, so we recommend returnin... |
e2bd2b5ce3066a4aa09041048e0ba41bc90d3f51 | 5e1f5f2090013041b13d1e280f747aa9f914caa4 | /src/virtualization/bin/vmm/device/virtio_magma.cc | 95a19642720e314cacbfae410384df0fc468b6fd | [
"BSD-2-Clause"
] | permissive | mvanotti/fuchsia-mirror | 477b7d51ae6818e456d5803eea68df35d0d0af88 | 7fb60ae374573299dcb1cc73f950b4f5f981f95c | refs/heads/main | 2022-11-29T08:52:01.817638 | 2021-10-06T05:37:42 | 2021-10-06T05:37:42 | 224,297,435 | 0 | 1 | BSD-2-Clause | 2022-11-21T01:19:37 | 2019-11-26T22:28:11 | C++ | UTF-8 | C++ | false | false | 21,275 | cc | virtio_magma.cc | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/virtualization/bin/vmm/device/virtio_magma.h"
#include <dirent.h>
#include <fcntl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/asyn... |
af7e75300517c63b155a1641256998f614ba1869 | 11f574b5ee844b34cd98fe1d06b6e7178281d6d4 | /Assignment1/producer.cpp | 931445e857e4dee2a7bf85a8f9fa4cbed87ad28c | [] | no_license | TaberIV/cs492 | c4f17f38b39a9afa70c0c7d3057454b880b4ee26 | 3f93aad3d5153160c935dfae254469f068641150 | refs/heads/master | 2021-04-26T23:42:36.053811 | 2018-05-07T16:09:27 | 2018-05-07T16:09:27 | 123,841,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | cpp | producer.cpp | /***********************************************
* CS492 - Operating Systems
* Assignment 1
*
* Authors: E. Taber McFarlin and Matt Swentzel
* We pledge our honor that we have abided by
* the Stevens Honor System
***********************************************/
#include "assign1.h"
void *producer(void *id) {
... |
1c2504bb6813a50df84e15d39aa1d70014b4b2f6 | 5fcc718e15e951bb0ef3fae7816ee2f33cfced82 | /travelapac.cpp | 2934300586c1afa218552937fd38812cca84b13e | [] | no_license | Shubhamsingh147/Codechef-Hackerrank-Hackerearth-etc | 27ec108b05350222829450d9da8f66bfe1ebd085 | 8974aa238d3609a61f0003bee5fb56c3e2b31b01 | refs/heads/master | 2021-01-19T04:24:32.494028 | 2016-06-01T09:21:58 | 2016-06-01T09:21:58 | 60,162,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,726 | cpp | travelapac.cpp | #include <iostream>
#include <map>
#include <vector>
#include <limits.h>
using namespace std;
int n;
int findMin(int dist[]){
int min = INT_MAX;
int minIndex = 1;
for (int i = 1; i <= n; ++i)
{
if ( dist[i] < min )
{
min = dist[i];
minIndex = i;
}
}
return minIndex;
}
int main(){
int t,cases;
cin>>... |
6c830a5f9392d0d7281cc38105ecc97c43bd2666 | 375fccaa7deeefaa392036e9c7e4c2be1b8cef44 | /include/octoon/runtime/singleton.h | a09ef0c2ce184855debdfe048bfe091c73184837 | [
"MIT"
] | permissive | naeioi/octoon | b98678df257e87da9fb27e56f0f209ff46cc126b | e32152fe4730fa609def41114613dbe067d31276 | refs/heads/master | 2020-07-09T05:33:15.019542 | 2019-08-22T11:34:54 | 2019-08-22T11:34:58 | 203,893,478 | 1 | 0 | MIT | 2019-08-23T00:22:11 | 2019-08-23T00:22:11 | null | UTF-8 | C++ | false | false | 860 | h | singleton.h | #ifndef OCTOON_SINGLETON_H_
#define OCTOON_SINGLETON_H_
#include <octoon/runtime/platform.h>
#include <type_traits>
namespace octoon
{
namespace runtime
{
template<typename T, typename = std::enable_if_t<std::is_class<T>::value>>
class Singleton
{
public:
static T* instance() noexcept
{
return &in... |
b573867791dc0d7ee34eae68be0b58ed6436354c | d08f72f9b0f6251edb91871c3e63df376957cde7 | /include/parser.hpp | c9843391b5efd33388c0baebf043eeee9377a35a | [] | no_license | whitead/WordModel | 5dfafd67c1c75c87b6859e4b29dd1275f4ca4c6b | 0788d107e42234a83d294355f9d02d01df02ee93 | refs/heads/master | 2020-04-05T05:16:49.408898 | 2015-03-22T13:49:20 | 2015-03-22T13:49:20 | 21,846,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,103 | hpp | parser.hpp | #ifndef PARSER_H
#define PARSER_H
#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include <utility>
namespace wordmodel {
typedef std::pair<std::size_t, std::size_t> Pair_Key;
struct Pair_Key_Hasher
{
std::size_t operator()(const Pair_Key& k) const
{
//The multi... |
e1b32170ab898730bb3073dfdbe90ededdb90d01 | 39b7774fef218d9d7e32e0c6fbb7b2cad7b6f0a2 | /SecRTC/inlcude/maintabwidget.h | bbe91b0ef56e2d955305aa86da98112fe3b8d696 | [] | no_license | xudabeauty/SecRTC | 97f1aa9badfff9258c13f573fdec90c1c44e1969 | cad8752044d1b4c44a6067a2ba40491ff104d6de | refs/heads/master | 2021-09-10T05:37:35.663971 | 2018-03-21T06:13:39 | 2018-03-21T06:13:39 | 105,609,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | maintabwidget.h | #ifndef MAINTABWIDGET_H
#define MAINTABWIDGET_H
#include<QtWidgets/QTableWidget>
#endif // MAINTABWIDGET_H
class LinkCmdWidget;
class LinkFileWidget;
class LinkProcessWidget;
class LinkServiceWidget;
class MainTabWidget:public QTabWidget
{
Q_OBJECT
public:
MainTabWidget();
~MainTabWidget();
void c... |
68b6b965b67b072aae58dfb4f7c1483668ab8d95 | aec445e5cf456bc5110d5b152dfe96565fbc0b50 | /tools/feetech_servo_library/FD Software-Open Source Code VS2008(170307)/FD-OPEN/SCServo/SCServo.h | ff6feca87e60004ebce75302d0060a74639f2ef5 | [] | no_license | kbunal/hecatonquiros | 761e1e9d3ec09e8c047f06e4ad6d70ad7fe3bf31 | da0163ad2732bcea3852daef96d0610b420f47c4 | refs/heads/master | 2020-09-17T23:49:47.861844 | 2019-11-19T20:29:13 | 2019-11-19T20:29:13 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 532 | h | SCServo.h | /*
* SCServo.h
* 硬件通信接口
* 日期: 2016.8.25
* 作者: 谭雄乐
*/
#ifndef _SCSERVO_H
#define _SCSERVO_H
#include "SCSProtocol.h"
#include "SCComm.h"
class SCServo : public SCSProtocol
{
public:
SCServo(void);
virtual int writeSCS(unsigned char *nDat, int nLen);//输出nLen字节
virtual int readSCS(unsigned char *nDat, int nLen)... |
bd819ee83926a382cba024a87bfd90cbee85fd96 | aa6563e95fa62ba082845eb2a3f3791eb9ca891f | /gui/threading/safequeue.tpp | 2c1a9ca7e4d3d60bc1169b26479b42e52b8e5e46 | [
"MIT"
] | permissive | RobotApocalypseCommittee/PhysicsEngineC4 | 3c3b52d412f20d1580386b93680cd29ae7e390cc | adf547c3e6ab557a70cf52d6d1bd1e3e95e4cb9b | refs/heads/master | 2022-12-15T10:17:53.290532 | 2020-09-15T14:19:38 | 2020-09-15T14:19:38 | 273,688,369 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | tpp | safequeue.tpp | //
// Created by Attoa on 25/06/2020.
//
#ifndef PHYSICS_C4_SAFEQUEUE_TPP
#define PHYSICS_C4_SAFEQUEUE_TPP
namespace threading {
template<class T>
SafeQueue<T>::SafeQueue() : q(), m(), c() {}
template<class T>
void SafeQueue<T>::enqueue(T item) {
std::lock_guard<std::mutex> lockGuard(m);
... |
e10bad7ebd5c17066bfda3c0814f8cc033704d23 | 18e89ca8c0c19d1eec4583fd1d9eb81afd3fbf3a | /Feb 2nd HW/nccc2s5.cpp | 8fb07288eaba614b46ae6328bff55bd31615f0ad | [] | no_license | kevinlu1248/ccc | 11d6c7326e2977a4cf0cdeeb5d866cda2328b94e | 187a519842eb9bdc11cedb25031c1eaef3033e74 | refs/heads/master | 2020-08-03T00:59:06.935626 | 2020-02-23T21:23:54 | 2020-02-23T21:23:54 | 211,573,846 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,236 | cpp | nccc2s5.cpp | // nccc2s5
// created on 2/5/2020 11:09 PM by Kevin Lu
// A Link/Cut Tree Problem
/*
Sample Input
Copy
3 4
1 2 3
2 3 3
2 1 1
1 2 1
6
2 1 2 4
2 2 3 2
1 1 4
2 1 2 4
1 2 1
2 2 3 2
Sample Output
Copy
0
1
1
0
*/
#include <cstdio>
#include <algorithm>
#include <vector>
// <bits/stdc++.h>
using namespace std;
const int ... |
088e5fc91d849417b43e59d8a18632def985458e | 182322f4f2800f851754bb1bcb85fd4f9fc324ea | /zj/a170.cpp | 61ae9e350ce450b42bac45580edc577067a17b39 | [] | no_license | Tocknicsu/oj | 66100fe94d76b6fe8d1bd3019f5ada9d686c1753 | e84d6c87f3e8c0443a27e8efc749ea4b569a6c91 | refs/heads/master | 2021-01-17T08:12:32.510731 | 2016-04-18T02:09:04 | 2016-04-18T02:09:16 | 32,704,322 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | a170.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int n;
scanf("%d", &n);
while(n--){
ll a, b;
scanf("%o%o",&a,&b);
printf("%X\n", a+b);
}
}
|
d8017e534974d1216c871e4b4cfba403d15ca035 | 4bf9c6d368a9111de4ba813e8dd8a5614ac77d41 | /source/main/main.cpp | a3cb23a31e754f1766a95133e2dc12ae632c36c7 | [
"MIT"
] | permissive | t4th/cortex-m3-rtos-blinky-example | 68a7ae187ffab8eec2bfe495bd318717cb5da469 | 6f3f96bf6c0daf9b9266bce62c9a0cb1759b0fe8 | refs/heads/main | 2023-03-18T17:51:13.712634 | 2021-03-13T11:15:57 | 2021-03-13T11:15:57 | 322,021,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,602 | cpp | main.cpp |
// On target RTOS example: classic blinky.
// HW used: stm32f103ze with keil ulink2 (should work with st-link).
// 4 LEDs are connected to GPIOF, pins 6,7,8,9.
// One task is blinking 1 LED - 4 tasks for 4 LEDs.
// From human perspective it should look like
// all 4 leds are blinking at the same time.
#include <kern... |
ff1b9e015be359aa2d56750dd3196b7d499a62f6 | 653e629a7fe91d7451ff61b28d1bc91c7336cdd9 | /kernel/src/glue/v4-x86/x64/space.cc | 365303f7f17acbd74189feb5c830b0ec3d9063f0 | [] | no_license | Insecurity-plan15/l4ka-pistachio | a65ca7affedd6ed93d20ad5bf1124bdca5d064f3 | 9424d8232887e4938032888acb310e5bf83e251f | refs/heads/master | 2021-01-17T08:52:06.277070 | 2010-01-08T11:33:26 | 2010-01-08T11:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,213 | cc | space.cc | /****************************************************************************
*
* Copyright (C) 2002, 2006, Karlsruhe University
*
* File path: glue/v4-amd64/space.cc
* Description: AMD64 space_t implementation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
0c2786770fe019a7f6f601f16545500f181d1b8f | d39478288134a05f31204d9538cbfb9431069541 | /lab2 dyn , triangle/Trinagle/Triangle.h | 65b3a3a98cf85bd7e23780fa6db14356982a6043 | [] | no_license | navidRashik/Data_Structure_cpp | 3000f6ed6abab6212239d69f1591f4050411e2cd | 5fac66cba191b7a611131a709793a8e92c6ebc8b | refs/heads/master | 2021-06-30T20:05:53.999119 | 2017-09-18T20:45:50 | 2017-09-18T20:45:50 | 103,988,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | Triangle.h | #ifndef TRIANGLE_H
#define TRIANGLE_H
template <typename t>
class Triangle
{
private:
t base;
t height;
public:
Triangle();
Triangle(t , t);
void SetBase(t);
void SetHeight(t);
t ComputeHypotenuse();
t ComputeArea();
};
#endif // TRIANGLE_H
#include "Tr... |
efc52c05bae24bb4325d6901d0475758a7872694 | 1243ce6d5f164c6593f7d4b1717885ef76f44dd1 | /Stage 1/BankAccount_Stage_1.cpp | 126ae66046fde3cfa6dfe61db382dddce7d97a73 | [] | no_license | kanee98/InterBanking-Pty | dca7f6883eae0ec4bb4635881fb3d436993ad888 | c5267cbbe8bdd6d2b3b37dbcab3d55c18c582f6a | refs/heads/master | 2020-03-30T07:13:28.928039 | 2018-10-01T04:28:32 | 2018-10-01T04:28:32 | 150,924,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,672 | cpp | BankAccount_Stage_1.cpp | /**
* Created by KanishkaUdapitiya on 21/11/2017.
*/
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
struct BankAccount{
int accountNumber;
double accountBalance;
char customerName[100];
char password[25];
};
int main(){
BankAccount obj;
cout<<"Welcome t... |
51d64b288db3323f9699ede706b6a3f6131c00b9 | db0ee6a9dcd98287b5512324dc4bd3850e1c4aaf | /QUEST5_spoj.cpp | c1ac72c26787ab93a0ef72cb29104fddb84af695 | [] | no_license | saurav52/spoj-solutions | d17bfa76adba9da609ba2f9dfaab8c07b6dfcb9d | efd2b08e26f3204793478d7bd99045c10800ba80 | refs/heads/master | 2021-01-21T17:23:45.149352 | 2017-12-19T08:34:35 | 2017-12-19T08:34:35 | 91,949,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | QUEST5_spoj.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t,a,b,n;
cin>>t;
for(int z=1;z<=t;z++)
{
vector <pair<int,int> > v;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a>>b;
v.push_back(make_pair(b,a));
}
sort(v.begin()... |
f31ae6d11d4582381505843235b21dce784ad4f0 | 0bd63ea82005e5e1d4b1e015b164e6bfdc410a9d | /CDrawTool.cpp | 57406be20dc8998d5db8739b06573b02b8b038d3 | [] | no_license | tonymin/DrawTool | 442ef62d74b43d8032a0911001ae27e5464fe44d | 9c22caede19c22a519336e11eda36e9ad68bf03b | refs/heads/master | 2022-11-08T23:27:30.854092 | 2020-05-22T21:58:04 | 2020-05-22T21:58:04 | 266,177,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | CDrawTool.cpp | #include "CDrawTool.h"
#include "Graphics/CGraphicsView.h"
#include <QToolBar>
using namespace Core;
using namespace Core::Graphics;
CDrawTool::CDrawTool(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
m_view = new CGraphicsView();
this->setCentralWidget(m_view);
createToolBar();
}
void CDrawTool::c... |
79e22ad5bfca9d6e7749ffba6d568a5fad88c5b4 | 244d099ed37a40e99650d63436864f39d9aacacd | /Igrica/MonsterManager.cpp | f8b4d9adccceb3a60c937287f631395f5dc8d6af | [] | no_license | luka93x/igricaNova | 50ab1784bd21ac78573be77c60b2dd727a5b4953 | 60cface5bbc4c15648dc320fd9d0f4f060507b02 | refs/heads/master | 2020-08-26T19:38:49.446122 | 2019-11-15T13:11:16 | 2019-11-15T13:11:16 | 217,122,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | cpp | MonsterManager.cpp | #include "MonsterManager.h"
#include "AttackManager.h"
#include "Stats.h"
#include "Npc.h"
#include "MovmentManager.h"
MonsterManager* MonsterManager::instance = nullptr;
MonsterManager * MonsterManager::getInstance()
{
if (!instance) {
instance = new MonsterManager();
}
return instance;
}
void MonsterManager::r... |
9f15c7d251baa3636e3b82f83779a0edd7a7bdd5 | 6b6908754b647d193a83ce96b6dce58a395ccbe3 | /Lab 8/Box.cpp | 797e0b2a099331cbe2f73e98f239e0b36970e12b | [] | no_license | AustinStephens/CPPSemester2 | 1879b38dab6267d2e77736665f2860ecc28ce3a2 | dbb6b6e670b5830131dcf5634ab72afe4ea07070 | refs/heads/master | 2021-08-26T09:46:27.147541 | 2017-11-23T06:13:50 | 2017-11-23T06:13:50 | 111,770,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | Box.cpp | #include "Shape3d.h"
#include "Rectangle.h"
#include "Box.h"
Box::Box():Rectangle(),Shape3d()
{
setHeight(0);
}
Box::Box(float h, float l, float w):Rectangle(l,w),Shape3d(l*w*h)
{
setHeight(h);
}
//accessor
float Box::getHeight() const
{
return height;
}
//mutator
void Box::setHeight(float h)
{
if (h <... |
a313bdd80dfe8427b3cc29497e0a29bc6c03c934 | 588f693a95216fd882918867f0a95b8ee6a608c5 | /modules/ngx_pagespeed/src/ngx_fetch.h | b86ca29887eafa1b5e43b089b22358a118b834a6 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | braniewski/nginx_rtmp | 0b75ca88937ebda5b21727d3e39571ec28e5b6d1 | 57e0c32935dfb84ee8b1ab46993638400cc8e418 | refs/heads/master | 2021-01-10T20:09:53.967121 | 2015-01-20T18:30:02 | 2015-01-20T18:30:02 | 15,631,471 | 2 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 4,561 | h | ngx_fetch.h | /*
* Copyright 2012 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 agreed to... |
5489716070c8404f1b3c5676ae8b9e1e1e470046 | 2555cbc320199097f339b1de7ffc3b1fe197bc4e | /Source/AgeOfSurvival/CPPCharacterAI.h | 1d661226915d64c231e9c99a81dfe4971a285516 | [
"BSD-2-Clause"
] | permissive | JensenJ/AgeOfSurvival | 74c55c99ccd63905150848b5ed3ec861a9c98802 | 8329ad9f96e039818f0e731318435d06f56f3f2f | refs/heads/Distribution | 2020-04-15T00:40:47.780523 | 2019-01-26T22:20:39 | 2019-01-26T22:20:39 | 164,248,766 | 0 | 0 | BSD-2-Clause | 2019-01-26T22:20:40 | 2019-01-05T20:29:14 | C++ | UTF-8 | C++ | false | false | 301 | h | CPPCharacterAI.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "CPPCharacterBase.h"
#include "CPPCharacterAI.generated.h"
/**
*
*/
UCLASS()
class AGEOFSURVIVAL_API ACPPCharacterAI : public ACPPCharacterBase
{
GENERATED_BODY()
};
|
97515e29e2fb32cd8ed675e8edaf6373f1b98b87 | 678465f0ee681c0c3e4ce1050f6b539fa2fc17fc | /program/unused/image_camera.cc | da14b77d5898a6b1b9629cf5a849838fcbe306a3 | [] | no_license | timlenertz/Thesis | 528f15024bbfc92073fab303577236681ce2496f | 78a7c1f12be5f945d43ffb27f9cf070fe0360a78 | refs/heads/master | 2021-01-25T19:23:36.239621 | 2015-08-15T19:01:39 | 2015-08-15T19:01:39 | 24,094,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cc | image_camera.cc | #include "projection_camera.h"
namespace pcf {
projection_camera(const pose& ps, const projection_frustum& fr, std::size_t imw) :
camera(ps, fr),
image_width(imw),
image_height(imw / fr.aspect_ratio()) { }
projection_camera(const camera& cam, std::size_t imw) :
projection_camera(cam.pose_, cam.frustum_) { }
... |
9cdce35598d7ae42c163467e6ee3e572c25113e6 | aa535962a74a348c9a5c489532dcf354eb7bf378 | /CrazyFlieNavigator/Occupancy/inverse_sensor_model.h | fee756ef6c6d800984a1bd9c614fb60fa1604c33 | [
"MIT"
] | permissive | mmaldacker/CrazyFlieNavigator | 56ff4da9206d89f214d324e4ff5592f0b54042cd | 82437f761b47783635d2b29795a49f663291667b | refs/heads/master | 2020-12-02T13:17:45.742562 | 2016-08-31T08:45:18 | 2016-08-31T08:45:18 | 67,019,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | inverse_sensor_model.h | #ifndef inverse_sensor_model_h
#define inverse_sensor_model_h
#include <vector>
struct InverseSensorModel
{
struct Location
{
int x,y;
double logOdd;
};
virtual std::vector<Location> GetLogOdds() const = 0;
};
#endif
|
bf2bda40ac28c2d36d467c53b041f70aaac62a12 | af217731f0aa60e94b3713133239271c680f8806 | /sources/Interpreter/est.hpp | c876675262d6aa7c98677c8328f392ca81ae79d6 | [
"MIT"
] | permissive | dbanisimov/mipt-scheme-compiler | 531a688fdc60980e12c705f00353c59aea80e29f | 144062cdeff667bd950e12fa5c1c89e5947dc904 | refs/heads/master | 2021-01-19T21:40:10.802015 | 2014-05-28T01:08:24 | 2014-05-28T01:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,253 | hpp | est.hpp | /**
* @file:est.hpp
* A declaration of a set of classes reprodusing Execution State Tree
* of Scheme language, used by Interpreter as representation of
* a program.
*/
/*
* Copyright 2012 MIPT-COMPILER team
*/
#pragma once
#include "interpreter_dep.hpp"
#include "activation.hpp"
#include <iostream>
namesp... |
c21ec5382b71eb8de395b773757f811b7c3212d1 | 131416ed956c82f2d527f56f627f90c4555f3f5b | /test/1940-ddms-ext/ddm_ext.cc | 452187bdcbea774d570f75ecf584eacd859cdbf6 | [
"Apache-2.0"
] | permissive | LineageOS/android_art | 5edf0db5fc8861deb699a3b9299172cfef00c58a | 96ac90faab12beb9cf671ae73f85f02225c96039 | refs/heads/lineage-18.0 | 2022-11-19T21:06:09.486629 | 2019-03-01T14:30:59 | 2020-09-15T14:01:35 | 75,633,906 | 21 | 205 | NOASSERTION | 2020-10-07T19:19:48 | 2016-12-05T14:45:12 | C++ | UTF-8 | C++ | false | false | 8,455 | cc | ddm_ext.cc | /*
* Copyright (C) 2013 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... |
b4cf4bab4a940e0726be7e9802dcdd47630ac49d | 42ab733e143d02091d13424fb4df16379d5bba0d | /third_party/draco/src/draco/compression/attributes/point_d_vector_test.cc | 59f28f80b006fab1b0110ac6736744c485504e62 | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"MIT"
] | permissive | google/filament | 11cd37ac68790fcf8b33416b7d8d8870e48181f0 | 0aa0efe1599798d887fa6e33c412c09e81bea1bf | refs/heads/main | 2023-08-29T17:58:22.496956 | 2023-08-28T17:27:38 | 2023-08-28T17:27:38 | 143,455,116 | 16,631 | 1,961 | Apache-2.0 | 2023-09-14T16:23:39 | 2018-08-03T17:26:00 | C++ | UTF-8 | C++ | false | false | 13,159 | cc | point_d_vector_test.cc | // Copyright 2018 The Draco 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... |
4b8bb5b9e683c0401affd4c12c381de5b287ecf1 | 44ab57520bb1a9b48045cb1ee9baee8816b44a5b | /Engine/Code/Network/Interface/Detail/ClientImpl.h | afb24a51655aeccdfeb403176f495f0f9cdf084b | [
"BSD-3-Clause"
] | permissive | WuyangPeng/Engine | d5d81fd4ec18795679ce99552ab9809f3b205409 | 738fde5660449e87ccd4f4878f7bf2a443ae9f1f | refs/heads/master | 2023-08-17T17:01:41.765963 | 2023-08-16T07:27:05 | 2023-08-16T07:27:05 | 246,266,843 | 10 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,494 | h | ClientImpl.h | /// Copyright (c) 2010-2023
/// Threading Core Render Engine
///
/// 作者:彭武阳,彭晔恩,彭晔泽
/// 联系作者:94458936@qq.com
///
/// 标准:std:c++20
/// 引擎版本:0.9.0.8 (2023/05/09 10:49)
#ifndef NETWORK_NETWORK_INTERFACE_CLIENT_IMPL_H
#define NETWORK_NETWORK_INTERFACE_CLIENT_IMPL_H
#include "Network/NetworkDll.h"
#include "CoreTools/Mes... |
a0593d46875cb4ae3be60045369660a73574fa02 | a7068c5ee1ced08580388377a6fdee37f1e49431 | /cpp/cpp2/headers/triangle.hpp | 319c465ce3e6c6383ce707e01c49bd7889cebf75 | [
"Apache-2.0"
] | permissive | j-dwo/codeexamples | ddf3cee6176328ef74686e7e33fa097a0c1bd5c4 | bcb3398385b69a0a05f6088189b0460f35d550a4 | refs/heads/master | 2023-08-02T09:52:25.466882 | 2021-09-29T05:52:50 | 2021-09-29T05:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | hpp | triangle.hpp | #ifndef TRIANGLE_HPP
#define TRIANGLE_HPP
#include<iostream>
#include"shape.hpp"
class Triangle : public Shape {
private:
float base;
float height;
public:
Triangle(float b, float h, const std::string &t="Triangle")
: Shape(t), base(b), height(h) {}
float area() c... |
ac2896c539418efaef55b49db2c6eab9fec77885 | 0cbc4cd60bad6222892763964374c2500144729b | /Project Twitter/Classes/Tweet/Tweet.h | bc84852ca1d4dbc5305f3fe44ddfac94f02c5367 | [] | no_license | WangWillis/CIS_22C | a7351a1c6df0db03ded68e903641a72a67a73a6c | 924d4cc278e3b9c2f79b1c8ba8d2075003be44f9 | refs/heads/master | 2016-08-12T09:56:52.968807 | 2016-03-03T02:46:24 | 2016-03-03T02:46:24 | 43,714,493 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,307 | h | Tweet.h | #ifndef TWEET_H
#define TWEET_H
#define _CRT_SECURE_NO_WARNINGS_
#define _CRT_SECURE_NO_DEPRECATE_
#include <iostream>
#include <string>
#include <time.h>
using namespace std;
class Tweet;
class Tweet{
private:
//holds the body of the tweet and the user id
string text, userId;
//holds the post time
time_t ... |
058aabb6cf82db3a5852e3053a048494773afde1 | 16d5cd8328ff8b31334afac4030754e59151c376 | /source/bayeux/configuration.h | 8f600bff46dd9e63ffbe9178581d4f208d1cfc6e | [
"MIT"
] | permissive | TorstenRobitzki/Sioux | c443083677b10a8796dedc3adc3f950e273758e5 | 709eef5ebab5fed896b0b36f0c89f0499954657d | refs/heads/master | 2023-03-31T18:44:55.391134 | 2023-03-16T06:51:56 | 2023-03-16T06:51:56 | 5,154,565 | 19 | 9 | MIT | 2023-03-16T06:51:57 | 2012-07-23T16:51:12 | C++ | UTF-8 | C++ | false | false | 3,031 | h | configuration.h | // Copyright (c) Torrox GmbH & Co KG. All rights reserved.
// Please note that the content of this file is confidential or protected by law.
// Any unauthorised copying or unauthorised distribution of the information contained herein is prohibited.
#ifndef CONFIGURATION_H_
#define CONFIGURATION_H_
#include <boost/dat... |
21c40e3dea6baf227751ca79ef2f20d1c78a89ec | a3ec7ce8ea7d973645a514b1b61870ae8fc20d81 | /Codeforces/B/514.cc | a81bcf4e4b19fd3d9891a87e57fda897a8f83a7c | [] | no_license | userr2232/PC | 226ab07e3f2c341cbb087eecc2c8373fff1b340f | 528314b608f67ff8d321ef90437b366f031e5445 | refs/heads/master | 2022-05-29T09:13:54.188308 | 2022-05-25T23:24:48 | 2022-05-25T23:24:48 | 130,185,439 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | cc | 514.cc | #include <iostream>
#include <set>
#include <utility>
using namespace std;
int main() {
int n, x0, y0, x, y;
cin >> n >> x0 >> y0;
set<double> s;
for(int i = 0; i < n; ++i) {
cin >> x >> y;
if(x == x0) s.insert(1e6);
else s.insert((y - y0) * 1.0 / (x - x0));
}
cout << s... |
fe2f561b5cdbb5f0a66c2cbdbeb420af8db1b3ba | 9b4eb13e5e65a1b2743c1681acc085f354cdcadf | /src/PowerUpper.hpp | 9d71358285b862e15984c36c54fe8957cbb75ce4 | [] | no_license | DqmSIer/DQMSL-MaxStatusSearcher | b0e38f7a558a598ed0d96387b6aa3388a916284a | 59e38e6b339589861d6f8a55723e4967ce777dc2 | refs/heads/master | 2020-03-17T23:11:12.145232 | 2018-05-19T06:42:16 | 2018-05-19T06:42:16 | 134,034,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | hpp | PowerUpper.hpp | #ifndef POWERUPPER_CLASS
#define POWERUPPER_CLASS
#include "Status.hpp"
class PowerUpper {
public: /* define */
static const int PU_RATE = 2;
public: /* function */
static inline
int calcPowerUp(const int value) {
return (value * PU_RATE + 100 - 1) / 100;
}
static inline
Status getPowerUpValue(const Status ... |
714746246315ae3737b95102b911783d0baf3d1b | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/boost/beast/core/detail/clamp.hpp | 95a8fab4256526407f7572750d5d9094d8d5f27b | [
"GPL-1.0-or-later",
"MIT",
"BSL-1.0"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | C++ | false | false | 1,229 | hpp | clamp.hpp | //
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST_BEAST_... |
b77550433e6675841f22280f6d88e6c817e93161 | 324e08b88134a8e8924bc61edcfd8601d8f568fe | /syzygy/assm/buffer_serializer_unittest.cc | 95416543b406018b835f79641929a59be9cc4daa | [
"Apache-2.0"
] | permissive | supriyantomaftuh/syzygy | fc5f560c187471f3f3502eacf5f8fbae0baeb308 | 84acba74e8483b6430a8dd316f03d0f730ca92ca | refs/heads/master | 2018-01-14T06:37:37.856415 | 2015-09-30T16:48:00 | 2015-09-30T16:48:00 | 43,473,795 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,857 | cc | buffer_serializer_unittest.cc | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
e7c4e4b98e9b3db08d4670d207d1ebfdff925b0f | bf05f93afa28e02a03fad194a392e3b422745761 | /src/timer.cpp | 6ad60ea3c7d5981017bc9700db75229c3364735e | [] | no_license | JoanEspasa/rantanplan-public | 8a5ea964a64ed107bc12fe0e64e168bc642c0334 | e2e920e20c73e3561e5b6e16046ef90ec9b4640b | refs/heads/master | 2020-03-31T20:38:18.142346 | 2018-11-03T10:41:21 | 2018-11-03T10:41:21 | 152,548,596 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | timer.cpp | #include "timer.h"
Timer::Timer() {
}
high_resolution_clock::duration Timer::elapsed() const {
return high_resolution_clock::now() - epoch;
}
void Timer::start() {
epoch = high_resolution_clock::now();
}
|
a3476e6aec9b3d7884039c74134bbc980d84144e | 33482b83f975a1b90becd375b9959f96cab330e8 | /include/pcl_utility.h | c9ae12621391d25c453be38cd5497801dde8dbb6 | [] | no_license | MartianInStardust/carton_expansion_detection | 6723c09bf9bde02bee5daa726d1c671c139a2b7a | d64befcc7011a288098f841375706f8a715fb36a | refs/heads/master | 2023-07-17T10:53:11.810140 | 2021-09-03T07:40:56 | 2021-09-03T07:40:56 | 386,276,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,830 | h | pcl_utility.h | /*
* @Author: Aiden
* @Date: 2021-07-05 14:25:38
* @LastEditTime: 2021-07-14 15:15:29
*/
#ifndef PCL_UTILITY_H
#define PCL_UTILITY_H
#include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl/common/centroid.h>
#include <pcl/features/normal_3... |
593569b5dbf76e36814661c5e8d2ed9ba22ee3e0 | af76b549c097c27bbcab55d7ea1e9fc514dd900d | /include/Transforms/Loops/ExtractInvariant/ExtractInvariant.h | 700fb389f1829eb3f540ebcdf0cba4c098945512 | [
"BSD-3-Clause"
] | permissive | OpsGroup/open-ops | 6d88b2da7cb0a65967c87a26c8a439306b304b8c | b1ab8da354c4aecc0fe76a562395f5861bffc207 | refs/heads/master | 2023-06-22T06:23:51.731609 | 2017-10-25T14:43:28 | 2017-10-25T14:43:28 | 98,927,791 | 25 | 3 | BSD-3-Clause | 2023-06-09T11:44:43 | 2017-07-31T20:39:14 | C++ | UTF-8 | C++ | false | false | 262 | h | ExtractInvariant.h | #ifndef EXTRACTINVARIANT_H
#define EXTRACTINVARIANT_H
#include <Reprise/Reprise.h>
namespace OPS
{
namespace Analysis
{
void extractInvariant(Reprise::BasicCallExpression* expressionForReplace, Reprise::ForStatement* target);
}
}
#endif // EXTRACTINVARIANT_H |
e50370a64d99a3d0ba028f379dee1c357c53210a | 5f9459edf94e2bb124dbea8fa75ec729448c3a02 | /golf.h | ef092f466971924ea09e9e6b8a0c49d4bcb13e6a | [] | no_license | AlN7Ex/cpp.prata.act9.homework | f6c5ffe846844c3acb726fd618e9b6c64b19d3c5 | 1f815dc2189bc6dc8b926237a6fa9a9bae4ab6fb | refs/heads/master | 2023-03-10T09:54:27.282062 | 2021-02-15T16:27:56 | 2021-02-15T16:27:56 | 339,136,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | golf.h | //golf.h - for 9.1.cpp
constexpr size_t Len = 40;
struct golf
{
char fullname[Len];
int handicap;
size_t flag;
};
void setgolf(golf & g, const char * name, int hc);
int setgolf(golf & g);
void handicap(golf & g, int hc);
void showgolf(const golf & g);
|
fda338e0dc3210abc8387f3d7f4d4289bfac962a | 4237db22a38293042adcbdaa0161fd3bf323443b | /exercises/Assignment.2.1.cpp | 9d6ed7466922567601c22bf3d67a671b6e2433ae | [] | no_license | kakukogou/cs106b | d074695fac3887d5db756bef8dca92ff260a9b64 | f7bc455c9ee37ba39920c5ff64435585283b52aa | refs/heads/master | 2021-05-08T14:59:44.029998 | 2012-08-08T03:19:45 | 2012-08-08T03:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,548 | cpp | Assignment.2.1.cpp |
/*
* File: BlankProject.cpp
* --------------------------
* You can use this file as a starter for
* testing things out that aren't assignments.
*/
#include <iostream>
#include <iomanip>
#include <string>
#include "console.h"
#include "simpio.h"
#include "vector.h"
#include "queue.h"
#include "lexicon.h"
using ... |
e704c587063e78802010e91aab832b8f278c2de7 | 46d877808efec0032d96db1542873be270edd57d | /test/Library/Mathematics/Objects/Vector.test.cpp | 85a9e798030c5e386e8b2bd69573563f862857a2 | [
"MPL-2.0",
"BSL-1.0",
"Apache-2.0"
] | permissive | cowlicks/library-mathematics | 44c9fa365595173127807155de5e53d22543e804 | f1ff3257bb2da5371a9eacfcec538b2c00871696 | refs/heads/master | 2020-07-29T03:56:53.933981 | 2019-07-18T19:36:42 | 2019-07-18T19:36:42 | 209,660,751 | 0 | 0 | Apache-2.0 | 2019-09-19T22:44:04 | 2019-09-19T22:44:04 | null | UTF-8 | C++ | false | false | 14,324 | cpp | Vector.test.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library/Mathematics
/// @file Library/Mathematics/Objects/Vector.test.cpp
/// @author Lucas Brémond <lucas@loftorbital.c... |
8e6d7a4156c93320ddf1e4a23f96b234120e7b2a | 7e7a3cd90fdeb556dd3459eb5e6a8f68a0718d1d | /GBemu/gb/debug/gbDis.h | 888440d046509c335418c2fb9391e77f20807984 | [
"Apache-2.0"
] | permissive | robojan/EmuAll | 7d3c792fce79db4b10613b93f0a0a7c23f42a530 | 0a589136df9fefbfa142e605e1d3a0c94f726bad | refs/heads/master | 2021-01-21T04:50:46.603365 | 2016-07-22T10:44:18 | 2016-07-22T10:44:18 | 44,864,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | gbDis.h | #ifndef _GBDIS_H_
#define _GBDIS_H_
#include "../Gameboy.h"
#include <map>
typedef struct {
unsigned int location;
char size;
std::string raw;
std::string instr;
} DisassembleLine_t;
class GbDis
{
public:
GbDis(Gameboy *master);
~GbDis();
char Disassemble(const char **rawStr, const char **instrStr, address_t... |
5422626cc832f5921c0b7ab4b6b1f9abb9c64fc8 | caff3a997ffc93fbe3500a9e43d608bdff48ba1f | /src/utilities/testutils.cpp | 74a049a6fa05e15f1c12248b10efa464dba47d20 | [] | no_license | nithinjs88/cpp_basics | f24cb7a13f24a6ba21aeef7f4219fcb9e458b6a7 | 79fdd5f1d3929bd7eeea91d0cab2840da2d7b83f | refs/heads/master | 2021-01-13T02:22:48.916989 | 2015-08-07T06:33:21 | 2015-08-07T06:33:21 | 40,344,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | testutils.cpp | /*
* testutils.cpp
*
* Created on: 24-Jun-2015
* Author: nithin
*/
#include <iostream>
#include "utilities.h"
using namespace std;
/*
int main(int argc, char **argv) {
cout<<getMax(1,2);
}
*/
|
4ff08f2dcd9c0c7f0427717084c33e0e7349bfb2 | 60512deec8d46a06e4b3db4b07620c623090fc2f | /TP_5/Worm.cpp | e232abf1756cd6c45e592bc652339ce2038050f2 | [] | no_license | ffarall/EDA_TP_5 | 5ef7a4154b3c0dbf6b0be8aab4e698e571a231ec | 6b13b9de7c4d48d7203a8b96950f1c5225e7cef5 | refs/heads/master | 2020-03-27T11:57:46.152055 | 2018-09-04T20:13:50 | 2018-09-04T20:13:50 | 146,517,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,365 | cpp | Worm.cpp | #include "Worm.h"
#include <cmath>
using namespace std;
#define WORM_FSM_STATES 7
#define WORM_FSM_EVENTS 6
#define NO_MOTION_FRAME_COUNT 8
#define JUMPING_WORM_UP_FRAMES 6
#define FRAMES_PER_DX 14
#define SCENARIO_LEFT_EDGE 685
#define SCENARIO_RIGHT_EDGE 1170
#define SCENARIO_FLOOR 616
#define WORM_MOVE_DIF 9.0
W... |
92905722ec5a7b33175246d8cc99bad72d352ad6 | 3a8440b26e67b9ee9f3e27a7d47e28cf3cc72d7d | /include/peripheral/ComTransmit.h | 0cc9facb72a0b66550096cdf50ee036da65474b9 | [] | no_license | tdautc19841202/v200 | 7e48e852250c331db2c33735e84f829e5aecc69e | 3c9dc92e4c58389acb4f3f6b93e04f0aad520e72 | refs/heads/master | 2020-03-25T06:57:11.095875 | 2017-05-08T06:07:55 | 2017-05-08T06:07:55 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,479 | h | ComTransmit.h | #ifndef _COM_TRANSMIT_H_
#define _COM_TRANSMIT_H_
#include <string.h>
#include <pthread.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct {
unsigned long baudrate; /*波特率*/
unsigned char databit; /*数据位,取值5、6、7、8*/
unsigned char parity; /*奇偶校验位,取值'n':无校验'o':奇校验'e'偶校验*/
unsigned ch... |
999f681278e56e1f9a4b889b9965b2f1b4d793ca | 4a75f1b4c906b02c1b27beb5120d2fcfcc5442ac | /prog2.hpp | 780ee92f31ab4ae9138f3ac16dc995e4bad209ba | [] | no_license | Chineme1/ALLmyFiles | 8e7342d9ab6378568b149e0542be6320d64dbcb0 | 3c5cb5bd7462052cfa3b1bc83c715a7e067f9cf1 | refs/heads/main | 2023-06-29T01:06:23.315569 | 2021-07-29T16:51:44 | 2021-07-29T16:51:44 | 390,439,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | hpp | prog2.hpp | #ifndef PROG2_HPP
#define PROG2_HPP
#include <tuple>
#include <vector>
std::tuple<bool, std::vector<unsigned>> isSubsetSum(
const std::vector<int>& itemVals, int target);
std::tuple<bool, std::vector<unsigned>, std::vector<unsigned>>
isSetPartionable(const std::vector<int>& vals);
#endif... |
02586862f92bc6064b48926b6fbee5be588e833d | 58958463ae51c6af762ade55e53154cdd57e9b71 | /OpenSauce/shared/Include/blamlib/Halo1/input/input_windows.hpp | b8ca25f0b2cbf4e982a50db11ad5f37b5b405266 | [] | no_license | yumiris/OpenSauce | af270d723d15bffdfb38f44dbebd90969c432c2b | d200c970c918921d40e9fb376ec685c77797c8b7 | refs/heads/master | 2022-10-10T17:18:20.363252 | 2022-08-11T20:31:30 | 2022-08-11T20:31:30 | 188,238,131 | 14 | 3 | null | 2020-07-14T08:48:26 | 2019-05-23T13:19:31 | C++ | UTF-8 | C++ | false | false | 5,152 | hpp | input_windows.hpp | /*
Yelo: Open Sauce SDK
Halo 1 (CE) Edition
See license\OpenSauce\Halo1_CE for specific license information
*/
#pragma once
namespace Yelo
{
namespace Enums
{
enum {
k_maximum_buffered_keystrokes = 64, // MAXIMUM_BUFFERED_KEYSTROKES
k_maximum_gamepads = 4,
k_maximum_gamepad_axes = 32... |
b676570d49ca5653f7cfa25b355662a93c47397a | 5a63bd6870346aa6593233b990303e743cdb8861 | /SDK/UI_Container_parameters.h | e3ab4c3d4fbc4402a9985175b94849293530ff9f | [] | no_license | zH4x-SDK/zBlazingSails-SDK | dc486c4893a8aa14f760bdeff51cea11ff1838b5 | 5e6d42df14ac57fb934ec0dabbca88d495db46dd | refs/heads/main | 2023-07-10T12:34:06.824910 | 2021-08-27T13:42:23 | 2021-08-27T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,768 | h | UI_Container_parameters.h | #pragma once
#include "../SDK.h"
// Name: BS, Version: 1.536.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------------------
// Function UI_Con... |
26d5136986951ee11a04ccc91d218b80115ff8e3 | 51375a1366c06d78f9a2b7f99a5397fedd96f2a5 | /Source/contour_extractor.h | 451c547b4577eaeddea9e792dd86cd79c2faa77b | [
"MIT"
] | permissive | Ungetym/Drosophila_Tracker | f0a4fe1fb35014a0c0f16564441953cc5022fb56 | 0753741ea72cd0fb67e0690f6de3e98aba17753e | refs/heads/master | 2021-09-14T13:21:41.520185 | 2018-05-14T08:56:03 | 2018-05-14T08:56:03 | 103,679,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,429 | h | contour_extractor.h | #ifndef CONTOUR_EXTRACTOR_H
#define CONTOUR_EXTRACTOR_H
#include "opencv2/opencv.hpp"
#include "basic_calc.h"
class contour_extractor
{
public:
contour_extractor();
// initializes background image for background subtraction
void initBackground(cv::Mat *image, float* threshold=NULL);
///
/// \bri... |
bced492b9949e348fc303b33f12830402b29cadb | 1b93fbe260ab74894454a869d7258de0fb7ecb33 | /GPUHelpers.h | 36a9bed9548637b39e42ea0155b4a9ef3699731a | [] | no_license | JackLeEmmerdeur/knfancurve | bc342b23774218456194f345ef06791a4cecc705 | 721f0e659ca86ee36a75dfd3a3a41f2091e2fbd7 | refs/heads/master | 2022-12-21T05:26:16.385024 | 2020-09-23T00:38:30 | 2020-09-23T00:38:30 | 290,026,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | GPUHelpers.h | #ifndef GPUHELPERS_H
#define GPUHELPERS_H
#include <QLayout>
#include <QMessageBox>
#include <QProcess>
#include <QStringList>
#include <QVariant>
#include <QString>
#include <QDebug>
#include <QTextCodec>
class GPUHelpers
{
public:
GPUHelpers();
static QProcess *createProcess(QStringList args);
// static QPro... |
9a22081f114255d5fbfa4afe48a7dca23241c30d | 3d7bf36e9327904b4d87e479bf268f507d192155 | /Triangle.cpp | 9ae597738441d8ece620b9e8bde7aba832cf1a16 | [] | no_license | Nishi-666/Noriuturi | 4e18d5995390af81e2e7410ab11c9eaf645e0e6b | 044479bc53f73420aaa71f695df37b3637fa423b | refs/heads/master | 2023-02-01T10:01:06.580437 | 2020-12-20T05:13:56 | 2020-12-20T05:13:56 | 309,291,533 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,996 | cpp | Triangle.cpp | #include "Triangle.h"
//#include "Config.h"
#include "Sprite.h"
#include"MyDirect3D.h"
#include <d3d9.h>
#include <d3d9.h>
#include "TexMan.h"
#include <memory.h>
typedef struct Vertex3D_tag
{
D3DXVECTOR3 Position;
D3DCOLOR Collar;
D3DXVECTOR2 TexCoord;
}Vertex3D;
#define FVF_VERTEX3D (D3DFVF_XYZ| D3... |
76ba777a96a26fe2d75608790dbb979d34a104a4 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/protocols/noesy_assign/Resonance.hh | 314a9aff3b50b2460668f2d601d538cb406b7199 | [] | 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 | 4,778 | hh | Resonance.hh | // -*- 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... |
6c449d25c4835a4e180ddf9ac4deba04fea0df23 | 0d8ec12cb25a22ea65e25a95d2cc20ad86fc5e63 | /src/creditsReader.h | 0ce07ff435660fabd81a0b5cffdc9ff4f2151ae6 | [] | no_license | BlinksTale/cubior | 7bd903a23bd5f44ef37ffc35e526e756c37d2931 | b025d71df1e5118f5cb2a10647fdd8b76256d9ca | refs/heads/master | 2020-04-02T01:01:19.131964 | 2013-08-27T07:05:03 | 2013-08-27T07:05:03 | 3,175,518 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | creditsReader.h | /*
* creditsReader.h
* by Brian Handy
* 12/5/12
* Header for the .txt to credits converter
*/
#ifndef CREDITSREADER
#define CREDITSREADER
#include <string>
using namespace std;
class CreditsReader {
public:
static string* readCredits(const std::string&);
};
#endif
|
a0ed4e12ba0728fdf685e107188b350e71d1931f | 55996d3071249043b509b1a9eed46036e98afa68 | /rc.cpp | 631e1592ae0fc8e947eb629b0151154230112589 | [] | no_license | Gyorathel/IC | 594d12b740b7584c624b21bfc1e26bb8defa3f18 | 17a9658f86ee64ddf771c6618bb94d2e98c907c3 | refs/heads/master | 2021-01-01T05:23:24.418050 | 2016-05-18T16:39:24 | 2016-05-18T16:39:24 | 59,133,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,688 | cpp | rc.cpp | #include <iostream>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <string>
#include <sstream>
using namespace std;
#define stepMax 1000
#define graphSize 200 // mudar para o arquivo de config
int mi;
int gama;
int alfa;
int corr;
int lambda;
class No... |
db4b8c4579b30a19d7da6d4ab5bbf3ed51add820 | 5211c66c05586032c171003cbd02d0241f896144 | /src/e_copia.h | 4506c4cbd46f0540d5a64da68413768ffd4587ab | [
"MIT"
] | permissive | D33pBlue/AnimalGame-lite- | d2133224f395a09d3421b6b380f28e07eb1c4ad2 | 9fb7ce6fa1ab4736abcb38a539db6c1e690b3201 | refs/heads/master | 2021-09-09T16:04:25.182814 | 2018-03-17T16:52:53 | 2018-03-17T16:52:53 | 125,650,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | h | e_copia.h | #ifndef E_COPIA_H
#define E_COPIA_H
#include "effetto.h"
class E_copia : public Effetto
{
public:
E_copia(const QString&);
virtual E_copia* clona()const;
virtual void onTira(Partita*,Giocatore*);
};
#endif // E_COPIA_H
|
38a3626331eefe2985be883d36b305dc7e0749fd | ec219e3a747108e3ea7d6dad73ab6d3bedbe7e75 | /DataStructures/Stacks/3.EqualStacks.cpp | 0d2f96f6f214d6d11e8377d5d21a60ecda0d820a | [] | no_license | johnty05/Hackerrank | b687672dfe2abf6214dc7a7918a73f6f77f43965 | dfa75f67235161cbc25550650d7fd3ad36856e9c | refs/heads/master | 2022-11-14T15:17:01.672337 | 2022-11-11T19:46:17 | 2022-11-11T19:46:17 | 134,028,613 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | cpp | 3.EqualStacks.cpp | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include<iostream>
using namespace std;
int main(){
int n1;
int n2;
int n3;
cin >> n1 >> n2 >> n3;
int h1 =... |
a349701093ea296e1963960a89a450e11d49cd26 | 771e582527e78f7650e937bcd00513b3c9e30e0f | /src/GLShader.cpp | 1ddb1d43cc1a7d3ac349ffe66048dc06f5fea029 | [] | no_license | ElFeesho/GlTest | 6cf5a9bc8a5f46cab964df5893d3d538b1a951b1 | 001b257d8684a744be3388a01e78e02e1bd7f6ef | refs/heads/master | 2021-01-11T20:12:04.214120 | 2017-01-22T18:29:04 | 2017-01-22T18:29:04 | 79,064,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,315 | cpp | GLShader.cpp | #include "GLShader.h"
#include <algorithm>
GLShader::GLShader(GLuint shaderId) : _shaderId{shaderId} {
}
void GLShader::use(std::function<void()> bindingContext) {
glUseProgram(_shaderId);
bindingContext();
glUseProgram(0);
}
void GLShader::locateUniforms(std::vector<std::string> uniformNames)
{
std::for_each(u... |
70a733ded6cada327618e61581414f9b4189a399 | b69a21b62bcdab75ab24264b3354a1947acf5e6f | /client/ModelGenerated/getuserinfobyloginresult.h | 881fcdb70f318f644383453db70d3ffa9678e2c0 | [
"CC-BY-4.0",
"MIT"
] | permissive | aernesto/moodbox_aka_risovaska | 97ee1127e1ed7a2ddcc85079cab15c70b575d05f | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | refs/heads/master | 2021-01-01T17:17:39.638815 | 2012-02-28T15:31:55 | 2012-02-28T15:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,728 | h | getuserinfobyloginresult.h | #ifndef GETUSERINFOBYLOGINRESULT_H
#define GETUSERINFOBYLOGINRESULT_H
#include <QObject>
#include <QSharedData>
#include "transportableobject.h"
#include "fault.h"
#include "userinfo.h"
#include "callbackcallertools.h"
namespace MoodBox
{
class GetUserInfoByLoginResultData : public QSharedData
{
public:
GetUser... |
fafae66fdecdff28b61e2e22c1fa243e8fd1d983 | 444a2443868fe7a72483b1a090c1312397a4c8de | /RateSource/PathGenerators/SingleFactorGMB.cpp | 6716c91359cb5a947277b7508918f1a34f34f19c | [] | no_license | daveysj/sjd | e2dd2aeef3422ef54309dd3d67c7537ceea913c8 | f48abae6f2e8fc91d27961b8567be3d8f0eb62d9 | refs/heads/master | 2021-01-10T12:51:33.786317 | 2018-06-25T14:54:50 | 2018-06-25T14:55:28 | 51,246,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,544 | cpp | SingleFactorGMB.cpp | #include "SingleFactorGMB.h"
namespace sjd
{
/*======================================================================================
EconomicScenarioGenerator
=======================================================================================*/
void EconomicScenarioGenerator::resetErrorMessages(... |
e469b0bdefef71de11cb609582762f144011f835 | d17a2f15fe3a7697a794cf9dc0d5e291f8cb0022 | /main.cpp | 2f1804125194d9ef04484467acc149e4d71fca59 | [] | no_license | sidpendyala/DesignUnit12021 | 682e0415c9214a1aaa89c538985e89b9aa704e42 | 37c7750c986db5de89519754b9c10448b75efb09 | refs/heads/main | 2023-09-02T00:53:08.142165 | 2021-11-08T08:54:56 | 2021-11-08T08:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cpp | main.cpp | #include <Arduino.h>
//Ultrasound sensor pins
const int trigPin = 9;
const int echoPin = 10;
//These are required to measure distance
long duration;
int distanceInch;
//This happens in the beginning of the power it has, it defines the pins and the power given.
void setup() {
Serial.begin(9600);
pinMode(trigP... |
a28f1f6013ff0b971739e46133eb99ca52faf3d1 | 95036e503519f476e653b51209669f156ae6a331 | /longestSubstringWithoutRepeatingCharacters/longestSubstringWithoutRepeatingCharacters2.cpp | 7a73e0de40bbdef4b8ad8100bd3d038175c8c6ed | [] | no_license | jingminglake/Leetcode | c414ff3385c1c6e0ccf17fb51d89bca3e0648afe | 0aa509d74e20bc73a015ebfd966fd3b44aac1f66 | refs/heads/master | 2023-02-19T15:42:28.880314 | 2023-02-14T07:47:52 | 2023-02-14T07:47:52 | 83,025,474 | 18 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | longestSubstringWithoutRepeatingCharacters2.cpp | #include <iostream>
#include <unordered_map>
#include <algorithm>
using namespace std;
class Solution {
public:
int lengthOfLongestSubstring(string s) {
unordered_map<char, int> hm;
int maxLength = 0;
int n = s.length();
int i = 0, j = 0;
while (j < n) {
unordered_map<char, int>::iterator i... |
f4628be12e3ab51dedc77dfd1d3f8b4275555906 | f459a74af9a4b6fe37815987e3a007ba243e9ebc | /Tfp.cpp | 76795d06eb60b48584890f4c118e96a5cfe30522 | [] | no_license | stiltskincode/lemur-game | 6c80856c9a7a2a852ec4973d7a1b78b127e51216 | 348cb0d3f99576c61ed7d63aa8f00e62688fb70e | refs/heads/master | 2021-01-10T03:05:03.312223 | 2016-02-04T15:29:58 | 2016-02-04T15:29:58 | 51,084,796 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 5,433 | cpp | Tfp.cpp | #include "Tfp.h"
using namespace std;
Tfp::Tfp()
{
path = "";
}
Tfp::Tfp(std::string archFileName)
{
open(archFileName);
}
Tfp::Tfp(string archFileName, string path)
{
open(archFileName);
this->path = path;
}
Tfp::~Tfp()
{
}
bool Tfp::compress(string archFileName, string *fileNamesToCompress, unsigned int num... |
338fe9d7659cdde511c3dbdd2bae2ba96bb80186 | 5baf53d52f1acab7d177489473d2a3ec78fe8744 | /ESP8266Demo/ArduinoSlave20.2_LCD_Servo/ArduinoSlave20.2_LCD_Servo.ino | fd1cb6dff78e0db66601e1ff6e811b7143c83e1e | [] | no_license | fukuda-ryoya/3DPrinterSTLFiles | 3bc533e43d9e52331f1fa411f570d484e1807ef2 | ee4d8c30b15ad710205c4ee732356abcfdfb7858 | refs/heads/master | 2022-03-20T22:30:47.189476 | 2017-02-01T20:46:53 | 2017-02-01T20:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,508 | ino | ArduinoSlave20.2_LCD_Servo.ino | #include <Servo.h>
#include <Wire.h>
#include "U8glib.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define backlight_pin 9
U8GLIB_PCD8544 u8g(8, 4, 7, 5, 6); // CLK=8, DIN=4, CE=7, DC=5, RST=6
#define I2CAddressESPWifi 6
#define ledPin 13
#define numberOfBytes 15 // number of bytes... |
77f92c5e3fb493a5e4a5cc87a32827d6d3e0cb26 | 34c3b4449c61862a71ac8967cd271670762cf863 | /include/vectors.hpp | 89ffdeea3fc1f00d121e08739fdb0ef27c030ce9 | [] | no_license | alu0101102726/DAA_P9 | 1151cd5ec8106ba1c9e54499fb6061207b42d13c | b7b10f31606ccc897356d339b4f191c9190b56bd | refs/heads/master | 2022-08-29T16:56:49.960232 | 2020-05-18T21:23:27 | 2020-05-18T21:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | hpp | vectors.hpp | #pragma once
#include <vector>
#include <string>
#include <cmath>
#include "file.hpp"
/**
* @brief Esta clase representa la información que se ha obtenido
* del fichero
*/
class Vectors {
private:
std::vector < std::vector < float > > data;
int dimension;
public:
Vectors() {}
... |
b98fc98c6e66ef755ac5d30022bad21b9884855f | 7915e215d09d0d792093b2deff2433be802990df | /vicky_counter/vicky_counter.ino | 26300c1c66668dfd5256ec581c869bb8cfc39b6e | [] | no_license | parthishere/My-Arduino-Projects | 1ea33d3967b40dd617f264638614c3fa658886f3 | 7f4dfc376ef25d63452c51abb8fe5b93c600e588 | refs/heads/master | 2023-05-24T06:28:35.023127 | 2021-06-18T17:03:19 | 2021-06-18T17:03:19 | 378,215,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | ino | vicky_counter.ino | int l1=13, l2=12, l3=11, l4=10, l5=9, sw=8, count=0;
void setup() {
// put your setup code here, to run once:
pinMode(l1, OUTPUT);
pinMode(l2, OUTPUT);
pinMode(l3, OUTPUT);
pinMode(l4, OUTPUT);
pinMode(l5, OUTPUT);
pinMode(sw, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to... |
610f2e328b7fbc427cdf009f7658d848d7c5d624 | 993eb877c2a72e7d5090d8e61a9fc7f9eb9c6f0d | /DeadReckonging/spline_temp/.ipynb_checkpoints/main-checkpoint.cpp | 6a0bf396776f16afe26d2bad0ba0f30dd5ffcc9b | [] | no_license | sjlee1218/CBNU_SCRC_2018_winter | e0d185f710c9db280759d04ecfbd694ee17f6457 | 024f16e137971ccb946663984c8beb7da11acc37 | refs/heads/master | 2020-04-15T08:54:08.621097 | 2019-03-10T12:21:31 | 2019-03-10T12:21:31 | 164,531,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,792 | cpp | main-checkpoint.cpp | #include <iostream>
#include "CatmullRom.h"
#include <fstream>
#include <string.h>
//void demo_bezier();
//void demo_bspline();
void demo_catmullrom();
using namespace std;
int main(int argc,char** argv) {
//demo_bezier();
//demo_bspline();
demo_catmullrom();
}
/*
void demo_bezier() {
Curve* curve = new Bezier()... |
d9bd5681e78a83d2cef2695c31f743443d945eb3 | 8776e5e32be27c16c7f8cd2a9a4259b6fb7a012b | /im_client/Mini_Client/MINI139_SRC/Im/FloorPageRecent.h | cdcddd3f1ba4bd2057af94bfe2f4980934d3ff9f | [] | no_license | 736229999/im | 970b9754da2e15fd5cdaaed6ba189e7c497e15e3 | dc00c52e77a99fae28df9dba8366e31b578a7831 | refs/heads/master | 2021-01-15T11:11:56.737294 | 2017-06-14T07:56:44 | 2017-06-14T07:56:44 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 762 | h | FloorPageRecent.h | #pragma once
#include "customlistctrl.h"
// CFloorPageRecent 对话框
class CFloorPageRecent : public CDialog
{
DECLARE_DYNAMIC(CFloorPageRecent)
public:
CFloorPageRecent(CWnd* pParent = NULL); // 标准构造函数
virtual ~CFloorPageRecent();
// 对话框数据
enum { IDD = IDD_FLOOR_RECENT };
protected:
virtual vo... |
b9197edf18024c342a41399475985cd82eceedc0 | f7efc7e844b064ed5887e945b32629538c8b4baf | /assignment3-DiceRollGame.cpp | a43cbe5c328d8a0469062ba395270afbe4804939 | [] | no_license | tayrembos/CPP | 51d1b17c6be2876fbadc5558cabc3d8807bd0354 | bac2075dbdfb0994d287f3cf3e0a025ac2bf7cad | refs/heads/master | 2022-08-04T06:53:57.104012 | 2020-05-29T01:07:27 | 2020-05-29T01:07:27 | 267,678,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,857 | cpp | assignment3-DiceRollGame.cpp | #include <iostream>
#include <cstdlib>
using std::cout;
using std::cin;
using std::endl;
int dieRoll();
int humanTurn(int);
int computerTurn(int);
int main()
{
int humanTotalScore = 0;
int computerTotalScore = 0;
// loop until someone scores at least 100
do
{
humanTotalScore = humanTotalScore + humanTurn(hum... |
cf81af98a000757979581448bff95c79b4144230 | 63b780d4f90e6c7c051d516bf380f596809161a1 | /FreeViewer/src/mark/ModelStyleWidget.h | 7147fd50789b8f6eb4b49aebd285f8eeb3378652 | [] | no_license | hewuhun/OSG | 44f4a0665b4a20756303be21e71f0e026e384486 | cfea9a84711ed29c0ca0d0bfec633ec41d8b8cec | refs/heads/master | 2022-09-05T00:44:54.244525 | 2020-05-26T14:44:03 | 2020-05-26T14:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,256 | h | ModelStyleWidget.h | /**************************************************************************************************
* @file ModelStyleWidget.h
* @note 模型属性窗口
* @author g00034
* @date 2017.02.20
**************************************************************************************************/
#ifndef MODEL_TAB_WIDGET_H_12
#define MOD... |
4dc118ae6d87d43746b6405c0d347db8703c5582 | 6a2f5f466d8d9f445599c706166ce91dd6aa86a4 | /(7 kyu) Mumbling/(7 kyu) Mumbling.cpp | c7df030879c56882948c6078e0a47d86a8b867da | [
"MIT"
] | permissive | novsunheng/codewars | 04fe3390df340d82155805fc94cc35cef2e178ed | c54b1d822356889b91587b088d02ca0bd3d8dc9e | refs/heads/master | 2020-05-29T15:30:34.152366 | 2019-05-20T09:23:36 | 2019-05-20T09:23:36 | 189,223,993 | 1 | 0 | MIT | 2019-05-29T12:46:46 | 2019-05-29T12:46:46 | null | UTF-8 | C++ | false | false | 1,002 | cpp | (7 kyu) Mumbling.cpp | #include <string>
#include <cctype>
// #1
// class Accumul
// {
// public:
// static std::string accum(const std::string &s)
// {
// std::string res;
// for (int i = 0; i < s.length(); i++)
// {
// std::string word;
// for (int j = 0; j <= i; j++)
// ... |
4468f184d8e48538891bdf88bbb8d105dd5c8316 | 952a0362fbb572133f60da919526f73519e3b339 | /problem-7/problem-7.cpp | ab3d84e6a2b02bfdadf8769a299ee45b008d75da | [
"MIT"
] | permissive | Tariod/DS-problems | 40d8b50be23e772486b01e14933b6c46256fc881 | 0b43f80de9e2f1955adf7227b639df0b927ae949 | refs/heads/master | 2020-03-13T04:12:27.479377 | 2018-05-16T16:17:45 | 2018-05-16T16:17:45 | 130,958,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,195 | cpp | problem-7.cpp | #include <iostream>
#include <string>
#include <ctime>
#include "../binary-tree/BinaryTree.h"
using namespace std;
int randNumber();
int main() {
srand(time(NULL));
BinaryTree *tree;
int counter = 0;
string value;
cout << "Enter the value of the root:" << endl;
getline(cin, value);
if(!value.... |
59602e6957a6069807236357bebecfc2806d1b79 | a95d5b833646071be2ae864067e7e797dcaeba1b | /compulsory/Reception.cpp | e2d3628419b8345b87df1393d4ebd967969a37f8 | [] | no_license | mihanloko/patterns | ff1350353ec0b6f400de77e11e6da6da2e0be8af | ca48546c863c1497228b66fda14c2309eaad7a41 | refs/heads/master | 2020-07-30T05:15:13.680704 | 2020-01-07T15:31:09 | 2020-01-07T15:31:09 | 210,099,062 | 1 | 0 | null | 2020-01-07T15:31:11 | 2019-09-22T06:06:35 | C++ | UTF-8 | C++ | false | false | 299 | cpp | Reception.cpp | //
// Created by mikhail on 12.11.2019.
//
#include "Reception.h"
Reception::Reception(int priority) : CompulsoryService(priority) {
expert = InformationExpert::getInstance();
}
bool Reception::serve(Passenger *passenger) {
Logger l("Reception");
l.info("Served");
return true;
}
|
36949fa0040d8c0dee3cbeb0595638cf3859ae12 | 8812cddcaa19671817e2b9cc179d3f41f6c620b2 | /Trunk/Client/src/Engine/Include/Engine/AIRSubMesh.h | 0c5247694a2d884a01b34ef811c5fd180d79ea13 | [] | no_license | Hengle/airengine | 7e6956a8a649ef0ca07fcf892c55ae2451ce993c | 2f5fbfbfe83eb3f2d1d44af4401b3a48ae75cb24 | refs/heads/master | 2023-03-17T00:17:33.284538 | 2020-02-04T03:25:48 | 2020-02-04T03:25:48 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 11,226 | h | AIRSubMesh.h | // ***************************************************************
// AIRSubMesh version: 1.0 · date: 01/01/2010
// -------------------------------------------------------------
// Author liangairan
// -------------------------------------------------------------
// Copyright (C) 2010 - All Rights Reserved
/... |
d71266c307a0484fd0e0a275bd0c4c5bb747c9bc | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/query/h/noise.hxx | b47901036e2b7c53a82807081aafffe89bec9d07 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 9,020 | hxx | noise.hxx | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1992.
//
// File: NOISE.HXX
//
// Contents: Noise word list
//
// Classes: CNoiseList, NoiseListInit, NoiseListEmpty
// CLString, CStri... |
929d1fc6b042760c83b202873f2619d2848d3495 | 1e8465fe181fdc1cc3d3c275b0826f2e22b0ed2b | /11_C_serial.cpp | d8fac58b66662b700b5a0748b44bed49537e64d9 | [] | no_license | xmikiesx/Capitulo3 | 41a58f27e8f72f0b42fedd2520380afffbf871d6 | 80dab2fdf6f47d2e6bb576d641c1666d8b498992 | refs/heads/master | 2020-07-27T20:41:49.124393 | 2019-09-18T20:42:39 | 2019-09-18T20:42:39 | 209,210,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | 11_C_serial.cpp |
#include <stdio.h>
#include <stdlib.h>
#define SIZE 16
int main(void) {
int a[SIZE];
int sum[SIZE];
int i;
for (i=0; i<SIZE; i++){
a[i]=rand()%50;
}
sum[0]=a[0];
for (i=1; i<SIZE; i++) {
sum[i]=sum[i-1]+a[i];
}
for (i=0;i<SIZE;i++){
... |
a69dbfb4b50de6358dd5a2500c8899afa30175ad | 3b2814bfc52ce874442251f258245541ee513932 | /R3/CDlgListBase.cpp | a9d581cff7b7eecc9285a30f64d89d82099f1acd | [] | no_license | bb33bb/MyLittleARK | 3e589636ce7a5a3e6ab5a43b9860f00674a13c7f | 73ad0d59fe51bc876d69acbd66525c2bda9eedca | refs/heads/master | 2023-06-11T06:45:31.127999 | 2020-01-01T11:42:45 | 2020-01-01T11:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | CDlgListBase.cpp | // CDlgListBase.cpp: 实现文件
//
#include "pch.h"
#include "R3.h"
#include "CDlgListBase.h"
#include "afxdialogex.h"
// CDlgListBase 对话框
IMPLEMENT_DYNAMIC(CDlgListBase, CDialogEx)
CDlgListBase::CDlgListBase(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_CDlgListBase, pParent)
, m_hDev(NULL)
{
}
CDlgListBase::~CDlgLi... |
6196434283d4e3bb08efeea0bba88c768da3e6ca | 8c6ac005f8efd3dd9af76c4516b2a25b15834b52 | /MFCTool/UiTool.h | 7b9ea0931f94068e18c5fc59c24600dccbf6c6b9 | [] | no_license | qaws1134/MFCTool_Team | 1b5cf873a1feb359456230ec8b8649181f86f3eb | 2494a84a7e96f0b03ad71a333c3c8ada699057d0 | refs/heads/main | 2023-06-04T04:47:24.990456 | 2021-06-26T08:44:57 | 2021-06-26T08:44:57 | 378,180,776 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,206 | h | UiTool.h | #pragma once
#include "afxwin.h"
// CUiTool 대화 상자입니다.
class CMFCToolView;
class CUiTool : public CDialog
{
DECLARE_DYNAMIC(CUiTool)
public:
CUiTool(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~CUiTool();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_UITOOL };
#endif
protected:
virtual void DoDat... |
30aa7fbb01bf239f93caf85d650ab074e5c6c051 | 9d32d6f7112d292a9b2b11d8e2796743cfbe8761 | /Image.cpp | 5faf7e81c6c36f31a48726c81938930cbf204375 | [] | no_license | iskay/Wavelet | 1c7f0457e5f4429877b3329d4b9588315165e81b | 7a3ffda05b0fa93ee6e42d6e0ea8b3383f317abd | refs/heads/master | 2021-01-19T14:33:43.831526 | 2010-12-16T01:38:54 | 2010-12-16T01:38:54 | 1,172,874 | 14 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 7,012 | cpp | Image.cpp | #include <fstream>
#include <string.h>
#include "Image.h"
#include "Structs.h"
using namespace std;
//Loads a BMP for compression.
//fname = the name of the bmp to open
//header_addr and img_addr are used to store the address of the header and image
//arrays in memory after the file has been loaded.
//header_size and... |
1f0efc18a240d465f2fb30939d65e7202f04ebc7 | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_mpl_map_aux__has_key_impl.hpp | 65f05295615ba36fba90fd6f29ce00abb3bbf65b | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47 | hpp | boost_mpl_map_aux__has_key_impl.hpp | #include <boost/mpl/map/aux_/has_key_impl.hpp>
|
e5b26efddbca501670ac56be8190a3ac6351c4a4 | f4818ed7e80487d399bc642aa36eb74b26d89ce1 | /c_cpp/tutorials/simple/containers/multi/array/at_example/amalgamation/array_at_cplusplus.cc | 31a5ec63f2f625657089aea2e98d02086a5b5ca6 | [] | no_license | AlitalipSever/gtu-mat-214 | 496b7a278e4239dc1222fe8d0b35f33908a6b263 | 8846dd00096541ed5e8fe70ab18c84a3e0dab0e5 | refs/heads/master | 2020-04-05T19:11:23.622756 | 2017-10-11T10:53:12 | 2017-10-11T10:53:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | cc | array_at_cplusplus.cc | /*
* Adapted from:
* http://www.cplusplus.com/reference/array/array/at/
*
* */
// array::at
#include <iostream>
#include <array>
class MyClass
{
private:
int num_;
private:
static bool flag_talks_;
public:
// MyClass(int num = 0) : num_(num) {}
MyClass(int num) : num_(num)
{
if ( flag_ta... |
0060314e185a974f7765840313b098af0470058c | d3f6ef48b20c58fc2d98e6a4fc65f90772cbee96 | /src/Sorting_Algorithms/Sorting_shellSort.h | 5575b719f55bab4816babb3a144a371b728278a3 | [] | no_license | PequalsNPaspirant/MM_SortingAlgorithms | d43bc7fd37fa9b3799e8e9ef33eb3a9b125d3af5 | b0a923f821e44157e29964bf074724e964164457 | refs/heads/master | 2022-11-05T21:31:06.140290 | 2022-10-31T15:30:13 | 2022-10-31T15:30:13 | 158,047,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,594 | h | Sorting_shellSort.h | #pragma once
#include <iostream>
#include "Sorting_dataStructure/Sorting_dataStructure.h"
namespace mm {
//=======================+============+
// | Shell Sort |
//=======================+============+
// Shell Sort - common functions
//==================================================... |
d65c2c47c9ea5f66c8e8f3fdd656366d7e2c4405 | f28c54ed419b90ea9d8786318e021c05e26c1fd5 | /archivos/objetoOpenGL.h | 427a22a38f8b9cdd27366a4994a110db3609913e | [] | no_license | hushP31/voleybol-tracking | acaafde7cc3a8f4c32a71d20ee7e07528d910b45 | cb7e30370f59bf087cf6db5ad733e16a508453cd | refs/heads/master | 2021-07-08T02:20:25.826998 | 2018-05-24T08:25:26 | 2018-05-24T08:25:26 | 95,792,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,837 | h | objetoOpenGL.h | #include <vector>
#include <GL/gl.h>
#include "vertex.h"
#include <stdlib.h>
#include "file_ply_stl.h"
#include "misObjetos.h"
#include "stdlib.h"
using namespace std;
// variables que definen la posicion de la camara en coordenadas polares
GLfloat Observer_distance;
GLfloat Observer_angle_x;
GLfloat Obs... |
75adc5d3634a0f4522089568e8ba8dcf9ad66f10 | da972bd5de3c23046509cb1673f2d2e75d67da7f | /mbition/main.cpp | ded91d35a2e1a3553eb1bc4d7a37e057b23afbb7 | [] | no_license | zaidyes/mbition | 6c8acff4ce22468f261540bd415b8c90b765e9d9 | 1ca261fae9dde12b762fc9415101f0ab1870e126 | refs/heads/master | 2021-07-18T19:51:15.661719 | 2017-10-26T13:51:27 | 2017-10-26T13:51:27 | 107,904,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | cpp | main.cpp | #include <QDebug>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickWindow>
#include <QQmlContext>
#include <parser/CPUInfoParser.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
QQmlContext *ctxt = engine.rootContext();
... |
77a20913c6825e3437706146439d2948bcdf0b29 | b5caebe7597445ff927cc7b02cf75d7065ad30e1 | /Libraries/pump/pump.cpp | b8c5e87a1bc1637efe5d456cfcd43fa21f07632a | [] | no_license | scrottty/BASICWATERPUMP | 9324efe9b2a95e9e53d0e02f28759296498449af | 43e6fc4f2cc336218e6aa604b59f89f7bd2bb8eb | refs/heads/master | 2020-03-28T08:49:01.589422 | 2018-09-09T09:36:45 | 2018-09-09T09:36:45 | 147,991,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | pump.cpp | #include <Arduino.h>
#include "pump.h"
pump::pump(int pinNumber)
{
pinMode(pinNumber,OUTPUT);
}
void pump::run()
{
digitalWrite(pinNumber,HIGH);
}
void pump::stop()
{
digitalWrite(pinNumber,LOW);
} |
0e19f7416b3d3f31d2f233cd2a45369f52cf4270 | 310786d31c228271d3c4c965ee5b2eada9816b67 | /ECS/ECS/Component.h | 2df261afc91658d4da3e8dc57573b4c9d320d05f | [] | no_license | JamieJ619/GamesEngineering-ECS | bf6c86965055b5c9030a8b925c8f1841f7abc5cd | 760b5fd549e9b41cff9fe60c804fa7906bbcad84 | refs/heads/master | 2021-01-25T07:07:25.307627 | 2017-02-05T16:01:21 | 2017-02-05T16:01:21 | 80,714,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | h | Component.h | #pragma once
#include <vector>
#include "Vector2.h"
class Component
{
public:
Component(int id)
: m_id(id)
{
};
~Component() {};
int getId()
{
return m_id;
}
private:
int m_id;
};
class HealthComponent : public Component
{
public:
HealthComponent(int id)
: Component(id)
, m_health(10) {}
~HealthC... |
50c35e602dccf56380d52ee4b2aa05194c7feb72 | c6d187832a65b964e7c184e6db14d5208fadbda8 | /week 2/tempConvert.cpp | 86729f9f15a3fadef8533dc931d29283cded50f6 | [] | no_license | mccabmic/CS-161 | 9729a40b5e658a99e1f9ca227a42a4c4cd71f327 | 811997c2e87cef6756d5ddd7297ea8e58752e225 | refs/heads/master | 2021-05-07T14:45:23.449466 | 2017-12-01T05:05:41 | 2017-12-01T05:05:41 | 109,871,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | tempConvert.cpp | /************************************
** Author: Michael McCabe
** Date: October 3, 2017
** Description: This program takes the temperature in C and converts it into F
**
************************************/
#include <iostream>
using namespace std;
int main()
{
double tempInC,
tempInF;
cout << "... |
7cc21b07711a2d26f72d911b68c9fa51ef5bde11 | d27127cd29a451a1d14ac9ab58db3b1f7cc6bad7 | /Training/Training/MoveSemantic.h | 4bd9cbc3fb247c1afe1f22d035036427bb870078 | [] | no_license | anitamiring/C-training | 31fabb9d73f18875b9446a7431d10b8f6bc00e0c | 995654d2537725a922f9c1036fa372a7de7e5355 | refs/heads/master | 2020-06-03T22:17:33.710904 | 2019-06-14T08:29:32 | 2019-06-14T08:29:32 | 191,753,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | h | MoveSemantic.h | #pragma once
#include <iostream>
class MoveSemantic
{
int* ptr;
unsigned int size;
public:
MoveSemantic(unsigned int size);
MoveSemantic(MoveSemantic& other);
MoveSemantic& operator=(const MoveSemantic& other);
MoveSemantic(MoveSemantic&& other) noexcept;
MoveSemantic& operator=(MoveSemanti... |
908915a399b2b25a34fdb77848fb69572d2e546b | c8e1a00ac0649ecc043b8eb17367ff1e33065279 | /Numerical Methods/main.cpp | 97f0e143d84fdc9b32db63c8919739fa01250a74 | [] | no_license | PWilkosz99/NumericalMethodsPW | 2d9122e552b1055719e8fc09e2a4726f72ddb111 | 6d7ac7dcb031b968f30c47fcce368eff604ffcc6 | refs/heads/main | 2023-06-01T13:07:53.716029 | 2021-06-21T10:24:46 | 2021-06-21T10:24:46 | 345,970,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | main.cpp | #include <iostream>
#include <locale.h>
#include <fstream>
#include "headers.h"
using namespace std;
//Definicje funkcji znajdują się w pliku differentialeq.cpp
int main() {
cout << EulerMethod(1000, 0, 300, 1200, ThermalConductivityEQ, -1E-12, 0) << endl;
cout << HeunMethod(1000, 0, 300, 1200, ThermalConductivit... |
6daa9aab6dedd99b334f1e2be99e20116e11e6c4 | e320d5a7f0d8c5abc276b58e6ed2f9433d8d4d95 | /src/ui/Image.cpp | c432f80e14fe1a74ef00c655d09cbdbe94e753bf | [] | no_license | HansLehnert/frontend | 09b281f2f1db76e752f6743a4d55fe9578c38aa7 | 3b14af7242c8e4dcf6f48c20b2a3431d2df02f4b | refs/heads/master | 2021-01-13T03:05:00.837957 | 2020-09-06T23:21:03 | 2020-09-06T23:21:03 | 76,988,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | Image.cpp | #include "ui/Image.hpp"
#include <string>
#include "glm/glm.hpp"
#include "core/Texture.hpp"
#include "core/Program.hpp"
Image::Image(std::shared_ptr<Texture> texture, std::string name) :
Plane(name),
fill_mode_(Image::FillMode::Fit),
tint_color_(0),
opacity_(1),
texture_(text... |
d3d6194915919374c6abf2bd86f3d7824b5a7ec7 | 96dbd470db1da75cfbe0f6971a44e0e3611cb0f1 | /LeetCode_572/main.cpp | b3442b9aa710c261b745ca031074ceb0c1fad99a | [] | no_license | MatrixDeity/Problems | 1d3c0ce1075f425f8ac4d39c32a0c87d94fc4061 | f7899cebbb8c09b1cd526dfe6ee9d649e0071327 | refs/heads/master | 2023-07-09T08:01:05.575383 | 2023-06-24T21:32:07 | 2023-06-24T21:32:07 | 102,288,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | main.cpp | /**
LeetCode_572
https://leetcode.com/problems/subtree-of-another-tree/description/
MatrixDeity, 2018.
*/
#include <iostream>
#include <functional>
using namespace std;
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* Tre... |
8062818a1e9d1188db304a893b7df4c749fec19f | 3d839b8c98a08640e1c19006ebfadb246e00fdaf | /Lista4_1/Lista4_1.ino | b4f7d3064558a659a7ff8348a74a722f622d688e | [] | no_license | mnahajowski/Arduino | 448b466a803ea8ff709db9b05fb8a5364438339d | 8938c4d57a18cca66d205c561c0f56443a89da72 | refs/heads/master | 2021-02-16T07:04:10.637466 | 2020-06-01T17:27:41 | 2020-06-01T17:27:41 | 244,978,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,945 | ino | Lista4_1.ino | #define BUTTON_PIN_RED 2
#define BUTTON_PIN_GREEN 4
#define RED 6
#define GREEN 5
#define BLUE 3
#define DEFAULT_DELAY 200
#define STANDARD_DELAY 20
#define ADC_PIN A3
int analogValue = 0;
bool lastBtnState_red = HIGH;
bool lastBtnState_green = HIGH;
bool led_state = LOW;
int my_delay = 0;
long time_start = 0;
long ti... |
addc26dd7bafc9d906e0777ffdb5adcb911356b7 | 6d94c3d0c9037ecd54859a76703bfd18394f2c76 | /Io_16P_16C_default/MyBlueGoldHandler.cpp | 6b8b1ce57036db4278426e75c275b2db9a79abe9 | [] | no_license | openlcb/Arduino | 765ba833b399028107badafa48bbe2e622e5cf38 | ae38096e25d920afb70f325d4e77776e371658f9 | refs/heads/master | 2020-05-23T08:13:05.457363 | 2017-03-30T19:24:39 | 2017-03-30T19:24:38 | 70,288,310 | 1 | 4 | null | 2017-03-30T19:24:39 | 2016-10-07T22:50:02 | C++ | UTF-8 | C++ | false | false | 11,055 | cpp | MyBlueGoldHandler.cpp | #include "MyBlueGoldHandler.h"
#define ShortBlinkOn 0x00010001L
#define ShortBlinkOff 0xFFFEFFFEL
#define PRESS_DELAY 75
#define LONG_DOUBLE 3000
#define VERY_LONG_DOUBLE 8000
void MyBlueGoldHandler::create(OLCB_Link *link, OLCB_NodeID *nid, MyEventHandler *eventHandler)
{
OLCB_Virtual_Node::create(link,nid)... |
1e8998364599158aa632377e1e53336e47c90ec3 | 2c786297aec94de1b73ef353ff8083ebe49afd90 | /src/test.cpp | 7582df26baec913419e77d4598c82ca2fb4534af | [
"MIT"
] | permissive | MegrezZhu/Database-BallTree | 341e2f47f1ea70fd718a2cccf3d73cee31cfb8ad | 8c5ef50c8196aa12b7fe5e8d236b9068ce056a91 | refs/heads/master | 2021-01-23T00:29:01.273133 | 2017-06-06T15:50:01 | 2017-06-06T15:50:01 | 92,814,181 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 5,018 | cpp | test.cpp | #include <iostream>
#include <ctime>
#include "BallTree.h"
#include "Utility.h"
#include "Page.h"
#define MNIST
#ifdef MNIST
char dataset[L] = "Mnist";
int n = 60000, d = 50;
int qn = 1000;
#endif
#ifdef YAHOO
char dataset[L] = "Yahoo";
int n = 624, d = 300;
int qn = 1000;
#endif
#ifdef MINIMAL
char dataset[L] = "... |
3f155e802af76216a925dcc7dcf62239ae8dc58f | 2a99407309904cd05fea8befaafb14b332c816dd | /d02/ex01/Fixed.cpp | 1847cd8b34f0971a62490f84cb0690c6027defc9 | [] | no_license | maxencealluin/cpp | ea33396c5f7aafcfa0bcb25356f1fa62a34da8db | b3442e4815a4b3f3b4b42907b8541f7ecc95f189 | refs/heads/master | 2020-07-05T05:52:46.926089 | 2020-01-28T12:55:59 | 2020-01-28T12:55:59 | 202,544,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | Fixed.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.cpp :+: :+: :+: ... |
bb0f3f8bda221c100310550fa99e7503f1ee05d5 | 37b30edf9f643225fdf697b11fd70f3531842d5f | /chrome/browser/ash/dbus/ash_dbus_helper.cc | f235df93848c5bca736714ab52f577d8920c1563 | [
"BSD-3-Clause"
] | permissive | pauladams8/chromium | 448a531f6db6015cd1f48e7d8bfcc4ec5243b775 | bc6d983842a7798f4508ae5fb17627d1ecd5f684 | refs/heads/main | 2023-08-05T11:01:20.812453 | 2021-09-17T16:13:54 | 2021-09-17T16:13:54 | 407,628,666 | 1 | 0 | BSD-3-Clause | 2021-09-17T17:35:31 | 2021-09-17T17:35:30 | null | UTF-8 | C++ | false | false | 10,089 | cc | ash_dbus_helper.cc | // Copyright 2018 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 "chrome/browser/ash/dbus/ash_dbus_helper.h"
#include "ash/constants/ash_features.h"
#include "ash/constants/ash_paths.h"
#include "base/files/fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.