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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58dcb09a7297effb89c9b48cae9edb6233ca61ad | b93cda7e5d90fb5a84c24603619671c1767ba3dc | /pku/1026/2278549_AC_281MS_188K.cpp | bc67102170c043fe2116f4f23250c8045a9893c0 | [] | no_license | denofiend/acm | e7008ff49bf6bea0042dabf94bbae05ebc28fe8a | 409910ca43c888c0e2734699f982ff67b6613699 | refs/heads/master | 2022-11-23T14:51:02.445949 | 2020-07-31T11:42:24 | 2020-07-31T11:42:24 | 284,022,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | cpp | 2278549_AC_281MS_188K.cpp | #include <stdio.h>
int main(){
int n , k , pos[201] ;
while( scanf( "%d" , & n ) && n != 0 )
{
for( int i = 1 ; i <= n ; i ++ )
scanf( "%d" , & pos[i] ) ;
char * cp = new char[ n + 1 ] ;
char * res = new char[ n + 1 ] ;
while( scanf( "%d" , & k ) && k != 0 )
{
for( int j = 0 ; j < n ; j ++ )
cp[... |
c979cbbceb93fdd46956b83088049dd6cdb2da05 | 7a8fe8f993a36b6fe5512558e67c6fc717a85f24 | /psnr.cpp | c0860dfe7b1821be59c0b3ae629b9e3eba923aa9 | [] | no_license | highwy/GaoGuangPu | fafaf79612e732d9e313a3408592be533785eed0 | 82b91670c1ee87d2350d7b2dd7a4246c3cdf59b0 | refs/heads/main | 2023-03-17T05:05:10.578509 | 2020-10-05T05:23:18 | 2020-10-05T05:23:18 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 659 | cpp | psnr.cpp | #include "psnr.h"
#include "Windows.h"
#include "stdio.h"
#include "math.h"
double caculate(rBYTE* image1, rBYTE* image2) {
double mse = 0.0;
double temp = 0.0;
for (int i = 0; i < 512 * 680 * 224; i++)
{
//temp = temp + (image1[i] - image2[i])*(image1[i] - image2[i]);
temp =... |
ff2c67c3fac1dfb0d4cae878e62190035725043e | e7ba008314a1b02a89915ab339a62467d355ba50 | /04-Collision/Skeleton.h | 684c34bc81041fce416a983ba5285f7e75b3d53d | [] | no_license | caoluyennguyen/Castlevania-Game | a957d85e6a2fbe871b27a47e23edf870fa6c09cc | 43be3630b9cbf396f76f5515fc1793eb8ae79eee | refs/heads/master | 2021-03-24T02:30:48.303294 | 2020-10-04T08:12:12 | 2020-10-04T08:12:12 | 247,507,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | Skeleton.h | #pragma once
#include "GameObject.h"
#include "Weapon.h"
#define SKELETON_BBOX_WIDTH 32
#define SKELETON_BBOX_HEIGHT 64
#define SKELETON_STATE_IDLE 0
#define SKELETON_STATE_WALK 1
#define SKELETON_STATE_DIE 2
#define SKELETON_THROW_BONE_DELAY 2000
class Skeleton : public CGameObject
{
int move = 1;
bool isWaitin... |
bdbe82ae0c456a927ffd46df4759c8f85e47faf0 | 7fa7330c8279b22db538c27a027cf40efad1092f | /ExeParser.h | a27efc32ac2975a1e01fcb1482df54f0cb60bc69 | [] | no_license | andrewrk/Secure-WordVault | 1483626ffe622c7f98865daac4fa9fd6e3dd4c88 | 408de2c1ec7e119d253336c5ebd07f4a60793d7f | refs/heads/master | 2023-03-13T07:13:14.609768 | 2010-04-29T00:12:55 | 2010-04-29T00:18:06 | 605,539 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 559 | h | ExeParser.h | #ifndef EXEPARSER_H
#define EXEPARSER_H
#include <QFile>
class ExeParser
{
public:
// get the document out of an EXE. size of 0 means no document
static QByteArray read(QString exeFile);
// (over)write a document into an EXE.
static void write(QString exeFile, QByteArray document);
... |
d20b00841a49435865452eedc2d7324793ce2041 | 3281ea28e8646b1776c0b4f0b73d0af4d7aa5d70 | /as2/part1/pic_viewer.h | 1485289a58ccc7ab6eb42ada708e54cbc3b6a014 | [] | no_license | lernerc/3770 | 64745540e028761b463b594a833e736a2b8c7941 | a4e1e2fc59fa373ef436f47b647d787008304a82 | refs/heads/master | 2021-01-01T06:05:36.102797 | 2014-04-04T04:25:27 | 2014-04-04T04:25:27 | 16,365,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | h | pic_viewer.h | //*****************************************************************************
// Name: Camara Lerner
// SN: 001150339
// Class: CPSC 3770
// The header for PicViewer for assignment # 2 part 1
//*****************************************************************************
#ifndef PIC_VIEWER_H
#define PIC_VIEWER_H
#i... |
fe821840045fb89605bee2e391a867f872132fa5 | 0af6a4592d013e4b563e25a58f62f4cf77a74a2c | /adrenosdk-linux/Development/Tools/FbxModelConverter/FilmboxManager.h | 2afffe75dc06b30577172b3ac1a0e54ce7b2f106 | [] | no_license | sunzhiyuan/opencl | b03f8deb4034f254245d6d40b6cd06acbb89d1bd | 9e0e9a46b4ec1e336eecd4f4d167f69e04b26dbc | refs/heads/master | 2016-09-10T02:08:07.636786 | 2014-12-12T05:12:39 | 2014-12-12T10:41:43 | 27,906,253 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,566 | h | FilmboxManager.h | //-----------------------------------------------------------------------------
//
// FilmboxManager
//
// Copyright (c) 2013 QUALCOMM Technologies, Inc.
// All Rights Reserved. QUALCOMM Proprietary/GTDR
//
//-----------------------------------------------------------------------------
#ifndef MCE_FILMBOX_MANAGE... |
e3f6aef0c425e8d2af58c6ae43608feb1f224771 | bd930733e6790046ee3da935ed6a1c35f8795f16 | /wallet/test/db_tests.cpp | ece065c7e3323bb1b202decaa6c365d4e1af4831 | [
"MIT"
] | permissive | RabbiSpace/neblio | 9f2dd5229970a7b90498a1f705241ee780d10f0a | 70c6b31160ae9b336647d845248ec0cc074c8862 | refs/heads/master | 2023-03-12T09:46:01.131277 | 2021-02-17T13:55:47 | 2021-02-17T13:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,809 | cpp | db_tests.cpp | #include "googletest/googletest/include/gtest/gtest.h"
#include "curltools.h"
#include "hash.h"
#include "ntp1/ntp1tools.h"
#include <boost/algorithm/string.hpp>
#include <fstream>
#include <unordered_map>
#include <unordered_set>
const std::string TempNTP1File("ntp1txout.bin");
std::string RandomString(const int le... |
bda3fae422c6946cce9e10aa826213a7a06bafe2 | c1aa912bdd55d03c7313eaa0084656095778019d | /man.h | 6814b7cc7c87fb1c85aa2b3b90617219c9618c5e | [] | no_license | ZaurAtakishiev/Dz1_Class | f3873b0571918c8a9cdda054eb5c51712bccd1ad | e039704a8537516e82cae442f44dcdbbfa7eabba | refs/heads/master | 2021-03-12T20:31:09.468214 | 2014-04-12T19:09:13 | 2014-04-12T19:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | man.h | #pragma once
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#include <string>
#include <string.h>
#include <list>
using namespace std;
class Man
{
public:
string FIO;
int Quant_of_money;
bool Oplata;
Man(string Name, int Quant_of_money);
~Man();
void menu();
void oplatit();
};
|
75e3d761ec72694d8060a3ad35b35ae41a34fb01 | d4148d4c37f920feeca7a421926f7caace838f73 | /그리디/주유소.cpp | 8f98c610d06d7c5a9323d22a828380987eb99d04 | [] | no_license | kim-hwi/Algorithm | faf6725bcc3b08c08513c5b54c130a4768ca3276 | 14a38d6174938cb8eb4633212b59d693cfe9a702 | refs/heads/master | 2023-07-19T01:32:17.499032 | 2021-08-30T14:59:52 | 2021-08-30T14:59:52 | 341,794,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | 주유소.cpp | #include<iostream>
using namespace std;
int main(void){
long long pay=0;//1억*1억을 담기위한 변수
int citynum;
cin>>citynum;
int cityoil[citynum];
long long path[citynum-1];
for(int i=0;i<citynum-1;i++) cin>>path[i];
for(int i=0;i<citynum;i++) cin>>cityoil[i];
long long temppath=0;//매우중요! int형 1억... |
75f6fcf35fd1e1b6e87a97a5550a6df82f6c0564 | 44e0a0c85d7b797df53c90296dd657b0a42186be | /Engine/General/Clock.cpp | c7924ff2c1c98697d3c3243e48a33ec276f27d68 | [
"MIT"
] | permissive | BielBdeLuna/DarkXL | e759f1d39ca594b330a645a3adda0295dc84c94d | 647f88835b78f0afc595c17ccb7410c0661c93a9 | refs/heads/master | 2020-12-24T14:26:20.132150 | 2019-12-12T03:01:30 | 2019-12-12T03:01:30 | 227,507,115 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | Clock.cpp | #include "Clock.h"
#include <windows.h>
#include <stdio.h>
#define SEC_TO_uS 1000000.0
float Clock::m_fDeltaTime;
float Clock::m_fRealDeltaTime;
int Clock::m_nDeltaTicks;
static LARGE_INTEGER _Timer_Freq;
static u64 _Start_Tick[16];
LONGLONG _GetCurTickCnt();
bool Clock::Init()
{
BOOL bRet = QueryP... |
436c7f6cebe72703114a4ed69e218a832d79f6d7 | 696221bce2a5f2424cc7ee76c5b2fa42204741b4 | /source/code/scratch/old_repos/webapps/hickey-rates/deploy-tool/category_checker.cpp | 71d799b191585f2aab2d41b62b66fb8b15ee0fa9 | [] | no_license | advaitsangle/unilang | b325cc8cc42c719ad7182f47fc28d38aedf1bbfa | 365965159c1c997b4f02a5d3704daf2dae986eb4 | refs/heads/master | 2022-11-09T19:57:34.624803 | 2020-06-28T23:57:34 | 2020-06-28T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31 | cpp | category_checker.cpp | #include "category_checker.hpp" |
001a987b345681e59114186a01be90817eee1532 | 28d668bf537e3bc1ed28b4ae058f86ec6195eb80 | /Template/Skills_And_Methods/High_Precision.cc | 62eb90242090f4540e899908d98188ee5af126ee | [] | no_license | seoi2017/OICode | 4aa710d5f6e40e2d611c9b543facd1ec2318e810 | 6e793181a9a2663db7cc160d5d43fc4eb38de43f | refs/heads/master | 2021-06-30T03:32:25.030999 | 2018-03-31T11:30:27 | 2018-03-31T11:30:27 | 96,162,533 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,869 | cc | High_Precision.cc | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#define MAX_SUM 16384
using namespace std;
const int base = 100000000;
const int power = 8;
class bigint_t
{
public:
long long s[MAX_SUM];
bigint_t()
{
memset(this->s, 0, sizeof(this->s));
}
bigint... |
0e6d24c6e52bb3b0f464346b989ce4dc162c1fba | 6a174bf3b779ae22960130170c6fcc2930ec82bb | /James Moran Tutorial 04 Exercise 1/Input.h | 19a54371078240ecda387e0ce552971a142f7dec | [] | no_license | FioKron/CGP---Tutorials | 83c7c048f7d383e1daf1981124e764d28bb85908 | 180689fba85373931afccb131a16078b972a2b68 | refs/heads/master | 2020-12-24T06:37:29.923561 | 2017-01-09T15:54:56 | 2017-01-09T15:54:56 | 73,468,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | Input.h | #pragma once
#include "SDL.h"
// Enum.(s):
enum PressedKeys
{
KEY_ESCAPE,
KEY_R,
KEY_G,
KEY_B,
KEY_T,
KEY_H,
KEY_N,
KEY_W,
KEY_A,
KEY_S,
KEY_D,
PRESSED_KEYS_SIZE // Interesting...
};
class Input
{
public:
void Update();
bool KeyIsPressed(PressedKeys PressedKey);
Input();
... |
343d974fd9dcc3314dd0eb843a03b880d0ee3210 | 7cf8b5fd6ed148f294fb40a72d99acab4c58c220 | /example/game_prototype/weakPlatform.cpp | 8ba551848f1776be81f7506d1c7044d92d8f4620 | [] | no_license | ssyp-ru/ssyp17-ws03 | 3a100c5793fc3b3be09ea63eaf5a425d4c22a584 | 3eae7f0df34f553773af4f656db1589e8723eb37 | refs/heads/master | 2021-01-15T17:59:21.650989 | 2018-07-09T21:05:40 | 2018-07-09T21:05:40 | 99,767,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | cpp | weakPlatform.cpp | #include "weakPlatform.h"
re::ImagePtr WeakPlatform::tex = nullptr;
WeakPlatform::WeakPlatform(re::Point2f pos, re::Point2f siz, double destroyTime) : Platform::Platform(pos, siz)
{
size = siz;
touched = false;
hp = destroyTime;
setFriction(1.0);
setBounciness(0.0);
}
void WeakPlatform::onCollisi... |
221f32b2c0e614654f71cf5080d17bb166fe18d4 | ee1820f94178fdfa93eceb6dd2cb9b9d9c95b72a | /ITSA/C_AR01.cpp | 891493af2e3c21a3dffb4331cd94e9b244adca8a | [] | no_license | asd0012/ITSA | 3a2f6c8a829c08d49ac0be951514f1bd2ee47989 | 05879bf4c13db4c75588b8135942bda8bbcc0456 | refs/heads/master | 2020-06-07T08:05:21.205082 | 2019-06-21T02:56:59 | 2019-06-21T02:56:59 | 192,969,053 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 752 | cpp | C_AR01.cpp | #include<stdio.h>
#include<iostream>
#include<stdlib.h>
#include<string.h>
#include<vector>
using namespace std;
int main()
{
char str[100];
vector<int> num;
int i;
// freopen("input.txt","r",stdin);
while(fgets(str,100,stdin) !=NULL)
{
char *token;
token=strtok(s... |
b8bab50c92ec95b79b89b0fe79b36414a6243f3b | 2a6b3e8306e201e6665366f3e055942cdadccdfa | /64/Debug&Release/include/hermes2d/projections/localprojection.h | c90ffa661a7e8f55805b00680b1fd7ff4e29dbbc | [] | no_license | bausoft-kft/hermes-windows | 7f86ad2d79f77a894cab29f9133a895efda4439e | d3db7cb546069ad6c8f06c2e7fcd6a0df697d651 | refs/heads/master | 2021-12-10T22:51:25.996544 | 2016-09-29T21:21:16 | 2016-09-29T21:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | h | localprojection.h | // This file is part of Hermes2D.
//
// Hermes2D is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Hermes2D is distributed in th... |
ca3c80b9898faa9483d9addb5b0903521929a6a8 | dd3ff7e66b5d6f6d9661ee7d0f48a02ee22cd1ee | /Game/difficulty.cpp | 4395f0b39405413701f4bba7d8f4051e5e040700 | [] | no_license | JfChi18/Space-shooting-2D-game- | 6b34f2ea6e1a01cea858f2ae809a9527c3b5f4ca | 215a141953105b6e5e4815b605026f06b492ccbe | refs/heads/master | 2021-07-05T16:58:14.996367 | 2017-09-26T03:37:59 | 2017-09-26T03:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,437 | cpp | difficulty.cpp | #include "difficulty.hpp"
#include<SDL2/SDL.h>
#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <ctime>
#include "items.hpp"
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#define SCREENW 640
#define SCREENH 480
#define BUTTONW 180
#define BUTTONH 60
#define SCR... |
e61dc76c820415963462d7ab89a26d7640bac31a | 9e3a2a980c4c0f50dab735a2f17488b9e3e5d245 | /MSCL/source/mscl/MicroStrain/Wireless/WirelessDataPoint.h | 26237cc63d67ab0401d36bfdbfe6fc3e8181868b | [
"OpenSSL",
"MIT",
"BSL-1.0"
] | permissive | LORD-MicroStrain/MSCL | 6c11a0c50889fae852bf04cdce9b4fe7230cecf1 | aef74d5a85c2573cee224f53dad1e22c32d4a128 | refs/heads/master | 2023-08-31T06:51:24.246179 | 2023-08-23T00:03:50 | 2023-08-23T00:03:50 | 41,445,502 | 73 | 61 | MIT | 2023-07-04T00:07:55 | 2015-08-26T19:27:43 | C++ | UTF-8 | C++ | false | false | 4,626 | h | WirelessDataPoint.h | /*****************************************************************************************
** Copyright(c) 2015-2022 Parker Hannifin Corp. All rights reserved. **
** **
** MIT Licensed. See the included LICENSE.tx... |
19ce5e15d7ddc379acf04f9ef6b553fd5c4a37cd | 651f4c18391f3e7a48cf74d1364d42086a3fb6ca | /6sem/ParProg/MPI/IntroductionTasks/HelloWorld/hello_world.cpp | 58cfb7f9afd3c289e3eea3ff1b1e30039dbfe7d9 | [] | no_license | exesaLigno/Mipt | eaade84ccbf8a8138602125854199083ead263b6 | 48bca95819a2e88a778e8ff737aecee0cb80b1ff | refs/heads/master | 2023-02-26T09:54:10.517980 | 2023-02-17T14:46:35 | 2023-02-17T14:46:35 | 185,024,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | hello_world.cpp | #include <cstdio>
#include <mpi.h>
int main(int argc, char** argv)
{
MPI_Init(&argc, &argv);
int comm_size = 0, rank = 0;
MPI_Comm_size(MPI_COMM_WORLD, &comm_size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
printf("Hello world! My rank is %d of %d runners\n", rank, comm_size);
MPI_Finalize();
return 0;
}
|
42c684cecbcbf1d7ce7795632fb5af71650ce36a | b6850515d32ea0768efdc726cee5766551cc36fe | /bag.cf.cpp | d01e10f9d0b0b0e803a7be9a526e43a726a75baf | [] | no_license | kamol7/OJ-SOLVE | 4bfa97edd6c078c4126a702a6a7b701d1472fba4 | d82fcabe7acdc3929210d8101ab1591998cef438 | refs/heads/master | 2022-01-15T12:06:19.683083 | 2019-07-23T05:12:15 | 2019-07-23T05:12:15 | 198,356,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | bag.cf.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int y,k,n;
cin>>y>>k>>n;
int i;
int lol=y%k;
if(n-y<k-lol){
printf("-1\n");
return 0;
}
for(i=1;y+i*k-lol<=n;i++) printf("%d ",i*k-lol);
return 0;
} |
09a74ea80073d9cf362d2d2c1650a90c46ae5e37 | 9be246df43e02fba30ee2595c8cec14ac2b355d1 | /worldcraft/visgroup.h | fe76ac667a9d4678236236ebfa499431205d3ddb | [] | no_license | Clepoy3/LeakNet | 6bf4c5d5535b3824a350f32352f457d8be87d609 | 8866efcb9b0bf9290b80f7263e2ce2074302640a | refs/heads/master | 2020-05-30T04:53:22.193725 | 2019-04-12T16:06:26 | 2019-04-12T16:06:26 | 189,544,338 | 18 | 5 | null | 2019-05-31T06:59:39 | 2019-05-31T06:59:39 | null | WINDOWS-1252 | C++ | false | false | 2,630 | h | visgroup.h | //========= Copyright © 1996-2001, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef VISGROUP_H
#define VISGROUP_H
#pragma once
#include "basetypes.h"
class CChunkFile;
class CSav... |
8413b9e8a5e2b0d3e7521cf99efd70f6c303d71e | 0c7565763a25388a35d1748e75c8bf2906da8857 | /CSED331/ASSN5/3.cpp | 704a8630d7e8e615379b463b0b91589c777db993 | [] | no_license | sjlee1218/Algorithms | 63de4a3d9bbb86960f0b7f7dc1916dd3fe53a354 | 5f264b8dba37a8086ed6cff0355ee0955dd36e31 | refs/heads/master | 2020-04-13T14:04:27.485801 | 2019-06-05T20:00:14 | 2019-06-05T20:00:14 | 163,250,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,781 | cpp | 3.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
ll Sum_arr[3001][3001];
int origin_arr[3001][3001];
ll Conv_arr[3001][3001];
ll Find_Sum(int n,int m){
if (n<0 || m<0)
return 0;
if(n==0 && m ==0) {
Sum_arr[0][0] = origin_arr[0][0];
... |
9c206440eca19ea8e7940ff742c30081a9fb2299 | fb2d3702450ae18d2d5e2796e8f22f5dff60b4f2 | /engine/Fury/RenderUtil.cpp | db6ecde9a666e5902769643b3c3917dbe7a1320f | [
"MIT"
] | permissive | fireword/fury3d | d15b56be504bc441372b207deb2457279f99e27f | a280c276e59fa758b269ca605a95aee5f3ed78c9 | refs/heads/master | 2021-01-13T07:39:40.584122 | 2016-10-11T13:39:15 | 2016-10-11T13:39:15 | 71,447,923 | 1 | 0 | null | 2016-10-20T09:40:19 | 2016-10-20T09:40:18 | null | UTF-8 | C++ | false | false | 7,169 | cpp | RenderUtil.cpp | #include <SFML/System/Time.hpp>
#include "Fury/RenderUtil.h"
#include "Fury/GLLoader.h"
#include "Fury/Log.h"
#include "Fury/Vector4.h"
#include "Fury/Shader.h"
#include "Fury/SceneNode.h"
#include "Fury/Frustum.h"
#include "Fury/Mesh.h"
#include "Fury/MeshUtil.h"
#include "Fury/Texture.h"
namespace fury... |
4889d5f427f5535c4dee22abba6eb2d11854d45d | 29dd30a62c2ec7089897b485f81ab3b3a3d4ec3f | /AddressBook/ContactView.cpp | 69f19152421a97a7ab517b90cb7f2f3b555b56d3 | [] | no_license | WZYFX/keyhotee | e988568f6ba8dca3bedd1e2d23734785813590e6 | 4bc506b61a67564afb76dd9535393a4ad8de4ca0 | refs/heads/master | 2021-01-17T11:33:13.542506 | 2013-12-09T07:09:29 | 2013-12-09T07:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,375 | cpp | ContactView.cpp | #include "ContactView.hpp"
#include "ui_ContactView.h"
#include "AddressBookModel.hpp"
#include "public_key_address.hpp"
#include <KeyhoteeMainWindow.hpp>
#include <bts/application.hpp>
#include <bts/address.hpp>
#include <fc/thread/thread.hpp>
#include <fc/log/logger.hpp>
#include <QtWebKitWidgets/QWebFrame>
exter... |
b7f3ff7a32f5221c6ca600bb85cd888dd92c22ee | 25245cdad68304c439d7bb15f6efc80dc431df54 | /Learn_Game/Frame.h | d10e5829786e4756d24fe99ecdde520789f457e1 | [] | no_license | ArturKnopik/Game | f25dc52f7d5b4e3c99bab9a5c02f53f9c00c4c24 | a6e49532097523acbd39bba967a81c9eaed3aafc | refs/heads/master | 2023-02-24T17:26:13.255822 | 2021-02-02T17:49:37 | 2021-02-02T17:49:37 | 166,843,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | Frame.h | #pragma once
#include "SFML/Graphics/Rect.hpp"
#include <vector>
namespace TCG
{
class Frame
{
double timeToNextFrame = 0.5;
sf::IntRect imagePosition;
public:
Frame() = delete;
Frame(sf::IntRect imagePosition, double timeToNextFrame = 0.1);
const double getMaxFrameTime() const;
const sf::IntRect getFram... |
89f5ee5f931188c561cc28c8d800f128ec10d79e | 24b48bbf173884f943cdbba78d2f544ae69bb89a | /src/math/segment2d.h | 5d6f7603e1e9312719cdd111ccc21a0707d4478d | [] | no_license | drodri/MRCore | 854a869595fa685c09cfe3be7f1ace290ce3b739 | 91710f2ba6a9967e4c637f566fdca38f28374220 | refs/heads/master | 2016-08-05T10:20:27.820811 | 2013-07-22T15:13:41 | 2013-07-24T10:18:43 | 3,554,360 | 5 | 4 | null | 2013-07-23T10:19:00 | 2012-02-26T19:56:52 | C++ | UTF-8 | C++ | false | false | 750 | h | segment2d.h | #pragma once
#include <iostream>
#include "transformation2d.h"
#include "../base/globject.h"
#include "gl/gltools.h"
using namespace std;
namespace mr{
class Segment2D
{
friend class Interactions;
public:
//constructors
Segment2D(){;}
Segment2D(const Vector2D& v1,const Vector2D& v2):p1(v1),p2(v2){;}
virtual ~S... |
06670917cedcac741a8a047adb89c3bf2fc2eb07 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /ssm/src/v20190923/model/CreateSecretRequest.cpp | 5414c487415b3991cee6276ba4eb925fb36981b3 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 7,252 | cpp | CreateSecretRequest.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
820566efea31bc99a2b55cfb7bde8f1dfc76d480 | 519b7621d5e0bb4d8a134c6f5d7d1d780916094b | /src/main.cpp | 70a13adda9eb4c9b2785b618499a5e96cc9088bf | [] | no_license | Heych88/udacity-sdcnd-PID-Control | 98bdbe77481812920ca1f64a63ce7c0719252336 | 62c4b20d986c4e3a77453248b5499ce6a4beceb3 | refs/heads/master | 2021-01-01T06:24:58.150518 | 2017-07-19T01:14:41 | 2017-07-19T01:14:41 | 97,424,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,187 | cpp | main.cpp | #include <uWS/uWS.h>
#include <iostream>
#include "json.hpp"
#include "PID.h"
#include <math.h>
// for convenience
using json = nlohmann::json;
// For converting back and forth between radians and degrees.
constexpr double pi() { return M_PI; }
double deg2rad(double x) { return x * pi() / 180; }
double rad2deg(double... |
e25b23ec86b3d6d80a6376e1763c0a7339a9f4a4 | 23f52d5e77c8b88318494ad95fc0bba8f391d4b0 | /main.cpp | 2b9a36eb1970478658d4993143caa1850f1b05d9 | [] | no_license | justanotherminh/LinkedList | f549001c39d5eb45f153d5ac141af65816b80cff | b7ce5d82e683b518aafd3d82f416a053bf50aa19 | refs/heads/master | 2021-09-16T19:57:36.342973 | 2018-06-24T06:42:08 | 2018-06-24T06:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | main.cpp | //
// Created by Nguyen Luong Minh on 6/19/18.
//
#include "LinkedList.h"
int main() {
LinkedList<string> list;
list << "Hello" << "World";
cout << list << endl;
return 0;
} |
ca09df8e40547a6b9a3b0a11d3f222e5fffabce9 | 5ad3cd78a661fc5ecc283b6fff2575858d88b546 | /ray-tracer-v2/src/myUtil.cpp | bf3660ee741ec2742ed833e57f65b1a4eb8b19c2 | [] | no_license | PhilO42/ray-tracer-v1 | 6ce4853ae02cb06fe35eb720fa09d1e72295f9cb | 6bab5582ad835bdbc508eb4ecc8e886c469d9cf7 | refs/heads/master | 2021-01-10T16:01:21.146289 | 2012-01-31T18:06:45 | 2012-01-31T18:06:45 | 44,117,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,011 | cpp | myUtil.cpp | /*
* myUtil.cpp
*
* Created on: 28.10.2011
* Author: philipp
*/
#include "myUtil.h"
myUtil::myUtil() {
// TODO Auto-generated constructor stub
}
myUtil::~myUtil() {
// TODO Auto-generated destructor stub
}
CVector<float> myUtil::color(float x, float y, float z){
CVector<float> vec(3,0);
vec(0) = x;
... |
cd89be15cad3836bc6ea311f057f534bef72d585 | cc495f7c7ee0133aa4614ac9a5f4a494c9d8d6da | /p14.cpp | e26e12c1c343b4db2fd4802153f746f13c9df25a | [] | no_license | chrollo966/projecteuler | 5fa16c5b99a31bfd68c0fccb4861340774b88b85 | a184246cc3f2f009aa741a62eb84300bbfe15bf7 | refs/heads/main | 2023-05-07T08:47:23.310291 | 2021-05-25T08:09:01 | 2021-05-25T08:09:01 | 370,614,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 942 | cpp | p14.cpp | // Longest Collatz sequence
#include <iostream>
#include <vector>
int main()
{
const int range = 1000000;
int start_num = 0;
int seq_length = 0;
long seq;
int * cache = new int[range + 1];
for (int i = 0; i < range; i++)
{
cache[i] = -1;
}
cache[1] = 1;
for (int i =... |
5d6d4ef566f3b6447ae96bd7512a4e0d289106f4 | dc933e6c4af6db8e5938612935bb51ead04da9b3 | /android-x86/external/opencore/oscl/oscl/osclregcli/src/oscl_registry_client_impl.h | fd59632d5d3ded9f1cf12639c36b0013a3e499ee | [] | no_license | leotfrancisco/patch-hosting-for-android-x86-support | 213f0b28a7171570a77a3cec48a747087f700928 | e932645af3ff9515bd152b124bb55479758c2344 | refs/heads/master | 2021-01-10T08:40:36.731838 | 2009-05-28T04:29:43 | 2009-05-28T04:29:43 | 51,474,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,808 | h | oscl_registry_client_impl.h | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* 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/li... |
40178164999f8830034ba6f6d4a902acccdad79c | 476b62392b6b96353af265e4b4e4010147b9ff68 | /Easy100_2020-9-19/AC_ABC100_C.cpp | a9facd2b557c56ab49ae38d44b3e1260ac501bba | [] | no_license | Nattchi/Atcoder | 16d803dd8d83593f31b1a2e399ceefb350990ff0 | 820c4f648a25542da61543bef277f533d6edc614 | refs/heads/master | 2022-04-04T03:30:15.678042 | 2022-03-20T19:08:01 | 2022-03-20T19:08:01 | 247,407,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | cpp | AC_ABC100_C.cpp | #include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <utility>
#include <cmath>
#include <queue>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=1;i<=ll(n);i++)
int main(){
ll n; cin >> n;
vector<ll> a(n+1);
ll ans = 0;
... |
9f5edc3920ffaa417dc60788f3506e0fc344e5b5 | 20771ec0bf6cb66ea0ff13495c3f7edeba883a5f | /guide-to-competitive-programming/05 Data Structures/5.2 Set Structures/maps.cpp | 20b6077f6d61413f86cc638e6e262c35fbcf7223 | [] | no_license | ferconde87/Programming-contests | 9a78f38e9bf37ba89df9ae4f61987f05da51b403 | 54b09ded13e3b797a1612d90b14167b0508af94e | refs/heads/master | 2021-11-11T01:21:40.043164 | 2021-09-25T04:59:16 | 2021-09-25T04:59:16 | 133,291,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | cpp | maps.cpp | #include <bits/stdc++.h>
using namespace std;
//Map
void maps(){
cout << "Maps\n";
map<string,int> m;
m["monkey"] = 4;
m["banana"] = 3;
m["harpsichord"] = 9;
cout << m["banana"] << "\n"; // 3
// If the value of a key is requested but the map does not contain it, the key is
// automati... |
58f597e2ba1585cf139309e740cbeadfc58eddd4 | ffe2a7f855c1fecbb1969626a045e25a160e062b | /game_widget/game_widget.h | 765b9246c7ae76724d296110be10f45a70948684 | [] | no_license | BaranVlad/portal2d | 9f18e571034ca88a9eb38ae1350ddca23d51637c | d3bec6dcdcc34d0b7b65f6192a048e0175bf5af6 | refs/heads/master | 2023-06-24T05:21:30.291539 | 2023-06-20T12:13:28 | 2023-06-20T12:13:28 | 366,668,226 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | game_widget.h | #ifndef PORTAL2D_GAME_WIDGET_H_
#define PORTAL2D_GAME_WIDGET_H_
#include <QWidget>
#include <QTimer>
#include <QElapsedTimer>
#include <QKeyEvent>
#define FPS 60
class Scene;
class GameWidget : public QWidget {
Q_OBJECT
protected:
Scene* scene_;
QElapsedTimer clock_;
virtual void Update();
void keyPressEvent... |
80b13cf7f5c794de7e75b0eeef94de15072f92df | 3f5e7d38fde9076b6c58f392dae71b123fb079b2 | /src/paradis_ompf_my_read.cc | 50a7652b14927793340be1ddee6d48aedc98d54d | [
"MIT"
] | permissive | albicilla/paradis_experiment | 8229c58dd24001285be4625ac8d03af24f61348c | 546067daa7c6c8fd3419cac750e04919c5aa4a1a | refs/heads/master | 2023-01-08T11:21:51.151466 | 2020-10-27T04:29:47 | 2020-10-27T04:29:47 | 260,705,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,894 | cc | paradis_ompf_my_read.cc | #include <cassert>
#include <iostream>
#include <vector>
#include <algorithm>
#include <chrono>
#include <random>
#include <sstream>
#include <thread>
#include <fstream>
#include <iomanip>
#include <iterator>
#include <stdexcept>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#inclu... |
41125c348dabd5a44f4a7a8ae7b399438faa6433 | 00d5cd399405500ffef11d4d17b43b836cb5c964 | /src/stirling/source_connectors/perf_profiler/symbolizers/java_symbolizer.h | a2086ba091936d3b7a84e36074b4f2de5845bbf2 | [
"Apache-2.0"
] | permissive | doytsujin/pixie | 0b1105105d0f05cf320cdd7bea55c360d1d01925 | cfe6c966fac18ac0c6e4a28b4f51f3be7553e30b | refs/heads/main | 2023-06-10T00:09:33.784394 | 2023-06-06T00:05:07 | 2023-06-06T00:05:07 | 364,398,868 | 0 | 0 | Apache-2.0 | 2021-05-04T22:12:14 | 2021-05-04T22:12:13 | null | UTF-8 | C++ | false | false | 3,257 | h | java_symbolizer.h | /*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
b5c6a872af1316ca895c834c03eec6c69934138a | fca84ffc0c8647f3140c9efd5904fba924c70e2b | /csv2Data/tools/python_protoc/cpp_out/commdef.pb.cc | 81aa699c64133a71bed8fab6570f58d263504a63 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | pengdongwei/XFramework_XLua | ff193cb417fd661e78f76bdee709b640ee887587 | 7a87d1bfc10656d5895c737ca84cf7ab3ab82349 | refs/heads/master | 2021-04-12T09:53:18.853898 | 2018-03-23T12:25:45 | 2018-03-23T12:25:45 | 126,482,583 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | true | 6,107 | cc | commdef.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: commdef.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "commdef.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#includ... |
4b035d2bbbaa74844f26eca60ea32dfbfa472217 | f053cb7fd5ab64d157c1e28394e5d27d9495b3b0 | /chapter09/05/Header1.h | 168b31fa2b8a2d1ce187742e74bae1d694d20d85 | [] | no_license | EvilingDark/Stroustrup-PPPUC | 81b91ef0252866d12a96a8a36cd4ed7401564c88 | 5fe09fc1277632447e647ab9b657be3af60bffb7 | refs/heads/master | 2020-09-25T14:03:45.271940 | 2020-01-15T13:25:59 | 2020-01-15T13:25:59 | 226,019,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | Header1.h | #pragma once
#include <Header.h>
class Book
{
public:
void enter();
string name() const { return p_name; }
string author() const { return p_author; }
string ISBN() const { return p_ISBN; }
string Date() const { return p_Date; }
bool in_stock() const { return p_in_stock; }
private:
string p_name{ "123" };
strin... |
1e7cad0c30158f3648b990ba5739ad214dc62c17 | 3fffa43b32f76b2791247c6d9ffffddfe12632c0 | /Hook.h | b573a201fd5b1c44af73411ca792f64a1d2ab6d8 | [] | no_license | discapes/ACHook | ed5f4edda3befafd2d13df7553adf20e15d704fd | be0e84a61d3b5157cdfb7a184c8a251892911183 | refs/heads/master | 2022-12-24T14:16:06.517995 | 2020-10-02T17:52:19 | 2020-10-02T17:52:19 | 287,704,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,759 | h | Hook.h | #pragma once
#include <cstdint>
#include <Windows.h>
#include "def.h"
#include "Patch.h"
#include "LDE/ld32.h"
#define isRet(oc) oc == 0xC3 || oc == 0xCB || oc == 0xC2 || oc == 0xCA
template <typename T>
class Hook : public Patch
{
byte* oFun;
T gateway;
int _counter = 0;
public:
int& counter()
{
return _co... |
e6f80475a7fe62c8d37559620f5b9e3ce973fc99 | 337855cba159a26cf0d243e26d011de541824e9f | /libFileArb/UtilityComponents/FunctionCallers/Member/VoidFourArgMemberFunctionCaller.h | 46abffd13b13435d1875791405301c8dafb3b1ba | [
"MIT"
] | permissive | NeilJustice/FileArb | be2e91f49259f190f4d0b864dd2685b5d41340c8 | 7755956248e5bbfd7d2e0908c0c89656236dc000 | refs/heads/main | 2023-08-16T18:54:53.893169 | 2023-08-12T18:30:03 | 2023-08-12T18:30:03 | 286,283,428 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | VoidFourArgMemberFunctionCaller.h | #pragma once
namespace Utils
{
template<typename ClassType, typename Arg1Type, typename Arg2Type, typename Arg3Type, typename Arg4Type>
class VoidFourArgMemberFunctionCaller
{
public:
virtual void CallConstMemberFunction(
const ClassType* constClassPointer,
void (ClassType... |
2a454eefb31c6a64b8e280f059ab4634a4ba8eeb | 894d6ce449cfdb2810d498035edd061ddbe10585 | /llvm/include/llvm/Support/Dwarf.def | dc812074dde68eddba2e59f4e5bd2b14ea262fe2 | [
"NCSA",
"MIT"
] | permissive | afchung/Ratchet | db474ba723a52e40d30cc9a60a43082130a9f2d9 | 287af004477992394f10149b30695acd47efc05d | refs/heads/master | 2020-05-01T19:42:12.427129 | 2019-03-29T16:57:04 | 2019-03-29T16:57:04 | 177,655,403 | 0 | 0 | null | 2019-03-25T19:59:23 | 2019-03-25T19:59:23 | null | UTF-8 | C++ | false | false | 3,545 | def | Dwarf.def | //===- llvm/Support/Dwarf.def - Dwarf definitions ---------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
a3bb3b1386fd1162c3573bad25852e19dbcf0dff | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/PhysX/APEX_1.4/shared/general/meshimport/src/MeshImport/VtxWeld.cpp | ba99db7aacf8bb778e721deab2d79c2060b9c219 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 3,981 | cpp | VtxWeld.cpp | /*
* Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this so... |
f09c910a6255e7f2f89cda565719fa79d928a133 | 6b1098673571cb239314999778e46e185aef3a0a | /lab06-UARTComm-test/Arduino/ReadSHT1xValues/ReadSHT1xValues.ino | 3523c0c04e5e9c0da5359728d363bd008b774802 | [] | no_license | silla-mclab/jiot3 | b96716d5e401f231f1e0b32930d5ed7d74ffcca2 | 6062b16dc72b86f3978a9a79529ec5d1b3e22933 | refs/heads/master | 2022-06-09T06:14:42.193427 | 2019-12-10T08:43:22 | 2019-12-10T08:43:22 | 208,684,017 | 0 | 0 | null | 2022-05-20T21:18:16 | 2019-09-16T01:26:14 | Java | UTF-8 | C++ | false | false | 2,522 | ino | ReadSHT1xValues.ino | #include <SHT1x.h>
//#define TESTING
// Specify data and clock connections and instantiate SHT1x object
#define dataPin 2
#define clockPin 3
SHT1x sht1x(dataPin, clockPin);
#ifdef TESTING
#define COMM_DEV Serial
#else
#define COMM_DEV Serial1
#endif
char* reqCmds[3] = {
"TMP", "HMD", "ACK"
};
char cmdBuf... |
777c9a05f353a4f4cab1d7c0d259020efbef00f3 | bdc326f809a9854f35667dc66da8c296d6639f85 | /矩形覆盖.cpp | 82518b038b81a112cd36f3cad99324785f1d3712 | [
"MIT"
] | permissive | 1203126009/findjob | 05513af6f47acc83a310d57064b830e53cb55763 | be4e3e5c50b008efe139b94dd8561cd9c599e06c | refs/heads/master | 2020-03-27T20:22:44.958839 | 2018-09-02T08:22:01 | 2018-09-02T08:22:01 | 147,065,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | 矩形覆盖.cpp | //https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6?tpId=13&tqId=11163&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews%2Fquestion-ranking&tPage=1
class Solution {
public:
int rectCover(int number) {
if (number==0)return 0;
if (number==1)return 1;
if (nu... |
4ff46d6fc51b7ee653f219cecc102125b70a7dbb | d396aa3495407069935ebab3faf870ad87025014 | /2 数据结构/2 二叉树/8 二叉搜索树(建树同上,通过前中遍历比较两树是否相同).cpp | 6dc9a12164ac0e08f84194c06503d612459d1eb1 | [] | no_license | qwjaskzxl/For-OJ | 4d3b2f873cf11c5f9ddb74c4b91b4b78cccc3afa | 1fe6e5099d95fff2dcfc503951ff6e311202919b | refs/heads/master | 2021-12-25T21:17:44.232567 | 2021-08-05T14:01:59 | 2021-08-05T14:01:59 | 175,966,016 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,378 | cpp | 8 二叉搜索树(建树同上,通过前中遍历比较两树是否相同).cpp | #include<iostream>
using namespace std;
struct node {
node *lchild;
node *rchild;
char data;//char类型也可以直接比较数字的大小
};
string s0,s;//记录排序树序列。每个样例对应每个s,都和s0比
string s1,s2;//记录两个树的 前中遍历序列
node *creat() {
node *T=new node;
T->lchild=T->rchild=NULL;
return T;
}
node *insert(node *T, char x) {
if(T==NULL) {
T=creat()... |
9bb989aa6addd482439b25f6a924fdf24a2d5f8a | e91d8007699fdc17359f69f216edc37d5ac4f5df | /src/expand/file_line.cpp | 7a827ccf9bbc0a545bf8f8494bad4d63a00c3b8c | [
"MIT"
] | permissive | xTibor/mrustc | 54328a5dbe31c748a1be2c8a7e0a17102ed866bf | 7b6fa5c6e7d6838c2479280dd3f8d14a43c13899 | refs/heads/master | 2020-04-21T18:04:19.742718 | 2019-02-06T00:15:30 | 2019-02-06T00:15:30 | 169,756,176 | 3 | 0 | MIT | 2019-02-08T15:31:34 | 2019-02-08T15:31:33 | null | UTF-8 | C++ | false | false | 2,137 | cpp | file_line.cpp | /*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* expand/file_line.cpp
* - file! line! and macro_path! macros
*/
#include <synext.hpp>
#include "../parse/common.hpp"
#include "../parse/ttstream.hpp"
namespace {
const Span& get_top_span(const Span& sp) {
if( sp.outer_span ) {
... |
b84de1f1cb75a60d9037c35f23bd4675612d26a0 | f1a787ad211adc05075cade4e30c3e3173b6b673 | /4_week/files/teor1.cpp | 635b72382a4cf58797dd4eb6195e05ae67710e8c | [] | no_license | julproh/coursera_tasks_cpp | c395ffd630e3078fa2feb7b2924c6ec190d7040b | 5ddf158acfdc794e1571c031c2e9c8eaec0e79d7 | refs/heads/main | 2023-03-23T23:58:19.356543 | 2021-03-24T08:51:37 | 2021-03-24T08:51:37 | 351,007,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,511 | cpp | teor1.cpp | #include <iostream> //
// #include <istream> // сin
// #include <ostream> // cout
#include <fstream> // для файлов
using namespace std;
// getline - читать из потока построчно
void ReadAll (const string& path) {
ifstream input(path);
if (input) {
string line;
while (getline(input, line)) {
... |
f14bf43ab3ea861effca8182ee3b8c23cd432168 | 0436a82eca12ef9625c26820aab4908572be9a83 | /platform-demo/src/main/java/phis/roles/61.re | c6c070a07769580482eea75c88e1b2b29651eeea | [] | no_license | zzq113114/-Demo | 8f3cd0d4d84aa543a9914132eec28d3c91821a5a | ca1549a9410d584372933ba2ffde419e5cb41731 | refs/heads/master | 2023-05-03T21:23:55.237216 | 2020-03-14T06:39:11 | 2020-03-14T06:39:11 | 247,218,124 | 0 | 0 | null | 2023-04-14T17:09:27 | 2020-03-14T05:32:06 | JavaScript | UTF-8 | C++ | false | false | 6,233 | re | 61.re | <?xml version="1.0" encoding="UTF-8"?>
<role id="phis.61" name="药库角色" parent="base" version="1388655243304">
<accredit>
<apps>
<app id="phis.application.menu.COMM">
<catagory id="PUB">
<others />
</catagory>
</app>
<app id="phis.application.top.TOP">
<catagory id="TOPFUNC">
<module i... |
43d59fc98a277ae84bf98dd7058ee7d8dcb61578 | 8e8b748965e211710f926deef69cab8077509fef | /Dusk/Physics/BulletPhysics/RigidBody.cpp | 4b27b802279bec86adc145d173f1f19aeb440020 | [] | no_license | i0r/project_freeride | 09240c7725298b4946d911dfff9de22a17c9288b | 896e6c3f08b830f93083f719a0816678c9128efb | refs/heads/master | 2023-02-06T10:07:30.369487 | 2020-12-28T11:10:07 | 2020-12-28T11:10:07 | 263,069,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,182 | cpp | RigidBody.cpp | /*
Dusk Source Code
Copyright (C) 2020 Prevost Baptiste
*/
#include <Shared.h>
#ifdef DUSK_USE_BULLET
#include "RigidBody.h"
#include "Physics/RigidBody.h"
#include "ThirdParty/bullet3/src/btBulletDynamicsCommon.h"
void CreateInternalObjects( BaseAllocator* memoryAllocator, NativeRigidBody* nativeObject, co... |
a437008bd4c1d4f8b104593a450ccbf2f522ece4 | 137c734a6183803719931bef34d93b7567965ccd | /include/pointCloud.h | 1f902d92bfa6c3f007fd95906728c4237b12728f | [] | no_license | segmentcloudpoint/SparseSeg | d3e5c6214dab11b02770d82f69a4d4a92af414e3 | 8ec4f687e91867538908876b260e772064dcc8a3 | refs/heads/master | 2020-09-14T08:37:28.402653 | 2018-07-25T21:32:35 | 2018-07-25T21:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | h | pointCloud.h | #ifndef POINTCLOUD_H
#define POINTCLOUD_H
#include "includes.h"
/*
* Stores point cloud from text file into a point cloud vector.
*
* @params
* path to file (string)
* reference to pointcloud (vector<point_XYZIRL>)
* @return 0 if successful, 1 if not
*/
int getPointCloud(std::string pathToFile, std:... |
feb52494694a78e605d6ecae115c10cefaf3ffed | 1d4deb56e502368ce79d19435a872e1991c37438 | /libs/remove_placeholders.hpp | 61e6e35bc0cefe1a6324b4011a01261ba8edee06 | [
"Apache-2.0"
] | permissive | wellington/go-libsass | 0bf6668d219403135569b4092df63db6ffc7ad4e | e1cda027356ef54af876fd1aa0bd29cd28f6c43f | refs/heads/main | 2023-03-12T03:27:11.338561 | 2023-02-26T16:40:13 | 2023-02-26T16:40:13 | 34,211,333 | 206 | 42 | Apache-2.0 | 2023-02-26T16:16:59 | 2015-04-19T15:09:47 | C++ | UTF-8 | C++ | false | false | 79 | hpp | remove_placeholders.hpp | #ifndef USE_LIBSASS
#include "../libsass-build/remove_placeholders.hpp"
#endif
|
2346e1be5c2543023e69beb42b692424144902a5 | 9d3dc48dad6c6a45db62962a707d4f79313dce68 | /src/main.cpp | 72f9a07b3e549e93e5eec8132ab46b1436c1e083 | [
"CC0-1.0"
] | permissive | rhyswhitley/climvelope | e22aefd20a1e8d1d8838798fc92c1bdd94843794 | 7dcde9d999811f8275abf873d0bc820f45112ad8 | refs/heads/master | 2021-01-10T21:15:18.461996 | 2015-03-04T06:53:44 | 2015-03-04T06:53:44 | 31,635,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,333 | cpp | main.cpp | #include "main.hh"
/* This code represents a C++ encoded version of the STASH model first
* published by Martin Sykes et al. (1992). The model operates as per the
* formulations specified in that paper, but has been rewritten in C++ so that
* it can be manipulated through the R Statistical language via the RCPP
* ... |
2d4c1fda93a33601e1b8b2fbe4b967f05636a3fd | acc1ed5eba0756cdb6eedfda1790a75a322a0564 | /FeatureServer/FileHelper.h | 29d53b68a95aa51d4c7876bfed871aca9dc9d7d1 | [
"BSD-3-Clause"
] | permissive | GaryZouchg/muduo | 4a571665571b6627258f57e5c00ec9b3e95a9ce0 | e213b979c91544f9cbf21c8ff8c38ec51b6b3433 | refs/heads/master | 2020-04-29T17:23:38.308790 | 2019-06-25T12:47:22 | 2019-06-25T12:47:22 | 166,192,098 | 0 | 0 | NOASSERTION | 2019-01-17T08:47:51 | 2019-01-17T08:47:50 | null | UTF-8 | C++ | false | false | 3,362 | h | FileHelper.h | //
// Created by test2 on 19-5-15.
//
#ifndef MUDUO_FILEHELPER_H
#define MUDUO_FILEHELPER_H
#include "hpsocketdef.h"
#include <unistd.h>
#include <sys/uio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string>
#define CHECK_IS_OK(expr) {if(IS_NOT_OK(expr)) retur... |
f76575ae2914a490212014740e9818ed262c5913 | 397ac94439bd8a0fd511f52b85fed95af29e21c1 | /TemplatePractice/Queue.h | 88e25fc21178307aacfee8f61469649e2d2aed5c | [] | no_license | esl000/GameAlgorizmLecture | c086682d6bb6ecf5bd21df866b1531ebd304d087 | 06be67cfccfb6682c5c411ba2b37c10d9e8e4c86 | refs/heads/master | 2020-05-04T14:44:20.910669 | 2019-06-05T07:16:59 | 2019-06-05T07:16:59 | 179,208,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | Queue.h | #pragma once
template<class T>
class Queue
{
class Node
{
public:
T _data;
Node* _next;
};
Node* _head;
Node* _tail;
int _size;
public:
Queue();
bool IsEmpty();
int Size();
void Enqueue(T item);
T Dequeue();
void Print();
};
#include "Queue.inl"
|
a1eecb680fea7be22a1d9dd004df5cd4dc884242 | 0f30d43960d46961688497af9004c2f154d71877 | /format/target/cpp/ts/include/utest/_Dispatcher/EventException.h | 9e6a477e79a72a258b28c0c82014b55d97e7aa36 | [
"MIT"
] | permissive | mboussaa/haxe-testing | 77d2c44596f92d3b509ad2e450f61d2e640eb9a3 | 930bd6e63c8cb91a4df323d01ae518d048c089ba | refs/heads/master | 2021-01-17T10:20:07.126520 | 2016-06-02T10:00:49 | 2016-06-02T10:00:49 | 59,005,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 1,110 | h | EventException.h | // Generated by Haxe 3.3.0
#ifndef INCLUDED_utest__Dispatcher_EventException
#define INCLUDED_utest__Dispatcher_EventException
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(utest,_Dispatcher,EventException)
namespace utest{
namespace _Dispatcher{
class EventException_obj : public hx::EnumBase_obj
{
t... |
0d5ecf12d64060a2196a09e4f5ec60b2819ad2ab | c4165e745412ade20a59bbaad5755ed8f1f54c6a | /Code/Algorithms/ITK/include/mapITKMultiResImageRegistrationAlgorithm.tpp | 87c0cace435352ab4dd3bd56c27113eea55dcb66 | [] | no_license | MIC-DKFZ/MatchPoint | e0e3fb45a274a6de4b6c49397ea1e9b5bbed4620 | a45efdf977418305039df6a4f98efe6e7ed1f578 | refs/heads/master | 2023-06-22T07:52:46.870768 | 2023-06-17T07:43:48 | 2023-06-17T07:43:48 | 186,114,444 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 14,705 | tpp | mapITKMultiResImageRegistrationAlgorithm.tpp | // -----------------------------------------------------------------------
// MatchPoint - DKFZ translational registration framework
//
// Copyright (c) German Cancer Research Center (DKFZ),
// Software development for Integrated Diagnostics and Therapy (SIDT).
// ALL RIGHTS RESERVED.
// See mapCopyright.txt or
// http... |
cd844de7de1598630eebfd05ca439674e67b2df0 | 6c6bb201c0dce86a053dfb9f4e8b2f26d0892fca | /fuelflashmove.h | 650ee67b472c1bd3fdf2acf028fff2454a1937b2 | [] | no_license | End1-1/FlashCards | 076481f5bb263e42beba879be4612c7c279de2be | e8609f440894dd4eab389397c0db91af0abfc896 | refs/heads/master | 2022-11-07T18:39:02.336469 | 2022-10-17T21:22:47 | 2022-10-17T21:22:47 | 251,817,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | h | fuelflashmove.h | #ifndef FUELFLASHMOVE_H
#define FUELFLASHMOVE_H
#include "dialog.h"
namespace Ui {
class FuelFlashMove;
}
class FuelFlashMove : public Dialog
{
Q_OBJECT
public:
explicit FuelFlashMove();
~FuelFlashMove();
void setMove(int m);
FuelFlashMove &setDoc(int id);
private slots:
void on_btnCancel_c... |
3e06ff5362f294d4d94373fa5398dfc4f829b6aa | 389d0f93ef7bc3b11d5bbf739e5e12a2c33cbd6c | /src/test/agrad/matrix_test.cpp | d170688db00388d3753d344e8be7ae79d53d87f3 | [
"BSD-3-Clause"
] | permissive | jrising/jarising-stan | bfae03953ce67af6dc02cb5bf9830a6fd62536d2 | 97fcb1d8a3c9e5403405243598c101ee7b2f3052 | refs/heads/master | 2016-09-05T13:28:27.867469 | 2013-02-10T13:33:49 | 2013-02-10T13:33:49 | 32,218,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120,880 | cpp | matrix_test.cpp | #include <gtest/gtest.h>
#include <stan/agrad/matrix.hpp>
// FIXME: add tests for Eigen NumTraits
typedef stan::agrad::var AVAR;
typedef std::vector<AVAR> AVEC;
typedef std::vector<double> VEC;
AVEC createAVEC(AVAR x) {
AVEC v;
v.push_back(x);
return v;
}
AVEC createAVEC(AVAR x1, AVAR x2) {
AVEC v = createA... |
1fa72948b2b4cdb3cec78c7d6fcc995a5be7da6e | 1aa5bc8c1a642851960555126c07eb1ea1e478dc | /SPOJ/CSUMQ/27034656_WA_0ms_0kB.cpp | 86b47b64d2d518d98ef1494d54ca73df914f8ba4 | [] | no_license | mehediishere/Competitive-Programming | 53bceaa5132943914b96bb0a107b9de7715e1294 | c10e84c75b821f6e1f2ac402b481856576815e9b | refs/heads/main | 2023-04-18T06:46:45.919779 | 2021-04-29T03:17:37 | 2021-04-29T03:17:37 | 359,342,615 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | 27034656_WA_0ms_0kB.cpp | #include<iostream>
using namespace std;
int main()
{
int n,q,sum=0,x,y;
cin>>n;
long int arr[n+1];
for(int i=0; i<n; i++)
{
cin>>arr[i];
}
cin>>q;
for(int i=0; i<q; i++)
{
cin>>x>>y;
for(int j=0; j<=y; j++)
{
sum = sum+arr[j];
}
... |
2c3c3e6cc4a6e732ecac318d57f405bd21cf7c14 | 1cf6e75514048fa0c5937fd3a5b15cd10c123583 | /solutions/273/Peter/main.cpp | e42430518bf21aff47e71c20acadc6f32b626661 | [] | no_license | peterwzhang/DCP-Solutions | 6e42b89b674be905c93cff9c6d092c3dac64398f | 9acc6fd7d85a397cda72a6dd091c82f0127edeb0 | refs/heads/main | 2023-06-02T23:40:01.179524 | 2021-06-21T18:43:28 | 2021-06-21T18:43:28 | 360,972,594 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
/*
Array is sorted so we should look at binary search
*/
bool fix_point_exists(vector<int> array) {
int start = 0;
int end = array.size() - 1;
while (end > start) {
int mid = (start + end) / 2;
if (array[mid] == mid)
... |
a0cea973fa83a626214f38c027d7a9bbab18082f | b91e903b7c3ceec22eaecda0b36637bd5a40b49b | /FlyPlane/LoadingScene.cpp | 0f2f5e4a0607aa8591d099b291979dc6b08b5d07 | [] | no_license | Lonelyleavesi/C_project_test | a49764939c4898e3809d779b9366d3d5116000c9 | 82442e6be7d9d5a8ebef198f851f505fd4e928f5 | refs/heads/master | 2020-03-23T04:18:19.116132 | 2018-07-21T11:22:29 | 2018-07-21T11:22:29 | 141,075,293 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,186 | cpp | LoadingScene.cpp | #include"LoadingScene.h"
#include"Constants.h"
#include"GameScene.h"
LoadingScene* LoadingScene::createScene(){
return LoadingScene::create();
}
//btn_finish.png 回到游戏
//game_loading1.png 加载小飞机 向右
//game_loading2.png 小飞机喷烟 向右
//game_loading3.png 小飞机喷烟2 向右
//gameover.png 游戏结束 恭喜 您的最终成绩为
//shoot_copyright.png 游戏开始标... |
239a8ce7e69fcd0ab71d26b75239390ca7e987e2 | 069256601d4f63c227665653ab5157881811d720 | /Jim-Scott-Neo/subject.cc | e05ab16454a7aa2a12694ba46b063e08fdf89350 | [] | no_license | shandian6033/Jim-Scott-Neo | d7ad3bdd26f5fc775e4713a6f1283b585f79fbe1 | 5a229bac965c25881c31c1d9632db6df93d1c5ab | refs/heads/master | 2021-08-23T12:25:45.135893 | 2017-12-04T22:25:22 | 2017-12-04T22:25:22 | 112,104,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | cc | subject.cc | #include "subject.h"
void Subject::attach(Observer* p) {
who_looks_at_me.emplace_back(p);
}
void Subject::notifyObservers() {
for (auto &it : who_looks_at_me) it->notify(*this);
}
|
5c081ee8c5ebade11d81600bae241410f9222d48 | 78c40ecbe1a1711182c6fd38f1683e4a0b7d1b3e | /EnigmaMachine/src/EnigmaMachine.cpp | 68ddce7a872761d1e16a08000d5af0a5d7112231 | [] | no_license | Joseph-Durrans/enigma-machine | 611264f547b996abdf50259fbf2adbebdc8fc580 | c5afeafe155a073b1f8ce9bf6a02de271ef1e97b | refs/heads/master | 2023-04-10T02:27:48.278781 | 2021-04-10T11:27:40 | 2021-04-10T11:27:40 | 326,230,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | cpp | EnigmaMachine.cpp | #include "headers/Rotors.h"
#include <iostream>
int main()
{
Rotors rotor(1,1,1);
std::cout<<rotor.EncodeCharacter(0)<<std::endl;
}
|
ad4f3d6711243e19ec91d281688dc0c3c838fc29 | 4dbe7cb8665cc4e183d948d1bd0664031ba287fa | /src/gtpV2Codec/ieClasses/pTmsiIe.cpp | f8cedc01ed8bd0166256c8ea2942881bfaab67d7 | [
"Apache-2.0"
] | permissive | aggarwalanubhav/Nucleus | 1356a58201cb6aecd44662420a40413102dde85c | 107113cd9a1b68b1a28b35091ed17785ed32d319 | refs/heads/master | 2023-06-10T12:09:44.316674 | 2021-07-06T09:03:18 | 2021-07-06T09:03:18 | 365,923,062 | 0 | 1 | Apache-2.0 | 2021-05-18T09:16:19 | 2021-05-10T05:01:58 | C++ | UTF-8 | C++ | false | false | 1,941 | cpp | pTmsiIe.cpp | /*
* Copyright 2019-present Infosys Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
/******************************************************************************
*
* This is an auto generated file.
* Please do not edit this file.
* All edits to be made through template source file
* <TOP-DIR/scripts/GtpV2... |
d41b6fc43f9acbfc7ca6d2b821043bb02d232c27 | 7b016fa49d8626442cfce41dc6625db597137735 | /cppConcreteClassUART/src/uart.hpp | f7afb5362f578798220e4ffb867325d2760d0a2f | [] | no_license | stuianna/embeddedCodeSizeComparison | 21eb814cce1a3ea0278c1724776a05a07610ada0 | 460dda063a0323eb00516c3497fb0ae17d04a697 | refs/heads/master | 2021-03-24T06:32:55.990438 | 2020-03-15T18:36:52 | 2020-03-15T18:36:52 | 247,525,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | hpp | uart.hpp | #ifndef _USART_HPP
#define _USART_HPP
#include <stdint.h>
class cUART{
public:
cUART() = default;
~cUART() = default;
void init();
bool put(uint8_t byte);
private:
void gpioInit();
};
#endif
|
3b8a30369bf6ac8345af0efab22c878bb56cf7e5 | 9030ce2789a58888904d0c50c21591632eddffd7 | /SDK/ARKSurvivalEvolved_StructureTurretBaseBP_BaseHeavy_functions.cpp | b70250238cbe7027fb0fde1632ac237a3b00aaf0 | [
"MIT"
] | permissive | 2bite/ARK-SDK | 8ce93f504b2e3bd4f8e7ced184980b13f127b7bf | ce1f4906ccf82ed38518558c0163c4f92f5f7b14 | refs/heads/master | 2022-09-19T06:28:20.076298 | 2022-09-03T17:21:00 | 2022-09-03T17:21:00 | 232,411,353 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 11,844 | cpp | ARKSurvivalEvolved_StructureTurretBaseBP_BaseHeavy_functions.cpp | // ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_StructureTurretBaseBP_BaseHeavy_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//--------------------------------------------------... |
259dead7fc8010fcf21ede357138b3fec3252f18 | 947fe25967ee91f4cccb4ec5f2ce7c503ed4a399 | /CS12/LABS/week1Lab/program1/lab1program2func.cpp | cb97ef40aa88eac941566b0fd5fafc8ef8946cd9 | [] | no_license | jragni/C-Algorithms-and-Projects | 0885c6b5e55319a5bc218c1e0e193b2e62578fcb | 886b4e99196851551e5468709256016649498a0c | refs/heads/master | 2021-01-02T02:58:24.609094 | 2020-12-25T13:42:49 | 2020-12-25T13:42:49 | 239,461,975 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | cpp | lab1program2func.cpp | #include <string>
#include <iostream>
using namespace std;
bool isPalindrome(const string &s){
for(int i = s.size()-1; i>=0 ; i--){
if(s[i] != s[s.size()-i-1]){
return false;
}
}
return true;
}
bool isPalindrome(int s){
string new_s = to_string(s);
return isPa... |
57fc707f6e08145a2718886a5c190469a4b05bc6 | bc2379ee67f75bdb3a1c3a68496fd1af1d4f6963 | /Algos - cpp/RankingEngine/RankingEngine/tfidf.cpp | f377fd17f2dfac1b310a6cc83738a64b149154a0 | [] | no_license | codingpersonal/practiceCodes | d4c90c798c012bf26d976e14230ae113d7d911f5 | 6754362d41238d0f6feb492a2faa6b1efcdf11d7 | refs/heads/master | 2021-01-10T13:12:00.335402 | 2017-04-18T18:19:48 | 2017-04-18T18:19:48 | 45,518,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | cpp | tfidf.cpp | #include "tfidf.h"
#include<math.h>
#include<string>
#include<iostream>
using namespace std;
tfidf::tfidf(int docCount):numOfDocs(docCount){
}
tfidf::~tfidf(){
}
double tfidf::computeIdf(int docWithSearchTerm)
{
if(docWithSearchTerm == 0)
return -1;
else
return(log(double(numOfDocs)/docWithSearchTerm));
}
i... |
a1f904d08ad0724a9a01fc07e7dda2f53c925ced | da86d9f9cf875db42fd912e3366cfe9e0aa392c6 | /2019/solutions/E/HHH-Shumen/cred.cpp | 8991130757e1ed5815b99cd424a86c06dcc0f634 | [] | no_license | Alaxe/noi2-ranking | 0c98ea9af9fc3bd22798cab523f38fd75ed97634 | bb671bacd369b0924a1bfa313acb259f97947d05 | refs/heads/master | 2021-01-22T23:33:43.481107 | 2020-02-15T17:33:25 | 2020-02-15T17:33:25 | 85,631,202 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | cred.cpp | #include<iostream>
using namespace std;
d (int a)
{
int hil = a/1000%10;
int stot = a/100%10;
int des = a/10%10;
int ed = a/1%10;
return a+des+ed;
}
int main()
{
int n, m, br=0;
cin>>n>>m;
while (d(n)<m)
{
if (br<d(n))
{
br++;
cout << br << endl;
}
}
re... |
f272790f82ada796b873f6eeb043e1fcdb835d00 | 00c5584c2f7df4653fcf80fad31642e226d5be81 | /src/core/Controller.cpp | 556ef8ffbea8a6e3b6101b2000af51e00b3a3054 | [] | no_license | konechnnyigellian/tensorflow | 67fe7c0ab35a3f99426c3457dcbd2985967cb62a | 050947d4d638a00e917f5d3b8463748735df0977 | refs/heads/master | 2022-12-29T22:56:43.092690 | 2020-10-18T18:24:55 | 2020-10-18T18:24:55 | 305,166,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | cpp | Controller.cpp |
#include "core/Controller.h"
#include "backend/cpu/Cpu.h"
#include "core/config/Config.h"
#include "core/Tenserflower.h"
#include "crypto/common/VirtualMemory.h"
#include "net/Network.h"
#include <cassert>
tenserflow::Controller::Controller(Process *process) :
Base(process)
{
}
tenserflow::Controller::~Con... |
15f7b67ccb45bab2a9d15c1db93378b55f947b38 | 4bbd6c2626c2e47745c42114f2254d1890529707 | /Zeroengine/ZeroEngine Test/ZeroEngine Test/include/ZeroFxBlurV.h | f6d33e9b461622fc2439d6c9ad15f944397a8845 | [
"MIT"
] | permissive | sunrinjh/2020GamPuSojeon | def168984a3a5142123990369413a48583f61da9 | 5d8e7e2739273a965c1a60675a29bc44c54679e6 | refs/heads/master | 2022-12-02T02:47:42.287478 | 2020-08-14T08:01:03 | 2020-08-14T08:01:03 | 286,414,602 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | ZeroFxBlurV.h | #pragma once
#include "ZeroIShader.h"
class ZeroFxBlurV : public ZeroIShader {
private:
float time;
float beginTime;
float blur;
public:
ZeroFxBlurV(float _time, char* _renderPage);
~ZeroFxBlurV();
void Update(float _eTime);
};
|
626d0a4d7c0d08e56ca3bf9794f8e6929cf3c30e | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /tests/Aql/SortLimitTest.cpp | 259bc69ee3a351e6d2a38da2218ed3c066a88f31 | [
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"BSL-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 12,726 | cpp | SortLimitTest.cpp | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
a5dea746046ebbf78c4bddc677efcc33d577dd07 | 0625713361c2095fc89109ecb7eca0fd944fa85b | /Source/FPS/Private/FPSCharacter.cpp | c88df5045ff0fe0d290a50ce2411d0addb1b58a7 | [] | no_license | nashnie/FPS | 70dd94332f966f507635b05f2faf8d9eef4b61ae | 63aff8ae2c4010999259175d0c5bb9719418df8d | refs/heads/master | 2020-03-28T13:44:32.574847 | 2018-09-15T10:35:44 | 2018-09-15T10:35:44 | 148,424,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,497 | cpp | FPSCharacter.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "FPSCharacter.h"
#include "Camera/CameraComponent.h"
#include "GameFramework/SpringArmComponent.h"
#include "GameFramework/PawnMovementComponent.h"
#include "FPSWeaponActor.h"
// Sets default values
AFPSCharacter::AFPSCharacter()
... |
199a583dfcf9cc1b1c092d3f45b80ddda1eef00d | 4379b8a65c114925be6aa3e02ec0da776f8d893c | /Source/BeConverter.cpp | 9c72f4010ecdc1fad8db23d3cbc1b398c5a856cd | [
"BSD-3-Clause"
] | permissive | Teknomancer/beconverter | a2cdf6d83fe64e6224668b6dfb3b36652a86ae9d | b7dae5e63cbefd3384cab5b9b8111a09dd7d2560 | refs/heads/master | 2023-01-05T21:58:40.108299 | 2022-12-31T16:33:06 | 2022-12-31T16:33:06 | 207,756,491 | 1 | 0 | BSD-3-Clause | 2022-12-31T16:33:07 | 2019-09-11T07:59:48 | C++ | UTF-8 | C++ | false | false | 12,778 | cpp | BeConverter.cpp | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2001 Ramshankar (aka Teknomancer).
// Copyright (c) 2023 OscarL.
// All rights reserved.
#include "message_labels.h"
#include "BeConverter.h"
#include "MainWindow.h"
#include "OptionsWindow.h"
#include "ConverterWindow.h"
#include "MainView.h"
#include "Box1.h"... |
96c6249989b3149c914be05bc6b9a1fd2dafe5ec | 4d2db5d27a7780c980a2b07f6960d47911989d17 | /quantum dot/Molecule.h | 3fadc2d61d89682cb47fe6d5123dd30ef7ae040f | [] | no_license | RocketSci2014/Single-Molecule-Simulations | 78049621c6029f4cf5919f1682e422a148e7c9c5 | 78cfadd4866dc94a87094fc9736a267001ff4bf7 | refs/heads/master | 2021-05-15T13:43:10.866623 | 2018-07-01T00:02:36 | 2018-07-01T00:02:36 | 107,220,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | Molecule.h | #pragma once
#ifndef MOLECULE_H
#define MOLECULE_H
#include "global.h"
#include "randomcup.h"
using namespace std;
class Molecule:
public randomcup
{
public:
double timing;//timing of the next photophysics event
MoleculeState state;//state of the molecule
MoleculeType type;//type of the molecule
int p... |
55599bf7b5fb058ca4423186564c85b1ab32cea0 | 5c24a829d1ce3e9cc9f48da120dc02a0b49ded54 | /Widgets/Weekendar.h | dba6044c0ef10ec26bfc8e264eddca105c2e356f | [] | no_license | samyhocine/TinyUI | 3989bbb69938e9cefc2ba7ac409baf881a8063a4 | 18c5e31e1a6da20accb09c26adc3557b00780253 | refs/heads/master | 2022-03-03T12:51:57.325281 | 2019-11-09T15:17:13 | 2019-11-09T15:17:13 | 220,659,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | h | Weekendar.h | #ifndef WEEKENDAR_H
#define WEEKENDAR_H
#include <vector>
#include "../Elements/Widget.h"
#include "../Elements/Button.h"
#define BUTTON_WIDTH 15
class Weekendar : public Widget
{
public:
Weekendar(uint16_t x, uint16_t y, uint16_t w, uint16_t h, char days[TXT_SIZE], uint8_t days_r, uint8_t days_g, uint8_t days... |
1b37af73953d037a86f85539672109bf7ae89669 | 55126026c3607a5012ce413538c08e0825ec26b8 | /clrc_main.cpp | ba1b35a10f5f0330806b20524cb0ebd8fe906050 | [] | no_license | sophy228/AokoContainer | e146a4e1c567325520cd13cc85dfa6ea708da1cf | ec6f3c46a9db3c851c849d2f0b046267f079fec0 | refs/heads/master | 2021-07-13T14:01:01.502803 | 2019-11-13T01:48:44 | 2019-11-13T01:50:30 | 221,589,016 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | cpp | clrc_main.cpp | /*Copyright (C) 2019 Zhongmin Wu
License - MIT
=============
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer... |
133d0a44e78839a2506c93a6ff3c5e6f931449e1 | 2226c2e048b0a2525af9fdd065d3ce8ad9689cde | /src/modules/stats/t_test.hpp | 12ba56a24965920a572b95902b8b614d95221986 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-warranty-disclaimer",
"MPL-2.0",
"mif-exception",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"GPL-2.0-only",
"LicenseRef-scancode-free-unknown",
"BSL-1.0",
"MIT",
"GPL-2.0-or-later",
"Python-2.0",
"BSD-2-Clause"
] | permissive | apache/madlib | 5bc3a5451395a942f85b514baed71e7571b2025a | d9a4ee58ad40597ec346c442e80bc8e6c95bffe2 | refs/heads/master | 2023-09-06T07:23:10.940393 | 2023-04-19T21:18:21 | 2023-04-19T22:19:46 | 42,763,345 | 335 | 83 | Apache-2.0 | 2023-09-05T16:50:32 | 2015-09-19T07:00:06 | C++ | UTF-8 | C++ | false | false | 874 | hpp | t_test.hpp | /* ----------------------------------------------------------------------- *//**
*
* @file t_test.hpp
*
*//* ----------------------------------------------------------------------- */
/**
* @brief One-sample t-Test: Transition function
*/
DECLARE_UDF(stats, t_test_one_transition)
/**
* @brief Two-sample t-Test... |
c26ac18b4166b7cffac1726a046b1e1fe2b6d072 | e3a97b316fdf07b170341da206163a865f9e812c | /sprokit/processes/core/refine_detections_process.h | 38493e8e2f401177890eb73fe9d6c57f454f429e | [
"BSD-3-Clause"
] | permissive | Kitware/kwiver | 09133ede9d05c33212839cc29d396aa8ca21baaf | a422409b83f78f31cda486e448e8009513e75427 | refs/heads/master | 2023-08-28T10:41:58.077148 | 2023-07-28T21:18:52 | 2023-07-28T21:18:52 | 23,229,909 | 191 | 92 | NOASSERTION | 2023-06-26T17:18:20 | 2014-08-22T15:22:20 | C++ | UTF-8 | C++ | false | false | 1,229 | h | refine_detections_process.h | // This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
#ifndef ARROWS_PROCESSES_REFINE_DETECTIONS_PROCESS_H
#define ARROWS_PROCESSES_REFINE_DETECTIONS_PROCESS_H
#include <spr... |
5b89c6cc065b9c224846c793b35d009d2b6523d3 | 22769eb259b3a8709fa3f0b05424b30767f93794 | /src/model/Solution.h | e195fa5821f1ffcadc1a728b7ce123d0d0a5fe3f | [] | no_license | Krixtani/CCP | 45b93546470e368a2205f64314dbb918b6767d2c | 45bcfe7c48ba1515bb47c928a891db0ecd0e86d2 | refs/heads/master | 2022-03-09T00:32:47.342116 | 2019-10-23T14:20:51 | 2019-10-23T14:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,859 | h | Solution.h | /*
CCP - Capacited Clustering Problem.
Copyright (C) 2009 Wagner Reck (wagner.reck@gmail.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... |
a10c0191dcbebed453a6517506e8c5a37470e9db | 198c869d92b6bc2ae311c0e74ec9251e21dfeaa0 | /DirectX3D_FrameWork/cSceneChangeEffect.h | 52a858231b38cef41fbd45759b6728ab1c4fa29b | [] | no_license | DalDalKiRin/D3DX9_Team | e13b1145e19662b9c33c4a08f310dd296327347c | 9887c9171315f50a2ab9a501b17219d895983435 | refs/heads/master | 2021-01-18T05:36:04.700382 | 2016-10-15T06:07:44 | 2016-10-15T06:07:44 | 68,680,072 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,056 | h | cSceneChangeEffect.h | #pragma once
#include "cScene.h"
class cSceneChangeEffect
{
private:
float m_TimeFactor; // # 교체 시간 진행 비율 (중요) #
LPDIRECT3DTEXTURE9 m_pPrevRenderTexture; // 렌더링 될 이펙트 이전 텍스쳐
LPDIRECT3DTEXTURE9 m_pNextRenderTexture; // 렌더링 될 이펙트 다음 텍스쳐
float m_TotalTime; // 교체 시간
float m_DeltaTime; // 교체 진행 시간
float m_... |
08fda5dbcfa9c68333873bf79ac1cef67bb55b83 | 39bd575aa2b588b3ae6118166ba73ec84dea56e7 | /Code/Time and Oled Screen.ino | dc96bfdee7bbaa61671c79d6c0253c2f79032fcd | [] | no_license | 5l1v3r1/software_enginering_home_automation | 3c80651c9620d869ef0bc424631a6c1ce1c948e0 | 17363dca221aba8617b3a05d264ce04d4bb8e793 | refs/heads/master | 2022-03-29T20:09:14.209804 | 2019-12-04T21:25:57 | 2019-12-04T21:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | ino | Time and Oled Screen.ino | #include <Wire.h>
#include "RTClib.h"
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
RTC_DS1307 RTC;
void setup () {
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Seria... |
11b5b82531ee208c6803283bfefa5bba17c87033 | 6a61e361064f5dd5ae93c0b69adb7387701ca802 | /dependencies/tools/class/menu_opciones.h | ce4c5f9c0d5905b0e4d5c6e0931e0fe95d1ec825 | [
"Beerware"
] | permissive | TheMarlboroMan/winter-fgj5 | 66092b93ef00272a73efa34d67aa2beea16bed42 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | refs/heads/master | 2021-07-06T13:46:51.195913 | 2021-06-08T11:21:59 | 2021-06-08T11:21:59 | 44,922,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,790 | h | menu_opciones.h | #ifndef MENU_OPCIONES_HERRAMIENTAS_PROYECTO
#define MENU_OPCIONES_HERRAMIENTAS_PROYECTO
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <exception>
#include <algorithm>
/*
La representación interna de un menú de opciones de un único nivel en el que
cada opción puede tener N valores qu... |
347fe73b6120ad239f9fbcc10c2a3d95a82b1927 | 4d0300263d28fb461f285cc2c3dfd7c51621cb4d | /external/mpg123-1.13.1/ports/MSVC++/2008clr/mpg123clr/string.h | 8a5ae46c63e1bcc007c307f1c2fd388fe1f91eae | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only"
] | permissive | coronalabs/corona | 6a108e8bfc8026e8c85e6768cdd8590b5a83bdc2 | 5e853b590f6857f43f4d1eb98ee2b842f67eef0d | refs/heads/master | 2023-08-30T14:29:19.542726 | 2023-08-22T15:18:29 | 2023-08-22T15:18:29 | 163,527,358 | 2,487 | 326 | MIT | 2023-09-02T16:46:40 | 2018-12-29T17:05:15 | C++ | UTF-8 | C++ | false | false | 11,350 | h | string.h | /*
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
All rights to this work freely assigned to the mpg123 project.
*/
... |
cafabb660593252588ef3223ac3eeedf51600378 | 7b49b9e58cfd04c0c46b40e426250161d6a3d2c0 | /TexasHoldEm/ArrStack.cpp | db3490f0b0338c435e94ed923639ef6a8c04e1aa | [] | no_license | doranmartinez/TexasHoldEm | 429849b6c7b189f80f19b316c114d66368bb0fac | 2bda463834356e83c301742fc1bbc9b6d11a582a | refs/heads/master | 2020-05-07T16:10:57.968246 | 2019-09-18T18:37:31 | 2019-09-18T18:37:31 | 180,672,097 | 0 | 0 | null | 2019-04-10T22:16:21 | 2019-04-10T22:16:21 | null | UTF-8 | C++ | false | false | 539 | cpp | ArrStack.cpp | #include "ArrStack.h"
template <class T>
ArrStack<T>::ArrStack(int cap) {
items = new T [cap];
capacity = cap;
top = -1;
}
template <class T>
ArrStack<T>::~ArrStack() {
delete[] items;
}
template <class T>
bool ArrStack<T>::isEmpty() {
return top == -1;
}
template <class T>
bool ArrStack<T>... |
3bf80874de2ef5b41e6e8260b08d0bef452fc9a8 | 9e23cf5c92e9bd500265a9a7c52faf688d223063 | /include/parsers/where/ast_visitors.hpp | 2b6577d5cc555d42e032ccbcfc55eefd3faa087a | [] | no_license | Vilse1202/nscp | 043f74a53522189db1a494c24e6538ac68a23210 | c6643bde1c1dc7523f0b9088abb0f7a98df359af | refs/heads/master | 2021-01-18T06:32:04.913382 | 2013-08-25T12:18:51 | 2013-08-25T12:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,021 | hpp | ast_visitors.hpp | #pragma once
namespace parsers {
namespace where {
struct visitor_set_type {
typedef bool result_type;
value_type type;
visitor_set_type(value_type type) : type(type) {}
bool operator()(expression_ast & ast) {
ast.set_type(type);
std::cout << "WRR this should not happen for node: "... |
4b3eb5fdc909631dcd8ee883a8738a8539c3586c | d7a70833f2d3573d9eab615f69106de75ff644f1 | /CS530-code/code.11.17/scene.cpp | ddc67cc14e00c53734457b7dae50d33dc25a7ea2 | [] | no_license | JingxianFan/InteractiveCG | 8c3ffd01f3ff813a7b133b69df232a13a48d55f9 | 019fcfbe548d937b2b0b7d012270482b33bfc234 | refs/heads/master | 2021-01-21T21:19:35.970790 | 2017-06-19T20:49:42 | 2017-06-19T20:49:42 | 94,819,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,080 | cpp | scene.cpp | #include "scene.h"
#include "v3.h"
#include "m33.h"
#include <float.h>
#include <iostream>
#include <fstream>
using namespace std;
Scene *scene;
Scene::Scene() {
cgi = 0;
soi = 0;
// create user interface
gui = new GUI();
gui->show();
// create SW framebuffer
int u0 = 20;
i... |
5fd6371879d04fe7ce397c885d519f86a1a909c4 | 7956e0f2e31958426d89896ac67b6e17ab5f7c99 | /kerucut berputar/kerucut berputar/main.cpp | 551e540b3fbb5b498ffe7c1e0e7a33ac05dca97c | [] | no_license | pringgojs/pengolahan-citra | 55f4452cf8e697559f149ad24efe2777ee57cf7f | b9098c3fcc51d5435b581103fe501d1c03c9bfe8 | refs/heads/master | 2022-12-19T04:58:47.064559 | 2020-10-01T23:07:13 | 2020-10-01T23:07:13 | 300,447,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,638 | cpp | main.cpp | //
// main.cpp
// kerucut berputar
//
// Created by Pringgo Juni Saputro on 24/11/18.
// Copyright © 2018 Pringgo Juni Saputro. All rights reserved.
//
#include <iostream>
#include <OpenGL/gl.h>
#include <OpenGl/glu.h>
#include <GLUT/glut.h>
#include <stdio.h>
#include <math.h>
void init(void)
{
glClearColor (... |
6c7dbfbd5f1f78b6473058c4a35debb5f6214b99 | 8ed4a8b18aa5f70cc2067f966e9f418a6d3d6c78 | /behavioral/global_command_trigger_factory.hpp | 8536c6dabeb048a380c08a7cfb73c7f118200114 | [] | no_license | SiChiTong/behaviouralPlanner | c269bc6fd8233141720b29e9534fd788e3161256 | 4ce317cfa1ee636af53465ca20e6ca37539736b4 | refs/heads/main | 2023-03-19T09:49:38.978964 | 2020-10-13T01:05:53 | 2020-10-13T01:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | hpp | global_command_trigger_factory.hpp | #pragma once
#include "abstract_trigger_factory.hpp"
#include "global_command_state.hpp"
#include "global_command_trigger.hpp"
namespace path_planning { namespace behavioral {
class GlobalCommandTriggerFactory : public AbstractTriggerFactory<GlobalCommandTrigger, GlobalCommandState, GlobalCommandTriggerID> {
... |
3baddc0cfe748db4bdaf80c51541b1570d4d8ddd | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/pdfium/core/fpdfapi/page/cpdf_transparency.cpp | 811160dd41cf7a8da8bd535716c9a826e340333f | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 420 | cpp | cpdf_transparency.cpp | // Copyright 2018 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/fpdfapi/page/cpdf_transparency.h"
CPDF_Transparency::CPDF_Transparency() = default;
CPDF_Transparency::CPDF_Transparency(const CPDF_Transparency& other) = defaul... |
8cf632bba2f0ae0b65a3924839b76dbe9796793f | 82dc3cc4c97c05e384812cc9aa07938e2dbfe24b | /tahoe/src-mirror/primitives/globalmatrix/aztec/AztecMatrixT.cpp | 85dcbbc154e02ec5d6f60b43c9784a5ade4a1e93 | [
"BSD-3-Clause"
] | permissive | samanseifi/Tahoe | ab40da0f8d952491943924034fa73ee5ecb2fecd | 542de50ba43645f19ce4b106ac8118c4333a3f25 | refs/heads/master | 2020-04-05T20:24:36.487197 | 2017-12-02T17:09:11 | 2017-12-02T17:24:23 | 38,074,546 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74 | cpp | AztecMatrixT.cpp | /home/saman/Tahoe/tahoe/src/primitives/globalmatrix/aztec/AztecMatrixT.cpp |
73a09709e20c4af6b5ed482b5b7d8e7852d2557a | 1673981f50c4594ec9c17285d9b4cf1e31585b8c | /HackerEarth - August Circuits '20/Anti-palindrome strings/sol.cpp | 588e80bac23c5a8d957fa055506e3b773fc92d53 | [] | no_license | Aman2241/Coding-Solutions | d1b2dcb923941fa4167f8f1b8839a9c46c38bd2d | 53fdb1be86c46d4eeac5953da852275826c56cf0 | refs/heads/master | 2022-12-14T10:57:32.992554 | 2020-09-12T17:52:23 | 2020-09-12T17:52:23 | 288,506,665 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | cpp | sol.cpp | #include<bits/stdc++.h>
using namespace std;
typedef vector <int> vi;
typedef pair< int ,int > pii;
#define endl "\n"
#define sd(val) scanf("%d",&val)
#define ss(val) scanf("%s",&val)
#define sl(val) scanf("%lld",&val)
#define debug(val) printf("check%d\n",val)
#define all(v) v.begin(),v.end()
#define PB push_back
#d... |
d17fec21be48ea589f9f5fd6ce52dbdbd0ba36b8 | 234efff5291e2ab5e87ef71eb8ad80ec3b1854a2 | /TestingHexThrombus/processor15/constant/polyMesh/faceProcAddressing | 6ba47749c991c590845b770e1b436284ce316196 | [] | no_license | tomwpeach/thrombus-code | 5c6f86f0436177d9bbacae70d43f645d70be1a97 | 8cd3182c333452543f3feaecde08282bebdc00ed | refs/heads/master | 2021-05-01T12:25:22.036621 | 2018-04-10T21:45:28 | 2018-04-10T21:45:28 | 121,060,409 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248,710 | faceProcAddressing | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
... | |
a5c7ee8741712e3d14dc3a75851af4bb4dcbfd35 | b1a3b693af6a9191658bbdcf062a7341588a21d9 | /functions.h | b27aac61897b4ea20b8255d8a4a5ec4c1b6e1e07 | [] | no_license | AngryThundrWafl/csci-2421-final_proj | bd1671202372d11b9d5ec2ba32c7a1b7a4efcc57 | 5330ca59e4b6b21f8baf2a3609096def5d165514 | refs/heads/master | 2021-08-31T09:38:57.398139 | 2017-12-20T23:10:41 | 2017-12-20T23:10:41 | 114,938,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | h | functions.h | //
// Created by Brian on 5/12/2016.
//
#ifndef ADDRESSBOOKCLEANERVERSION_FUNCTIONS_H
#define ADDRESSBOOKCLEANERVERSION_FUNCTIONS_H
#include <iostream>
#include <fstream>
#include "avltree.h"
#include <vector>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
#include<stdio.h>
using namespace ... |
0f7835d07001bb88d19d2b2f9b29885cbeaa489e | d56daf4129d45d7893402ac5d261e6271cb4a68f | /2. Arrays/OddOccurrencesInArray.cpp | b60f9786bfcdeb7fc173371a9cabb95a7103dd27 | [] | no_license | DongChyeon/Codility-Solutions | cb28b61f78f6f2dccdae3f0227f645a1346c0b45 | df861b8959a4966c1e4a43403ad70d3bfad1786c | refs/heads/master | 2023-02-08T17:38:23.678279 | 2020-12-31T02:54:55 | 2020-12-31T02:54:55 | 281,297,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | cpp | OddOccurrencesInArray.cpp | #include <vector>
int solution(vector<int>& A) {
int num = A[0];
for (int i = 1; i < A.size(); i++) {
num = num ^ A[i];
} // XOR 연산을 통해 쌍이 되는 숫자는 사라지고 쌍이 아닌 숫자만 남게됨
return num;
} |
df4556fb6c39c7a49b6acef35386f47bcaca29f2 | f97ce0a588e023675eaa980f2f105f0a9c25ce18 | /UVa/v1/107.CPP | b7f2847ccce8bd05f51443ad0fb9c431e96e3281 | [] | no_license | anindya028/Programming-Contest-Problems | a5c49653d990391a6e2003f2ec9d951222cabbe2 | 7038b6267432189de72539ef5ad046d38e730ee8 | refs/heads/master | 2023-03-17T06:27:38.339049 | 2021-02-23T22:58:06 | 2021-02-23T22:58:06 | 277,399,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | cpp | 107.CPP | #include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<algorithm>
using namespace std;
//#define Long __int64
#define Long long long
int main()
{
int a,b,n,k,i;
Long N,sum;
while(scanf("%d%d",&a,&b)==2)
{
if(!a && !b)
break;
if(a==1 && b==1)
{
printf("0 1\n")... |
73d044296dce1715bcfd4fd74337ded447aeac49 | 9850f4a8d9e326b906f22f97659b5a61bac441a9 | /CPP_Pool/cpp_d17_2018/ex02/OneTime.cpp | fa97d1cc1cf65d238c4905a93f7e7dc6873d0706 | [] | no_license | Nymrinae/EPITECH-Projects | 67d77e9d98177e5045dbd9868ddb993b08f0c763 | 9cad4819c086d5004e2325d5a416dc5ff1cfafe0 | refs/heads/master | 2022-02-14T02:12:44.177840 | 2022-02-03T11:48:08 | 2022-02-03T11:48:08 | 205,130,787 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 867 | cpp | OneTime.cpp | /*
** EPITECH PROJECT, 2018
** OneTime.cpp
** File description:
** Exersice 2 - Ave
*/
#include "OneTime.hpp"
OneTime::OneTime(const std::string &key)
{
this->_key = key;
this->_i = 0;
}
void OneTime::encryptChar(char c)
{
int base, key;
if(isalpha(c)) {
base = (c > 96) ? 97 : 65;
ke... |
4daae8245d830c4794680a7b141abed9d725be3c | 32e719f67e34ffe5c6a1d55a4f0778b07e3113b2 | /development/src/GXDLMSConverter.cpp | f32755fe5e2b5bc20945ebae477063d4e86d2573 | [] | no_license | rmoravcik/Gurux.DLMS.cpp | 269cf8f62ea678d8ecd7cf1169f661ed3a8ceb39 | 3a5ba29438001dd267e84381e00a3758bac8470e | refs/heads/master | 2020-06-13T13:10:36.297274 | 2016-12-06T08:27:20 | 2016-12-06T08:27:20 | 75,375,412 | 0 | 0 | null | 2016-12-02T08:16:25 | 2016-12-02T08:16:25 | null | UTF-8 | C++ | false | false | 14,104 | cpp | GXDLMSConverter.cpp | //
// --------------------------------------------------------------------------
// Gurux Ltd
//
//
//
// Filename: $HeadURL$
//
// Version: $Revision$,
// $Date$
// $Author$
//
// Copyright (c) Gurux Ltd
//
//------------------------------------------------------------... |
9cd6911212317f8b52a8a75701c64edf0045c02a | af7935e028b2a606d25972f9e20d6e346232c882 | /codingTest1.cpp | 51cf53c7a26b6682cc864ab1a712be3acd7480c1 | [] | no_license | HwangYoonSeong/Algorithm | 193445230dc640f60f2c4151428d941ad186e2f4 | 51afe0266762b88798ada725be95ba113c7e8762 | refs/heads/master | 2023-06-17T18:30:45.236936 | 2021-07-13T02:22:18 | 2021-07-13T02:22:18 | 297,814,414 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,723 | cpp | codingTest1.cpp | #include <string>
#include <vector>
#include <iostream>
using namespace std;
// 1-1번문제
//string solution(string phone_number) {
// string answer = "";
// for (int i = 0; i < phone_number.size(); i++) {
// if (i < phone_number.size()-4) {
// phone_number[i] = '*';
// }
// }
// /*for (char eter : phone_number) {
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.