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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51574217e445f9efdd5ed60f74b0ea514de28b66 | 8e083ee9ef24927036fe2a56dc89e5bd88716fe1 | /command.cc | 7a8dcc0a8aba7b436f793180c4bca552c6f4e2be | [
"BSD-3-Clause"
] | permissive | Kryndex/moterm | 3eab87a23c492332c93eb6c2ce784ff625cb82e5 | f0c424aefcfbce9f8ea9282bf64ac36cf7ec525e | refs/heads/master | 2021-09-03T01:48:04.756550 | 2017-11-02T15:55:43 | 2017-11-02T15:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,627 | cc | command.cc | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "topaz/app/moterm/command.h"
#include <unistd.h>
#include <zircon/status.h>
#include "lib/fsl/tasks/message_loop.h"
#include "lib/fxl/logging.h"... |
fc59c539e1455acd79a4e09cd25ae83514b1d641 | 8e52488259593cbaf6fcd3428cd62f30b33044b2 | /clients/lifetime/instrument.cc | e6464ccfeca6171d524ee5d3dce678fd9339ebfd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BwRy/granary | 04ca9e22b7383029ac9e999995533e62b836bdae | f9ac2b6af0864f420b93917dc21a38041905b3aa | refs/heads/master | 2021-08-14T15:17:54.231599 | 2017-11-16T03:22:55 | 2017-11-16T03:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,997 | cc | instrument.cc | /* Copyright 2014 Peter Goodman, all rights reserved. */
#include "clients/lifetime/metadata.h"
#include "clients/lifetime/instrument.h"
using namespace granary;
namespace client {
// A function invoked on every memory read of a watched address `addr`.
void on_read(uintptr_t addr, unsigned long num_bytes) {
auto ... |
bba5b6c741c621621cfe1a9b059ceb004027d63b | 3ffbee351afb5b85770ddb7128357a19f0ca06cf | /watanabe-yuya/output-format/main.cpp | c5064ac28bbe375005e066cd7c9237729d5b964e | [] | no_license | hasipon/icfpc2016 | 4519c24a7e4acab294f327ab55b852621d00177a | 5016e5bc713a4832ad26a773bf933f27627c2f18 | refs/heads/master | 2020-12-11T03:34:31.010461 | 2016-08-08T08:53:01 | 2016-08-08T08:53:01 | 64,935,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,065 | cpp | main.cpp | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... |
6d2a40bd24a1107a154920881d5a66472b7341d0 | 53384e9a9a179c669838d4d037c2afa619eb9934 | /read-env.cpp | 66761082680300f8cf7d0eff51d27ac4b1460d65 | [
"Apache-2.0"
] | permissive | DAarno/push-env | 7819a2c73715ebb43e91df0e443b7a6b5b11ac60 | 6caaa0a7ce934f2c2e76d2c55822eb10f9c86b68 | refs/heads/master | 2022-12-17T19:31:24.207790 | 2020-09-26T11:28:13 | 2020-09-26T11:28:13 | 292,228,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,899 | cpp | read-env.cpp | /*
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
a97828993a12b1a760e69e23c184326d7a993b24 | b44e01223d86cf03976ed73a76a1f6d4b869344e | /lab4/part3/part2/main.cpp | 8f3ee54020dec760b7ade0307a54c0dcf94fb062 | [] | no_license | mnelso12/CSE20212 | 65aece6b4bc16ff97a5659865758ec2cd1e72ee3 | 1399b5c400bd5d8a8a8ea16e1ddd9f7452699194 | refs/heads/master | 2021-01-10T06:05:40.730693 | 2015-12-20T18:10:47 | 2015-12-20T18:10:47 | 48,331,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,108 | cpp | main.cpp | // main.cpp
// Madelyn Nelson, CSE20212 Lab4, Blackjack
#include <iostream>
#include <cstdlib>
#include "blackjack.h"
#include <deque>
#include <algorithm> // random_shuffle
#include <ctime> // srand
using namespace std;
int main() {
char gameAgain = 'y';
int playerWins = 0, dealerWins = 0; // keeps track ... |
c3fb7907b900960ea298a2b79e5b334970035f0d | 0e48d5a489be77fd9eb6265fca76f039148a0f38 | /main.cpp | 089d17e648cf4f9e1bb29d199813592ecfc779b1 | [] | no_license | TomHacker/Depth-testing | a3b775a6a73a2590379adb1638ec3118eda4cc02 | a20d512b4546466efc800ab69831c1b59a9ad703 | refs/heads/master | 2022-04-16T20:13:35.922783 | 2020-04-15T02:57:39 | 2020-04-15T02:57:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,154 | cpp | main.cpp | #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <iostream>
#include <vector>
#include <map>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Shader.h"
#include "Camera.h"
void framebuffer_size_callba... |
37e175a7d687e3c3fb4fad00303e0e504a364814 | 39d65fa98e62751b2fe68133b7a91e6b76049499 | /3_참고자료_프로젝트실적_개인/3_3_모션인식을 이용한 가위바위보 로봇 제작/3_3_4_script of arduino (java).ino | c53f2fb50a4788cb146146435171b1ae0ed13548 | [] | no_license | cauosg/projects_OSG | 386bc0697882677079fe0b12d253a21930398251 | 8bfde43d00113f221917fd8b141e3ad80f461974 | refs/heads/master | 2021-03-29T03:57:30.781565 | 2020-04-13T12:29:33 | 2020-04-13T12:29:33 | 247,917,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | ino | 3_3_4_script of arduino (java).ino | #include <Servo.h>
Servo finger1;
Servo finger2;
Servo finger345;
int amin = 180;
int amax = 0;
void setup() {
Serial.begin(9600);
finger1.attach(6);
finger2.attach(9);
finger345.attach(3);
finger1.write(amax);
finger2.write(amin);
finger345.write(amin);
// put your setup code here, to run once:
}
... |
d8100d6a73f34a961e9132f407fc489dc1eb57d2 | 888ff1ff4f76c61e0a2cff281f3fae2c9a4dcb7b | /jianzhioffer/66.cpp | ecac6111e8db061c9637548d8bd44c71ca2a944e | [] | no_license | sanjusss/leetcode-cpp | 59e243fa41cd5a1e59fc1f0c6ec13161fae9a85b | 8bdf45a26f343b221caaf5be9d052c9819f29258 | refs/heads/master | 2023-08-18T01:02:47.798498 | 2023-08-15T00:30:51 | 2023-08-15T00:30:51 | 179,413,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | 66.cpp | /*
* @Author: sanjusss
* @Date: 2021-08-28 09:49:28
* @LastEditors: sanjusss
* @LastEditTime: 2021-08-28 10:00:30
* @FilePath: \jianzhioffer\66.cpp
*/
#include "leetcode.h"
// class Solution {
// public:
// vector<int> constructArr(vector<int>& a) {
// int n = a.size();
// vector<int> lefts(n... |
c60fd88cc8813796bc3496f4c5dd9bac607a80c8 | d331f551066c58414b7238e3e06ff1c2fba5565c | /FFT/fft_basic.cpp | b2ff3eed02ce70aa7d432bca32aabaf8fe5d5d64 | [] | no_license | aasom143/coding | 8820d1add1cc31bd9c590256cf05b0bc9634722d | 607b9bc7f6665b4ab5902bc56aa97784acbf2f5e | refs/heads/master | 2020-04-18T00:11:47.385530 | 2019-11-18T15:05:00 | 2019-11-18T15:05:00 | 167,067,121 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,706 | cpp | fft_basic.cpp | // https://codeforces.com/contest/1096/problem/G
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define mod 1000000007
#define int long long int
void fast(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
int N,K;
int ok[10];
int mo=998244353;
in... |
23a2f134b610ffa57b616019a8182d19809a8db8 | 46c981342e26e5bfc81fae77980eeb2b227c71b0 | /src/widget.cpp | ae09d0ed59b2c3585ccfb30cf02cac807f51c7d5 | [] | no_license | Sokario/sdlGUI | 83e0add189bf6d08dc625b87411d756aeaaf99bf | 7847ed4dbd0c7e14c2e542887da30feb9536b69c | refs/heads/master | 2021-01-20T14:58:43.577287 | 2017-03-10T15:22:08 | 2017-03-10T15:22:08 | 82,787,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,878 | cpp | widget.cpp | //
// Created by logout on 08/02/17.
//
#include "../include/widget.h"
#include <iostream>
Widget::Widget() {
m_computer = new SDL_DisplayMode;
m_renderer = NULL;
setId(0);
setWidth(0);
setHeight(0);
setName("NULL");
setPitch(0);
setPosX(0);
setPosY(0);
setMouseX(0);
setMou... |
c609f699c6cc60ec9f58e5a5bd911cd7bda47b85 | 8da3b4d81d76b9cc3189057ce1417d8572e23aca | /강화시뮬레이터/강화시뮬레이터/Earring.cpp | 4841c9c37f04edff4e08d415936a8d912ecfc33f | [] | no_license | Hyeongho/Portfolio | 558317db249719276cc0120f71bf1cfd1cf81201 | 88f05e2cbfbd9fdd53b54d6f4d1244e85ee1a6cd | refs/heads/main | 2023-06-13T06:41:37.349025 | 2021-07-07T14:59:46 | 2021-07-07T14:59:46 | 359,944,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21 | cpp | Earring.cpp | #include "Earring.h"
|
05a40179f76c6e33b670eb044b8ece143470e9a2 | b378d72e949b1ccd0acea75ccbb32018904576a4 | /WWW/stara/solutions/837.re | eb2eb850344214f25ffd851e5a4c1b196aea2a8c | [
"MIT"
] | permissive | wanatpj/guarana | c1eeef7297fc771919ae362d3323b9fd339f17a7 | 1a3f95fedca93130698cdcf48668afdf2360d6be | refs/heads/master | 2020-04-05T11:43:39.293238 | 2017-07-08T22:21:08 | 2017-07-08T22:21:08 | 81,142,049 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 105 | re | 837.re | 1 0
0 0
1 0
1 0
1 0
0 4
1 0
1 4
1 0
0 12
0 8
0 4
0 12
0 8
1 4
1 0
0 8
1 36
1 104
1 268
0 476
1 336
1 400
|
f9cdc8792dda59ff1121874c35978ba76559ea66 | d7e076fe2a73abc729fb4c92c181905c86bb14b7 | /Holly LDF Travel/Time.cpp | 00ed3a4c26e55c74111b7cf8d94303aa13b8ec3a | [] | no_license | hollykim/COCC-HollyTravel | a02ae6e315a88b907cbb51ffba999fddc5056c00 | 17977e6e2f0381e9edd23a7543414efc17a966e3 | refs/heads/main | 2023-03-29T19:45:13.655855 | 2021-03-29T22:10:21 | 2021-03-29T22:10:21 | 352,794,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | Time.cpp | #include "Time.h"
#include <iostream>
using namespace std;
//overloading - operator to calculate time
Time Time::operator-(Time operand2){
Time result;
unsigned short checkOut = (this->hour * 60) + this->minute,
checkIn = (operand2.hour * 60) + operand2.minute,
... |
7e54a372f5fd103762548dae208250edb0639577 | 792dd5cfdad32a8aad37ac14b8aed35130159fea | /matrix/matrix/WW.hh | 496cf856f66b896d6ccde2e527ff54c56bfb5323 | [] | no_license | msneubauer/matrixelement | e35110a80d974cc3b8f397b867c374ffdb424844 | c0cf382d816661de9e9a2b8f79a6e752f8e52519 | refs/heads/master | 2021-05-27T08:20:30.751177 | 2013-10-08T03:21:17 | 2013-10-08T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | hh | WW.hh |
//
// authors: Doug Schouten (doug dot schouten at triumf dot ca)
//
//
#ifndef WW_HH
#define WW_HH
#include "matrix/WWLeptonsBaseIntegrand.hh"
#include "matrix/TransferFunction.hh"
//////////////////////////////////////////////////////////////
//
// The Feynman integrand: ME(p) pdf(x,Q) dp for WW scatteri... |
96cbd0171905b3b7af2d5d4591966c7b55b7c1a9 | 29237ad0279eea86e0f5dd54e8ef898c465751d1 | /src/GenInter.cpp | 0c2b90fd3019930bc2ea4b46558a79515c2cf866 | [] | no_license | Kennnnnnji/CCompiler | b7008d91d16b1a320069b7694b1c354febce373f | ac1494b1806cdd87d06f04dd139b14834b59ba31 | refs/heads/master | 2022-04-07T21:09:36.662133 | 2020-03-09T07:34:31 | 2020-03-09T07:34:31 | 219,979,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,644 | cpp | GenInter.cpp | #include "GenInter.h"
GenInter::GenInter() {
locale::global(locale(""));
interfile.open("17373052_王俊雄_优化前中间代码.txt", ios::out|ios::trunc);
if (!interfile.is_open()) {
cout << "GenInter.cpp: Error opening 17373052_王俊雄_优化前中间代码.txt";
exit(1);
}
}
void GenInter::prt(string s) {
interfile << s;
}
void GenInter... |
2168644ae8b49ec4e4814d2300c75a49bf49b4b6 | 66030acadf7fda7d431a81fcfdb9d76117a4762c | /plugins/qtplug/blankslade.cpp | 73c49b5b4d0c9c61ef223ae1134d8f136b19abe2 | [
"MIT",
"Zlib",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | lxnt/dfhack | 39b7611699356dad8fca52a66bd6fdf77531f5ea | 28059a7f351736d307aa45372e52f6e74fe85549 | refs/heads/master | 2021-01-21T01:12:16.411322 | 2012-02-16T15:22:05 | 2012-02-16T15:22:05 | 3,459,453 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,580 | cpp | blankslade.cpp | /*
* Copyright (c) 2010 Petr Mrázek (peterix)
* See LICENSE for details.
*/
#include "blankslade.h"
#include <QFileDialog>
#include <QDebug>
#include "glwidget.h"
blankslade::blankslade(QWidget *parent): QMainWindow(parent)
{
ui.setupUi(this);
GLWidget * glw = new GLWidget();
ui.gridding->addWidget(glw... |
585cf559106981d911602a6f6b5fbf4a0f0208dd | 763dd77ba4bb5b680f53060141c217198e510658 | /Sorted_Insert_Position.cpp | 9b860d3c2923ad2c58965b46eee1c66e13b2275b | [] | no_license | gouravdhar/interviewBit_CPP_Solutions | 4a03300cdbd833a3870b197d08e0c4d2f2b56a09 | cb99e81d9c645a26d705d118e5e5b8c3cd7babff | refs/heads/master | 2023-01-05T22:11:32.212225 | 2020-10-18T17:14:24 | 2020-10-18T17:14:24 | 297,715,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | Sorted_Insert_Position.cpp | int in(vector<int> &A, int B, int l, int h){
if(l > h)
return l;
int m = (l+h)/2;
if(A[m] == B)
return m;
if(A[m] > B)
return in(A, B, 0, m-1);
else
return in(A, B, m+1, h);
}
int Solution::searchInsert(vector<int> &A, int B) {
return in(A, B, 0, A.size()-1);
}
|
e280a25284f11a58f1e4d0d697fc2ef7d4f9e21f | 0d5d0e5dbc95c3f621a063222ef0036f386b9f55 | /BaseProject/Plugins/BlockoutToolsPlugin/Intermediate/Build/Win64/UE4Editor/Inc/BlockoutToolsPlugin/BlockoutToolsParent.generated.h | 3af20fe2c76b9ff1106405d7fe3bcd54e1035e1a | [] | no_license | Spikesalive/FTC | da604916eacda46efb167c562f57ba90587adee3 | 8b9b1315442fbedd0fce6f73b8021d75be76ffd5 | refs/heads/main | 2023-09-06T08:00:26.132842 | 2021-10-18T18:48:06 | 2021-10-18T18:48:06 | 417,198,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,720 | h | BlockoutToolsParent.generated.h | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
c2bc3cbbae99c8787b8f60b3c78bcf4d188dc3dd | 8d26dc2f58d2b8644380783f7e5a1780395792d8 | /client/main.cpp | 37e53ae47bb2741cd54a3cb90dfb5c968a9733e1 | [] | no_license | 0obriano0/VS_Socket_Chatroom | 6afdf889bee16f384ebfb1c0e77f01cb7e9925b4 | a3fe685588cb7b1b63d2f93566fd3627faa435a3 | refs/heads/main | 2023-06-19T17:35:33.168331 | 2021-07-16T03:17:57 | 2021-07-16T03:17:57 | 386,164,071 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 2,609 | cpp | main.cpp | #include <iostream>
#include<winsock2.h>
#include<stdio.h>
#include<string.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
char buffer;
int send_cmd(SOCKET sockfd);
void recv_cmd(SOCKET sockfd);
int main(int argc, char** argv)
{
SOCKET sockfd;
int len;
stru... |
a01c773acc6ce7b91174e2aadd05a27de4599250 | e6841a65c30e2ff468cf1e779559cbc03567cdb1 | /Praktikum GGI 2/Lösungen/Strassenverkehr (Stefan Erkens)/Fahrrad.h | 4870c5656904916c7d99ca0c0915e653bf132945 | [] | no_license | karimbouaziz95/Praktikum2_Versuch | 51ceff8b20e28f1cb5fe13d0397bf75a59a56e84 | 092993f74a9faabbf3918ad5b1393c8b7c06f90f | refs/heads/main | 2023-08-23T04:53:36.152724 | 2021-10-17T16:20:01 | 2021-10-17T16:20:01 | 418,179,393 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 593 | h | Fahrrad.h | #pragma once
#include "Fahrzeug.h"
class Fahrrad : public Fahrzeug
{
public:
Fahrrad(){};
Fahrrad(string sName, double dMaxSpeed):Fahrzeug(sName, dMaxSpeed){};
virtual double dTanken(double dMenge = 0.0) {return 0;}; //Tanken nicht möglich -> es wird immer 0 returnt
virtual void vAbfertigung(); //Abfertigung
... |
c5bd5498cd56f9ba7f1c8e9dc3e6f264c0d36a5f | 6d83b39bc014a37fd8ad84a0103d32578eebfad4 | /src/smoothSender.h | 6ea7765c9b6f4d6c23ffce549498ca419db0f068 | [] | no_license | Bentleyj/Whispers | eb6f91882546937d5524bbd170b31e78ee808dd4 | 08e809fee0343b19d2f84c88da17516c7493cbdd | refs/heads/master | 2021-01-23T09:53:33.716704 | 2015-07-15T09:42:08 | 2015-07-15T09:42:08 | 38,957,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,096 | h | smoothSender.h | //
// smoothPlayer.h
// Whispers
//
// Created by James Bentley on 7/3/15.
//
//
#ifndef __Whispers__smoothSender__
#define __Whispers__smoothSender__
#include "ofMain.h"
#include "Integratorf.h"
#include "ofxPd.h"
class smoothSender {
public:
smoothSender(string _name, float _farBound, float _nearBound, floa... |
bc1787143b1e203475354352f5d8e847f140e45d | 9a7d75b0d32ca40ab26860983e769c13d45267f9 | /include/vulkan/CommandBufferPool.h | 2db0e2b43bd707d835014329e0e4bea47b358fdb | [
"BSD-2-Clause"
] | permissive | jpd002/Play--Framework | 4427b6709c819a4403f14dd41fd8f3131f5f8d48 | 2dadb6dfcbc855c08a6f0bdea90e0572ac4ee0b8 | refs/heads/master | 2023-08-31T11:40:41.713390 | 2023-08-27T00:35:45 | 2023-08-27T00:35:45 | 17,099,900 | 42 | 24 | NOASSERTION | 2022-05-19T12:48:40 | 2014-02-23T02:27:07 | C++ | UTF-8 | C++ | false | false | 842 | h | CommandBufferPool.h | #pragma once
#include "Types.h"
#include "Device.h"
namespace Framework
{
namespace Vulkan
{
class CCommandBufferPool
{
public:
CCommandBufferPool() = default;
CCommandBufferPool(CDevice&, uint32_t);
CCommandBufferPool(const CCommandBufferPool&) = delete;
CCommandBufferPool(CCommandBufferPool&&);
... |
16287234d7f714e4970a44617bc2eb7d62cd9398 | 39687a63b28378681f0309747edaaf4fb465c034 | /examples/04-fileIO_String/Mesh_io/include/DGAL/IO/polyhedron_io.h | 005583f1014ae2db89dd38649e60149ca6432a9f | [] | no_license | aldongqing/jjcao_code | 5a65ac654c306b96f0892eb20746b17276aa56e4 | 3b04108ed5c24f22899a31b0ee50ee177a841828 | refs/heads/master | 2021-01-18T11:35:25.515882 | 2015-10-29T01:52:33 | 2015-10-29T01:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,596 | h | polyhedron_io.h | // Copyright (c) 2007-2010 Dalian University of Technology (China).
// All rights reserved.
//
// This file is part of DGAL; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; version 2.1 of the License.
// See the file... |
3ffc04adecd267054a9c0db334f753d433e47982 | e9d3bd92027e63033929ab9dc97f38473f8ef0ef | /GTE/Graphics/DX11/DX11TextureRT.cpp | e8857e8fb2d79da840206d3fcb083b9e5aff7434 | [
"BSL-1.0"
] | permissive | cbullo/GeometricTools | 77107de654a012649d05ea248caefe581cc7fde4 | 53d82425c3d27a4301f7390754c7fc440734d53f | refs/heads/master | 2023-08-27T22:05:04.268917 | 2021-10-19T20:48:34 | 2021-10-19T20:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,005 | cpp | DX11TextureRT.cpp | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2020.04.13
#include <Graphics/DX11/GTGraphicsDX11PCH.h>
#i... |
f623c96374d74b15942990f349f05aeada402bee | 43090c1d6853f44ac67e650fccb7262609521e6e | /基础算法/查找/是否为二叉查找树后序遍历.cpp | b45cc40b44ed8c3bc6bb49325d7fa64066464529 | [] | no_license | jinhlov/algorithm | eca9082ed0285ea07a5094d163653fe4f122cd2e | 87f9c13d15a33133ba961ca04d24d08a2acf6699 | refs/heads/master | 2020-02-26T16:42:27.455586 | 2016-07-24T13:44:22 | 2016-07-24T13:44:22 | 56,509,309 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,012 | cpp | 是否为二叉查找树后序遍历.cpp | #include <iostream>
using namespace std;
bool PostSequenceOfBST(int a[], int length)
{
if (a == NULL || length <= 0) // 数组有效性验证
return false;
int root = a[length - 1]; // 根节点
int i = 0;
for (; i < length - 1; i++){ // 搜索左子树的节点
if (a[i] > root) // i为左子树长度
break;
}
int j = i; // 搜索右子树的节点
for (; j < length ... |
31b131f8b2e0ffb42d3db01cd52036b3c8b0e1b4 | 846dc1c9528327004e6959532f01976f60418a2c | /main.cpp | c89b0ee97b6e400de8f80560a10117bb751a5345 | [] | no_license | sebblonline/raspicam-daemon | cb3d1f69a001d64f7b2253eae5c2e9001463c47f | 7431cc7690274ff3b7a1932a06d0a126554cbd1f | refs/heads/master | 2022-09-20T09:06:34.155213 | 2019-09-05T18:51:04 | 2019-09-05T18:51:04 | 206,598,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | cpp | main.cpp | #include "Server.h"
//importing libraries
#include <iostream>
#include <boost/enable_shared_from_this.hpp>
#include <boost/optional.hpp>
#include <boost/utility/in_place_factory.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attribu... |
90e3d6d4bd249c87937304d3d6e38eb24af18248 | 49ade970a5a989535410874d795c4b002f908f5f | /GamesEngineeringII/ThomasWasAlone/Player.cpp | 83181622d90125838f7d0ff9b79023255a73ced9 | [] | no_license | StephenD-C00183891/Games-Engineering-II | f931d179ce15a41e9512a12ba6189bfb2bf65b78 | 4c872b4a3a8ea33159042bdce25eaf0a257156af | refs/heads/master | 2021-01-10T23:53:13.794718 | 2016-12-15T10:43:20 | 2016-12-15T10:43:20 | 70,792,254 | 0 | 0 | null | 2016-12-14T21:19:53 | 2016-10-13T09:45:12 | C | UTF-8 | C++ | false | false | 711 | cpp | Player.cpp | #include "stdafx.h"
#include "Player.h"
Player::Player()
{
}
Player::~Player()
{
}
void Player::Render(Renderer& r) {
r.drawWorldRect(rect, col);
}
void Player::Update(unsigned int deltaTime) {
}
void Player::onEvent(EventListener::Event evt)
{
}
void Player::MoveLeft(Size2D winSize)
{
if (rect.pos.x >= 0... |
c5bcca22fd77afc4f92bf9832c683b21b06d8fe2 | c9638fdd95c3ad24a8f7d28dc299db8d9925857f | /Model/Decorators/concatedDna.cpp | 7eafaf09da26689b248d1b029b45cba2c615f9f3 | [] | no_license | hodayamar/excellenteam-DNA-Analyzer | c60361f1b95435d22be191a809c6310178a8cf73 | eed46e37c144113cd125544313a2cb0c1aaf586a | refs/heads/master | 2020-04-21T13:11:58.087040 | 2019-01-14T21:38:59 | 2019-01-14T21:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | concatedDna.cpp | #include "concatedDna.h"
concatedDna::concatedDna(IDNAp first, IDNAp second, std::string name)
{
m_firstDna = first;
m_secondDna = second;
firstLen = first->getLength();
secondLen = second->getLength();
idSeq = autoInc++;
if(name.compare(""))
{
nameSeq = name;
}
else
... |
18da2567b38f7d6c70ad766ac451764e459f0587 | 7a4b71c6f779a8e32d9b5f00ec7a3d172fe4501c | /main.cpp | 9775dff9120773911b1341bab16d69f41a9dd8e2 | [] | no_license | kathog/vertx_tcp_seastar | f7ed56d49fa0f8dc04555048c1ca3ce114485b3a | b3fba98a31a74ab3169e5c7342b20e1838129e6c | refs/heads/master | 2023-03-26T13:20:38.588138 | 2020-04-22T06:35:15 | 2020-04-22T06:35:15 | 352,278,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,582 | cpp | main.cpp | #include <iostream>
#include <boost/program_options.hpp>
#include <seastar/core/reactor.hh>
#include <seastar/core/app-template.hh>
#include <seastar/core/distributed.hh>
#include <tcp/tcp_server.h>
#include <vertx/hazelcast_cluster.h>
#include <vertx/clustered_message.h>
#include <future>
#include <thread>
#include <m... |
43b9c0af8888de4fc79205ca4031b3430a63b8a5 | 4cedfda65a73a2a98bfc49a2ce09bfec901cccc3 | /modules/footstone/src/platform/adr/looper_driver.cc | 22ea02c9daa138d0e0c672ef8958062b060b83c0 | [
"MIT",
"Apache-2.0"
] | permissive | Tencent/Hippy | f71695fb4488ee3df273524593301d7c241e0177 | 8560a25750e40f8fb51a8abfa44aad0392ebb209 | refs/heads/main | 2023-09-03T22:24:38.429469 | 2023-09-01T04:16:16 | 2023-09-01T06:22:14 | 221,822,577 | 8,300 | 1,161 | Apache-2.0 | 2023-09-14T11:22:44 | 2019-11-15T01:55:31 | Java | UTF-8 | C++ | false | false | 2,907 | cc | looper_driver.cc | /*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2022 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.
* Yo... |
1603f82e9a3a58f2a7e82a90bce58a7e0e90f882 | 55d4ce29ce534437fc1cfbe6813fb8cd4d2da627 | /src/common/engine/engine_resources.hpp | baf3168d74c3aae3a88bb006b3c8b4f4a3056b7c | [] | no_license | legendma/sojourn | 21ad15bb52d24abcafcd5e172d48217d0e1444af | 19dba294be71bcf3652db8d8021ffb54fb8c8655 | refs/heads/master | 2022-12-11T07:27:24.454915 | 2022-12-04T13:55:19 | 2022-12-04T13:55:19 | 140,258,654 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,665 | hpp | engine_resources.hpp | #pragma once
namespace Engine
{
class Resources;
class ResourceFolder;
/* registry base path */
static const wchar_t *BASE_REGISTRY_PATH = L"SOFTWARE\\WOW6432Node\\Umbrellas Required\\Sojourn\\Main\\";
class ResourceFile
{
friend class ResourceFolder;
public:
~ResourceFile... |
91142ebecd7cdc6d59d71b68e3516b766117aa46 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc037/D/769193.cpp | 879fec9c4910dac4896b27d59de7f43631a3695e | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 984 | cpp | 769193.cpp | #include <iostream>
int H, W;
int a[1010][1010];
int done[1010][1010];
int memo[1010][1010];
int dh[] = {-1, 1, 0, 0};
int dw[] = {0, 0, -1, 1};
int solve(int h, int w) {
if (done[h][w] == 0) {
done[h][w] = 1;
for (int i = 0; i < 4; ++i) {
int hh = h + dh[i];
int ww = w + dw[i];
... |
01dc69bdc3348319de5ba4a9d9f4a8211b37e9a6 | 4426844e32dbcdb0cfd0b8e403d8ec1fd1bfe972 | /Hotel.cpp | 6386716e7b6e6e61298c0a3e2b602e8672261742 | [
"MIT"
] | permissive | busebd12/Hotel_Reservation_System | 6455b47a8012aac80c2e2914cc1afb39da88c54d | eaecb7abb2692679461586cf0d9cdf4ea1dd99fa | refs/heads/master | 2021-01-10T12:58:11.144606 | 2017-03-14T01:48:25 | 2017-03-14T01:48:25 | 43,709,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48,305 | cpp | Hotel.cpp | #include "Hotel.h"
using namespace std;
Hotel::Hotel(const string Name):name(Name) {}
Hotel::Hotel() {}
void Hotel::fill()
{
createSingleRooms();
createDoubleRooms();
createQueenRooms();
createKingRooms();
createSuiteRooms();
}
void Hotel::createSingleRooms()
{
int x;
for(x=0;x<40;++x)
{
singleRooms.empla... |
e2492551ede976d3069044adde9365f67317d072 | e970d084831a6f7d265006ccbfe22d03742e44e7 | /agent/src/perf/sigar/CpuUsage.cpp | 22cc6037fc1d707761a7fcfbcbe5c479195d695b | [] | no_license | xsxusheng/agent | c7bc94fab8f0cabb3c2a29a86d1298b37187e6cb | db30e0faa90fb5c1d9289b31ffe10f677de59a70 | refs/heads/master | 2021-01-25T10:55:48.717816 | 2018-04-24T02:19:04 | 2018-04-24T02:19:04 | 123,375,450 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,537 | cpp | CpuUsage.cpp | /**********************************************************
* File: CpuUsage.cpp
* Function: Sigar适配
*********************************************************/
#include "CpuUsage.h"
#include "MacroDefine.h"
#include "sv_log.h"
#include "TimeUtils.h"
#include "SigarAdapt.h"
#if 0
#endif
... |
49a2832e79c15b55cdc75586eab77f7b23ed90bd | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Graphs/1088.cpp | da3209f00ab98ca5395a14e60d9f96a170f328ad | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 437 | cpp | 1088.cpp | #include<stdio.h>
int main()
{
int n,t,i,j;
scanf("%d%d",&n,&t);
int a[n-1];
for(i=0;i<n-1;i++)
scanf("%d",&a[i]);
for(i=1,j=1;i<=n;i=a[i-1]+j)
{
j=i;
if(i>t)
{
printf("NO\n");
break;
}
else i... |
8d4db9a4ee0042bacc9231c1afe959bc31a21b2e | 402e2a29c4387cb85eee1a4823ed5e88fd3af076 | /Appointment System/include/Lecturer.h | e35074e187167c3966eb269510e968622360417a | [] | no_license | OluwaseunOjeleye/School-Projects | 852f334fcd8eee8aa839eeeb2b584c0def6d1827 | 1a79e059c302a6465208461ad2e09790c6f4107b | refs/heads/master | 2020-07-30T02:51:44.682658 | 2020-07-14T16:44:57 | 2020-07-14T16:44:57 | 210,061,738 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,358 | h | Lecturer.h | /****************************Lecturer***************************************/
#ifndef LECTURER_H_
#define LECTURER_H_
#include "Person.h"
#include "Date_n_Time.h"
#include "Appointment.h"
#include <string>
#include <vector>
class Lecturer:public Person{
public:
Lecturer();
Lecturer(const std::string Name, const ... |
5cccbe4d0f574ea5c67ab11ed1202b551ea6eb86 | ef4b34c962d47e76dd12194b96318cb8cf21d8c8 | /SimpleNeuralNetwork/Neuron.cpp | 87027eeba60a44c48bf8be4194032b73924c1020 | [] | no_license | bekor/NeuralNetworkLearning | cbd628e261b61c1eafad98348b76401a76fe0279 | bdfde1cece4cb342e7799bf8a2c46c3e0fdc3ff4 | refs/heads/master | 2020-04-29T18:53:26.334920 | 2019-12-06T19:55:46 | 2019-12-06T19:55:46 | 176,337,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | Neuron.cpp | #include "Neuron.h"
Neuron::Neuron(double _bias, std::vector<double> _weights)
: bias(_bias), weights(_weights)
{
linearActivation = 0.0;
activation = 0.0;
linearGradient = 0.0;
}
void Neuron::InitNeuron(double _bias, std::vector<double> _weights)
{
//TODO: init every property
}
double Neuron::CalculateForwa... |
affc33d380cf4dd430f82e0fdba7d59116a80423 | 1f7503bc62f2f30d1a4a6e4d76e88e2f5cc16089 | /attractclass.cpp | 7f88d16d731c226a36e60b7804759d5076f2e135 | [] | no_license | CheolgyuJo/untitled | e3b035ca5fa17a5044127b24b3a0f61aeb2eaaba | 55e08c766e650b68739ef31642641fa8ae114e84 | refs/heads/master | 2021-01-03T00:41:42.972518 | 2020-02-11T19:02:09 | 2020-02-11T19:02:09 | 239,841,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | cpp | attractclass.cpp | //
// Created by jo0707 on 2/3/2020.
//
#include "attractclass.h"
|
5f85f593dac5d38f7c5526578710410b30f3a5e8 | 105015b7def3fa7a77db1f3309c405cc83ae15d3 | /Exam1/ECE141_HCamacho_Exam1/edgeWeightedGraph.h | e7e5fba41af3d6443d4f24bfe57ee0e6136921db | [] | no_license | Hannsel101/ECE141L-Computational-Algorithms-Lab | e70dda6f4f304f5995afa19e546d0b2d5a390e11 | 0a2a2069861d5f0cfcf25d972d91cd7f39aa4700 | refs/heads/main | 2023-03-17T11:34:03.149312 | 2021-03-24T11:35:20 | 2021-03-24T11:35:20 | 333,512,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | h | edgeWeightedGraph.h | #pragma once
#include "Edge.h"
#include <vector>
class EdgeWeightedGraph
{
private:
int V;
int E;
vector<Edge>* adj;
public:
EdgeWeightedGraph(int V)
{
this->V = V;
this->E = 0;
adj = new vector<Edge>[V];
}
EdgeWeightedGraph(string in)
{
fstream inFile(in);
// Exit program is the fi... |
6d1c7f8e6a1fb72aa3cce6db537c82961345a8fb | 04946d1cad5503db57b2aa4e881495931dd18f10 | /src/tf/read_tf.cpp | ad84f5319299ab6dad48235bcd79c21bd6ee997a | [
"MIT"
] | permissive | krishnateja95/AMDMIGraphX | 54f508f7bbf3252949a7273366353ef39dcec165 | 15eb19873328fca07e8139c9e44dd088438981f8 | refs/heads/master | 2022-02-12T18:29:54.453110 | 2019-06-21T22:55:02 | 2019-06-21T22:55:02 | 198,292,505 | 0 | 0 | NOASSERTION | 2019-07-22T19:51:55 | 2019-07-22T19:51:55 | null | UTF-8 | C++ | false | false | 386 | cpp | read_tf.cpp | #include <migraphx/tf.hpp>
int main(int argc, char const* argv[])
{
if(argc > 1)
{
bool is_nhwc = true;
if(argc > 2)
{
if(strcmp(argv[2], "nchw") == 0)
is_nhwc = false;
}
std::string file = argv[1];
auto prog = migraphx::parse_t... |
3d77b24a4d91838f890d0b1a4f052290dac07a8d | 516dd9cb40b06b0e5c857e5e1db049e6566ca1ca | /boost/config/platform/win32.hpp | 1c7ac59e2943d05b18c94985da911f47cb2885ce | [
"LicenseRef-scancode-boost-original"
] | permissive | ryanofsky/bufferman | 300bd32737601a238f2306824d8c9d0a517be156 | cd0d7d74597465aab29e7164d714d6b86e26b83f | refs/heads/master | 2020-09-21T11:54:46.967253 | 2006-03-08T21:43:33 | 2006-03-08T21:43:33 | 66,043,034 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | hpp | win32.hpp | // (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// See http:... |
7437d4312d9c5d700e60799df681c8060aa396b7 | 2bc8e0c699961441fcc45903e4f202e4f0433a98 | /shared/afmmstarvdt/include/fmm.h | a3c19c96e5dad91ea6214d733c0486bf4798d892 | [] | no_license | rmast/Skeleton-corner-detection | 7c9798c89ec2603a5ae8633e0aea57ae3bac1ff5 | 657a99e66d417794c249c5c2db129167e45f009d | refs/heads/master | 2023-03-18T12:41:12.842408 | 2021-03-09T18:51:34 | 2021-03-09T18:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,928 | h | fmm.h | #ifndef FMM_H
#define FMM_H
#include "genrl.h"
#include "darray.h"
#include "field.h"
#include <map>
class FastMarchingMethod
{
public:
typedef FIELD<std::multimap<float,Coord>::iterator> POINTERS;
FastMarchingMethod(FIELD<float>*,FLAGS*); //Ctor
virtual ~FastMarchingMethod(); //Dtor
virt... |
95202caab0cffbbe66e6668ff2cb39a59c6a880b | ce161c98d5b1a69fd12b7af691709a76da55b44d | /codeforces/School_Personal_Contest_#1_(Winter_Computer_School_2010/11)-Codeforces_Beta_Round_#38_(ACM-ICPC_Rules)/B_Chess.cpp | 92810455afd7f580944b2f8e9819db3b162de137 | [] | no_license | cup2of2tea/CompetitiveProgramming | cb45d40ff0c27e2b9891eb135e4e5ef795014989 | eaa9bfac351c0eb909c7686534fe647c31eaac65 | refs/heads/master | 2020-09-02T07:21:18.722266 | 2019-11-02T14:30:57 | 2019-11-02T14:30:57 | 219,165,630 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 862 | cpp | B_Chess.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<string> board(8);
for(int c=0;c<8;c++)
board[c]="........";
string s[2];
cin>>s[0]>>s[1];
s[0][1]--;
s[1][1]--;
for(int c=0;c<2;c++)
board[s[c][0]-'a'][s[c][1]-'0']='X';
... |
f7648281daac43ea31d785afb73507d73ce5a7ec | c1d8cefebd8f85fe9a70ae18d6726e8e42a6fe3a | /07_学习笔记/HPLSP/手抄代码/chatclient166.cpp | 96717f22401b6f781cd88c48196bea0a0d5836a2 | [] | no_license | leomaokai/MyCpp | 7df0b4097561774c9050e9eed27134202b011c3a | e81b0ba50c7de046ee63af47accd2897b5e289ee | refs/heads/master | 2023-02-19T11:14:58.697566 | 2021-01-22T16:50:13 | 2021-01-22T16:50:13 | 289,039,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | cpp | chatclient166.cpp | #define _GNU_SOURCE 1
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<assert.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<stdlib.h>
#include<poll.h>
#include<fcntl.h>
#define BUFFER_SIZE 64
int main(int argc,char* argv[])
{
if(argc<=2)
{
pr... |
be0510d3ab0fcd1976f6961324f78a58a25d0d5d | ad1d1e72e37ffa6fc8ae857029b14d03c26ec413 | /src/common/mutex.cc | d7b9a6e3efb35de9b72abad3bd192185efa3959a | [
"Apache-2.0"
] | permissive | joopdo/googlesitemapgenerator | b018363f4058f75ef60e82a3a67a322d704b7393 | bab57d8f9284ec67a21ff0b346115cc0bce81d94 | refs/heads/master | 2022-11-06T05:40:37.691597 | 2020-06-30T06:22:33 | 2020-06-30T06:22:33 | 52,272,577 | 0 | 0 | Apache-2.0 | 2020-06-30T06:33:36 | 2016-02-22T12:40:41 | C++ | UTF-8 | C++ | false | false | 4,253 | cc | mutex.cc | // Copyright 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
01e491c5e1003a2b9738ab481ccdf4e666153f62 | 4b479cec6c71b9ad47d36c02a13ab50fad2d246e | /businterface48.h | 5b024446363e14f374f64ca0377f4b3a12c8f951 | [] | no_license | Nargisgod/Proect | a41b798d393020299fb60c2b5c039a3b1b9e3d76 | 1faa82557c33a7ba6ee95908713cf450bbfac861 | refs/heads/master | 2023-06-04T03:52:32.159789 | 2021-06-24T11:47:35 | 2021-06-24T11:47:35 | 379,679,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | h | businterface48.h | #ifndef BUSINTERFACE48_H
#define BUSINTERFACE48_H
#include "businterface.h"
class BusInterface48 : public BusInterface
{
Q_OBJECT
public:
BusInterface48();
virtual uint8_t mem_read8(uint32_t addr);
virtual void mem_write8(uint32_t addr, uint8_t value);
virtual uint8_t io_read8(uint32_t addr);
... |
416ced2a9e27bbba9b38d0f647fb43cde11fdc23 | dfa753dd76fa8e40f3fdae3d2893f16986460611 | /main.cpp | c0265a1ffe38d80acc8603d534ee432971ccac8e | [] | no_license | frstrtr/blockchain21 | 3fcbb992450084cebe8cb105ecdfe8d0dfae1bf0 | 6fcfba7726a468639cee8acabf4453939dccffa7 | refs/heads/master | 2021-10-07T07:35:11.483791 | 2018-12-03T19:57:24 | 2018-12-03T19:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,740 | cpp | main.cpp | #include "BlockChain.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <float.h>
#include <math.h>
#include <time.h>
#include "RIPEMD160.h"
#include "PublicKeyDatabase.h"
#ifdef WIN32
#include <conio.h>
#endif
#ifdef _MSC_VER
#pragma warning(disable:4996 4702 4505 4456)
#endif
int main(int ar... |
2f0a69545c436518ff55955cca0ca7f9d66b8f16 | 18887c97e2680cd1d175eed1d01952b405f62b12 | /okinawa_demo/marker_kvm.hpp | fe320b71092322546b3479dddefa4359cc19756e | [] | no_license | AkiraSuu/sdn_cloud___programing_contest_2014 | f4de4bff7e46b5438d710d6f39a20163eeacf18f | 99a4f210f6ba4421538102296f73357104861fc9 | refs/heads/master | 2020-06-04T08:34:32.582856 | 2015-04-15T01:05:00 | 2015-04-15T01:05:00 | 33,964,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | hpp | marker_kvm.hpp | /*
* marker_kvm.hpp
*/
#ifndef __MARKER_KVM_HPP__
#define __MARKER_KVM_HPP__
#include <vector>
using namespace std;
#include <GL/glut.h>
#include <FTGL/ftgl.h>
#include "artkglut_marker.hpp"
#include "vm.hpp"
class Marker_KVM : public ARTKGLUT_Marker
{
public:
Marker_KVM();
~Marker_KVM();
int draw();
int pro... |
4f0141fcb5aa9fbd87c16cc9acbf6447047587a2 | d6271ab44c4e17aae7a63d3de84711b92b0e3269 | /src/drivers/platform/spec/arndale/pmu.h | fe2fcad9d05894a6d476a556acd3584dc1461297 | [
"MIT"
] | permissive | throwException/genode-world | 1b9873d4d2abca4b48d8a111c8572d9ac7121437 | 2a947864592bff84acf39f341463b00761852808 | refs/heads/master | 2023-01-06T21:11:42.386892 | 2020-11-12T10:15:08 | 2020-11-12T10:18:20 | 299,933,376 | 0 | 0 | NOASSERTION | 2020-09-30T13:46:17 | 2020-09-30T13:46:16 | null | UTF-8 | C++ | false | false | 6,491 | h | pmu.h | /*
* \brief Regulator driver for power management unit of Exynos5250 SoC
* \author Stefan Kalkowski <stefan.kalkowski@genode-labs.com>
* \date 2013-06-18
*/
/*
* Copyright (C) 2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero Gen... |
f6f08507273256ee8a6a4e59469ee18fa3f6b49e | b45038644f088c183a2f4cedc235ce5a62079696 | /Autoware/computing/planning/motion/packages/waypoint_maker/nodes/waypoint_marker_publisher/waypoint_marker_publisher.cpp | 94237405c975e7ff86efca5dee0be149c388a6c3 | [] | no_license | trigrass2/wheelcahir_ros | d249b850e46dba349884e457660c9ab77b10a1d7 | 15b5deab1f3e6e243396ed5b172704e88823f628 | refs/heads/master | 2020-12-30T17:11:59.833670 | 2016-03-10T15:26:28 | 2016-03-10T15:26:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,174 | cpp | waypoint_marker_publisher.cpp | /*
* Copyright (c) 2015, Nagoya University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list ... |
ca4d3698bc3448e76d5faaffbf234209e2156b42 | 9bc24fa2c325b5cb8c6ec6b3515e051a631956b7 | /Mishka703A.cpp | 56c2c42d16f45863b34cc3b1ebff1ac670e2119e | [] | no_license | syedsiddhiqq/Competitive_programming | 5cdca1594fdc1dc78bccc6149e3ab327b57aadeb | c55fa87b8f4803d9f25ed2b028ad482501570697 | refs/heads/master | 2020-04-22T09:08:08.155827 | 2019-02-12T06:08:05 | 2019-02-12T06:08:05 | 170,261,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | Mishka703A.cpp | /*
* @Author: SyedAli
* @Date: 2019-01-04 17:51:32
* @Last Modified by: SyedAli
* @Last Modified time: 2019-01-04 17:55:23
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,p1,p2,miskha=0,chris=0;
scanf("%d\n",&n);
for(int i=0;i<n;i++){
scanf("%d %d",&p1,&p2);
if(p1>p2) miskha++;
else if(p... |
a04ae7a5241972507fa4362d4dd25ecb631472b7 | c1f94a611d8a66bc473020b629ac9792b97e82c4 | /2010.11.Largest.Subtree.Which.is.a.Binary.Search.Tree.cpp | 4284bbc8d2cca3e493c81119098486fd3a235b75 | [] | no_license | romie88/leetcode.com | 18aca77439d63be6d95ce74d13d35a3d83953535 | 8f09a8ac4f247efeb5f03ea96937558e47fca444 | refs/heads/master | 2021-01-13T01:30:24.067182 | 2015-03-18T05:33:22 | 2015-03-18T05:33:22 | 28,523,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,154 | cpp | 2010.11.Largest.Subtree.Which.is.a.Binary.Search.Tree.cpp | /**
* http://leetcode.com/2010/11/largest-binary-search-tree-bst-in.html
* Largest Subtree Which is a Binary Search Tree (BST)
*
* November 18, 2010 by binary tree
*
* Given a binary tree, find the largest subtree which is a Binary Search Tree
* (BST), where largest means subtree with largest number of nodes in ... |
d9099bee1ff29371fd9bda14daaa4229274198d8 | 336b2b7b1014ff48a4dcb69dce018f6cd42fc190 | /95. Unique Binary Search Trees II/recursive.cpp | e94253010155e2373e38162533f5fc49fd9ad848 | [] | no_license | Mervyn-Jian/LeetcodePractice | 825a68a4239f72196a54204e8b4baf9f8630b10b | ba24be23cd8436c924cf4c0ffbffb36f2652728d | refs/heads/master | 2020-07-01T00:19:29.171554 | 2019-09-02T15:26:29 | 2019-09-02T15:26:29 | 200,993,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,427 | cpp | recursive.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<TreeNode*> generateTrees(int n) {
vector<TreeNode*> bstTrees;
if(n>0) bs... |
bb83a79ef18a647badb6dc28fecfc10f67579681 | 22eb20dfa5bf05630d398829e72d971f7fad38ac | /Factory1/factoryb.h | 5b6c03c65d1d763be5d0b3cda2cf19846f42a9d6 | [] | no_license | zhoajianjun/QT | 634e984f365679e21047f59817ee5f46ca9d25c9 | 32e9362b088ffb150fe2fda036d8472edb4a1346 | refs/heads/master | 2016-09-12T21:05:12.316379 | 2016-04-25T06:40:06 | 2016-04-25T06:40:06 | 56,022,827 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | h | factoryb.h | #ifndef FACTORYB_H
#define FACTORYB_H
class CoreFactory;
class SingleCore;
class MultiCore;
class FactoryB : public CoreFactory
{
public:
FactoryB();
SingleCore* CreateSingleCore() ;
MultiCore* CreateMultiCore() ;
};
#endif // FACTORYB_H
|
5f928630f9b1491ea291006fb14e5cc01bd70032 | f93b8e84ab21bc5bbdf063c950d8941d23f57a4d | /LightningF/Utils/QT/CXX/Light.hh | 0c538400d7620f2043b013fdf28919d9b4ede312 | [
"MIT"
] | permissive | marianogabitto/Lightning | 8ba7221bdf92f7a7f00f0e67ad17c3cfe0de8f53 | f78c055eef39e4ab432b1caf33ee23b2f1ebdfb3 | refs/heads/main | 2023-02-12T04:29:53.072055 | 2021-01-11T15:52:34 | 2021-01-11T15:52:34 | 328,238,120 | 1 | 1 | MIT | 2021-01-11T15:52:35 | 2021-01-09T20:13:56 | C++ | UTF-8 | C++ | false | false | 27,876 | hh | Light.hh | #ifndef __LIGHT_HH
#define __LIGHT_HH
#include "Point.hh"
#include "Center.hh"
//#include "QTree.hh"
#include "KDTree.hh"
#include <vector>
#include <iostream>
#include <fstream>
#include <omp.h>
#include "CounterIntEvent.hh"
#include <cmath>
#include <limits>
#include <iomanip>
struct TimeInfo
{
double acc_0;
... |
10e383adcae080591c3d3ca2a0cc6e76cf5d9a95 | 25d877afffff29ed7aad1010bfacb9382c7f5d3f | /src/zros_cpp/impl/publisher_impl.cc | 47a16c741954d763bda7614fce2e37cf9e542fa1 | [] | no_license | echopairs/zros | ce5647688f10bec7372e062b1c2b07cbc2b55931 | 0876c3e893022e26664fd5178e92e8eb93a58338 | refs/heads/master | 2021-09-20T05:41:51.831339 | 2018-08-04T15:09:07 | 2018-08-04T15:09:07 | 71,778,445 | 1 | 0 | null | 2018-08-02T11:14:15 | 2016-10-24T10:34:21 | C++ | UTF-8 | C++ | false | false | 2,248 | cc | publisher_impl.cc | //
// Created by pairs on 7/25/18.
//
#include <sspdlog/sspdlog.h>
#include "publisher_impl.h"
#include "zeromq_help.h"
namespace zros {
ZmqPubStub::ZmqPubStub(const std::string& topic):PubStub(topic) {
context_ = std::make_shared<zmq::context_t>(1);
pub_stub_ = std::make_shared<zmq::socket_t>(*c... |
9a089b1591e59cffb6e01f6ab0cfbf84720d8888 | 305597d826181899c5f1571078be71fee976db13 | /button_game.cpp | 1820c7a4cd00385dd6618f2d41262a5143c99b1c | [] | no_license | HoangHoi/game | 77bf73b95e6d0f8f469f6a1a647bea9ec04cbe61 | 833e77e7039976306d42da3628a8a149ed3bffc7 | refs/heads/master | 2020-04-10T12:15:01.147699 | 2018-12-09T15:57:08 | 2018-12-09T15:57:08 | 161,016,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | button_game.cpp | #include "button_game.h"
/**
* constructor
*/
ButtonGame::ButtonGame()
{
// EEPROM.begin(EEPROM_SIZE);
}
/**
* destructor
*/
ButtonGame::~ButtonGame()
{
}
void ButtonGame::init()
{
pinMode(BUTTON_PIN, INPUT);
}
ButtonGame buttonGame;
|
12aa3bade952c9218fdec6feeb8b701e8a566b43 | f6f178a322aecc5a63ce76cb7b592882b52d0b14 | /utils/LevDistance.cc | 9b9e6bb6d22a9cbdf2f799b085723a77a5d4d33b | [] | no_license | PRHLT/WordGraph2Index | 02f93a303bf8e36476922bac2abae8df7a4b24f9 | 53167df029702b3c202ed3ce6db2a633d1650d35 | refs/heads/master | 2020-03-08T14:53:24.335738 | 2018-04-05T16:33:37 | 2018-04-05T16:33:37 | 128,197,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cc | LevDistance.cc | #include "LevDistance.h"
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
/****************************************/
/*Implementation of Levenshtein distance*/
/****************************************/
/* Gets the minimum of three values */
int minimum(int a, int b, int c)
{
int min=a;
if(b < min) min... |
6f89467096f7e7e499388549687fb0e87699b6ff | d61ab880f13d5e954fad8b2b83214fe1a81de73e | /B1049.cpp | ef704f955d95b2c9fa198eea2557f9373050142b | [] | no_license | Serrini/PAT_BasicLevel | f468d4c1cfa9bbc2494803e657ac0a5ed2bc83b8 | a6a92c4e8d9438e35f98bd3bffabb6ac74950248 | refs/heads/master | 2020-04-13T04:02:33.910650 | 2018-12-24T04:37:42 | 2018-12-24T04:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | B1049.cpp | #include <stdio.h>
int main()
{
int N;
scanf("%d", &N);
double temp;
double sum = 0.0;
for(int i = 0; i < N; i++)
{
scanf("%lf", &temp);
sum += (double)(i+1) * (double)(N-i) * temp;
}
printf("%.2lf\n", sum);
return 0;
}
|
549c89f1f47586fa49022dfeabe6f13505da7079 | 691fd4ae3bb605dbe467d0336aa5d5a4f1f4d573 | /src/main.cpp | 13fe43ed94ac1937335f16bc17760b011b612c51 | [] | no_license | future-xy/Data_Structure_project2 | 6672610b8e68207cb9b0c217ff16750f8b5062f6 | 8d9f48b621828dcbdaa08e8663bc67695546d068 | refs/heads/master | 2021-06-09T02:19:11.772517 | 2021-05-16T06:53:23 | 2021-05-16T06:53:23 | 151,533,196 | 0 | 2 | null | 2018-10-12T00:56:09 | 2018-10-04T07:17:33 | C++ | UTF-8 | C++ | false | false | 7,094 | cpp | main.cpp | #include<iostream>
#include<fstream>
#include<tuple>
#include<string>
#include<cmath>
#include<ctime>
#include<cstdlib>
#include"Airport.h"
#ifdef __linux__
#define CLEAR "clear"
#elif _WIN32
#define CLEAR "cls"
#endif
using std::ofstream;
using std::tuple;
using std::string;
using std::vector;
using std::to_string... |
0997a3faaa1e7c84f7c0b33044c8ac0de64e9068 | 8e3e4a8aa16934a32ad6882225cbae405ae511f5 | /synth_02/29_display_util.ino | 3f93e08d533d700b3d43b21fe016fea2454ea78c | [] | no_license | apiel/sequencer | da5db792ef0ae796f9dbefbfbad362222c3712e0 | 8eac658bdc17ecf2ff9f8b9a5ce44845c2e81a9c | refs/heads/main | 2023-03-19T23:35:37.046268 | 2021-03-10T17:27:45 | 2021-03-10T17:27:45 | 326,249,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | ino | 29_display_util.ino | char buf[SCREEN_W];
void dprintxyAbs(byte x, byte y, const char *str, ...) {
display.setCursor(x, y);
va_list argptr;
va_start(argptr, str);
vsnprintf(buf, SCREEN_W, str, argptr);
va_end(argptr);
display.print(buf);
}
void dprintxy(byte x, byte y, const char *str, ...) {
display.setCursor(... |
63b98261a3bc9f9fb1c3ae7c29f4e085feee5fa9 | be43ce1294caa13c7d5e85549d4d1a27f7ff903f | /datastructure/tree/tree_traverse.cpp | 92f265aa14b0bd04a286c0b9e603acc562e0113d | [
"Apache-2.0"
] | permissive | sdpan/cppinterview | 430f75059d041799ce9c6065dd5dea7751ad2c0a | 1a475a7e9fde3cb2c23a329c962f98c8ced3c1c7 | refs/heads/master | 2023-08-30T20:06:55.157471 | 2019-01-03T04:43:56 | 2019-01-03T04:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | tree_traverse.cpp | #include <iostream>
#include <string>
#include <queue>
using namespace std;
template <typename T>
struct Node {
T data;
Node<T> * left;
Node<T> * right;
Node(T x):data(x) {}
};
using NodeInt = Node<int>;
using NodeIntPtr = NodeInt *;
void bfs(const NodeIntPtr root)
{
queue<NodeIntPtr> Q;
Q.p... |
d4c0e519d728e40d7ddd0eee2b4f2eb8dcbf3214 | 34897bb3fc75fc074f00bc2df2f3abc2045df051 | /IRsendDemo/IRsendDemo.ino | c1f960f86fbfab754fa7a4b12fda07d49359274b | [] | no_license | absh17797/Arduino-Practice-Samples | 512b0eb45c1b435583ca9b40f449b06af94b4c3b | 273f44995ca3a9bcb205f1fb05ab6ff8431a1da5 | refs/heads/master | 2020-06-13T10:05:16.105391 | 2019-07-08T09:05:04 | 2019-07-08T09:05:04 | 194,621,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | ino | IRsendDemo.ino | /*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
void setup()
{
Serial.begin(9600);
}
void loop() {
... |
88a47610d68f4e7502e2840971d92dd7cd8971c3 | 0d653408de7c08f1bef4dfba5c43431897097a4a | /cmajor/system-x/object/Archive.cpp | 61fbfd82428972fa769ce735d9f2fd90f154cf49 | [] | no_license | slaakko/cmajorm | 948268634b8dd3e00f86a5b5415bee894867b17c | 1f123fc367d14d3ef793eefab56ad98849ee0f25 | refs/heads/master | 2023-08-31T14:05:46.897333 | 2023-08-11T11:40:44 | 2023-08-11T11:40:44 | 166,633,055 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | Archive.cpp | // =================================
// Copyright (c) 2022 Seppo Laakko
// Distributed under the MIT license
// =================================
#include <system-x/object/Archive.hpp>
#include <system-x/object/BinaryFile.hpp>
#include <soulng/util/Log.hpp>
#include <boost/filesystem.hpp>
namespace cmsx::object {
us... |
269ab4f5d0a7b2bfbccd78c881a4778163821bb9 | ffa9f086644709d274defcd1cc835f997af322c1 | /sort/get_kth_num.cpp | e436e68dea9d2aacd0ebd4bd06782cee3022c012 | [] | no_license | gayhub-wpp/leecode-jz_offer | 8d6f9e85a30d51116bb9512e09f1bc0651a0d375 | 855310619920539c5c20eb277cfc23891c60029e | refs/heads/main | 2023-05-14T11:10:37.431523 | 2021-06-10T08:53:14 | 2021-06-10T08:53:14 | 341,374,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | get_kth_num.cpp | #include <vector>
#include <iostream>
#include <algorithm>
using std::cout;
using std::endl;
using std::vector;
int partition(vector<int> &nums, int l, int r){
int pivot = nums[l];
while (l<r)
{
while (l < r && nums[r] >= pivot)
{
r--;
}
nums[l] = nums[r];
... |
3b0585bc72029466bee17273e362c2c9112f9f70 | 95570ae3de9febfe81989751982f6a6eafe080ff | /Tests/GUI/Calendar/calendar.cpp | edf4e68788bf5531b39d99b366d2977cd13f6f17 | [
"Zlib"
] | permissive | kyelin/ClanLib | a552f224c2007598a1ab8acaf4e2caa967908851 | 2558aba725e6866a81d50b13178cbd5c60ab6edc | refs/heads/master | 2021-01-24T21:36:07.499397 | 2014-11-18T02:09:39 | 2014-11-18T02:09:39 | 19,273,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,892 | cpp | calendar.cpp |
#include <ClanLib/core.h>
#include <ClanLib/gui.h>
#include <ClanLib/Display/Window/keys.h>
#include <map>
#include <ClanLib/csslayout.h>
#include "calendar.h"
class CalendarComponent_Impl
{
public:
CalendarComponent_Impl() : component(0), has_mouse_over(false), selection_valid(false), hot_xy_index(-1,-1)
{
d... |
c1eb9506753bcd953fd7ad6f96fced811bb3a39e | e10f35fe28878455372be47935c9012ea19147c3 | /lab3/modelloader.h | 0464d2fba5cdf5eedf1d2b606fe6ffca7909c554 | [] | no_license | Inlucker/OOP | 5ce52ad66f77b0b41097ae2693efa81492a9e297 | 02d05b94f0bdf5b8702b8990682c48db25f51a3a | refs/heads/main | 2023-07-07T14:27:11.276612 | 2021-08-16T10:53:46 | 2021-08-16T10:53:46 | 348,507,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | modelloader.h | #ifndef MODELLOADER_H
#define MODELLOADER_H
#include "basemodelloader.h"
//class Model;
//#include "fileloader.h"
class ModelLoader : public BaseModelLoader
{
public:
ModelLoader();
virtual ~ModelLoader() = default;
shared_ptr<Model> loadModel(string fileName) override;
};
#endif // MODELLOADER_H
|
23545b50e8946de29a8f729e6edb2ec588830b29 | 9c3a2657be19bfe94cfa96eda1eaf4366581d004 | /nes_py/laines/include/cpu.hpp | f67cc797c4422f0ab5b31d91f457f9e14d56ed6f | [
"BSD-2-Clause"
] | permissive | oxenoxeno/nes-py | 51cd228ceb31335e4fb3d44e185b91b0df65c6f2 | 57ce368cc35758c8f451a7cff59ccdec838eec79 | refs/heads/master | 2020-04-09T08:40:09.581526 | 2018-10-14T05:11:32 | 2018-10-14T05:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,863 | hpp | cpu.hpp | #pragma once
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "common.hpp"
#include "joypad.hpp"
#include "cartridge.hpp"
/* Processor flags */
enum Flag {C, Z, I, D, V, N};
/// a class to contain flag register data
class Flags {
// a private data structure to hold the flags
bool f[6];
publi... |
d6634edae3c21ed29ed19c0a071bdad408aea0eb | d067b7954a3ec4bd92d4542e65ef8259d63b47a4 | /.svn/pristine/d6/d6634edae3c21ed29ed19c0a071bdad408aea0eb.svn-base | 326d46ead3b6b3d91e78a99f8333e01f31c070ee | [] | no_license | fact-project/mars_pulse_truth | b767f781cceb782ae014e5eba54ace4846dc4b50 | c0db9cce9fbb2f866b69f53d7820dea65d96aa4f | refs/heads/master | 2020-06-17T20:10:10.343838 | 2016-11-29T17:04:58 | 2016-11-29T17:04:58 | 74,973,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,396 | d6634edae3c21ed29ed19c0a071bdad408aea0eb.svn-base | /* ======================================================================== *\
!
! *
! * This file is part of MARS, the MAGIC Analysis and Reconstruction
! * Software. It is distributed to you in the hope that it can be a useful
! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
! * It is distrib... | |
cac777c6c4aae4a561bd18510e0d6934d6c13965 | 88fd23eb2748bfbdd0899d62fc01358f627c56a7 | /AppleOnboardAudio/PlatformInterface.h | 1131a4e4b20db50f399d2ef181e3e2c7f3c54754 | [] | no_license | Quantum-Platinum-Cloud/AppleOnboardAudio | db16d427cbfc8da49dcb0683d27fe031056294d5 | 46f2f8a643cc36e1332feece6e39dd42a37302ab | refs/heads/main | 2023-08-17T19:25:20.473202 | 2009-05-11T20:29:13 | 2021-10-06T04:40:39 | 589,301,255 | 1 | 0 | null | 2023-01-15T18:23:51 | 2023-01-15T18:23:51 | null | UTF-8 | C++ | false | false | 17,164 | h | PlatformInterface.h | /*
* PlatformInterface.h
*
* Defines an interface for IO controllers (eg. Key Largo)
*
* Created by Aram Lindahl on Mon Mar 10 2003.
* Copyright (c) 2003 AppleComputer. All rights reserved.
*/
#ifndef __PLATFORMINTERFACE__
#define __PLATFORMINTERFACE__
#include <IOKit/IOService.h>
#include <IOKit/IOInterrupt... |
b60838df2b7525ecf842c098a21928d6f15472dd | 8c8ea3917d4a1552194966f974693a946264ab5a | /Attendance Monitor/FaceAnalyser.hh | cbd691df045771f79a107e8da2259cd27c00086a | [] | no_license | meismyles/attendance-monitor | 717a300a721a67db60e44d4335d2db6a3811a3f3 | 729e22dab822ee396fafeeff2bc7311a0a3d7a8e | refs/heads/master | 2021-01-18T17:25:18.457830 | 2015-03-20T16:07:28 | 2015-03-20T16:07:28 | 16,585,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | hh | FaceAnalyser.hh | //
// FaceAnalyser.h
// Attendance Monitor
//
// Created by Myles Ringle on 22/03/2014.
// Copyright (c) 2014 Myles Ringle. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <opencv2/highgui/cap_ios.h>
#import <opencv2/objdetect/objdetect.hpp>
#import <opencv2/imgproc/imgpro... |
b991050f09c2250be68394346c994b668fc10a95 | 9c99fa604569eee1e3d57a0c3d0a1d49a540dcd1 | /include/engine/components/Transform.h | ee2b819f9bba6902a4c5071bbc344b76d4e04b37 | [] | no_license | deviffy/engine | dea086fb3fe5c224754eef7692f68df27762611e | 7373ca0a1baa7095cd7bf66010ae637c27e2860b | refs/heads/master | 2021-01-14T13:48:38.237580 | 2013-09-01T22:50:43 | 2013-09-01T22:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | h | Transform.h | #pragma once
#include "../Component.h"
#include <bullet/btBulletDynamicsCommon.h>
class Transform : public Component {
public:
static const ComponentType TYPE = COMPONENT_TRANSFORM;
Transform();
Transform(const btTransform &transform);
Transform(const btVector3 &position);
Transform(float x, float y, float z);... |
ad24373f85db4b22f079571c5168954ab4b1ed1b | cd31e1aa23ecaca84ca5da4345c7ed0a0d4ade21 | /ch20/assocGen.h | a0e3271f407d72f8c05caa17fcd3c2604ee88aa6 | [] | no_license | lockme/thinkincpp | d6fb5142f06cab3e8e9999b9e7da270a67609bc9 | 96e33c6a6c6521a706c520680c5cf408066c342a | refs/heads/master | 2021-01-10T18:35:15.284292 | 2013-10-10T14:14:07 | 2013-10-10T14:14:07 | 13,473,087 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | assocGen.h | //: C20:assoGen.h
// The fill_n() and generate_n() equivalents
// for associative containers.
#ifndef ASSOCGEN_H_
#define ASSOCGEN_H_
template<class Assoc, class Count, class T>
void assocFill_n(Assoc& a, Count n, const T& val) {
for (; 0 < n; --n) {
a.insert(val);
}
}
template<class Assoc, class Coun... |
c882569c84a972ac139a931beb69282c30d7d2f6 | 176c4a9bddcb9cc1474799d223080b00d1c5b84c | /include/openpose/gpu/cuda.hpp | 7fc7420f80b4f71b3a964450b8a65d5556893eb3 | [
"MIT"
] | permissive | dsciitpatna/UAVs-for-DM | 5ef73d02615aac9ee7b164387628bfadf68a828a | b767a29eb9268cb3c6777dbb7329f52a161462ae | refs/heads/master | 2020-04-24T03:54:05.214940 | 2019-07-12T05:28:20 | 2019-07-12T05:28:20 | 171,685,224 | 23 | 8 | MIT | 2019-04-06T16:00:21 | 2019-02-20T14:11:49 | null | UTF-8 | C++ | false | false | 809 | hpp | cuda.hpp | #ifndef OPENPOSE_GPU_CUDA_HPP
#define OPENPOSE_GPU_CUDA_HPP
#include <utility> // std::pair
#include <openpose/core/common.hpp>
namespace op
{
const auto CUDA_NUM_THREADS = 512u;
OP_API void cudaCheck(const int line = -1, const std::string& function = "", const std::string& file = "");
OP_API int getCud... |
c0005a02eee0dd01a5bf24b042add63f87bffb8e | c365d25ee2237b3c260198827b33b0253d43eaf4 | /codeforces/277/a.cpp | ca41e64e7b3079bcce923f0442beb7c0dcaefe86 | [] | no_license | germanohn/competitive-programming | fb1249910ce951fe290e9a5be3876d3870ab8aa3 | fab9dc0e2998dd395c1b9d6639f8c187cf637669 | refs/heads/master | 2021-06-12T08:17:52.907705 | 2021-03-17T19:06:19 | 2021-03-17T19:06:19 | 58,595,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | a.cpp | #include<bits/stdc++.h>
using namespace std;
const int N = 105;
int n, m;
int p[N], sz[N];
int find(int a) {
if (p[a] == a) return a;
return p[a] = find(p[a]);
}
void join(int a, int b) {
a = find(a), b = find(b);
if (a == b) return;
if (sz[a] < sz[b]) swap(a, b);
p[b] = p[a];
sz[a] += s... |
1ce16ea269fa219b832e6b449cc62b8000d8ea55 | 22f32abaa89f32bfeeb47c8a5435078bf385a9e0 | /1. Pointers/1. PointersIntro.cpp | 72cc244e81ad28a9efbf597489616082b9fab842 | [] | no_license | sohamnandi77/Cpp-Basic-Concepts | d5e1ffc79807cdc1e1efe1e70e70f20da964f883 | 2f7a4e662be1c37b95c4da2de10f246921ea8486 | refs/heads/master | 2023-06-07T17:35:11.382898 | 2021-06-24T12:36:30 | 2021-06-24T12:36:30 | 373,067,467 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | 1. PointersIntro.cpp | #include <iostream>
using namespace std;
int main()
{
int i = 10;
cout << &i << endl; //* Display address of i
int *p = &i; //* Pointers Pointers store address of variables or a memory location.
cout << p << endl;
cout << *p << endl; //* dereferencing
cout << sizeof(p) << endl; //* 8 or 4
... |
010c60aa67f8175ca700f7c2307a2dff19763bbd | 0ef832d8eaedc16253cc220bc704a52597d248fe | /model_server/ldr/src/ldrScrapbook.cxx | e02752d6550baf17d0855ab34e639d9ba281156d | [
"BSD-2-Clause"
] | permissive | radtek/software-emancipation-discover | 9c0474b1abe1a8a3f91be899a834868ee0edfc18 | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | refs/heads/master | 2020-05-24T19:03:26.967346 | 2015-11-21T22:23:54 | 2015-11-21T22:23:54 | 187,425,106 | 1 | 0 | BSD-2-Clause | 2019-05-19T02:26:08 | 2019-05-19T02:26:07 | null | UTF-8 | C++ | false | false | 6,077 | cxx | ldrScrapbook.cxx | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
a2736665db76c689c80f73da2c779c2df98469ac | 74e1b83ca8610db2acdfc1ee16dbad5988372dbc | /ThayHieu/20201022/socialize.cpp | 66dbbb548d7135ef96542b77efb3bdc5b802f503 | [] | no_license | zipdang04/VOI2021 | cb99140b77d3f6f4970ea2925e46dc18858b7918 | 8170fb8f8ac723bbfa3a448c64dc7ab160939798 | refs/heads/main | 2023-04-21T01:09:27.695853 | 2021-05-15T09:37:49 | 2021-05-15T09:37:49 | 298,979,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | socialize.cpp | #include <bits/stdc++.h>
using namespace std;
/*
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
*/
typedef long long ll;
typedef long double ld;
typedef vector... |
ffdea49d7cb393e17732e7de27025cba1e3a64ce | 5f98e3093331d5552430c78fa26a274f959d763b | /native/inc/jni/jni_method_utils.h | bc05b4a6d89a4a93c763b5a31b58c9fcfa0bb91c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | waicool20/SKrypton | 50345dccf8bbda916cd2b45b475630396d836f87 | 0ec26e1858d36b4c829d45f17b1c22d35afcfc9c | refs/heads/master | 2021-05-16T17:47:27.427627 | 2017-10-16T05:11:26 | 2017-10-16T05:11:26 | 103,044,311 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,354 | h | jni_method_utils.h | #ifndef SKRYPTONNATIVE_JNI_METHOD_UTILS_H
#define SKRYPTONNATIVE_JNI_METHOD_UTILS_H
#include <jni_utils.h>
namespace PrivateMethodUtils {
bool HandleMethodIDException(JNIEnv* env, jobject obj, const string& methodName, const string signature);
}
//<editor-fold desc="CallMethod helper template functions">
templa... |
828ef3ba7e541984819b95046ffc5d85ba7a382b | 984e5d8b65fcec45cf24dd196e25929e9fddbac9 | /code/质因数分解.cpp | 7cf41b0b6ac65f509afdd449b050fde70e25e2b8 | [] | no_license | ydkhub/algorithm | 536c6d7d0249d69e56e9544e379a177a0c81bc8d | 75bd68c1cb099c6a5b7387adcbf235feaff5c777 | refs/heads/master | 2020-07-10T10:59:48.113937 | 2019-08-25T04:55:33 | 2019-08-25T04:55:33 | 204,247,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | 质因数分解.cpp | #include<cstdio>
#include<cmath>
const int maxn=100010;
bool is_prime(int x){
if(x<=1)return false;
int sqr=(int)sqrt(1.0*x);
for(int i=2;i<=sqr;i++){
if(x%i==0)return false;
}
return true;
}
int prime[maxn];
int pnum=0;
void find_prime(){
for(int i=1;i<maxn;i++){
if(is_prime(i)==true){
prime[pnum++]=... |
4cd272f02cb9c34c69ee97a2e7e4179b4943b0d7 | d305e9667f18127e4a1d4d65e5370cf60df30102 | /mindspore/core/abstract/primitive_infer_map.cc | b285453d1bc948f1cef63c7b15d591356be886a4 | [
"Apache-2.0",
"MIT",
"Libpng",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Zlib",
"MPL-1.1",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"MPL-1.0",
"GPL-2.0-only",
"MPL-2.0",
"BSL-1.0",
"LicenseRef-scancode-unknow... | permissive | imyzx2017/mindspore_pcl | d8e5bd1f80458538d07ef0a8fc447b552bd87420 | f548c9dae106879d1a83377dd06b10d96427fd2d | refs/heads/master | 2023-01-13T22:28:42.064535 | 2020-11-18T11:15:41 | 2020-11-18T11:15:41 | 313,906,414 | 6 | 1 | Apache-2.0 | 2020-11-18T11:25:08 | 2020-11-18T10:57:26 | null | UTF-8 | C++ | false | false | 7,602 | cc | primitive_infer_map.cc | /**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2019-2020 Huawei Technologies Co., Ltd
*
* 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... |
efedbe4af46dfe4ed40fd4dfa8521e6d8f7b1630 | 4ea5386025362565f2f6bed9c3db99f7d1c98ddb | /PlaneWave/C++/utils.h | 9f551d0d1432dc09a60b80ac64c45e81e730ac6d | [] | no_license | rmhsik/TFM | bf7823137fe3165d57deb681f0c2d81745b3d7c8 | c0343b68b36ead44445da8dbe869e7f786c37fcf | refs/heads/master | 2023-02-02T16:06:28.918280 | 2020-11-22T16:55:19 | 2020-11-22T16:55:19 | 300,009,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | h | utils.h | #ifndef UTILS_H
#define UILS_H
#include <complex>
#include <fftw3.h>
const static std::complex<double> I(std::complex<double>(0,1));
void cgaussian(std::complex<double> **phi, double *x,
double *z, double x0, double z0, double a,
double q0, double p0, int Nx, int Nz);
void zeros(std... |
e5b1e430912d387ecbb3a032ec309eccd50072a9 | 627922dd08458bcb31495426df2fb6b8fa25a916 | /miniutil/src/log4cplus/log4cplus.cpp | 1ca66769c86be2adc79122fc9b14082164ba4cc1 | [] | no_license | xeon2007/miniutil | 9f735619c978fb3eddfa83b67c6274f8e948ae58 | d8992e77fadc1eb3f5ab253c0aa7fc69c386750b | refs/heads/master | 2016-09-05T14:32:14.642819 | 2012-04-04T16:23:11 | 2012-04-04T16:23:11 | 35,948,710 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,589 | cpp | log4cplus.cpp |
/****************************************************************************
**
** Copyright (C) 2004-2008 VATATA.com . All rights reserved.
**
** This file is the part of the Miniutil Poject.
** Vatata's miniutil library is lightweight and portable (for linux
** and Windows). The C++ Class Library included Threadpoo... |
8cbd7dabf3a0976afdab94641ef96f5584c23a58 | 999fdf150a93dc69d920786641fc9cd8e83f2a75 | /src/plastimatch/base/raw_pointset.cxx | 265573e1325778c461ad75499287e44150c8ed37 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agravgaard/Plastimatch | f79294947a1d44dd0c56798277374222fa92df57 | 7b5b79bb1a258d69a653bc82849ed420e673de3d | refs/heads/master | 2021-01-17T06:53:30.814597 | 2020-08-21T12:51:14 | 2020-08-21T12:51:14 | 52,898,082 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,887 | cxx | raw_pointset.cxx | /* -----------------------------------------------------------------------
See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
----------------------------------------------------------------------- */
#include "plmbase_config.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#includ... |
1ae143db368c1d4b871f221b29e3b7c53b0265b1 | d1dc408f6b65c4e5209041b62cd32fb5083fe140 | /src/utils/cLog.h | 2bf56191c538f210b152f723ab1786e662454c6e | [] | no_license | dmitrygerasimuk/dune2themaker-fossfriendly | 7b4bed2dfb2b42590e4b72bd34bb0f37f6c81e37 | 89a6920b216f3964241eeab7cf1a631e1e63f110 | refs/heads/master | 2020-03-12T03:23:40.821001 | 2011-02-19T12:01:30 | 2011-02-19T12:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | h | cLog.h | #ifndef D2TM_CLOG_H_
#define D2TM_CLOG_H_
class cLogger {
public:
void log(eLogLevel level, eLogComponent component, const char *event, const char *message);
void log(eLogLevel level, eLogComponent component, const char *event, const char *message, eLogOutcome outcome, int playerId, int houseId);
void log(... |
a5b743ad617cae810c36342bd60610059fab3c87 | 21398f93e869699e6bbd73bf2346f538b2b368e9 | /deredundancy-omp/main.cpp | ebc939286be99dc8e99e7ad7cbecdfae747cefe8 | [
"MPL-2.0",
"BSD-3-Clause"
] | permissive | zjin-lcf/HeCBench | fc67fa11d052ca5b9fbaac9ecee3d7a3ab3af08f | e2e13ff587c392361989cece0956d827167aa7b9 | refs/heads/master | 2023-08-18T05:08:57.134834 | 2023-08-14T01:22:41 | 2023-08-14T01:22:41 | 285,634,219 | 89 | 34 | BSD-3-Clause | 2023-09-08T18:28:55 | 2020-08-06T17:44:38 | C++ | UTF-8 | C++ | false | false | 6,192 | cpp | main.cpp | #include <chrono>
#include "utils.h"
#include "kernels.cpp"
int main(int argc, char **argv) {
Option option;
checkOption(argc, argv, option);
std::vector<Read> reads;
bool fail = readFile(reads, option);
if (fail) return 1;
int readsCount = reads.size();
int* h_lengths = (int*) malloc (sizeof(int) * rea... |
1246607ed9ef6a9c484022fc67944910b357df42 | 27b87ae8f0463a7d5e9f5a9e934da5717b2ef29c | /src/base/command.cpp | 06b5e14b6c5e59b749162349e3a6a8a3bcd9cd03 | [] | no_license | llersch/zapps | 07143225e8238b097f5d5c59354365f4ffedf320 | b5092e54ac3966d9b34828933c0ff136808c6f18 | refs/heads/master | 2021-01-18T09:28:28.208889 | 2015-11-30T16:41:07 | 2015-11-30T16:41:07 | 42,859,732 | 0 | 0 | null | 2015-09-21T10:30:24 | 2015-09-21T10:30:23 | null | UTF-8 | C++ | false | false | 12,600 | cpp | command.cpp | #include "command.h"
//#include "commands/logreplay.h"
//#include "commands/verifylog.h"
//#include "commands/dbstats.h"
//#include "commands/agglog.h"
//#include "commands/mergerestore.h"
//#include "commands/cat.h"
//#include "commands/skew.h"
//#include "commands/dirtypagestats.h"
//#include "commands/trace.h"
#in... |
7ad7d0fdb97285c5d02871795cc8a58c4c400fee | f78d3a315150623b65289c6d4fdd03a522777527 | /src/utils/zlib.h | df81313e331bd2971c3a7afe5befc450c5c859af | [] | no_license | adrigm/ARTS | c4672433c7ff691c92e398062aa3a05649a7aebf | 89fc0f7ca5f44f8f677b08fe42a89baec70ebea2 | refs/heads/master | 2020-12-24T15:41:09.208267 | 2011-04-18T00:58:20 | 2011-04-18T00:58:20 | 1,596,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 869 | h | zlib.h | #ifndef UTILS_ZLIB_H
#define UTILS_ZLIB_H
#include <string>
/**
* Inflates either zlib or gzip deflated memory. The inflated memory is
* expected to be freed by the caller.
*/
int inflateMemory(unsigned char *in, unsigned int inLength,
unsigned char *&out, unsigned int &outLength);
int inflateMe... |
a42278973129ffbe737fd8cacc8b66517b121097 | a2ac5f990cf0db2a172573448ffb8ac676c16bc6 | /variants-bac/varianta-9.h | 28c61bf241c379a75b1bdd3a2d24035b50e735a7 | [] | no_license | GrigoAleex/Variante-Bac-Informatica-2009 | cbdf3115f598d2899a5c733db4920ef976edef03 | 03c06d3f05260926fb39bb4c1dd966a4b8552378 | refs/heads/master | 2022-09-08T22:47:29.621196 | 2020-06-01T10:36:31 | 2020-06-01T10:36:31 | 268,491,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | varianta-9.h | //
// Created by Tridev on 5/31/2020.
//
#ifndef UNTITLED_VARIANTA_9_H
#define UNTITLED_VARIANTA_9_H
namespace varianta9{
int ex1( long n, int k ){
if( n && n % 10 == k ) return 1 + ex1( n / 10, k );
return 0;
} //se va afisa: 3
void ex3( int n, int k){
n = n * k;
while( n... |
03bdb4b3925a2de13beeafc53ac5c9e74ccd74b9 | 681c84ad83ce6ad403a8f905f65f4bb43ef2bb87 | /hot/constant/ellipse/polyMesh/points | 0f8f78d8115214170b1005a196665e68285477c1 | [] | no_license | zachery-style/prolate | fd8c1b8edb5457508c50b431fc34c8bcfead1cab | b344df4ae9f22d16555b43b07cc66d0cd2fce3fd | refs/heads/main | 2023-04-08T22:07:41.537811 | 2021-04-14T02:28:52 | 2021-04-14T02:28:52 | 346,477,510 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821,279 | points | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
... | |
7e432ab6cca77acb945d980beee69a470b9080f2 | 2351c922fbee24a3856d885fc70263dae58a9eb0 | /src/princekin/thread/chart/dataworker.h | 6a5722676ae2a20593e2e2f0da11c02129e46ada | [] | no_license | waitMonster/android | dc4298c9e4827389e24782a9dfa33c7dab84eae1 | 6f9b223ba330ff3bb22e048348df1309930c31b0 | refs/heads/master | 2021-08-16T15:42:39.163958 | 2017-11-17T10:47:20 | 2017-11-17T10:47:20 | 111,359,369 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,724 | h | dataworker.h | #ifndef DATAWORKER_H
#define DATAWORKER_H
#include "commonhead.h"
#include "xlsxdocument.h"
#include "xlsxformat.h"
#include "xlsxcellrange.h"
#include "xlsxworksheet.h"
#include <QtXlsx>
#include <QObject>
using namespace QXlsx;
QTXLSX_USE_NAMESPACE
namespace DataWorker
{
class Worker : public QObject
{
Q_OBJ... |
68d11040d345975fed3e3766c8e79b82ddfb4d4d | e605cd0d724ed66e4e40e47cb039a647c5723658 | /2019/day23/prog.cpp | 31c5d794d4509f3ae7a2b4fcc3291e8aa260cba6 | [] | no_license | ojasgarg/adventofcode | 8c46ee006457c357da043702be135fb17eeea367 | 88739c6e85f47209fd1166577671fe7bb422c255 | refs/heads/master | 2023-02-08T16:53:07.066940 | 2020-12-25T06:05:30 | 2020-12-25T06:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,978 | cpp | prog.cpp | // prog.cpp
// Copyright (c) 2019, zhiayang
// Licensed under the Apache License Version 2.0.
#include "aoc.h"
#include "assert.h"
struct State
{
int64_t ip = 0;
int64_t segment = 0;
util::queue<int64_t> in;
util::queue<int64_t> out;
std::unordered_map<int64_t, int64_t> memory;
};
static constexpr int HALT_STO... |
efdeb70938183bd206f9b2c8e5610081c9a907c0 | 1874d76cd014a610174b5ebaf03c47922e99d002 | /Her Yönüyle C/FonksiyonİşaretçileriÖrnek3/FonksiyonİşaretçileriÖrnek3/Source.cpp | f1f0bfc9fd487ebe5bbb6120187ccb1c0b2a0c95 | [] | no_license | keremerolce/C-Programin-Samples | 3a4b76c86147f5e795ef786c47965b28213984a3 | cde25131ba3d794be39b428948b92eb146b9e0ce | refs/heads/master | 2018-12-22T17:04:49.021427 | 2018-09-30T23:57:22 | 2018-09-30T23:57:22 | 111,516,557 | 0 | 0 | null | null | null | null | ISO-8859-9 | C++ | false | false | 907 | cpp | Source.cpp | #include <stdio.h>
#include <locale.h>
int topla(int,int);
int cikar(int,int);
int carp(int,int);
int modAl(int,int);
int hesapla(int islemPtr(int, int),int ,int);
int main(int argc,const char * argv[])
{
setlocale(LC_ALL,"tr");
int sayi1;
int sayi2;
printf("Lütfen arada boşluk olacak şekilde 2 sayı giriniz:");
sc... |
788c24eff0cb52abbc89e0fc8cf3a789142eacc4 | b7b300d2ff67d45562528d5ebc66f8e3b722157e | /2015.cpp | e0793a0c54c41e5bf0b72ddbeba5070bcf7d084b | [] | no_license | junierr/hdoj | f09822ea1794e2901353e885116ca79e729267df | c9086f38ede263b3a4372bc1eef23094a2494aab | refs/heads/master | 2022-03-08T17:13:45.385603 | 2019-11-16T15:29:08 | 2019-11-16T15:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | 2015.cpp | #include<stdio.h>
int main()
{
int m=0,n=0,i=0,w=0,j=0;
int q=0,sum=0,dum=0,t=0;
int a[1000];
while(~scanf("%d %d",&n,&m))
{
q=n / m;
w= n % m;
for(i=1;i<=n;i++)
{
a[i]=2*i;
}
if(w!=0)
{
for(i=1;i<=q;i++)
{
for(j=1;j<=m;j++)
{
t=t+1;
sum=sum+a[t];
}
dum... |
a066a9c08e427b8a79e11f11506dfe7caf4161b0 | 60d3716b43cd198d3abb9a8743f05903921aa5a4 | /Source/CoopGame/Public/SWeapon.h | ae9799a1ceca8ef85c06170f8171b9f8efbee81e | [] | no_license | shivivats/UE4_CoopGame | 0d935e9dcef5330764054537da293f9b5b9f209d | b224f3bfaa03cdd692830a639aaa62168d038310 | refs/heads/main | 2023-06-02T02:51:21.550214 | 2021-06-16T09:01:15 | 2021-06-16T09:01:15 | 361,104,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,230 | h | SWeapon.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "SWeapon.generated.h"
UCLASS()
class COOPGAME_API ASWeapon : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properti... |
2e81839cfb4491bb9e8b3b0dce96c2b87370ae91 | f8efece6b69ca26d56bb38b691da20c166a4c590 | /YASS/Menu.cpp | ff2f07bd4122f311e7a68176c2f404922f5bcfb3 | [
"MIT"
] | permissive | Marrow16180/YASS | 06099bb1e93faa93f3590460bbd82f5b4cb2b223 | 8a27bc7f07f0b65b847b0be0a2683e650895a33a | refs/heads/master | 2020-03-09T07:27:18.026657 | 2018-04-18T01:16:33 | 2018-04-18T01:16:33 | 128,664,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,995 | cpp | Menu.cpp | #include "Menu.hpp"
const sf::Time Menu::TimePerFrame = sf::seconds(1.f / 60.f);
Menu::Menu()
: mResources{}
, mMusic{}
, mClock{}
, mDelta{sf::Time::Zero}
, mWindow{sf::VideoMode(800u, 640u), "YASS"}
, mStarfield{nullptr}
, mVolumeSlider{nullptr}
, mNewGameButton{nullptr}
, mContinueButton{nullptr}
, mO... |
d4864a7805901ba6f57a3e846cdcfa440a9c1380 | c24fa74d053702d59f686aa8c780a1a201c2a966 | /mEngine/UI/MessageBox.hpp | 2cbeb994363ff77e12116234179fd0885e2f2ad0 | [] | no_license | m1lka/DuckHunter_cpp | 3a9e0dd951b5a17d068d5b1fe9ac4759adb69fe7 | 3a80846df09a54f75476a82338cc02c6a08c8b94 | refs/heads/master | 2020-05-06T20:07:32.517205 | 2019-10-22T21:30:56 | 2019-10-22T21:30:56 | 180,222,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | hpp | MessageBox.hpp | #ifndef _MESSAGEBOX_HPP_
#define _MESSAGEBOX_HPP_
#include <SDL2/SDL.h>
#include <string>
using std::string;
enum DialogResult
{
No = 0,
Yes = 1
};
class MessageBox
{
public:
static void ShowInfo(string title, string message)
{
SDL_MessageBoxButtonData buttons[1];
buttons[0].buttonid = 0;
buttons[0].fla... |
be53580387493c4dafe5b99878fffe023990eec6 | 921f4e66c465f53d2abd256a2845d4c922fa8f26 | /pretraitement.hpp | f0976cca2adb1aeb6fece069bf5d8f545d0d063e | [] | no_license | Arturgo/hashcode21 | f25f32bc165e9badd3e84115291e2eb95d636019 | 0ae05418fcb7197609df032d618df638eb0ca3ad | refs/heads/master | 2023-03-10T21:21:29.457469 | 2021-02-25T21:20:47 | 2021-02-25T21:20:47 | 342,316,823 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,697 | hpp | pretraitement.hpp | #pragma once
#include <bits/stdc++.h>
using namespace std;
struct Arc
{
string identifiant;
int id;
int iDepart, iFin;
int longueur;
int nbPassent;
};
struct Voiture
{
vector<int> chemin;
int longueurChemin;
};
struct Probleme
{
int dureeSimulation;
int nbIntersections;
int nbRues;
int nbVoitures;
int ... |
2365bfef2a80a8c258b191384f45fbfc19c535a4 | 059c4d102fe0ee42522cd75ed04749d28949bf7f | /vendor/rocksdb-5.9.2/db/snapshot_checker.h | 8a8738a5a8830c6016f03b23774c9b0e151def45 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"BSD-3-Clause"
] | permissive | shuoranliu/chubaofs | 5a2b310146e35fe5cf612a8a6f67baffaad03201 | 9c0bf89959f50673d0910cf07dd0a55ce775b3fd | refs/heads/master | 2022-05-21T00:44:24.212401 | 2022-05-13T03:43:55 | 2022-05-13T03:43:55 | 185,146,838 | 2 | 1 | Apache-2.0 | 2022-03-01T06:30:45 | 2019-05-06T07:36:45 | Go | UTF-8 | C++ | false | false | 1,652 | h | snapshot_checker.h | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
#include "rocksdb/types.h"
namespace rocksdb... |
4921e9b593862f75f672c379bb280fb1bfc5f6f4 | 4497624912a7af7dbdb800e9c0b152af1cca2655 | /670B.cpp | b51e78a4e2efb89adf355dd1d028631930d76ec1 | [] | no_license | singhaditya8499/Codeforces | 0a978ea628660e18188856671e742a4cfec7cb28 | b73e9654b319580648c016659a915174615a6ed5 | refs/heads/master | 2021-05-18T12:22:21.857546 | 2020-04-22T19:14:30 | 2020-04-22T19:14:30 | 251,241,430 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | cpp | 670B.cpp | #include<bits/stdc++.h>
#include<unordered_set>
#define mod 1000000007
#define PI 3.14159265358979323846264338327950
#define eps 1e-9
typedef long long ll;
using namespace std;
bool cmp(pair<int,pair<int,int> > a,pair<int,pair<int,int> > b)
{
if(a.second.second!=b.second.second)
return a.second.second<b.se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.