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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9349d72bce9665bc690d330bc62173e92aba9f87 | 606a630fd33883d242d3ca06121877a691ae8b02 | /Projet7/Source.cpp | 0e5bc33fc59105d61073c3c8c243fee3e367ad17 | [] | no_license | Shinegans/souitch | 44bb27bd90be59a24daf3a10086dc44b95fb9b29 | 7d317f4e691f59bb8714ecad956028b784e05189 | refs/heads/master | 2021-01-23T03:05:00.121346 | 2017-03-24T14:08:48 | 2017-03-24T14:08:48 | 86,046,906 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 10,804 | cpp | Source.cpp | #include "SFML\Graphics.hpp"
#include "SFML\Window.hpp"
#include "SFML\System\String.hpp"
#include "Pions.h"
#include "map.h"
using namespace sf;
using namespace std;
#include <string>
int TabPlateau[8][8];
Pions** lespions = new Pions*[33];
//Initialisations
void initpion(Pions** lespions)
{
//Noir
//1pt
lespions... |
3318461c22900dbf0dc22401a7a5a8549f1d01e5 | 4d6e64caff6a7bdf48919e98f2e6eceb916b527f | /Section_Flash_All_Rainbow.ino | 4fb9c0cc67ec8d0f2148fcdd31bdb34dd673c3db | [] | no_license | livingkurt/Glow_Strings_Simple | 2b9c44e706130ac1a6404b9a3cc7863496596cf0 | c370e67e927bedb94269681e36fc674849dfad7c | refs/heads/master | 2022-12-24T16:39:32.473769 | 2020-10-11T14:42:28 | 2020-10-11T14:42:28 | 301,591,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | ino | Section_Flash_All_Rainbow.ino | int num = 1;
void section_flash_all_rainbow()
{
int rate = 10;
int split_value = 5;
int row = NUM_LEDS / split_value;
int strobe = 0.5;
int gap = 40;
// int row = 5;
int start_hue;
int delta_hue = 50;
start_hue = -1 * millis() / rate;
fill_solid(leds, NUM_LEDS, CHSV(start_hue, 255, 150)); // Set a... |
8056256178689fec9b9fdd19c3d0337d8b5f6ce1 | 700ed970aab9c5446f623382d87734d4acae0efd | /ICT1009Project/graph.h | cddfe14c97539a6ffe5d8294ab96f3d9d38c6c36 | [] | no_license | limcj/cpp-crawlerproj | f8abe4e905f58692a35d16cdbd3a0b0fc3ee8619 | e9dd8afe07c1105b168b4d4c4afaab663602d3f0 | refs/heads/master | 2021-03-11T02:51:45.798288 | 2020-03-30T06:04:49 | 2020-03-30T06:04:49 | 246,504,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,198 | h | graph.h | #pragma once
using namespace std;
//parent graph class that will render summary of faults and maintenance graph
class graph {
protected:
int fault = 0;
int maintenance = 0;
public:
graph();
void renderGraph();
};
//child graph class that inherits from parent class graph
//this graph is used to show... |
d282120197e8012260c8880ad2c017288a0f9a2e | 6db027835bdd2694a7bb315ffa03f29b8e071279 | /include/lug/Graphics/Vulkan/Render/View.hpp | e6a53e028ad418da679df92a110391edcf277456 | [
"MIT"
] | permissive | Lugdunum3D/Lugdunum | e28e0254a29b1234fe0f1415e7f88edb1b81e5de | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | refs/heads/dev | 2021-01-19T12:07:47.314937 | 2018-05-29T12:14:27 | 2018-05-29T12:14:27 | 69,289,273 | 283 | 39 | MIT | 2018-01-10T20:31:51 | 2016-09-26T20:18:40 | C++ | UTF-8 | C++ | false | false | 1,793 | hpp | View.hpp | #pragma once
#include <lug/Graphics/Export.hpp>
#include <lug/Graphics/Render/View.hpp>
#include <lug/Graphics/Vulkan/API/Semaphore.hpp>
#include <lug/Graphics/Vulkan/Render/Queue.hpp>
#include <lug/Graphics/Vulkan/Render/Technique/Technique.hpp>
namespace lug {
namespace Graphics {
namespace Vulkan {
namespace API ... |
d035cfd67663827c930697727acf5f461d319387 | 7086a21f74424ff39622c780f604e28c9f917799 | /part2/plotsim.cc | a8d781172b60a4cc6fc999890cd5d8f6c6e88f35 | [
"MIT"
] | permissive | alexcannan/PlotSim | 7701f057a26c19ab512a74a5aa7056297d6d9a86 | dbadb5ba62d7404b290741760bf7c8617a24f40f | refs/heads/master | 2022-06-13T08:39:34.709678 | 2020-05-05T15:06:09 | 2020-05-05T15:06:09 | 257,816,247 | 0 | 0 | MIT | 2020-04-22T06:48:32 | 2020-04-22T06:48:31 | null | UTF-8 | C++ | false | false | 956 | cc | plotsim.cc | #include <thread>
#include "app.hh"
#include "timer.hh"
#include "mysimulator.hh"
static void userInit(brown::Simulator& sim) {
// your amazing code
sim->timx.setPrescaler(1000);
sim->timx.setPeriod(120);
printf("In userInit\n");
}
static void userLoop(brown::Simulator& sim) {
// your amazing cod... |
539d5e38b39ba888a65557753a4be9eeb3fa6f59 | 07e75a4d318581228fbee82fb5b1e7cf0a707d34 | /box.h | 1fa42d2b66b1f31f6066daef122d266ba04df63a | [
"MIT"
] | permissive | itisbugra/OOPHW3 | 800b4a7d68bf81a7cd19fc91faaccff46fa83b80 | 40b8078d5168ed3c8355b1dc5d84431b1812c0d1 | refs/heads/master | 2023-08-17T05:01:14.416300 | 2017-03-17T18:59:49 | 2017-03-17T18:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,999 | h | box.h | /*
* @Author
* Student Name: Buğra Ekuklu
* Student ID : 150120016
* Date: May 5th, 2016
*/
#ifndef BoxDeclaration
#define BoxDeclaration
#include <iostream>
#include <typeinfo>
#include <cxxabi.h>
#include "sizedobject.h"
template <typename T>
class Box : public SizedObject {
private:
#if __cplusplus <= 199711... |
986bd1a98408453e5bd1814cb0583512b264c989 | 018eac278e23bf4611b1b5d4aa0ac106dff8238b | /problem/数学/矩阵乘法/BNUOJ 34985 Elegant String(dp+矩阵快速幂).cpp | 4f05cfbc793a47cfcc481d0143a2d857a29991a8 | [] | no_license | qian99/acm | 250294b153455913442d13bb5caed1a82cd0b9e3 | 4f88f34cbd6ee33476eceeeec47974c1fe2748d8 | refs/heads/master | 2021-01-11T17:38:56.835301 | 2017-01-23T15:00:46 | 2017-01-23T15:00:47 | 79,812,471 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | cpp | BNUOJ 34985 Elegant String(dp+矩阵快速幂).cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<vector>
#define inf 0x3f3f3f3f
#define Inf 0x3FFFFFFFFFFFFFFFLL
#define eps 1e-9
#define pi acos(-1.0)
using namespace std;
typedef long long l... |
52f0003f48fbacfc28720eb58365a3951f658823 | 616f19c9ecab3330a70d7378f5f73bbbc84ee071 | /cpp/VS2012UnitTestTesting/MockingExample/MockingExample.cpp | c20d56f4b0ffc47971a617ad8635fc2618f7b81a | [] | no_license | rjking58/development | 07dd809da012f736d82fde79c051cc2df328e6b7 | 9566648c6ecfc8b8cb6d166912dd674346da246b | refs/heads/master | 2021-10-11T12:25:31.025767 | 2021-10-01T16:41:06 | 2021-10-01T16:41:06 | 14,648,819 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 132 | cpp | MockingExample.cpp | // MockingExample.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "ExportHeader.h"
|
00a1089e9d994ee824eb1c1a4d015d3ce11bd734 | 9406633ca7c274b2dc21e5d093a4a4c7f41da668 | /code/Samples/Render/SampleShadowMap.hxx | 9e66b1bf552cff65d7df10f6a44d8acce6ddde7e | [] | no_license | corefan/mayingzhen | 88eb46ed2661fb6354fdace7abc7051e139ca22f | 038cbed223f3daf7493c2437f48762b23f3892d8 | refs/heads/master | 2021-01-21T03:22:03.691067 | 2017-06-17T15:28:37 | 2017-06-17T15:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,016 | hxx | SampleShadowMap.hxx | #include "SampleShadowMap.h"
namespace ma
{
SampleShadowMap::SampleShadowMap()
{
m_pDirectLight = NULL;
}
void SampleShadowMap::Load()
{
//GetInput()->AddKeyListener(this);
Vector3 vEyePos = Vector3(0, -60, 60);
Vector3 VAtPos = Vector3(0, 0, 0);
GetCamera()->LookAt(vEyePos, VAtPos);
... |
1812f504f1468871dcd43692523ddaeec7410d35 | 8d5ef806f7bd9355593c0a8de786e7c203091b52 | /Exec/ibRunPeriodRuns.cxx | 95b2637b5e2baf9e878781cee996ebc56e7b08e0 | [] | no_license | dladams/duneproc | 40aa6926845ff3ef504a61a2ecfd1280c9fd29b6 | 4fe49f2e27e2abd95d79698d1fe8db5b6f9cc767 | refs/heads/master | 2023-04-28T03:05:37.414517 | 2023-04-24T15:40:56 | 2023-04-24T15:40:56 | 233,672,726 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | cxx | ibRunPeriodRuns.cxx | #include <iostream>
#include <string>
#include <vector>
#include "../Utility/IcebergHelper.h"
using std::cout;
using std::cerr;
using std::endl;
using std::string;
using std::stoi;
using Index = unsigned int;
using IndexVector = std::vector<Index>;
int main(int narg, char** argv) {
const string myname = "ibRunPerio... |
17b85b636812d0667add9a0328dfd30b93010246 | 41a175fdd9fd9d1347a71990339caaedd9bd2d5b | /Euler/no_10.cpp | c14d54e0f34e4c01581e154149f081e93b5ff4a4 | [] | no_license | MGZX/Practice | 59a12ad6579478212a1ec567bd0610cf031f3473 | c2c92cef6f029a18ddcae854ddf407763fd0295d | refs/heads/master | 2020-07-20T19:03:06.735303 | 2016-08-19T01:14:28 | 2016-08-19T01:14:28 | 66,002,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | no_10.cpp | //
// Created by zhaoxiaodong on 16-8-14.
//
#include <iostream>
#include <vector>
using namespace std;
void euler_10() {
long long sum = 0;
vector<int> prime;
prime.push_back(2);
for (int i = 3; i < 2000000; i++) {
int flag = 1;
for (int x : prime) {
if (i % x == 0) {
... |
0ac183d472f9b36f2b0685be2c83f219fe91fca2 | b9dfc15e9962fda9eed2a45118d484f1237ffb44 | /SMC/test_winch_function/test_winch_function.ino | 4be70e68dd9dbe0a740e004b0fbb399192c2ebb9 | [] | no_license | silvyaaulia/Syergie_Kalimantan | fcadebcc9b4614ef4ddbfa396765876f06cebcd2 | 8656c8ca42978246d5a48430cf347143223b4214 | refs/heads/Master | 2020-04-02T08:36:27.053314 | 2018-12-20T07:40:50 | 2018-12-20T07:40:50 | 154,251,797 | 1 | 0 | null | 2018-12-20T07:40:51 | 2018-10-23T02:51:01 | C++ | UTF-8 | C++ | false | false | 1,279 | ino | test_winch_function.ino | //Test winch
//01/11/18
#define potensio1 A10
#define potensio2 A11
#define potensio3 A12
#define potensio4 A13
int winch1 = 0;
int winch2 = 0;
int winch3 = 0;
int winch4 = 0;
/* Winch Function */
double pulse_winch(int potensio) {
double winch;
if (potensio <=150){
... |
78c911c8f01c9241a02717b62c03c54d12e36ab7 | ac6d9321826218698a438f1d8f5618813870f512 | /BOJ/Q10819.cpp | 05ef35220b3860569cbc90b66ba8e04589d5c294 | [] | no_license | pnm6054/Algorithm_exercise | f4e5f37c089e6f67659466126fae3157d88b3c72 | 6ee871ce535fc4bcc9ac5611bf0150d5735a2689 | refs/heads/master | 2020-12-10T15:14:13.020165 | 2020-04-21T14:36:10 | 2020-04-21T14:36:10 | 233,629,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | Q10819.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n, *a, *b, *c, s = 0;
cin >> n;
a = new int[n];
b = new int[n];
c = new int[n];
for (int i = 0; i < n; i++)
cin >> a[i];
sort(a, a + n);
for (int i = 0;... |
7c75eaa0ad7d2016536e94eaefd8d904c221b302 | ad1e25f475133225b12b20e34ca8f68e3c29f29c | /Algorihm Category/IndexedTree/16975_lazy.cpp | 882efb81c54eafd26f2a0169dd8b28040d415443 | [] | no_license | ioqoo/PS | 7097b167145a84d60b0e0e05d5e859c5db64b300 | 316619ab6862de8a0e46afcd359c8281f32051a9 | refs/heads/master | 2020-11-30T12:24:51.210667 | 2020-11-22T02:14:12 | 2020-11-22T02:14:12 | 230,393,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,953 | cpp | 16975_lazy.cpp | #include <iostream>
#include <cmath>
#define ll long long
const int MAX = 1 << ((int)ceil(log2(100000)) + 1);
using namespace std;
int N, M, leaf_size;
ll tree[MAX];
ll lazy[MAX];
void init(){
for (int i=leaf_size-1;i>0;i--){
tree[i] = tree[i*2] + tree[i*2+1];
}
}
void prop(int node, int l, int r){... |
b34f3fb970c61f75ecd93d940d6553817a1c4708 | afc85b0988e27cf2e9d0b3b351e2602a2cf3730a | /stl_find.cpp | d63c7a8fdc13a38d55fbaac43fac1f07797dee5d | [] | no_license | Nikhil-Vinay/CPP_Notes | 001c100b887ff166411d44c51106e33daadf8a52 | 36d20b531a07a16d9ab322e983006b2eb8b7abe4 | refs/heads/master | 2023-05-12T00:27:04.890632 | 2021-06-06T15:04:46 | 2021-06-06T15:04:46 | 291,986,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,075 | cpp | stl_find.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
class student
{
public:
int age;
int marks;
student(const student& obj) {
age = obj.age;
marks = obj.marks;
}
void operator = (const student& obj) {
age = obj.age;
marks = obj.marks;
}
student(int inage, int inmarks): age(... |
cabe91db92f59f1766028d3e361b3039ea8a6e4c | fc90e8fab1de9b97eef946bf2b0bba405727f644 | /cerebrus/navmesh.cpp | 2f05d83130433ab136d39bdbec9333a96fc07adb | [] | no_license | SGD2718/run4life | 4b52ad8eccbfcc78c52a0a4b0de79be96e454fec | 7d177b08a4a70060bdfeb66da353d5c0e4d4ad35 | refs/heads/master | 2023-04-30T23:21:31.410832 | 2017-03-24T00:23:07 | 2017-03-24T00:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,110 | cpp | navmesh.cpp | #include "navmesh.h"
#include "node.h"
#include "edge.h"
#include "logger.h"
#include <fstream>
#include <sstream>
#include <exception>
#include <queue>
using namespace std;
NavMesh::NavMesh() : _file_path("")
{
}
NavMesh::~NavMesh()
{
}
bool NavMesh::load_file(const string& file_path)
{
Logger log(this);
log.in... |
e657d5d7c663b39b40a144859e90ec79b9255500 | c1481d91b9aa5c4e77c67a8aec9b0efe8d3808ad | /WRT/WRT-T1/src/main.cpp | 38b158c9214212f851b8a0d1000d893cbd295d16 | [] | no_license | Gariben/Raspberry-Pi | bf5f08d8ba72571b651c8ee597e804d23a78aaee | 9ac238a62960f9072fa08e5b8237110a7140f52a | refs/heads/master | 2021-01-10T17:24:39.363940 | 2015-12-01T03:25:44 | 2015-12-01T03:25:44 | 47,159,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,149 | cpp | main.cpp | /*
------------------------------------------------------------------------------
project: TinyTank, Raspberry-pi based teleoperated tank.
Program: TinyTank driver program
Author: Jacob Arlo Leibeck / Gariben
Revision: v1
Overview:
This program takes wiimote inputs via usb bluetooth adapter, and turns them
into digit... |
f5570be238745c0f45cf316ff443098201257610 | f4fb6f83f165698dbd15f3c4a644831b46fc5524 | /Es 12.cpp | 4b8127a1462e35479df0026c4f331644d4a08824 | [
"Unlicense"
] | permissive | Mistra/Programmazione-fisica-2019 | 103debe316ed16f35eea043c29d3416e93cb66cb | 442abd357f09c94de2d2404cfad567d420e7ccb4 | refs/heads/master | 2020-05-04T17:57:55.304888 | 2019-04-24T17:02:07 | 2019-04-24T17:02:07 | 179,333,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | Es 12.cpp | #include <iostream>
using namespace std;
void foo(int n) {
switch (n % 2) {
case 0:
cout << "Il numero e' pari" << endl;
break;
case 1:
cout << "Il numero e' dispari" << endl;
break;
}
}
int main() {
foo(3);
foo(8);
return 0;
} |
bdcaf6c909adc6fe2b7e5e2a89e5cc825ce151ce | 32983d47a0715deec9da6651910961582b68e459 | /Semester1/Laba1/Variant5/Variant5.cpp | e32dde10a9434a9a08dae83920e856ce9b07c98b | [] | no_license | afrochonsp/OAiP | 8729dc6b3350e889d05b3a9c33aea5f56e606374 | 7d967c605c0916349b8f2ddffe9a6d4082c41af9 | refs/heads/main | 2023-07-15T10:15:11.078463 | 2021-08-20T23:15:05 | 2021-08-20T23:15:05 | 398,412,278 | 0 | 0 | null | 2021-08-20T22:59:18 | 2021-08-20T22:18:44 | null | UTF-8 | C++ | false | false | 239 | cpp | Variant5.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x = -15.246, y = 4.642 * pow(10, -2), z = 20.001 * pow(10, 2), pi = atan(1) * 4;
cout << log(pow(y, -sqrt(abs(x)))) * (x - y / 2) + pow(sin(atan(z)), 2);
} |
70a0a0d0f6898e36633b87f3becf24b3adf0bd73 | a3578fff2f18137247de24109834849f81ed952d | /Project1/Source.cpp | f985d52a7dd6be92bde9623d49dd36d49ee22cc7 | [] | no_license | guedin/ChiliHW16 | 4fea4af65567be7e8934bb7336c9382c56d2fd1d | f67011d4b5b081209415db6aa5f099ee92e2cdba | refs/heads/master | 2020-04-02T12:08:42.592047 | 2018-10-27T16:17:48 | 2018-10-27T16:17:48 | 154,421,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,761 | cpp | Source.cpp | #include <vector>
#include <string>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <sstream>
#include <numeric>
////////////////////////////////////////////////////////////////////////////
// !! HOMEWORK !!
// use the C++ <algorithms> as extensively as you can for these problems!
// you may... |
7b317bfc7ecb0577562be6aae5ea24451c3f2c16 | e8db9a81373c5e9e82d78c75b2bc270f6c6e6578 | /01_Hash/04/hyelim.cpp | d66bf7ad67ca5f45dbcb1410b251fea27d012a13 | [] | no_license | devSoyoung/2019-KHU-algorithm-study | 1cb62a68b397b66db7b930aae7ef8c4852bd84ed | c40b9a160d19feb2f7ee84833a7fb5854de25b1b | refs/heads/master | 2020-07-21T18:54:06.946409 | 2019-10-21T11:02:20 | 2019-10-21T11:02:20 | 206,949,047 | 3 | 1 | null | 2019-09-28T11:44:10 | 2019-09-07T09:57:46 | C++ | UTF-8 | C++ | false | false | 1,967 | cpp | hyelim.cpp | #include <string>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
#define totalSize 5000
int myhash(const string &key, int tableSize) {
int hashVal = 0;
int length = key.length();
for (int i = 0; i < length; i++)
hashVal += 13 * hashVal + key[i];
hashVal %= tableSize;
if (has... |
001d9517b96ee499ccae53698ddd99b62ce33f0f | 326c5d924956c1837704d23b498772a2d8efd187 | /Sources/UI/View/vbox_layout.cpp | 2abef94070d63c59be140ae08f160bc610bbd77b | [
"Zlib"
] | permissive | sanikoyes/ClanLib | c4eb8004eb6a10ed4429f15b63f3ba0d2835a930 | 4f9e7f5dd2edb12e55ec713f6299c874709524e9 | refs/heads/master | 2021-01-22T17:28:25.241676 | 2015-04-11T23:46:24 | 2015-04-11T23:46:24 | 33,925,347 | 3 | 1 | null | 2015-04-14T10:22:33 | 2015-04-14T10:22:33 | null | UTF-8 | C++ | false | false | 10,029 | cpp | vbox_layout.cpp | /*
** ClanLib SDK
** Copyright (c) 1997-2015 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... |
5314fd61a49aa75c907f6d0f9aa23333ee87b029 | a303f06e8452cdb5ad54f707fafbd1419462e469 | /Examples/PdfCPP/RunExamples.cpp | e0ad4a80a82734bde4737366e43bb2b9c239ae28 | [
"MIT"
] | permissive | cmf41013/Aspose.PDF-for-C | b65271bb497b4fa669044c99c9f5344bcb5b5d40 | 3f01e5f37e86c270dca6d6dcd9e7f7825cbbad9a | refs/heads/master | 2023-03-27T15:50:28.259127 | 2021-03-24T12:14:11 | 2021-03-24T12:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,154 | cpp | RunExamples.cpp | // PdfCPP.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "PDFExamples.h"
int main()
{
std::cout << "Hello World!\n";
//Console::WriteLine(u"Open main.cpp. \nIn main() method uncomment the example that you want to run.");
//Console::WriteL... |
3f02669d043d4d364e8e2b0488466027e4d41d1c | 7b2456c98c94ff1c9a0334b24797a85ecc5cff21 | /onlinejudge/11530 - SMS Typing.cpp | c2c966424df9b453bf98c87a3cc0d669c5014b3c | [] | no_license | bkorecic/competitive-programming-solutions | fe694b485f10d5b90903552efd3e740e90891c94 | f7edecc7bfb318992ea4e49cae11942e1e1e6879 | refs/heads/master | 2021-12-15T04:43:23.722769 | 2021-12-12T05:59:50 | 2021-12-12T05:59:50 | 211,429,503 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | cpp | 11530 - SMS Typing.cpp | #include <iostream>
#include <string>
using namespace std;
int transformar(char a){
if(a=='a' || a=='d' || a=='g' || a=='j' || a=='m' || a=='p' || a=='t' || a=='w' || a==' ') {
return 1;
}
else if(a=='b' || a=='e' || a=='h' || a=='k' || a=='n' || a=='q' || a=='u' || a=='x'){
return 2;
}
else if(a=='c' || a=='f... |
13831a8e23386f5614544e479b1134a91d18a56c | c545fb4d03c50a7927bd74c6352c9a9963bc812a | /Landscape.cpp | f9a3d821bf754dc9de4dd8c8923821d789548592 | [] | no_license | Rincewind1989/World-Simulation | 2f5c9d128b09d76aac5043ccd37422a229ad593e | 3777f29a76a1af3a2b99bce1089e1250803efd25 | refs/heads/master | 2021-05-07T14:34:35.128841 | 2018-12-08T17:47:34 | 2018-12-08T17:47:34 | 109,905,615 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,267 | cpp | Landscape.cpp | #include "Landscape.h"
#include "PerlinNoise.h"
#include <iostream>
Landscape::Landscape()
{
//Creating the random generator for seeding the perlin noise
random_device seed_generator;
unsigned seed = seed_generator();
if (RANDOM_SEED != 0)
{
seed = RANDOM_SEED;
}
SEED = seed;
mt19937 mersen... |
53e9f9152a44668da838101e549ce6061a52a616 | aee005e37a45a3a37248eaedbb7c7c56645b3b0b | /tests/test_fib.cpp | 7a887e8be56ae56ed57f79d3ee5a16010dad7337 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fraguela/dparallel_recursion | 2d54536fce735eb3beaea2da83f98017dc2cccc0 | 30050242b7d01766fee5a3107c7a79db5c512d9e | refs/heads/master | 2021-11-05T18:24:00.564546 | 2021-11-04T18:09:20 | 2021-11-04T18:09:20 | 76,356,218 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,433 | cpp | test_fib.cpp | /*
dparallel_recursion: distributed parallel_recursion skeleton
Copyright (C) 2015-2018 Carlos H. Gonzalez, Basilio B. Fraguela. Universidade da Coruna
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 Lic... |
43fb499af0fe0c20b03ad8d7e80290254a26d19f | ab66176b15eef299c91471c1dc69f91722b197de | /2232_minimize_result_by_adding_parentheses_to_expression/solution.cpp | d9f86a70f9fdc82002633b2f97801fa2d8052699 | [] | no_license | proydakov/leetcode | c8effb6cb2d0fcfecbb5b5a4d6213fac341a6343 | e34682b4052a30e3ff505cdd8268fb672eeade2e | refs/heads/master | 2023-04-28T09:44:45.976182 | 2023-04-24T10:59:49 | 2023-04-24T10:59:49 | 75,488,891 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,088 | cpp | solution.cpp | class Solution
{
public:
string minimizeResult(string const& expression)
{
size_t const pos = expression.find('+');
std::string const w1 = expression.substr(0, pos);
std::string const w2 = expression.substr(pos + 1);
bool has_prev{}, has_last{};
std::array<int, 4> resvec... |
e609451bacb08c8778ab1edf506e8a792733a7a3 | b43d9a86f9173648b8673ccc7b9deab695d1694b | /include/ReadGridMapFromImage.cpp | 3dab5a13849fb27101947cc89bceb64eadaa2070 | [] | no_license | chiragmajithia/deception_simulation | 213fa5f5c5daace99a0620b0441cc0b87aa3e9e1 | 868c345ca239b49d4a9cf22799c8e622ccff5374 | refs/heads/master | 2020-12-24T18:42:16.751139 | 2016-05-02T12:33:17 | 2016-05-02T12:33:17 | 57,275,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,232 | cpp | ReadGridMapFromImage.cpp | #include <ros/ros.h>
#include <grid_map_ros/grid_map_ros.hpp>
#include <grid_map_msgs/GridMap.h>
#include <cmath>
#include <iostream>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/Image.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using name... |
360b316d75775cdec85867c2c52e5cd064409f7d | 4b19135464a032c1d5271cd1ae58afb21df38584 | /Samples/C++/DirectShow/Editing/TransViewer/WipeNum.cpp | a7f266294525c6167edc4f3ac020815b83f1b2e8 | [] | no_license | sjk7/DX90SDK | f47cebbba53133923880004bc6e3a33cff1fe895 | dd155425badb2cd3993c27f869efc007764e599b | refs/heads/master | 2021-08-26T07:47:03.826451 | 2021-08-12T05:03:03 | 2021-08-12T05:03:03 | 253,911,891 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,382 | cpp | WipeNum.cpp | //------------------------------------------------------------------------------
// File: WipeNum.cpp
//
// Desc: DirectShow sample code - Transition Previewer Sample
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
... |
70a92af7b3d4d259780b189e31936838fe135a1f | 26ac46b50af270bce35bb4ebc60bc20da611e7cb | /jalon7-remake/master.cpp | 494b3af51401ee11f1ba18f3efd94e508478cb53 | [] | no_license | alicflorez/informatique_parallele | 77a5af45bd7d3c00dc5d968e8e363cf85e2a53dc | 68072cda8fa173c6fca71c79e0a4bc3bfc926e28 | refs/heads/master | 2020-01-23T21:48:15.462335 | 2019-10-08T15:48:09 | 2019-10-08T15:48:09 | 74,674,861 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,181 | cpp | master.cpp | #include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include "Plaque_Metal.h"
using namespace std;
int main( int argc, char *argv[] ) {
char endSignal;
char* filename;
int nbCycles;
int tailleMatriceCase;
double temperatureAmbiante;
int vitesse;
if (argc > 5) {
filename = arg... |
fb9e62165a009d01f87f53f7cedbb38d233f9222 | 171939de0a904c90f9af198b8e5d65f8349429d7 | /CQ-00271/palin/palin.cpp | eb7476b89cf09c28b7907d349c88bb9d52044b16 | [] | no_license | LittleYang0531/CQ-CSP-S-2021 | 2b1071bbbf0463e65bfc177f86a44b7d3301b6a9 | 1d9a09f8fb6bf3ba22962969a2bac18383df4722 | refs/heads/main | 2023-08-26T11:39:42.483746 | 2021-10-23T14:45:45 | 2021-10-23T14:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cpp | palin.cpp | #include<stdio.h>
#define R register int
#define I inline
int a[1000001],pos[500001][2];
char ans[1000000];
I void Print(const int n){
for(R i=0;i!=n;i++){
putchar(ans[i]);
}
puts("");
}
I bool Check(int l1,int r1,int l2,int r2,const int n){
for(R i=1;i!=n;i++){
if(l1<=r1){
if(pos[a[l1]][1]==r1){
l1++;
... |
916e3cff7102310f4abbb393a239e5d8f665c6ba | 9a9f17bc08ccbc929d90d0fe61a863d1ea3f8d87 | /OpNovice/src/OpNovicePrimaryGeneratorAction.cc | 40e67d2e53a19e2bd1ee35a712def0fe7a88baa3 | [] | no_license | PADME-Experiment/OpticalPhoton | c5dcb5300fce8dbcbc9cc8a740e3da612406ba2b | 9b82399a8f82d39171ba1a11777fb7bbcb829de1 | refs/heads/master | 2021-08-29T10:08:04.565135 | 2017-12-13T16:50:26 | 2017-12-13T16:50:26 | 103,653,856 | 0 | 0 | null | 2017-09-21T15:35:55 | 2017-09-15T12:20:16 | C++ | UTF-8 | C++ | false | false | 9,451 | cc | OpNovicePrimaryGeneratorAction.cc | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
a49c42fb5d5c5d22cfc7736c046b92d347be754c | 47e25551b8644083690ccff4dfab04bb34369cff | /C++/UVA/12160/19710737_AC_90ms_0kB.cpp | 18d93d31b9a2ed6e3b4c4c11c392170767dd3c5a | [] | no_license | absn2/Armazem_De_Exercicios | c35db60f8a1d54f8b36088475e8655cf8b9bbf56 | 8387d44421e560b44fdc0e86165df5aaf9cf02f5 | refs/heads/master | 2021-07-09T16:03:08.144285 | 2020-09-28T23:45:25 | 2020-09-28T23:45:25 | 199,715,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,121 | cpp | 19710737_AC_90ms_0kB.cpp | /*
Antonio B. S. Netto
absn2
*/
#include <iostream>
using namespace std;
struct Node {
int number;
int repetion;
Node* nextNode;
Node(int number, int repetion) {
this->repetion = repetion;
this->number = number;
this->nextNode = NULL;
}
int getNumber() {
return ... |
7433c8359dc0b628f87468a3b6a65232f1f6871b | b4984f6b09cffdea58d9e44e0ad98195a555f989 | /Tool/ToolCode/SmartPTR/SmartPTR.h | 1af695ced3c1561c8bc70caef678e3592eedc6b7 | [] | no_license | zyy329/Tools | a0020de5a0be1898079f89bc0dddf5eb4e397ff1 | 6442bf713862dbf6afc3f2cdf85f79d521895450 | refs/heads/master | 2016-09-05T22:00:49.625857 | 2012-12-18T15:05:19 | 2012-12-18T15:05:19 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,828 | h | SmartPTR.h | //////////////////////////////////////////////////////////////////////////
//
// 文件名称:SmartPTR.h
// 文件说明:智能指针;
// 由 InitPTR 进行创建,存储实例
// ReleasePTR 进行主动释放.删除实例,使得所有共用副本不可用.
// Unlink 进行断开连接,使得仅当前副本不再可用,其它副本仍可用
//
//
// 作者:zyy
// 日期:2010.01.24
//
///////////////////////////////... |
8ed63ca071aac2cab78bf2f7ae749765e8290943 | 53c913bcb36c9b61d6800dc73b8bdcb684bd2f84 | /securite/live.h | 795ab3caf4aa316f3cf24dc5b15a29da6746fe22 | [] | no_license | aymennegra/SmartSupermarker-Desktop | bfb069a2a0edeba74fd4ab0001b558ccf6c2d7aa | 75e78ae2b222ab53bde7224b0d97d754a012c4b6 | refs/heads/main | 2023-06-24T03:43:56.843980 | 2021-07-29T19:48:25 | 2021-07-29T19:48:25 | 390,831,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | live.h | #ifndef LIVE_H
#define LIVE_H
#include <QDialog>
namespace Ui {
class live;
}
class QCamera;
class QCameraViewfinder;
class QCameraImageCapture;
class QVBoxLayout;
class QMenu;
class QAction;
class live : public QDialog
{
Q_OBJECT
public:
explicit live(QWidget *parent = nullptr);
~live();
private:
... |
192768047dd1835792c88efc0c25da25386cb521 | 8233df40a3b522df5e001bb8276b4c59999cacb6 | /Client/src/BGRSclient.cpp | 1b987ca7fc32748d345b4756a342c1747829ceb3 | [] | no_license | yardenadi24/Server-Client | b2a7da78c8ebf644c4ab54d650f32c8178c48a37 | 452d7f318de67b427a5ca7ca203153072935e25f | refs/heads/main | 2023-07-11T13:35:37.954635 | 2021-08-17T15:44:53 | 2021-08-17T15:44:53 | 397,307,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | BGRSclient.cpp | #include <boost/lexical_cast.hpp>
#include <thread>
#include <mutex>
#include "../include/EncoderDecoder.h"
#include "../include/ClientSend.h"
#include "../include/ClientGet.h"
int main(int argc, char *argv[]){
if(argc<3){
std::cerr << "Usage: " << argv[0] << " host port" << std::endl << std::endl;
... |
6df4a6b6db3dd29a584f1245cf799782feb5deb6 | f61577e4f63d30def2a6979e76a7478319359163 | /source/auto_generated/gpu_perf_api_counter_generator/gpa_hw_counter_dx11_gfx8.h | 399cd57c360c55f7e290d3519702918ad245db98 | [
"MIT"
] | permissive | GPUOpen-Tools/gpu_performance_api | 27f3f69392c44afdd2b8cabbe4a0c453c0d28f26 | 376cec1c5e92324f0fcfc573be2a26a129e43945 | refs/heads/master | 2023-09-04T05:23:08.614847 | 2023-06-22T22:28:29 | 2023-06-22T22:28:29 | 56,246,835 | 102 | 26 | MIT | 2023-03-29T07:28:10 | 2016-04-14T15:01:21 | C++ | UTF-8 | C++ | false | false | 5,017 | h | gpa_hw_counter_dx11_gfx8.h | //==============================================================================
// Copyright (c) 2010-2023 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief DX11 counter definitions for GFX8.
//===================================================================... |
92a9385c380ab938a6fbd4eaa466a709cff49cd0 | 4de159aea4b1eb5a527a3011275be57c4bb8d28f | /src/deps/newton/dScene/dLineNodeInfo.h | b5e5ae7e45bab487475fb6f3eeb93b9fbd01ca55 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | tanis2000/binocle-c | 27691ec089a4b75acc451ef6abc4767cb06a6fdd | cd3dbacdd5cb94bfce489b9ee2f07e218c645e29 | refs/heads/master | 2023-09-04T20:39:34.331172 | 2023-08-29T13:22:12 | 2023-08-29T13:22:12 | 192,515,187 | 132 | 8 | MIT | 2023-05-09T14:39:31 | 2019-06-18T10:07:33 | C | UTF-8 | C++ | false | false | 1,678 | h | dLineNodeInfo.h | /////////////////////////////////////////////////////////////////////////////
// Name: dLineNodeInfo.h
// Purpose:
// Author: Julio Jerez
// Modified by:
// Created: 22/05/2010 08:02:08
// RCS-ID:
// Copyright: Copyright (c) <2010> <Newton Game Dynamics>
// License:
// This software i... |
e6e7869b1d4df1e2d0a7e3865ba3fa041a9ce69d | 681338e612a85e24d24b31a562a158e640b353d5 | /Algorithm/cpp/220.cc | ea5c334372c954824745ffddc813e76c53021c99 | [] | no_license | ictlyh/LeetCode | b544f35c8461d0306cdb257da30a2a898b250ef7 | 99313a8ba4dafd52d3da13820f33701fc3ef46d7 | refs/heads/master | 2020-04-13T22:12:31.918092 | 2017-08-06T12:51:42 | 2017-08-06T12:51:42 | 53,716,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | cc | 220.cc | class Solution {
public:
bool containsNearbyAlmostDuplicate(vector<int>& nums, int k, int t) {
vector<pair<long, int>> vec;
for (int i = 0; i < nums.size(); ++i) {
vec.push_back(make_pair(nums[i], i));
}
sort(vec.begin(), vec.end());
for (int i = 0; i < nums.size(); ++i)
... |
5ed977c946da6f467ed14cf6a85a0ce6c10806b9 | dfd413672b1736044ae6ca2e288a69bf9de3cfda | /chrome/common/gtk_util.h | 1e7c63623e05d9def2327adf11f10a86c3ab96f6 | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-capsicum | fb71128ba218fec097265908c2f41086cdb99892 | b03da8e897f897c6ad2cda03ceda217b760fd528 | HEAD | 2017-10-03T02:40:24.085668 | 2010-02-01T15:24:05 | 2010-02-01T15:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,847 | h | gtk_util.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_GTK_UTIL_H_
#define CHROME_COMMON_GTK_UTIL_H_
#include <gtk/gtk.h>
#include <string>
#include <vector>
#include "base/gfx/poin... |
c873460dcbef4986a4eff77fb0728abbfd6b8450 | 1e29330fbf4d53cf5dfac6f0290f660647109da7 | /yss/gui/Button.cpp | 28b844477281892bc7bf8b493221b15c2630994c | [] | no_license | bluelife85/yss | 2c9807bba61723a6fa578f80edadd9e8d6f9d1a9 | 1ada1bcc8579bf17e53d6f31525960703ef2f6b9 | refs/heads/master | 2023-01-16T02:12:26.099052 | 2020-11-26T01:18:43 | 2020-11-26T01:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,015 | cpp | Button.cpp | ////////////////////////////////////////////////////////////////////////////////////////
//
// 저작권 표기 License_ver_2.0
// 본 소스코드의 소유권은 yss Embedded Operating System 네이버 카페 관리자와 운영진에게 있습니다.
// 운영진이 임의로 코드의 권한을 타인에게 양도할 수 없습니다.
// 본 소스코드는 아래 사항에 동의할 경우에 사용 가능합니다.
// 아래 사항에 대해 동의하지 않거나 이해하지 못했을 경우 사용을 금합니다.
// 본 소스코드를 사용하였... |
512e6b85eadafea82cacfcb20703b419ec551cd7 | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /dbfs/src/model/ListSnapshotRequest.cc | 8bc8227512f4a99b334768fb016981ec9fa520d6 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 3,823 | cc | ListSnapshotRequest.cc | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
313660f73b8497c080191a04dc246915fb4b057c | 4cf6c53fa49cbcd74da88edc66bc2ee6314b181a | /iface/inc/WireCellIface/IRecombinationModel.h | c48d60f2e86e3b163f1022f6688ad708c5ef82a2 | [] | no_license | pinzino/wire-cell-toolkit | 5f7acb6c4f7cac7324ef81f4556f65238cf2abd7 | f0ec58c8fa0b6df921861e0e28b37fb78e606e5b | refs/heads/master | 2022-10-31T07:42:15.808564 | 2020-04-29T18:05:08 | 2020-04-29T18:05:08 | 261,223,184 | 0 | 1 | null | 2020-05-04T15:28:01 | 2020-05-04T15:28:00 | null | UTF-8 | C++ | false | false | 406 | h | IRecombinationModel.h | #ifndef WIRECELL_IRECOMBINATIONMODEL
#define WIRECELL_IRECOMBINATIONMODEL
#include "WireCellUtil/IComponent.h"
namespace WireCell {
class IRecombinationModel : virtual public IComponent<IRecombinationModel> {
public:
virtual ~IRecombinationModel() ;
// Convert a point or step to ionized char... |
c6f332dccb511d155030d3fb2659a86647af56f7 | 66249590e277b7b8fbe5a009a177415cab425835 | /master.cpp | e7da3a99d281ab0346598273bf4d27b8baa0c229 | [] | no_license | lovishchopra/Virtual-Memory-Using-Demand-Paging | 80cf0058501f8e99d3427cf14ccd0faa8898bb09 | 1ed64639c09e48bda2ff1906af7fe4a3cefaa5c8 | refs/heads/main | 2023-07-17T02:40:12.996231 | 2021-08-27T18:54:41 | 2021-08-27T18:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,540 | cpp | master.cpp | #include <bits/stdc++.h>
#include <unistd.h>
#include <signal.h>
#include <sys/msg.h>
#include <sys/ipc.h>
#include <sys/types.h>
#include <sys/shm.h>
using namespace std;
typedef struct
{
int frame;
bool valid;
int time; //time of last access of the page no
}PTentry;
typedef struct {
int pid;
int m; //size ... |
a60820b3ef4e4643cb70fd0b123ea18499537cd7 | 0093d5a86d601b0ed854c889607485416eb8be2e | /TLM/MemCtrl.cpp | 8fdb5fea15aa1d2fce5432c46e0f86018dbafdc0 | [] | no_license | milannedic/SystemC_SVM | cc729d32e5adcf0ec03c7e25a40476d6fc27c348 | 166cbf2616dfcd1a2fd9cd2c180a38f1a8b7f7dc | refs/heads/master | 2023-08-28T15:24:28.560029 | 2018-09-09T22:53:28 | 2018-09-09T22:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,266 | cpp | MemCtrl.cpp | #ifndef MEMCTRL_C
#define MEMCTRL_C
#include "MemCtrl.hpp"
#define SV_NUM 5076
MemCtrl::MemCtrl(sc_module_name name): sc_module(name),
buffer(NULL)
{
s_mc_t0.register_b_transport(this, &MemCtrl::b_transport);
s_mc_t1.register_b_transport(this, &MemCtrl::b_transport);
... |
567a324407e1127fa13973f5116517a0a3ca3a99 | 955a959a177fdda1e5c80ded907fda0c2f195b48 | /List_impl.h | 0d44bb93f4359800625f1ce1c8083885f3e4b48a | [] | no_license | gallko/test_sbr | 79937dd4998331a73a766b9082ad37dac005a357 | bc05c9cdc92152de73db7c23028467dfc30963b5 | refs/heads/master | 2022-11-21T16:00:55.500175 | 2020-07-27T10:14:57 | 2020-07-27T10:14:57 | 282,688,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | h | List_impl.h | #ifndef TEST_LIST_IMPL_H
#define TEST_LIST_IMPL_H
#include <string>
struct ListNode {
ListNode* prev;
ListNode* next;
ListNode* rand;
std::string data;
};
class List {
public:
List();
~List();
void Serialize(FILE* file);
void Deserialize(FILE* file);
privat... |
96997b2bace3d1a4762dac511ba64f6aafc2e076 | 3a7247e5382e028de6f06d4be35d5300fb08bf83 | /Tools/tools/dbstruct/DBStructTransfer.h | da52f5e3b36c66c975c87671e76e8a9f6b5bf3ab | [] | no_license | g91/RomLibraries | 8c68cfabe6a68dad7937941a9ec90c3948588a85 | 55a98a86057500527e208a6fd593397839465384 | refs/heads/main | 2023-05-14T07:03:34.253295 | 2021-06-08T07:44:44 | 2021-06-08T07:44:44 | 356,100,453 | 1 | 2 | null | null | null | null | BIG5 | C++ | false | false | 28,344 | h | DBStructTransfer.h | #ifndef __DBSTRUCTTRANSFERCLASS_H__
#define __DBSTRUCTTRANSFERCLASS_H__
#include "dbtransferclass.h"
#include "ReaderClass/ReaderClass.h"
#include "BaseFunction/BaseFunction.h"
#include "recyclebin/recyclebin.h"
using namespace std;
template< class Temp >
bool ReadDBDataByReader( Temp& OutData , HSTMT dbhstmt , Reade... |
df53c8c9e390e741b46aae76da984b4ea0aa1b4a | 8013d0ad03c27926b0be684b4e2360216adc7eac | /HW3/src/datatypes.cpp | 3266207e9d15110f9aa36329cdafee9a8b3faa0c | [] | no_license | chenmagi/vlsi2018 | 4f711108671ed3b5e2c6219c38cc4100a5388149 | 1a69e070acf4e94e6b9f7a64fb83afe573468ac8 | refs/heads/master | 2020-04-07T09:28:43.042288 | 2018-12-04T10:46:34 | 2018-12-04T10:46:34 | 158,253,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,505 | cpp | datatypes.cpp | #include "datatypes.hpp"
#include <boost/smart_ptr.hpp>
#include <iostream>
#include <queue>
#include "globalvar.hpp"
#include <algorithm>
#include <vector>
shape_t shape_t::build_from_string(const char *str){
int i=0;
int len = str!=NULL?strlen(str):0;
const int num_of_vec=8;
unsigned int xy[8]={0};
... |
e49aa36fd83436208ba295cb5115c764811233fe | 1d3a78db328e81d3ccd92bae27d6f14d20d274ce | /Problem17/Problem17.cpp | 775b4c3111368e6a6b1ec6402d7600e0f446fd58 | [] | no_license | hastangbugoya/Problem17 | 3877af93845e2fadd7ce57e1c46ff32fe1e26ea6 | 9adf2e500845073e07e3ee95cc5e1e6031fa2f93 | refs/heads/master | 2020-06-26T02:59:30.891060 | 2019-07-29T18:21:34 | 2019-07-29T18:21:34 | 199,505,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | cpp | Problem17.cpp | // Problem17.cpp : This file contains the 'main' function. Program execution begins and ends there.
#include "pch.h"
#include <iostream>
void main()
{
int ones[] = { 0,3,3,5,4,4,3,5,5,4,3,6,6,8,8,7,7,9,8,8 };
int tens[] = { 0,0,6,6,5,5,5,7,6,6 };
int total = 0;
for (int i = 1; i <= 19; i++)
total += ones[i];
for... |
89aaf320ce7cc56f47751cdc84866cd644256426 | 9782352c028b52ea501e945bf618726bd4105e6b | /Sources/AGEngine/Render/ProgramResources/Types/Uniform/Mat4Array255.cpp | 061fbf87d84ec644423c5d290415a36417d4d4d9 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | MrJookie/AGE | 28e6e6284dacd4843102b0bb88f2ae265fc10247 | d5d9e98235198fe580a43007914f515437635830 | refs/heads/master | 2020-04-17T05:50:25.788441 | 2016-02-04T10:50:27 | 2016-02-04T10:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | Mat4Array255.cpp | #include <Render/ProgramResources/Types/Uniform/Mat4Array255.hh>
#include <glm/gtc/type_ptr.hpp>
#include <Utils/Debug.hpp>
namespace AGE
{
Mat4Array255::Mat4Array255(GLint id, std::string &&name) :
IProgramResources(id, std::move(name), GL_UNIFORM)
{
_size = 0;
}
Mat4Array255::Mat4Array255(Mat4Array255 &&m... |
ea70769d8a79f0d12a20edd9923376eff1ab7f43 | e821ffa3ad5a12900ca07028ef4d121b312a5cbb | /LeetCode/Arrays/priority_queue.cpp | 2087492a381863f913dfeacf5693a4db7e283fc6 | [] | no_license | mave89/CPlusPlus_Random | 82feb8b9afca3e52a1c1397d5e19f4ddd41a2800 | 4069bb685762cdf5f739f660b1d7c9ed0738f50d | refs/heads/master | 2023-03-06T04:23:16.904139 | 2020-04-07T08:27:40 | 2020-04-07T08:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | priority_queue.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
/*
Priority queue
Push and pop: log(n) time
Building it: O(n) time - Floyd's algorithm
Insert: O(log(n)) time
Deletion: O(n * log(n)) time
*/
template <class T>
void printQ(T q){
while(!q.empty()){
cout << q.front() << " ";
... |
39adc7bbead8d01660c48bda4e3aac003b453bd2 | ec0455f86db19f624896b1fd67a6b4ac08672ae2 | /abc/090/b.cpp | d4d96e0f67efd5606050c5ea899096afa80dd3c6 | [] | no_license | aocha/at-coder | 8ba1742475a5e655f96b504394ab10c7af6dbb8e | 4fa8dd93be58a0f4155735bfe22e82e2b68b2f26 | refs/heads/master | 2020-06-29T07:29:09.551424 | 2020-06-23T13:23:59 | 2020-06-23T13:23:59 | 200,254,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | b.cpp | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main()
{
int A, B, d[5], ans = 0;
cin >> A >> B;
for (int i = A; i <= B; i++)
{
int temp = i;
for (int j = 0; j < 5; j++)
{
d[j] = temp % 10;
temp /= 10;
}
if (d[0] == d[4] &... |
238d1c67f51fb472a426926f64a68476dda224f3 | feea98a556ca38876c286f54196b35dadd984fa6 | /UsbReadWrite/Arduino/JimmyNeopixel/JimmyNeopixel.ino | 35aa5d24994936d8601f054bbac51ed1e7ba15d7 | [
"MIT"
] | permissive | Seekatar/GpioPlayground | 2943c036081b7ac05d84d59796ba81f1219e8fdb | bb2005b77903f8e32a02f053a9f2ccb948ed9971 | refs/heads/main | 2023-08-08T01:36:42.460571 | 2023-07-22T13:07:53 | 2023-07-22T13:07:53 | 56,643,129 | 0 | 0 | MIT | 2023-07-22T00:46:02 | 2016-04-20T00:53:38 | C++ | UTF-8 | C++ | false | false | 4,328 | ino | JimmyNeopixel.ino | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6
int cmd,r,g,b = 0;
#define ALERT 2
char ss[41];
char s[41];
int lastAlert = 0;
uint16_t currentRainbowValue = 0;
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter ... |
3eeaf97e6c3f1faa34e8545054b76c671994575a | 87134212704846b4387e69ffed30655df52e34a8 | /CoreFx/Renderables/Axis.h | 9f3769c0ca0138325689c94d7c711f0609ae504f | [] | no_license | doodoonovitch/GameTech | 969a039aa2237b79079f27864f5f50099d7db964 | d231c58c15950325c70ff5706588f71902aac27e | refs/heads/master | 2021-01-24T06:32:35.557525 | 2017-01-22T18:14:22 | 2017-01-22T18:14:22 | 44,433,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | Axis.h | #pragma once
#ifndef COREFX_RENDERABLES_AXIS_H
#define COREFX_RENDERABLES_AXIS_H
namespace CoreFx
{
namespace Renderables
{
class Axis : public SceneObject
{
public:
Axis();
virtual ~Axis();
private:
};
} // namespace Renderables
} // namespace CoreFx
#endif // COREFX_RENDERABLES_AXIS_H |
4b465eb085c6d11cf95cf32d3ee4030b731f8e5e | f602735d1680b7794dcd2a9f179354e12ae940db | /placeholderevent.cpp | 6885ff82e8fb683e4ab3df2a31b16f3f6b64d624 | [] | no_license | ojura/bugel | d91ef273636ec5d722b61b5d5ebe6e2c9b7830e6 | d05a2bde03172931ce273507e4e997aa457ed4e7 | refs/heads/master | 2021-01-19T11:22:56.118852 | 2017-04-11T18:14:43 | 2017-04-11T18:14:43 | 87,963,428 | 0 | 0 | null | 2017-04-11T17:51:04 | 2017-04-11T17:51:04 | null | UTF-8 | C++ | false | false | 380 | cpp | placeholderevent.cpp | #include "placeholderevent.h"
std::shared_ptr<EventType> makePlaceholderEventType()
{
std::shared_ptr<EventType> type = std::make_shared<EventType>();
type->name = "placeholder";
type->properties["note"] = EventProperty(QMetaType::Int, QVariant(-1));
return type;
}
std::shared_ptr<EventType> Placehold... |
5043ef72be7ea94408d1c4dc3d4df5fdf615bb8f | f3aee05bf832f32dc2e0ce2163ec2304bb83814e | /extra/DP-bytecoins.cpp | 687332abac16988f1efb6aa986f4dd3a3bbb0f15 | [] | no_license | vaibhavahuja/summer | 389308a286d380c16d9d05a295f1bea418b3ba66 | 1169fc221f7c98e0bab4d83c9e1c93f2d3456fb7 | refs/heads/master | 2020-03-17T13:47:24.622848 | 2018-08-07T13:15:23 | 2018-08-07T13:15:23 | 133,644,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | cpp | DP-bytecoins.cpp | #include <iostream>
using namespace std;
//recur
int coins(int n){
if(n<12) return n;
int m;
m = coins(n/2)+coins(n/3)+coins(n/4);
return m;
}
//dp
void coins2(int n){
int dp[n+1];
dp[0] = 0;
for(int i = 0; i < n+1; i++){
dp[i] = max(max(dp[i/2]+dp[i/3]+dp[i/4], i/2+i/3+i/4),i);
}
cout<<dp[n]<<endl;
}
... |
7a7dce9378388a74096b54807bb72d14a817081a | e9fd987c051613bd3a1c0202e78dd6ed74a03666 | /Doka/Doka/Doka.cpp | 43335a455776a248742810b10c9e860dddce9710 | [
"MIT"
] | permissive | Long-as-Python/Doka2-trade | 3d152984db0b8523153db05506290435f2f5aae9 | 71408ebdba78035ac4c079955f315f0697eafcf0 | refs/heads/master | 2020-10-01T19:42:18.667645 | 2020-01-21T10:52:44 | 2020-01-21T10:52:44 | 227,610,792 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,379 | cpp | Doka.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <windows.h>
#include <Mmsystem.h>
#include <algorithm>
#include <random>
#include <ctime>
#pragma comment(lib, "Winmm.lib")
#include "Player.h"
#include "Hero.h"
#include "PManager.h"
#include "HManager.h"
#include "TeamPart.h"
#include "Session.h"
#include "... |
82ddd32f62b80f2e7499bd1588e467bb18a3bf53 | ef25402a233fe78e114afdbe7bed46c8fed41c5d | /june14/july19_Graphs2/firestorm.cpp | 4416d28c0e6fec8ae0d4d58933c608c1984ffac0 | [] | no_license | manojmalik35/Code | 966ae31351067a24713538a1fcbb659f57271eee | 59a60f528aa83e1a0359041c46ed26b3af85ba3e | refs/heads/master | 2023-01-13T03:12:43.795871 | 2020-11-09T07:15:19 | 2020-11-09T07:15:19 | 281,858,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | firestorm.cpp | #include<iostream>
#include<vector>
#include<queue>
using namespace std;
class Point{
public:
int x;
int y;
int t;
Point(int x, int y, int t){
this->x = x;
this->y = y;
this->t = t;
}
};
void solvefs(vector<vector<i... |
3e1a597ebbd5aa515a387759f130d25e12961f3a | a6af5e1d14b21187d5f2acc60d4339b1755d95ad | /MiKroC keypad/MyProject.cp | 1afb640a208b1de54c4ad6e6df7bbafbd2f1fac9 | [] | no_license | Elperry/-GPS-interfacing-with-Arduino | 28d15d6ae23fe4958a39f198b604d432696a3df4 | b0043c04c59c388035dca7ac07f31ac514d4bb9a | refs/heads/master | 2021-05-26T09:54:21.362881 | 2020-04-08T12:49:09 | 2020-04-08T12:49:09 | 254,085,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cp | MyProject.cp | #line 1 "C:/Users/Mohammad/Desktop/GPS Arduino/MiKroC keypad/MyProject.c"
void main() {
pcon.f3=1;
TRISA=0x00;
TRISB=240;
PORTB=1;
PORTA=0;
cmcon=7;
while(1){ portb=1;
if ( portb==17){porta=1;delay_ms(200);}
if ( portb==33){porta=2; }
if ( portb==65){porta=3; }
portb=2;
if ( portb==18){porta=4; }
if ( port... |
152c7f1a59077678e5223f066bbe2d9beb2538e6 | fae551eb54ab3a907ba13cf38aba1db288708d92 | /content/browser/renderer_host/modal_close_listener_host.h | 7cbef98a21bf573038d0f718c31a5371d9c11db7 | [
"BSD-3-Clause"
] | permissive | xtblock/chromium | d4506722fc6e4c9bc04b54921a4382165d875f9a | 5fe0705b86e692c65684cdb067d9b452cc5f063f | refs/heads/main | 2023-04-26T18:34:42.207215 | 2021-05-27T04:45:24 | 2021-05-27T04:45:24 | 371,258,442 | 2 | 1 | BSD-3-Clause | 2021-05-27T05:36:28 | 2021-05-27T05:36:28 | null | UTF-8 | C++ | false | false | 1,420 | h | modal_close_listener_host.h | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_MODAL_CLOSE_LISTENER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_MODAL_CLOSE_LISTENER_HOST_H_
#include "content/c... |
5dff85e7dbdbd4496f560caeddbd274d223ffee8 | 580c115ec48adff5414733b45e42c93b9695b2e3 | /table_tennis_robot/table_tennis_robot_bringup/arduino/homing_sensor/homing_sensor.ino | c7a913c6f2dd3a5c60e46d3854e5960660f62ff4 | [] | no_license | dennis2110/practice_gazebo | a82118785c15a2073422cdf4d528f10ec9b18eb6 | 3a8082938c23bb7b2e3edc7b7c4ae4e43f8b04b1 | refs/heads/master | 2020-07-28T21:04:32.693486 | 2019-12-24T06:01:22 | 2019-12-24T06:01:22 | 209,537,290 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | ino | homing_sensor.ino | uint8_t writecmd[6]={ '$', 0x03,0,0,'\r', '\n'};
void setup() {
pinMode(13,OUTPUT);
///////serial////////////////////
Serial.begin(9600);
while(!Serial);
Serial.setTimeout(10);
/////////////////////////////////ros
////////////cny70////////////////
pinMode(7,INPUT); // slide rail limit sensor
pinMode(6... |
ad543390cad42efc7fac5f87e6fb7508f82b45f0 | 34a9cb1d4fadaf2c33293d08b9e667445bf9a258 | /84.cpp | 2f2514feae3cd709344079600e67ab06bc344146 | [] | no_license | AlikhanAldabergenov/TASK1-100 | 3fa1e14e1b522971d7a2d173b8fb7387757ac7fa | 4dd3c3c424781cf43a7cc04561ccb141534d728d | refs/heads/master | 2020-09-13T02:07:03.802474 | 2019-11-22T17:53:53 | 2019-11-22T17:53:53 | 222,629,278 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 157 | cpp | 84.cpp | #include <iostream>
using namespace std;
int main(){
double n;
cin>>n;
for(int i = 1; i<=100; i++){
cout<<i<<" "<<i*n<<" "<<i*n/20<<endl;
}
}
|
3468d44d46f38106cc13566d55b5b9071b915621 | f73ccf0553d403da486ca591ae45856987b47a29 | /PanTilt_2Axis/PanTilt_2AxisDlg.cpp | b6064e252241b772288a1b51c90db2b7fc560e51 | [] | no_license | wookbin/-HerkuleX-PanTilt_2Axis-MFC- | 2e5ea73db42fe139bda73102fe189ad8f72f432e | 5d3e488aebb0889fedbf634b42268da776f86910 | refs/heads/master | 2020-12-23T13:09:59.594304 | 2020-01-30T08:25:34 | 2020-01-30T08:25:34 | 237,162,749 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,554 | cpp | PanTilt_2AxisDlg.cpp |
// PanTilt_2AxisDlg.cpp: 구현 파일
//
#include "pch.h"
#include "framework.h"
#include "PanTilt_2Axis.h"
#include "PanTilt_2AxisDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// 사용할 모터 id 번호. ex)1 ~ 253까지의 ID table정의 JOG Mode사용시 활용
unsigned char szIDs[] = { 0x01,0x02,0x03,0x04,0x05,0x06,0x... |
1bf8b7012e0fc24b8c2e22bee28e00495f426130 | bee7de0fdb7755a61d7f886932574a0314386b55 | /RayTracing/Sources/Metal.cpp | 57a46005a2c7d0d862cf151b40f4abbefca6a891 | [
"Apache-2.0"
] | permissive | SPontadit/PathTracer | 0c2c5e5158c0a750086992aff0e04d817928cc61 | 627a1dbf344760ea5167f771c3db937d406851d2 | refs/heads/master | 2022-04-24T02:37:25.256264 | 2020-04-29T22:08:12 | 2020-04-29T22:08:12 | 259,692,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | Metal.cpp | #include "Metal.h"
#include "MathUtility.h"
Metal::Metal(Vector3 const& albedo, float fuzz)
: Material(), albedo(albedo)
{
this->fuzz = fuzz > 1.0f ? 1.0f : fuzz;
}
bool Metal::Scatter(Ray const& rayIn, HitRecord const& hitRecord, Vector3& attenuation, Ray& rayScattered) const
{
Vector3 reflected = Reflect(GetUni... |
157e4aeaab4aed02cf1f371a1f7a8ba98e84304d | 2d16dee8e28ce2942bcfc8ba2799bce80c9f68cc | /31_NormalMapping/main.cpp | 8ed1a6b0542aec85e9b9bac290e40c7e0169326d | [] | no_license | OkazakiNaoki/LearnOpenGL | 92b777faa5264d7d03d8d3aed7425aa946802cf8 | 281fad2ae46ea5baed5674de72dfea3c5fd1bb0b | refs/heads/master | 2021-04-15T09:46:42.351412 | 2018-07-14T23:28:56 | 2018-07-14T23:28:56 | 126,196,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,324 | cpp | main.cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include <gtc/type_ptr.hpp>
#include "header/GLSLloader.h"
#include "header/TexLoader.h"
#include "header/ModelLoader.h"
#include "header/CustomKeyState.h"
#include <iostream>
#include <vector>
const unsigned int scre... |
22e0e9d6017eba5e177750ca113fe2863e0171d1 | 82cc4eea98806f3024b5b16696a7af258e2a24a4 | /src/xapian/net/remoteconnection.cc | 499f74f6c27b4d7536caf6820f86bcc1c574f853 | [
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | puer99miss/Xapiand | 72e7497f37f315c354ae12b360ea8b14bc31ee00 | 480f312709d40e2b1deb244ff0761b79846ed608 | refs/heads/master | 2020-05-18T23:33:48.464001 | 2019-05-02T18:29:01 | 2019-05-02T18:29:01 | 184,714,481 | 1 | 0 | MIT | 2019-05-03T07:21:22 | 2019-05-03T07:21:22 | null | UTF-8 | C++ | false | false | 20,974 | cc | remoteconnection.cc | /** @file remoteconnection.cc
* @brief RemoteConnection class used by the remote backend.
*/
/* Copyright (C) 2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2017 Olly Betts
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publis... |
ddf6c360e8361e5e4460a0e7fbc1381c4d3ca273 | 8d1d974e4682acf98e39c597e412b2d76df256fd | /TemperatureDatabase.cpp | f2843959a2097cc0392a59ec5b77d86d030b03e2 | [] | no_license | anushakartala/TemperatureQueries | c15717735e82289586106a0dad8aef2523c1a73a | c5a4bb19c318b19b4249dd0defb6e384bb6547ec | refs/heads/master | 2020-12-19T22:26:57.295108 | 2020-01-23T19:45:50 | 2020-01-23T19:45:50 | 235,869,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,321 | cpp | TemperatureDatabase.cpp | #include "TemperatureDatabase.h"
#include <fstream>
using namespace std;
#include <string>
#include <sstream>
#include <cmath>
// Default constructor/destructor. Modify them if you need to.
TemperatureDatabase::TemperatureDatabase() {}
TemperatureDatabase::~TemperatureDatabase() {}
void TemperatureDatabase::loadData... |
cedbad01365255df961dfdec4da7ad5070dd42df | e9786f00a5f9e59f1604f405bba535104926439f | /Framework/Sources/o2/Scene/DrawableComponent.h | 852cb2692af79c54b4d83da2942b5e7811fd206f | [
"MIT"
] | permissive | brucelevis/o2 | 0953532f270736c5b3fbb31fabc0ab72f1ddf8d0 | 29085e7c3ba86a54aacfada666adea755ea7b1ee | refs/heads/master | 2023-09-02T04:48:48.716244 | 2021-11-07T17:07:30 | 2021-11-07T17:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,598 | h | DrawableComponent.h | #pragma once
#include "o2/Scene/Component.h"
#include "o2/Scene/ISceneDrawable.h"
namespace o2
{
// ------------------
// Drawable component
// ------------------
class DrawableComponent: public Component, public ISceneDrawable
{
public:
// Default constructor. Registers in scene as drawable object
Drawable... |
9ef67d97aa2b8483cfc2ab80dc0787dc6d1f0c8a | 5f23ace96ff1b74cb6231a499bb92f4f60e0d3ea | /MathApp/MathApp/combination.cpp | b5c2b3670beacce45de2775aca70a36cd3053af7 | [] | no_license | shwjdgh34/gtest_math | ec9e0ffebfd485f32d8c5d5b287bf768200bdc2a | 1890d813e74be9936ff0617dc63dbb722373bc79 | refs/heads/master | 2020-05-22T02:37:48.432696 | 2019-05-12T02:47:50 | 2019-05-12T02:47:50 | 186,202,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | combination.cpp | #include "combination.h"
int Combination(int n, int r) {
if (n == r || r == 0) {
return 1;
}
//nCr = (n-1)C(r-1) + (n-1)C(r)
return Combination(n - 1, r - 1) + Combination(n - 1, r);
} |
208ada70b629a67276455b6318f68f1d024a5d34 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/snapin/wsecmgr/cservice.cpp | 1398b4f91e64f8022763f66e35cf6bbbb87ee7f5 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 13,707 | cpp | cservice.cpp | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation 1996-2001.
//
// File: cservice.cpp
//
// Contents: implementation of CConfigService
//
//-------------------------------------------------------------------... |
7ece7b71eca24d48eb196fd88c7345579af0afe6 | d87f194d78432fed1b28a5f7992a9b2839817ff4 | /examples/partialUpdate/partialUpdate.ino | 41576b12639b9eedfb11aa3f98b31744fc58b179 | [
"MIT"
] | permissive | Sebski123/MH29EP | 662de184fee310110edc945de6c91b123279e739 | 7c7bce5addc2f67f6981f7447e917661180815d4 | refs/heads/main | 2023-04-16T13:11:25.365771 | 2021-04-20T20:56:28 | 2021-04-20T20:56:28 | 356,718,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | ino | partialUpdate.ino | #include "MH29EP.h"
//IO settings
#define BUSY_Pin 8
#define RES_Pin 9
#define DC_Pin 10
#define CS_Pin 11
#define SCK_Pin 12
#define SDI_Pin 13
MH29EP display = MH29EP(SDI_Pin, SCK_Pin, CS_Pin, DC_Pin, RES_Pin, BUSY_Pin);
void setup()
{
Serial.begin(115200);
while (!Serial)
{
;
}
displa... |
e5abf50ed57ee0f47ead3be6a07c5536338b8ea1 | 85e4687416f8b5fa4e544eb46dc47aee4a400ffa | /Modules/Mappy/Mappy.hpp | 378e2a4fb873f4e83c46280b459db75b3928abb6 | [] | no_license | IlyaBrod/robotCup17ensea | 9a20cebdb70fdc53218cee6b4706d41f17cf5ebf | 54b3158df5158c46c905d1bf9a08cf8aaebf352b | refs/heads/master | 2021-01-12T17:46:54.395416 | 2017-05-23T20:58:54 | 2017-05-23T20:58:54 | 71,643,773 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | hpp | Mappy.hpp | #pragma once
#ifndef CLASS_MAPPY
#define CLASS_MAPPY
#define PI 3.14159265
#define ERROR 50 // 50mm max distance variance from detection and the map
#include <cmath>
#include <stdio.h>
#include "Qmath.hpp"
#include "Map.hpp"
#include "Axes.hpp"
/**
* Global class of all computing.
* Find if a detect... |
8e754d7da011405eed9e9106992fdad8dc3fe0bd | 9c7584da436d9f44c966abe28105644aece6931c | /p2813.cpp | 27ec3f7752c607552054f613407fe210c25ab2fc | [] | no_license | Leo-Ngok/UVa_solutions | c6b703c910fcc5e534b576394b8522a89701f642 | c890ef4f33b66cff348c29eb2ca130edbc7417a8 | refs/heads/master | 2022-01-19T22:27:18.048148 | 2022-01-04T15:54:12 | 2022-01-04T15:54:12 | 202,375,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | p2813.cpp | #include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int n,m,x,sum=0;
//a is defence b is attack
vector<int> a;
int b[100010];
bool cmp(int a,int b){
return a>b;
}
int main(){
scanf("%d%d",&m,&n);
for(int i=0;i<m;i++){
scanf("%d",&x);a.push_back(x);
}
for(int i=0;i<n;i++){
scanf("%d",b... |
9e5f5e294c771089a3d8d42e44a56d04c8a37871 | 8d4a91b3584916003a3de451067c072498d6c5c2 | /Code/C/BridgeRegression.h | 5e81cbc7ee3d3212836379eac90512aeeb7a45b2 | [] | no_license | rosefu79/BayesBridge | 274c67662038abed0c1297e57a2aa906aef955ba | 58a2945553b339e606ecda81b3345e46381f40d9 | refs/heads/master | 2020-04-13T06:37:12.205823 | 2015-02-13T20:17:33 | 2015-02-13T20:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,496 | h | BridgeRegression.h | // -*- mode: c++; -*-
//////////////////////////////////////////////////////////////////////
// Copyright 2012 Nicholas G. Polson, James G. Scott, Jesse Windle
// Contact info: <jwindle@ices.utexas.edu>.
// This file is part of BayesBridge.
// BayesBridge is free software: you can redistribute it and/or modify
// i... |
a1a6a11321756de54abb0404fd5abae1e5d6603c | bd780b05f37ec523a615043d6e436448d8691b0e | /SBL.cpp | 9be888384a13500f7069b62a630e1602c23b40f6 | [] | no_license | M7madAwawdeh/1244-sort-by-length.uri | ab11aec36a2d51c5a9dad338e0cf817ff3e60077 | 5df3172060bd11922515662c887c072d6b813a1f | refs/heads/main | 2023-08-02T14:50:56.272647 | 2021-09-12T08:33:15 | 2021-09-12T08:33:15 | 405,588,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | SBL.cpp | #include<bits/stdc++.h>
using namespace std;
struct d{
string name;
int num,in;
};
bool comp(const d &a, const d &b)
{
if(a.num==b.num)
return a.in < b.in;
return a.num > b.num;
}
int main()
{
string a,w;
int n;
cin >> n;
string line;
getline(cin,line);
while(n--){
stringstream ss;
getline(cin,a);
ss... |
aaef51a526fa42dbd74f1466af2f474aa66f3d39 | 51d22f1ac8fa4c937a5cb4ec5e753c2979742c33 | /actividades/actividad5/solucion/persona.cpp | 82cbe022e5db995b058cb29752265afe8c159669 | [] | no_license | Nebrija-Programacion/Datos-Algoritmos | aad94f1d79dd9e04bd4dc27b0a5a89cb775a5d0d | cc25aadc37c4e786d1c2ef2c48f85ee519c46604 | refs/heads/master | 2020-04-18T21:58:53.321855 | 2019-07-08T15:19:54 | 2019-07-08T15:19:54 | 167,781,061 | 6 | 42 | null | 2020-01-30T15:31:34 | 2019-01-27T07:07:52 | C++ | UTF-8 | C++ | false | false | 386 | cpp | persona.cpp | #include "persona.h"
Persona::Persona(string n):
nombre{n}
{
}
string Persona::getNombre() const
{
return nombre;
}
void Persona::setNombre(const string &value)
{
nombre = value;
}
ostream &operator <<(ostream &os, const Persona &p)
{
os << p.nombre;
return os;
}
bool operator ==(const Persona... |
3f88895873aab3fad51e30d2896d98707f87476d | a4e6b839115d5c25f09003b6ea812931de491b7b | /main/solution071.h | 5bfeb39dedee3585d0d013d913793ffc7bda4fb7 | [] | no_license | tianyamignyue/LeetCode | be8f9e8107255b69a5ec093919b742457863ff0b | 264e39af721ed958b9f5599f123272d430be169e | refs/heads/master | 2019-08-28T16:56:42.265828 | 2016-09-15T15:22:34 | 2016-09-15T15:22:34 | 40,079,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,614 | h | solution071.h | #pragma once
#include <string>
#include <vector>
using namespace std;
class Solution {
vector<string> directory;
int index;
int end;
void removeD() {
if (!directory.empty()) {
directory.erase(directory.end() - 1);
}
}
bool isPPL(const string &path) {
if (index + 2 < end && path[index] == '.' && path[inde... |
e372737d5bb363cc87c74b619839d8e893958c98 | 000546c22a1aa2e746a8499e605841a2ac4c60dd | /Codeforces/Rounds/154/C.cpp | 6f9ac46c0e710b80179a37c2607eefc4f61b66e6 | [] | no_license | leandrovianna/programming_contests | be19a11e0f9e84f519628e78f56df8035f7c7501 | 78e31f4e327be819dd310df4d346b7ac2934f7dd | refs/heads/master | 2021-07-13T07:36:59.095154 | 2021-07-10T14:14:05 | 2021-07-10T14:14:05 | 77,759,229 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | C.cpp | // Codeforces - Double Profiles - 154C
#include <bits/stdc++.h>
using namespace std;
const int N = 1000100;
vector<int> v[N];
vector<pair<int, int>> edges;
uint64_t ppow[N], hv[N];
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
for (int i = 0, x, y; i <... |
fc011b01ed82a05dec99bcd2d21305847a2f9078 | 15e84f76de3a073de3da83d0d018c6dd29aad51e | /CH7/CH_14/소스.cpp | ee38fd6028a5386bfd453df531b52a220d651fb6 | [] | no_license | penguinman-99/DDaBaeC | d4cce3158fe02e9ce4da7411b3b0d99d93a0f974 | 41d1d7646fc567db457035606328758d9907cacf | refs/heads/main | 2023-02-27T12:20:26.254040 | 2021-02-07T12:05:29 | 2021-02-07T12:05:29 | 325,785,487 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 460 | cpp | 소스.cpp | #include <iostream>
#include <cassert>
#include <array>
using namespace std;
void printvalue(const array<int, 5>& my_arr,const int& ix) {
assert(ix >= 0 && ix <= my_arr.size()-1);
cout << my_arr[ix] << endl;
}
int main() {
array<int, 5> my_arr{ 1,2,3,4,5 };
printvalue(my_arr, 100);
//static: 변수가 변할 수 있는 경우 사용할 ... |
86f5b0dc00065ef9323e2d24bfa3643f7427c5c0 | 5bfc738258555513bfb79acdb47e04ae9bbff4be | /OpenCCTVServer/src/filetransfer/FileTransferClient.cpp | 02407fbcb6d62c44c48f227ba97459190813581f | [] | no_license | tisserapac/OpenCCTV | 53bbfc4971b7d792763e7395e2f38c8302572a7a | b51b3eba028d25c302402280a1775e00f46127f5 | refs/heads/master | 2021-01-15T22:25:03.443210 | 2015-02-25T01:52:22 | 2015-02-25T01:52:22 | 31,269,649 | 0 | 0 | null | 2015-02-24T16:36:37 | 2015-02-24T16:36:34 | C++ | UTF-8 | C++ | false | false | 4,529 | cpp | FileTransferClient.cpp | /*
* FileTransferClient.cpp
*
* Created on: Jan 29, 2015
* Author: anjana
*/
#include "FileTransferClient.hpp"
namespace filetransfer {
FileTransferClient::FileTransferClient(string sFilePath, string sHost,int iPort)
{
_sFilePath = sFilePath;
_sHost = sHost;
_iPort = iPort;
}
FileTransferClient::~File... |
6db2cc49610e82e365c5bbb04683d0084a34f595 | a65ade13b64bd3b969aef229c2f5ae6162b2933f | /CoreSystem/Timer/FDOSchedule.h | e6401285ef11501252166811fded9e1f51d10171 | [] | no_license | jiowchern/fdo | a29eb161ff2672801c9dc51a06d15687790c0f76 | 84cf1386bb8d238954013734b081f9ac8afc423f | refs/heads/master | 2022-07-20T17:41:10.802133 | 2019-09-24T19:20:40 | 2019-09-24T19:20:40 | 210,220,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | h | FDOSchedule.h | #ifndef _FDOSchedule_20100424pm0415_
#define _FDOSchedule_20100424pm0415_
#include "singleton.h"
#include "GameDatabase.h"
namespace FDO
{
struct Schedule : public FDO::Singleton<Schedule>
{
typedef TdgHandle TaskHandle;
struct NewTask
{
TdgHandle hProcess;
float fTime;
};
static void Initia... |
ec8a94ffbdc799bec65b61ddb18842029d264af9 | 4db188ea31dea3c3710ab9c3c6466a0235f811f8 | /utils/File.cpp | 8d289fb783a95045005f6672347a3de8e6d5dce2 | [] | no_license | sonic4002/TCPClient | 2d3be27006a32c5819995f30c20aa420e8544e94 | a1a419646edb5aa9cb28918402a67d7880f869cd | refs/heads/master | 2021-01-01T20:32:10.315609 | 2017-09-05T19:49:56 | 2017-09-05T19:49:56 | 98,881,724 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | File.cpp | #include "File.h"
using namespace npl;
File::File(char* path) {
file.open(path, fstream::in | fstream::out | fstream::app);
}
int File::read(char* buffer, int length) {
if (file.is_open())
{
length = file.tellg();
buffer = new char [length];
file.seekg (0, ios::beg);
file.... |
8ca2bf8dde9c5e51475b41d43f4d4f85faf942d7 | a4be1961d0cd99ce3a89c0bc91bdb56758ced3ae | /al/ALSource.hpp | b86feebc6bbbe6ac97617668ea479ab9ed071636 | [
"Apache-2.0"
] | permissive | jomael/AudioEngine | 392c972a5ae578cf0c6868a603727eb136cacafa | 48219cee71ad437760d7fe6a6a046c076b5fddd5 | refs/heads/master | 2021-05-02T09:23:04.537662 | 2018-05-01T19:42:45 | 2018-05-01T19:42:45 | 120,822,333 | 0 | 0 | Apache-2.0 | 2018-05-01T19:42:46 | 2018-02-08T21:50:47 | C | UTF-8 | C++ | false | false | 675 | hpp | ALSource.hpp | #ifndef AL_SOURCE_HPP
#define AL_SOURCE_HPP
#include <glm/glm.hpp>
#include <AL/al.h>
#include <AL/alc.h>
#include <memory>
#include "ALUtil.hpp"
#include "util/Log.hpp"
namespace audio
{
namespace al
{
class ALSource
{
public:
ALSource();
virtual ~ALSource();
/// Load from file sound
void createSo... |
5e9832278855455addaf5a649d37e689f62e16a0 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/media/router/discovery/mdns/cast_media_sink_service_test_helpers.cc | 861bc5333d2179f604934f51c8fcb4d03fa05702 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,588 | cc | cast_media_sink_service_test_helpers.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/router/discovery/mdns/cast_media_sink_service_test_helpers.h"
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#in... |
5b1bf3ef7533f27fe07f2bb350dfeb0bdda8803e | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/inference/include/ie/vpu/vpu_config.hpp | 1755ed4d9fff0cf0c15a1b170854739c022057ef | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 2,038 | hpp | vpu_config.hpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief A header that defines common config subset for VPU plugins.
* Include myriad_config.hpp or hddl_config.hpp directly.
* These properties should be used in SetConfig() and LoadNetwork() methods of plugins
*
* @file v... |
dd421160d29f921d36e9378c3563e6510444c8d6 | 31500fa3876b8abb4fc4dd2662a877cf0a89d1eb | /ClientConnection.h | bb7ce0528d43b11847dfc0edbae2bcc26dbe6343 | [] | no_license | secondtonone1/fingerserver | af888e6c3dddbe08ca776cb2e2da08f7a0542271 | b743ca4f5e9c886e7c4511b0b335ba1673f38cb8 | refs/heads/master | 2020-12-25T08:28:31.613463 | 2019-11-11T02:19:30 | 2019-11-11T02:19:30 | 63,590,975 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,172 | h | ClientConnection.h | #ifndef __LYNX_GAME_SERVER_CONNECTION_PROXY_H__
#define __LYNX_GAME_SERVER_CONNECTION_PROXY_H__
#include "MainThread.h"
#include "CommonLib.h"
namespace Lynx
{
class ClientConnection : public MainThread
{
public:
ClientConnection();
virtual ~ClientConnection();
friend class NetworkSystem;
bool initial();... |
9b18435cea919e1ef893f708eddc013017ac5c3f | 2b02629034a970a6068e479e81556f2167f248c8 | /Tree pt.2/MaxPQ.cpp | c6f118c103cb739adfcb9a6d1902f5e3c137039f | [] | no_license | refrenc/Data-Structure | 1c9f795f874f744c5578dffebb4333b213dcde25 | d8e22a48e321394f837ea1c14bdadcd8e0c7857d | refs/heads/master | 2022-11-06T14:34:11.156554 | 2020-06-20T01:00:07 | 2020-06-20T01:00:07 | 273,607,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | MaxPQ.cpp | template <class T>
class MaxPQ {
public:
virtual ~MaxPQ() {};
virtual bool IsEmpty() const = 0;
virtual const T& Top() const = 0;
virtual void push(const T&) = 0;
virtual void Pop() = 0;
}; |
b76eb18addfcbc77b28c78e0c3537cbbb25bae93 | 5ed9aa6864bf462fcb2939b52feb83e2e17c0b20 | /Source/ZombieGame/Zombie.cpp | 35b089a66923b96fde09d24bd83b0c0f3c92ddf7 | [] | no_license | TheKollider/TGP-Joint-Project | c96f9666802fda2360fe3bfe6b20e0114c1eacf6 | f4c3d1c8280301c1d3e20d617d3b5052e073a4a0 | refs/heads/master | 2020-04-06T18:03:23.013884 | 2019-01-22T15:36:14 | 2019-01-22T15:36:14 | 157,683,430 | 0 | 0 | null | 2019-01-11T15:01:02 | 2018-11-15T09:12:25 | C++ | UTF-8 | C++ | false | false | 4,324 | cpp | Zombie.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Zombie.h"
#include "ZombieController.h"
#include "ZombieGameCharacter.h"
#include "Kismet/GameplayStatics.h"
#include "Engine/World.h"
#include "Components/PointLightComponent.h"
#include "Kismet/KismetMathLibrary.h"
#include "Com... |
a1d2cc04304caf3bbc910c7a70df5a9595ebe948 | de6249b682da4deb3b393ece397e154252f84a3d | /source/data.cpp | 02bb96547cf47b8135b85cc4c530e2f34f007757 | [] | no_license | perepiskass/Bulkmt | 9d42d8a5f0f13016f5e775a924ea6a7f7f604a3a | 7b2605c6e9f2bc955644230f89e9958f141639fc | refs/heads/master | 2021-05-23T11:50:09.756033 | 2020-05-12T10:58:57 | 2020-05-12T10:58:57 | 253,272,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,021 | cpp | data.cpp | #include "data.h"
#include <algorithm>
#include <atomic>
#include <ctime>
#include <chrono>
#include <fstream>
#include <mutex>
std::condition_variable cv;
std::mutex mtx_cmd;
std::mutex mtx_file;
std::atomic<bool> cmd_run;
//-----Data input methods--------------------------------------------------------------------... |
e6288efa4f95d0128382b631ce4e9e0ee239ca62 | a1548164a22b3897fac095fd1118c78ac3a4fdae | /telegram-qt/tests/tst_CTelegramDispatcher/CTestDispatcher.hpp | ac65585f97954ee6d9b44524231a4ca473a683a8 | [] | no_license | jsfdez/telegram-qt | 062031e2308ee36104ddc2ecc66856d096fe13f3 | ed7c981a622a38ec73ac7806740bea10ee0e64a1 | refs/heads/master | 2021-01-14T11:41:25.648433 | 2016-04-27T14:11:23 | 2016-04-27T14:11:23 | 34,819,254 | 1 | 1 | null | 2015-04-29T21:27:30 | 2015-04-29T21:27:29 | null | UTF-8 | C++ | false | false | 1,037 | hpp | CTestDispatcher.hpp | /*
Copyright (C) 2015 Alexandr Akulich <akulichalexander@gmail.com>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS... |
9ab668c478bee944d189c1d377bbcd4dcb9d35fb | 847a0217508a39502509ebab74dfcd626180137a | /SI1 - Rogue Game/src/NPC/Market.cpp | adb2fc5a0a74d17772f4f328dfe0951c6c002160 | [
"MIT"
] | permissive | JahodaPaul/FIT_CTU | 757c5ef4b47f9ccee77ce020230b7309f325ee57 | 2d96f18c7787ddfe340a15a36da6eea910225461 | refs/heads/master | 2021-06-04T20:16:44.816831 | 2021-03-13T10:25:06 | 2021-03-13T10:25:06 | 133,488,802 | 29 | 20 | null | null | null | null | UTF-8 | C++ | false | false | 5,087 | cpp | Market.cpp | //
// Created by pjahoda on 4.5.18.
//
#include "NPC/Market.hpp"
namespace RG{
namespace NPC{
RG::NPC::Market::Market(){
}
RG::NPC::Market::~Market(){
}
void RG::NPC::Market::AddItem(std::shared_ptr<RG::NPC::Item> item){
this->listOfItemsPossibleToSell.push_... |
2db75df3c02138b6b3c1228cc33a365d2261f390 | f85ce076744e8c099d1b68f6f09baf468bed3432 | /ex4_adi_gutman_amit_ein_dor/ex4_Adi_Gutman_Amit_Ein_Dor/include/Source.h | 5bec57da7decba454c798771b0fe84dd28c82ad4 | [] | no_license | adi00079/Pipe | 0265faf7f870a5d9a48e31cc1fc2ab0095ca41fc | 4ea9b002baffc1b2c5a5063d17fdf7abd1f83f87 | refs/heads/main | 2023-07-08T09:34:19.293675 | 2021-08-05T08:46:43 | 2021-08-05T08:46:43 | 392,960,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | h | Source.h | #pragma once
#include "Rotatable.h"
//sourse of water
class Source : public Rotatable
{
public:
Source(int angle = 0, Vector2f location = {}, Vector2f size = {}) :
Rotatable(Textures::instance().get_Textures(1), angle, location, size)
{
m_edges[(angle+3)%4] = true;
};
private:
}; |
912e5132eadc652cbbe356018bef56ce784f9a4b | 01bcef56ade123623725ca78d233ac8653a91ece | /public/materialobjects/dmetexture.h | fd44b004864fd2f1fa47cad7c1bf10eeefdf1a57 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SwagSoftware/Kisak-Strike | 1085ba3c6003e622dac5ebc0c9424cb16ef58467 | 4c2fdc31432b4f5b911546c8c0d499a9cff68a85 | refs/heads/master | 2023-09-01T02:06:59.187775 | 2022-09-05T00:51:46 | 2022-09-05T00:51:46 | 266,676,410 | 921 | 123 | null | 2022-10-01T16:26:41 | 2020-05-25T03:41:35 | C++ | WINDOWS-1252 | C++ | false | false | 11,697 | h | dmetexture.h | //====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =======
//
// A class representing a procedural texture
//
//=============================================================================
#ifndef DMETEXTURE_H
#define DMETEXTURE_H
#ifdef _WIN32
#pragma once
#endif
#include "datamodel/dmelement.h... |
5d0832f959a8a5f227302f8290e6f906d098b272 | 3d48b4b37590c31e847d4b7afafd58cd7df27e15 | /9. ParentChildPtr/main/main.cpp | e18f4a1c9f593b8e290500808ad473be9bdf5385 | [] | no_license | CaseyHofland/CppAdvancedHerkansing | 80507292aac85395026f9ed00ae3c793fabb9ddf | efce85340356df2ccc32e9d46bb2e80b2fe35014 | refs/heads/master | 2023-06-08T13:40:41.798195 | 2020-01-04T19:31:52 | 2020-01-04T19:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | main.cpp | // main.cpp : This file contains the 'main' function. Program execution begins and ends there.
#include <iostream>
#include "Parent.h"
// Testing different kinds of pointers
void Moved() {
Parent* p1 = new Parent("Parent1");
std::cout << "p1:" << *p1 << std::endl;
Parent p2 = std::move(*p1);
std::cout << "p2:" ... |
34bf1015c8c3de1395d2ee7a807109513a9dcf18 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /kms/include/tencentcloud/kms/v20190118/model/VerifyByAsymmetricKeyRequest.h | 552b132aa35d52e1ae683ee07954d537afecdbbb | [
"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 | 8,479 | h | VerifyByAsymmetricKeyRequest.h | /*
* 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
... |
a0ccaccdf83d8343151d30bb99912a212e42bd3c | 2bff77479b167f287c9d526af8b5de93580b9567 | /Src/ARcBridgeCalculate/StdAfx.h | ad7ef42169d9a1b837315716c19ab9413d200003 | [] | no_license | SamuelBacaner1112/ARcBridge | 84dd7291ebca4928ebbf5564ce4a7163a77fd621 | 370aea531455f6eb927d68c16a7c4f6ce969b727 | refs/heads/master | 2023-01-30T03:54:50.231730 | 2020-12-09T00:32:54 | 2020-12-09T00:32:54 | 319,797,260 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,407 | h | StdAfx.h | // This is a part of the Hangil IT Program Source.
// Copyright (C) 1998- (c) Hangil IT Corporation
// All rights reserved.
//
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H... |
afcb23124fb770d8a6198c517c059cf69d22353c | 92d5ceeb876a78b4b9295a9702dc9239e6c3a6fb | /OJ/jiuduOJ/CPP/题目1054:字符串内排序.cpp | 3e99b71455733f78b7050efe4925a1db923b5e2d | [] | no_license | lightcn/code | d381cb5e69e643f9bf9405f6e9806867f27ac44d | 3b4e637125488691bc71cdf43e82c211ae0785ca | refs/heads/master | 2021-01-17T15:16:07.713906 | 2016-04-06T04:25:08 | 2016-04-06T04:25:08 | 31,491,906 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 357 | cpp | 题目1054:字符串内排序.cpp | /**
* ÌâÄ¿1054£º×Ö·û´®ÄÚÅÅÐò.cpp
*
* Time : 2013-10-18 8:26
*
* Created with Dev¡ªCPP
*
* Copyright 2013 zhiliang
*/
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int main(int argc, char** argv)
{
char ch[201];
while (gets(ch))
{
sort(ch, ch + strlen(ch));
puts(ch);
}... |
ba8471f2fd7e542ec3d712f7709f59a1b8784e22 | cccfeab1636dc38e0754498956dc4a2aa45c3cf4 | /src/player.cpp | 7f24e50979426d4539c0b85798477d3c7463067c | [] | no_license | AdriaanSadie/SpaceInvaders | 5f28cefcca1cabc6a1425a6fc48cb71bb257d84b | 377fc79ef32064060a97198eb0a6d6ee82d58bcf | refs/heads/master | 2022-11-24T19:36:14.697342 | 2020-07-22T21:00:05 | 2020-07-22T21:00:05 | 280,154,001 | 0 | 1 | null | 2020-07-22T21:00:06 | 2020-07-16T12:55:22 | C++ | UTF-8 | C++ | false | false | 1,089 | cpp | player.cpp | #include "player.h"
#include <cmath>
#include <iostream>
#include <algorithm>
// Getters and Setters:
void Player::Update() {
if (!move_idle) {
if (move_up) { pos_y -= speed; }
if (move_down) { pos_y += speed; }
if (move_right) { pos_x += speed; }
if (move_left) { pos_x -= speed; }
}
// ... |
8e56fb117ccd53db39c79b96459f073c063c03d1 | 44833940d8b934094cd526fdba78e2082daf2ceb | /EzGame-1.0.0/CoreLibs/EzRenderer/EzTextureStage.cpp | b91519069dad8216f82ae691e9408db575f287a1 | [] | no_license | BGCX067/ezgame-svn-to-git | 7790617ceff6fdb98c60e51282f3438d32eecfc0 | e7fdedac48bbdcb16acc4536701f90077a7aad75 | refs/heads/master | 2016-09-01T08:51:24.193235 | 2015-12-28T14:17:51 | 2015-12-28T14:17:51 | 48,874,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | EzTextureStage.cpp | #include "EzTextureStage.h"
EzMemPool<EzTextureStage>* EzTextureStage::ms_pTextureStagePool = NULL;
EzTextureStage::EzTextureStage(void)
: m_pTexture(NULL), m_uiStage(0), m_eFilterMode(FILTER_NEAREST), m_eClampMode(ETC_CLAMP_U_CLAMP_V)
{
m_pTextureStageGroup = EzTextureStageGroup::alloc();
}
EzTextureSta... |
971745e22d592b8f325885020a1108ee0dde2926 | 06d94fb3495674a41fa2b1496eb2858d8af5d446 | /Game/ExplosionObject.h | 3ef5c418457ca36345bc801ed54b4ac47bc7998a | [] | no_license | WLLMGS/MoolightEngineV2 | f3a5962b1660b2d85ff0bbe9a891297144bd7726 | 5019ca4194ddb0358815027702e10df08617f23f | refs/heads/master | 2020-03-21T23:29:38.352894 | 2018-07-17T22:15:59 | 2018-07-17T22:15:59 | 139,190,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | ExplosionObject.h | #pragma once
#include "../MoonLight Engine/GameObject.h"
class ExplosionObject : public GameObject
{
public:
ExplosionObject();
~ExplosionObject();
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.