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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c8ad368a27584f347cd8a9abeda7b00bce020cd | 85a72e15d3a4e3ad3a828dc21f71d25a49eeb09a | /test/constexprs/min_result_next.cpp | 85943728531e0d11027adc834fec69a4fab50b15 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | akrzemi1/outcome | 2402ddd8d015aca97b2709555a9cad9a7c3389bc | 560b9fa011f4d34010285fce76f33f54d7263acd | refs/heads/master | 2020-04-02T11:43:37.241604 | 2018-10-17T23:00:31 | 2018-10-17T23:00:31 | 154,403,526 | 0 | 0 | Apache-2.0 | 2018-10-23T22:14:00 | 2018-10-23T22:14:00 | null | UTF-8 | C++ | false | false | 330 | cpp | min_result_next.cpp | #include "../../include/boost/outcome.hpp"
using namespace boost::outcome;
extern QUICKCPPLIB_NOINLINE result<int> test1(int n)
{
return result<int>(n).next([](result<int> m) { return m.get()*3; });
}
extern QUICKCPPLIB_NOINLINE void test2()
{
}
int main(void)
{
result<int> m(test1(5));
test2();
return m.get... |
d8d56466220295d986eea9f51f956d09d95e1018 | 05f026b42f62621abd572e3b81bd3b936ec7a5ff | /Bolt/src/Core/ECS/Core/Component.cpp | 3cc4535174aee4f08b134ba44783cd581465ae8b | [] | no_license | Adraekor/SpaceInvaders | 43e33550a9146ddb65c0bf441950140b7056960b | 553ae1daa3c0daea6d5249fdc8dafa652767a82f | refs/heads/master | 2022-11-25T15:09:46.536760 | 2018-03-29T08:59:57 | 2018-03-29T08:59:57 | 126,801,096 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | cpp | Component.cpp | #include "Component.h"
// -------------------------------------------------------------------------------------
// ------------------------------------------------------------------------ Construction
// -------------------------------------------------------------------------------------
cComponent::~cComponent()
{... |
21ff9c8b064e5d617808f9fb0a2999ed45d9e377 | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-31/android/R.hpp | c8364ca8de4eec088f3ab26dda98adde943eeadd | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 271 | hpp | R.hpp | #pragma once
#include "./R.def.hpp"
namespace android
{
// Fields
// Constructors
inline R::R()
: JObject(
"android.R",
"()V"
) {}
// Methods
} // namespace android
// Base class headers
#ifdef QT_ANDROID_API_AUTOUSE
using namespace android;
#endif
|
985f66afd15b71a9391b5c29a446a313f81b9984 | 2af29f0c2676c57191678f1a2f0244c364f81fa1 | /Include/gui/Font.h | 253304ed6e89febffd5cb119225363a0edf42ac8 | [
"MIT"
] | permissive | kochol/kge | 7c313c0c68242e7d9eee1f4a7dd97fd60038f63e | 9ffee7ab7f56481383d8f152cfa0434e2f9103c1 | refs/heads/master | 2020-04-26T11:28:25.158808 | 2018-06-30T07:26:07 | 2018-06-30T07:26:07 | 4,322,408 | 10 | 1 | null | 2014-05-29T20:47:11 | 2012-05-14T10:11:55 | C | UTF-8 | C++ | false | false | 981 | h | Font.h | // File name: Font.h
// Des: Class for bitmap fonts.
// Date: 17-Apr-2007
// Programmer: Ali Akbar Mohammadi(Kochol)
#ifndef FONT_H
#define FONT_H
#include <map>
#include "../kgedef.h"
#include "../Resource.h"
#include "../sn/SceneManager.h"
#include "../core/Structs.h"
#include "../../Headers/gui/Char.h"
namespace ... |
0020b898fbf04141dcdb4dfbe6022dfe3a4c33aa | 842f9456a6e5f20f53748f23e676c214c6cf1bc8 | /03_classtemplate/stack1test.cpp | a3cea76a5821c5cef5c1b1543d5dc304bea8420b | [] | no_license | jadyan/CppTemplate | 2f64d74240666cfa9855dfb6359fcb44a5b1addc | d089a72502c1e80e41af80453452243dcba8f9f5 | refs/heads/master | 2023-06-04T22:34:44.606894 | 2021-06-27T03:28:35 | 2021-06-27T03:28:35 | 380,635,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,786 | cpp | stack1test.cpp | /*
* @Author: your name
* @Date: 2021-06-09 21:07:51
* @LastEditTime: 2021-06-09 21:17:04
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /jadyan/code/book/CppTemplate/read/03_classtemplate/stack1test.cpp
*/
/* The following code example is taken from the book
* "C++ Te... |
cc91c2a5b7c94a6b6e322dcedbccf00f4556c0d4 | 0248d1b73ea6add1016101e64d6dc236a7e1d810 | /14/Threads/Threads/thread.h | 32efc4ac77b2766cda552b375f3710d0dd6c7366 | [] | no_license | limbo-china/qt | bc40c193d699f97cbcfe406537b306e7e37e3e7f | 1fa6c27d832e7127e4a58c9110b510500e57e168 | refs/heads/master | 2021-01-10T22:14:28.730968 | 2016-10-12T15:54:06 | 2016-10-12T15:54:06 | 70,334,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | h | thread.h | #ifndef THREAD_H
#define THREAD_H
#include <QThread>
#include <QSemaphore>
class Thread : public QThread {
Q_OBJECT
public:
Thread();
void setMessage(const QString &message);
void stop();
protected:
void run();
private:
QString messageStr;
volatile bool stopped;
QMutex mutex;
};
class Producer :public QThr... |
de2e05b0d742351a61702131057fef77874bb8be | 57f1b7f9bc4542912008243ecbb5b52842463dbe | /_cpp_/interchange.cpp | 4c02547fe4f3933d6eb4505543451d58f2133ba4 | [] | no_license | sulthan-95/Practice_codes | 8873f4971a24a7d48cf6fe23ce29eff5984f8166 | f589a788b4de05757f01ad2c34879fc3232f8a77 | refs/heads/master | 2020-12-30T15:41:34.598708 | 2017-05-13T08:43:41 | 2017-05-13T08:43:41 | 91,161,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | cpp | interchange.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
struct node{
int data;
node *next;
};
node * insert(node *head,int data)
{
node *newnode=new node;
newnode->data=data;
newnode->next=NULL;
if(head==NULL)
head=newnode;
else
{
node *p=head;
while(p->next!=NULL)
p=p->next;
p->next=newnode;
//... |
3c97e50c3435681cef74fdd6ed7f09991364fc5f | d6491bb4c5f8b505e3bbc4b517b04646783728be | /crate1_Struck/sis3350_module.cpp | 7cd4679f0b17231149e8c1c8f3518ba936471743 | [] | no_license | alcap-org/AlcapDAQ | 7abb402c2f7f1c4c97c1d61a88cbd8c1c6e129f3 | 269f698bd80a6f57314e1497c15b484f15516cce | refs/heads/R15b | 2023-05-11T19:28:41.593446 | 2019-06-21T17:31:22 | 2019-06-21T17:31:22 | 19,924,789 | 9 | 1 | null | 2020-03-18T20:41:34 | 2014-05-19T00:44:07 | C | UTF-8 | C++ | false | false | 3,131 | cpp | sis3350_module.cpp | /**
* PROGRAM: sis3350_module.cpp
* DESCRIPTION: Control and readout of Struck SIS3350 digitizer.
* author: V.Tishchenko
* date: 17-Oct-2015
*
*
* Modifications:
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/io.h>
#include... |
0015fc93db94e3cf76c10ae4e9c395fedebe5105 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/boxm2/Templates/boxm2_data+BOXM2_MOG3_GREY_16-.cxx | 5232385e21a8ed9539abbad65b2cf6d1e956842d | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 113 | cxx | boxm2_data+BOXM2_MOG3_GREY_16-.cxx | #include <boxm2/boxm2_data.hxx>
#include <boxm2/boxm2_data_traits.h>
BOXM2_DATA_INSTANTIATE(BOXM2_MOG3_GREY_16);
|
d4d8bab94f3f9735111105f5b8801523e89f030d | 6e995fb7ec32895a480f53ff76c8ff81925e255b | /OOP/Store/Store/Location.cpp | 0573a8f8edddc701720288362fe7fbe8db934f19 | [] | no_license | HristoHT/FMI | 54b24ae675151d9e0e03a7f70c2cf537fa4b7d7b | dbf768d4b17e71889c61fe181ee240d40223f0e6 | refs/heads/master | 2020-11-24T13:31:51.566690 | 2020-08-01T16:41:15 | 2020-08-01T16:41:15 | 228,163,535 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,358 | cpp | Location.cpp | #include "Location.h"
Location::Location() {
setMaxVolume(1);
setVolume(0);
setName("");
}
Location::Location(std::string name, int maxVolume) {
setMaxVolume(maxVolume);
setVolume(0);
setName(name);
}
Location::~Location() {
}
Location::Location(const Location& other) {
_copy(other);
}
Location& Location:... |
63a6b0bbafe6693f1ca4ccc04255186d93db33a5 | cbbcfcb52e48025cb6c83fbdbfa28119b90efbd2 | /codeforces/mailru/A.cpp | 51836a2870b14d02c6a7dd9387f4c01d141c91e4 | [] | no_license | dmehrab06/Time_wasters | c1198b9f2f24e06bfb2199253c74a874696947a8 | a158f87fb09d880dd19582dce55861512e951f8a | refs/heads/master | 2022-04-02T10:57:05.105651 | 2019-12-05T20:33:25 | 2019-12-05T20:33:25 | 104,850,524 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
int a[1003];
int b[1003];
int main(){
int n,s;
cin>>n>>s;
for(int i = 1;i<=n;++i)scanf("%d",&a[i]);
for(int i = 1;i<=n;++i)scanf("%d",&b[i]);
if(a[1]!=1){
cout<<"NO\n";
}
else{
if(a[s]==1){
cout<<"YES\n";
}
else{
if(b[s]!=1){
cout<<"NO\n";
}
... |
b0db85cf60e8ff271cb2f51ce6848b14c4afc231 | b6cad08f845100e4fe91dbf6e17aab455047dcda | /The Best Ski Jumper 3D/Light.h | 68486a59fb11a76925e488d953abe6381586646a | [] | no_license | Kisioj/Skoczek-3D | 2247d8e75fc89f647b21e8c4339bdd9445456af3 | 9f4920db2fec0b97ec27de36567f29e2c2b37a0a | refs/heads/master | 2020-03-08T09:43:59.545077 | 2018-04-04T11:40:05 | 2018-04-04T11:40:05 | 128,054,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | h | Light.h | #pragma once
#include <GL/glut.h>
#include "Vector3f.h"
#include "Vector4f.h"
class Light
{
public:
Vector4f ambient;
Vector4f diffuse;
Vector4f specular;
Vector3f position;
Light(void);
void set(void);
};
|
599b42a28a443d4f4a6e54899ceb8d821b8621f1 | 488476ef217f3abfaca8754f00174e81e26a3d27 | /My Programs/marbles.cpp | c6061db76f20e0c00230a84b3db89ce2a187a391 | [] | no_license | rahulchhabra07/CompetitiveProgramming | 17e1574a7e739a89775b649d22a5ab9fd3de8fb5 | 4d4c28cf1456a2ffc962116e4728b740c65384e7 | refs/heads/master | 2021-01-10T04:54:17.996365 | 2016-03-24T13:24:20 | 2016-03-24T13:24:20 | 54,643,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | marbles.cpp | #include<iostream>
using namespace std;
unsigned long long CombinationsIter(unsigned long long iN, unsigned long long iR) {
if (iR < 0 || iR > iN) {
return 0;
}
unsigned long long iComb = 1;
unsigned long long i = 0;
while (i < iR) {
++i;
iComb *= iN - i + 1;
... |
9118dcf2ee3d8bcf346aa0d5e0cb87a004113ed8 | c51febc209233a9160f41913d895415704d2391f | /YorozuyaGSLib/source/_notify_not_use_premium_cashitem_zocl.cpp | 10815c6b5485730916c0400e1cbc4b713a5afad3 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 293 | cpp | _notify_not_use_premium_cashitem_zocl.cpp | #include <_notify_not_use_premium_cashitem_zocl.hpp>
START_ATF_NAMESPACE
int _notify_not_use_premium_cashitem_zocl::size()
{
using org_ptr = int (WINAPIV*)(struct _notify_not_use_premium_cashitem_zocl*);
return (org_ptr(0x1400f0850L))(this);
};
END_ATF_NAMESPACE
|
d6fd327286effd53d66983ae07457eaf1ea0ba7a | c9ea4b7d00be3092b91bf157026117bf2c7a77d7 | /比赛/清北学堂/入学测试0715/2018715/2018715/src/临沂一中lzh/cover.cpp | b702ab4f6ed00a3b902ea2ad1588801157b46103 | [] | no_license | Jerry-Terrasse/Programming | dc39db2259c028d45c58304e8f29b2116eef4bfd | a59a23259d34a14e38a7d4c8c4d6c2b87a91574c | refs/heads/master | 2020-04-12T08:31:48.429416 | 2019-04-20T00:32:55 | 2019-04-20T00:32:55 | 162,387,499 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | cover.cpp | #include <cstdio>
#include <algorithm>
#define N 100010
struct Seg
{
int l, r;
} seg[N];
int n, k;
bool use[N];
int ans = -1;
void dfs(int i, int len, int num)
{
if(num > k)return;
if(i == n + 1)
{
ans = std::max(ans, len);
return;
}
int nl, nr;
int nxlen = (nr = seg[i].r) - (... |
cd7409ee8c054081e06c420ab6a0721b5cbeccb7 | ce9aa06cc853b9182714696da82ec349669119b0 | /src/wmru_dict.h | 2286a3a71c00a9cafb7ac0fb8d95f77804e33fc6 | [] | no_license | mkacz91/lz-compression | be87445d5a2e2344b6e1e779355b7d935b7d8e01 | 4d4306e7ff0986bcb92118cc5038073219eee45d | refs/heads/master | 2021-01-10T06:40:48.038793 | 2015-06-18T11:43:51 | 2015-06-18T11:43:51 | 36,303,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | h | wmru_dict.h | #ifndef WMRU_DICT
#define WMRU_DICT
#include "prefix.h"
#include <list>
#include <vector>
#include "pool_dict.h"
// WmruPool
// =============================================================================
//
// TODO doc
class WmruPool : public CodewordPool {
public:
WmruPool (int limit, bool single_char_codewor... |
a15627bff887c5ad698944c42dad14f058338d27 | 654592b2513af44fc7d7a2eefb98575edda68cb1 | /knapsackproblem.cpp | b2dffe19baee4c644ffa85cd04f707d92f8cc879 | [] | no_license | saurabhprasadsah/Data-and-File-structure-yogesh | 7c9e1615a18ebc1c17d034a5b96ba07dd821ade3 | e089b927630f5712638588dcdc13f92c33632a43 | refs/heads/master | 2023-08-16T16:00:23.157027 | 2023-08-12T17:04:35 | 2023-08-12T17:04:35 | 204,041,830 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,664 | cpp | knapsackproblem.cpp | / Knapsack
#include <iostream>
#include <algorithm>
using namespace std;
int Knapsack(int *price,int *weight,int n,int capacity){
if(n == 0 || capacity == 0){
return 0;
}
int inc = 0,exc = 0;
if(capacity>=weight[n-1]){
inc = price[n-1]+Knapsack(price,weight,n-1,capacity-weight[n-1]);
}
exc ... |
38a64a31eb96542c16d61fa7a457600806b147a9 | 8413273bab84228dad6ff5247f6d581b7796d142 | /sample/sdl/bomberman/GameObjectManager.h | 7e1f6be3383dc394fd2c1889ed2eee8cd4c61535 | [] | no_license | pdpdds/yuzaos | 91b6f5bb51583da3827594489fc700821bc5cd6a | ce3b6d0907f7be470fcbc408382a20e2b75e9ef2 | refs/heads/master | 2023-05-01T09:51:21.007740 | 2023-04-27T08:37:42 | 2023-04-27T08:37:42 | 289,303,507 | 28 | 5 | null | 2021-03-20T14:58:37 | 2020-08-21T15:30:10 | C | UTF-8 | C++ | false | false | 637 | h | GameObjectManager.h | #pragma once
#include <map>
class GameObject;
class GameObjectManager
{
typedef std::map<int, GameObject*> GameObjectMap;
public:
GameObjectManager();
virtual ~GameObjectManager();
static GameObjectManager* Instance();
void RegisterGameObject(GameObject* pGameObject);
GameObject* G... |
3529205b458029ad60718cf85d95311a7e0f8c7d | 61e5e516172dc6ba365178267b4f588cbc36d2c0 | /Ball.cpp | 8cd2c020f80e525fd4b977f7bd3503cbc195443c | [] | no_license | Atenrev/Pong-for-Arduino | dec7652312dddf68c1f925320c2e1b1955022ebf | d8b18e2b236f2da9584701c70fe6b528477a9e85 | refs/heads/master | 2022-03-24T11:10:56.436035 | 2019-12-26T17:08:34 | 2019-12-26T17:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | Ball.cpp | #include "Ball.h"
#include <stdlib.h>
Ball::Ball()
{
_x = 0;
_y = 0;
randomDirection();
}
Ball::Ball(int x, int y)
{
_x = x;
_y = y;
randomDirection();
}
void Ball::randomDirection()
{
_direction = ((Direction) (rand() % 8));
while (_direction == TOP || _direction == BOTTOM)
_direction = ((Direction)... |
5f36002135c98868e41532261b484804cc5a2b45 | a3705c1bdf4196823e855d43dbcddbee12e8107f | /MotorDriverTB6612FNG.cpp | c202e388135cc6bde68a46155f4d573fe0546c4e | [
"Apache-2.0"
] | permissive | butch01/MotorDriverTB6612FNG | 311a0f7ecfaa065aa70e5a9eb282416df264e984 | b00ee50d9af532d2f9e7757dff335909e79e072b | refs/heads/master | 2023-01-23T17:55:10.015240 | 2020-10-05T20:35:12 | 2020-10-05T20:35:12 | 109,743,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,419 | cpp | MotorDriverTB6612FNG.cpp | /*
* MotorDriverTB6612FNG.cpp
*
* Created on: 27.03.2016
* Author: butch
*/
#include "MotorDriverTB6612FNG.h"
//#include "arduino.h"
#if IS_DEBUG_TB6612 == 1
#include "ArduinoLog.h"
// define logging by function here
#define IS_DEBUG_TB6612_MOVE_PWM_ONE_WAY 0
#define IS_DEBUG_TB6612_MOVE 0
#define ... |
6b3fe811c7c94153928fcf7bb4e10ecde14b0b69 | ce1e201b69ed397851457010326e52a128f8c531 | /lab2/gameb.cpp | 12248763ca5535195dab4a0e0119a280cf434c9b | [] | no_license | huluhululiu/checkerGame | 8f53bd811a5c8c350a3a5d94fb90b7fcfc141041 | a2230a492a22bfee1cd9f99ec03286389174b055 | refs/heads/master | 2021-07-03T09:58:13.392222 | 2017-09-25T17:41:10 | 2017-09-25T17:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | gameb.cpp | #include "stdafx.h"
#include "gamp.h"
#include "gameb.h"
#include "lab2h.h"
#include <ctype.h>
#include <iostream>
#include <string> // For standard C++ strings.
#include <sstream> // For standard string streams.
#include <cstring> // For C-style string functions
#include <vector>
#include <fstream>
us... |
7845d7d0d4ee2427dcc837158282488bdbaca145 | 6697cd726d4cd3744ae52a7d5618f4ad107befba | /CP/1500/room_allocation.cpp | b1ebbbcceb21cb0a98af819a3fce9db795642547 | [] | no_license | Saifu0/Competitive-Programming | 4385777115d5d83ba5140324c309db1e6c16f4af | ecc1c05f1a85636c57f7f6609dd6a002f220c0b0 | refs/heads/master | 2022-12-15T09:11:53.907652 | 2020-09-08T08:20:44 | 2020-09-08T08:20:44 | 293,743,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | room_allocation.cpp | #include<bits/stdc++.h>
using namespace std;
#define NINJA ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define deb(x) cout << #x << " " << x << endl;
#define fo(i,n) for(int i=0;i<n;i++)
#define Fo(i,k,n) for(int i=k;i<n;i++)
#define vi vector<int>
#define ii pair<int,int>
#define vii vector<ii>
#define ll l... |
398b59c3deb87c847b9a8dffd1a192effaf1aeb6 | d388d12c3e61df6feff2cace449a8b5b193e902c | /AlarmManager.h | 6dda1e6305ae000bd8a0804fdb219e6e2a9e7c6d | [] | no_license | wujingtao/MQChannel | 3f951f03c2fb95e83d4d1e1f3a86a246503d0578 | 9d2730b831205f83bc7188073409b000bbdc4ccf | refs/heads/master | 2020-04-02T17:03:57.451078 | 2018-10-25T09:14:02 | 2018-10-25T09:14:02 | 154,642,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,659 | h | AlarmManager.h | #ifndef ALARMMANAGER_H
#define ALARMMANAGER_H
/***************************************************************************
* //报警规则类,主要根据输入的坐标何规则进行报警判断
* //输入:坐标集,规则
* //输出:是否报警
* //具体功能:(大原则,超过两人都不报警)
* //1.单人独处报警:在指定区域,规定时间内只有一个人出现在画面中时系统自动报警。摄像头连续N秒(张),有80%的判断结果显示全部图像范围内仅有一人,前m秒提醒关注,后k秒升级为报警
* //2.超时滞留:从人进入划定区... |
ad96e9b8ab4a68020adc7e4d0c032cd5a4ed2e8c | f1ff65bfc631acdf54a70b92f15fd9eb9d133c64 | /ACG_Project/light.h | d59f632a78388a11a0d793953a3f25c9f29253a0 | [] | no_license | flycanflyxd/ACG_Project | 43af5128568870e4dcd7b91b9f36b7ce5b2e250b | b9dac651afdde72fb023b717395ae109df8deb2e | refs/heads/master | 2016-09-06T16:56:06.423025 | 2015-07-04T03:19:43 | 2015-07-04T03:19:43 | 37,766,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | light.h | #ifndef _LIGHT_H
#define _LIGHT_H
#include "algebra3.h"
#include "geometry.h"
class Light: public Sphere
{
public:
void setLight(vec3 center, float radius, Material material)
{
this->center = center;
this->radius = radius;
this->material = material;
}
};
#endif |
a48d9e60f68108a512ad1795391ea96b6f239d3d | df4d21efdce50c65b830da5a64f553b7b0c48469 | /src/main.cpp | a540c85b905eb645c091c8c313865bec5fd55b90 | [] | no_license | bnewey/Nitrogen-Project-C- | 3cdaeea44f428a78000a6ba0631461442fb9164e | a926859bc21260c2a9ae34fb63dfe66173f988cd | refs/heads/master | 2022-09-25T16:12:37.319547 | 2020-05-05T17:24:32 | 2020-05-05T17:24:32 | 197,204,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,522 | cpp | main.cpp | //============================================================================
// Name : com.cpp
// Author : Ben Newey
// Version :
// Copyright : Your copyright notice
// Description :
//============================================================================
// C library headers
#include <stdi... |
dcfb6d9e167938b0ae7e7ad434056e709168ae68 | b76d0113616e254bf59ccbe6c85fbb7295d8acb5 | /src/caffe/layers/scale_inv_rmse_loss_layer.cpp | 6ffb6e30e85343ca212d4a428a214e9b959c86ea | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | micmancini16/caffe | dffd50bd764740c6b15203a3e9703e962e15f4c4 | f697d7fc98c215b00b8931f6f8ee529c9d98142b | refs/heads/master | 2020-07-09T06:41:21.275207 | 2017-01-11T12:04:48 | 2017-01-11T12:04:48 | 74,018,847 | 0 | 0 | null | 2016-11-17T11:04:02 | 2016-11-17T11:04:01 | null | UTF-8 | C++ | false | false | 5,557 | cpp | scale_inv_rmse_loss_layer.cpp | #include <vector>
#include "caffe/layers/scale_inv_rmse_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include <cmath>
#include <algorithm>
namespace caffe {
template <typename Dtype>
void ScaleInvRMSELossLayer<Dtype>::Reshape(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) ... |
5fa84b4ae9fea9c19640a7e5acdc9c7a8ffc39fc | 27fbab0c197e1072086610dc3731089142e856d6 | /code/framework/Utils.cpp | 7e6d676ac5f53c82a2e8069e4ad263ff813d7272 | [
"BSD-2-Clause"
] | permissive | TU-Berlin-CVRS/uipf | 59435cec863cbbd6e1c5c93e26a16c115ff31d83 | 57f4afcfdece904e82624453a938aafdfde8df41 | refs/heads/master | 2021-01-17T09:30:17.682911 | 2017-04-13T22:08:55 | 2017-04-13T22:08:55 | 38,701,010 | 8 | 6 | BSD-2-Clause | 2019-05-29T20:40:00 | 2015-07-07T16:37:37 | C++ | UTF-8 | C++ | false | false | 2,252 | cpp | Utils.cpp | #include "Utils.hpp"
#include <algorithm>
namespace uipf{
namespace utils{
// converts a string to lower case
/*
strToEat string, which has to be converted
*/
std::string toLower(const std::string& strToEat){
std::string strCopy (strToEat);
std::transform(strCopy.begin(), strCopy.end(), strCopy.begin... |
a707cafb003ea8322ba9ece3eb12f048a48ee32a | 9c2105527baf76f8afb6b8acbc2dc64beccfa99f | /src/editor.cpp | eb598ddb1530559ecb98814e45788d7adf16ddc2 | [] | no_license | Celissa/Legacy-Base | e52b28af987f9faa5000bb81a1ae008d83fee0c9 | 027553da16342c4e31cebf5eaad6925fbaa5d5a5 | refs/heads/master | 2020-03-27T19:53:53.498161 | 2018-09-01T17:38:53 | 2018-09-01T17:38:53 | 147,019,598 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,587 | cpp | editor.cpp | /*
* NOTE: Buffer Limit Unimplemented.
* Means you can overflow the MAX_STRING_LENGTH if you're not careful
*/
// made undo function
// save the reverse of every edit, eg note 23 sdf sdf - save 23 first
// note 22 sdf sdf, delete line 23
// note->html
// help->html
#include "system.h"
// -------------------- ... |
90c9a4d8438604c5d2ee2079d08a053cb7328fed | 40f23b8c92cc3e1dd4fef2de83e9e81afa320d01 | /src/InnerFun.cpp | a1d4688621f61382162d9c582188ec4f2fea236e | [] | no_license | cran/carat | 9c5f97e737a567d5e100e2b1dfe9d0ebbecba71e | 236f64f75d846cefeacccc4f612017c77ae84054 | refs/heads/master | 2023-05-10T06:58:20.528250 | 2023-05-01T05:30:02 | 2023-05-01T05:30:02 | 236,567,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148,679 | cpp | InnerFun.cpp | #include "RcppArmadillo.h"
// [[Rcpp::depends(RcppArmadillo)]]
#include <Rcpp.h>
#include <cmath>
#include <iostream>
#include <typeinfo>
#include <RcppArmadilloExtensions/sample.h>
using namespace Rcpp;
using namespace std;
/*
* GROUP-1: general functions (10 - 536)
*/
/*
* same:
* Judge whether two vector... |
0a98cc5c88677493c30301cb103fc42bd18369b7 | 04537c8780fbe4b65727fbf19502d622d767b2c3 | /primnode.h | cbc2c1c33b2cf55cd5d6add5fc6e51effcb56e55 | [] | no_license | aristeidismoustakas/Hashtable-comdined-with-Avl-Trees-in-c-plus-plus | 296b27b8fa56f8373942b00197ac79472a1094d4 | 2393151c2ff4144626f4d76874fa956a4ad24fb8 | refs/heads/master | 2020-09-19T10:45:25.484838 | 2016-09-11T13:44:56 | 2016-09-11T13:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | h | primnode.h | #include "node.h"
#ifndef PRIMNODE_H
#define PRIMNODE_H
class primnode
{
public:
primnode();
virtual ~primnode();
int thesi;
int value;
int color;
int prev;
int key;
node *deiktisfilwn=NULL;
int heapthesi;
protected:
... |
26e139bcd25e2fcfe5cbdb64029a249cf5339446 | 814fda3bc42d0b324b33c2cbb57cb4a327f71e96 | /lib/year2022/src/Day17Puzzle.cpp | df79ce1ddeb3653baa49d43fbaae7a5a4a70fd37 | [
"MIT"
] | permissive | MarkRDavison/AdventOfCode | 377591ce341e37ef2bffa563ccd596fdacc83b60 | a415f3311ad29a5ed2703113769b04b9614e7d57 | refs/heads/main | 2022-12-21T10:04:37.032919 | 2022-12-18T05:55:29 | 2022-12-18T05:55:29 | 162,899,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,644 | cpp | Day17Puzzle.cpp | #include <2022/Day17Puzzle.hpp>
#include <zeno-engine/Utility/StringExtensions.hpp>
#include <cassert>
#include <unordered_set>
#include <unordered_map>
#include <sstream>
#include <Core/Region.hpp>
#include <zeno-engine/Core/Vector2.hpp>
#define WIDTH 7
namespace TwentyTwentyTwo {
template<typename T>
struct vect... |
77b06ddfc3f5590ae663a90fb68f7434c8304237 | f0a199a5cd4e871d5063560862bf35b962337f40 | /login_page.h | 2cc9ba44ba75a03684a3b486fb9f9bca4b59d2c3 | [] | no_license | GOODSpeed0/CSC3002project | 86ac9556923d553096c42e3c271b8e5f29d8fea9 | 1877a7f5ad7c7b39dc68bd42b9824da8c7a632f6 | refs/heads/master | 2022-09-21T02:39:18.002206 | 2020-05-31T02:25:05 | 2020-05-31T02:25:05 | 268,191,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | h | login_page.h | #ifndef LoginPage_H
#define LoginPage_H
#include "F_code_library.h"
#include <QMainWindow>
#include <QCloseEvent>
namespace Ui {
class LoginPage;
}
class LoginPage : public QMainWindow
{
Q_OBJECT
public:
explicit LoginPage(QWidget *parent = nullptr);
~LoginPage();
virtual void closeEvent(QCloseEvent *... |
f8fa513fbbd5c14fe08351ae15e5260b7d0f01d3 | 8a4206be67123b78ed5ea4a20b74edf94675eb03 | /Scripts/FrameBuffer/FrameBuffer.cpp | 2fa7b5a99eee5911bd18cb03d6e307f99f013d4c | [] | no_license | wubochang/BCW_Render_Engine | 17337fba378c87738b0f4b49ddb4d6c1c155807e | ebd62eef08b629216188369f913799ea414736a3 | refs/heads/master | 2020-05-31T06:10:52.531019 | 2019-06-13T22:05:08 | 2019-06-13T22:05:08 | 190,136,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,685 | cpp | FrameBuffer.cpp | #include "FrameBuffer.h"
FrameBuffer::FrameBuffer()
{
}
FrameBuffer::~FrameBuffer()
{
}
void FrameBuffer::Initialize()
{
m_texture = new Texture();
m_texture->Initialize(GL_RGB, GL_RGB32F, SCR_WIDTH, SCR_HEIGHT, GL_FLOAT, NULL);
Initialize(m_texture, GL_COLOR_ATTACHMENT0);
}
void FrameBuffer::Initialize(Texture... |
015d48a14fb777fb74150bbe95d5dc98ade0d250 | 1bc5450e4763d097f4f72cf2b3c9ed9ede434a96 | /advCPP/smartHomeProj/ControllerSprinkler.cpp | 7b658f416ccf3fed79f241311bc5549532fd7474 | [] | no_license | itsboazlevy/Portfolio | 664ffdf394a9bfc29884cc65c6c84ab0f68d0a0a | daf9d3bd13331c2dea188c3f174596ac9dc18a19 | refs/heads/master | 2020-12-03T17:13:40.510502 | 2020-01-06T16:01:26 | 2020-01-06T16:01:26 | 231,403,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | cpp | ControllerSprinkler.cpp | #include <iostream>
#include "ControllerSprinkler.h"
using namespace std;
ControllerSprinkler::ControllerSprinkler (std::string _id, std::string _type, std::string _logName, std::string _config, size_t _room, size_t _floor)
: Controller (_id, _type, _logName, _config, _room, _floor)
{
}
void ControllerSprinkler::Run... |
aa953ec6593dfb83bb3417bbfb569003fb539422 | 73d9219baeaa0de26d235a21c0118f6f4ff5a4f3 | /ScilabPlugin/ServerPlugin/src/ScilabUpdater.h | f0fb55d4625144bb8e3acc8045be680adf4f8561 | [] | no_license | structure-computation/ScwalPlugins | c7ffd0a7993ae8622758c853968bd0abfb2a6355 | b8748823cd225c049165a9cf9ee1339b7e6fe3a5 | refs/heads/master | 2020-04-10T13:26:48.244120 | 2015-09-11T06:49:38 | 2015-09-11T06:49:38 | 6,760,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | h | ScilabUpdater.h | #ifndef SCILABUPDATER_H
#define SCILABUPDATER_H
#include <Soca/Updater.h>
class SodaClient;
//class QDataStream;
/**
*/
class ScilabUpdater : public Updater {
protected:
bool run( MP mp );
//void make_geo( QTextStream &geo, const MP &ch, double base_size );
//void make_geo_rec( QMap<Model *,QVector<int> >... |
f9535c9c1e9294ab5c0fcca0a7b0757b07383043 | f3f6814ba79d162ac56180d5cd7fba3b4f02984b | /trunk/runtime/lib/gc_common.cpp | be41e9e22ddce186573ad2e28a1f2b34c4fc1e4c | [] | no_license | tectronics/tart | 43c5162c3389ecc33b8cf5c82342ca327c2b14b7 | 68bd678586adf82376a5495df0a61dcf514db407 | refs/heads/master | 2018-01-11T14:51:51.364557 | 2012-01-20T05:35:31 | 2012-01-20T05:35:31 | 45,521,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,887 | cpp | gc_common.cpp | /* ================================================================ *
TART - A Sweet Programming Language.
* ================================================================ */
/* Tart Garbage collection common functions. */
#include "gc_common.h"
#include "tart_object.h"
#if HAVE_UNISTD_H
#include <unistd.h>... |
723c3642dd3e8707f671eb8bdf279b4d23048576 | d0936f19fd00b79705e7e27bb4d46d1f80f16d8d | /07/Vector.h | f02f7baa57acb1b1bcc230e5a73a756fbc79ebcb | [] | no_license | EvgenijGod/sphere_1sem_cpp_autumn_2019 | 9dba840d582a0836a13217a875bd1c2104261eda | c7051d39f1c83aa34f67ece113df1dbf90357384 | refs/heads/master | 2022-04-01T13:14:27.678881 | 2020-01-21T09:09:11 | 2020-01-21T09:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,045 | h | Vector.h | #include <iostream>
#include <cstdlib>
#include <iterator>
#include <limits.h>
//using namespace std;
template <class T>
class Allocator
{
public:
template <class... T1>
void make(T *tmp, T1&&... zizn) {
new(tmp) T(std::forward<T1>(zizn)...);
}
/*void make(T *tmp) {
new (tmp) T();
... |
5f0a332539530821c771a70b48ebe85f4e69f565 | 8994900baceb04936c3b0f7a9692f86666513fcd | /lib/Caca/src/DispCaca.cpp | 4123318dc7081ff59923657880b7314c9ef356b9 | [] | no_license | Wasta-Geek/Arcade | 34e9a85771ae2e0ba3fb5ccebe409cb8d70daf85 | 9052a467df6aa8c2f84192946f4f0969d05cb187 | refs/heads/master | 2020-05-25T23:33:55.497353 | 2017-02-20T15:26:46 | 2017-02-20T15:26:46 | 82,566,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,383 | cpp | DispCaca.cpp | //
// DispCaca.cpp for in /home/yuruh/rendu/cpp_arcade/lib/Caca/
//
// Made by Antoine Lempereur
// Login <lemper_a@epitech.eu>
//
// Started on Fri Mar 11 14:14:30 2016 Antoine Lempereur
// Last update Sun Apr 3 20:48:40 2016 Antoine Lempereur
//
#include "DispCaca.hpp"
#include "ModuleCaca.hpp"
DispCaca::DispC... |
3fe46f6ba00ca92b0d28a66d20dfed4c41cfb172 | 04f15913aca8a702efe47962bf82b60eedad73d9 | /Lib/Db/Event.h | 098401aa40e64fe8ff7ea2bd2b92f300d27fc344 | [] | no_license | DevilCCCP/Code | eae9b7f5a2fede346deefe603a817027a87ef753 | 9cc1a06e5010bb585876056a727abad48bca3915 | refs/heads/master | 2021-10-07T17:04:27.728918 | 2021-09-28T06:49:50 | 2021-09-28T06:49:50 | 166,522,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,593 | h | Event.h | #pragma once
#include <QMultiMap>
#include <QDateTime>
#include <QElapsedTimer>
#include "TableNamed.h"
DefineDbClassS(EventType);
DefineDbClassS(Event);
// ================================================
// event type
// --
class EventType: public NamedItem
{
public:
QString Icon;
public:
... |
996b60f515c0f9f910a68eb306aa14f2c8c8645c | 3aff7156207d7207ae84ff3870487509fa4a7ff5 | /sdasdasdasd 2 2/Classes/Native/ICSharpCode_SharpZipLib_ICSharpCode_SharpZipLib_Zi1011217589.h | 15843e7b5eab8e6a613cada4a5e3cbba7b7a1c12 | [] | no_license | huangliliu0917/iOS_wsl_mallbuy_for_vr | 080ea5512fff6ff4665efab1216d8544d621404e | 6f141c8cf255e655db38e1f98dda75a978dfe985 | refs/heads/master | 2020-04-07T10:07:55.773244 | 2017-08-08T12:23:42 | 2017-08-08T12:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,744 | h | ICSharpCode_SharpZipLib_ICSharpCode_SharpZipLib_Zi1011217589.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
// ICSharpCode.SharpZipLib.Zip.Compression.DeflaterPending
struct DeflaterPending_t558046012;
// ICSharpCode.SharpZipLib.Zip.Compression... |
2c33ac3181008943e036964aad54a0e96dde5fd3 | 802853a94d217b7937237b7fedebd29c71c7ac51 | /Dst2D0pi/src/Plotter.cc | c81072b071b62c4cce3e36b4375fb6b710c0aaf8 | [] | no_license | BlaiseDelaney/LHCbAnalysis | 7a019f979366eba7f58bc5fe3061405b0a977e82 | 8ee07d622e7df782b33f7f4ba68df5dd2aff784d | refs/heads/master | 2021-04-06T00:42:31.343354 | 2018-03-13T13:50:45 | 2018-03-13T13:50:45 | 124,939,078 | 0 | 0 | null | 2018-03-12T19:16:59 | 2018-03-12T19:16:59 | null | UTF-8 | C++ | false | false | 1,534 | cc | Plotter.cc | #include "Plotter.h"
#include "TMath.h"
using namespace std;
using namespace TMath;
Dst2D0pi::Plotter::Plotter(TString _name, const Variables_Analysis *_v):
PlotterBase(_name,_v),
v(_v)
{
normalise = true;
normalisation = 1.;
outfilename = Form("root/%sOut.root",_name.Data());
}
Dst2D0pi::Plotter::~Plotter... |
f16ed0bbd7222d28bd1da2cd4ce1d00dc89a72c4 | f0950fb52b421aaddb538c04e3a30805bbacc6e0 | /core/square.h | 82fa15608394cf9fdf7744368cf8868bfa4478c1 | [] | no_license | psocha/ChessEngine | 6873c50e384cc995354f972a2c794df5ed971f74 | 3e4cacd635b9cb9f48bfabbc0bb13dd88bba5d92 | refs/heads/master | 2021-01-20T03:15:07.932077 | 2018-04-02T01:22:24 | 2018-04-02T01:22:24 | 54,692,988 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | h | square.h | #ifndef SQUARE_H__
#define SQUARE_H__
#include <string>
namespace core {
struct Square {
bool is_real_square = true;
int rank;
int file;
Square();
inline Square(int rank, int file) {
is_real_square = rank >= 0 && rank <= 7 && file >= 0 && file <= 7;
this->rank = rank;
this->file = file;
}
... |
3e9d2843311cf56a647a64daf28847ef88f2de9a | c396dd9aae329e8ad3435e903d444ca674442cbd | /util/do_all_3d.h | 5b82eb4188feea7d47a1cc61891e7b2190cbbd60 | [] | no_license | ugovaretto-accel/gpu-blocking-composition | a9d9303f1c4ca24ff073c6e7db0cf20c508c90d3 | 1cb03c6b2a9992a23f2d5e6b3a440444f10188d4 | refs/heads/master | 2021-05-26T14:30:37.036930 | 2013-04-11T08:54:07 | 2013-04-11T08:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,833 | h | do_all_3d.h | #pragma once
#include <cuda_runtime.h>
template < typename T, typename FunT >
void do_all_3d_1_cpu(T* grid,
dim3 offset,
dim3 global_grid_size, //core space + 2 * offset
FunT f ) {
const int core_space_width = global_grid_size.x - 2 * offset.x;
con... |
cd5226762158c7e03d31104895aee911185adf4e | d0ad8a66f04fce39af58393df458d20eecbf756e | /aplcore/unit/engine/unittest_layouts.cpp | 8740eb49df8989d6277b90001f4fffcaf168b0a6 | [
"Apache-2.0"
] | permissive | alexa/apl-core-library | 894b17b2aa38bfef3f4df1f2fe2ba1037a89485d | e3a15ae5ad1b85bf7ab3de4bc2e9688dc554e060 | refs/heads/master | 2023-08-13T20:54:09.374712 | 2023-07-06T21:24:03 | 2023-07-06T21:45:49 | 209,385,722 | 35 | 16 | Apache-2.0 | 2021-04-16T17:45:30 | 2019-09-18T19:14:15 | C++ | UTF-8 | C++ | false | false | 16,527 | cpp | unittest_layouts.cpp | /**
* Copyright 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" ... |
71eba21dcf2f8bd69779e6318cabab5e9db8dc98 | c646e24639bdffd43972131c9ee4123dd65b3a81 | /TP/src/gui/model/CuadroTexto.h | 17adafeb061bee02bc53d29b9da990aabcd3d5f0 | [] | no_license | egenender/tp-taller-1 | 2b2d9e995a86acd81ec6e97ee4a461805b9d40b9 | 4c6f6c568812e89502babe9c42302e6597ad8a25 | refs/heads/master | 2016-09-05T12:36:57.774955 | 2012-12-21T14:54:14 | 2012-12-21T14:54:14 | 32,123,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | h | CuadroTexto.h | /*
* CuadroTexto.h
*
* Created on: 12/10/2012
* Author: nicolas
*/
#ifndef CUADROTEXTO_H_
#define CUADROTEXTO_H_
#include "ObjetoGUI.h"
#include <string>
using namespace std;
enum{
TODO = 0,
NUMEROS,
LETRAS,
NUMEROSYPUNTO
};
class CuadroTexto : public ObjetoGUI {
private:
string mensajeEscrito;
uns... |
0c59290231d33f9158e5e47e91e5991697afe058 | c5ca8f817997f2933d20bbcd4cfb016933bc9dad | /include/irr/asset/IImageLoader.h | b421147913237842bbb9edd9550617c19d1fc191 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | VisarBuza/Nabla | 0a873a5bd79f2e496ae7496afdd1203f44233f6c | 881deedeac39b6141d061756fa9b00951fb57f28 | refs/heads/master | 2022-12-25T02:57:47.612218 | 2020-10-07T18:54:15 | 2020-10-07T18:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | h | IImageLoader.h | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#ifndef __IRR_I_IMAGE_LOADER_H_INCLUDED__
#define __IRR_I_IMAGE_LOADER_H_INCLUDED__
#include "irr/core/core.h"
#include "irr/asset/... |
4d8350156fd302783e08464746728f7b6cf2fe89 | ccd9751ef0854752bf61736ac41dbdc77051bf0f | /044.BianryTreePosterTraversal.cpp | bf32f88092b2e0bd50089a93799e0a82b6b79623 | [] | no_license | xiabofei/leetcode | c9aba7b85563c76a5412e9bde4b95dc1f5d94aa2 | b82274e923fece0c2b217fa013e7bc43c6ad3033 | refs/heads/master | 2021-01-01T05:10:12.765711 | 2018-08-20T09:24:23 | 2018-08-20T09:24:23 | 59,093,377 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | 044.BianryTreePosterTraversal.cpp | #include <iostream>
#include <vector>
#include <map>
#include <stack>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root)
{
... |
77b588143940e0aa4774342f7dace7fef34c5bae | 1363f69a6f895026b38630ad567f4fb4462ecfc3 | /trackfragmentheaderbox.cpp | 5d85db4748ad38abd4afe9c336eab78bd3ded72f | [] | no_license | m-khomutov/debug-fmp4 | 5f3407174726840b33d29186505f06f97704b234 | f32325995d1b0a6f60b85f626eb4eea2c93408ff | refs/heads/master | 2023-08-06T16:28:51.860074 | 2021-09-22T15:19:56 | 2021-09-22T15:19:56 | 305,087,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,374 | cpp | trackfragmentheaderbox.cpp | #include "trackfragmentheaderbox.hh"
TrackFragmentHeaderBox::TrackFragmentHeaderBox( std::istream & is ) : Atom( is ) {
uint32_t tmp;
is.read( (char*)&tmp, sizeof(tmp) );
tmp = be32toh( tmp );
m_version = tmp >> 24;
m_flags = tmp & 0xffffff;
is.read( (char*)&m_trackID, sizeof(m_trackID) );
... |
1b35fa0557bc0befce145e390768bb7ab5170827 | 4367681ba7b4728d6a1b04381daebcbf63ce2991 | /c/src/countv2.cpp | cffb12c166b73cea4c624f447c604254e0886f5a | [] | no_license | a70838697/acm | 8201d139b1bec601bf2f128753ada772f40944a6 | 7b5f3806dbd96d6950a0c38f431ac3a1a0c2d6b0 | refs/heads/master | 2021-01-18T01:41:53.927507 | 2013-05-10T06:12:28 | 2013-05-10T06:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92 | cpp | countv2.cpp | int count(unsigned char c)
{
int num=0;
do{
if(c&1)num++;
}while(c>>=1);
return num;
} |
70742814cd13df535751cd06de7643bfccd04437 | ee6d19e7976f4c07b17004d326a4e1be4306990c | /atcoder/contest/209/not_equal.cpp | aabd34aeab31c84c925cc6353a6b7da11ffd1289 | [] | no_license | samahuja642/competitive-programming | b37eab547ac59ba6f4cdd9f4173fbfac9b46e292 | 031a7d38db557b4b6058af5d5e246543821011b5 | refs/heads/main | 2023-09-03T08:14:09.558871 | 2021-10-20T17:55:29 | 2021-10-20T17:55:29 | 350,995,005 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | not_equal.cpp | #include<iostream>
using namespace std;
#define m 1000000007
int main(){
long long n;
cin>>n;
long long c[n];
for(long long i=0;i<n;i++)
cin>>c[i];
long long product=1;
for(long long i=0;i<n;i++){
product = (product*(c[i]-i))%m;
}
cout<<product<<endl;
return 0;
} |
ba2d1e69a8d1c401268139702e0774920139dd3a | 7dc1ee882e3f2ba72089ee25b26a7c6ac9917526 | /Homework3/Task1/Point2D.h | 6dc7f6d5278358048ea4a96e1a4cf73c82ce2852 | [] | no_license | xMonny/Object-oriented-programming | 0cc92b81e754a264af7759e9e9cd43b8be4872f4 | f2451bc6fbbf98d674763259843028e2c9a4f960 | refs/heads/master | 2021-02-07T16:00:30.400040 | 2020-02-29T23:04:02 | 2020-02-29T23:04:02 | 244,047,970 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | Point2D.h | #pragma once
class Point2D
{
private:
double x;
double y;
void setX(const double);
void setY(const double);
public:
Point2D();
Point2D(const double, const double);
virtual ~Point2D();
virtual Point2D* clone() const
{
return new Point2D(*this);
}
virtual bool chec... |
5ab1da54601798efa3517ac32f592daf1be8b5b7 | 8a1d056a516831d99ccb4eb52053d1cffd97c9e9 | /src/gamed/game_module/achieve/template/achieve_premise.h | e4715eddb3d337eac40243ab09e677ca315fd088 | [] | no_license | 289/a | b964481d2552f11f300b1199062ca62b71edf76e | 43d28da99387ba225b476fe51bd7a13245f49d5e | refs/heads/master | 2020-04-17T04:22:23.226951 | 2018-03-21T14:17:08 | 2018-03-21T14:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | h | achieve_premise.h | #ifndef ACHIEVE_ACHIEVE_PREMISE_H_
#define ACHIEVE_ACHIEVE_PREMISE_H_
#include "achieve_cond.h"
namespace achieve
{
class AchievePremise
{
public:
inline bool CheckDataValidity() const;
AchieveID premise;
int8_t needed_cond;
AchieveCondVec cond;
NESTED_DEFINE(premise, needed_cond, cond);
};
// 内联... |
b77274f5b256860cf7167d19558f781b732120bf | 2aabe11f55e2c97e0eea591dee6c0ab85169c423 | /Homework/Homework 6/enriquez_erick6 (1)/enriquez_Point3D.cpp | 782609edfea9a76379dc74c04a4da8695d8326ce | [] | no_license | ErickEnriquez/CSE-240 | d57147b7f0a514654c925736e19e4d2d7846b471 | b643d198956df6e2dfbc6f1caf203240fd1c36f2 | refs/heads/master | 2023-03-03T02:04:15.917331 | 2021-02-10T17:11:37 | 2021-02-10T17:11:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | cpp | enriquez_Point3D.cpp | #include "enriquez_Point3D.h"
#include <math.h>// for the sqrt function
#include <iostream>// to overwrite the << operator
//default constructor
Point3D::Point3D() {
}
/*constructor with parameters*/
Point3D::Point3D(double xIn, double yIn, double zIn) {
this->x = xIn;
this->y = yIn;
this->z = zIn;... |
05193059225a3117bf47fc4c86decbc1e1e12037 | cb4b81269a528fb83ab4fbb376ec4df500aecbdd | /M993020047/M993020047/DCT.cpp | b7784f41b05041118b18d2a64b67a82cf0022f23 | [] | no_license | ShenTungHuang/ImageProcess | 28a7bc99fbcad81df0d094c5bd1c8a092f65190d | eec12621cac27d8f95d7a97289e8e5f57367a0cd | refs/heads/master | 2021-07-18T06:53:53.171729 | 2017-10-24T07:55:43 | 2017-10-24T07:55:43 | 107,843,401 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 12,391 | cpp | DCT.cpp | // DCT.cpp : implementation file
//
#include "stdafx.h"
#include "M993020047.h"
#include "DCT.h"
#include <iostream>
#include <vector>
#include <iomanip>
#include "string.h"
#include <fstream>
#include <cstring>
using namespace std;
// DCT dialog
IMPLEMENT_DYNAMIC(DCT, CDialog)
DCT::DCT(CWnd* pParent /*=NULL*/)
... |
eef1e58c0cc0a2307de848f6d6ea3b4e0e203ca5 | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 summer/二中集训/7.20 NOI net day2/center/center.cpp | 6e93e6b3393c893279e900f52f22bd96b912ec22 | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,269 | cpp | center.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cassert>
#define ll long long
using namespace std;
inline ll read(){
ll re=0,flag=1;char ch=getchar();
while(ch>'9'||ch<'0'){
if(ch=='-') flag=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9') re=(re<<1)+(re<<3)+ch-'0',ch=getchar();
r... |
4c183f6cbb0814ce6b05f2dd9d32cea8b00d10ce | 1d73ec58ea4119182606337de3e483351fa059c9 | /Chapter6-命令模式/remote/Remote.cpp | 768d269fd45a6c9bb6ff0410f4516d01e91fd3f6 | [] | no_license | ileiwang/Head-First-Design-Pattern | a6a22dc4ed3c1b6ee0c16c6492a2327e98dc359e | b11083a995159f9e51a5e7298fe6f2c986b591a3 | refs/heads/master | 2020-03-22T13:51:12.662001 | 2018-11-10T07:45:11 | 2018-11-10T07:45:11 | 140,136,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,409 | cpp | Remote.cpp | #include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
class Command
{
public:
virtual void execute() = 0;
};
class Light
{
string location = "";
public:
Light(string l){
location = l;
}
void on(){
cout<<location<<" light is on"<<endl;
}
void off(){
... |
04c9ff001e4c0e106a2d7a8752d8306ec61dd878 | 1f03b227567309177690c57327017387803b3e8c | /src/trace/entry/PayloadHelper.cpp | b7d012bc99355ab7706888a351e322c4ea1950ea | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | kotfranek/TraceLog | e9d2a0d1a25d4f6e6ff634cd4d53af4ff9e3d066 | 078f57b034dc80094d3abfb13cff57f38b4a524f | refs/heads/master | 2021-01-21T13:52:31.367761 | 2016-04-30T13:02:47 | 2016-04-30T13:02:47 | 50,214,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,428 | cpp | PayloadHelper.cpp | /*
* Copyright (c) 2016, Przemysław Podwapiński <p.podwapinski@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyrig... |
7736ec4d8665658f2df4d0e8c91351f65a5269da | b1d606a31eff48d614ce28143ccbe7679a541747 | /main.cpp | b813a8762bb88fa52c10996257aa361b0919f6ee | [] | no_license | alphonsa-01/ISBN | 2e8856cf650149a5c69a40ef9119977e6ecf8045 | 4558e869ceae67691e472776e71afc9bf92c0737 | refs/heads/master | 2020-07-22T02:14:27.699993 | 2019-09-08T01:21:48 | 2019-09-08T01:21:48 | 207,044,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,918 | cpp | main.cpp | #include<iostream>
const int k_min_input_value = 000000000;
const int k_max_input_value = 999999999;
const char k_newline = '\n';
const int k_mod_divisor = 10;
const int k_digit_eight_divisor = 10;
const int k_digit_seven_divisor = 100;
const int k_digit_six_divisor = 1000;
const int k_digit_five_divisor = ... |
fc56bfd90b52ef0b49227e02430a5483afb6baa8 | cf2e1d02a07b0d84e7ca2e3ca8f0fc670e3020f6 | /BOJ/class4/BOJ_11725.cpp | 6ac116b62d3baa28e1f8dacd8a823f7a2fa8c443 | [] | no_license | AeonFlor/Algorithm | 89974b067e05ede89b9c74fff96d54a53ee6ae3d | eec453e2a1855020b2c584a2e7877f87f9934b37 | refs/heads/main | 2023-02-22T05:35:06.436044 | 2023-02-17T17:08:53 | 2023-02-17T17:08:53 | 230,030,807 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | BOJ_11725.cpp | #include <iostream>
#include <vector>
using namespace std;
int N, s, e;
vector<vector<int>> tree(100000);
int parent[100001] = {0};
void link(int node)
{
for(int i=0; i<tree[node].size(); ++i)
{
if(tree[node][i] != parent[node])
{
parent[tree[node][i]] = node;
link(tree[node][i]);
}
}
}
int main(void... |
9ad9a660f93b786bd7a5ebb962fed60f12764604 | 115c5ee776f2bbeea89353d887bd27b02c7dd862 | /Internet AppWare Source Code/AW16_2/OBJECTS/RADGROUP/RAD.H | a8e2d1135b6dc9de1fc5e76d3271bcf7a258e9bb | [] | no_license | benbucksch/AppWare | f9a894140d6bc95d2d27f5ed7d8df51fc57b9709 | 321ced6e94030c25ba36c781dc92ddb7c2508c09 | refs/heads/master | 2020-07-12T23:31:34.160706 | 2014-10-08T17:17:07 | 2014-10-08T17:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | h | RAD.H | #ifndef _RADHEADER_
#define _RADHEADER_
#define RADIO_ITEMS_INFO 0
#define NUM_RADIO_DATAS 1
class EDIT_RADIO
{
private:
int version;
OBJECTID editID;
int numItems;
MEMBLOCKID itemsMID;
LPOBJECTID items;
HWND hWndDlg;
public:
EDIT_RADIO(OBJECTID id);
~E... |
a8f8e3c0b1f98efbeedbf1387553dafb15a743af | b2b69a74c46712b79b90ab48856ee19d45093ad9 | /coding-test/bamin/d.cpp | 45c47513e4658518760f36a36ea0bf0cc34873ee | [] | no_license | chartw/Algorithm | 2a9afbff58235c4fc1aebe70849feaed64616c46 | 4d62af24a86469d3e615908e1153f963852e2757 | refs/heads/main | 2023-07-02T04:13:10.277647 | 2021-08-10T18:15:43 | 2021-08-10T18:15:43 | 357,502,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | d.cpp | #include <iostream>
#include <algorithm>
using namespace std;
bool univ[101][101][101];
int r, n;
int temp;
bool ret;
bool findstar(int x, int y, int z) {
for (int i = x - r; i <= x + r; i++) {
for (int j = y - r; j <= y + r; j++) {
for (int k = z - r; k <= z + r; k++) {
if (x == i && y == j && z == k) ... |
73f4bafe591cc75020363b1c4f409192466ce826 | 8d0582605f54eed5211930221e7387e81541e6e5 | /X39577.cc | f6f4550c6bf6e6f2c6fe7d3e75ee6ed0b29fa462 | [] | no_license | antimonicre/PRO2 | 7a6ecf9f482a27a5c6e1af0e373511fd89fef3f0 | a32c769c77740ccfb048198335126427facd953c | refs/heads/master | 2020-07-29T12:54:24.662815 | 2019-09-20T14:56:49 | 2019-09-20T14:56:49 | 209,811,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cc | X39577.cc | #include "Estudiant.hh"
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int M, N, S, dni, pos;
cin >> M >> N >> S;
vector <bool> v(N,false);
//Vector de asignaturas que cuentan en la media (tamaño S)
for (int x=0; x<S;x++) {
cin >> pos;
... |
7baed2e6a97f449592485700997ce3d2921c6bf3 | 5acf1ae4da53444e562bbf2c3e1cacbe9231a75d | /RavenCode/goals/GoToCacheGoal_Evaluator.h | d4a93d05ff7b503feea1019012c7fcd98565f593 | [] | no_license | xKr0/Raven | ebf59c4b75524998215033dd0e9b21c3441d621e | d6bd7a31fcfb5fce24d8bac7ad67860edd953428 | refs/heads/master | 2021-08-23T18:03:28.229835 | 2017-12-06T00:50:57 | 2017-12-06T00:50:57 | 109,261,029 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | h | GoToCacheGoal_Evaluator.h | #ifndef RAVEN_CACHE_EVALUATOR
#define RAVEN_CACHE_EVALUATOR
#pragma warning (disable:4786)
#include "Goal_Evaluator.h"
#include "../Raven_Bot.h"
class GoToCacheGoal_Evaluator : public Goal_Evaluator
{
private:
Vector2D m_vCachePos;
// weapon cache
Trigger_TeamWeaponCache* triggerCache;
public:
GoToCacheGoal_Ev... |
e90344ae21491c9ab1f336249a2d76ca5d5259e3 | 9870e11c26c15aec3cc13bc910e711367749a7ff | /SGU/s_132.cpp | a98dcd441223bb9ed29d3e1c106e03423e274198 | [] | no_license | liuq901/code | 56eddb81972d00f2b733121505555b7c7cbc2544 | fcbfba70338d3d10bad2a4c08f59d501761c205a | refs/heads/master | 2021-01-15T23:50:10.570996 | 2016-01-16T16:14:18 | 2016-01-16T16:14:18 | 12,918,517 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,603 | cpp | s_132.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include <ctime>
#include <cstdarg>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <queue>
#include <set... |
36597f58fdde6cea2b58a39fb1ee2bbe78a6b679 | ffa4593e8acf309e5d50e8e49ef8ebfc1017784f | /Factorization_Of_Number.cpp | 51d38c7716be119500c359de9967e0bac8dd014f | [] | no_license | Rishab30Gupta/CodesCpp | e30e10cf5a08b56adb2f23c542fd5436df57d6ec | dc563a2b86328c7c3ea165adcfc3de3ca56fae3b | refs/heads/main | 2023-07-25T23:48:01.905766 | 2021-08-30T08:38:40 | 2021-08-30T08:38:40 | 391,638,114 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | Factorization_Of_Number.cpp | //smallest factor of a given number
const int limit = 1000005;
int spf[limit + 1];
void pre() {
for (int i = 2; i <= 1000; i++) {
if (spf[i] == 0) {
spf[i] = i;
for (int j = i * i; j <= 1000; j += i) {
if (spf[j] == 0) {
spf[j] = i;
}
}
}
}
}
vector < pair<int, int>>get_factors(int x) {
vec... |
c27c9023ae8e5799a72c066d4ed0a1f62b1eb893 | bc1c9d86ffd53dd886e189cd8da82096fae87ad6 | /tema4inicial_VS19x64/src/ListaDisparos.cpp | 4ae7829b22a42340dda809b0fcc389155e6fd77d | [
"MIT"
] | permissive | Alejandro-Casanova/Videojuego-Pang-Lab-IIC | c8f32e846e01d7262dcbee66f30cce8603b0b006 | 4a8336ff0f53dcfe3b99c4d0e48bf12afd4a73ab | refs/heads/master | 2023-05-30T12:20:25.079075 | 2021-06-16T15:29:03 | 2021-06-16T15:29:03 | 356,251,631 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,775 | cpp | ListaDisparos.cpp | #include "ListaDisparos.h"
#include "Interaccion.h"
ListaDisparos::ListaDisparos()
{
_numero = 0;
for (int i = 0; i < MAX_DISPAROS; i++)
_lista[i] = nullptr;
}
ListaDisparos::~ListaDisparos()
{
destruirContenido();
}
bool ListaDisparos::agregar(Disparo* d)
{
if (_numero < MAX_DISPAROS) {
for (int i = 0; i < ... |
007e262993f0055eabce9e1a4098d24aea9b0349 | 345e541494518a34eb04ffcf15b22137c0f81111 | /src/soundInfo.cpp | 919d84e5b69d8e3425fe71808c953cde449677a2 | [] | no_license | JustAnotherSoftwareDeveloper/MusicProject | 6f0570897323db1eb004a57030f5e1815740e052 | 69fd80b6dac0dbe318d10105d912a7ed5318bf06 | refs/heads/master | 2021-06-08T20:03:54.688513 | 2016-12-05T04:08:49 | 2016-12-05T04:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,548 | cpp | soundInfo.cpp | #ifndef C229IO_H_
#include "CS229IO.h"
#endif
#include "soundInfo.h"
/*!
* \brief Default constructor. Never Called
*/
soundInfo::soundInfo() {
filename=new string("in.cs229");
output=&cout;
}
/*
* Default Destructor
*/
soundInfo::~soundInfo() {
if (output!=&cout) { //I feel like deleting cout will result in a ... |
99b6697c155f862d8cea6e369457c3c69b22ce6f | 24c6c4c156800d03ccc444306af5010ae600d465 | /TJU/Accepted/3105_How to find primes_Accepted.cpp | f5582feb37364b7c09d2d442e58720307735389d | [] | no_license | RajibTheKing/ACMProgramming | 5e1ba7e4271b372ddd2e2cf417bd1bffe5cd838a | d89e94fc671c7138c97d4fb9d197d5abbca99f6f | refs/heads/master | 2021-12-14T01:33:09.537195 | 2021-12-05T19:58:17 | 2021-12-05T19:58:17 | 67,598,402 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | cpp | 3105_How to find primes_Accepted.cpp | #include<iostream.h>
#include<stdio.h>
#include<math.h>
int main()
{
int n, k[100000];
int a[100000], prime[100000];
int i, j, c=0;
for(i=0; i<100000; i++)
a[i]=i;
for(i=2;i<100000; i++)
{
if(a[i]==0)
continue;
else
{
prim... |
d4686603ce13d4f2ee67f940594d290b7d9e1aea | fd4510e0bf959de7527bd0c62d3b4fb3f78cee5e | /eigen/group/group5.cpp | 4304bc8024ecc2fe11dd50a0f7b167e26eff09a6 | [] | no_license | RuoAndo/nii-cyber-security-admin | 8dde8ab68b0f7fa882adbe8e828546aa1739e685 | e77b9d581e124f9fd5f721e18cd77d3bccecad19 | refs/heads/master | 2022-12-13T21:40:46.330389 | 2022-12-07T14:01:00 | 2022-12-07T14:01:00 | 71,614,880 | 5 | 1 | null | 2020-10-13T08:40:46 | 2016-10-22T03:41:30 | Python | SHIFT_JIS | C++ | false | false | 4,907 | cpp | group5.cpp | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <pthread.h>
#include <string>
#include <iostream>
#include <fstream>
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/SVD>
#include <random>
#include <map>
#include "timer.h"
#... |
2fc530c48906b92c0f6aab6d98e4342fab185666 | 96f7f7b81539cfe2e6c7aaa80c455203094ffbe1 | /linked_list/leetcode/430/cpp/sol_2.cpp | 03d2f6e8aea6ca7ddac46086f518ff91b2cfdc06 | [] | no_license | mickey9910326/code-pratice | e2049f1f87612a276fd555ef586fc375b89da3d3 | 592ef71122accd9022972eee753bc1683a60dd60 | refs/heads/master | 2023-04-25T12:08:01.267121 | 2021-05-17T09:27:07 | 2021-05-17T09:27:07 | 365,925,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | sol_2.cpp | /**
* @file sol_2.cpp
* @author LiYu87 (mickey9910326@gmail.com)
* @brief leetcode 430. Flatten a Multilevel Doubly Linked List
* @date 2021.05.12
*
* Time Complexity: O(n)
* Space Complexity:
* best is O(1) worst is O(n)
* avg is O(log(n)) ?
*
* n is nums of nodes
*
* Definition for a Node.
* class N... |
69d2130a9588a2b7783e379fc8327d20df550054 | 59dfcde29aa6f09dbc74df529278a22b1555c376 | /Level.h | dca3de28905145b3fdf90c36d440dd559a09d436 | [] | no_license | RodriguesMy/TheAgileProfessional | 844f1f9ed5df6cc70537e90ae1b9f5018ede9dc0 | 696c0a882f16e627fbc7bc2b0aa01f239632afaf | refs/heads/master | 2020-12-24T05:08:36.337494 | 2020-04-27T15:45:14 | 2020-04-27T15:45:14 | 237,379,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | h | Level.h | #pragma once
#include <fstream>
#include "Definitions.h"
#include "CGuard.h"
enum EPillarType {
typePillar,
typePedestal
};
enum EDoortype {
simple,
starting,
ending
};
enum EDoorState {
DOOR_OPENING,
DOOR_CLOSING,
DOOR_CLOSED,
DOOR_OPEN
};
struct DoorStruct {
IModel* model;
EDoorState state;
EDoortype... |
6870b263394f24765ff38892f48fdf549dddca99 | 88a698a52139ae542e78f7fd285ecd4e7b3e21aa | /impl/Dimmer.cpp | 711245ad7123648275d22c301611e3bc69af9f43 | [
"LicenseRef-scancode-other-permissive"
] | permissive | w5xd/plm | 4f757f234a5ee39cd52282a44758301ef8c1c40d | 4304c7f0c60f118a30052220532b30a54db006cb | refs/heads/master | 2022-11-18T07:52:55.548754 | 2022-10-29T19:21:29 | 2022-10-29T19:21:29 | 10,143,290 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,809 | cpp | Dimmer.cpp | /* Copyright (c) 2013 by Wayne Wright, Round Rock, Texas.
** See license at http://github.com/w5xd/plm/blob/master/LICENSE.md */
#include "Dimmer.h"
#include "PlmMonitor.h"
#include <chrono>
namespace w5xdInsteon {
Dimmer::Dimmer(PlmMonitor *p, const unsigned char addr[3]) :
InsteonDevice(p, addr),
m_val... |
ad6115b82c938cbb00effcec6685ce50c5011b0b | b6d945f08142f94af482c9cdadc7c445ff05e70d | /Week 6 Calculate Mark - Validation AND OR.cpp | 79472d4f6217fa51a9829e2cce02d7673fd094b4 | [] | no_license | MIBxMalekIsBack/C | a55051bc53b537d03ba3c026f908d2f78e2b80b7 | 4090e76c69eb7e4657e94c9aa654c69df2a68b5b | refs/heads/master | 2020-11-25T07:44:24.547342 | 2019-12-17T07:49:09 | 2019-12-17T07:49:09 | 228,561,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | Week 6 Calculate Mark - Validation AND OR.cpp | /*#include<stdio.h.>
void main()
{
int mark = 0;
printf("Your mark: "); //&& mean and(dan)
scanf_s("%d", &mark);
if (mark >= 0 && mark <= 100)
{
if (mark >= 90 && mark <= 100)
printf("Your grade is A\n\n");
else
if (mark >= 80 && mark <= 89)
printf("Your grade is B\n\n");
else
if (mark >= 7... |
3d88e380cfd8dea5cee5bcb577a7658a56084fde | c09ebc46121915ae9890c8ffbcf2efd80d287ebf | /Baekjoon/BFS_11724_conCmp.cpp | 8a1acc2bcc05ffa40d3ebf6d75d2be8502996d88 | [] | no_license | knh4735/Algorithm | 4ca19f5a6ccec423f12527faec0558d10ad187d5 | da5ee7ec4529ea0a62361e0076500e23429a9870 | refs/heads/master | 2021-07-15T04:46:35.206058 | 2020-05-22T08:45:27 | 2020-05-22T08:45:27 | 146,446,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | BFS_11724_conCmp.cpp | /*
11724 연결 요소의 개수 BFS
n개의 정점, m개의 간선이 주어질 때 연결 요소의 수를 구하기
입력 : 1 <= n <= 1000, 1 <= m <= n * (n-1) /2 \n ~간선의 양 끝점
출력 : 연결 요소의 수
*/
#include <stdio.h>
#include <queue>
using namespace std;
int n, m, cnt;
int isVisit[1001];
int net[1001][1001];
int main(){
scanf("%d %d", &n, &m);
for(int i = 0; i < m; i++){
int... |
ab7b227598cd7b1bf3bb21b72c8a1fed4135220f | 1864d6be0f28eea17d097aa94fb0a8f955fa21f3 | /Screen/Utils/src/screen/utils/ResourceManager.cpp | 8cffa9c2ac88723e7bc4f7ab879ba912c494083d | [] | no_license | sivarajankumar/screen3d | a1fd17011248da213fc53be5544fe4e7bcda2906 | 7c7fb5469f80ec8bbcd7202fc1913bb66bd21e49 | refs/heads/master | 2021-01-10T03:19:13.368011 | 2012-11-04T12:44:29 | 2012-11-04T12:44:29 | 49,218,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,080 | cpp | ResourceManager.cpp | /*****************************************************************************
* This source file is part of SCREEN (SCalable REndering ENgine) *
* *
* Copyright (c) 2008-2012 Ratouit Thomas *
* ... |
100da08dd7e668a1b193b7023956bf68070f5667 | d51cfbb2dd733d3ffb0f41fb082dc7353516930b | /Matrix.h | 707b8276c09447a1bf69a024e7cfe3c8471dbd4c | [] | no_license | nupam/Support-Vector-Regression | 8da7d103f2567c9c2ff47b21e53e69dbbdc17bde | 6ca7bd78c59f6792a0beb7a9d6fbc3925f002cb8 | refs/heads/master | 2020-03-25T19:20:44.217804 | 2018-08-20T20:17:46 | 2018-08-20T20:17:46 | 144,077,957 | 0 | 3 | null | 2019-10-08T15:38:17 | 2018-08-08T23:30:11 | C++ | UTF-8 | C++ | false | false | 2,501 | h | Matrix.h | /*
*constructors:
Matrix(int r=0, int c=0)---
creates a zero initialized matrix of order rXc
Matrix(double** m, int r, int c)---
create a Matrix object of order rXc, as repreented by double** pointer m;
Matrix(const Matrix& m)---
copy contructer: creates copy of the object
M... |
9822cf6d15c268280e22bbfc058256360329520a | 1333c422d83d7e39814bb9ded2e32de917076a74 | /Codeforces/Div 2/A/Sequence with Digits.cpp | d76f5c90be53c97a50020863354819f312e169f0 | [] | no_license | AbrMa/Competitive-Programming | d33abf4e68823b05b3ffa17d4b3594838567f0a4 | 47c0a52715b6d6eda9256945caf8c4ac868d6461 | refs/heads/master | 2023-08-03T02:13:10.140805 | 2021-09-29T03:20:37 | 2021-09-29T03:20:37 | 262,191,739 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | Sequence with Digits.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int minD(long long int n)
{
int minN = 10;
string s = to_string(n);
for (int i = 0; i < s.size(); i++)
minN = min(minN, s[i] - '0');
return minN;
}
int maxD(long long int n)
{
int maxN = -1;
string s = to_string(n);
for (int i = 0; i ... |
c8b0b599c1b81a790d15afda165bd3ce1b5f4a8b | d5c074a07b17ea5d3c54549374794ce7742f7a89 | /chaty/login_dialog.cpp | 98bed63424b3030f639f363a50d962ca84f99411 | [] | no_license | Dudedex/Chaty | 27246b5d6dbb47c8096a62b51c1be22c202c562d | 72e2d5f17313f03629845261fe6327a1df0d7edd | refs/heads/master | 2020-05-29T08:41:07.900918 | 2016-10-15T16:24:00 | 2016-10-15T16:24:00 | 69,948,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,484 | cpp | login_dialog.cpp | #include "login_dialog.h"
#include "ui_login_dialog.h"
LoginDialog::LoginDialog(MainwindowController *controller, QWidget *parent) :
QDialog(parent),
ui(new Ui::LoginDialog)
{
ui->setupUi(this);
setWindowTitle(QString("Login"));
if(MainwindowController::shouldWindowFrameBeHidden()){
setWind... |
3bb69dac4e339dfa1985197b2b32f5777c97ac81 | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/code-jam/files/4224486_Christinass_6377668744314880_0_extracted_CC.cpp | 830dccca0db9af3b4bf2089cace4d5276b3cec91 | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 2,478 | cpp | 4224486_Christinass_6377668744314880_0_extracted_CC.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#define MAXN 20
typedef long long ll;
struct Point {
ll x, y;
}point[MAXN], npt[MAXN], plo[MAXN];
ll dlcmp(ll x) {
return x < 0 ? -1: x > 0;
}
ll cross(Point a, Point b, Point s) {
ll x1 = a.x - s.x, y1 = a.y - s.y;
ll x2 = b.x - s.x,... |
9e9539c05bf404486a91c40fe80966d08e8af65b | 74af4094371b6661821a69c1e80008a1a10b88f0 | /tests/features/base_features_test.cpp | 7f89661de064b130a7aba9b4691eb03639ba31dc | [] | no_license | Alian416/bcm-server | 82a93ba44196789938effcbfd7359c6cd8371189 | 289e5bc7c130617b910a272d071bfcb7efd6f407 | refs/heads/master | 2023-03-12T07:51:29.723137 | 2021-03-03T23:33:22 | 2021-03-03T23:33:22 | 344,285,434 | 0 | 0 | null | 2021-03-04T00:30:43 | 2021-03-03T22:50:59 | C++ | UTF-8 | C++ | false | false | 2,631 | cpp | base_features_test.cpp | #include "../test_common.h"
#include "features/base_features.h"
#include "crypto/hex_encoder.h"
#include <vector>
#include <string>
using namespace bcm;
TEST_CASE("BaseFeaturesTest")
{
BaseFeatures features1(64);
REQUIRE(HexEncoder::encode(features1.getFeatures()) == "0000000000000000");
REQUIRE(features... |
2e6ede51230fb3a3f2ee533563820243ec1b05b5 | 5c268bc561b42255d23d5435235b341d7d7d9f7e | /src/syncAgentImp/syncAgentLoop.cpp | 1625d9af19b38ef82c8fba7b6550c6f5d86d298a | [] | no_license | bootchk/sleepSyncAgent | afb26a88fa58b6bf1b7b03f2eaa968da33888e7d | 756f20e67bec1d9935b415fdb90662864a7a45d2 | refs/heads/master | 2021-01-20T20:56:37.324844 | 2018-04-30T19:12:09 | 2018-04-30T19:12:09 | 65,410,662 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,199 | cpp | syncAgentLoop.cpp |
#include "../syncAgentImp/syncAgentImp.h"
#include <cassert>
#include "../globals.h" // clique
#include "../scheduleParameters.h"
#include "../modules/syncPowerManager.h"
#include "../work/workIn.h"
#include "../slots/fishing/fishSchedule.h" // logging
#include "../logging/logger.h"
#include "../logging/remoteLo... |
ff579f2fcb9841be8b3be61323cb191eb129efed | c7d3b85d020a8733cc04957c5ff8d7605d713c54 | /CPPP/imap.h | 8cb2f07c6f3d7c542307a6dd01a206c42f872d41 | [
"MIT"
] | permissive | tenpre/CPPP | aef97157cce489a6a45e66919207557732884071 | af950908b9b20721ed57ba223415686e596ff8de | refs/heads/master | 2021-01-01T17:15:48.163592 | 2015-06-09T16:31:01 | 2015-06-09T16:31:01 | 37,141,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | imap.h | #include <map>
namespace cppp
{
template<class _Kty,
class _Ty,
class _Pr = std::less<_Kty>,
class _Alloc = std::allocator<std::pair<const _Kty, _Ty> > >
class IMap : public std::map < _Kty, _Ty, _Pr, _Alloc >
{
private:
std::pair<const _Kty, _Ty> __atIndex(int index)
{
if (this->begin() == this->end())... |
2a3df874d41397ed2e185c7e1d7cff317286cca7 | d4be795851d62262452d42111b2eb4e98fb7af67 | /Johan/Labb3/1_re-done.cpp | 417b99936bb0ea79770c15f7ef4a7afb50833d20 | [] | no_license | jwanglof/TDP004 | b4ccd9007d0055b73ec1fa7447a470d4506f230f | ca1bef3eb3c8359e86d2ec8ede1f1a3bcd32638b | refs/heads/master | 2021-01-02T22:18:02.071809 | 2011-11-30T13:14:09 | 2011-11-30T13:14:09 | 2,641,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,006 | cpp | 1_re-done.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
bool myfunction(float i, float j) { return (i < j); }
bool checkFileExist(string fileName)
{
ifstream fileExist;
fileExist.open(fileName.c_str(), fstream::in);
if(fileExist.good())
{
fileE... |
b33fd77c67d13c42129df07d8411b4fe7a4ed569 | 64732dfaeb3efb781db6e894bebfe23d627278e7 | /LoganEngine/old/lGooey/lGooSvg/lGooSvgElements/lGooSvgCircle.h | 55fd0ae9d59777be12532361990d7d816374855b | [
"MIT"
] | permissive | sereslorant/logan_engine | b791f843a36bd19caa4cc97dc4ec102a37cb650a | a596b4128d0a58236be00f93064e276e43484017 | refs/heads/master | 2020-05-21T19:41:45.676116 | 2018-01-28T10:25:43 | 2018-01-28T10:25:43 | 63,418,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | h | lGooSvgCircle.h | #ifndef L_GOO_SVG_CIRCLE_H
#define L_GOO_SVG_CIRCLE_H
#include "lGooSvgShape.h"
#include "../lGooSvgAttributes/lGooSvgCircleAttributes.h"
class lGooSvgRoot;
struct lGooSvgCircle : public lGooSvgShape
{
private:
lGooSvgCircleAttributes CircleAttributes;
liGooObject *NewObject = nullptr;
//liGooCircle *NewCircle =... |
3d5d32472bb3ed858c4819cb21367146edd41f08 | 9f27905050f0ac119e94cde3f74fd2329a092936 | /textInstrument.cpp | 8799a5dfd44199a19cfc2015b1c8dd27db397c74 | [] | no_license | OluwafemiPaul/SimplePaint | 78cc44217c3fd986f35883a67aa9dee9487ade34 | 0cecb6c8fa87a7d8e107339d5f91c13081433f5c | refs/heads/master | 2021-05-04T10:39:05.746296 | 2015-05-21T12:14:52 | 2015-05-21T12:14:52 | 36,010,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | textInstrument.cpp | #include "textInstrument.h"
#include <qdebug.h>
TEXTINSTRUMENT::TEXTINSTRUMENT()
{
mText = QString();
}
void TEXTINSTRUMENT::setPoint1(QPoint p1)
{
qRect.setTopLeft(p1);
//qDebug() << "point 1";
}
void TEXTINSTRUMENT::setPoint2(QPoint p2)
{
qRect.setBottomRight(p2);
//qDebug() << "point 2";
}
v... |
6f1678d7b0207451c1f91c4c2fc35fd919ed3852 | 97c211320795bd62240247bfcc577fbc419542fa | /WhatBox/cFX_Shake.h | e9785f07bba36e1f01833074e01b2e7c77cc4288 | [] | no_license | NeuroWhAI/Biogram | 855c6fd4a25739aa5c416f4824cc7339d95da251 | 7e534514220673cb1971469e7b0559da3805d267 | refs/heads/master | 2021-01-17T06:01:30.016073 | 2016-06-19T05:19:30 | 2016-06-19T05:19:30 | 48,879,071 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 668 | h | cFX_Shake.h | #pragma once
#include "cFX.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////
// Name : 흔들림
// Desc : 사진이나 카메라가 흔들림
///////////////////////////////////////////////////////////////////////////////////////////////////////
class cFX... |
c61151ca66d8d9970e4bafe9f43e30c6578f0570 | 0343d7e51cf4ee9ca8cfd786552bf2699295a9e7 | /Vision_example/ntcore/Robot/Robot.h | 9a99f401b721fe7a2cb1ecf075525019a9a533dd | [] | no_license | Team5553-RoboLyon/Raspberry-Vision | a0b1394c8382f907ea2f6878c9f33c9aa7becd5e | f1c41113eb60439eed0b0b8a11865ffc7a982983 | refs/heads/master | 2020-03-22T05:46:26.624255 | 2019-01-20T18:27:34 | 2019-01-20T18:27:34 | 139,589,089 | 0 | 1 | null | 2018-12-27T20:01:42 | 2018-07-03T13:39:52 | C++ | UTF-8 | C++ | false | false | 991 | h | Robot.h | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
691f5a8d926161875fa618cbc8f46e6840de9d3b | cf18105e40b4fc07d7eeb9ad4f1dc28005d5bcf1 | /Graphics/texture.h | def83638d7be4367885157a21f95e5ed7ba4af6f | [
"MIT"
] | permissive | XZelnar/GameEngine | 5d49592ad9a6f1ad5aab50b70405979daaf12eab | cb28f6046249e77e30d5e3526f9f0a1fe7f3ef8f | refs/heads/master | 2016-09-05T16:34:53.837125 | 2015-09-09T22:02:23 | 2015-09-09T22:02:23 | 41,175,546 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | h | texture.h | #pragma once
#include "../stdafx.h"
class Texture
{
public:
Texture();
Texture(ID3D11ShaderResourceView* _texture);
void Dispose();
ID3D11ShaderResourceView* GetTexture();
void ApplyTexture(int index = 0);
const wchar_t* GetFilename() { return filename; }
public://static
static Texture* LoadFro... |
0057b9dbf5fad6332b2dcb5f5e5b2797514300f9 | b119985947af8353fdde0eef5e75e925b2c618aa | /source/world.h | 9cb209d1b8acb8984ac59c7880802482144a92a5 | [] | no_license | tsworman/DinoEgg-DS | 03c15bacebfd972b76008d839a3e58a9c5c41dea | e4c1fce345d9f6a5afec448d66c30b45409bfc24 | refs/heads/master | 2021-01-19T09:40:46.814212 | 2017-02-16T03:22:54 | 2017-02-16T03:22:54 | 82,133,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,186 | h | world.h | /***********************************
* World.h
* By: Tyler Worman
* Email: tsworman@novaslp.net
* Summary: An encapsulating world class
*/
#ifndef _WORLD_H
#define _WORLD_H
#include <nds.h>
#include "timer.h"
#include "object.h"
#include <stdlib.h>
#include <time.h>
#include "rngs.h"
#include "rvgs.h"
//neede... |
6fdb980bdc891ed1eba8002e39adb4b3bfe4ab6d | 3df6bff4f32aa56097f7c4c5e39837cafe8ca54f | /concentrator/Concentrator/sensors/tests/CSensorsManagerMock.cpp | 940a2b2c206332da59a34c9640a1a7e403bed067 | [] | no_license | rafalo235/monitoring_hal | 2275737d40d51507810a3e40cb0596fdb47723e7 | 4b64a36745f2abbbd9c6975005cd95aee091eb2d | refs/heads/master | 2021-01-23T20:50:19.326656 | 2014-07-09T14:29:35 | 2014-07-09T14:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33 | cpp | CSensorsManagerMock.cpp | #include "CSensorsManagerMock.h"
|
52b2e776cc39283b05faa3c1c14da9daaa0d9e37 | 8f3207a96979f618c5d0ae76e866957fd036b1d1 | /Classes/UI/UIUtils.cpp | dc0347df71bd66e65b7db7fb7abb717889374c98 | [] | no_license | yonghengshikong/Cocos2dxEffectEditor | 2bc8949d334c0273a2c3d1a210590911ced52825 | 3be572dc397dd31fd119deaab8f4226cf3166fa0 | refs/heads/master | 2023-08-31T00:55:54.567465 | 2019-09-05T01:59:12 | 2019-09-05T01:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | UIUtils.cpp | #include "UIUtils.hpp"
NS_EE_BEGIN
void UIUtils::showContextMenu(Vector<Button*> &buttons)
{
int counter = 0;
for (auto button : buttons)
{
button->runAction(Sequence::create(DelayTime::create(0.02f * counter), Show::create(), NULL));
counter++;
}
}
void UIUtils::hideContextMenu(Vector<Button*> &buttons)
{
... |
6eaa57d6d43bdf347dff26ef5a739c6f379af4cb | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_586_last_repos.cpp | 1d2b238a675b322148852a1682aff4ce8c4914ef | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | squid_repos_function_586_last_repos.cpp | void
commStartTlsClose(const FdeCbParams ¶ms)
{
Security::SessionSendGoodbye(fd_table[params.fd].ssl);
} |
a60ac7914608cf0d8730e5b283e87444f7106e05 | ab4e165db6f0e65c582c39de40754f088618cb39 | /arduinoDew/arduinoDew.ino | 444d318a18fbd50d55cfd5ba823511f4509eb9d7 | [] | no_license | fiidew/moplantnew | 2e5862922c68cdf7973d7ebf60f2b72dd4b3dde6 | 5353224933cd5d8e59f3ad8f87f4625b2e8134da | refs/heads/master | 2023-01-08T16:58:49.943329 | 2019-07-17T19:40:18 | 2019-07-17T19:40:18 | 196,237,874 | 0 | 0 | null | 2022-12-22T05:20:07 | 2019-07-10T16:14:10 | Vue | UTF-8 | C++ | false | false | 13,257 | ino | arduinoDew.ino | #include <SoftwareSerial.h>
#include <stdlib.h>
#include <dht11.h>
//ESP8266 TX is connected to Arduino Digital Pin 8
#define ESP8266_TX_PIN 8
//ESP8266 RX is connected to Arduino Digital Pin 7
#define ESP8266_RX_PIN 7
// Rx , Tx
SoftwareSerial WiFi_Serial(ESP8266_TX_PIN,ES... |
cb951a41fccde0ddbc3100b19b1d895be2a53286 | 7ee87db11359f665206a7f2a46c4eaee1ab1b5f4 | /Base/main.cpp | cab21a7c291626a4f6b85d2973c71ea2768d6c5b | [] | no_license | kbjjun0707/ImageProcessing_with_Opencv_ | f7cd57983dda81727724a31007da5d9389061c07 | 8d74c8aa9a8707d27857abd54eac35fa69207fbb | refs/heads/master | 2021-01-19T23:42:15.996000 | 2017-06-09T02:53:08 | 2017-06-09T02:53:08 | 89,020,364 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,318 | cpp | main.cpp | /*
기본적인 이미지 로드, 저장과 화면 출력
*/
#include <opencv2\opencv.hpp>
#include <opencvLibs.h> // 개인 설정
#include <iostream>
int main() {
cv::Mat m_Img = cv::imread("sample.png"); // 이미지 불러오기
// cv는 BGR의 이미지 채널을 사용
// 한 채널의 크기는 8U(unsigned char)이고 변형 가능하다. (cv::Mat의 속성)
// origin의 이름을 가진 윈도우 만듦
cv::namedWindow("origin");
... |
8371db493594789a2fd2e7a1386a5e63f11ea6d6 | 68c7a52a3ebed35730308df2f262f86e7dadca49 | /cgi-bin/core/rulecmp.c | 242905314e9c2bfea05e6c488b4b6f6da46982a6 | [] | permissive | iskander-hr/wpkbd | 8d28ee1c7644d9e29b8280a5e8be9de066d1005f | f787e7afd835a70ff93e66c44f2a7fb04a5cdbc4 | refs/heads/master | 2023-02-10T15:29:28.910940 | 2020-03-27T03:17:06 | 2020-03-27T03:17:06 | 250,427,881 | 0 | 0 | BSD-3-Clause | 2023-01-31T02:31:32 | 2020-03-27T03:08:05 | C | UTF-8 | C++ | false | false | 25,915 | c | rulecmp.c |
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.30 08/22/14 */
/* */
/* ... |
35638a1413daf7fe3587f92cda6b038ba04f5b08 | f1bd6da6bfc2cb5172cae3057758afd69ed27453 | /median.cpp | 4065ef18d9d77835b4b49dd8a4b874fb4f2ab976 | [] | no_license | kdas6141/CPP | a4ca0e201bab9ba31d8d107b50259677cf151280 | df961ba3ae7f04b555ab9e2e61623f92880cfb1c | refs/heads/master | 2022-11-18T05:05:06.774118 | 2020-07-26T17:28:44 | 2020-07-26T17:28:44 | 268,903,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | median.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
vector<double> OnlineMedian(vector<int> &nums) {
//min heap stores larger half seen so far
priority_queue<int, vector<int>, greater<>> min_heap;
//max heap stores smallest half seen so far
priority_queue<int, vector<int>, less<>... |
7a0e542296616d1f023fe19853057cd766237774 | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/cpp/echomesh/color/Recolumn.h | 0ec67b28ad9d5017b7353c5df81ae997fe29a88f | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | Recolumn.h | #pragma once
#include "echomesh/base/Echomesh.h"
namespace echomesh {
namespace color {
class FColorList;
void recolumn(FColorList*, int oldColumns, int newColumns);
bool mustRecolumn(int oldColumns, int newColumns);
} // namespace color
} // namespace echomesh
|
9a942d9efaaa30839648746df47de4e52509d4d3 | 032ae7c17ff424c83ca077e83fcd3f4363d81e6b | /ExtendedAPI/OpenNI-Extension-2.3.0.55/linux-arm64/ExtendedAPI/main.cpp | bd077b7db20b8dfc9bb89d4f0d71e676ab395da1 | [] | no_license | lysenkoivan/orbbec3d-openNI | c92a0b14f80b35c97b78e711e69d55f80b6655d2 | 31ed8bd6411529c8beb900aeb971a8c60df82fc6 | refs/heads/master | 2022-12-29T15:05:56.080559 | 2020-09-15T17:00:31 | 2020-09-15T17:00:31 | 295,793,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,802 | cpp | main.cpp | /*****************************************************************************
* *
* OpenNI 2.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* ... |
2e0bf0a5efa0f58d8d212193fc893f8480ef177d | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /OCC/opencascade-7.2.0/x64/debug/inc/BRepMesh_FastDiscretFace.hxx | 76b00e1914d75028e6e350247d1824b666370735 | [
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | C++ | false | false | 8,226 | hxx | BRepMesh_FastDiscretFace.hxx | // Copyright (c) 2013 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... |
c423411c870f2f077aa50f9e277e62c17dcbdf67 | 7e8d135d41ba27078bd51c4980252b6ce63d9be9 | /01_Math/01_NumberTheory/02.01.05.01_is-prime.miller-rabin.probablistic.hpp | 59ccd0e1588837031d59c267307e6e01ee505616 | [] | no_license | legosuke/lib | db4cf760cb9824a64c63bcf2f730796f25deff3d | 04f4f230845158d816877adf8d1e76d0f7b1ce30 | refs/heads/master | 2023-07-07T12:28:42.672454 | 2021-08-13T07:17:58 | 2021-08-13T07:17:58 | 321,906,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | hpp | 02.01.05.01_is-prime.miller-rabin.probablistic.hpp | #pragma once
#include <cstdint>
#include "../02_Combinatorics/01.03.02_mod-pow.big-mod.hpp"
#include "../../06_Others/04_Random/01_random-number.hpp"
/**
* @brief 素数判定 (ミラー・ラビン、確率的)
* @note O(k⋅log³(n))
* @attention 誤判定する確率は 4⁻ᵏ
*/
bool is_prime(std::uint64_t n, std::uint32_t k = 20) {
if (n == 2) return true;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.