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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d052095a27344cda9162516ff57fff3e7936c774 | ae0247be1c758efb09b1a862cc85754c7ae95f23 | /src/DaliParser/ddl_stmts.c | 91148b92d35e9fee30b5298caf8abdb5d0002826 | [] | no_license | rathodsachin20/mubase | 562680093dea13a5d0d2df71687be7e4cfa78c5f | 91bad1d9666d6a6f4a01caad1021f633b83217d8 | refs/heads/master | 2021-01-10T05:00:12.792001 | 2016-03-03T05:01:23 | 2016-03-03T05:01:23 | 48,962,359 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,714 | c | ddl_stmts.c | /* -*- c++ -*- */
#include "sql_parse.h"
/**************************************************************************/
/**
FIX: All the create functions below will later change to return DaliPtr's
**/
template<class T>
void printList(FILE *file_a, List<T> &list_a)
{
putc('(', file_a);
... |
3ff30cb0d840a3bcb7ad3cc479f051c113331c33 | 2eebe8877c3927dbc6e6dda8920093510e81ee81 | /bixecamp-2019/aula8-pd/lcs/lcs.cpp | e4478a5038b3b6560318bb0a69b62c5f7b642f70 | [] | no_license | maratonusp/Caderno-dos-bixes | 9445cb6e25995bd38ed317d087f966f7d6e9e1a9 | c4e0f5768600103b33339b224fa1375530295969 | refs/heads/master | 2022-05-31T11:52:33.645319 | 2022-05-14T17:43:55 | 2022-05-14T17:43:55 | 168,978,559 | 41 | 14 | null | 2020-06-05T22:58:11 | 2019-02-03T18:31:01 | C++ | UTF-8 | C++ | false | false | 1,197 | cpp | lcs.cpp | #include "bits/stdc++.h"
using namespace std;
//https://www.hackerrank.com/challenges/dynamic-programming-classics-the-longest-common-subsequence/problem
#define dbg(x) cout << #x << " = " << x << endl
int a[1010], b[1010];
int memo[1010][1010];
vector<int> bestSequence;
int n, m;
const int INF = 0x3f3f3f3f;
int... |
3c6571b89f95ea078c6cfd66452b0351dfea7856 | 60bd79d18cf69c133abcb6b0d8b0a959f61b4d10 | /libraries/Gauss/test/unit_test_001.cpp | dd936ccff163e98e77f578a548098cff7fdb919c | [
"MIT"
] | permissive | RobTillaart/Arduino | e75ae38fa6f043f1213c4c7adb310e91da59e4ba | 48a7d9ec884e54fcc7323e340407e82fcc08ea3d | refs/heads/master | 2023-09-01T03:32:38.474045 | 2023-08-31T20:07:39 | 2023-08-31T20:07:39 | 2,544,179 | 1,406 | 3,798 | MIT | 2022-10-27T08:28:51 | 2011-10-09T19:53:59 | C++ | UTF-8 | C++ | false | false | 4,418 | cpp | unit_test_001.cpp | //
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2023-07-07
// PURPOSE: unit tests for the Gauss library
// https://github.com/RobTillaart/Gauss
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// asse... |
349f332d229f42c114203792309629bba0a76598 | d1bc08bc30eaba4bf1bf7f5bb242b9780aff41ee | /hll/test/CouponListTest.cpp | 5f65150263c0a88233bc25963832835eb517f077 | [] | no_license | frankgrimes97/sketches-core-cpp | 5480bc054bef950636de8b9d9a0ffd12ab505de9 | 34215550df36877ec66ba2c9f18b5a0a2c41bfe0 | refs/heads/master | 2020-04-01T14:27:19.437671 | 2018-11-19T19:51:30 | 2018-11-19T19:51:30 | 153,294,881 | 0 | 0 | null | 2018-10-16T13:57:53 | 2018-10-16T13:57:53 | null | UTF-8 | C++ | false | false | 3,637 | cpp | CouponListTest.cpp | /*
* Copyright 2018, Oath Inc. Licensed under the terms of the
* Apache License 2.0. See LICENSE file at the project root for terms.
*/
#include "hll.hpp"
#include "HllSketch.hpp"
#include "HllUnion.hpp"
#include "HllUtil.hpp"
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <... |
d6af8643d295fd39299d35d1d6c0eed7969839e2 | 170ab6daedec4a8f107203b6eb5cd8bed1f4ed81 | /OJ-51nod/1127 最短的包含字符串.cpp | e825059c1d3a858fb161b75c32eeebf73aa79a7a | [] | no_license | sfailsthy/ACM-ICPC | 4a15930c06c5ba35ca54a5ecb0acd7de63ebe7f7 | 7e32bfc49010c55d24b68c074c800a2d492abbfd | refs/heads/master | 2021-01-11T06:07:58.598819 | 2017-01-18T13:04:23 | 2017-01-18T13:04:23 | 71,685,224 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | 1127 最短的包含字符串.cpp | //created by sfailsthy 2016/12/12 1:16
#include <iostream>
#include <set>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <map>
using namespace std;
const int maxn =100000+10;
char str[maxn];
void solve(){
set<char> all;
for(int i=0;str[i]!='\0';i++){
all.insert(str... |
e03fb190632920cae532f35b279e1706836c3af6 | c542fa61ff421b5da5bfae287329798294f3dfd8 | /bubble_sort.cpp | 64f7a5ea433d75a88e3392ae352175170c643994 | [] | no_license | Poorab-Shenoy/DATA-STRUCTURES | 125d17f732122495b95318ee8cbaf7798dc038a7 | edf37bb56d2681295d4fd45f36203d14e77fce30 | refs/heads/master | 2023-05-10T14:18:54.571238 | 2021-06-11T12:31:48 | 2021-06-11T12:31:48 | 376,015,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | cpp | bubble_sort.cpp | #include <bits/stdc++.h>
using namespace std;
void bubble_Sort(int a[], int n)
{
int flag = 0;
for(int i =0; i<n-1; i++)
{
for(int j=0; j<n-1-i; j++) // we want to eliminate that comparison
{
if(a[j]>a[j+1]) /// bubble so... |
ee4d65c2c0ba9aad068bb6cef65bb0f7dfdb8563 | 3874989396b41ec423b2878253633f303edd5656 | /src/actors/FlyingMonster.h | fd42681ed3053d9957a5590805171a93f6d3932c | [] | no_license | joetde/SuperBadbar | 7477e2fb6d662676ce70795f9d1287df65eb6023 | 7f0e09a57bc9754522588f1015363b1f1d0e046e | refs/heads/master | 2021-01-01T17:05:43.711037 | 2014-02-20T13:17:09 | 2014-02-20T13:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | h | FlyingMonster.h | /**
* @file WalkingMonster.h
* @brief Header de la classe FlyingMonster
*
* @author Guillaume Berard & Benoit Morel
* @date decembre 2010
*
*/
#ifndef _FlyingMonster_
#define _FlyingMonster_
#include <actors/Monster.h>
class Analyser;
/**
* @class FlyingMonster
* @brief Monstre qui vole
*
*/
class... |
0e90ac67e90089bf9f36437190ecfe777aeae835 | 89c5fac3c3eb3cc7cfcc22424ec2c565a09f9fc8 | /src/crypto/keccak256.cpp | 514ecb71b7c6a29c65931cdad12aef12d00c46d9 | [
"MIT"
] | permissive | harkal/dash | 5745acd4a47a198da4f0fa147e0d15c35127c2ff | d871d02f99a151e4e1195ccb1e85be563612b5d8 | refs/heads/master | 2021-05-08T09:52:03.410289 | 2018-01-11T22:30:50 | 2018-01-11T22:44:15 | 107,180,062 | 2 | 0 | null | 2017-10-16T20:35:13 | 2017-10-16T20:35:12 | null | UTF-8 | C++ | false | false | 727 | cpp | keccak256.cpp | // Copyright (c) 2017 Harry Kalogirou (harkal@gmail.com)
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/keccak256.h"
#include "crypto/common.h"
CKeccak256::CKeccak256()
{
sph_keccak256_init(&cc);
}
CKecca... |
958872e3370f56f2d1f2d536682c7f75cd82ba28 | 059ee9205cfe4ed153b873870d82ebd43ddfea38 | /BOJ7576.cpp | cfbbe845da8bae0034051d2c264f1ce536bbb575 | [] | no_license | muzee99/Baekjoon_cpp | c09befd3f8d2b1a575645cac153d11ada38adf8c | 2d8b4ef234f848f192df37cc04d3443dc5b1f1eb | refs/heads/master | 2023-08-31T02:14:10.921211 | 2021-09-15T08:24:13 | 2021-09-15T08:24:13 | 345,878,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | BOJ7576.cpp | #include <bits/stdc++.h>
using namespace std;
int N,M;
int box[1001][1001];
int chk[1001][1001];
int isInBox(int r, int c);
int main() {
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
cin >> N >> M;
for(int i=0; i<N; i++) {
for(int j=0; j<M; j++) {
cin >> box[i][j];
}
... |
18196196b7facd817e6ae6a6d871f797a7edc56c | c48ec32b65ec2a83ee3502e1aed3028f1544b08d | /3DHomeEngine/src/main/jni/src/ParticleSystem/SE_ParticleIterator.h | 9ce09739089bddb786a2a6723ac7cccc781fbc13 | [] | no_license | 3DHome/3DHome | 76e915b0dc4a9861b9dd0928d63a0cfb451f00d5 | bb8cafc233e672029f68da103d9c236457940f43 | refs/heads/master | 2021-01-20T00:56:49.582553 | 2019-03-09T09:34:11 | 2019-03-13T13:53:26 | 26,866,756 | 34 | 23 | null | 2014-12-09T10:30:15 | 2014-11-19T15:09:55 | C++ | UTF-8 | C++ | false | false | 961 | h | SE_ParticleIterator.h | #ifndef __ParticleIterator_H__
#define __ParticleIterator_H__
#include <list>
class Particle;
/** Convenience class to make it easy to step through all particles in a ParticleSystem.
*/
class SE_ENTRY ParticleIterator
{
friend class ParticleSystem;
protected:
std::list<Particle*>::iterator mPos;... |
ff421fe976bd4c674fe1f9513ed67d37a1cdec40 | 6597f190861529d9de1dedbffefd9a7886feac46 | /bsafile/srbsafolder.h | ed1c06a5c85511a78ecb3eebcc49a1912bf0294d | [
"MIT"
] | permissive | Blitz54/tes5lib | 87923c1f4675d0de36a038081e327bd8e2a5734a | 07b052983f2e26b9ba798f234ada00f83c90e9a4 | refs/heads/master | 2023-03-16T00:32:31.592231 | 2020-04-02T18:21:19 | 2020-04-02T18:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,688 | h | srbsafolder.h | /*===========================================================================
*
* File: Srbsafolder.H
* Author: Dave Humphrey (dave@uesp.net)
* Created On: 26 November 2011
*
* Description
*
*=========================================================================*/
#ifndef __SRBSAFOLDER_H
#define ... |
4354ae4b6d5ff40f871c3b8f781ee48ea8d71381 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc089/D/answers/000259_errym.cpp | 65de05cbfd0deb61aef1d0d87b0b8d02d1bbf673 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | 000259_errym.cpp | #include <bits/stdc++.h>
using namespace std;
int cnt[4005][4005];
int n, k, ans;
int main()
{
scanf("%d%d", &n, &k);
for (int i = 0;i < n;i++)
{
int x, y; char c; scanf("%d%d %c", &x, &y, &c);
if (c == 'B') y += k;
x %= (2*k); y %= (2*k);
cnt[x][y]++;
}
for (int i = 0;i < 2*k;i++) for (int j = 0;j < 2*k... |
b9bc4e84dcdc66c100996ce51ef9a7384d352a75 | f39fbc00e7584a3e93f92534ca016fd951110cf1 | /src/v/kafka/server/handlers/describe_transactions.cc | b80a23ca52842c4d72332d84ba8c72e6231b6ed7 | [] | no_license | redpanda-data/redpanda | 93234ff70348d3ed131bdc2d121fc8dcb7bffca9 | bee41676303c0e5fb161256b844bb14a135de8cd | refs/heads/dev | 2023-08-27T21:40:47.107399 | 2023-08-26T11:45:30 | 2023-08-26T11:45:30 | 309,512,982 | 4,297 | 308 | null | 2023-09-14T20:36:21 | 2020-11-02T22:43:36 | C++ | UTF-8 | C++ | false | false | 5,027 | cc | describe_transactions.cc | // Copyright 2020 Redpanda Data, Inc.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.md
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Versi... |
fd3c0523a35bcb777db006c248f3fe57cb76a21c | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /cvm/include/tencentcloud/cvm/v20170312/model/InstanceFamilyConfig.h | 8c72d77e27810e17df8f13655c381d46979c74a2 | [
"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 | 4,159 | h | InstanceFamilyConfig.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
... |
8d6b545a9adfca31ceee16244bb88e9d1d4f6732 | 2933025b55b34ccf0242de29c41c71a119bfb819 | /1. Placements/1. Misc/44. StoneGame.cpp | 74aedd0028c0e796ec77ea83d3d8a15950a0d493 | [] | no_license | rohitshakya/CodeBucket | 460050cf3cb5ae29eac0b92fb15ddc7a5a9d9d80 | 5c3632d5860873c74cce850eb33bd89fdd77ce0a | refs/heads/master | 2022-01-25T09:55:58.151327 | 2022-01-11T06:55:05 | 2022-01-11T06:55:05 | 253,870,196 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 459 | cpp | 44. StoneGame.cpp | /*
* Author : Rohit Shakya
* Date : June-2020
* Compiler : g++ 4.9.2
* Flags : -std=c++14
* Time complexity : O(1)
* Title : StoneGame
*/
#include<iostream>
using namespace std;
int main()
{
int t;
cout<<"enter the number of test cases"<<endl;
cin>>t;
while(t--)
{
int n;
cout<<"... |
d3e2c7369c87e147fced2ef64d3b0b570fbe9d2a | ba2b37e3be216c87877e212b13639f839cc857f5 | /src/LCM/evaluators/MechanicsResidual_Def.hpp | dfc2b0878711719c9a4abd70d152bf006d72ba78 | [
"BSD-2-Clause"
] | permissive | stvsun/Albany | ac1e8dbb27823f9a5b357aa041a37b1eca494548 | 7971bb6951b868f7029fe11cbb0898d351ae4a1d | refs/heads/master | 2022-04-29T20:51:55.453554 | 2022-03-26T21:22:21 | 2022-03-26T21:22:21 | 19,159,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,897 | hpp | MechanicsResidual_Def.hpp | //*****************************************************************//
// Albany 2.0: Copyright 2012 Sandia Corporation //
// This Software is released under the BSD license detailed //
// in the file "license.txt" in the top-level Albany directory //
//**************************************... |
3d6c4a6bbb345f68f25c17eafa6695cb317a4dec | 5448b70fca0952bca46443aba0ccf2a9cddbc373 | /datastructure/mo's-algo.cpp | 933b258b017f571c5d57fc96775d61b381e06ea4 | [] | no_license | Tahanima/algorithms-datastructures-codebook | a4060eb3e63ff080b78428cca978e9ac7a5d51fb | 21e8d2e4d01d282a3793001de64829b555fab537 | refs/heads/master | 2021-01-23T10:45:00.306288 | 2017-07-14T13:21:29 | 2017-07-14T13:21:29 | 93,091,411 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,798 | cpp | mo's-algo.cpp | #include <bits/stdc++.h>
using namespace std;
/**********************************************************************************************
Given an array of N integers and Q queries. For each query of type l r, the number of distinct
numbers from indices l to r should be outputted.
Input:
8 5 ----------------... |
3e0ef52688a213e0c899b1d3d55e7939a6c4f839 | 7a6e612c7182d72a3fc1721a173ad9a592eb6b29 | /Utils/CalibratorTool/Synchronization.h | 3553aa3580763008bfdd1f5e8413273eb63d5db7 | [] | no_license | pablocano/mundosvirtuales-BanknoteClassifier | 034766be40be9cdc4237e1d98fcf2b1d12a6c91f | f2718acda441baf3d68fd769552a7462a879c474 | refs/heads/master | 2021-03-16T06:06:36.117636 | 2019-04-10T16:00:08 | 2019-04-10T16:00:08 | 103,450,373 | 0 | 0 | null | 2019-04-10T16:00:09 | 2017-09-13T21:04:39 | C++ | UTF-8 | C++ | false | false | 1,534 | h | Synchronization.h | //
// Synchronization.h
// GroundTruth
//
// Created by Pablo Cano Montecinos on 06-09-16.
//
//
#pragma once
#include <QMutex>
class SyncObject
{
public:
QMutex mutex;
void enter() {mutex.lock();}
void leave() {mutex.unlock();}
};
class Sync
{
private:
SyncObject& syncObject;
public:
/**
... |
b4acc50e3479d7cb3e0658d94fcbfd3fd360706a | 1acacc4a1428e6b63c3ab7c846a0b67fe4d92cd6 | /HouseCamera/Camera.h | 8fa2db668bfbab2c56a9fe9d18a9089c1b43dde5 | [] | no_license | louis1204/HouseCamera | 46a38bfbdd61dbe658a01aa885f556cf655d7bdc | a17f891471aea91d15021587e0b81fe32c80e427 | refs/heads/master | 2020-06-08T20:14:43.938628 | 2014-03-14T04:01:18 | 2014-03-14T04:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | Camera.h | #pragma once
#include "Vector3.h"
#include "Matrix4.h"
#include <GL/glut.h>
class Camera
{
protected:
Vector3 e; //center of projection
Vector3 d; //object looking at
Vector3 up; //(unit?) vector looking up
public:
Matrix4 c; //internal camera matrix
Camera();
Camera(Vector3 e, Vector3 d, Vector3 up);
... |
f3423839466ae97169a4abf92fd6689cd79dd318 | 1bef2b315dc18cf10caf1fc9d1f03f055a8abf28 | /구현/SW_1949.cpp | f1272554e74eef734df6744c2064535d6eacc34d | [] | no_license | woongseob12/Algorithm | ffd7fabcc1774135a119153798d3d1e93ddd781a | 87d0bf3796780ffdec1e1a3a90a4c895ad5bad3d | refs/heads/master | 2023-06-28T10:28:06.006783 | 2021-07-30T13:51:23 | 2021-07-30T13:51:23 | 209,935,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | SW_1949.cpp | #include <iostream>
#include <algorithm>
#include <cstring>
#define MAX 8
using namespace std;
int N, K, ans;
bool cut;
int arr[MAX][MAX];
bool visit[MAX][MAX];
int dy[] = { 1, -1, 0, 0 };
int dx[] = { 0, 0, 1, -1 };
void dfs(int y, int x, int cnt);
int main() {
ios_base::sync_with_stdio(false);
cin... |
6597901092882908e3992dc63bbf33011def9636 | 7a28a00bd395977d2004361b480c5c9c226b06b0 | /nebulosity4/manual_color_camera.cpp | 74f73843379b035d6571894d9b2d6ad9e515a926 | [
"BSD-3-Clause"
] | permissive | supritsingh/OpenNebulosity | 99d3b037ec33a66bf079643d536790d85daa64b8 | fa5cc91aec0cbb9e8cac7fdc434d617b02ee8175 | refs/heads/main | 2023-08-27T19:47:35.879790 | 2021-11-07T21:55:11 | 2021-11-07T21:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,899 | cpp | manual_color_camera.cpp | /*
BSD 3-Clause License
Copyright (c) 2021, Craig Stark
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of condit... |
c8cc808d48187f230a62865e1cafd90baf17fab6 | 179c68f0e2a2cbddb795ea9a83441294ae0768e1 | /MyBotLogic/Utils/PathHelper.h | 41afa266128539e0e83f1b36484da07a31f2a47d | [] | no_license | patator62180/IA_project | b3be0a7cfa8b1ae8459d207e9e2fb2a50c8c7883 | 1b1fe58c70e649ff7b819f91803175513b82de0a | refs/heads/master | 2020-03-31T19:03:04.837610 | 2018-10-25T00:18:45 | 2018-10-25T00:18:45 | 152,482,814 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | h | PathHelper.h | #ifndef PATH_HELPER_H
#define PATH_HELPER_H
#include "..\MapStructure\CoordAxial.h"
#include "Globals.h"
#include <vector>
class PathHelper {
static const std::vector<CoordAxial> baseMovement;
public:
static const size_t getDirectionCount() noexcept;
static const HexDirection getReverseDirection(const H... |
242af7b43abff9f00a9741cfc33c654b43a3e7b7 | 8b77be32c4422fbc778bf20d6370f5e8514fef96 | /Solution2/ConsoleApplication3/TarCleaner.h | 65fd94234af8540af39863383abafa7ee7dd7595 | [] | no_license | venerjoel99/TarProject | e1c76297f363850f9e99ca11080c3b007bd4218a | df01620a7064fa6970d34ca9db47db1df224f99a | refs/heads/master | 2021-10-09T14:26:08.705217 | 2018-12-29T19:04:07 | 2018-12-29T19:04:07 | 100,327,040 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 907 | h | TarCleaner.h | #pragma once
#ifndef TARCLEANER_H_INCLUDED
#define TARCLEANER_H_INCLUDED
#include <stdio.h>
class TarCleaner
{
public:
typedef __int64 Integer;
typedef struct _header {
char fileName[100];
int fileSize;
int bufferSize;
Integer headerIndex;
}Header;
private:
FILE *in_file;
FILE *out_file;
... |
2410695f054e2a627d7f601a53c14fdb4818da39 | e042fcaa4f81a33cda9a16ae63b177b7a7d05024 | /CPP/replace charactor.cpp | 8e705dbf2747e158910cb0cc9c402be2f24839f2 | [] | no_license | amanashu201/Aman2002 | 9c4f68a3181bc841b09bb6e18f575b1fc8d79bba | a14d9ebf8e32d62438c953fa1c0d183a3756b07f | refs/heads/master | 2023-04-12T13:32:51.655489 | 2021-05-11T10:30:35 | 2021-05-11T10:30:35 | 306,860,992 | 0 | 0 | null | 2020-10-29T11:57:43 | 2020-10-24T10:40:09 | HTML | UTF-8 | C++ | false | false | 985 | cpp | replace charactor.cpp | #include <iostream>
using namespace std;
void replaceDemo(string s1, string s2, string s3, string s4)
{
s1.replace(0, 7, s2); //Replaces 7 characters from 0th index by s2
cout << s1 << endl;
s4.replace(0, 3, "Hello "); //// Repalces 3 characters from 0th index with "Hello"
cout << s4 << end... |
a0afa1dac3c88ca515724bef4b07b30532f80fac | af272cd800f183d308cdbdf4d0e92690544acfad | /BasicTimers/BasicTimers.ino | bab10716e7def43bb956cec97f2d0d9dafb4dae0 | [] | no_license | kurt/FreeRTOS-Arduino | fbd6e289af22319f7cb058c145a1766c34882cd7 | ed73f907de4605d81ee073588c8eea6780127507 | refs/heads/master | 2022-04-23T22:20:19.502662 | 2020-04-17T19:06:23 | 2020-04-17T19:06:23 | 255,745,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | ino | BasicTimers.ino | #include <Arduino_FreeRTOS.h>
#include <timers.h>
#define ONESECONDDELAY 1000/portTICK_PERIOD_MS
#define TWOSECONDDELAY 2000/portTICK_PERIOD_MS
void timer1_callback( TimerHandle_t xTimer ){
Serial.println("Timer Done");
}
void timer2_callback( TimerHandle_t xTimer ){
Serial.println("Timer 2 Done");
}
void... |
d071799c4153b532c9261b8f4a01a54c11b458fc | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/Runtime/AIModule/Private/EnvironmentQuery/Generators/EnvQueryGenerator_Composite.cpp | 000675df42ce10ff7960299a1fc6f5c9712a771c | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 2,164 | cpp | EnvQueryGenerator_Composite.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "EnvironmentQuery/Generators/EnvQueryGenerator_Composite.h"
#include "EnvironmentQuery/Items/EnvQueryItemType_Point.h"
#define LOCTEXT_NAMESPACE "EnvQueryGenerator"
UEnvQueryGenerator_Composite::UEnvQueryGenerator_Composite(const FObjectInitialize... |
68b14c7400174ca116f13dcda8c271c31e8b54e2 | 96976a2c205d679261aa6ff6cd0db286c43ee350 | /src/revlanguage/functions/DistributionFunctionPdf.h | dcc28979f3c322d6f46ad13b1f492d3c84a8f697 | [] | no_license | sundsx/RevBayes | f99305df6b72bd70039b046d5131c76557e53366 | 13e59c59512377783673d3b98c196e8eda6fedee | refs/heads/master | 2020-04-06T06:29:46.557485 | 2014-07-26T14:26:57 | 2014-07-26T14:26:57 | 36,248,250 | 0 | 1 | null | 2015-05-25T18:44:13 | 2015-05-25T18:44:13 | null | UTF-8 | C++ | false | false | 7,046 | h | DistributionFunctionPdf.h | /**
* @file
* This file contains the declaration of ConstructorFunction, which is used
* for functions that construct objects using the RevLanguage.
*
* @brief Declaration of ConstructorFunction
*
* (c) Copyright 2009- under GPL version 3
* @date Last modified: $Date: 2012-06-01 14:40:37 +0200 (Fri, 01 Jun 2012... |
1e04cdd2cd0005bbc05395cbe03fee3df546f76c | c63698c70fb0d13821dc480505c0a5a7eda39c8f | /2017/24/main.cpp | c1206002cc225db76102255c97040e6b40168609 | [] | no_license | nagygeri97/AdventOfCode | 7430201bbe46d09ef793634cf72fb5b0b3b73655 | d8b8770982f85b6820c8c0f5edd3a6ae48246579 | refs/heads/master | 2023-01-13T15:44:41.921023 | 2023-01-13T08:35:51 | 2023-01-13T08:35:51 | 115,148,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,134 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <utility>
using namespace std;
struct Piece{
int a,b;
bool used;
Piece(int a, int b):used(false),a(a),b(b){}
};
vector<Piece> pieces;
vector<vector<int>> as;
vector<vector<int>> bs;
pair<int,int> pathFind(int currPiece, bool useA, int weight, int depth){
... |
a883ed712d8180db19b7ab5ffbd7645b4a003d7c | ff0b6f4c1026ffe934fa29e98ce5db20d7584b13 | /src/SkewDetector.h | 5e1d727b2a877d9b05b709fa0d4af1b7e71c6b54 | [] | no_license | yuansanwan/skewDetection | b47c300bc0335d91e067abf96855222b247dfc0a | 66c4df96678dfd921ddc42a56b6ed7a8122527a6 | refs/heads/master | 2021-01-22T03:22:08.588414 | 2016-03-03T09:34:33 | 2016-03-03T09:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,168 | h | SkewDetector.h | /*
* SkewDetector.h
*
* Created on: Jul 9, 2013
* Author: Michal Busta
*/
#ifndef SKEWDETECTOR_H_
#define SKEWDETECTOR_H_
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#define _USE_MATH_DEFINES
#include <math.h>
namespace cmp
{
//the horizont threshold
#define IGNORE_ANGLE 30
... |
ec1fa80a538d99a327cb959a619ae08baae427f2 | 1ceb557d0e054738a69a2346ffb08aafbb041602 | /listas.cpp | 29fbae6b65a0e8a47517fed6c38d8aa0eafd4bb4 | [] | no_license | DaviSeb/Tesina-RTS | 3f74473fc2138430018a55b500a00fe1006320f7 | ececbe5b26c3f2281fac0da62a3dddc37fe5d53c | refs/heads/master | 2022-12-02T06:46:53.174818 | 2020-08-21T20:41:01 | 2020-08-21T20:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,026 | cpp | listas.cpp | /*
* listas.cpp
*
*/
#include "listas.h"
// Prototipos de Funciones
// Funciones de Listas
node_t *newNode(tcb_t *tcb, int prioridad);
node_t *addNodeList(node_t *list, tcb_t *tcb, uint64_t prioridad);
node_t *topNodeList(node_t *list);
// Crear nuevo nodo
node_t *newNode(tcb_t *tcb, int prioridad){
node_t *newN... |
441a71a6f6181f7700929e6e31f2c574acac24a8 | 2920db67e3abc01c3d5fe8b39d7b1af5726af2f1 | /SndManager.h | 9f3740a36dee8f628122c22da39985eff47f575e | [] | no_license | emfprhs119/OpenMugen | ef0ee7dd19dc813bdf3fa21d2d175962df15fb7b | 460dd6a8e37f5b5dfdc7e20774e147ecfc441693 | refs/heads/master | 2021-01-21T10:38:05.667704 | 2017-05-25T11:21:37 | 2017-05-25T11:21:37 | 87,546,464 | 1 | 0 | null | 2017-04-07T13:06:08 | 2017-04-07T13:06:07 | null | UTF-8 | C++ | false | false | 598 | h | SndManager.h | #include "global.h"
class CSndManager
{
private:
SND* lpSpriteList;
CAllocater *m_pAlloc;
bool bPlay;
Uint32 wav_length; // length of our sample
Uint8 *wav_buffer; // buffer containing our audio file
SDL_AudioSpec wav_spec; // the specs of our piece of music
Mix_Chunk *mix,*mix1;
int ff=0;
SND IpSn... |
8ddc2cde199cc6e064e065eb275538f080d93861 | 9192182cfcfcf4ce9f9bbb4003106e29b37b5bd1 | /mame-0.141/src/mame/includes/esd16.h | 9330d7a3041dc1bb1e7261639ebe5f7e169ed47a | [] | no_license | johkelly/MAME_hi | a2b9ea9d4f089f75e57de5963af187718733fccd | ccbec44e4c82e5ca83ba80de19bfb9c100dbd349 | refs/heads/master | 2020-05-17T13:29:54.978078 | 2012-07-13T19:03:50 | 2012-07-13T19:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | h | esd16.h | /***************************************************************************
ESD 16 Bit Games
***************************************************************************/
class esd16_state : public driver_device
{
public:
esd16_state(running_machine &machine, const driver_device_config_base &config)
... |
9fe07d0d734fdfff2267f13dc842654eea1bcd2b | 20d52640ca3b625535b766ee093a98d64a67fdc3 | /slave/server/client_class_manager.h | 0af8e2678aee593abe19d83e5f85b61bee037616 | [] | no_license | zdnscloud/zdhcp | ebe4013ca65d2c01b305a04d15a5b66564891cb4 | b2308b9c62ea755bc5c410d16b559748f38f966d | refs/heads/master | 2020-08-07T19:41:44.601357 | 2019-10-08T06:58:29 | 2019-10-08T06:58:29 | 213,567,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | h | client_class_manager.h | #pragma once
#include <kea/server/client_class_matcher.h>
#include <map>
using namespace kea::dhcp;
namespace kea {
namespace server {
class DuplicateClientClassName : public Exception {
public:
DuplicateClientClassName(const char* file, size_t line, const char* what) :
kea::Exception(file, l... |
e5cc41f370eebd13a7c42c281e263f4ab461f122 | b9cae22574611541bb06e87e03ab73fc6148f2c2 | /NormalMappingReflection/NAH_lib/TransformObject.h | 82af87b572dae82808fcce4e84a59df5911b9517 | [] | no_license | NikolaiAlexanderHimlan/GameGraphicsII_TeamProject | 7b7ec59098e1e8f1832f4c06624a7f087cc14078 | 52df77115a7cdba7560d0f05c6dbfad8128caec3 | refs/heads/master | 2016-08-04T20:49:00.699394 | 2015-04-25T04:42:58 | 2015-04-25T04:42:58 | 30,326,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,760 | h | TransformObject.h | /*
Author: Nikolai Alexander-Himlan
Class: EPG-425 <Section 51>
Assignment: pa 2
Certification of Authenticity:
I certify that this assignment is entirely my own work.
*/
#ifndef _TRANSFORM_OBJECT_H
#define _TRANSFORM_OBJECT_H
#include "Transform.h"
//Object containing a transform and handling complex transformations... |
3e714b8d0283946ec8d962188ca1817fb7e33d73 | f4973d588609131fbb2fdc676b93b8f77ed66824 | /C++ in web/cpp/curd.cpp | bf550bf0329905df8651cef92f797761cfaa5baa | [] | no_license | IamRitikS/experimentation | 97adc49816bd0a79035a27ebdc534857078abc50 | 8eaf808d840ebecce5a2c3f8cdccadb4e7f5d1df | refs/heads/master | 2023-04-22T02:18:08.877159 | 2021-05-18T03:51:47 | 2021-05-18T03:51:47 | 242,979,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,072 | cpp | curd.cpp | #include <iostream>
#include <stdlib.h>
#include <vector>
#include "mysql_connection.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
#include <bits/stdc++.h>
#define A 54059 /* a prime */
#define B 76963... |
8d57ef42e8828a530264d8d662042a5c056cdc75 | 9a23bf97410afe9d824ca3e28ed0b57bdf0a69cc | /Holiday/src/StepMotor.h | 5d3b22597544cff5653357def3e53054c9a7ddb0 | [] | no_license | Squirrel-Power/Holiday-Hacks | 12d78a1368f9e482b610dafbac4cc4f08e9323b9 | b5ea82db2afc5dd31046311f8f08a434ec72eb63 | refs/heads/master | 2021-01-19T08:53:33.553810 | 2015-08-26T01:12:06 | 2015-08-26T01:12:06 | 37,781,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | h | StepMotor.h | /*
* StepMotor.h
*
* Created on: Jun 14, 2015
* Author: Cyber
*/
#ifndef STEPMOTOR_H_
#define STEPMOTOR_H_
//#include "SoftwareServo.h"
#include <stdlib.h>
class StepMotor {
public:
StepMotor();
virtual ~StepMotor();
void MyRndMove();
int MaxDist;
int MinDist;
int CurrentPosition;
private:
int Get... |
8c2c4aa6148e32949680fb0dd7359472ee00b134 | 77964a8a4e92e3af22f092ea2f674cc1873bf890 | /sort.h | 2a641475973d44063ca54187c5bcba56c49722d2 | [] | no_license | Takovsky/sort | cdc704ebeaca292090e625da65c0bbe4586e1447 | d667d5ec6b310d53ef831d45732e46cf41da61cf | refs/heads/master | 2020-03-15T22:52:33.984540 | 2018-05-06T22:49:42 | 2018-05-06T22:49:42 | 132,382,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,636 | h | sort.h | #ifndef SORT_H
#define SORT_H
#include "SortHelper.h"
#include <cmath>
template <typename T>
void mergesort(T *arr, int left, int right)
{
if(left < right)
{
int mid = (left + right) / 2;
mergesort(arr, left, mid);
mergesort(arr, mid + 1, right);
merge(arr, left, mid, right);
... |
c198a5b96709a5427ad089ad855ab7ff82519c26 | 487f8831b17f773b526d12f97d499d568e39cc35 | /longest-substring-with-at-least-k-repeating-characters/sliding-window-solution.cpp | c1d96d272640d2c331a3cf9ccaa442c915a65c9e | [] | no_license | gengyouchen/leetcode | 83879ca8163ab9527765dacb5165e622d0bf3f60 | e4fdcbe858e0996f1f80034f640dbe2c0f536592 | refs/heads/master | 2021-06-28T16:13:31.670311 | 2020-09-08T14:36:32 | 2020-09-08T14:36:32 | 142,698,749 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | sliding-window-solution.cpp | class Counter {
private:
const int threshold;
int char2count[26] = {};
int nDistinct = 0, nDistinctOverThreshold = 0;
public:
Counter(int threshold) : threshold(max(threshold, 1)) {}
void add(char c) {
const int after = ++char2count[c - 'a'];
if (after == 1)
++nDistinct;
if (after == threshold)
++nDist... |
fbc5146e93f397d11972c1fcd663e66dd815ef82 | b0745d4dbaf2fb74d808a318e5fefdbc82c6ef00 | /espressifplugin.cpp | 8c4a6dc45fa69c4daca48bbbfd10740d4e240e6c | [
"MIT"
] | permissive | ThomArmax/QtCreatorEspressifPlugin | 73d5d14f8c7fc757cc18f45e4a36f493218c7e83 | 1ef87de9ff59180d68d733cc7af4f7caedac2e22 | refs/heads/master | 2020-03-06T22:09:09.132751 | 2018-03-28T14:09:18 | 2018-03-28T14:09:18 | 127,096,252 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,338 | cpp | espressifplugin.cpp | /****************************************************************************
**
** Copyright (c) 2018 Thomas COIN
** Contact: Thomas Coin<esvcorp@gmail.com>
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to dea... |
e988ddcfac938ac1136bd83a9acda05c48352505 | d453876b9c787523acd7a94f2ae56d79cd5806b6 | /books.h | c7bb94aa012a1e228f181924c70852e5ecf0a1f4 | [] | no_license | awais987123/Libarary-Management-System-with-complete-GUI | d1a9a15d295d77f601790f47023c047df91ad06a | a41750b175a163d0f00aaaada8fbdbc62331d032 | refs/heads/main | 2023-07-12T02:06:13.087941 | 2021-08-14T09:02:17 | 2021-08-14T09:02:17 | 395,948,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,895 | h | books.h | #pragma once
#ifndef BOOKS_H
#define BOOKS_H
#include<string>
#include<sstream>
#include<iomanip>
using namespace std;
class books // declaration of class
{
private://members variables
string title,
author,
publisher,
status;
int production_year,
copies,
item_id;
public://member functions
... |
e6e130c2aaaac2bd94969c778cd74170ded8c547 | 660bb7a494ba2d6d91b99ff7e319ba0961d690e4 | /Sprint4/destinationcity.h | 261687c751215ddeba1ef8f0d5bc489da9e612bc | [] | no_license | pattisonb/DataStructures | 5ce07ce59411e1f4cdb50f57d34b972d90936000 | 28589097ee833902b92869b7d3028fa9191f2c06 | refs/heads/master | 2020-12-29T23:47:44.040659 | 2019-11-08T22:31:08 | 2019-11-08T22:31:08 | 238,782,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | h | destinationcity.h | #ifndef DESTINATIONCITY_H
#define DESTINATIONCITY_H
#include "dsstring.h"
class destinationCity
{
private:
DSString name;
DSString airline;
double cost;
double time;
public:
bool isVisited = false;
int timesVisited = 0;
destinationCity();
destinationCity(const destinationCity&);
des... |
da8c9b2cc899daf17b3884fc52e25075d45b224a | 4de392fee2aa29308cfdac7a45fa83b7a597a5a2 | /Project2/src/scenegraph/primitives/Flag.cpp | 213851ebe4705522ace1e32dfa19afd2c29bbea3 | [] | no_license | danfergo/FEUP-LAIG1415-T1G11 | 99a3d99dd2ee71065e263456fd565024e1b34bd2 | cab2d5d1886f71804b3a4b0732f8459ca308087e | refs/heads/master | 2021-01-20T11:57:14.657502 | 2015-01-05T17:42:26 | 2015-01-05T17:42:26 | 24,367,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | Flag.cpp | #include "Flag.h"
#include <iostream>
FlagShader * Flag::shader = NULL;
Flag::Flag(std::string tex): Plane(100,1,1)
{
texture = new CGFtexture(tex);
}
void Flag::draw(Texture * texture){
FlagShader::activeTexture = this->texture;
shader->bind();
Plane::draw(texture);
shader->unbind();
} |
11657d2b142d7df0517aaecc8e58966c2823f245 | 853345c3ee9adeba2157b1805d77dd92049c7d3a | /STL/STL_1week _class_review/STL_1week _class_review/main.cpp | 2dae3468181e843d26921e6a7daca6965f5f8143 | [] | no_license | SuperHong94/2020_1_ | 9aea61ae1d3c97201fa0800ecae0acd1179bf93e | 7799b5a3979b63818ba8acc3f23247796189f9c9 | refs/heads/master | 2021-03-17T20:01:14.226581 | 2020-08-20T08:35:36 | 2020-08-20T08:35:36 | 247,012,963 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,772 | cpp | main.cpp | #include <iostream>
//자원을 할당하는 클래스
//문제 1 , 2
class Model
{
public:
static int cnt;
Model();
Model(size_t);
Model(const Model&);
Model(Model&&);
Model& operator=(const Model&);
Model& operator=(Model&&);
~Model();
private:
int id;
char* data;
size_t size; //unsinged int
};
Model::Model() :data(nullptr... |
bb98d50ccde7856941d5b76df0ee193fd5d6c725 | c8480b0a5f445ddd3aedf6e871810ebf8eda4262 | /source/physics.cpp | 68d0311f1e6966882fc1dd8bf43f8f90a04c3cd8 | [] | no_license | Gaspard--/The-great-SHEEP | 2df41aed8e5bb61a4e5ebbbd8ef155abbeb12b17 | 982c765eecbc9e768daa7a2c4b4bec0acd952d2b | refs/heads/master | 2020-04-11T03:01:01.338183 | 2017-03-18T10:27:19 | 2017-03-18T10:27:19 | 60,603,500 | 4 | 2 | null | 2016-06-26T10:58:33 | 2016-06-07T10:10:52 | C++ | UTF-8 | C++ | false | false | 1,200 | cpp | physics.cpp | #include "physics.hpp"
#include "fixture.hpp"
// |Vt + P| == r
// V\2t\2 + P\2 + V.Pt - r = 0
// Equation de degré 2:
//
double physics::collisionTest(Fixture &fixture, double max)
{
if (fixture.position.scalar(fixture.speed) > 0.0)
return (max);
double a(fixture.speed.scalar(fixture.speed));
double b(fixt... |
da99ef4ea112943ff0781e11450f585d5e5e3489 | c7f6aabcf4ed5b626ce3313d5f768448f74be499 | /289.game-of-life.cpp | 9045c69f81d6ece6b13914c9ff094706aa7a72b2 | [] | no_license | liuchy0427/Leetcode-Solution | f1e9bcf1384c3dd80da4e3402a46d93c9c5ee369 | dcc21f22070eb9d28f692bf98c041c70100d6d77 | refs/heads/main | 2023-03-29T12:16:35.651228 | 2021-03-29T01:50:19 | 2021-03-29T01:50:19 | 331,563,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | 289.game-of-life.cpp | /*
* @lc app=leetcode id=289 lang=cpp
*
* [289] Game of Life
*/
// @lc code=start
class Solution {
public:
void gameOfLife(vector<vector<int>>& board) {
vector<vector<int>> tmp = board;
for(int i=0;i<tmp.size();i++){
for(int j=0;j<tmp[0].size();j++){
if(tmp[... |
8f3b3db1decdaddd86b88bfa8dbdab919693bceb | 413ada855bc6b477dd6a66c3908e30927add8406 | /framework/channel/channel-common.h | 874952d342dd71a4be00bda43e960fc8fa086353 | [] | no_license | BRAHMS-SystemML/brahms | e6ba164a27cd428e5068571cbcb03caaac5517eb | 32ca5f7bb17b7ccd4dd41b0394f14f85ff99bcc7 | refs/heads/master | 2020-04-10T06:49:44.519094 | 2019-04-30T09:19:42 | 2019-04-30T09:19:42 | 21,689,838 | 0 | 2 | null | 2019-04-30T09:19:44 | 2014-07-10T10:06:52 | C++ | UTF-8 | C++ | false | false | 1,937 | h | channel-common.h | #ifndef _BRAHMS_CHANNEL_COMMON_H_
#define _BRAHMS_CHANNEL_COMMON_H_
#ifndef BRAHMS_BUILDING_ENGINE
#define BRAHMS_BUILDING_ENGINE
#endif
#include "brahms-client.h" // Ensure types are set up (INT32 etc)
#include "base/ipm.h" // ChannelPoolData
#include <string>
using std::string;
namespace brahms
{
namespace chan... |
4739f730d63e4bc845c839f280726becb83141f7 | b2d26f0c20253a65794e1dfc75a8273cf73db641 | /table/delete.cpp | f7e342baaa59a7ecc2c61ccf38e190dca3804bc0 | [] | no_license | hhsyy/door | 3fee5d3cdb453d06e768224513f61b79bfb42add | 76e025f0b216888c3ebc5ca861998bd4b1c52210 | refs/heads/master | 2021-08-28T06:52:01.250339 | 2017-12-11T13:29:32 | 2017-12-11T13:29:32 | 113,862,606 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 187 | cpp | delete.cpp | #include "delete.h"
#include "ui_delete.h"
delete::delete(QWidget *parent) :
QDialog(parent),
ui(new Ui::delete)
{
ui->setupUi(this);
}
delete::~delete()
{
delete ui;
}
|
3727a1fc0fc5d00efb376facdc6d9faa4afd8fe8 | 22d298e4a29a24aa93d83ef428e058ee59e397d7 | /client/game_objects/units/unit.h | f0eaebbdc625c4ade569637c886ca55471c989dc | [] | no_license | BlancoSebastianEzequiel/Z-Steel-Soldiers | c732462d3f9205f024ba9f1ccf2b044e55de3f46 | 9dd1caf9bc5af800bc0426ad7d613ad9941de534 | refs/heads/master | 2020-06-11T14:01:03.294744 | 2019-07-24T01:14:05 | 2019-07-24T01:14:05 | 193,990,060 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,127 | h | unit.h | #ifndef UNIT_H
#define UNIT_H
#include "../gameObject.h"
#include "../../frames/frame.h"
#include "vector"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "../../actions/unitAction.h"
#include "../ammos/ammo.h"
class UnitAction;
class Ammo;
class Unit: public GameObject {
protected:
std::vector<F... |
a12bc49c628ed5506ec3e0aa37f74a56b2943116 | efb69f2b3960a6060361c662cdd0e715a4c5ad6f | /LAB4/Reader.h | bb9d0f597a2009a34e50026303c53ad33e562d4a | [] | no_license | andrejxz/LAB4 | c5e13d77a8a03c153f1791c4e874a7f8f7c73760 | e7b450610c6b7656d1019e83eb76be5baa8a1016 | refs/heads/master | 2021-01-13T07:17:31.632467 | 2016-12-07T07:03:47 | 2016-12-07T07:03:47 | 71,649,947 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 744 | h | Reader.h | #pragma once
#include "stdafx.h"
#include "TableRow.h"
#include <string>
#include "Serializer.h"
// описывает читателя
class Reader : public TableRow
{
CString _fio;
CString _address;
CString _phone;
public:
CString GetFio() { return _fio; }
CString GetAddress() { return _address; }
CString GetPhone() { return ... |
1487caab0a0a3222c9b7891724556a8ea34a13e5 | 32815cd1de61cfa78fd025486ba74249c08b009a | /college_life/timus/1581.cpp | 2bcfc5e181a78d51c9602c968320c035a38706f3 | [] | no_license | krshubham/compete | c09d4662eaee9f24df72059d67058e7564a4bc10 | d16b0f820fa50f8a7f686a7f93cab7f9914a3f9d | refs/heads/master | 2020-12-25T09:09:10.484045 | 2020-10-31T07:46:39 | 2020-10-31T07:46:39 | 60,250,510 | 2 | 1 | null | 2020-10-31T07:46:40 | 2016-06-02T09:25:15 | C++ | UTF-8 | C++ | false | false | 476 | cpp | 1581.cpp | #include <iostream>
#include <vector>
using namespace std;
typedef vector<int> Integers;
int main() {
int n;
cin >> n;
Integers numbers(n);
for (int i = 0; i < n; ++i) {
cin >> numbers[i];
}
int count = 0;
int num = -1;
for (int i = 0; i < n; ++i) {
if (numbers[i] == num) {
++count;
} else {
if (... |
225ea47eb63061785610188d4445686a05b0894e | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /operations/carloadeditframe.h | 1a21f4c60300f37bbaf994d963399d1a7ee04f2a | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,173 | h | carloadeditframe.h | #ifndef CARLOADEDITFRAME_H
#define CARLOADEDITFRAME_H
#include "operationsframe.h"
#include "appslib_global.h"
#include "jcombobox.h"
class PropertyChangeEvent;
class JTextField;
class QLabel;
namespace Operations
{
class CarLoads;
class APPSLIBSHARED_EXPORT CarLoadEditFrame : public OperationsFrame
{
Q_OBJECT
p... |
1c0f840df905004b76b12310c048a24e6868c994 | ebab7a4b4fd80065d1dbdb7cf6c70405c0b98943 | /hcml-test.cpp | b2185c59802d923cbe95dd5a501a17ea109538c8 | [
"MIT"
] | permissive | littlepush/hcml | 5c111b2a5102611f4400ea30d7dca11dcfe1cab4 | c44ac6be9bfb452435061aa5d911bffe5b74e51e | refs/heads/master | 2021-03-23T14:26:38.650070 | 2020-03-19T10:25:38 | 2020-03-19T10:25:38 | 247,462,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | hcml-test.cpp | #include "hcml.h"
int main( int arg, char * argv [] ) {
hcml_t _h = hcml_create();
hcml_set_print_method(_h, "resp.write");
// Parse the input file
int _r = hcml_parse(_h, argv[1]);
if ( _r == HCML_ERR_OK ) {
printf("%s\n", hcml_get_output(_h) );
} else {
printf("%.*... |
f06ab55d22f46f0824f4ff2970e6b72637c5ecfd | 9b6c46aa2b28a5a172e244232f9df309f6c5404c | /pstree/pstree/process.h | b5ccee7aafca170486e2c26a32789acacae5a018 | [
"MIT"
] | permissive | Jostyck9/Process-Tree | 3296c1d0c7ea6d776b26900e07f5527acdb80d3d | 590129c935c04d315f48f28314f9e7a17becd3c4 | refs/heads/main | 2023-04-30T07:38:41.582792 | 2021-05-17T08:50:00 | 2021-05-17T08:50:00 | 366,967,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | process.h | #pragma once
#include <windows.h>
#include <list>
#include <memory>
typedef struct sProcess Process;
typedef struct sProcess {
WCHAR name[MAX_PATH];
DWORD id;
DWORD parentId;
std::list<std::shared_ptr<Process>> children;
} Process; |
382a349bf11eb6e4f3142b9a3346cd885b3b9d12 | 03b5b626962b6c62fc3215154b44bbc663a44cf6 | /src/instruction/PUSHFD.cpp | 361ce26f74ccc85017a1e3e198946976acc4864a | [] | no_license | haochenprophet/iwant | 8b1f9df8ee428148549253ce1c5d821ece0a4b4c | 1c9bd95280216ee8cd7892a10a7355f03d77d340 | refs/heads/master | 2023-06-09T11:10:27.232304 | 2023-05-31T02:41:18 | 2023-05-31T02:41:18 | 67,756,957 | 17 | 5 | null | 2018-08-11T16:37:37 | 2016-09-09T02:08:46 | C++ | UTF-8 | C++ | false | false | 183 | cpp | PUSHFD.cpp | #include "PUSHFD.h"
int CPUSHFD::my_init(void *p)
{
this->name = "CPUSHFD";
this->alias = "PUSHFD";
return 0;
}
CPUSHFD::CPUSHFD()
{
this->my_init();
}
CPUSHFD::~CPUSHFD()
{
}
|
977df48775ad01a9bebed6cc4d23318417f35119 | 1cecbd8d44397ea8db757b963cd74ef5d0ebd9a4 | /RayTracing_Cuda/rtcuda.h | 4ba97732f9734fd89edf2862d28f8848e58b89c6 | [] | no_license | weslse/RayTracing_Cuda | 0afdeb26edc4199c892da520b5cd61c49be67cef | d240f339a64feffd0fed083d2e80471a3e3386b3 | refs/heads/main | 2023-02-14T02:17:43.212275 | 2021-01-06T09:20:31 | 2021-01-06T09:20:31 | 326,907,016 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | h | rtcuda.h | #pragma once
// Common Headers
#include "ray.h"
#include "vec3.h"
// Constants
__constant__ float infinity = std::numeric_limits<float>::infinity();
__constant__ float pi = 3.141592f;
// Utility Functions
__device__ inline float degrees_to_radians(float degrees) {
return degrees * pi / 180.f;
}
|
5eece54368c7b2d3e1352420409ab98c2440c471 | f55405e83541ba9f95dce39ef9a0be5420861ed2 | /Code/main.cpp | 4be5c05c7df667bf934786ad7c438eada593615c | [] | no_license | jamieson1995/AStar-Pathfinding | ef2a613b4d417ac3de4dd04eade8787765a3ea0a | ae5bea1de301aeb8f0ca43fce9de1a4a95c928d9 | refs/heads/master | 2021-01-11T04:10:19.414177 | 2016-10-18T11:34:41 | 2016-10-18T11:34:41 | 71,238,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | main.cpp | #include <SDL.h>
#include <iostream>
#include <math.h>
#include "Images.h"
#include "ScreenManager.h"
bool init(const int SCREEN_HEIGHT, const int SCREEN_WIDTH);
void close();
ScreenManager Screen;
int main(int argc, char** argv){
bool quit = false;
SDL_Event event;
int Active_Tile = 0;
const int SCREEN_HEIGH... |
65d961cadc9691e8f7bf888b6dd9dfc1f8f4cf97 | d1427c0b9c5cb618b4dd77703139e4de3a0b6a61 | /main.cpp | d6dc63ccb313ef283a4d0a2f386e4111329b27e4 | [] | no_license | 80deardorff/String-Pyramid-Builder | c8bc3693080f0cb169b78d0d6af5eedee9421131 | 2803f0f21371da65339169d3d988b7aee73f1878 | refs/heads/master | 2020-03-28T22:01:53.045705 | 2018-09-17T23:22:00 | 2018-09-17T23:22:00 | 149,200,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | main.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string message {};
cout << "Enter a sentence and press Enter: ";
getline(cin, message);
cout << endl << endl;
size_t spaces {message.length() - 1};
size_t index {message.length()};
string reversed_message {message};
... |
c2cae7978ddf18c7d489b8fbc37b38f38cb006e1 | 221e3e713891c951e674605eddd656f3a4ce34df | /core/OUE/Error.cpp | b5f35e3ed9913b3865bb248efec32f6446b5a99d | [
"MIT"
] | permissive | zacx-z/oneu-engine | da083f817e625c9e84691df38349eab41d356b76 | d47a5522c55089a1e6d7109cebf1c9dbb6860b7d | refs/heads/master | 2021-05-28T12:39:03.782147 | 2011-10-18T12:33:45 | 2011-10-18T12:33:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,897 | cpp | Error.cpp | /*
This source file is part of OneU Engine.
Copyright (c) 2011 Ladace
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
736c4064b65b3544699f3b56086638d5502a195e | 5c3c559b9accafebcbd143f543ecf20dd4410269 | /Catastrophe/Game/velocity direction.hpp | 21f837350b645fbbe629b1fc1f0af1b1e613c941 | [] | no_license | indianakernick/Catastrophe | cd2688af966755d934c20aafdb73562674071939 | 8b50525c43c4f6d6b034e98c1882ded492745458 | refs/heads/master | 2022-05-24T13:45:30.678733 | 2018-10-06T09:32:44 | 2018-10-06T09:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | hpp | velocity direction.hpp | //
// velocity direction.hpp
// Catastrophe
//
// Created by Indi Kernick on 21/10/17.
// Copyright © 2017 Indi Kernick. All rights reserved.
//
#ifndef velocity_direction_hpp
#define velocity_direction_hpp
#include <glm/vec2.hpp>
class VelDir1 {
public:
VelDir1() = default;
explicit VelDir1(float);
flo... |
04c7b631951964b497adbca048f84942d45caff8 | 90ff6d52061bc23deecbbaf60fe4b9b54aca4b7b | /solidarity/event.h | 2c52f8b34eaad9bcc26a3ce1da55012983e1e460 | [
"Apache-2.0"
] | permissive | lysevi/solidarity | 6e3ee5fd26a0f26f7d89ed8a96f4334ccacbb8dd | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | refs/heads/master | 2021-06-29T01:18:07.694329 | 2020-10-01T10:41:24 | 2020-10-01T10:41:24 | 171,683,290 | 1 | 0 | Apache-2.0 | 2019-08-19T07:07:19 | 2019-02-20T13:59:59 | C++ | UTF-8 | C++ | false | false | 1,161 | h | event.h | #pragma once
#include <solidarity/error_codes.h>
#include <solidarity/exports.h>
#include <solidarity/node_kind.h>
#include <solidarity/raft.h>
#include <optional>
namespace solidarity {
enum class command_status : uint8_t {
WAS_APPLIED,
APPLY_ERROR,
CAN_BE_APPLY,
CAN_NOT_BE_APPLY,
IN_LEADER_JOURNAL,
ER... |
e6b204b2eeb6f4f3fba073a9cc8b1030f48cc791 | be460e66f05c0259cf45e6c0cdb653fc2913972d | /acm/Online-Judge/hdu/code/hdu5006.cpp | b49dc5163c616b7ba663da13352a0c77578ede2d | [] | no_license | Salvare219/CodeLibrary | 3247aee350402dac3d94e059a8dc97d5d5436524 | 8961a6d1718c58d12c21a857b23e825c16bdab14 | refs/heads/master | 2021-06-16T18:38:21.693960 | 2017-05-09T12:47:36 | 2017-05-09T12:47:36 | 81,569,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,666 | cpp | hdu5006.cpp | #include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<vector>
#include<queue>
using namespace std;
vector<int>g[10050];
vector<int>w[10050];
int com[10050];
int lab[10050];
bool v[10050];
int find(int s)
{
return com[s]==s?s:com[s]=find(com[s]);
}
d... |
79a8315ed58c63a7e2da39a2a0bd0cbae9feaed3 | fa28b1ad5b7510b3b4228573c304bc4e39aba2e6 | /src/pwgen.h | c85c71c279b7d0f8bf477e5888764e37cdebfbbc | [
"CC-BY-4.0"
] | permissive | enivium/password_generator | e942b2fb8ba0d2b398dcb66a9354ef2f06fba73e | 8aefaf32c9d95111617872533a607d3bfee61a0e | refs/heads/master | 2020-04-28T08:27:48.031170 | 2019-04-22T03:04:23 | 2019-04-22T03:04:23 | 175,127,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | h | pwgen.h | // pwgen.h
// Functions and variables for the password generator program
#pragma once
#include <vector>
// The number of characters to pull from /dev/urandom on each read
const int rand_vec_length = 20;
// Fill the vector with psuedo-random bytes
int fill_rand_vec(std::vector<char> &rand_vec);
|
886061d8f3d34f32e0399a4708cc237b331f0cb6 | 1f774438979d1c2ad5d56b963a99c8b4e8d70406 | /Examples+Challenges+Functions/Netwon Backward Interpolation.cpp | fca27cd701d26374b3fd422abbf9ce784e10f010 | [] | no_license | SparkyTS/CPP | f62a247778cbd66bd1ff7040ae334324ea82a5d0 | a2c0c91472993151c04212028ed6178b5ee2397e | refs/heads/master | 2020-05-01T10:35:00.484244 | 2019-03-24T14:22:39 | 2019-03-24T14:22:39 | 177,423,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,712 | cpp | Netwon Backward Interpolation.cpp | #include<stdio.h>
float x[20]/*={1891,1901,1911,1921,1931}*/;
float y[20]/*={46,66,81,93,101}*/;
float temp[20];
static int length;
show_steps()
{
int i;
static int count=length;
for(i=0;i<count;i++) printf(" %0.2f ",y[i]); printf("\n"); count--;
}
get_tabular()
{ int i,j,k;
show_steps();... |
a2a7fab32793e4ae65ac9de72ce5937a3bc28fad | b2928ec6d1d7e6399db4b7803260d002e809ac92 | /ISHavok/Havok.h | eb7c681204d3200bcbaa6daaccb61a8ba288775e | [] | no_license | gui-works/IronSightEngine | 7884fb8f9bae1f60e02136a904b158f97d3d6322 | ec7ab97565ec3d45995b976ea76d5bc57bd1b675 | refs/heads/master | 2020-07-18T03:55:07.872387 | 2018-03-30T14:33:19 | 2018-03-30T14:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,767 | h | Havok.h | #ifndef __HAVOK_H
#define __HAVOK_H
#include "ISHavok.h"
#include "..\\global\\HKResult.h"
#include <map>
/*#include <Common/Base/hkBase.h>
#include <Common/Base/Memory/Allocator/Malloc/hkMallocAllocator.h>
#include <Common/Base/Memory/System/Util/hkMemoryInitUtil.h>
#include <Physics/Collide/Shape/Convex/Box/hkpBox... |
359eefeba22a3fc8d558db0faeeff542f2c7c99d | 2e11e3d44990a743d4e07f8e9bc94182e67ed861 | /problems/1091. Shortest Path in Binary Matrix.cc | 995177c76be724009e5ab6ed6c81f8f90aabfca6 | [] | no_license | pokaa3a/leetcoding | 8c7c4f20f4a424adeaf43173f33ef01780016dc5 | 7a995cee0eb621df2df5611d1c0a8c5d1a11dca1 | refs/heads/master | 2022-07-22T12:00:38.938350 | 2022-06-17T04:55:42 | 2022-06-17T04:55:42 | 247,426,082 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,525 | cc | 1091. Shortest Path in Binary Matrix.cc | #include <iostream>
#include <vector>
#include <queue>
#include <set>
using namespace std;
// class Solution {
// public:
// int shortestPathBinaryMatrix(vector<vector<int> >& grid) {
// if (grid[0][0] == 1) return -1;
// int n = grid.size();
// if (n == 1) return 1;
// queue<pair<int, int> > q;
// q.push(... |
a2e4e8bb9a6093f3e599807af4ba57cad91e555a | 297b4c9ff85b4f3f9713d2dab63fff0dd92a55ce | /Ant.hpp | 1df99192d7c1bd0e34eba8cab5b7da49782e4c58 | [] | no_license | janwawruszczak1998/TSP-Algorithms | cba8e36f13dcfe6e98e78e4dfc79a5d6fc57a6a2 | d6d429a81fdb11e1da306d9e881ef6ed240f5778 | refs/heads/master | 2022-12-20T17:23:45.572628 | 2020-09-29T12:18:52 | 2020-09-29T12:18:52 | 214,018,697 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 293 | hpp | Ant.hpp | //
// Created by Jan on 2020-01-06.
//
#ifndef PEA_ANT_H
#define PEA_ANT_H
#include <vector>
class Ant {
public:
Ant(unsigned, unsigned);
unsigned get_number();
std::vector<bool> &get_tabu();
private:
unsigned number;
std::vector<bool> tabu;
};
#endif //PEA_ANT_H
|
f8669ba6c0203ec9693a635b1ec9268d50a8f69a | d489311b0ef11b6431e0cf2876bee6fb5bc95f40 | /evalcom2/AddInComCore.h | b5281a6f090c188d2e2d2c188c61edd5e9c7bb8e | [] | no_license | SergeyXa/erpmebel.ru.evalcom2.addin | 2349e476086e7e091667cc9f8acf14fe79057a46 | 0bfd821f88f6464d8cc7b7594ff2d466d234c997 | refs/heads/master | 2020-03-30T20:30:54.109005 | 2018-10-04T14:59:29 | 2018-10-04T14:59:29 | 151,591,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | AddInComCore.h | #pragma once
#include <atlbase.h>
#include "Compiler.h"
#include "Interpreter.h"
class CAddInComCore :
private CCompiler,
private CInterpreter
{
public:
HRESULT Compile(SAFEARRAY** paParams);
HRESULT Load(VARIANT * pvarRetValue, SAFEARRAY** paParams);
HRESULT SetValue(VARIANT * pvarRetValue, SAFEARRAY** paParams... |
9a39774b74ef4810458d2c863b482a6b6f0b64c2 | c7532c99dfe6fd27c6a12fdc9a98ce1fe67bc93d | /Engine/Source/Editor/Gizmo.h | d848db5004839e8bb0dfb860d59a7495879419b0 | [
"MIT"
] | permissive | lqq1985/OpenGL4.5-GameEngine | a7d3dcf408b06b59f5838290ad3a72ec51bfda1d | 79468b7807677372bbc0450ea49b48ad66bbbd41 | refs/heads/master | 2020-08-17T22:57:34.064047 | 2019-03-05T20:36:50 | 2019-03-05T20:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | h | Gizmo.h | #pragma once
#include <include/dll_export.h>
#include <include/glm.h>
#include <Core/GameObject.h>
enum class GIZMO_MODE {
TRANSLATE,
Rotate,
Scale
};
class DLLExport Gizmo : virtual public GameObject
{
public:
Gizmo();
~Gizmo();
void SetScale(glm::vec3 scale);
void SetMode(GIZMO_MODE mode);
}; |
b64b59792dbbc5f5ca9c9b73c4564ff5b428f222 | 73b329e4becd3045989e17fbc0c6aed3d46b5854 | /Fitting/11742_HybridFitting/Meow.cpp | 09d57815cfbc7d9e0a86f4a94a5bad9a3d2d3cbc | [] | no_license | FHead/PhysicsHiggsProperties | 36ee6edd9b4a744c41ae8eda58d3b0979e02868d | 25e2cf36b633403a7661488167279a917b76882c | refs/heads/master | 2023-06-01T12:58:09.411729 | 2020-05-05T20:47:51 | 2020-05-05T20:47:51 | 377,256,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,686 | cpp | Meow.cpp | #include <iostream>
using namespace std;
#include "DataHelper.h"
int main()
{
DataHelper DHFile("Normalization.dh");
cout << DHFile["ee"]["T1A"].GetDouble() / DHFile["em"]["T1A"].GetDouble() << endl;
cout << DHFile["ee"]["T1B"].GetDouble() / DHFile["em"]["T1B"].GetDouble() << endl;
cout << DHFile["ee"]["... |
378160dc81cbab77f1f05984a7db13b055a85e58 | 801f7ed77fb05b1a19df738ad7903c3e3b302692 | /refactoringOptimisation/differentiatedCAD/occt-min-topo-src/src/TDataXtd/TDataXtd_Axis.cxx | de312c2546d79adb3215a785e5f44be559f914ed | [] | no_license | salvAuri/optimisationRefactoring | 9507bdb837cabe10099d9481bb10a7e65331aa9d | e39e19da548cb5b9c0885753fe2e3a306632d2ba | refs/heads/master | 2021-01-20T03:47:54.825311 | 2017-04-27T11:31:24 | 2017-04-27T11:31:24 | 89,588,404 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,775 | cxx | TDataXtd_Axis.cxx | // Created on: 2009-04-06
// Copyright (c) 2009-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Sof... |
2a73584b6d7a65577fef48f201d1240f932f5858 | 01fcee587136d5182b2d4ec8c195be350b547555 | /codeeditor.h | bd43e63313922e87db3e951ba54d9ffff76acb6d | [] | no_license | FUMRobotics/FUMDelta | 49600c416f9cd4ffd8d3a4c9b68f434a6858943c | b41f18ce82592aa637a77afc2a57e9b297c16aad | refs/heads/master | 2021-11-21T03:56:36.844534 | 2021-11-16T18:15:18 | 2021-11-16T18:15:18 | 199,139,925 | 2 | 1 | null | 2021-08-23T11:38:47 | 2019-07-27T08:46:20 | C++ | UTF-8 | C++ | false | false | 4,181 | h | codeeditor.h | #ifndef CODEEDITOR_H
#define CODEEDITOR_H
#include <QMainWindow>
#include <highlighter.h>
#include <QShortcut>
#include "QSettings"
#include <QPlainTextEdit>
#include <QCompleter>
#include <QStringListModel>
#include "files.h"
#include "search.h"
#include "utils/conversion.h"
#include "utils/templates.h"
namespace U... |
7b5087793d09f72c9d882eb6166d8103a52c0030 | f0073a9b434a9f9d787546f839d521be9dc621d7 | /Classes/CStoryScene.cpp | 8216990a0e6c7e5455f1511b32265431de8f2a71 | [] | no_license | pluto27351/Fraction | 0ad247c6e3ecd2c54587dca213a4f4aa3fcc0558 | 3a7aa17e77c9f925d1831a10e9ad8949cda4578d | refs/heads/master | 2020-04-07T02:07:12.100309 | 2019-10-08T12:27:19 | 2019-10-08T12:27:19 | 157,964,552 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,461 | cpp | CStoryScene.cpp | #define SCREEN_POS Vec2(1365.5,768)
#include "CStoryScene.h"
#include "CTeachScene.h"
#include "CMenuScene.h"
USING_NS_CC;
using namespace cocostudio::timeline;
Scene* CStoryScene::createScene()
{
auto scene = Scene::create();
auto layer = CStoryScene::create();
scene->addChild(layer);
return scene;... |
5a5f9c3d02a22ceb4738924e9128479b231a7629 | db465710cb4c1849ba2a961a0b51bb3541aeb5c8 | /test/TestCell.cpp | 86a62e1bbf39a71c8842b26242f5954e67788ccd | [
"MIT"
] | permissive | samsparks/climaze | cff513f09d83bcfbb0aa5b5325e6a28c742febc9 | a49dc0a926f86311212a61e837ebb46e2a387fe2 | refs/heads/master | 2021-01-22T05:33:59.906954 | 2017-03-15T20:33:34 | 2017-03-15T20:33:34 | 81,677,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | cpp | TestCell.cpp | #include <boost/test/unit_test.hpp>
#include "Cell.hpp"
BOOST_AUTO_TEST_SUITE(TestCell)
BOOST_AUTO_TEST_CASE( Initialization )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), false );
BOOST_CHECK_EQUAL( c.Opened(), false );
}
BOOST_AUTO_TEST_CASE( Accessors )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), f... |
735892718c22f75c134fd35f763f498817804b70 | 5e6defa33a822f1bbc690196b6013f9695ccfacf | /pythoncompiler-read-only/.svn/pristine/73/735892718c22f75c134fd35f763f498817804b70.svn-base | 5dbd6e173537e28e0610c249071ed186f6395190 | [] | no_license | tamzinselvi/cs164-proj1 | 1936c363c87a7d999e44d6f4cc83b110957990ea | fdcc6752f72211cbadb669af511879754c6e5a78 | refs/heads/master | 2022-06-14T17:21:16.819823 | 2013-10-16T14:54:40 | 2013-10-16T14:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,516 | 735892718c22f75c134fd35f763f498817804b70.svn-base | /* -*- mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil; -*- */
/* Definitions used internally by VM-related sources. */
#ifndef _VM_INTERNAL_H_
#define _VM_INTERNAL_H_
#include <stack>
#include <vector>
#include "vm.h"
#include "machine-dep.h"
/** Target for IL dump commands. */
extern std::FILE* ILOu... | |
242f3edc4bfa3cc35fd1a4c5b0379ed7017cd75e | 97386f844ed852f4f9cb6ffb2444333107e9b8a6 | /4_planning/visual_ekf_tester/src/qp_generator.cpp | 3c887807c74e350c28536e99d5159bb9fbef8109 | [
"MIT"
] | permissive | robomasterhkust/ros_environment | 865c43bfb1f7139992dcfbcf8ebb0801f5fb33f7 | bac3343bf92e6fa2bd852baf261e80712564f990 | refs/heads/master | 2018-12-27T05:19:11.121916 | 2018-11-21T09:16:57 | 2018-11-21T09:16:57 | 114,446,270 | 8 | 1 | MIT | 2018-09-21T06:50:53 | 2017-12-16T08:39:11 | C++ | UTF-8 | C++ | false | false | 10,966 | cpp | qp_generator.cpp | #include "qp_generator.h"
#include <stdio.h>
#include <ros/ros.h>
#include <ros/console.h>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
using namespace Eigen;
Vector3d startVel;
Vector3d startAcc;
#define inf 1>>30
int m=3; // number of segments in the trajectory
vector<double> T... |
7e82b7eaa2f4c7d88dac3fb77ae628a25fab4ca7 | 97478f3322b1120f7bda1ce87e2f2de93ea8b1cb | /ast.hh | 81f0f171e91ea04a52e2db7e864c211c852f4513 | [
"MIT"
] | permissive | piotrbla/simplePoly | e1c0a9b33bfe3ef466b0c94ad582d0dafe1a8bda | 0b26e555d390dde81fbc23d71cf1b490d1204504 | refs/heads/master | 2021-07-15T02:24:43.420409 | 2021-06-16T22:31:15 | 2021-06-16T22:31:15 | 85,855,498 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,216 | hh | ast.hh | #ifndef TC_AST_H
#define TC_AST_H
#include <isl/ctx.h>
#include <isl/id.h>
#include <isl/ast.h>
#include <pet.h>
struct tc_ast_stmt_annotation
{
struct pet_stmt* stmt;
isl_id_to_ast_expr* id2expr;
};
struct tc_ast_for_annotation
{
isl_id_list* nested_iterators;
isl_bool is_parallel;
};... |
885c067dcb4360c80191a7afb57d0d4a06ecea5b | d51f3b5d0a8b85d0de7f275f59f65a9b7b978b8a | /UVA/1237/19817384_AC_10ms_0kB.cpp | 6cd4faa4604c2c8255659b34beea569681adadb3 | [] | no_license | CIA66/Competitive-Programming | 418af2c3eb30f78fc5e143d47972fb202f0b61c0 | 9afd528959a7fc2c31cafb143ed0a87e2a10ef88 | refs/heads/main | 2023-02-09T08:09:06.874776 | 2020-10-30T06:52:14 | 2020-10-30T06:52:14 | 308,543,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | 19817384_AC_10ms_0kB.cpp | #include<stdio.h>
struct Data{
char name[26];
int low;
int hi;
}data[10006];
int main(){
int T = 0;
scanf("%d", &T);
for(int a=0; a<T; a++){
int D = 0;
scanf("%d", &D);
for(int b = 0; b<D; b++){
scanf("%s %d %d", data[b].name, &data[b].low, &data[b].hi);
}
int Q = 0, count = 0, idx = 0... |
e2f53513f750ffb1aa3b531caba93c309d472623 | 9dc602674d32e79112c3e5598977d9d69470fa90 | /ex8/Cell.h | eaaa78da1ba8eccde40a5397a6a20942a64fc814 | [] | no_license | meravboim/cpp-ariel | e2a992aa12143b5d196b13aa65085a50ece27687 | 1523fab6067ccf15395d8865b898a78b1246b79f | refs/heads/master | 2021-04-15T12:25:14.306114 | 2018-06-11T13:09:36 | 2018-06-11T13:09:36 | 126,877,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | h | Cell.h | #pragma once
#include <iostream>
#include "IllegalCharException.h"
using namespace std;
class Cell {
friend class Board;
public:
Cell (char c) : my_char(c){ //construter
if(c!= 'X' && c!='O' && c!='.')
throw IllegalCharException(c);
}
Cell (){ //empty construter;
my_char='.';
}
Cell& operator=... |
43ce43ab1ece3e2e9517ae2d5d77b1f4418d7419 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /CondTools/Hcal/bin/corrResps.cc | a1c842e2356b53d731ccf32d44f9161e5eb9031a | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | C++ | false | false | 1,218 | cc | corrResps.cc | #include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
#include "CondFormats/HcalObjects/interface/HcalRespCorrs.h"
#include "Geometry/CaloTopology/interface/HcalTopology.h"
int main (int argn, char* argv []) {
if (argn < 3) {
... |
6e4373b81935266f80ae4c27bd05621147cf8bee | a309d6ea67b7caf7177bf34ccc064f46bfaad7b5 | /ServiceManager/Service.h | dea24e6b609c123f066f0468739519271509078d | [
"MIT"
] | permissive | fengjixuchui/JAV-AV-Engine | a968ecd18ad4954e3668030f92e5680d93cd0969 | c258c1bb283d2cccc358dab5d3a7bacd4fc35790 | refs/heads/master | 2020-04-30T16:08:46.699929 | 2018-08-25T09:28:44 | 2018-08-25T09:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | h | Service.h |
#ifndef _SERVICE_
#define _SERVICE_
class Service
{
public:
virtual bool Start()=0;
virtual bool Stop()=0;
virtual bool Puase()=0;
virtual bool Continue()=0;
};
#endif |
9bbe8574515f5db7ff782bc830f7b441785dd0c4 | adc7281c7087675312a5b5f8d8eb746a228235ff | /library/fileOperations.cpp | 52519495f1530b0d231d3deee35ad2e1b0747e12 | [] | no_license | cerber-os/TIN | d43695f23cada6a7d71ac9f8235f30d71832b0c8 | 46f770cab4eae0bf494126f48b2482bd4d6f2b18 | refs/heads/master | 2023-02-25T10:58:22.659479 | 2021-01-31T22:27:22 | 2021-01-31T22:27:22 | 326,817,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,828 | cpp | fileOperations.cpp | #include "fileOperations.h"
using namespace std;
bool check_if_its_number(string str) {
for (int i = 0; i < str.length(); i++)
if (isdigit(str[i]) == false)
return false;
return true;
}
uint16_t getPortFromString(string host){
size_t pos = host.find_last_of(':');
string port = host... |
dfd40131070ae1ed6ffd0b090ffd01d7a911d3c6 | 1c7acbcbbd55ce560deee761d93dc6996660b88a | /Tutorial 7/Ejemplo1/Ejemplo1.ino | f9969335177543ce964c618bc8e6041a65f381d8 | [
"MIT"
] | permissive | ESIBot/taller-microcontroladores | a8f7a3f8232a00e8e4f974a76bc71d5e61902ab2 | bb94e692490a8a0b95107de5848dc3ba275bfb37 | refs/heads/master | 2021-01-09T05:52:54.392394 | 2017-02-03T12:45:15 | 2017-02-03T12:47:56 | 80,828,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,132 | ino | Ejemplo1.ino | /*
Tutorial 7 - Ejemplo 1
Comunicación con ADXL345 mediante I2C
Taller de uControladores ESIBot 2013
*/
#include <Wire.h>
#define ADXL345ADDRESS 0x53 //Dirección del acelerómetro
#define DATAADDRESS 0x32 //Primer registro con los datos de los ejes
#define POWER_CTL 0x2D //Registro de control de... |
335580b52853a5f558cb677f1d44661d32a79100 | 0dc20516079aaae4756d28e67db7cae9c0d33708 | /jxy/jxy_src/jxysvr/src/server/gameserver/logic/awaken/awakenpropmgr.h | fe2cf824335cb6fa201293f1a7fa062289b6ce14 | [] | no_license | psymicgit/dummy | 149365d586f0d4083a7a5719ad7c7268e7dc4bc3 | 483f2d410f353ae4c42abdfe4c606ed542186053 | refs/heads/master | 2020-12-24T07:48:56.132871 | 2017-08-05T07:20:18 | 2017-08-05T07:20:18 | 32,851,013 | 3 | 8 | null | null | null | null | GB18030 | C++ | false | false | 5,548 | h | awakenpropmgr.h |
#ifndef _AWAKENBASEPROPPROPMGR_H_
#define _AWAKENBASEPROPPROPMGR_H_
#include <sddb.h>
#include <sdsingleton.h>
#include <sdtype.h>
#include <sdhashmap.h>
#include <common/server/utility.h>
#include <common/client/commondef.h>
#include <logic/base/basepropmgr.h>
using namespace SGDP;
#define GOLD_RUD... |
fb4886d6c8904c4bede8a936504531935e2579fe | dc11b7e4255bf76ac757a4512accfcd5728ee728 | /complex.cpp | 57e04281596a69043c32cb947803e1b5a7fe5218 | [] | no_license | Hostridet/complex | 870d2c22df39d773d73dc40d7b3df5566ea0d4ab | ca727965ea278d465c769ec5c1d43e17307ae016 | refs/heads/main | 2023-02-17T20:50:52.639332 | 2021-01-14T18:26:28 | 2021-01-14T18:26:28 | 329,700,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,013 | cpp | complex.cpp | #include "complex.h"
#include <iostream>
#include <cmath>
using namespace std;
Complex operator + (const Complex& a, const Complex& b)
{
Complex result;
result.real = a.real + b.real;
result.imaginary = a.imaginary + b.imaginary;
return result;
}
Complex operator - (const Complex& a, const Complex& ... |
3fb7a84f667d30e568e8396e91a4278292eff09d | 880f7eaab1e8808288e2bf613235e5e933c47af4 | /nre/apps/unittests/tests/RegMngTest.cc | c8d5ab51bdcb574557761d1ecaa0c843ca77e194 | [] | no_license | blitz/NRE | ddfcdad048ed50205d30cce7671e506da02ff676 | 0b6869d808f41ffa3aaaeea50cbbb45ea5b1bb14 | refs/heads/master | 2021-01-18T07:49:58.502808 | 2012-11-02T13:30:50 | 2012-11-02T13:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,548 | cc | RegMngTest.cc | /*
* Copyright (C) 2012, Nils Asmussen <nils@os.inf.tu-dresden.de>
* Economic rights: Technische Universitaet Dresden (Germany)
*
* This file is part of NRE (NOVA runtime environment).
*
* NRE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2... |
12fb72ad5771fe3b20bfdad22a9002fe810acd4f | d5dcf4ca3dac2976e99e9fae2bf4e5e45fe94de5 | /rest.hpp | 4cb3cef428c190b3734461389f9ccfb6a1622d89 | [] | no_license | peterdran/pitronome30 | 68267c3945e163139affc4549ed95ba0c491106a | 0695d61147519157eaef61e399c2e07740aec012 | refs/heads/master | 2023-08-07T06:55:57.774448 | 2021-10-10T18:46:27 | 2021-10-10T18:46:27 | 415,427,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | hpp | rest.hpp | #include <string>
#include <cpprest/http_listener.h>
using http_listener = web::http::experimental::listener::http_listener;
class rest {
public:
static http_listener make_endpoint(const std::string& path) {
web::uri_builder builder;
builder.set_scheme("http");
... |
2366aefc471af07e629d3711b52aafdf828e0984 | 3f89b357ca579858722982c744e98a96ebe2791c | /src/FileSystem/FileFilter.h | 325cb28d4aabdfef2b66f10e6923632e61f91b24 | [] | no_license | jofrantoba/blazingdb-io | 25ca696a0e69a4e7fa1039a870f9495bd69b49cb | 10b552d0db66a7ce52630f7bcf819d4fc7990e20 | refs/heads/master | 2020-06-30T22:52:17.067046 | 2018-11-23T15:32:12 | 2018-11-23T15:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | h | FileFilter.h | /*
* FileFilter.h
*
* Created on: Dec 20, 2017
*/
#ifndef _BLAZING_FILE_FILTER_H_
#define _BLAZING_FILE_FILTER_H_
#include <functional>
#include "FileSystem/FileStatus.h"
using FileFilter = std::function< bool (const FileStatus &fileStatus) >;
using FileFilterFunctor = std::unary_function<FileStatus, bool>;
... |
57e332c03620d986b138e0d66c53fddc00aa5556 | 3c301163c5b3745b296ac0b01026e03e9d17cd7b | /j06_Casts/ex00/Converter.cpp | 1cff1d82cbbbed78b60435bc696b524a50287d31 | [] | no_license | Ngoguey42/piscine_cpp | 572c4994908ebe869669163e8fa89266fe0473a0 | 371c6f6f15e2b84991ec6aa7d5df3293a780bb9a | refs/heads/master | 2016-09-06T19:26:48.226323 | 2015-05-01T18:01:43 | 2015-05-01T18:01:43 | 31,645,174 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,465 | cpp | Converter.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// Converter.cpp :+: :+: :+: ... |
e9451a27bdd78a017ef1cd957c8ca41ee986bd35 | 6bf727dcda5b617a7883f7f866afe30bb2bc9ef2 | /src/cpp/include/Mesh.h | 7dad3058a722f7484ffcbc37937307f439dc1d7f | [] | no_license | adam-howlett/DDMRes-2D | 6cfe3c810e3f08958b7a78abe7c942dcb467ee07 | ad22d2b0f8bfbb0167cfde1dfe2b0f621cc41946 | refs/heads/main | 2023-01-24T13:01:18.741397 | 2020-12-07T02:20:02 | 2020-12-07T02:20:02 | 318,888,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 728 | h | Mesh.h | #ifndef MESH_H
#define MESH_H
#include "Matrix.h"
class Mesh
{
public:
Mesh();
virtual ~Mesh();
void Peterson(int n);
void dispElements();
void dispVertices();
void Output_Data();
void Refine();
void Vertical_Refine(int n);
//Access Methods
... |
93f06249240696bc7daaab1a372959dcb07cd261 | fab52219940b76df9a69a33bca34a8481f6184ae | /UVa 10250.cpp | fa24dc5b72781912de351d4cf6df6e83111891a3 | [] | no_license | KimDinh/UVa-Online-Judge-Practice | 1bced3408f33f6190f7cb972d309a9ad38c0bfe2 | b3f40f27cc18a5f6959733db7fd90fe4a2a25135 | refs/heads/master | 2020-04-05T09:01:08.783492 | 2019-08-21T01:41:32 | 2019-08-21T01:41:32 | 156,738,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | cpp | UVa 10250.cpp | #include <iostream>
#include <fstream>
#include <cstring>
#include <string>
#include <algorithm>
#include <cmath>
#include <climits>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <queue>
#include <deque>
#include <unordered_set>
#include <stack>
#include <iomanip>
using namespace std... |
d33e1f513c673f18ddaf7017b8d21ec61312f10c | ebe36eba494b9ab9bb658686e69c9253c43cb524 | /Practice/GeeksForGeeks/Subarray_with_sum_0.cpp | b11df5c69d2fb12da63994568ac8ce7491f26c08 | [] | no_license | Dutta-SD/CC_Codes | 4840d938de2adc5a2051a32b48c49390e6ef877f | ec3652ec92d0d371fd3ce200f393f3f69ed27a68 | refs/heads/main | 2023-07-03T11:46:30.868559 | 2021-08-19T12:03:56 | 2021-08-19T12:03:56 | 316,813,717 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | Subarray_with_sum_0.cpp | # include <iostream>
# include <unordered_set>
using namespace std;
bool subArrayZeroSum(int arr[], int n){
unordered_set <int> prev_sums;
int sum = 0;
for(int i = 0; i < n; ++i){
sum += arr[i];
if (!sum || prev_sums.find(sum) != prev_sums.end()) return true;
prev_sums.insert(sum... |
e569aa0c44a01e8e3f970fd8bea9880316c7150b | be1b7883f4284a96cddb3aa2d2ded6c65e4908b6 | /ch5Warmup.cpp | 17c7fccd59d317b2b3ceaca4d1c15514d542b72a | [] | no_license | tccmobile/Fall2018CPP | 084736ecdb9b348495ee2641f97b45aec3e92c36 | 8bd705e4623240d95e65b2916ee8134d5e6c6c6d | refs/heads/master | 2020-03-27T16:01:36.304541 | 2018-12-04T16:16:06 | 2018-12-04T16:16:06 | 146,754,976 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | ch5Warmup.cpp | //
// Created by T10115885 on 9/25/2018.
//
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<double> weights(5);
double total = 0, average = 0, max =0;
for (int i = 0; i < weights.size(); ++i) {
cout<<"Enter weight "<<(i+1)<<":"<<endl;
cin>> weights.at(i);
... |
647b982c71883820fdf4a2c91e45dddc8528ce63 | 79e897a9e762282bc5a9795dc8378355dc827f1a | /Module-cpp-03/ex04/ClapTrap.hpp | b8058665441c41b5a95f4b111848c796b71f46ed | [] | no_license | sphaxou/CPP-42 | 37a807c8c3799b93da681bec732ba0b6eab6777d | dee5653046d890737ffec93651696fb326a970aa | refs/heads/master | 2023-01-13T19:40:32.988592 | 2020-11-19T16:28:17 | 2020-11-19T16:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,596 | hpp | ClapTrap.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClapTrap.hpp :+: :+: :+: ... |
83d416988db71d8626b105e428f1cf84d57d38c9 | 6ed43fd283d29dff95ca3340a9cf94473aeadc4e | /BaekJoon/p_13458 시험 감독.cpp | db33cc3b36173a1fd2bf090c7f569e074c10887c | [] | no_license | codehopper93/algorithm | 5d32e13c647e4afa6cf96a0f745ef004fd84a29e | f650661b78e69c71c0a7d189ca12a87c8c58110a | refs/heads/master | 2021-09-17T15:00:52.772022 | 2018-07-03T04:45:50 | 2018-07-03T04:45:50 | 114,850,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | cpp | p_13458 시험 감독.cpp | #include<iostream>
#include<vector>
using namespace std;
int main() {
int N;
int B, C;
long long ans=0;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; i++) {
cin >> A[i];
}
cin >> B >> C;
for (int i = 0; i < N; i++) {
A[i] -= B;
if (A[i] < 0) {
A[i] = 0;
}
ans++;
... |
1c41a7cfb5e7c9465ead8a892d3dc614c6025bc2 | 92c4eb7b4e66e82fda6684d7c98a6a66203d930a | /src/sean/cc/keys.h | 294b241ba16a48d5f58adb0de60903c4eb7a8693 | [] | no_license | grouptheory/SEAN | 5ea2ab3606898d842b36d5c4941a5685cda529d9 | 6aa7d7a81a6f71a5f2a4f52f15d8e50b863f05b4 | refs/heads/master | 2020-03-16T23:15:51.392537 | 2018-05-11T17:49:18 | 2018-05-11T17:49:18 | 133,071,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,531 | h | keys.h | // -*- C++ -*-
// +++++++++++++++
// S E A N --- Signalling Entity for ATM Networks ---
// +++++++++++++++
// Version: 1.0.1
//
// Copyright (c) 1998
// Naval Research Laboratory (NRL/CCS)
// and the
// Defense Advanced Research Projects Agency (DARPA)
//
// All Rights Reserved.
/... |
5708e4007737a3079b0b036a5e32c3671256e12b | 1b9d5e7e7707d852ac48e008ae3141719ac894c2 | /db_proxy_server/db_proxy_server/handler/Login.h | cfae8e8b3efe3ecbe7d80ffa48cb09f346af6fe1 | [] | no_license | LyslwQ/Iterm01 | f7a011a31cf5bd48d01fc7cdb4130757de44343d | 89747d1f2b3feed46b33462a6413128afc6483b9 | refs/heads/master | 2021-10-24T13:48:23.335503 | 2019-03-26T09:26:53 | 2019-03-26T09:26:53 | 177,750,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | Login.h |
#ifndef LOGIN_H_
#define LOGIN_H_
#include "../../base/ImPduBase.h"
#include <boost/shared_ptr.hpp>
#include "../../muduo/net/TcpConnection.h"
typedef muduo::net::TcpConnectionPtr TcpConnectionPtr;
namespace DB_PROXY {
void doLogin(CImPdu* pPdu, const TcpConnectionPtr& ... |
d58f7d0d8367b33a6b62d1a97a02cfb3ed819ae1 | b8b3913b510c2979b03f755e5981fdbb4406ebad | /剑指offer/032_02-把二叉树打印成多行/src/cpp/032_02-把二叉树打印成多行.cpp | d3230079187dc4813dd3e001cf602090285d2e52 | [] | no_license | Richard-coder/Programming-Practice | ca489d16e0dec70699239c0e4a31d29c6d0b72e9 | ae93a271fc552fcf85c306bd5573533344eae8fb | refs/heads/master | 2021-01-23T02:15:50.288066 | 2019-07-31T02:07:33 | 2019-07-31T02:07:33 | 102,436,144 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,358 | cpp | 032_02-把二叉树打印成多行.cpp | /*
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
TreeNode(int x) :
val(x), left(NULL), right(NULL) {
}
};
*/
class Solution {
public:
vector<vector<int> > Print(TreeNode* pRoot) {
vector<vector<int>> res;
if(pRoot==nullptr)
... |
0b358dcd66140cc58ab98b66f3734afd3bba8301 | 80da287d87edcc6eff034d3c14f9c4810e3aabe9 | /source/client/cl_view.hpp | 02e9909ece72376d71e3a6164088701ab473ec74 | [] | no_license | iomeone/vkPhysics | a5bf701499cf41dbe2130ea3de988819976d99c0 | 3df9a648c239476ad1330c235d595cf548c6e2df | refs/heads/master | 2023-02-07T04:44:39.454380 | 2020-12-24T15:03:30 | 2020-12-24T15:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | hpp | cl_view.hpp | #pragma once
// View describes not only some aspects of how to render the scene
// But also dictates how the user will be sending input
enum game_view_type_t {
GVT_MENU,
GVT_IN_GAME,
GVT_INVALID
};
void cl_change_view_type(game_view_type_t view_type);
game_view_type_t cl_get_current_game_view_type();
|
c1ad86a2aaeb272e49b1013aec0cce53b76a354a | 822756674e3233619116b4283a85c773431d4f69 | /RCJoy/STM32F407DISC_RC_JOY/PPMGenerator.h | 496fdfaf32039ab682505c538edd49258f2b89cb | [] | no_license | jgilbertfpv/rcjoy | 211517f80d24aacb13a7ead538dc0ee46c6b5e72 | 1cebe2f3302b2778ce78a4fd03e015f7273a90d1 | refs/heads/master | 2020-03-21T04:52:05.178242 | 2016-04-16T13:18:00 | 2016-04-16T13:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | PPMGenerator.h | #pragma once
#include <stdint.h>
class PPMGenerator
{
private:
public:
PPMGenerator(void);
void init(uint16_t channels);
void start();
void stop();
void setChannels(uint8_t channels);
void setChan(uint16_t chan, uint16_t val);
};
extern PPMGenerator PPMGen;
#ifdef __cplusplus
extern "C"
{
#endif
extern... |
355662c7c9afeccfa32120c84795e945741c7ed6 | 3c91a668c7c3720faf033a3395fac992e9abdee4 | /object/pyString.cpp | eb9027c6f3f541cff7955922906d36ba1f947a99 | [] | no_license | xiaoqixian/Armor | 9d449eff01ebb9ee35ec64b65bcc37459aa63681 | 171f675c60a932920d02720d15f32ff40f9d3b7c | refs/heads/master | 2021-07-14T12:19:11.478333 | 2020-05-12T13:12:13 | 2020-05-12T13:12:13 | 237,584,708 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,310 | cpp | pyString.cpp | #include "object/pyString.hpp"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "runtime/universe.hpp"
#include "object/pyInteger.hpp"
#include "object/pyDict.hpp"
#include "runtime/functionObject.hpp"
#include <iostream>
using namespace std;
PyObject* string_upper(ObjList args);
StringKlass* Stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.