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
13cd5bdecb4ec57996b1d5434696acb785d6b3b1
754a4e2d287898ae93bd572bf2edfbe465c6951a
/arduino_code/ros_libraries/kinetic/ros_lib/human_awareness_msgs/AnalyzedSocsigPerson.h
c4ab1d2090ec1b7527593c1bb49e8e98f634dba5
[]
no_license
vislab-tecnico-lisboa/vizzy_tactile_drivers
c183723daea5fd3acb1a9460719a81fb1db546a7
c2068ebf0abb3b60bc52f364a923544e435df935
refs/heads/master
2022-05-13T20:52:03.065784
2022-05-03T17:22:24
2022-05-03T17:22:24
90,271,857
1
0
null
null
null
null
UTF-8
C++
false
false
6,667
h
AnalyzedSocsigPerson.h
#ifndef _ROS_human_awareness_msgs_AnalyzedSocsigPerson_h #define _ROS_human_awareness_msgs_AnalyzedSocsigPerson_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "human_awareness_msgs/BodyPart.h" #include "human_awareness_msgs/OpenFaceFeatures.h" #...
8dc4de0c790488ffcfb7815462245be0ef810a94
8e3e9d528488eed9b08d9c6fca4bc8d911077805
/Sieve_of_Eratosthenes.cpp
53adf029eb8b0a9ceab7734f3db4da53fe13f17f
[]
no_license
Sam071100/CPlusPlus-OOPS
9856de4ebc4ce2846a4eddb374c8ea304589a245
b4fb82f8b16f1445919f5032a6a0f4f8eb32fe49
refs/heads/main
2023-08-15T16:44:02.574165
2021-09-06T08:57:04
2021-09-06T08:57:04
370,747,855
0
1
null
2021-10-02T11:31:39
2021-05-25T15:48:51
C++
UTF-8
C++
false
false
624
cpp
Sieve_of_Eratosthenes.cpp
#include <bits/stdc++.h> using namespace std; void sieveOfEratosthenes(int n) { bool prime[n + 1]; memset(prime, true, sizeof(prime)); for (int p = 2; p * p <= n; p++) { if (prime[p] == true) { for (int i = p * p; i <= n; i += p) { prime[i] = fals...
3966b619e55fe7f2a63eecf54fff5a3a24e63951
1d6cf2919e1cadb8dcf5cc8bbb69c5e19e1946ec
/class_training/0918-6.cpp
8e930264e6d72419288703a5eeec80dac6701085
[]
no_license
joey-z/autonomic
f4d9a3a684fdef3db202f63166bdbdbe003b1757
8b3bd656c5be15d5aff357e16810454cd233b0be
refs/heads/master
2020-03-28T08:06:20.774650
2018-12-27T11:48:36
2018-12-27T11:48:36
147,944,818
0
0
null
null
null
null
UTF-8
C++
false
false
444
cpp
0918-6.cpp
/************************************************************************* > File Name: 0918-6.cpp > Author: zoe > Mail: > Created Time: 2018年09月18日 星期二 20时50分46秒 ************************************************************************/ //使用while 循环实现程序 输出1-100 // #include <stdio.h> int main() { int n = 1; ...
350dccbbb3b8ce03051fa7e1e2abd08aeee2bf24
6d49421a68d84b0cd0e8400e10619982a1472158
/Torre.cpp
1db1658f18f36626a5386949aaa6c51367acee96
[]
no_license
kech37/tp-poo
51f82e8d7db9541dae36a38c0250ce6be961ac0a
955470a40dc4dcc02008a7eb41dea80dd4c44b61
refs/heads/master
2021-01-11T21:20:17.012153
2017-01-20T23:42:56
2017-01-20T23:42:56
78,765,231
0
1
null
2017-01-14T01:11:42
2017-01-12T16:38:29
C++
UTF-8
C++
false
false
710
cpp
Torre.cpp
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: Torre.cpp * Author: carlo * * Created on 12 de Janeiro de 2017, 18:49 */ #include "Torre.h" Torre...
8eb277e7bf3de452540cbc3df0b3023feb0bb092
8590b7928fdcff351a6e347c4b04a085f29b7895
/VIC_CropSyst/crop/calibration/calibrate_season_engine.cpp
5aa1978089effaf16bcf78d2155a2594a9f29bc5
[]
no_license
liao007/VIC-CropSyst-Package
07fd0f29634cf28b96a299dc07156e4f98a63878
63a626250ccbf9020717b7e69b6c70e40a264bc2
refs/heads/master
2023-05-23T07:15:29.023973
2021-05-29T02:17:32
2021-05-29T02:17:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,169
cpp
calibrate_season_engine.cpp
#include "calibrate_season_engine.h" #include "crop/crop_param_V5.h" #include "corn/format/binary/binary_file_fstream.h" #include "corn/file_sys/filename.h" #include "corn/math/compare.hpp" //ofstream test_GDD_out("GDD.dat"); //______________________________________________________________________________ Season...
244fd8b5f7b87499ff2e5e2c6dd4c92674b2be86
613fa33cba109498a4e7f27d01238c1f7795ce3d
/project/Constructor.h
7379e122e3eb52c3ae65a006dce05300e382a959
[]
no_license
SiyingJIANG/Compilateur
5c496904a4575ad8248caebfd8358fa0da648355
67d18a9e475d806d568070700619a2b68cabce37
refs/heads/master
2020-03-31T19:07:10.337660
2018-10-10T20:27:41
2018-10-10T20:27:41
152,485,565
0
0
null
null
null
null
UTF-8
C++
false
false
4,063
h
Constructor.h
// // Created by Gheorghe on 12-Mar-18. // #ifndef PROJECT_CONSTRUCTOR_H #define PROJECT_CONSTRUCTOR_H #include <antlr/subCBaseVisitor.h> class Constructor: public subCBaseVisitor { public: antlrcpp::Any visitProg(subCParser::ProgContext *ctx) override; antlrcpp::Any visitFunctionDef(subCParser::FunctionDef...
c6f9d43aca89ab2e58807d719b8c930b641c41cd
006f035d65012b7c5af15d54716407a276a096a8
/src/Core/src/sbt-core.cpp
671ec196803b72e29d879167067252474740871e
[]
no_license
rosecodym/space-boundary-tool
4ce5b67fd96ec9b66f45aca60e0e69f4f8936e93
300db4084cd19b092bdf2e8432da065daeaa7c55
refs/heads/master
2020-12-24T06:51:32.828579
2016-08-12T16:13:51
2016-08-12T16:13:51
65,566,229
7
0
null
null
null
null
UTF-8
C++
false
false
4,341
cpp
sbt-core.cpp
#include "precompiled.h" #include "assign_openings.h" #include "build_blocks.h" #include "convert_to_space_boundaries.h" #include "equality_context.h" #include "exceptions.h" #include "geometry_common.h" #include "guid_filter.h" #include "identify_transmission.h" #include "load_elements.h" #include "load_spaces.h" #in...
49a747300dab9ab2feddab8a5e7e6911195d597e
e70b8c9a6f71492db211d6ac8bf90860ca30a76e
/Segment Tree/2268번_수들의 합.cpp
e9e6577bf8aea76e14b2ba3219cdbf473aee963d
[]
no_license
orihehe/BOJ
b289031abf5736c7f9d933fa52a889d73de39614
6c78d53f8ec1a9251f252f913d5f8e3a6fdb14fc
refs/heads/master
2020-04-04T09:56:25.511131
2019-11-04T13:19:17
2019-11-04T13:19:17
155,836,795
3
1
null
null
null
null
UTF-8
C++
false
false
906
cpp
2268번_수들의 합.cpp
/* BOJ 2268 - 수들의 합 https://www.acmicpc.net/problem/2268 */ #include <cstdio> #include <algorithm> #define ll long long using namespace std; /* 🐣🐥 */ ll tree[2097152]; void update(int idx, int s, int e, int k, int val) { if (k<s || k>e) return; if (s == e) { tree[idx] = val; return; } update(idx * 2, s, (s ...
884c3f62ebc6f83dfe712dcccd1250585d2d8439
cb517177a1a2fc008285c84c6ab105c29967cfcc
/Competition/UVa11503.cpp
6fd9154965ac1fe4c8acbb545577d5a2dd44c69f
[]
no_license
cshung/Competition
8b4219593bfe28372ba82fbf923437988d862e2c
f534f37b34a0ef2351f4af3926ac864fed6dafc5
refs/heads/main
2023-08-29T03:25:35.042880
2023-08-16T15:32:45
2023-08-16T15:32:45
23,745,091
0
0
null
null
null
null
UTF-8
C++
false
false
2,964
cpp
UVa11503.cpp
#include "stdafx.h" // http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2498 #include "UVa11503.h" #include <iostream> #include <string> #include <map> #include <cstdlib> #include <stdio.h> #include <vector> #include <list> using namespace std; int find(vector<int>& social_network,...
546a8563866d2257724a0dba449171e1a2770278
3519dfe8e536508168d751fab6111ae21e8cf0a9
/MenuLlamarFunciones.cpp
5e9a9cc3e9017e8181b31b34e4ca5d935f25456e
[]
no_license
villa97/codigos
464d648cd6f4a504cbff161d080b3b4f984e01df
178c741f815441ed008728391b783708d3b2fac6
refs/heads/master
2021-01-18T18:45:56.751839
2017-11-23T19:28:46
2017-11-23T19:28:46
100,521,079
0
0
null
null
null
null
UTF-8
C++
false
false
2,152
cpp
MenuLlamarFunciones.cpp
#include<iostream> #include <ctime> using namespace std; void Menu(); void llenar(int vec[], int tam); void mostrar(int vec[], int tam); void MostrarInverso(int vec[], int tam); void girarArriba(int vec[], int tam); void girarAbajo(int vec[], int tam); void Invertir(int vec[], int tam); int main() { int vec[10],menu,t...
eb2add8b30008b57cc2598b899c2f5bdaa1066a1
4a00a94923d938cd6c5a1bd4a9077f8f4a3c992b
/openFoam2/processor1/31/p
4f5ad2a2a7731fc146095389d07950d129136470
[]
no_license
mars2020/my_openfoam_2
c79813522ab0bb74fca9f3c6f4f4169a56d883b4
fda619bae0230cfb459aac15056ebea7e2d79b0e
refs/heads/master
2020-05-04T04:35:20.905005
2019-04-05T04:33:47
2019-04-05T04:33:47
178,968,612
1
0
null
null
null
null
UTF-8
C++
false
false
43,709
p
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6.0 \\/ M anipulation | \*-----...
8497c84230d44be71b0078885c233389fe031457
bad189cd654d186b6f80d53c8cbddf7f455d9a7b
/game/src/SideItemBar.cpp
3a6a384149c0bc6bd0cb570e15c6e39392f63231
[ "MIT" ]
permissive
unbgames/StandYourGround
dbc6302de71a354cf49a6190939438d2537b1f8a
87099fe6f08d0396655a711537401bb7526d3e43
refs/heads/master
2020-03-27T14:37:59.309405
2018-09-25T23:42:34
2018-09-25T23:42:34
146,673,328
0
0
null
2018-08-30T00:16:35
2018-08-30T00:16:35
null
UTF-8
C++
false
false
4,230
cpp
SideItemBar.cpp
#include "SideItemBar.h" #include "Game.h" #include "Sprite.h" #include "Bag.h" #include "InputManager.h" #include "config.h" SideItemBar::SideItemBar(GameObject& associated) : Component(associated), backToNormal(false) { GameObject* berryObj = new GameObject(); berryAmount = new Text(*berryObj, ASSETS_PATH("/...
d80d36053f46bb479347dd1ffba8a2182bb00385
5e16bdc8da61393ac4548aa8ffd6bdbfdb466495
/chapter03/BinarySearch.cpp
a5a37415cb3eb8e49ce6824dbae1842007daf50c
[]
no_license
TolicWang/C-Plus-Plus-Primer-Edition-5
38610bd03dfb7800cc965c5d8f325552f7d50e60
b897381d407f7278431397c54a080b39fdc95f9c
refs/heads/master
2021-01-19T09:54:50.836805
2017-06-13T10:29:00
2017-06-13T10:29:00
87,797,677
1
1
null
null
null
null
UTF-8
C++
false
false
1,061
cpp
BinarySearch.cpp
/************************************************************************* > File Name: BinarySearch.cpp > Author: > Mail: > Created Time: Sun 09 Apr 2017 07:47:55 PM CST ************************************************************************/ #include<iostream> #include<vector> using namespace std; int main()...
f027980c273b605532c988ef7dd0dee20a4e608f
8d3dd89ded7ba45c2a20d633e1321639c5f76368
/source/3D/CubeGrid/CubeGrid.cpp
a2a6f065de811f169d038db1f63d9c1e59cededf
[]
no_license
OzW1234/huji-rich
a7d54fa269cf14f40e8d6c4af3eb344d826ceddf
2bc92f37c2e7d234f8759af34fb77bb87dafd03b
refs/heads/master
2020-03-24T23:37:27.184296
2018-07-26T16:14:56
2018-07-26T16:14:56
143,145,490
0
0
null
2018-08-01T11:13:31
2018-08-01T11:13:31
null
UTF-8
C++
false
false
8,530
cpp
CubeGrid.cpp
#include "CubeGrid.hpp" #include <limits> using std::min; namespace { /*void ConvertIndexToSubindex(size_t index,size_t &i,size_t &j,size_t &k, size_t ny_,size_t nz_) { k=index%(nz_); i=index/(nz_*ny_); j=(index-i*nz_*ny_)/nz_; } */ size_t ConvertSubindexToIndex(size_t i,size_t j,size_t k, si...
677a007c9d6efc0fe0c800211e8ab03b14fed828
b6d1df49c1ec621a02204b1100312ecbb3e76ad3
/src/mains/raven/estimate_f.cc
991ae60b4156572fd90e0bf6f4e4314424191454
[]
no_license
flylong0204/projects
5271acde325cf3947fac7433077353b52fa07bc4
b1e5c918d4aeb34c36576dababc5509dbb89afd1
refs/heads/master
2017-12-06T06:35:20.926786
2017-01-24T23:53:13
2017-01-24T23:53:13
79,988,197
1
2
null
2017-01-25T06:11:23
2017-01-25T06:11:23
null
UTF-8
C++
false
false
12,217
cc
estimate_f.cc
// ========================================================================== // Program ESTIMATE_F implements a modified version of the constrained // "checkerboard" calibration algorithm described in I. Shimizu, // Z. Zhang, S. Akamatsu and K. Deguchi, "Head pose determination from // one image using a generic mode c...
be1564e76b0b9b31c61312e4a1f421aa8b2abae5
49dedcacc3d929052850fc896c37a7a5262d2976
/src/btwxt.h
ab7cc91bcaf1e6d26895abde4331b3e25ddf541a
[ "BSD-2-Clause" ]
permissive
hc27080401/btwxt
847809d09538067824422e1bd3c86dc05cee4506
d30871e30fc222a663ea0ad1e0c0344d983e0f51
refs/heads/master
2020-04-04T15:50:52.832881
2018-08-03T22:25:04
2018-08-03T22:25:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,549
h
btwxt.h
/* Copyright (c) 2018 Big Ladder Software LLC. All rights reserved. * See the LICENSE file for additional terms and conditions. */ #ifndef GRIDINTERP_H_ #define GRIDINTERP_H_ // Standard #include<vector> #include "Eigen/Dense" // btwxt #include "griddeddata.h" #include "gridpoint.h" #include "hypercube.h" namespac...
ddbdd0fcd1d2e6c5c308621bece249a91aa3d603
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/textproc/zorba/files/patch-src-util_string_util.cpp
315c9958bd7aa94872d9dd118bf07c61323c3c79
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C++
false
false
1,191
cpp
patch-src-util_string_util.cpp
--- src/util/string_util.cpp.orig 2012-10-04 00:35:16.000000000 +0200 +++ src/util/string_util.cpp 2014-09-12 11:43:08.000000000 +0200 @@ -18,6 +18,9 @@ #include <cerrno> #include <cstdlib> +#include <stdlib.h> +#include <limits.h> + #include "ascii_util.h" #include "cxx_util.h" #include "string_util.h" @@ -92,7...
c6ef804051440e48ff6711b0d6d6549bff9e493a
3062c8b8c05793b33b699c6800334c7ec07779d1
/tv/tuner/aidl/vts/functional/DvrTests.h
6662637d548a7ca688206706f2845ac2efb435ba
[ "Apache-2.0" ]
permissive
crdroidandroid/android_hardware_interfaces
d195f4fbd01ff8db36428667f73faff79a17b6e9
3ecf0495de1b1d20d42a0486ac3f742fc2758c5b
refs/heads/13.0
2023-08-18T19:30:51.587761
2023-08-12T18:01:14
2023-08-12T18:01:14
103,736,402
3
31
null
2023-07-29T14:54:17
2017-09-16T08:08:52
C++
UTF-8
C++
false
false
6,447
h
DvrTests.h
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
da85144a267d4f8fd70cdfe1823da9feab9dd16a
eac0a13fea8acd3ee5d8c6bd72b97f39102c6337
/CPPPool/cpp_d13_2019/ex05/Toy.cpp
ff11acb7106e80753269c59de4bfa077b028be2e
[]
no_license
Jean-MichelGRONDIN/EPITECH_Tek2_Projects
ddb022cc6dafd9c3d8d1e8b17bad8de108a0cd2c
eb4621bb747b1f2cca3edfe993fefef4b564835f
refs/heads/master
2023-01-04T13:12:21.670186
2020-10-23T06:16:50
2020-10-23T06:16:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,189
cpp
Toy.cpp
/* ** EPITECH PROJECT, 2020 ** cpp_d13_2019 ** File description: ** Toy */ #include "Toy.hpp" Toy::Toy() { this->_type = BASIC_TOY; this->_name = "toy"; this->_picture = Picture(); this->_error = Error(); this->_error.type = Toy::Error::ErrorType::UNKNOWN; } Toy::Toy(int type, std::string name, c...
37c4ebc2fb56bed661fd2bc3576366d6c66c17c7
973e6b6952070cc2923d117aaa7772d9d010439b
/src/state/src/actor/bot_states/bot_blast_state.cpp
8f66969fabbb8f2bb2f40389f4360e873dc4b9b5
[]
no_license
delta/codecharacter-simulator-2020
af4169dc79e709341ec61a0ad0263bdb0077ecbb
1f1224aee3a15a8adaa7e68ee05dd35e053f2470
refs/heads/master
2023-03-25T22:17:03.967380
2021-03-19T15:30:08
2021-03-19T15:30:08
190,995,166
2
0
null
2021-03-22T10:58:31
2019-06-09T10:54:15
C++
UTF-8
C++
false
false
692
cpp
bot_blast_state.cpp
/** * @file bot_blast_state.cpp * Definition of bot blast state */ #include "state/actor/bot_states/bot_blast_state.h" #include "state/actor/bot.h" #include "state/actor/bot_states/bot_dead_state.h" namespace state { BotBlastState::BotBlastState(Bot *bot) : BotState(BotStateName::BLAST, bot) {} void BotBlastStat...
d82e85913b1840d3dbd0c1b2721de644cf486598
a33aac97878b2cb15677be26e308cbc46e2862d2
/program_data/PKU_raw/9/554.c
40a294bf7184e07d172777de64240b969999e770
[]
no_license
GabeOchieng/ggnn.tensorflow
f5d7d0bca52258336fc12c9de6ae38223f28f786
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
refs/heads/master
2022-05-30T11:17:42.278048
2020-05-02T11:33:31
2020-05-02T11:33:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,291
c
554.c
main() { char senior[100][10]; char junior[100][10]; char temp[10]; int list[100]={0}; int se[100]; int ju[100]; int n,i,j,k,nums,numj,year; scanf("%d",&n); nums=-1; numj=-1; for (i=1;i<=n;i++) { scanf("%s",temp); ...
6c68cef4e24af9589de3d3e92a977696953429ad
3a42bab0688ea0a61cc8aa87b5c97143035dc269
/SnakeFML/SnakingState.hpp
4b74d139781ffe8f996d197a1f5728073f58146e
[]
no_license
JonnyPtn/SnakeFML
71a5c3dadce710f35a8f294dcc455ca1127552c2
7bbd16169e0f46a357276a6973e253933b1f2b0d
refs/heads/master
2021-01-18T22:33:25.255820
2017-11-22T01:38:39
2017-11-22T01:38:39
50,194,946
6
12
null
null
null
null
UTF-8
C++
false
false
629
hpp
SnakingState.hpp
// // SnakingState.hpp // SnakeFML // // Created by Jonny Paton on 21/11/2017. // #ifndef SnakingState_hpp #define SnakingState_hpp #include <xyginext/core/State.hpp> #include <xyginext/ecs/Scene.hpp> class SnakingState : public xy::State { public: SnakingState(xy::StateStack& ss, xy::State::Context& context)...
a1fad7bbfc43dc22a39ebb529912dd0e78170851
58a0ba5ee99ec7a0bba36748ba96a557eb798023
/GeeksForGeeks/Algorithms/9. Dynamic Programming/10.longest-palindromic-subsequence.cpp
90eb0b815193fe0efc56828c2985d1997958a363
[ "MIT" ]
permissive
adityanjr/code-DS-ALGO
5bdd503fb5f70d459c8e9b8e58690f9da159dd53
1c104c33d2f56fe671d586b702528a559925f875
refs/heads/master
2022-10-22T21:22:09.640237
2022-10-18T15:38:46
2022-10-18T15:38:46
217,567,198
40
54
MIT
2022-10-18T15:38:47
2019-10-25T15:50:28
C++
UTF-8
C++
false
false
810
cpp
10.longest-palindromic-subsequence.cpp
// http://www.geeksforgeeks.org/dynamic-programming-set-12-longest-palindromic-subsequence #include <iostream> #include <cstring> using namespace std; int lps(char *str){ int len = strlen(str); int L[len][len]; for(int i=0; i<len; i++){ L[i][i] = 1; } int j; for(int cl=2; cl<=len; cl++...
1d2f107b2e65dd2454813eb44d4f4b3ee92a16a0
9ff779813c7f4d0bdf01c097bcd696a20303ca8a
/20170713_MyVector/cVector3.h
4fecb45501c378b63b70f49ab934a4c057f78dd7
[]
no_license
jaejunlee0538/3DGameAssignments
f27c361eb1966aea9fc8dad90fdccfe28506f4c1
1946d481f467eb4740c58a0575060cd9ec088b3f
refs/heads/master
2021-01-01T20:39:30.179428
2017-09-11T13:19:25
2017-09-11T13:19:25
98,905,507
0
0
null
null
null
null
UTF-8
C++
false
false
762
h
cVector3.h
#pragma once class cVector3 { public: cVector3(); cVector3(float x, float y, float z); ~cVector3(); float Length() const; float LengthSq() const; cVector3 Normalize() const; void Print(); float& X(); const float& X() const; float& Y(); const float& Y() const; float& Z(); const float& Z() const; float& ...
181bb6e9581216e99cdd976d9a9cfe02bdcfbad7
792958a048162488c502aac80ec9d6e1b11afaeb
/백준/20_1_21/2419.cpp
a2ff87e0c50204352f1003daa84818a1840c94ad
[]
no_license
Kim-DongGeun/Probelm-Solving
ca1d285033f49bf818c8c8796a1c66433555fc16
ee9412e574adbe209504d415d4a60fa6b4c2ed5f
refs/heads/master
2023-02-15T17:50:25.315424
2021-01-06T01:10:32
2021-01-06T01:10:32
323,862,898
0
0
null
null
null
null
UTF-8
C++
false
false
235
cpp
2419.cpp
#include <iostream> using namespace std; int arr[301]; pair<int, int> dp[1000001][2]; void dfs(int cur) { dp[cur][0] = } int main() { int n, m; cin >> n >> m; for (int i = 0; i < n; i++) cin >> arr[i]; dfs(0); return 0; }
1b0b2b132bf7570be7e19749ddf14b151e5ed2d2
ca38e7094429cb01d0430e0f724be5a104347865
/WristWatch1.4/Interrupts.ino
13a478496d995162717a98ae45b70dcd98f7fafd
[]
no_license
Jo-Dill/watch
0678fcecfc238132f8217264999eaf8762afa9f3
cf03ade3090ea903c23274622b5bb8d44f7e75a8
refs/heads/main
2023-04-21T02:44:49.667573
2021-05-11T18:43:35
2021-05-11T18:43:35
366,440,735
1
0
null
2021-05-11T16:27:09
2021-05-11T16:02:31
null
UTF-8
C++
false
false
505
ino
Interrupts.ino
volatile byte alarmflag =0; volatile byte downbuttonflag =0; volatile byte upbuttonflag =0; void interruptSetup(){ LowPower.attachInterruptWakeup(RTC_ALARM_WAKEUP, wokeUpbyAlarm, CHANGE); LowPower.attachInterruptWakeup(upbuttonPin, wokeUpbyUpbutton, FALLING); LowPower.attachInterruptWakeup(downbuttonPin, ...
f11bec9d7d083d75b03aaa4ded5dec87c6970cf5
521685507e5b26ec9be38b39a249bdc1ee638138
/Servers/ServerManager/vtkSMComparativeViewProxy.cxx
85ebd825b1ceb8c3894ee8976987ab2b05514b32
[ "LicenseRef-scancode-paraview-1.2" ]
permissive
matthb2/ParaView-beforekitwareswtichedtogit
6ad4662a1ad8c3d35d2c41df209fc4d78b7ba298
392519e17af37f66f6465722930b3705c1c5ca6c
refs/heads/master
2020-04-05T05:11:15.181579
2009-05-26T20:50:10
2009-05-26T20:50:10
211,087
1
2
null
null
null
null
UTF-8
C++
false
false
27,601
cxx
vtkSMComparativeViewProxy.cxx
/*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without...
819a21f0368454cc7cef682cf94b2cf3d15987df
dd80a584130ef1a0333429ba76c1cee0eb40df73
/dalvik/vm/mterp/c/OP_ADD_LONG.cpp
25d1f47df7c400cb0507a9ff86b2c2977b4ac1ee
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
C++
false
false
50
cpp
OP_ADD_LONG.cpp
HANDLE_OP_X_LONG(OP_ADD_LONG, "add", +, 0) OP_END
4ab2ca0874065ad77c84a637065d798c518232aa
7175e88e90aa739fa6da8805e83d9d435f567e86
/Source/indra/newview/llweb.cpp
1747d4b929e1a2573bae0fdd06c14064e080fd20
[]
no_license
JohnMcCaffery/Armadillo-Phoenix
06af55f05848defb399605c986f905adf6ad2b70
f49cc3b45dd1039e6bc5254d30145bc1c6b95d0a
refs/heads/master
2020-06-04T03:35:24.354381
2014-05-20T16:14:58
2014-05-20T16:14:58
8,097,679
0
1
null
null
null
null
UTF-8
C++
false
false
6,407
cpp
llweb.cpp
/** * @file llweb.cpp * @brief Functions dealing with web browsers * @author James Cook * * $LicenseInfo:firstyear=2006&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the ter...
9637dcfc69a74f1faaeb28cbc5e5d6d04c887b26
a02399c5c66d43d56599ca0b303da4ffddbcd94a
/CppTry3_Algorithm/MaxSumSubsequence.h
1abfb62ab4e6df9c578ad4f110f0b96c39d2031f
[]
no_license
jayjihunlegacy/CppTry
2dbe7c422b5a98770778202dbf18870f5537fe19
dfd617e90c09dd44ce7bd57e567cc2d34305b7c0
refs/heads/master
2020-03-27T23:07:58.089581
2015-12-27T09:10:39
2015-12-27T09:10:39
147,293,633
0
0
null
null
null
null
UTF-8
C++
false
false
2,396
h
MaxSumSubsequence.h
#pragma once #include <ctime> int maxSum_BruteForce(int* arr, int length) { int maxsum = 0; for (int i = 0; i < length; i++) { for (int j = i; j < length; j++) { int thissum = 0; for (int k = i; k <= j; k++) thissum += arr[k]; if (thissum > maxsum) maxsum = thissum; } } return maxsum; } ...
340c13a29ad7c2f0dabbbd53742456a34bc7ffc2
c99925e94c583f0d5f4d433cdb374e3f29b98d50
/MyGAME/GameTemplate/Game/Guzai.h
7274d9911d098ec84d4f82aecb12b1260df1de3d
[]
no_license
kw11SL/BurgerPicker
eda2804bfd3c257af3494ef3dc05c2c4d0c60192
992b20202f618143c148ea29b5e30350c0ad01bb
refs/heads/master
2023-03-16T12:32:17.195348
2021-03-10T00:48:59
2021-03-10T00:48:59
346,202,830
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
760
h
Guzai.h
#pragma once #include <vector> class Guzai : public IGameObject { private: Model model; ModelInitData modeldata; Skeleton m_skeleton; CharacterController m_charaCon; public: bool Start(); void Update(); Vector3 GetPosition(); void SetPosition(Vector3 pos); void Render(RenderContext& rc) { model.Draw(rc);...
72b47fc65c56d1e6b9995df768574a03dc915333
d9cfe7700cf37bf04dbc15836adf1c59fdb2e0d1
/uri1248.cpp
6de71d9d7afb64410f2904b145c311aef7f337fa
[]
no_license
helfo2/URI-Online-Judge-CP-Training
b270fb250276651aaac80b78f1e4e12a692d4546
f79faf3b6a5a692314b4ba054704c5fc3aa7613a
refs/heads/master
2021-05-11T19:42:54.736358
2018-01-17T20:09:55
2018-01-17T20:09:55
117,887,011
0
0
null
null
null
null
UTF-8
C++
false
false
1,184
cpp
uri1248.cpp
#include <iostream> #include <string> #include <set> #include <vector> #include <algorithm> using namespace std; int main(void) { int n; cin >> n; cin.ignore(); while(n--) { string dieta, cafe, almoco, jantar; getline(cin, dieta); getline(cin, cafe); getline(cin, almoco); // cout << "dieta = "<< die...
311106784927ea831e48dee426669b8ef7fd666f
d8c6bb667289c272191210788f91fe534dae84e9
/customqtui.cpp
48ad33634ff6532fcc266db50b3a762b45ee5e3f
[]
no_license
whitebeard234/sume-borrower-app
139fd0be5f490031a8369f5f1ea5832c578aac63
052092318fc7ead2363ace557baea1ef675f2ecb
refs/heads/master
2023-09-05T00:28:53.199439
2018-09-11T10:35:29
2018-09-11T10:35:29
144,999,425
1
0
null
2018-08-16T14:29:47
2018-08-16T14:29:46
null
UTF-8
C++
false
false
2,601
cpp
customqtui.cpp
#include "customqtui.h" CustomQtUI::CustomQtUI() { } /** * Helper function. Removes all layout items within the given @a layout * which either span the given @a row or @a column. If @a deleteWidgets * is true, all concerned child widgets become not only removed from the * layout, but also deleted. */ void Cus...
e8d5ae4bc28bb3111a74c041c36fccbf6fb4ad8d
9b727ccbf91d12bbe10adb050784c04b4753758c
/archived/2014-JAG-Spring/E.cc
08054e98fdd7bb03f3f6fa6e999bb46f6ebac00e
[]
no_license
codeAligned/acm-icpc-1
b57ab179228f2acebaef01082fe6b67b0cae6403
090acaeb3705b6cf48790b977514965b22f6d43f
refs/heads/master
2020-09-19T19:39:30.929711
2015-10-06T15:13:12
2015-10-06T15:13:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,077
cc
E.cc
#include <bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int, int> PII; const int MAXN = 100 + 10; PII a[MAXN]; char s[MAXN]; #define x first #define y second int type(const PII &a) { if (a.x > a.y) return -1; else return (a.x < a.y); } bool cmp(const PII &a, const PII &b) { if (type(a) ...
58322085fc7f4c92193234b22be6f9c974a430a9
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/xgboost/xgboost-gumtree/dmlc_xgboost_old_hunk_649.cpp
3b77a0ce59a3f93e2c74dc26651faf30281f39ad
[]
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
159
cpp
dmlc_xgboost_old_hunk_649.cpp
utils::Error("unknown objective function type"); return NULL; } >>>>>>> 9eabb5c7f912a326005aca53a76c2e53a1661842 }; }; #endif
a79e6466c98f4c7b10e6dd8e4b148c127fd075cb
f703bebbc497e6c91b8da9c19d26cbcc98a897fb
/camps/winter_school_Kremenchuk_2016/DAY_4_SQRT_DECOMPOSITION/C.cpp
4ec595da1a50f40210e5599bd9d9fe643c825773
[ "MIT" ]
permissive
mstrechen/competitive-programming
1dc48163fc2960c54099077b7bfc0ed84912d2c2
ffac439840a71f70580a0ef197e47479e167a0eb
refs/heads/master
2021-09-22T21:09:24.340863
2018-09-16T13:48:51
2018-09-16T13:48:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,304
cpp
C.cpp
#include<iostream> #include<vector> using namespace std; const int sizeOfBlock = 1000; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector<vector<int> > blocks((n-1)/sizeOfBlock + 1, vector<int>((n-1)/sizeOfBlock + 1)); vector<int> bombsH(n),b...
c3891bd3c4401cd8fe09604855e7a2bd924ca95a
e969da11a508f2bf1c93e76b46d742c2f02a21b3
/ActionGame/ActionGame/Effect.h
0ab8a896c861773d7ad70f03c8b9b00ab6d41b96
[]
no_license
sansanshi/repo_test
0c116c52a271ff66ee53de1a68c8d62515d01db6
5b85726237a7339b114a6837ebcc1d2a38d19275
refs/heads/master
2021-01-17T17:21:03.469488
2016-08-05T08:30:10
2016-08-05T08:30:10
62,817,116
0
0
null
null
null
null
UTF-8
C++
false
false
492
h
Effect.h
#pragma once #include"Geometry.h" class Camera; class Effect { private: int _handle; Vector2 _pos; int _timer; Camera& _cameraRef; bool _isAvailable; public: Effect(Vector2 pos,int handle,Camera& camera); ~Effect(); void Update(); void Draw(); void DrawCameraGraph(int x, int y, int srcX, i...
87b4b483ca38427bcd3b0bb5aa974e1ffe9a678a
959d9efe680b50f04f0e303677ff6067d66bc36a
/src/coin.cpp
6c8eaf9e38290565ad41017582dc0316c49a978f
[]
no_license
ShellCode33/Runner
2716ef47de5ffab24cfdf3c9dfdaff9a9939b555
88405d2c153fa12f737c7be0940938c3034b9bca
refs/heads/master
2021-03-16T06:16:58.537955
2017-12-31T19:54:37
2017-12-31T19:54:37
51,835,577
1
0
null
null
null
null
UTF-8
C++
false
false
345
cpp
coin.cpp
#include "coin.h" Coin::Coin(int relat_x, int relat_y, int width, int height) : model(relat_x, relat_y, width, height), view(model) {} Coin::~Coin() { } CoinModel *Coin::getModel() { return &this->model; } CoinView *Coin::getView() { return &this->view; } void Coin::update() { this->model.update(); ...
324c999cf4b451cb470ac8263923f3c049404ba2
3b9738955cfdbae250492be7649b8b724637ffff
/C&C++/一下/0617/2.cpp
ac95134495c5abebf93f25a1df69a652d396bd3e
[]
no_license
NickLuGithub/school_homework
c38a9ef58a1d346e8469489ad025a58c8bf1b701
3570a2b30c53ac151b62f380855e86fe11ffd29a
refs/heads/main
2023-04-07T11:40:10.943690
2021-04-16T08:57:09
2021-04-16T08:57:09
358,534,527
1
0
null
null
null
null
UTF-8
C++
false
false
2,133
cpp
2.cpp
#include<iostream> #include<sstream> #include<cmath> using namespace std; typedef struct{ double x, y; } Point; class Line { private: double a, b, c; public: Line(double _a = 0, double _b = 0, double _c = 0) { setLine(_a, _b, _c); } void setLine(double _a = 0, double _b = 0, double _c = 0) { ...
728caebb79f253cd37429e5ba691059dcb471954
3f708fd1ccc43671b913354682aeb00d05626ec3
/Source/MpBase/Private/GeoEllipsoid.cpp
8e5b050f8b36529e95db05727e3da4b0575bfe6f
[]
no_license
yangjs6/MagicPolaris
2d175b55bd87d943abd23c8866ed6fff693c098d
fd21289ed215f0c6859844b0d7109f9ab789e26c
refs/heads/master
2023-06-04T05:27:07.179044
2021-06-17T05:43:22
2021-06-17T05:43:22
365,452,653
3
0
null
null
null
null
UTF-8
C++
false
false
4,345
cpp
GeoEllipsoid.cpp
#include "GeoEllipsoid.h" const FGeoEllipsoid FGeoEllipsoid::WGS84(6378137.0, 6378137.0, 6356752.3142451793); FGeoCartesian FGeoEllipsoid::GetSurfaceNormal(const FGeoCartesian& position) const noexcept { return (position * this->_oneOverRadiiSquared).Normalized(); } FVector3d FGeoEllipsoid::GetSurfaceNormal( cons...
9257901cd92edc0e73c0b45e6e20a38c4af71327
0766dfbd1aa5ac39badb9b2c05a5492c76652864
/occ_projects/Robotics Arduino Proj/Arduino_4_Button_YRLight_5s_each/Arduino_4_Button_YRLight_5s_each.ino
044f2d883ee60f78b5daec77f27daeac1362c3db
[]
no_license
AyeshaAhmed/iit_projects
35ba333d4d6dbefaf1e4010e290959187ddd6175
9b27ffbd1bf65378b78e4fe82b9ffcc3abb3c80c
refs/heads/master
2021-09-03T14:48:35.476924
2018-01-09T22:03:46
2018-01-09T22:03:46
103,581,421
0
0
null
null
null
null
UTF-8
C++
false
false
455
ino
Arduino_4_Button_YRLight_5s_each.ino
const int buttonPin = 3; const int ledPinY = 2; const int ledPinR = 4; int buttonState = 0; void setup() { pinMode(ledPinR, OUTPUT); pinMode(ledPinY, OUTPUT); pinMode(buttonPin, INPUT); } void loop() { buttonState = digitalRead(buttonPin); if(buttonState == LOW){ digitalWrite(ledPinY, HIGH); ...
de7b63a0ab22601aba9561dcfb4ce10850fea18e
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive/2b6092ad8d1ff23c229c54b8f6b0d2e0/main.cpp
1a2c6b6dcd46ac0bd8478e7d3771a67198a68803
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
243
cpp
main.cpp
#include <iostream> struct A { int a = 10; int b = 20; friend std::ostream& operator<<(std::ostream& out, const A& a) { out << a.a << '\n' << a.b; return out; } }; int main() { A aa; std::cout << aa; }
d25325405877393831412e5126cbb106bacd05a3
9c670b45996436e16310276f4b2a9bfd0cb4f8f5
/eric/finish_bounds.cpp
edb814e1ad0508efdfbadd9a8fbb2e80e8c6adb9
[]
no_license
errorcodexero/fiddle
30d6b1a4733704bdde81bca5d1227cc61f17e459
cebaf9afde8ac2789dea91e450227be1b92b749a
refs/heads/master
2020-04-04T02:30:40.606178
2018-08-09T01:11:09
2018-08-09T01:11:09
37,697,361
4
2
null
null
null
null
UTF-8
C++
false
false
13,709
cpp
finish_bounds.cpp
#include<iostream> #include<set> #include<vector> #include<map> #include<typeinfo> #include<cassert> #include<algorithm> #include<unordered_map> using namespace std; #define nyi { cout<<"nyi "<<__LINE__<<"\n"; exit(44); } #define PRINT(X) { cout<<""#X<<":"<<X<<"\n"; } template<typename T> set<T> operator|(set<T> a,s...
9f89680c59f6eaa3938fa9b76f42826968a4e4d8
b83a7556f75904614a245b74607a08ae76717b49
/src/cmdstan/write_stan_flags.hpp
9a7a259f304d08ed0e266e09c52e38a8fd5179a8
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0" ]
permissive
stan-dev/cmdstan
35fae63a7d7dce3d81a19e17272f06a677d03f72
fa4a4b8149a200a4f8c70dfede090601dc9b19c5
refs/heads/develop
2023-09-02T17:52:15.909803
2023-09-02T03:01:56
2023-09-02T03:01:56
16,967,338
181
126
BSD-3-Clause
2023-09-13T19:09:52
2014-02-18T23:12:16
C++
UTF-8
C++
false
false
741
hpp
write_stan_flags.hpp
#ifndef CMDSTAN_WRITE_STAN_FLAGS_HPP #define CMDSTAN_WRITE_STAN_FLAGS_HPP #include <stan/callbacks/writer.hpp> #include <string> namespace cmdstan { void write_stan_flags(stan::callbacks::writer &writer) { #ifdef STAN_THREADS writer("STAN_THREADS=true"); #else writer("STAN_THREADS=false"); #endif #ifdef STAN_MPI...
9654e0f68bde6955ea4ed563679d3461f13c25b0
c75e00a4569cf9eb5392f48f81623f6d7991ce3e
/Jungding/Snowboard/Terrain/GdsTerrain.cpp
7d9c63e0e9ee011093c757afa0147303ceac3e5f
[]
no_license
rodrigobmg/choding
b90dd63ff3916d969ca625134553e1ff034e1de8
7b559066e0c0989720a507c011bbfd0168c7de8f
refs/heads/master
2021-01-01T03:41:36.274647
2012-04-02T07:03:21
2012-04-02T07:03:21
57,394,584
0
0
null
null
null
null
UHC
C++
false
false
10,271
cpp
GdsTerrain.cpp
#include "stdafx.h" GdsTerrain::GdsTerrain() : m_iVertexPerNode( 33 ) , m_ixheight( 0 ) , m_izheight( 0 ) , m_iMaxLOD( 0 ) , m_pRootTile(NULL) , m_iLodRate( 50 ) , m_ilod(0) , m_idir(0) { //set renderstate GdsRenderStateGroupPtr renderstate = GdsRenderStateGroupPtr( new GdsRenderStateGroup ); rend...
e25d6e60a9c412a6569be4e961d859d4648b3849
c0e370117a9d0af01886b5dff187504887919e3c
/esp8266-mcu/water_control.ino
2e6244ea418af730443247c3d9c3e2fca9d4df6c
[]
no_license
EPQSky/soil-system
aeb5df9b9755bf9ba89132ef1eaa1fff24eccbe7
de7b7a4b996ee80c271c719c36d82c2b6cb30220
refs/heads/main
2023-04-15T06:46:13.365877
2021-04-28T11:21:23
2021-04-28T11:21:23
361,743,591
0
0
null
null
null
null
UTF-8
C++
false
false
2,423
ino
water_control.ino
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino // 实现网页配置WiFi需要引入的依赖包 #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager // 用于MQTT连接EMQ X Cloud #include <PubSubClient.h> //https://github.com/knolleary/pubsubclient ...
6bd8cb2d5d24d264e5a319de2764d884251645a2
5969f0d18f38e0401bd007a9a17908424444f1c0
/Projects/_8Interrupts/_1ISRandQueue/_1ISRandQueue.ino
e284ee91fff9c35dd9dbc1fbfe3f969eabb63e1c
[]
no_license
mustafaylmz1995/Arduino_FreeRTOS_Basics
884d28c4e1ff78fee82c0fa4e57980afd3531876
06d6eb0492987bda6bb17f7badae0494d7fb521c
refs/heads/main
2023-02-01T11:22:53.805662
2020-12-20T14:23:33
2020-12-20T14:23:33
323,088,376
3
0
null
null
null
null
UTF-8
C++
false
false
993
ino
_1ISRandQueue.ino
#include <Arduino_FreeRTOS.h> #include "queue.h" QueueHandle_t que_hand; int timer1_cnt; void setup(){ Serial.begin(9600); xTaskCreate(vStringPrinter, "vStringPrinter", 128, NULL, 1, NULL); que_hand = xQueueCreate(5, sizeof(char *)); InterruptInit(); } void vStringPrinter(void *pvP...
10ec5daf99e033cf9824c4222f91229edbdd0fc6
f6f2e3a103440b24ed37f3f46417ecb0c04b6ef6
/ACM-old/Strings/LexicographicallySmallestRotationOfString.cpp
f60569d4a1fd4ed595381928251cde9dad3c6dbe
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
lopatovsky/Algorithms
ef84d870782327903d10af13963336af702e5994
c5f4d2376fa86be37bcc4b4ff8aa08a683ff05b4
refs/heads/master
2022-02-10T09:47:24.489290
2022-01-01T16:54:30
2022-01-01T16:54:30
78,099,172
0
0
null
null
null
null
UTF-8
C++
false
false
337
cpp
LexicographicallySmallestRotationOfString.cpp
memcpy( str+len, str, len ); int i = 0; int j = 1; int k = 0; // len = strlen(str); while (i < len && j < len && k < len) { if (str[i+k] == str[j+k]) ++k; if (str[i+k] > str[j+k]) { i = max(i+k+1, j+1); k = 0; } else if (str[i+k] < str[j+k]) { j = max(j+k+1, i+1); k = 0; } } printf("%d...
9538ae79d109f65ff115388454b4ae053d65c910
fa8e41eea4e30a407e5a73b7524050f0fe15b40b
/ogsr_engine/xrGame/physics_game.cpp
61c718a2a384c60ba1dab73e1d1db8234dccc674
[ "Apache-2.0" ]
permissive
dsh2dsh/OGSR-Engine
70c29d81fba88cece52a3150a57c24a00b1e121a
43ac8298b9a264e23c40d05beb20d7ca64a4a589
refs/heads/master
2023-08-15T23:32:56.804065
2023-07-25T15:16:22
2023-07-25T15:16:22
250,016,513
7
4
null
null
null
null
UTF-8
C++
false
false
9,671
cpp
physics_game.cpp
#include "stdafx.h" #include "ParticlesObject.h" #include "../xr_3da/gamemtllib.h" #include "level.h" #include "gamepersistent.h" #include "Extendedgeom.h" #include "PhysicsGamePars.h" #include "PhysicsCommon.h" #include "PhSoundPlayer.h" #include "PhysicsShellHolder.h" #include "PHCommander.h" #include "PHReqComparer....
59f0e225051bbfd01113bead0bd7c916b619b8a3
7ebe68b9a889dc8b25a4b263d0f3aae436175649
/数字转换为字符.cpp
f1f1a6d43996751e712661c051e032b5ddf34ba4
[]
no_license
bystc/SomeExercisesAboutC
fecd57333ce9a197335ce7f91ce5ed30e4cefae9
6d89e375944e6b7b30c564bf94fd78f721607959
refs/heads/master
2016-09-12T17:43:58.995549
2016-05-24T12:13:17
2016-05-24T12:13:17
59,569,829
0
0
null
null
null
null
UTF-8
C++
false
false
95
cpp
数字转换为字符.cpp
#include<stdio.h> int main() { char a; scanf("%d",&a); printf("%c",a); return 0; }
02d33fd38070c692145ac2f2b09b46c9532edf82
cd4df921819d75c4c0ceff8a1b91d605ab11a995
/PAT02.cpp
a9bca3e86e0a48e7b8fc0f90ef2f7598de17dcdc
[]
no_license
flowerdrops/PAT_yi
a7ee15461355bc5755b18e62a7175ca3dc3ca0e1
b1bb0d8758cbdecb10587216a996934ea8a17fe8
refs/heads/master
2021-08-24T01:08:08.591827
2017-12-07T11:07:36
2017-12-07T11:07:36
111,670,645
1
0
null
null
null
null
UTF-8
C++
false
false
1,360
cpp
PAT02.cpp
/*#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int len = s.length(); int *a = new int [len]; int sum = 0; string str[10] = {"ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu"}; for (int i = 0; i < len; i++) { a[i]...
13db03d298e088f4d94125e5db3d8a2690908f63
84ee4284374c790accab2fa8821d1f8a1b2fa9e6
/tr2cpp/include/tr2cpp/joint.h
dfd92450c696b143d80dab04d9c1f3929a9dc5e7
[ "MIT" ]
permissive
SlateRobotics/tr2_essentials
05f3db2365fcd71fab4dae2bd836aa5502a7748f
91948213107779b78a30e177344e3de4ef8d3de5
refs/heads/master
2020-04-05T06:09:13.651052
2020-01-14T18:06:06
2020-01-14T18:06:06
156,627,344
0
0
MIT
2022-06-24T10:16:53
2018-11-08T00:35:41
Python
UTF-8
C++
false
false
462
h
joint.h
#ifndef TR2CPP__JOINT_H #define TR2CPP__JOINT_H #include <sstream> #include <tr2cpp/msgs.h> namespace tr2cpp { class Joint { private: double _previousEffort = 0; public: Joint(); ~Joint(); Msgs *_msgs; std::string name = "x0"; double pos = 0; void setMode(int mode); void actuate(doubl...
d5c8ad92822be3afde922241556473b3ce11753c
03c85882d07a9fdee15a0ee055112839cdfb6a3f
/nist-2/hsntg/if-mngmt.cc
7131658e90fc58f10669fbb7117faa3c87bbe6e0
[]
no_license
mello92/sip-nemo
dc560a3272288bb7e2db9eb4fc169b54aadade07
a8c04b77237343c276e2e70dc842e42c141bddcd
refs/heads/master
2020-06-04T08:38:15.377211
2009-06-01T15:42:11
2009-06-01T15:42:11
33,480,603
0
0
null
null
null
null
UTF-8
C++
false
false
7,506
cc
if-mngmt.cc
/* * Implementation of interface management protocol * * This software was developed at the National Institute of Standards and * Technology by employees of the Federal Government in the course of * their official duties. Pursuant to title 17 Section 105 of the United * States Code this software is not subject to...
f29a4c2435f359d4a8ad38c89963f5434d776ecd
f8b1dfccaef5a8f75567b527fc7c2f0a34e3877b
/swjtu/e20150122/p2.cpp
5575c5fe715b261983ffeb72451e6cdc7e92832c
[]
no_license
bamboohiko/problemSolve
e7e2a2c6e46a4d10ccfa54cffff3c9895b3ddb1b
cd3e9e5986325f5def4efe01975a950f6eaa6015
refs/heads/master
2021-01-17T06:39:42.502176
2017-09-13T14:30:08
2017-09-13T14:30:08
47,928,189
0
0
null
null
null
null
UTF-8
C++
false
false
886
cpp
p2.cpp
#include<iostream> #include<cstdio> #include<map> #include<set> #include<vector> #include<stack> #include<queue> #include<string> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int f[100000 + 10]; set<int> use; int add(int x) { if (!use.count(x)) { use.insert(x); re...
e41f6bee3d886bf0de24951d0acd7432e0857ef0
7cbb2ff867cbde5551161b4456c904d3e1f3a4ff
/stream.h
7a7335b1b468ca7164303a371f147a189311313a
[ "BSD-2-Clause" ]
permissive
agobi/cppstream
c8e1dc599903d76524fab8a9a4ab3fd052c5b63d
eaef6d3b5b15d06a253de71ebc1342df6d375d3b
refs/heads/master
2020-04-17T02:58:21.202088
2014-10-28T17:41:05
2014-10-28T17:41:05
25,881,664
0
0
null
null
null
null
UTF-8
C++
false
false
9,994
h
stream.h
/* * Copyright (c) 2011-2012, Attila Gobi and Zalan Szugyi * All rights reserved. * * This software was developed by Attila Gobi and Zalan Szugyi. * The project was supported by the European Union and co-financed by the * European Social Fund (grant agreement no. TAMOP 4.2.1./B-09/1/KMR-2010-0003) * * Redistrib...
df7cb65924c4cf365c9cb387a07def36469dbc3d
35d67bf16427d421c986602bc50b98b94b3328be
/Desgin/Command/LightOnCommand.cc
599343387ad542580dc92380dfd8b2aa1c5a5638
[]
no_license
xiaoy/Exercise
74eefe6458d202ea6310d958374cbb761d4a7ad5
c89b7beac3ae7508cd00d81e215b7e00e4306d85
refs/heads/master
2021-06-12T04:40:54.555509
2021-05-16T09:03:22
2021-05-16T09:03:22
5,648,724
1
0
null
null
null
null
UTF-8
C++
false
false
427
cc
LightOnCommand.cc
/* * LightCommad.cc * * Created on: 2012-5-22 * Author: lfwu */ #include "LightOnCommand.h" #include "base.h" LightOnCommand::LightOnCommand() { // TODO Auto-generated constructor stub } LightOnCommand::~LightOnCommand() { // TODO Auto-generated destructor stub } void LightOnCommand::SetLight(Light* li...
f0813c9498008d7cc39d0dd7ea80d2421a42c329
da3a2d867984a41270c9e92b38f26967673959c0
/src/MainWindow.h
ead78ed4289de311b655bcd94f9c69b203c05176
[]
no_license
andrewrk/motrs
713c1bf05e5fc284da4e23f9a8e53ce60a447c11
f4f0494cf4c76c30b6aeff78bfc89925fb61b541
refs/heads/master
2023-03-13T06:59:08.515898
2012-12-08T19:49:23
2012-12-08T19:49:23
7,071,350
0
1
null
null
null
null
UTF-8
C++
false
false
1,251
h
MainWindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <SFML/Graphics.hpp> class Gameplay; // Main window is responsible for setting up the graphics framework, // Gameplay, and handling window events. // MainWindow has the main loop, which calls the necessary Gameplay methods // to make Gameplay work class MainWindow { ...
a5130110ee12b837615c0fb50b8ec78f74a3ed7f
d19ad17b3d9a8bf9cf837b79b94f199f3b1e723f
/mainwindow.cpp
eb22cf5dc4825028fa348dcbe1729feef1f25e34
[]
no_license
745184533/Elevator
c730954f61f92c2e652f89910b0b1a221cb85b9c
fbfb6f199012a6b9f5cd9666f56b64e98c6b0f92
refs/heads/master
2022-07-17T12:34:03.324600
2020-05-17T16:05:21
2020-05-17T16:05:21
264,703,287
1
0
null
null
null
null
UTF-8
C++
false
false
8,350
cpp
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" #include<QDebug> #include<QString> #include<QLCDNumber> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); myt=new mythread(this); myt->lifts=this->lifts; //让全局子线程拥有电...
851fec8baffce2ca2916922ad40f8ef77416d702
5329d78e893225368bfc953c47d8e93a043867d9
/src/UniformLookupTableGenerator.cpp
642548c86d9ddd8a51e88f13962b5bb2c2d41d48
[]
no_license
wbbssr/func
8b68b9fde04c22727cc657af041333c266157cb9
5459cc80b7f95da81d8101f80e6bd62118dc28b3
refs/heads/master
2020-08-21T06:29:18.053049
2018-12-11T15:52:29
2018-12-11T15:52:29
216,106,993
0
0
null
2019-10-18T21:07:44
2019-10-18T21:07:43
null
UTF-8
C++
false
false
10,222
cpp
UniformLookupTableGenerator.cpp
/* Implementation of UniformLookupTableGenerator */ #include "UniformLookupTableGenerator.hpp" // #include "UniformTables.hpp" #include <boost/math/tools/minima.hpp> #include <boost/math/tools/roots.hpp> #include <boost/multiprecision/float128.hpp> #include <boost/math/special_functions/next.hpp> #include <limits> #i...
ede97667fdde958acaf2a7fee4c431e006434ca0
40725e823c713d68536980c9a6ed6f66294c8e4d
/PSU_zappy_2018/Map/mappe.cpp
875fd555f2ec6c9655b326a8baa6ceffbadd6d97
[]
no_license
predatorsfr/PSU-tek-2
aa3ce310cf6c6c6296e061dcb0d9ed64341b0316
c6935b3c1191224d1218e85f779d51d8849b153d
refs/heads/master
2020-07-31T17:17:50.565535
2019-09-24T20:29:26
2019-09-24T20:29:26
210,689,825
0
0
null
null
null
null
UTF-8
C++
false
false
2,519
cpp
mappe.cpp
#include "graphe.hpp" #include <vector> #include <string.h> #include <string> #include <cstring> // int ten(char **av) // { // sf::RenderWindow window(sf::VideoMode(1920, 1080), "SFML window"); // sf::Texture texture; // if (!texture.loadFromFile("download.jpeg")) // return EXIT_FAILURE; // sf:...
ee6eeb3bd759349a1aa5e8b6bba4537bb5619e73
446a749d41af0008ba557dca6a62c0fbf8fed3ad
/COJ/pumpk.cpp
0f6978c51acf62f263e8266871004dd78b016429
[]
no_license
Sirivasv/ProgrammingChallenges
b8910f869548491a81e5352f72295a6886cc150e
5d9039725b2947f392a179f75896b8a57b4537cb
refs/heads/master
2021-01-12T09:08:15.814557
2020-05-15T21:40:14
2020-05-15T21:40:14
76,768,160
0
0
null
2018-10-13T17:18:12
2016-12-18T07:02:21
C++
UTF-8
C++
false
false
1,531
cpp
pumpk.cpp
#include <bits/stdc++.h> using namespace std; typedef pair<int, int>pii; const int MAXA = 25; const int MAXN = 1300; const pii MU = pii(-1, -1); int A, M; int MN[MAXN], C[MAXA][MAXN], ANS[MAXA]; pii memo[MAXA][MAXN]; pii DP(int ida, int llevas) { if (ida == A) return pii(0, -llevas); if (memo[ida][llevas] != M...
64dd57ae82db158f305c4e3cdcf4c0a1ec17df9e
2994f5583efdd46b28532f88b297083e3b319a80
/compilador_processing/processing/gramatica_expan.cpp
0d549960483cec074b6a9bf3d9c2aedb8b8d7e18
[]
no_license
luigy-mach/compiladores
7400c15b0bc9031b97b7b012e5f3963dd2268c38
ee246f958451b3178f2e32d4332c49f6b7124aac
refs/heads/master
2020-12-04T10:19:33.670959
2016-12-30T15:35:55
2016-12-30T15:35:55
67,050,669
1
1
null
null
null
null
UTF-8
C++
false
false
2,953
cpp
gramatica_expan.cpp
#include"gramatica_expan.hpp" void gramatica_expan::inicializar(){ leer_archivo(_tabla,ARCHIVO_GRAMATICA); } string gramatica_expan::obtener_estado(string num_reducir){ if(_tabla.find(num_reducir)!=_tabla.end()) return _tabla.find(num_reducir)->second.begin()->first; return STR_ERROR_OBTENER_GRAMATICA; } ...
5211f1427267183fc439c87bb2ee7e58c6c71725
785df77400157c058a934069298568e47950e40b
/TnbPtdModel/TnbLib/PtdModel/Models/Wing/No1/Form/MaxCamberLoc/PtdModel_WingFormNo1_MaxCamberLocIO.cxx
7c9cf74adff03b358466d05ee9fa4643d9ad7300
[]
no_license
amir5200fx/Tonb
cb108de09bf59c5c7e139435e0be008a888d99d5
ed679923dc4b2e69b12ffe621fc5a6c8e3652465
refs/heads/master
2023-08-31T08:59:00.366903
2023-08-31T07:42:24
2023-08-31T07:42:24
230,028,961
9
3
null
2023-07-20T16:53:31
2019-12-25T02:29:32
C++
UTF-8
C++
false
false
40
cxx
PtdModel_WingFormNo1_MaxCamberLocIO.cxx
#include <PtdModel_WingFormMakerNo1.hxx>
1b0d807457604ba2f053ca34924375f5093b3457
d2b2f59e3ff929bc3c12fa9f32bac90ad5882958
/code/VirtualGrasp/ShapeAnalysis/Agent/HumanTorso.cpp
8a93023a41e86cb91f793e929b7cee179daebeb5
[]
no_license
jjcao/graspSaliency
27b33bd1c3f7f550a61b6cd3661fed2f315ec38a
7a2fef80c81aca3a808544a4c4de9fbd4d2c8421
refs/heads/master
2020-12-24T05:43:29.260536
2016-11-18T11:17:01
2016-11-18T11:17:01
73,456,937
0
0
null
null
null
null
UTF-8
C++
false
false
761
cpp
HumanTorso.cpp
#include "HumanTorso.h" HumanTorso::HumanTorso( double torsoWidth, double torsoHeight, RigidPart * parent ) { this->width = torsoWidth; this->height = torsoHeight; double thick = torsoWidth * 0.4; pelvis = parent->addChild( new Box(width * 0.7, thick, height * 0.32), "Pelvis" ); middle = parent->addChild( new Bo...
a1bf1253adc79cc623db1fce726f02a4a1b5e101
6ae52e4249ca54b3c6cd85979b2b2cd14a457dd0
/Offscreen_v2/ProjectMesh2ImageImpl.cpp
1e96c9eb94dd87af9867443cd65aaecc1fde9365
[]
no_license
FenskeQualityMeasures2014/Source
a160254a47cde3f11196047c3f00bc1ef9e7f356
374ee65780c78412b1394754968f12803fdff1f1
refs/heads/master
2021-07-08T03:26:21.737964
2016-11-14T04:14:30
2016-11-14T04:14:30
21,395,980
0
0
null
null
null
null
UTF-8
C++
false
false
3,076
cpp
ProjectMesh2ImageImpl.cpp
/******************************************************************************* ProjectMesh2ImageImpl.cpp: implementation of the offscreen projection of a mesh onto an image. example: LabeledImageA = ProjectMesh2ImageImpl(FaceM, VertexM, CamParamSA, channelModFactor, ... ScreenSizeV, zoomFactor, ZNearFar...
e903b2d24bd010e8fbd3cef7d24aa18e8fe065b5
a60872e12dc6c99a9e6bd4fa5491d42ffbf255f9
/RayTraceEbtihal/Camera.h
47b3025e52abaafe75cceb08741b46e51099b6fd
[]
no_license
mohi-othman/ray-tracer-cpp-mohi
b62ff534b75e719916fd968a0a50fdec6ec99241
5e93d6349d338bc0d0f8b7fe22214646c39f507b
refs/heads/master
2020-12-24T15:05:58.235067
2012-05-11T21:39:44
2012-05-11T21:39:44
32,093,400
0
0
null
null
null
null
UTF-8
C++
false
false
421
h
Camera.h
//Base class for all camera types #ifndef CAMERA_H #define CAMERA_H #include "View.h" #include "Ray.h" #include "Vector3D.h" class Camera { public: // Function to generate a ray from the camera to the target pixel virtual Ray GenerateRay(Vector3D target)=0; // Function to generate a view based on ...
507d0f4b35ae2cb661ef845e17383d4b789f6fb1
2b33e79699766ee15e1c19399c61f99523e47e17
/Ticket_Booth/Seat.cpp
42433ce7a33eaf37faafd40d47e7fcec88e3f04f
[]
no_license
dakotahm/-GRPZR
558e91088f3d62a8e14d4502aed9bc82063a991b
f34b2fd1b8dbfa927187c6a66e85351090206def
refs/heads/master
2021-01-17T14:05:07.478447
2016-03-31T17:43:05
2016-03-31T17:43:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
356
cpp
Seat.cpp
//need section class #include <iostream> #include "Seat.h" using namespace std; Seat::Seat(string Section, string Row_Name, int Seat_Number) : section(Section), seat_row_name(Row_Name), seat_number(Seat_Number) {} void Seat::Display() const { cout << "Section" << section << "Row " << seat_row_name <<...
5868273f7dde62df64f28199c7e033e48b5b45db
e1d6417b995823e507a1e53ff81504e4bc795c8f
/gbk/client/Client/GameInterface/Include/GIUISystem.h
6d1ff379a622d878e60df868827e0f0663ec335a
[]
no_license
cjmxp/pap_full
f05d9e3f9390c2820a1e51d9ad4b38fe044e05a6
1963a8a7bda5156a772ccb3c3e35219a644a1566
refs/heads/master
2020-12-02T22:50:41.786682
2013-11-15T08:02:30
2013-11-15T08:02:30
null
0
0
null
null
null
null
GB18030
C++
false
false
6,748
h
GIUISystem.h
/** GIUISystem.h */ #pragma once #include "GIBasicType.h" #include "GINode.h" #include "GIMath.h" #include "GITransferItemSystem.h" /// 聊天模板的最大索引量 enum { TALK_TEMPLATE_NOBODY = 0, TALK_TEMPLATE_OTHER, TALK_TEMPLATE_MYSELF, TALK_TEMPLATE_MAX }; // 过滤类型 enum FILTER_TYPE { FT_NONE = 0, // 无类型 FT_CHAT, // ...
9a5518e2773a63b12d6785692728e172a4b780b4
5d7739bd360a447ee1c7285483d2f37d521fa99e
/Volume 001 (100-199)/174.cpp
ccd9d90c22b87ce549b783be1cbe19436230acf1
[]
no_license
aaafwd/Online-Judge
c4b23272d95a1c1f73cc3da2c95be8087a3d523c
b264f445db2787c5fc40ddef8eb3139adae72608
refs/heads/main
2023-04-02T01:01:26.303389
2021-04-11T14:17:58
2021-04-11T14:17:58
356,840,772
1
0
null
null
null
null
UTF-8
C++
false
false
2,167
cpp
174.cpp
/* @JUDGE_ID: 19899RK 174 C++ "By Anadan" */ // Strategy // Accepted (0.000 seconds with low memory spent) #include <stdio.h> int score[10], c; char programs[10][256], memory[2][2]; int cond(char *&p){ int i = c, j, nt = 0; if (p[0] == 'M') p += 2; else { p += 4; i ^= 1; } p += 4; j = *p++ - '1...
8ccc97185aa55a4305d4a028aee7960965357b75
cd258436458935352857e94295e448e08511ed8d
/codility/triangle.cc
fb20590be6af6ae730eb1997185c5069c7d0f343
[]
no_license
pmediaandy/bullpen
03b91f1a1364432a544087cd3e55041385a6ea2a
72f769cf567bcd06f87843ec8f4ce608012dba91
refs/heads/master
2020-12-03T00:03:29.108784
2017-05-24T06:58:30
2017-05-24T06:58:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
354
cc
triangle.cc
#include <algorithm> #include <iostream> #include <map> #include <vector> using namespace std; int solution(vector<int> &A) { int i; int N = (int) A.size(); if(N <= 2) return 0; sort(A.begin(), A.end()); for(i = 2; i < N; i++) { if((long long)A[i - 2] + A[i - 1] > A[i]) ...
a7f0fabd39df639d8102f31c8f8a32ff735f7728
184157313c7a3ad0da473d4cf9bfef0ac40b6fc1
/test/test_person.cpp
03032429669c3a75fbead802e3236962f3f132fd
[]
no_license
josh-mutian/cs22001-warmup
9dfd19e1bf1a50d48abed1d566274f4ff8239c64
14a574eb3652b70d8c0739a6ed1534557626c2a8
refs/heads/master
2021-01-19T12:56:12.341077
2017-01-26T06:39:55
2017-01-26T06:39:55
78,696,025
0
0
null
null
null
null
UTF-8
C++
false
false
10,401
cpp
test_person.cpp
#include "gtest/gtest.h" #include "person.h" // this class is used for testing public methods in class Person class test_person: public ::testing::Test { protected: Person person; Person recipient; }; // test Person constructor TEST_F(test_person, test_constructor) { //invlid username Person p1("abcdefghijklmnopq...
d833a349cbb1a46bee196be27ca1a3f77c8c0257
58278f7da1c8ce95960b00e7982fc0119686d559
/main.cpp
10456ec2039c0e0dde2092e80bc0d7e64e4861e7
[]
no_license
Rhaypapenfuzz/Calendar-Cpp-
6cc8b2ec91c7a60ab6517c1a0003c38703e805c1
2b2c2cd0091623212fadd2a4d16ed3f2bd0bd7da
refs/heads/master
2020-04-01T15:27:07.884464
2018-10-16T23:39:30
2018-10-16T23:39:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,876
cpp
main.cpp
//My Simple Calendar #include <iostream> #include <string> #include <fstream> using namespace std; int getYear(); int getStartingDay(); void printHeading(int); string readMonthName(); int readNumDays(); int printMonth(int,int,string); void formatting(int); int year, numOfDays, startDate, lastDay; string monthName; //c...
798615aa058fba3731a65898ef4b2c7b5cad2491
0907eefbe79af3bebc4cf96f449c16cbca5c6b27
/Libs/Core/Code/midasProgressReporter.cxx
596afca0c65f1e309384559d59f4d935f3363fed
[ "Apache-2.0" ]
permissive
midasplatform/MidasClient
04ca5595a20787ed145b30c53de54e08327bcb17
728d4a5969691b54b7d0efd2dbad5a4df85d1a0e
refs/heads/master
2021-04-26T22:10:54.785523
2018-03-06T06:51:04
2018-03-06T06:51:04
124,033,172
0
0
null
null
null
null
UTF-8
C++
false
false
1,334
cxx
midasProgressReporter.cxx
/****************************************************************************** * Copyright 2011 Kitware Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache....
cb68b6937d3328743178d981b4044d8ba0950da1
9fca214e01113180f49d603e014894ad2abd0f66
/src/cv/common/MatrixOperator.cpp
67f02cf2b0019ab092e49adbf6de268e9ace3f0f
[ "Apache-2.0" ]
permissive
boselor/slc
57168f1d74ecbfbcfe4648d7c67fde9d1717be41
a1fd53da3f180c4062cac7083b444b438d777d26
refs/heads/develop
2023-02-20T05:12:04.615913
2021-01-19T12:37:43
2021-01-19T12:37:43
330,430,997
0
0
Apache-2.0
2021-01-17T16:21:32
2021-01-17T16:09:33
C++
UTF-8
C++
false
false
772
cpp
MatrixOperator.cpp
// // Created by xiaoyong on 2021/1/1. // #include <cv/common/MatrixOperator.h> namespace slc{ MatrixOperator::MatrixOperator() {} MatrixOperator::~MatrixOperator() {} MatrixOperator MatrixOperator::load(cv::Mat matrix) { this->entity = matrix; return *this; } MatrixOperator Matri...
9c9a1b0ed711402f5aa2af6954530ee5ce0a335c
8568610480330eef8e5d3cec3e7c9faf6c244364
/BME_Datalogger/Second_Derivative.ino
ce2e5b0fd8955171b26e845241905c825f2c68ac
[ "MIT" ]
permissive
steflayanto/Plasma_Payload_Controller
ad8361e29cc5f619717f9665ce98b392edb873a6
2a9f299327f6771ff1e7d9c0282c78b381ee64b4
refs/heads/master
2020-04-19T13:39:36.067282
2019-06-15T00:54:53
2019-06-15T00:54:53
168,223,146
2
3
MIT
2019-01-29T22:14:45
2019-01-29T20:25:58
C++
UTF-8
C++
false
false
1,462
ino
Second_Derivative.ino
float rightInput = 0, leftInput = 0, centralInput = 0; // Store the data #define DATA_STORAGE 9 float secDeriData[DATA_STORAGE]; int isFull = 0; /* * @param: newValue, the new altitude value * Update the new value to the storage(use shift * for better value obtaining) */ void updateStorage(float newValue) { f...
88cfdb34fc7faeb22f5d5e2e35959191eec34222
ed2cd3d6b3475cde90b1dda95eb03c859517c71a
/Student_Cuda_Image/src/cpp/core/07_Convolution/moo/host/ConvolutionMOO.h
c212609233d3a45296b63b2e46251d48d15ce42a
[]
no_license
jcornaz/hesso.gpu.exercices
926473089d096210b2538da0c76ec69f67e0794d
5de3288338f963e12d5c32d95d372834f57923d5
refs/heads/master
2021-01-21T06:52:08.018923
2018-04-04T11:48:23
2018-04-04T11:48:23
91,589,076
0
0
null
null
null
null
UTF-8
C++
false
false
795
h
ConvolutionMOO.h
#ifndef CONVOLUTION_MOO_H_ #define CONVOLUTION_MOO_H_ #include "Animable_I.h" #include "CVCaptureVideo.h" class ConvolutionMOO: public Animable_I { public: ConvolutionMOO(string videoPath, float* ptrKernel); ~ConvolutionMOO(); /** * Call periodicly by the api */ virtual void process(uchar4...
4306baae28a8334d08104a3a120bcf6b1733dd0d
dc8da3d51a5556c4435ac861a8e1d54348d2746c
/GIS/GIS.h
cd5ba63e1ab445621e873c57091144da6be80603
[]
no_license
Udironen/Advanced-Topics-in-Programming
6bcc8d335925215213761b1ba170488e54e3b7ea
57cfd0ed6e91a037a3a1ef8af4a7584de537e226
refs/heads/main
2023-03-19T02:11:06.315447
2021-03-11T14:23:25
2021-03-11T14:23:25
339,782,802
1
0
null
null
null
null
UTF-8
C++
false
false
15,364
h
GIS.h
#pragma once #include "rapidjson/document.h" // rapidjson's DOM-style API #include "rapidjson/prettywriter.h" // for stringify JSON #include "Entity.h" #include "Junction.h" #include "Way.h" #include "POI.h" #include "GridWay.h" #include "GridEntity.h" #include "../Common/GISNamedTypes.h" #include "../C...
3ff1e33d246abdb61a08330925318f62bb75721d
4bccb0950c507cca0b136f73142c978d1efec09c
/combinatorics.cpp
dc46d9bdd860965d6105fabb4e8a70d98aac4e30
[]
no_license
doanphuduc/LTTS
280c5dd853d294818ed36ff28ad6f2be5f55504a
7294f3235eedecfa34adb5d9984b145c03cdd860
refs/heads/master
2023-04-14T10:23:50.851121
2021-04-23T16:32:58
2021-04-23T16:32:58
357,955,553
0
0
null
null
null
null
UTF-8
C++
false
false
606
cpp
combinatorics.cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e3 + 10; int c[N][N]; int C(int k, int n) { if (k > n) return 0; if (k == 0 || k == n) return 1; if (c[k][n] != -1) return c[k][n]; return c[k][n] = C(k, n - 1) + C(k - 1, n - 1); // Hạ chỉ số dưới. } int fact[N]; int ma...
31f6581981767072422d21a453066a94581c9141
aade1e73011f72554e3bd7f13b6934386daf5313
/Contest/WorldFinals/2015/I.cpp
cee1dda636baaa5cb5f8193e0b6544a8fc08c034
[]
no_license
edisonhello/waynedisonitau123
3a57bc595cb6a17fc37154ed0ec246b145ab8b32
48658467ae94e60ef36cab51a36d784c4144b565
refs/heads/master
2022-09-21T04:24:11.154204
2022-09-18T15:23:47
2022-09-18T15:23:47
101,478,520
34
6
null
null
null
null
UTF-8
C++
false
false
957
cpp
I.cpp
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, w, u, v, t1, t2; cin >> n >> w >> u >> v >> t1 >> t2; set<pair<double, double>> no; no.insert(make_pair(-10000000, t1)); no.insert(make_pair(t2, 10000000)); for (int i = 1; i <= n; ++i)...
757ad2ad7971d6a1d4ddfa73ca6475fcd0d23af8
d2dbd661474fa8660a18626a84289b9c1f95b49d
/iEngine/iEngine/Predicate.cpp
ae7f03904c79e75645debf01d463a19b0b79f4c6
[]
no_license
xxfast/iEngine
e40c60a54fe72beef883b0adac81903410a9483b
06f64b81fc972cf651b56984d13174a6862da3bb
refs/heads/master
2016-09-12T20:17:41.672678
2016-05-26T17:10:15
2016-05-26T17:10:15
57,947,849
1
0
null
2016-05-26T17:13:27
2016-05-03T06:50:56
C++
UTF-8
C++
false
false
1,973
cpp
Predicate.cpp
// Predicate.cpp // iEngine // // Created by Ian Adrian Wisata, Isuru Kusumal Rajapakse on 5/4/16. // Copyright © 2016 Isuru Kusumal Rajapakse. All rights reserved. // #include <sstream> #include "Predicate.h" #include "Utilities.h" using namespace std; //Predicate constructor Predicate::Predicate() { fLVal=...
0fcb0daca57fe3a2779e56d52ce2d310ca36df16
95cb0e38d8272759f2e177cf53d8204aab481af0
/Command/undo/DimmerLightOnCommand.hpp
f1be1df748863c41174e55d8a004e6b7d8f4b9c0
[]
no_license
Undergott/Head-First-Design-Pattern-CPP-Examples
60c2e4225f44aba0d6682511fa77fb08d30d03a4
3549784ce2c1df014c200e7a537ce2db35629088
refs/heads/master
2023-01-23T23:28:18.822674
2020-12-03T16:48:05
2020-12-03T16:48:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
477
hpp
DimmerLightOnCommand.hpp
#ifndef DIMMER_LIGHT_ON_COMMAND_H #define DIMMER_LIGHT_ON_COMMAND_H #include "Command.hpp" #include "Light.hpp" class DimmerLightOnCommand : public Command { public: DimmerLightOnCommand(Light *l) : light(l) {} void execute() override; void undo() override { light->dim(prevLevel); } private: Light *light; ...
e1bf6e959bced225ad7043155b2354b9593a15e0
d524dc1cf48dfb3dac6b288d0f5d3206ac2ad33b
/CMSSW/src/bainbrid/Test/test/SortJetCollectionsByGenJetPt.cc
4f94bbcc3c6d3b18135f9a6d29382ec782cc2f81
[]
no_license
bainbrid/usercode
59e7e2c2ba66be8ee6696be5b7fdddc3fa5d6d2a
3d1ae8563ff470725721100f6e5a2e7b5e8e125e
refs/heads/master
2016-09-07T18:38:31.267514
2013-09-10T20:21:21
2013-09-10T20:21:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,685
cc
SortJetCollectionsByGenJetPt.cc
#include "bainbrid/Test/test/SortJetCollectionsByGenJetPt.h" #include "DataFormats/Common/interface/View.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #...
1f80e21b4176d403c190c56519dbaac0e1b9c96f
7cb6e3bc654414b45d992da7ae8a1e3ba306944b
/src/gazebo_plugins/Clock.cc
98a21cfaaee417f50567a2299cfc899b175658bf
[]
no_license
arocchi/gazebo_yarp_plugins
b84b7c3fb06a301666df1c3c20e92f1e183e2944
2abbf07cabb39ac718a56dd18280f0f069435c73
refs/heads/master
2020-12-25T17:57:01.154652
2014-02-26T09:34:19
2014-02-26T09:34:19
17,263,864
0
1
null
2015-11-04T11:00:26
2014-02-27T20:48:23
C++
UTF-8
C++
false
false
1,866
cc
Clock.cc
/* * Copyright (C) 2007-2013 Istituto Italiano di Tecnologia ADVR & iCub Facility * Authors: Enrico Mingo, Alessio Rocchi, Mirko Ferrati, Silvio Traversaro and Alessandro Settimi * CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT */ #include <gazebo_yarp_plugins/Clock.hh> #include <gazeb...
3520ec23c58f7e53a1b4a3cddf1d4cfa329a8d07
594975831ea01c49bc9a3253ca1ccbac9f4f5eea
/app/include/DataStructCom/TorpedoAttackTask.h
ebd623cc6ea54c197760f09df9e5a5c137e46521
[]
no_license
WarfareCode/linux
0344589884de3d345b50fa8ba9cad29e94feb9c6
a0ef3d4da620f3eeb1cf54fa2a86e14c9b96c65a
refs/heads/master
2021-10-09T18:32:47.071838
2018-12-25T08:14:56
2018-12-25T08:14:56
null
0
0
null
null
null
null
GB18030
C++
false
false
1,251
h
TorpedoAttackTask.h
//TorpedoAttackTask.h: interface for the CTorpedoAttackTask module. //!!HDOSE_CLASS(CTorpedoAttackTask,CTask) ////////////////////////////////////////////////////////////////////// #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #if !defined(AFX_TorpedoAttackTask_H) #define AFX_TorpedoAttackTask_H //{{HD...
ff611c054de258cec6acea76a3b2ab901d73fcc7
13e77e63c0cfaca12ed1798f43510509e47fac94
/181-351-Okunev-2sim/Lab1 log and pas/change.h
27810ce777851d6a3ca6f2174c7212206e6d06e4
[]
no_license
Steper2000/181-351-okunev
999db5f1bfc0fbb764811b6d7807f8d39f9a1904
b9d21f16076409c3a713ad10b1d23486ff0c85ab
refs/heads/master
2020-03-28T18:31:13.344732
2019-04-06T06:17:30
2019-04-06T06:17:30
148,888,430
0
0
null
null
null
null
UTF-8
C++
false
false
273
h
change.h
#pragma once #include <QDialog> #include "ui_change.h" class change : public QDialog, public Ui::change { Q_OBJECT public: change(QWidget *parent = Q_NULLPTR); ~change(); private: Ui::change ui; private slots: void on_pushButton_change_clicked(); };
c1855dcfa37961b845835c4490c845c78fb79232
f2838ef49a75a358e5065bedeaa36fa11945dc0f
/Source/Team18_AI/AI/Sensing/TAListeneningComponent.h
2a2e92b8766ad26241afcf157a2a95b79ef3c21b
[]
no_license
KennyGustavsson/AIFG
fe9622e7bbc4b7fcaf2ced7a91dd44e675522bc3
fe2cb4fb689f69f584869e6f364f6b352efed2fb
refs/heads/main
2023-04-19T11:04:38.226788
2021-05-09T20:57:30
2021-05-09T20:57:30
365,836,370
0
0
null
null
null
null
UTF-8
C++
false
false
1,028
h
TAListeneningComponent.h
#pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "TAListeneningComponent.generated.h" class UTAListeneningComponent; class ATeam18_AIGameMode; USTRUCT(BlueprintType) struct FSoundEventResult { GENERATED_BODY() public: UPROPERTY(BlueprintReadOnly) FVector Location = FVector::Z...
e830dee1007bfcebbc04d1195e8b6cf12ca28636
7908290a3386df7be468ea7745e10208e15a74fb
/VkResult_to_CString.hxx
996f976e55f96e11e33e4b257733159f941165f8
[]
no_license
jaguardeer/automatic-garbanzo
77cf173378ea4320cd3fe6d97d571c89643db86e
cd4708e1d07d1d3598b65370c68955651ff3aba6
refs/heads/master
2020-03-16T14:02:17.399371
2018-05-09T05:26:28
2018-05-09T05:26:28
132,705,760
0
0
null
null
null
null
UTF-8
C++
false
false
1,441
hxx
VkResult_to_CString.hxx
#ifndef VKRESULT_TO_CSTRING_H #define VKRESULT_TO_CSTRING_H extern "C" { #include <vulkan/vulkan.h> } constexpr const char* VkResult_to_CString (const VkResult vk_result) { switch (vk_result) { case VK_SUCCESS: return "VK_SUCCESS"; case VK_NOT_READY: return "VK_NOT_READY"; case VK_TIMEOUT: return...
a5447a40c1f4a0d88c092e8a2d661aedf6838e0f
560f37fb34b9d2828123de3ebf202ee7456f2e64
/src/spell.cpp
cf8c24fe975b9126aaff9107b4f713e705e28491
[]
no_license
samanthadoran/TurnBasedFight
842c6e0579189b48b206dab25b7f30a8754fec48
bb005bfd1964a008ee22336e585b245400d26e1c
refs/heads/master
2020-05-20T06:05:27.656206
2015-05-15T00:28:20
2015-05-15T00:28:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
584
cpp
spell.cpp
#include "../include/spell.h" Spell::Spell(std::string name, double hpEffect):Action(name) { this->hpEffect = hpEffect; } std::string Spell::use(Character * source, Character * target) const { target->setLife(target->getLife() + hpEffect); std::stringstream ss; ss << source->getName() << " casts...
26ecab61e04b183f8aadeb582c73e6460653d09f
0238298e966ab23a33509b5c2edc62d0e41802f8
/practicas/eclipse/prac6_2_D/edroom_glue/src/edroomdeployment.cpp
c1b92d0483fec53134b57c16b7f47f5d143fc5a4
[]
no_license
noesmoral/SistemasEmpotrados
b36058b9e24a327e1e1a25d6ec7049f9016deb83
a8b8f4b168a3d78067be1e80ac1fff68f9fc4383
refs/heads/master
2021-01-22T12:53:29.857125
2016-09-15T19:42:37
2016-09-15T19:42:37
68,328,074
0
0
null
null
null
null
UTF-8
C++
false
false
16,890
cpp
edroomdeployment.cpp
//############################################################################## //############### This file has been generated by EDROOM ############### //############################################################################## #include <edroom_glue/edroomdeployment.h> //***************************...
8d47084748647677baf3561cc3500b28c5c3deae
30a8d2ba26080134916d6580923a65f1426d8e02
/Lab01 - 597609, 453828/Exercise 3.2 - Complex_Type_2/main.cpp
376f4cad1507ae55c6e563d6697b690996d3afab
[]
no_license
aliceyang16/Software_Labs
758a59890316a535ee383dfe76c84357168da456
fea5465b29fce90e9ba45f64bce913ae010ab9b9
refs/heads/master
2020-04-26T22:56:30.910731
2015-08-31T15:51:02
2015-08-31T15:51:02
39,832,157
0
0
null
null
null
null
UTF-8
C++
false
false
2,394
cpp
main.cpp
#include <iostream> #include <string.h> #include <complex> using namespace std; typedef complex<double> complex_number; // Function prototype int prompt_value(char); double quad_equation_1(double, int, int); double quad_equation_2(double, int, int); complex_number quad_complex_equation(double, int, int); int main() ...
c06219e31826dd120e4e50df71eb26800cd574bb
f717e561649d68a2aeb626ced90587fa2b4de176
/Extensions/OpenLegacyAudio/AppleDBDMAAudio/Apple02DBDMAAudioDMAEngine.h
48ee6d0d1a3b88013ae8e5744eab46b05fd19fb0
[]
no_license
OpenDarwin-CVS/XPostFacto
9235e78d3302bc3a22911e6d33b40ff3206ccdc3
1803de6542e90ac878fd99aa808b15449a124fb4
refs/heads/master
2016-09-10T10:16:24.830437
2005-08-10T00:01:25
2005-08-10T00:01:25
19,126,537
8
2
null
null
null
null
IBM866
C++
false
false
10,955
h
Apple02DBDMAAudioDMAEngine.h
#ifndef _APPLEDBDMAAUDIODMAENGINE_H #define _APPLEDBDMAAUDIODMAENGINE_H #include <IOKit/ppc/IODBDMA.h> #include <IOKit/audio/IOAudioEngine.h> #include <IOKit/audio/IOAudioTypes.h> #include <IOKit/audio/IOAudioStream.h> #include "AudioHardwareCommon.h" #include "Apple02DBDMAAudioFloatLib.h" //#define _TIME_CLIP_ROUT...
050e40de6f7c7e837848744b38f2e90ddf7802cf
f46e4c0aca63425a64c14707facba1d074a5debc
/rona_move/src/Controller/ParabolaTransfere.cpp
42fa03b11fa7015ffdee0e1b71b69eb2d93d27aa
[]
no_license
christianpfitzner/rona
df7c22c36b08415a91ea23620fae56869ca80616
7b8397c981d2a02bc3ef96abc8a828f034a0bfdd
refs/heads/master
2021-04-28T11:01:47.355058
2018-02-20T09:57:04
2018-02-20T09:57:04
122,080,353
0
0
null
2018-02-19T15:16:58
2018-02-19T15:16:57
null
UTF-8
C++
false
false
1,242
cpp
ParabolaTransfere.cpp
/* * ParabolaTransfere.cpp * * Created on: 04.11.2014 * Author: m1ch1 */ #include "ParabolaTransfere.h" #include <string> #include <iostream> namespace controller { ParabolaTransfere::ParabolaTransfere( double max_vel_lin, double max_vel_ang, double parabola_lin_fac, double parabol...
b0f364ba04b9d5de93cd30dea2dc1cf24c973c46
2495ee0810bdf6f1ea50d7fa0f63b08cc1466c94
/code/opencv249_lbp_08/main.cpp
e00f874bff2462cd993f1719441cf58e2713542e
[]
no_license
jash-git/opencv249_Feature_Detection
8c57c45e8e0574fe18f14a1ae95dc5805029a761
b4a97855ddfc076682a0d85704086b449c58655c
refs/heads/master
2020-04-16T19:21:13.637909
2019-01-31T13:22:54
2019-01-31T13:22:54
165,856,194
1
1
null
null
null
null
BIG5
C++
false
false
3,955
cpp
main.cpp
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/ml/ml.hpp> //3.1的寫法- #include <opencv2/xfeatures2d.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/nonfree/features2d.hpp> #include <opencv2/nonfree/nonfree.hpp> #include ...
15761230733411c79e6a7cc0d409e83cb4f4365d
15dcaffcda41e1f8e4bd1c254384be24950f4327
/HelloWorldTest/chapter_9_10/9_10.cpp
bdb702f19b8cdea71080c70347a2fa2cf81fb349
[ "MIT" ]
permissive
choi2649/C-Study
bbaac6755bfac5ed802c31de648530d28b0e230f
790f0fd8b8c13f392183d2194348b50ad66aba7c
refs/heads/master
2020-08-01T14:13:20.448230
2020-07-07T00:10:03
2020-07-07T00:10:03
211,019,012
0
0
null
null
null
null
UTF-8
C++
false
false
658
cpp
9_10.cpp
#include <iostream> #include <cassert> using namespace std; class Fraction { private: int m_num; int m_den; public: Fraction(char) = delete; Fraction(char,char) = delete; Fraction(int num = 0, int den = 1) :m_num(num), m_den(den) { assert(den != 0); } Fraction(const Fraction &frc) :m_num(frc.m_num), m...
d05dd5d3a6b155e6404db4ffccb8aa62730143c9
28999c5603d9e9e3db378a37169dccc17ea51f43
/code/foundation/system/win32/win32systeminfo.cc
f0fd85d79a0755a544f3d11144f6f7bd01439d2b
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gscept/nebula
e973c2b950da93ca30e0432fc6bd6dd6f6a59bdd
4dca6f2a8f1deb2020f1b7d179dd29e1ed45a5fe
refs/heads/master
2023-08-25T06:39:53.517007
2023-08-24T15:30:57
2023-08-24T15:30:57
164,856,783
603
36
NOASSERTION
2023-09-12T22:22:41
2019-01-09T12:14:20
C++
UTF-8
C++
false
false
1,217
cc
win32systeminfo.cc
//------------------------------------------------------------------------------ // win32systeminfo.cc // (C) 2008 Radon Labs GmbH // (C) 2013-2020 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "foundation/stdneb.h" #include "syste...
cc135c6167955469505e6d190cb29da54eba7968
cdbdd280ff659ef1c9386948ce6c40d4b87dfb6b
/main.cpp
590198f64e0f3dd326a6b7a5e60c1e283b13212c
[]
no_license
ewalasagas/university_directory
7151f3cc5f7c933275e889ce6459a399f70ec879
34666c39cc12da578cf6dadb64cce482f6000a61
refs/heads/master
2022-12-16T17:19:33.922767
2020-09-18T06:28:17
2020-09-18T06:28:17
293,950,600
0
0
null
null
null
null
UTF-8
C++
false
false
8,414
cpp
main.cpp
/********************************************************************* ** Program name: Lab4 ** Author: Elaine Alasagas ** Date: 2/4/2019 ** Description: CS162_400_WINTER2019 - Instructor.hpp class *********************************************************************/ #include <iostream> #include <string> #inc...
cd81f3786ba7a25098315695762dca74e19cc439
00b2421552ae8881c7d71fae6d8747e572e150f2
/Codeforces/powers of two 2.cpp
8d07ec2f204ad8ba945fbe42aedca1bdd3f002b0
[]
no_license
serendiipity/Competitive-Programming
870eabb067e1746ae76d4d6fbf94fe24ae9b6ab1
3ecca29a7d69f8bab44bec646166a3885ae4d2f5
refs/heads/master
2022-05-05T03:48:49.355716
2022-03-17T13:35:22
2022-03-17T13:35:22
184,333,777
0
1
null
null
null
null
UTF-8
C++
false
false
426
cpp
powers of two 2.cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; int p[1000000], e, c; int main() { int n, k; cin >> n >> k; while (n > k && k > 0) { e = log2(n - k + 1); p[c++] = (1 << e); k--; n -= (1 << e); } if (n - k) cout << "NO" << endl; else { for (int i = 0; i < k; i++) p[c++] = 1; cou...
c25a1100e902a1514082a3f4cdef06aba27987b1
0b63b7b9afc7272044d9fb53b65c1a5800b2b136
/ntile/src/ntile/stats.cpp
ebed2c2ad0530dc7afe1dd759961f06362a6c085
[]
no_license
Kibande/zombie-framework
edb99c875289674815314d06636c63082b93c033
2517d2a5c5243e17a69c85f9f6d04cf827880c8c
refs/heads/master
2020-04-14T22:10:49.527378
2018-11-08T22:10:38
2018-11-08T22:10:38
164,153,682
1
0
null
2019-01-04T20:53:03
2019-01-04T20:53:02
null
UTF-8
C++
false
false
377
cpp
stats.cpp
#include "stats.hpp" #include <cmath> namespace ntile { void Stats::CalculateStats(const BaseStats& base, CharacterStats& stats) { stats.hp = 8 + (int)round(stats.level * base.bhp / 10.0f); stats.str = 2 + (int)round(pow(stats.level, 1.2f) * base.bstr / 40.0f); stats.def = 2 + (int)ro...
4d5159ee03efc9518e7472a6e7886b1e041dc75f
678328ff5e7d80e31af75bcf9a29c061117a5208
/Scarab-Engine/Source/Engine/Physics/CollisionDetection/BroadPhase/PairListener.inl
bf0ad0d68e68272aafacd2699397782aee470e5d
[]
no_license
SyGame-Engine-Team/SyGame-Engine
48ead0234e92ddae5096e0b00edfbbd0bb484291
1e2e9f174ca6a19394d50b03eb54a3d2bc2066b7
refs/heads/master
2021-01-10T15:05:24.457349
2015-09-29T21:55:15
2015-09-29T21:55:15
43,390,724
4
1
null
null
null
null
UTF-8
C++
false
false
1,597
inl
PairListener.inl
///////////////////////////////////////////////////////////////////////////////// // File : Engine/Physics/CollisionDetection/BroadPhase/PairListener.inl ///////////////////////////////////////////////////////////////////////////////// // Version : 1.0a // Began Code : 29/05/2010 // Status : Alpha // Portability : Any ...
e5afea6687fc34592caf7b85eb739963109ca541
8ee5b1d44a1568b239dce3421145c0dc19e4e6c9
/xx_coro_test2/main.cpp
de7cae1c4497d330b7c48640f58c4fe93d7052f7
[ "MIT" ]
permissive
denghe/xxlib
c38a7be26f877565e02adda974319484f4aa6289
4fc059fe06bcefbcb283fac301b3703cb0d53131
refs/heads/main
2023-08-31T21:06:37.352038
2023-08-29T03:40:57
2023-08-29T03:40:57
343,328,442
18
9
null
null
null
null
UTF-8
C++
false
false
814
cpp
main.cpp
#include "xx_coro_simple.h" #include <thread> #include <iostream> CoType func1() { CoSleep(1s); std::cout << "func1 out" << std::endl; } CoType func2() { CoAwait( func1() ); CoAwait( func1() ); } int main() { xx::Coros cs; auto func = [](int b, int e)->CoType { CoYield; for (...