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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e17fd4ea554936a23d5024ce5a6771d89f7d2c14 | 953f6168be9b2792b94e94d69f5ce3cf4b954155 | /Box-volume-surfaceArea/Box.cpp | be1da509f372ff13787fe54a628cd72145efc425 | [] | no_license | bdcarter/Intro1CPPassignments-projects | 5ed851c95b2d2fd65df1030e08489f3e1ae6fa2d | ff7e0f26609e3115c31ecd5876dd28b9f66ddf18 | refs/heads/master | 2020-12-24T16:50:34.000318 | 2015-09-11T05:06:40 | 2015-09-11T05:06:40 | 42,286,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,125 | cpp | Box.cpp | /***********************************************************
* Author: Brianna Carter
* Date Created: 2/6/2015
* Date Edited: 2/6/2015
*
* This file contains the member function definitions and a
* program that calculates the volume and surface area for
* a box with given dimensions.
* ****************... |
fc26896e1555b441b18919365a552b0897d320cf | b357ff3668751152c3357d579e8db8c8ced2ee83 | /src/decode-task.cc | 7f222fa0dfb55ee4d0ceb10ddd48030d591fed90 | [] | no_license | xushoucai/xdecoder | da9a6ef74951cb945ddab82bfe8bcdbe1c26fc3b | 86c7decca886f4e4eaec28f8baf83086a709d797 | refs/heads/master | 2020-05-02T12:18:44.936618 | 2018-07-12T08:37:47 | 2018-07-12T08:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,226 | cc | decode-task.cc | // Copyright (c) 2018 Personal (Binbin Zhang)
// Created on 2018-06-28
//
// 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 requ... |
e8ced5dca6b945d57dbbc4715a5666a01428afa0 | 83bed2d9488a76e5f0c07e34cc697bc29b5a5401 | /Hackerrank/MarkAndToys.cpp | 22044b87537a5539faa7887b08d3b6f440fc3f04 | [] | no_license | akshayrajp/Competitive-Programming | 0d246e84ab342bbff27d432fcaeff171f5d4d911 | b83385ec686f17cfd042febac395d93030586ff1 | refs/heads/master | 2023-04-06T11:48:39.580392 | 2023-03-25T16:59:53 | 2023-03-25T16:59:53 | 220,184,179 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | cpp | MarkAndToys.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
long long int n, k, i, c = 0;
cin >> n >> k;
long long int arr[n];
for (i = 0; i < n; i++)
cin >> arr[i];
sort(arr, arr + n);
for (i = 0; i < n; i++)
{
if (arr[i] <= k)
{
c++;
... |
02576d3ed29735741baf21ae1633b2c90ad6f60b | 57206f5c4ad8d8a488a733cc1c4683ec7e614410 | /Lesson3.cpp | 5b3d900f9661537d76e2ed76ac1f020c4da2b1ca | [] | no_license | PenitentExile/-Tests | a2aa1b561e2354b991bed9662c055b096d1a06d6 | 4bc8116f9d7050120dd707f9bf619830268eec7d | refs/heads/master | 2021-01-10T16:06:45.980691 | 2016-04-29T10:21:42 | 2016-04-29T10:21:42 | 55,355,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,393 | cpp | Lesson3.cpp | #include <iostream>
#include <cmath>
#include <vector>
#include <cstring>
using namespace std;
double Fibonacci (double n)
{
const float aFibonacci = (1 + sqrt(5)) / 2;
const float bFibonacci = (1 - sqrt(5)) / 2;
double currentFibonacci = ((pow(aFibonacci, n)) - (pow(bFibonacci, n))) / sqrt(5);
... |
23211d0ac1dbfd0ec195d9a6c751564c75ca14cf | 083973f506ea3a2d575e102acc2babd6dfa6bc93 | /leetcode/Easy/349. 两个数组的交集.cpp | 36169bded5879038923c94c1aa9726b1dd608bfc | [] | no_license | gsscsd/Code_Training | dd5ab4ef2a789ca84b372327b9a5a780d080f089 | 60efc5248c1bd30162b4b44b21cced66f4723059 | refs/heads/master | 2020-03-29T11:07:46.049496 | 2019-07-05T04:47:53 | 2019-07-05T04:47:53 | 149,837,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,345 | cpp | 349. 两个数组的交集.cpp | /**
给定两个数组,编写一个函数来计算它们的交集。
示例 1:
输入: nums1 = [1,2,2,1], nums2 = [2,2]
输出: [2]
示例 2:
输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
输出: [9,4]
说明:
输出结果中的每个元素一定是唯一的。
我们可以不考虑输出结果的顺序。
*/
/**
解题思路:
1.map映射
2.双指针遍历
*/
#include <iostream>
#include <vector>
#include <map>
using namespace std;
// 空间为n,时间为n
class Solution {
... |
05ea3f4418d03da1539b6272c40e7f0799c077df | 00da0f464ff5ae866f189713b05d32406e388495 | /structures-and-algorithms/project-metaheuristic-tsp/src/algorithms/GeneticAlgorithm.cpp | 032743b6968ad7decf9eef282418dc5006f55248 | [] | no_license | Wojciechowski-Marcin/studies | b47782f0c3816b8f9f387a0f6f7454adbbd4a3ec | 3a0c12dd63cf1f30688f819fb652032ffb07586a | refs/heads/master | 2022-12-31T10:41:47.132053 | 2020-10-24T16:52:23 | 2020-10-24T16:52:23 | 297,168,996 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,290 | cpp | GeneticAlgorithm.cpp | #include <vector>
#include <iostream>
#include <algorithm>
#include "GeneticAlgorithm.h"
#include "TimeMeasure.h"
using Vector2D = std::vector<std::vector<int>>;
unsigned GeneticAlgorithm::getGenerationNumber() { return generationNumber; }
/** ctor */
GeneticAlgorithm::GeneticAlgorithm(
const unsigned population... |
d600c9475241151dc00ea113b60e9378bb337da8 | 23ed1b706ccf7bfa4d550a4cccdad9a8665b0f2c | /Tool73/MultiTexture.cpp | 0671e96c3f6e233c53994e1c6bcb0b0c5fbda7be | [] | no_license | codnsj81/BastionCopy | 7440cfeb3984faed0ee421dd93c1d24bc27d9475 | 0cf4a8e8bfa2729b8bb61e151dcef65da6e46eed | refs/heads/master | 2020-08-05T14:27:25.083493 | 2019-10-03T12:57:56 | 2019-10-03T12:57:56 | 212,577,656 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,638 | cpp | MultiTexture.cpp | #include "StdAfx.h"
#include "MultiTexture.h"
#include "Device.h"
//L"../Texture/Tile/Tile%d.png"
//L"Tile"
HRESULT CMultiTexture::InsertTexture(const TCHAR* pPath,
const TCHAR* pStateKey /*= L""*/,
const int& iCount /*= 0*/)
{
//printf("Count : %d ", i)
TCHAR szPath[MAX_STR] = L"";
vector<... |
bf9411e64268a39b158f77add68f2e0779befeb0 | 34b3623dbd185b9d8e6bc5af787ff656ebb8f837 | /finalProject/results/test/test_noslip/wedge05/18/phi | 584065c691f539974c637bba6ba98c6344ee011d | [] | no_license | kenneth-meyer/COE347 | 6426252133cdb94582b49337d44bdc5759d96cda | a4f1e5f3322031690a180d0815cc8272b6f89726 | refs/heads/master | 2023-04-25T04:03:37.617189 | 2021-05-16T02:40:23 | 2021-05-16T02:40:23 | 339,565,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98,800 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
6085e3d9746eb2f63f74e97c6147da0c4ec15c54 | 0fa622294d2118b4880adab6af385381dcb00cde | /src/views/mapview.cpp | 50af12508e8055553cd256803058b7748b20a4d8 | [] | no_license | shadowpho/alphacomplex | 26b2c9f01ff0625d7c5a01877b789c1c4725b17a | ad9dac90553295583aaa5ef81e4bfbd540550e98 | refs/heads/master | 2020-12-07T00:45:15.527266 | 2014-01-14T07:56:29 | 2014-01-14T07:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | mapview.cpp | #include "views/mapview.hpp"
#include "graphics.hpp"
#include "city.hpp"
#include "clock.hpp"
#include "joblist.hpp"
#include "components/renderable.hpp"
const char prettywalls[16] = {
'+', HBAR, VBAR, CORNER_SE,
HBAR, HBAR, CORNER_SW, TEE_N,
VBAR, CORNER_NE, VBAR, TEE_W,
CORNER_NW, TEE_S, TEE_E, CROSS
};
voi... |
dc6331223a48accbef7e58d3cb2e247e8d2f9288 | 27fbab0c197e1072086610dc3731089142e856d6 | /code/modules/io/ShowImageModule.cpp | aa13c349b2cfe353b4db32dd2392aedf2bc773f5 | [
"BSD-2-Clause"
] | permissive | TU-Berlin-CVRS/uipf | 59435cec863cbbd6e1c5c93e26a16c115ff31d83 | 57f4afcfdece904e82624453a938aafdfde8df41 | refs/heads/master | 2021-01-17T09:30:17.682911 | 2017-04-13T22:08:55 | 2017-04-13T22:08:55 | 38,701,010 | 8 | 6 | BSD-2-Clause | 2019-05-29T20:40:00 | 2015-07-07T16:37:37 | C++ | UTF-8 | C++ | false | false | 1,261 | cpp | ShowImageModule.cpp | #include "ShowImageModule.hpp"
using namespace std;
using namespace uipf;
/*
*/
void ShowImageModule::run( DataManager& data) const
{
using namespace cv;
Matrix::c_ptr oMatrix = data.getInputData<Matrix>("image");
if (oMatrix) {
string title = data.getParam<std::string>("title", "");
if (title.empty()) {
... |
ce4a0f01502070aa65def22ddf05b3a320938b27 | c70ffe04668c4e81622f30a6ff6db27df9c518e3 | /firestore/src/android/exception_android.h | 6a52c40c5dd965f954e445e60a161e3c8edbeede | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-cpp-sdk | 469a8514beb1425afdcc923e0f5f9fb64092cdc1 | f55c43c2485e91c67a52ce60e1191fa3b0c4df61 | refs/heads/main | 2023-09-01T11:50:35.258358 | 2023-08-31T00:35:26 | 2023-08-31T00:35:26 | 175,263,313 | 270 | 112 | Apache-2.0 | 2023-09-14T19:41:20 | 2019-03-12T17:23:01 | C++ | UTF-8 | C++ | false | false | 2,231 | h | exception_android.h | /*
* 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 ... |
1a9dc4f8596f57b10587ae8195914be4d6a219a0 | 36bb83633ee4deed991eadd975c36a1ba9605096 | /generichid/hiddatathread.cpp | 48e2877d5103d2322697814fd5428c3e87c0ce1c | [] | no_license | ftkalcevic/GenericHID | 1b07a26ecfb47f761164f124626baa80bc6f7d1b | 07c192710263871a3416d2e3e8bf7443d1b0e22f | refs/heads/master | 2021-01-10T20:54:01.824366 | 2019-10-23T10:01:04 | 2019-10-23T10:01:04 | 34,788,505 | 7 | 4 | null | 2015-08-05T20:14:35 | 2015-04-29T10:50:06 | C++ | UTF-8 | C++ | false | false | 3,789 | cpp | hiddatathread.cpp | // generichid, DIY HID device
// Copyright (C) 2009, Frank Tkalcevic, www.franksworkshop.com
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later... |
10a359545e782fa52f06da90c343775801ec0531 | 84355258fe8da005b75670e4ad71fe5a1d0c8ae0 | /CppWorkshop/CppWorkshopSamples/Demos/simpleraii.cpp | b6dce96cd7f9b86d1e05a7d7475a426c7b78a606 | [] | no_license | paumayr/cppexamples | 79b80a27c24586990532f0f017cdca1e924652e9 | 63ed21ef00c65d8f63652990140156db044d6536 | refs/heads/master | 2021-01-02T23:12:20.741167 | 2015-06-05T09:12:57 | 2015-06-05T09:12:57 | 9,764,509 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | simpleraii.cpp | #include "stdafx.h"
class SimpleResource
{
int *heapmemory;
public:
SimpleResource()
: heapmemory(new int[1024 * 1024])
{
}
~SimpleResource()
{
delete[] heapmemory;
}
};
TEST_CLASS(TestSimpleRAII)
{
public:
TEST_METHOD(TestSimpleRAIIMain)
{
SimpleResource r1;
{
SimpleResource r2;
}
}
}; |
afbadd2e8d13035b5fbabdcbb09ce7712d0b561d | 2b1b459706bbac83dad951426927b5798e1786fc | /src/media/audio/audio_core/shared/profile_provider.cc | 9a69b754ef3977e0cc1ded759d6854ca390f4095 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 3,262 | cc | profile_provider.cc | // Copyright 2020 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 "src/media/audio/audio_core/shared/profile_provider.h"
#include <lib/syslog/cpp/macros.h>
#include <sstream>
#include "src/media/audio/audio_co... |
b2bb8e3786dd07e07b568b4fd8e13d01b4282d34 | 1b8e1ddcb86f0a5cd018bc6b3400c8c6fb1c1984 | /server/server/Notification/.svn/text-base/NotificationComponent.h.svn-base | ea1106426928331e352eaf34aadd8fa7d6ed375a | [] | no_license | yzfrs/ddianle_d1 | 5e9a3ab0ad646ca707368850c01f8117a09f5bfd | abffb574419cc2a8a361702e012cdd14f1102a6d | refs/heads/master | 2021-01-01T03:32:51.973703 | 2016-05-12T09:27:00 | 2016-05-12T09:27:00 | 58,615,329 | 0 | 2 | null | null | null | null | GB18030 | C++ | false | false | 3,211 | NotificationComponent.h.svn-base | #ifndef __NOTIFICATION_COMPONENT_H_H__
#define __NOTIFICATION_COMPONENT_H_H__ 1
#include "../logic/EntityComponent.h"
#include "../attribute/EntityAttributeComponent.h"
#include "../EntityNetComponent/EntityNetComponent.h"
#include "../../datastructure/DataStruct_DB.h"
#include "../../socket/SharedPtr.h"
#in... | |
61118a7e4719e4512356fa321e27745e6401d8bf | ea5c5082df21de760770f6228eb00c59fd19c4c4 | /DesignPatterns/Buy.h | fe2f4c16749e855c95275a787f9ebcc36fdf11b7 | [] | no_license | Magiczne/DesignPatterns | 012c1673093340d57390abf7bf19ca89c466e545 | 0655e90e717e19309c09eaa5892dd7f361b18c31 | refs/heads/master | 2021-01-21T16:04:11.721815 | 2017-05-28T12:34:55 | 2017-05-28T12:34:55 | 89,248,166 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | Buy.h | #pragma once
#include "ICommand.h"
#include <memory>
namespace Command
{
class PhotosStock;
class Buy : public ICommand
{
private:
std::shared_ptr<PhotosStock> _stock;
public:
explicit Buy(std::shared_ptr<PhotosStock> stock);
void execute() override;
};
}
|
c33f95777a11e388a48ed3a330717471379430b8 | 682a576b5bfde9cf914436ea1b3d6ec7e879630a | /components/common/thirdparty/libzip/lib/zip_progress.cc | 31bf21420287e03cb47534c240bb7ebb0c53d485 | [
"MIT",
"BSD-3-Clause"
] | permissive | SBKarr/stappler | 6dc914eb4ce45dc8b1071a5822a0f0ba63623ae5 | 4392852d6a92dd26569d9dc1a31e65c3e47c2e6a | refs/heads/master | 2023-04-09T08:38:28.505085 | 2023-03-25T15:37:47 | 2023-03-25T15:37:47 | 42,354,380 | 10 | 3 | null | 2017-04-14T10:53:27 | 2015-09-12T11:16:09 | C++ | UTF-8 | C++ | false | false | 7,248 | cc | zip_progress.cc | /*
zip_progress.c -- progress reporting
Copyright (C) 2017-2020 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <libzip@nih.at>
Redistribution and use in source and binary forms, with or without
modification, are permitted provi... |
6993514f9a609f8246e217000cc2c46242f6eec1 | 376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb | /editors/codelite/patches/patch-CodeLite_tags_storage_sqlite3.h | f16102a52980f0beb969b16f87df075132293f82 | [] | no_license | NetBSD/pkgsrc | a0732c023519650ef821ab89c23ab6ab59e25bdb | d042034ec4896cc5b47ed6f2e5b8802d9bc5c556 | refs/heads/trunk | 2023-09-01T07:40:12.138283 | 2023-09-01T05:25:19 | 2023-09-01T05:25:19 | 88,439,572 | 321 | 138 | null | 2023-07-12T22:34:14 | 2017-04-16T20:04:15 | null | UTF-8 | C++ | false | false | 572 | h | patch-CodeLite_tags_storage_sqlite3.h | $NetBSD: patch-CodeLite_tags_storage_sqlite3.h,v 1.1 2022/10/17 16:50:03 andvar Exp $
Reorder <wx/filename.h> to fix the build in NetBSD.
--- CodeLite/tags_storage_sqlite3.h 2022-05-03 22:38:34.770034020 +0300
+++ CodeLite/tags_storage_sqlite3.h
@@ -25,6 +25,8 @@
#ifndef CODELITE_TAGS_DATABASE_H
#define CODELITE_TA... |
267fdecd90ec059641de541c3c145b415ffb79cd | cf413a0e9bf3d1d54a9dca23d17b3c63b0a0291c | /Solve/1992.cpp | 01b1195c6a45b3bf5f76f66b2635bdf6ceb9dfe1 | [] | no_license | ruru14/noj.am | 4d7dabf642f205bf901e595aaed1168469ef1b9f | b89b4f7372c357fbb8e567dafd8ba306fd01a200 | refs/heads/master | 2021-11-27T16:48:39.438279 | 2021-09-16T06:45:21 | 2021-09-16T06:45:21 | 130,633,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | 1992.cpp | #include "1992.h"
int arr[64][64] = { {0,} };
void nojam1992::solution()
{
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
scanf("%d", &arr[i][j]);
}
}
printf("\n");
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
scanf("%d", &arr[i][j]);
printf("%... |
6d1227546fe33ce0c11bf303bfd395fe80a23b3f | 0c14ca4ca185653b37f49822cdce6c8b4e4c8d64 | /MgDocument.h | 04852b2fa6a26b229d6e378e6bd1ffe93b81ebdd | [] | no_license | marcelgit/mgMailTimer | e1e7ab336439b32559f43c2a0b3c1766f6aa9243 | 78df8ea52edf38f87bf76006e49f8b92411221fc | refs/heads/master | 2021-01-11T01:50:50.541436 | 2016-10-13T21:19:51 | 2016-10-13T21:19:51 | 70,848,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | h | MgDocument.h | #ifndef MGDOCUMENT_H
#define MGDOCUMENT_H
/**
* @class MgDocument
* @author Alex
* @date 10/09/2016
* @file MgDocument.h
* @brief Interpreta el archivo cmv
* Ejemplo de fichero cmv
* IMPRIMIR=NO
* SELECCION=NO
* EMAIL=SI
* E_PLANTILLA=marce
* E_TO=direcciondelcliente(at)dominiodelcliente(dot)com
* E_FROM=a... |
41a42aee4a5cd2c713b1e8fbbbea29cd36c51aee | 9e5b086abad65730292b2dad52e3f1999351e318 | /test/unit/binlog/test_utils.cpp | 1c066088f1f4b85ed74858d3796105032d66e518 | [
"Apache-2.0"
] | permissive | morganstanley/binlog | 4cd5da5c4db9db70e3dfe94c0ccddf8a82748302 | 4cd8f78cfa371921583fa94132b10d68b50f0242 | refs/heads/main | 2023-06-25T17:51:30.753346 | 2023-06-19T12:04:31 | 2023-06-21T09:11:28 | 226,114,666 | 289 | 49 | Apache-2.0 | 2023-06-15T08:30:16 | 2019-12-05T13:59:09 | C++ | UTF-8 | C++ | false | false | 2,090 | cpp | test_utils.cpp | #include "test_utils.hpp"
#include <binlog/Entries.hpp> // Event
#include <binlog/EventStream.hpp>
#include <binlog/PrettyPrinter.hpp>
#include <doctest/doctest.h>
#include <ctime>
#include <sstream>
TestStream& TestStream::write(const char* data, std::streamsize size)
{
buffer.insert(buffer.end(), data, data + s... |
7337363ded7b1be709541f37e51a335709d72ee0 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/11_21809_40.cpp | 78e10cc20cce4f0604c52e6c8d42a492bcf82461 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | cpp | 11_21809_40.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cstring>
using namespace std;
#define PII pair<long long,long long>
#define MP make_pair
#define VI vector<int>
#define eps 1e-9
#define inf 1000000007
string a[200];
int t , n , m , i , j ;
in... |
b507c4ec9ffb4ce215246d341cc22209b70fd565 | b107483b1c9834cc7b1df560d645cd3008364ed1 | /Games/Thesis/TSPhysicsObject.h | 49f21a29719c47200476d7f6d71890d083f49879 | [] | no_license | Goshido/GXEngine-Windows-OS | 1a420b109c047778c3eff1f97eb284254806df5e | 6745e3e86a94f90124300821d920073d54069644 | refs/heads/master | 2016-08-12T22:14:41.976336 | 2016-03-05T17:37:06 | 2016-03-05T17:37:06 | 47,348,608 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | h | TSPhysicsObject.h | //version 1.1
#ifndef TS_PHYSICS_OBJECT
#define TS_PHYSICS_OBJECT
#include <GXEngineDLL/GXPhysX.h>
class TSPhysicsObject
{
friend GXVoid GXCALL TSPhysicsObjectOnPhysics ( GXFloat deltaTime );
friend GXVoid GXCALL TSPhysicsObjectDestroy ();
private:
TSPhysicsObject* prev;
TSPhysicsObject* next;
public:
... |
15078fcbe78736550c945a253ca0dae8fb4c79d3 | f2a5ce61cf61226797e40a6ff87d7b34346fe062 | /BoundingVolumes/BoundingSphere.h | 9d0398922f7f49244a49899cc0c6ac951e2a9872 | [] | no_license | codedjinn/Barb2 | ff5ce510c752c32893d248a38d7e1e5165cc5519 | e7380db59fc8db62846e54e581c17d91a791bc34 | refs/heads/master | 2022-01-06T09:29:35.328038 | 2019-07-23T06:49:25 | 2019-07-23T06:49:25 | 193,832,244 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | h | BoundingSphere.h | #ifndef BOUNDINGSPHERE_H_INCLUDED
#define BOUNDINGSPHERE_H_INCLUDED
#include "BoundingVolumeObjectSpace.h"
namespace BoundingVolumes
{
/**
* Simple bounding sphere.
*/
class BoundingSphere :
public BoundingVolumeObjectSpace
{
public:
BoundingSphere(ObjectSpaceMeshData const * objectSpaceMeshData);
BoundingSph... |
6f51135fb6722cc3c1b0e2d2c942dd27884f4498 | 17706804e57bd92680ed9c51a0a54f905c9e8028 | /Snake_the_game/Camera.cpp | 7807e26f80e8a3be2842cd10298a846e55b44ae2 | [] | no_license | EasyToFindName/Snake_the_game | 255955e2670a69a56c94d0a5aef2b763c99feb6a | 8938b5b15d1ae5578ea34d2f3b2d06594f9a4f50 | refs/heads/master | 2021-04-27T21:59:42.487090 | 2018-07-21T21:01:52 | 2018-07-21T21:01:52 | 122,409,490 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | cpp | Camera.cpp | #include "Camera.h"
#include "GameObject.h"
//#include <iostream>
Camera::Camera(sf::RenderWindow & window, BaseScene& scene) : m_window(&window), m_scene(&scene)
{
m_view = std::make_unique<sf::View>(sf::FloatRect(0.0f, 0.0f, window.getSize().x, window.getSize().y));
m_view->setViewport(sf::FloatRect(0, 0, 1, 1));... |
403b445640cbeefeb0ef74582a299ac425ee1280 | f23edace892c0ce7f33b35542f5137647be37176 | /chapter3/4.cc | 1f7541fb24f544b8ae3c519ac6ffd7c3bf302c41 | [] | no_license | xingfeT/ProgrammingPearls | d04b2b5c8c31fda588f424e29c9d9012a2fb3af6 | 4a78f0abdddea1a3b2dfd2c45861eafdf50688db | refs/heads/master | 2021-06-08T15:56:06.283853 | 2016-11-11T10:21:53 | 2016-11-11T10:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,398 | cc | 4.cc | #include <cstdio>
#include <vector>
using std::vector;
struct Date {
Date(int year_in, int month_in, int day_in) {
year = year_in;
month = month_in;
day = day_in;
}
int year;
int month;
int day;
};
const int kMonthDays[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const int KDaysOfWee... |
0e0062a53e7a61395ce197ae20ec938532e71d07 | 694134bd4925129d42b778866adbf8d5b57a1e76 | /build-client_audio-Desktop_Qt_5_8_0_GCC_64bit-Debug/qrc_resources.cpp | ea0c324f2006f6cffc8e489078f0dfcfea577f0c | [] | no_license | JroLuttringer/IHM_Lecteur_Audio | 886422c2f55f39a73d61e0691cd44c1ca0516749 | 87ae5d7ff7d1b5cbfaaed0ee4cd55dbe5e7cbebd | refs/heads/master | 2020-08-28T15:23:19.404509 | 2017-05-04T21:22:27 | 2017-05-04T21:22:27 | 217,737,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151,444 | cpp | qrc_resources.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.8.0
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
d0b4db3f871bd5ac1077b0d6a7400d74330703b2 | 97e0d023d36c14a1b7d8c5ae4d579066492b5c58 | /动态规划/hdu2844 多重背包二进制优化.cpp | f2118171ebf3a6fc5f5db6b35cd6d42dc52f35dd | [] | no_license | gmy987/ACM | f6f809811b54a1e106624b83eda56120ac85d852 | 4b807f61b35d07db0d35e2195a8d93cff648b7bb | refs/heads/master | 2021-01-13T01:28:55.209296 | 2015-09-03T07:09:28 | 2015-09-03T07:09:28 | 41,202,863 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | cpp | hdu2844 多重背包二进制优化.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#define MAXN 105
#define MAXM 100005
using namespace std;
int a[MAXN],b[MAXN];
int cnt[MAXM];
int dp[MAXM];
int main()
{
int n,m;
int sum = 0;
while(~scanf("%d%d",&n,&m))
{
if( n == 0 && m == 0 )
break;
int num = 0;
... |
2ba6076427f5780bb23051efd5750ca77cf6678f | 2a44ec3f6fa2680d91d7b71378a2ae1a86398443 | /Book-Code/Chapter08/zju2100.cpp | d9736472ce010b8ed04829200183a8d7dfce9cb4 | [] | no_license | jiulix/tup-design-and-analysis-of-algorithm | 196f7e1a9a00f1ce58aba1cd060e12c0abca0909 | 2ee4bd206b0b450610908d9656864c7f2e24309e | refs/heads/master | 2022-04-06T05:22:46.077548 | 2017-11-10T08:07:57 | 2017-11-10T08:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | zju2100.cpp | #include<stdio.h>
#define NUM 10
char field[NUM][NUM];
int n,m;
int visited;
int flag;
int count;
void dfs(int x,int y)
{
if ( x<0 || y<0 || x>=n || y>=m) return;
if (field[x][y]=='S') return;
if (flag) return;
count ++;
if (count>1500) return;
field[x][y] = 'S';
visited ++;
if (visited == n... |
b0e516c688d8a916c9dd6d5ff982a86156b9bbb5 | fb6ee00aa32a1ebfaa83dcc8e584d393268c7d27 | /FindMap/FindMap/Block.cpp | 0e32719b81edb4fc958848561a226d17a2da6dc0 | [] | no_license | Tocktock/HanGwa1994 | 2f6fcb05a3c2772575595da523daa027614fd16a | c57b060f1548583220ccd757f43c5f6edec1df11 | refs/heads/master | 2020-03-18T06:38:44.183643 | 2019-05-13T01:48:26 | 2019-05-13T01:48:26 | 134,407,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,253 | cpp | Block.cpp | #include "Block.h"
#include "Macro.h"
Block::Block()
{
m_isMine = false;
}
Block::~Block()
{
m_vecBlock.clear();
}
int Block::HowMuchMineIs(int x,int y, vector<Piece*> m_vecMine)
{
int MineCount = 2;
m_vecBlock = m_vecMine;
for (auto iter = m_vecBlock.begin(); iter != m_vecBlock.end(); iter++)
{
if (... |
e991fcf60ca3ef47f3747ef9540dfefecd6fe7a6 | 024f03b566889a4db30828de3c520f48e911626c | /Space Invaders/lib/OpenGL/GL/include/glrv/include/axis.h | ce7c2e7599ee228f5f05421d5771ee7cba7046f3 | [] | no_license | alvarocrego/Introduccion-a-la-Programaci-n-de-Videojuegos | 8ae56d8404086fb7418a2f9c237ca025527987bb | acc362e03c2110f6d83acba7d7efef3fd10c6af4 | refs/heads/master | 2021-09-09T11:03:20.489509 | 2018-03-15T10:57:49 | 2018-03-15T10:57:49 | 125,238,047 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 792 | h | axis.h | /***************************************************
Ejes
Roberto Vivů, 2012 (v1.0)
Construye unos ejes en el origen de longitud 1 con una
esfera opcional en el origen. Usa inmediato para dibujar.
Dependencias:
glut.h
***************************************************/
#ifndef RV_AXIS_H
#define RV_AXIS_H
... |
e5f1efa082801d53d3ade32359a1c3d0876b5495 | 3617447e44ae9a887cf0aed5f3bdce0f742a2b38 | /frameworks/base/libs/rs/rsProgramVertex.cpp | eea8b3b67068474420abb70e4a9fda87fef05dc7 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | ritesh96310/dexandroid | 8c044d46956da6649df2209fab7cebedcb40e7ee | 6bd3c2ac38887f76cca390ad8329cd619ded3ae7 | refs/heads/master | 2021-01-10T05:14:08.983878 | 2009-12-02T05:27:17 | 2009-12-02T05:27:17 | 55,339,910 | 0 | 1 | null | 2020-03-08T02:33:44 | 2016-04-03T09:54:36 | Java | UTF-8 | C++ | false | false | 5,803 | cpp | rsProgramVertex.cpp | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
c5e0ff6aab89abd5c2576537738d69d3c2f8994f | 5509788aa5c5bacc053ea21796d3ef5ba878d744 | /Practice/2018/2018.9.9/BZOJ2281.cpp | 00581cba6b6237b7ef9bd15202ad5049e20f7c74 | [
"MIT"
] | permissive | SYCstudio/OI | 3c5a6a9c5c9cd93ef653ad77477ad1cd849b8930 | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | refs/heads/master | 2021-06-25T22:29:50.276429 | 2020-10-26T11:57:06 | 2020-10-26T11:57:06 | 108,716,217 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,236 | cpp | BZOJ2281.cpp | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=10100;
const int maxK=110;
const int maxBit=16;
const int Mod=1e9+7;
const int inf=2147483647;
int n,K,D;
int C[maxN][maxK]... |
286737e9bc2a65e99842e86029c075f7781f7484 | 8fcea1c04341761635f690301d0d202b7b5b2fe8 | /src/canvas.cpp | ac38979c6a46d7b71ac8338e1f5eeae2aa2a53fa | [
"MIT"
] | permissive | bplaat/vroemvroem | 2704ae13b9cd604eb0f2b6fe8cb382e7b2ade6ad | 22cf628b4e4e0e3dd9a7008af21f4288ec5ea7a4 | refs/heads/master | 2023-01-05T14:00:36.124746 | 2020-11-04T09:08:48 | 2020-11-04T09:08:48 | 295,848,018 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,209 | cpp | canvas.cpp | // VroemVroem - Canvas
#include "canvas.hpp"
#include <iostream>
Canvas::Canvas(SDL_Window *window) {
renderer = std::unique_ptr<SDL_Renderer, SDL_deleter>(SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC));
if (!renderer) {
std::cerr << "[ERROR] Can't create the SDL... |
6f29562210dc7154e3e25bcba3e2573f2edbd06f | 549ccffeb6ddad8832ed36d0519ef15b5f141b25 | /source/WhatsApp/Contacts.h | 866c73ca81f83d97f34f6a36f5b061d106b3c8fc | [
"MIT"
] | permissive | andreas-mausch/whatsapp-viewer | 9e4a324e9fb66c64856ae0b0972c61d55715e9ac | f857da400a8b4a7e02138daf1c7f0947860fad17 | refs/heads/master | 2023-07-25T08:19:11.482464 | 2022-11-29T19:54:33 | 2022-11-29T19:54:33 | 18,067,526 | 1,232 | 373 | MIT | 2023-08-28T00:21:40 | 2014-03-24T15:34:22 | C | UTF-8 | C++ | false | false | 105 | h | Contacts.h | #pragma once
class Settings;
void importContacts(Settings &settings, const std::string &wadbFilename);
|
a4a5b3323ef3bec6f92fc40db6037f5064894302 | edb77c71fef5cc475d07eddbd36cae1c9867362b | /3DProject/3DProject/D3DApplication.h | a8a96dee2f7b7ee564093bfd938b8ed8365c824a | [] | no_license | KimRestad/3D-II-Lab2 | a95ee7a5743738a660b71b0f094ad69bb720ad18 | 15136b0470a54d60765eb1e11b09f41c917a2981 | refs/heads/master | 2021-01-22T09:27:22.157250 | 2012-07-06T13:38:19 | 2012-07-06T13:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | h | D3DApplication.h | #ifndef D3DAPPLICATION_H
#define D3DAPPLICATION_H
#include <D3DX10.h>
#include "Globals.h"
#pragma comment(lib, "d3d10.lib")
class D3DApplication
{
public:
D3DApplication(HINSTANCE applicationInstance, LPCTSTR windowTitle = "ApplicationWindow",
UINT windowWidth = CW_USEDEFAULT, UINT windowHeight = CW_... |
3c4e9d50c0905b3324fbd0da9391de65517eb181 | 1d33f6391b5b1fe3ad3baf4c1552421b30feadcd | /CommProtoLib/interface/commproto/variable/VariableParser.h | 130e313fd272bf3b5abcca0de0c3160c1ce6fead | [] | no_license | Bluegent/CommProto | 35815011bc62a4c5f59f12c4531ebd693d1eaf26 | 20635cf4ee16b937b5ad58da6eb5bfcd4591c081 | refs/heads/master | 2023-06-11T12:10:28.611025 | 2021-06-30T08:11:03 | 2021-06-30T08:11:03 | 316,043,136 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,500 | h | VariableParser.h | #ifndef COMMPROTO_VARIABLE_PARSER_H
#define COMMPROTO_VARIABLE_PARSER_H
#include <commproto/variable/Variable.h>
#include <commproto/parser/Parser.h>
#include <commproto/logger/Logging.h>
namespace commproto
{
namespace variable
{
class VariableParser : public parser::Parser
{
public:
VariableParser(const... |
d965b9bb3687a4bb6319f111cb97356001a06d6c | 3d40dd8241e1570e240aaf5a1db3535d97351ba0 | /ConfigData.hpp | f89a5f199d234ca33da75621fc37644c0ce6ea07 | [
"BSD-2-Clause"
] | permissive | VSEiliNIChEGO/libvos | c651c3b360b275954ac299984c0792f64e7d9f07 | 749f59d71ac2d0e43ddbf44724bdd0964054b858 | refs/heads/master | 2021-01-17T21:38:09.461277 | 2011-11-03T04:46:33 | 2011-11-03T04:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | hpp | ConfigData.hpp | /*
* Copyright (C) 2010 kilabit.org
* Author:
* - m.shulhan (ms@kilabit.org)
*/
#ifndef _LIBVOS_CONFIG_DATA_HPP
#define _LIBVOS_CONFIG_DATA_HPP 1
#include "Buffer.hpp"
namespace vos {
enum _config_type {
CONFIG_T_NONE = 0
, CONFIG_T_HEAD
, CONFIG_T_KEY
, CONFIG_T_VALUE
, CONFIG_T_MISC
};
/**
* @class : Conf... |
f50501f92549a231a193ffe99154fa30da7ddcde | 4c1f84b8e8323d6815e084907a883b6c0da8497a | /sociplus/include/sociplusquery.h | 48ea7c9683f77923488ef94f98af7098292b0a23 | [
"MIT"
] | permissive | ecmadrid/sociplus | 8f11797ebdf5253b9ec0ee0fe2ede5156c4b4c7c | 853543bc07e5b9c7b59b72883502fe6600377084 | refs/heads/master | 2020-05-15T23:24:50.144804 | 2014-09-01T15:31:34 | 2014-09-01T15:31:34 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,770 | h | sociplusquery.h | //////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright : (C) 2014 by Juan Sánchez Rangel
// file name : sociplusquery.h
//
// -----------------------------------------------... |
943437c264e08a1efa95c5e7bf2d110e41218b83 | ea672ffcacf8dff1fcceb796ca61a5e0d35f0dee | /es_esami/tris/partita.cpp | b5942c8b1e96eb87fcf98408497031f5bfd37271 | [] | no_license | Loyakin/ExperiencingC-- | 3eb3b4142ebfbd99b8306083ac95ea56bb257e73 | 0148bd9ce886f6857ad20f87db33ea1596d67c37 | refs/heads/master | 2016-09-05T17:11:55.640998 | 2014-01-21T18:21:45 | 2014-01-21T18:21:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | partita.cpp | #include<iostream>
#include"partita.h"
#include"giocatore.h"
#include"umano.h"
#include"computer.h"
#include"scacchiera.h"
using std::cout;
void Partita::set_partita(Giocatore& p1, Giocatore& p2, Scacchiera& b)
{
g1=&p1;
g2=&p2;
s=&b;
}
int Partita::play()
{
int game=0;
while (game==0)
{
cout<<"è il turno... |
8296edcb6bd467b99443cbb2b3206dd06d7377c0 | 9c0451c4e534d178531cbf93928bcf8b512327af | /codes/programming-contest/leetcode/leetcode-0126-1.cpp | 5cf58a555c7598d21fe74dd59bb5916e1d8245d5 | [] | no_license | JM233333/jm233333.github.io | 491edc20e2e22709469dd8d1438bf631f0b453ad | ec341f14e48646d2670a487f1bba21e0645ca01e | refs/heads/master | 2023-07-21T06:03:55.692029 | 2023-07-12T12:03:00 | 2023-07-12T12:03:00 | 226,253,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,672 | cpp | leetcode-0126-1.cpp | class Solution {
public:
typedef vector<vector<int>> adjList;
const int INF = 1e9;
public:
vector<vector<string>> findLadders(const string & beginWord, const string & endWord, vector<string> & wordList) {
// 预处理
int st = -1, ed = -1;
for (int i = 0; i < wordList.size(); i ++) {
if (wordList[i] == beginWord)... |
13bfd0acdde4eda67b9e7c7f9e1020b5a1f1d01e | 3271c9ba12bef2ab5110ad27d5a389ec0aee783d | /P3/pedido-articulo.hpp | 6dd3af319c1f5a816bd98cf2f5b1a8e60c83a560 | [] | no_license | lokeon-university/POO | 7dbb2056af90af727b9a0f21600008ac8f8823ae | 52f46df465206f4b17fe61660d866620723261f2 | refs/heads/master | 2020-03-12T13:42:47.302141 | 2018-05-24T17:13:27 | 2018-05-24T17:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,807 | hpp | pedido-articulo.hpp |
#ifndef PED_ART_HPP
#define PED_ART_HPP
#include <map>
#include <utility>
#include "pedido.hpp"
#include "articulo.hpp"
struct OrdenaPedidos: public std::binary_function <Pedido*,Pedido*,bool>
{
bool operator()(const Pedido* ped1, const Pedido* ped2) const { return ped1->numero() < ped2->numero() ;}
};
struct Ord... |
dbc415d54f8634652d818dc1f93afa80faf57ba2 | a1c52daea199dd1888191771f714f77f46cbd46b | /jc2018/jc_atasat/surse/gordonramsay/tinca.cpp | 87b189ae05f8ed6720bbc6d5856ce57a1651d7d8 | [] | no_license | georgerapeanu/my_contests | 5a2ca0cd50ccbc8b8472da5a982bade652e7a817 | 943c646ff2cf14ab422001caaa6a75e9508f4e8c | refs/heads/master | 2020-08-20T19:20:45.504157 | 2019-10-18T15:48:13 | 2019-10-18T15:48:13 | 216,057,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,627 | cpp | tinca.cpp | #include <bits/stdc++.h>
/*
Solutie gordon
Complexitate in timp: O(N*K*log^2)
CU PARSARE
*/
class InParser {
private:
FILE *fin;
char *buff;
int sp;
char read_ch() {
++sp;
if (sp == 4096) {
sp = 0;
fread(buff, 1, 4096, fin);
}
return buf... |
44b507133d0197128c7d3c9fd66cd11e4cefbdea | 45e57ad1d7907f96e56028151db23cff469734f2 | /WinterFrameWork/AssemblyPlant.h | d701349be35c57d572d64f8b873da7faf11764f4 | [] | no_license | dongjingyang/WinterFrameWork | baf98a5e4eebe40b67252c24904fa73d86554afd | 60e1d7be084d57f4a62b81022a85b9865676244f | refs/heads/master | 2016-09-05T10:18:23.706790 | 2015-12-15T14:53:15 | 2015-12-15T14:53:15 | 19,060,502 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | h | AssemblyPlant.h | #pragma once
#include "RunningObjTable.h"
namespace Winter
{
class CXmlMine;
class CRunningObjTable;
class CAssemblyPlant
{
public:
CAssemblyPlant(CXmlMine* xmlMine);
~CAssemblyPlant();
private:
HRESULT AssemblyLibrary(CXmlMine* xmlMine);
};
}
|
ada05fc192da3c3339092a0e3be19925be98b2bf | 14845f995a17618db2126c5766e8e4ab1549d0aa | /practica_1/include/objetos.h | 0dd848f7d0d63d883746af81a23a1874e176237f | [] | no_license | blancabgz/UGR-IG | c2480efcb8bf4d03a5a28dff5156daa8ad3e827f | 6bc6ad9ca5a8ce5845f26a59c7bf562dfa0fc963 | refs/heads/master | 2023-03-17T09:56:08.895405 | 2017-12-30T14:34:35 | 2017-12-30T14:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,810 | h | objetos.h | //**************************************************************************
// Práctica 1 usando objetos
//**************************************************************************
#include <vector>
#include <GL/gl.h>
#include "vertex.h"
#include <stdlib.h>
#include <cmath>
using namespace std;
// const float AXIS... |
ee5dce0fe960aa0a5c87e338ee2566436eb81492 | 030ab431d764681a67d581388487416fdc7656f0 | /ThermocyclerV1/ThermocyclerV1.ino | 58e19e595b457f21d717b6470f250deb8a53c96a | [] | no_license | meduag/ThermocyclerV1 | 6faf33a555587f9f8af974fe990355e171947fb2 | 827912e9e52931e651fb1f42900e46ef05f9723c | refs/heads/master | 2020-12-24T20:10:35.037706 | 2017-04-02T23:04:55 | 2017-04-02T23:04:55 | 86,243,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | ino | ThermocyclerV1.ino | #include <LiquidCrystal.h>
// select the pins used on the LCD panel
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
int pinS = 52;
int lcd_key = 0;
int adc_key_in = 0;
#define btnRIGHT 0
#define btnUP 1
#define btnDOWN 2
#define btnLEFT 3
#define btnSELECT 4
#define btnNONE 5
void setup()
{
pinMode(pin... |
5addd0e87087aa789f75613a9c7fc24090d1f413 | 2603f4c3166adf617d847b8b79fa5f017bfe4b02 | /string/q01.max_occuring_char.cpp | f85c0c177b2eabb84646a96c8b25113f847df1c2 | [] | no_license | rish2394/data-structures | 88c94e45745fa22a2a65993f37120e5b5c1100d8 | 89c27cb42141b952bbbedb4b9ac49e842d5c91ee | refs/heads/master | 2020-05-23T08:00:26.440830 | 2017-04-07T15:16:21 | 2017-04-07T15:16:21 | 80,484,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,385 | cpp | q01.max_occuring_char.cpp | #include<iostream>
using std::cout;
using std::endl;
using std::cin;
#include<string>
using std::string;
#include<unordered_map>
using std::unordered_map;
#include<climits>
typedef unordered_map<char, int> Map;
typedef Map::iterator iter;
/* unordered map is implementation of hash table which takes O(1) for searching o... |
b3cafcc584a8d734f68b8957e76bed1e7e7634fd | 5e50cab1d6a6be4bf0565830556594c1b5839109 | /3/Ex2/函数定义.cpp | 8bba6ec5609a5adf3363aec45088d684a3b0aed6 | [] | no_license | ALOHAme/C- | 4c9ee028b89753439aff89a569ce24149ece092b | d98795bedca932b40d7028cdc1c025afeb742a0d | refs/heads/master | 2021-10-11T06:41:47.569393 | 2019-01-23T04:36:29 | 2019-01-23T04:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | 函数定义.cpp | #include<iostream>
#include"Ex2.h";
using namespace std;
Salary::Salary(int salaryone,int salarytwo,double Percentage)
{
setSalary(salaryone, salarytwo);
setPercentage(Percentage);
}
void Salary::setSalary(int salaryone,int salarytwo)
{
salary1 =salaryone;
salary2 = salarytwo;
}
void Salary::se... |
54e81e9778155c2ef3a4d53376b2ea5a77c878e9 | fa35c5b787c1a35b0735dcf03a3e6e38f3f54a6d | /Silver/PrefixSums/subsequences_summing_to_sevens.cpp | 0a6543d7a6279809aabe89c5432021b9f620c278 | [] | no_license | rbruno95/usaco-guide | fc69d2b17f05609e97be7130f1f41abe144c7ec7 | bfbf38476f237a190b1d11684f16c42357911919 | refs/heads/master | 2023-06-21T00:07:13.107873 | 2021-07-19T01:18:46 | 2021-07-19T01:18:46 | 383,178,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | subsequences_summing_to_sevens.cpp | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
freopen("div7.in", "r", stdin);
freopen("div7.out", "w", stdout);
int n;
cin >> n;
map<int,int> mp;
mp[0] = 0;
int sum = 0;
int best = 0;
for(int i=1;i<=n;i++){
... |
cf432859286c14d37e2b3d1ebd242804af7d1bea | 6419d0c57a7562536bb17f74dae3af1a2423bd64 | /whisperlib/http/http_consts.h | 7636844a5e8ebc1950785720a75aa47d042acac6 | [] | no_license | cpopescu/whisperlib | 919c9ec47b9396a3af7d7e79208b2d8a9f340095 | 65eb669602c43708d82c6aac3c8037db8c05d58d | refs/heads/master | 2020-04-06T06:58:26.946008 | 2016-07-18T23:28:44 | 2016-07-18T23:28:44 | 6,740,973 | 6 | 1 | null | 2014-04-08T19:45:12 | 2012-11-17T22:41:48 | C++ | UTF-8 | C++ | false | false | 12,192 | h | http_consts.h | // Copyright (c) 2009, Whispersoft s.r.l.
// 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 of cond... |
5c2cb0fd440ce0d1962215464c5156ace7aa4223 | 7254068226231bfc85b2bf22b38857d536614662 | /yellowEngine/include/yellowEngine/Collision/BroadPhase_BVH.hpp | 58f5685448af3423cfa13c801d45b07ec4da260e | [] | no_license | yellowisher/yellowEngine | d8273a2d5da727a4d3c75170a8ab8b053d350eec | 6edb781a8cf88fba418b13dd9a4009dc4c5f950c | refs/heads/master | 2021-12-14T04:34:09.450891 | 2021-11-29T15:42:58 | 2021-11-29T15:42:58 | 191,841,743 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | hpp | BroadPhase_BVH.hpp | #ifndef __H_BROADPHASE_BVH__
#define __H_BROADPHASE_BVH__
#include <map>
#include "yellowEngine/Collision/BroadPhase.hpp"
#include "yellowEngine/Utility/ObjectPool.hpp"
#include "yellowEngine/Math/AABB.hpp"
namespace yellowEngine
{
class Node : Poolable
{
friend class ObjectPool<Node>;
public:
void construct... |
7d1505129daf06e6398a94f380b9c7b8c616d65e | ddb942d6afa5611b077fa796496db3ed14f3cf8a | /ARSA_P03 (1).cpp | a16f2fe24ee5495e41f52242b8297eb7f55e1bce | [] | no_license | Sarce23/Programas | 72912fa103d4ffe10d4e56ea6355e8552be49f9a | 55114e8fdc10a5b07ce948cdb2a053f85735a1e1 | refs/heads/master | 2020-03-29T07:38:18.741358 | 2018-09-20T21:57:32 | 2018-09-20T21:57:32 | 149,672,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,088 | cpp | ARSA_P03 (1).cpp | /**/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <conio.h>
void menu(void);
void verdadero(void);
void falso(void);
void arbol(void);
int main ()
{
menu();
return 0;
}
void menu()
{
int op;
do{
system ("cls");
printf("\n M E N U");
printf("\n1.- ANIDADO POR EL... |
803691291f1220a5112d833b298305143747caf8 | e9a147e43d5db336e016c36c0cccf3577331ba41 | /readMotionFile/vectorOfVector/vectorOfVector/main.cpp | b0f927b20d4db826d79f89db71eee815520b3228 | [] | no_license | yuchuang1979/Event-Detection-and-Demo | 230b8aa3a10363841b4d01b2798f3c14c7da4f02 | 889e8d1517338d4699cafeb56c12adf9574361e6 | refs/heads/master | 2022-11-04T19:52:37.447446 | 2020-06-18T22:46:00 | 2020-06-18T22:46:00 | 273,349,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | main.cpp | //
// main.cpp
// vectorOfVector
//
// Created by Huang, Yuchi on 12/3/16.
// Copyright © 2016 Huang, Yuchi. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
vector<int> temp;
vector<vector<int>> test(2... |
da7afab706cc11192bfa47e065037d0f07e8d88e | 71912d6a6339c2c93698f0e53d9504c459ae5f3e | /Binary_Search_Tree/maxElement(withoutRecursion).cpp | a132ad9ec1ca2c0d0739e0bf2f1de8f67d64f17b | [] | no_license | Rahul-111/Competitivecode | e24f0124ed4d29048406e2df459b8dc8d8b156df | ab1c7026d1945dc4fb218bd5340b05f50445523c | refs/heads/master | 2020-03-20T21:56:39.654730 | 2020-02-21T08:02:36 | 2020-02-21T08:02:36 | 137,769,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | maxElement(withoutRecursion).cpp | #include<iostream>
#include<queue>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
Node * newNode(int data)
{
Node *temp=new Node;
temp->data=data;
temp->left = temp->right=NULL;
return temp;
}
Node* Insert(Node *root,int data) {
/*if(root == NULL) {
roo... |
bbac9d7d7c4d37a95b8ab4500621db8083ad46dd | 3bf94fd91a50b0c194fee4567c0f7e7c2acc765c | /src/core/jobs/collectioncopyjob.h | 537cd565e871059449e02f535d202ac13a9f2833 | [
"CC0-1.0",
"BSD-3-Clause"
] | permissive | KDE/akonadi | a1f29a137f6f35516a0ff1b41f85ffd77f695449 | 064b9f38dbfaf1127d12794cf295eb545c593978 | refs/heads/master | 2023-08-31T21:18:57.904918 | 2023-08-28T21:06:36 | 2023-08-28T21:06:36 | 42,715,907 | 25 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,617 | h | collectioncopyjob.h | /*
SPDX-FileCopyrightText: 2008 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "akonadicore_export.h"
#include "job.h"
namespace Akonadi
{
class Collection;
class CollectionCopyJobPrivate;
/**
* @short Job that copies a collection into another collectio... |
e9a8992bba1295fe560905abb285a8c25876314f | 12576deee2cda534293d4bcd555121f64339062e | /dotnet-5.0.0/runtime-5.0.0-rtm.20519.4/src/installer/corehost/cli/bundle/file_entry.h | fac8765b26aec8b21b5c8da226be108fcca2513a | [
"MIT"
] | permissive | dnobori/DN-OSS-Learn | ded1a0a04d47a7ca0c598bd23986128745437844 | 83ad725c20f48274c0908b6fb9c746a9f514d882 | refs/heads/master | 2022-12-09T14:46:14.518304 | 2021-11-16T14:02:37 | 2021-11-16T14:02:37 | 159,909,542 | 4 | 5 | null | 2022-12-08T01:46:27 | 2018-12-01T04:39:58 | null | UTF-8 | C++ | false | false | 2,327 | h | file_entry.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef __FILE_ENTRY_H__
#define __FILE_ENTRY_H__
#include "file_type.h"
#include "reader.h"
namespace bundle
{
// FileEntry: Records information about embedded files.
//
... |
98d21957c031d12cb278bf6ab695170315f1c4cf | b84aa8a1745f3346f22b9a0ae1c977a244dfb3cd | /SDK/RC_BP_InWorld_Reticle_classes.hpp | a48edb1730f4bd3bfa0133f060f6cfb75cda69d5 | [] | no_license | frankie-11/Rogue-SDK-11.8 | 615a9e51f280a504bb60a4cbddb8dfc4de6239d8 | 20becc4b2fff71cfec160fb7f2ee3a9203031d09 | refs/heads/master | 2023-01-10T06:00:59.427605 | 2020-11-08T16:13:01 | 2020-11-08T16:13:01 | 311,102,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | hpp | RC_BP_InWorld_Reticle_classes.hpp | #pragma once
// RogueCompany (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass BP_InWorld_Reticle.... |
1cef5bb9d9ce09fa5d5222691249d1905e9f6830 | 4bde01bdd255cc2ed3ecf643046535a93a762fc3 | /hello/ConfigureDialog.h | 64732129e38fe5f40f208f11d6220d26c0c804b1 | [] | no_license | galepai/hello | 00e4d06c9b1ba4c1d866c39036dbd4d64cc54124 | fbfde1fe42561f46eac2d143c7d097929b54c09f | refs/heads/master | 2021-04-27T02:14:06.176706 | 2018-10-20T01:53:01 | 2018-10-20T01:53:01 | 121,824,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | h | ConfigureDialog.h | #ifndef CONFIGUREDIALOG_H
#define CONFIGUREDIALOG_H
#include <QDialog>
#include <QWidget>
#include <QComboBox>
class ConfigSerial : public QWidget
{
Q_OBJECT
public:
explicit ConfigSerial(QWidget *parent = 0);
void CreateUi();
void ReadIni();
private slots:
void SavePortToIni();
private:
QComboBox* PortCo... |
5d5b841c51332415cb65fac9dbd99d611f9489e0 | bbe13b9fd16db3e1abc7818a812ad2c1269cf943 | /packager/media/base/key_fetcher.h | 10dd9bec5aa27e05c3ae063488f8fa2fcfc2acf6 | [
"BSD-3-Clause"
] | permissive | leandromoreira/edash-packager | a80622c0b9984272ffb37993d0dd812d9de67c99 | 44b2b077819c6a40ce98ef4b60764d4daf5a19e4 | refs/heads/master | 2020-12-26T13:11:37.432182 | 2015-07-23T01:49:26 | 2015-07-29T01:07:09 | 39,477,638 | 2 | 1 | null | 2015-07-22T01:01:03 | 2015-07-22T01:01:02 | null | UTF-8 | C++ | false | false | 1,120 | h | key_fetcher.h | // Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#ifndef MEDIA_BASE_KEY_FETCHER_H_
#define MEDIA_BASE_KEY_FETCHER_H_
#include "base/macros.h"
#inc... |
2a1d9aabe4dc93aa3e4d05a25133a9023d80d188 | 455ecd26f1439cd4a44856c743b01d711e3805b6 | /java/include/android.widget.ImageSwitcher.hpp | 51f35b2c66e789e5d778eba0ff07fb31052faf38 | [] | no_license | lbguilherme/duvidovc-app | 00662bf024f82a842c808673109b30fe2b70e727 | f7c86ea812d2ae8dd892918b65ea429e9906531c | refs/heads/master | 2021-03-24T09:17:17.834080 | 2015-09-08T02:32:44 | 2015-09-08T02:32:44 | 33,072,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,167 | hpp | android.widget.ImageSwitcher.hpp | #pragma once
#include "../src/java-core.hpp"
#include <jni.h>
#include <cstdint>
#include <memory>
#include <vector>
#include "java.lang.Object.hpp"
#include "android.widget.ViewSwitcher.hpp"
namespace android { namespace content { class Context; } }
namespace android { namespace graphics { namespace drawable { clas... |
420b804a63f8c399ebd48c3ace3d0511b179b37b | cd6b8c3b5b558e3898acd58b2f9f883999740ba8 | /source/timer_private.cpp | fb8ff8ddd084e800b4e5c609acef94a398bb992f | [] | no_license | ErnestSzczepaniak/core_a9 | d5a4c0fee3ee1ff5ed1e66a67d4b9b048b990abb | a967f99fed02964289cc22bb651c1df5653830bd | refs/heads/master | 2020-12-13T22:53:08.342274 | 2020-08-28T13:05:24 | 2020-08-28T13:05:24 | 234,554,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,472 | cpp | timer_private.cpp | #include "timer_private.h"
#include "core.h"
Timer_private timer_private(core.private_base() + 0x0600);
void Timer_private::enable()
{
_map->control |= 0x1;
}
void Timer_private::disable()
{
_map->control &= ~0x1;
}
bool Timer_private::is_enabled()
{
return (_map->control & 0x1);
}
void Time... |
cea9e909f15d55fe392dff62f408a0b0fc664539 | f9285898735714b3e301c310f7b6d2c0a2c22798 | /tests/IfSwitchInitHandlerTest.cpp | e2140a3ec63f7e6a5397353597f775e0d40ef2b4 | [
"MIT"
] | permissive | andreasfertig/cppinsights | dcb6c53e0c79770df383067e70b852fde7fb24f5 | 50b962d6bb6d96c567a5b0870c3c828405b40d14 | refs/heads/main | 2023-08-27T06:36:33.307787 | 2023-07-31T05:21:49 | 2023-07-31T05:21:49 | 131,510,015 | 2,465 | 156 | MIT | 2023-09-13T11:31:36 | 2018-04-29T16:21:08 | C++ | UTF-8 | C++ | false | false | 398 | cpp | IfSwitchInitHandlerTest.cpp | int Open() { return 0; }
int Write() { return 0; }
#define SUCCESS 1
auto Foo()
{
if( auto ret = Open(); SUCCESS != ret )
{
return ret;
} else if( auto ret = Write(); SUCCESS != ret ) {
return ret;
}
// ...
return SUCCESS;
}
void Fun()
{
if(Open(); true) {}
swi... |
070af3f052c9ae79310acaf3ef94caff9d44fae8 | bb864e905a69b6dbe07a97d6d31d9b47cc97dabb | /LEETCODE/339.cpp | 16e36acab9b0515a0f298973b5c171f958230e70 | [] | no_license | k--chow/CompetitiveProgramming | 74b7eb58dfaca6375e55cfe1aa097d43bc154d81 | d5b00609141ae33aaaf736fd265b3db4a47dbe62 | refs/heads/master | 2021-01-17T01:57:54.378698 | 2016-12-30T01:01:21 | 2016-12-30T01:01:21 | 40,216,189 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | 339.cpp | class Solution {
public:
int sum = 0;
void helper(vector<NestedInteger>& nestedList, int depth)
{
for(int i=0; i<nestedList.size(); i++)
{
if (nestedList[i].isInteger())
{
sum += depth * nestedList[i].getInteger();
} else {
... |
81361b44ab92d7b558c438249bc50e55170fe33c | 1f77f63fc4bcf538fc892f6a5ba54058367ed0e5 | /plugins/EstimationPlugin/src/base/signal/SignalBase.cpp | 33678dfec44785a5e0c218961b40f8abaeae3a4f | [
"Apache-2.0"
] | permissive | ChristopherRabotin/GMAT | 5f8211051b620562947443796fa85c80aed5a7cf | 829b7c2c3c7ea73d759c338e7051f92f4f2f6f43 | refs/heads/GMAT-2020a | 2022-05-21T07:01:48.435641 | 2022-05-09T17:28:07 | 2022-05-09T17:28:07 | 84,392,259 | 24 | 10 | Apache-2.0 | 2022-05-11T03:48:44 | 2017-03-09T03:09:20 | C++ | UTF-8 | C++ | false | false | 80,131 | cpp | SignalBase.cpp | //$Id$
//------------------------------------------------------------------------------
// SignalBase
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represented ... |
4504ae6a2698bbf995d4565691b67b4cbd3cde68 | ba444c530390b369d92d2a446b2667ed10674ac4 | /problems/11418.cpp | 081fc5e023273f8b2e6e47f14eb77c96290bca12 | [] | no_license | mkroflin/UVa | 62c00eede8b803487fa96c6f34dc089b7ea80df5 | aa9815f710db094fb67ceafb485b139de58e9745 | refs/heads/master | 2022-03-21T05:04:32.445579 | 2018-11-15T19:44:19 | 2018-11-15T19:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | 11418.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<vs> vvs;
int n;
vi V, M;
vvi G;
vvs S;
void turn(int i, int j)
{
transform(S[i][j].begin(), S[i][j].end(), S[i][j].begin(), ::tolower);
S[... |
68cc0bf474a15b11cdf0778065fdbd97df1fa265 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/com/netfx/src/clr/jit/ia64/gentree.cpp | bbc24085c8532430ea53547c2e548f11f1eb8c1f | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 152,558 | cpp | gentree.cpp | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... |
80e3a33336ed755f435af5b04c8f7e542f6ca833 | a7ddb56f634c0e2138a1856327ef698ce1d94a42 | /Hashira/Engine/Source/Component/DefaultComponents/DefaultGraphicsComponent.cpp | 2658bd12dd25018f8ea20407ba94c7fd79141465 | [] | no_license | Onbashira/Hashira | 3c84482a4c688bf762a8925ed4d4aa043cc06e91 | e5fb75800c2634c7079676e38e9711948b925137 | refs/heads/master | 2020-06-02T23:11:30.516684 | 2019-08-08T06:40:32 | 2019-08-08T06:40:32 | 191,338,620 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | DefaultGraphicsComponent.cpp | #include "stdafx.h"
#include "DefaultGraphicsComponent.h"
Hashira::DefaultGraphicsComponent::DefaultGraphicsComponent()
{
}
Hashira::DefaultGraphicsComponent::~DefaultGraphicsComponent()
{
}
|
3b517bab3d29976210fecb3c502e8657f4ee7392 | 8a399f51abf9807a77e94f5e083968f431a964d0 | /Gancsos_Abel_Project/src/classes/amgpetagencycommon/amgbreed.cpp | 0e948312b9ede0681c3f83f27f96ad52058998da | [
"MIT"
] | permissive | agancsos2/METCS665 | e5f07c16b1c46b495e26c2f87940deec775997de | 9b0d9fd5a81ad657e41ac830ce652b76d41e7b83 | refs/heads/master | 2020-03-22T04:21:54.358250 | 2018-08-08T04:01:42 | 2018-08-08T04:01:42 | 139,493,071 | 0 | 0 | null | 2018-07-03T00:54:44 | 2018-07-02T20:48:34 | null | UTF-8 | C++ | false | false | 2,811 | cpp | amgbreed.cpp | #include "amgbreed.h"
namespace amgpetagencycommon {
/**
* This is the default constructor
* @precondition (There is a need for a new instance of the class)
* @postcondition (A new instance of the object is created)
*/
AMGBreed::AMGBreed(){
this->name = "";
this->father_breed = ... |
b89183c842e18060bbe88141ea381543fc1c1685 | 3ccfec2da8e1ed37bf6c5d36084b6c18a20ef96b | /src/lumps.cpp | 94fccb87ec9f3f6a9208ff0efa138e1575f20f5a | [
"BSD-2-Clause"
] | permissive | Puche/CoD-BSP-Decompiler | 23f11eb7dd9db260c5e8ca66d6e5b8d95c83c480 | e74a65bbe8909abb2572bb2db28db4c1790b5b57 | refs/heads/master | 2023-04-01T23:30:32.466412 | 2015-04-15T03:07:40 | 2015-04-15T03:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,873 | cpp | lumps.cpp | #include "lumps.hpp"
#include "console.hpp"
#include "common.hpp"
#include <cmath>
using namespace BSP;
void write_raw_lumps(BSP_Handle *bsp, const std::string &path)
{
printf("Exporting raw lumps...");
retrieve_cursor_position();
unsigned int n = 0;
std::vector<Index>::iterator it;
for (it = bs... |
6faed9e98a5f0e8576e0a1dc6024ffdb3ad2e7e0 | 8883a445b263796f1385ded325ad0d795560c2fb | /Week4/CMP105App/Framework/Background.cpp | 849dda6df950796230da67044d4b157a764dbdd0 | [] | no_license | TheDuplicity/CMP105_W4 | e80f55607294c1bb7023d9ef70e85c2d2d4cca70 | 32f19bdfb1b64b80422ee0cd73fbce5438a01c12 | refs/heads/master | 2020-12-29T23:42:13.809684 | 2020-02-07T22:23:14 | 2020-02-07T22:23:14 | 238,781,011 | 0 | 0 | null | 2020-02-06T20:44:08 | 2020-02-06T20:44:07 | null | UTF-8 | C++ | false | false | 125 | cpp | Background.cpp | #include "BackGround.h";
Background::Background() {
}
Background::~Background() {
}
void Background::update(float dt) {
} |
33cc3988c197815c2aa892891c8d4d81639d133d | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/VoltageSensor/UNIX_VoltageSensor_LINUX.hxx | 40ba72146132a9c7dfc8990f622929ab7d9601ad | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122 | hxx | UNIX_VoltageSensor_LINUX.hxx | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_VOLTAGESENSOR_PRIVATE_H
#define __UNIX_VOLTAGESENSOR_PRIVATE_H
#endif
#endif
|
38e1848422f1f4e34eeb9d99270e4d98a06e68f6 | cae63dae21561c4f39481278390f565ec5c419ec | /c++11/aula62 Container Map - smart pointer.cpp | 97702b9e8ef3b5c793f6ff16286b46c6044f077e | [] | no_license | HRsniper/CPP | d48f16159c5439febbf3bce8eb1445320704b251 | 86e5928292a05df6c332558c0b8240a66ae3aeee | refs/heads/main | 2023-08-22T17:57:16.941360 | 2021-10-16T19:02:29 | 2021-10-16T19:02:29 | 308,703,801 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,747 | cpp | aula62 Container Map - smart pointer.cpp | #include <iostream>
#include <memory>
using namespace std;
//-----------------------------------------------------
//class para unique_ptr
class carro{
public:
int vel=0;
int getvel(){
return vel;
}
void setvel(int v){// funçao para shared_ptr mudar vel
this->vel=v;
}
};
//--------... |
223a228694061faf99c37de13bb8137703883825 | ffb789dd717001da2da181593ecb562f19a210d0 | /src/screen/DemoScreen.cpp | f35e6a2f5e01769e5f861c8471236f8199cb3663 | [] | no_license | lithium/ym2612-synth | 26c7188667ed1ae7dcaee85c91b4adfd99eae27e | b541d01ccdc4cfb228a8f1a8fb17d27985530fb2 | refs/heads/master | 2020-03-12T16:49:05.209826 | 2018-06-15T05:33:44 | 2018-06-15T05:33:44 | 130,724,284 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,590 | cpp | DemoScreen.cpp |
#include "DemoScreen.h"
auto width = 40;
auto height = 20;
auto padding = 2;
#define num_enc_demos ENCODER_COUNT
DemoWidget enc_demos[num_enc_demos];
DemoWidget btn_demos[ANALOG_BUTTON_COUNT];
DemoWidget touch_demos[2];
DemoScreen::DemoScreen()
{
auto x = 110;
auto y = 20;
for (int i=0; i ... |
f67179ff881b269cd6d3243da4b7691e3948573e | e3505cfd86c57b1869c2885a3a44550af552d483 | /source/resource/view/Primitives/cxDepthPeeling.cpp | 6da8afefc2681ae47e0c38fba189c496d041b629 | [
"BSD-3-Clause"
] | permissive | leettran/CustusX | afb6a3bc6607bf28fa1c94f94b66cf9979728cd5 | b4e64e0db364da189ee9eafa54ce0ab258f5105a | refs/heads/master | 2021-07-14T03:33:55.038281 | 2017-02-09T09:29:57 | 2017-02-09T09:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,623 | cpp | cxDepthPeeling.cpp | /*=========================================================================
This file is part of CustusX, an Image Guided Therapy Application.
Copyright (c) 2008-2014, SINTEF Department of Medical Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are per... |
08bf35570b859a828bba87c82ce10be674c6a20a | e6d2fa803344cdce7375bbb3b9d0b9643aff58d6 | /110-balanced-binary-tree/main.cc | 51683a23fce9820fb1a181d505a9fecf14a17a48 | [] | no_license | ArisQ/leetcode | 511303d22defc584ff1fe410ae79bca8376d0a29 | 023894242fc36f7b7e67ed33926858c09d27618b | refs/heads/master | 2020-04-04T23:09:18.712895 | 2020-02-28T03:30:43 | 2020-02-28T03:30:43 | 156,348,900 | 0 | 0 | null | 2019-08-13T14:11:57 | 2018-11-06T08:13:24 | C++ | UTF-8 | C++ | false | false | 995 | cc | main.cc | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "tree_node.h"
using namespace std;
class Solution {
public:
bool isBalanced(TreeNode *root) {
return balancedDepth(root) != -1;
}
//return depth if balanced else -1
int balancedDepth(TreeNode *root) {
if (root == nullptr)
... |
1862296756cf94831f3cd29898e8611c6ece3942 | 3a80805f6eb9addd18c8ce0aa060559ccb8e512a | /code/Mammal6.cpp | 69f0ac344890ee13b8b0c06054f89290551fc11a | [
"MIT"
] | permissive | formertrainer/tyc-24h | bfa24fd9df1b863aca9a42e0830c4d921b5d00d1 | 4e6f477d0a5ba32a8b4dbabf2470f2ae815dfeae | refs/heads/master | 2021-01-10T11:39:49.909358 | 2016-02-07T16:00:41 | 2016-02-07T16:00:41 | 51,253,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | Mammal6.cpp | // this is the real thing, as in, a real error.
// a base class method is going to be overriden, but since it exists in two versions,
// two versions are now unavailable to the derived class.
// That's either an oversight or an error OR because the derived class should never call
// that function: the base class functi... |
472b3b6d424f12fceed625d3155b9c1f036ec008 | a6a27b93ae66358f7d609677f44134ddd1c38de6 | /include/kimiko/parser.h | 47d54b59664c16f5c52efbdec5c68c3439ee8624 | [
"MIT"
] | permissive | AperLambda/kimikopp | 646b5c4cf2cbd2a86a1e2e41b6b34255c5b897dd | 77496d52601515e114becd31fe304e6734935bf7 | refs/heads/master | 2020-03-21T00:27:57.099490 | 2018-11-30T16:14:12 | 2018-11-30T16:14:12 | 137,895,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | parser.h | /*
* Copyright © 2018 AperLambda <aperlambda@gmail.com>
*
* This file is part of kimiko++.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#ifndef KIMIKO_PARSER_H
#define KIMIKO_PARSER_H
namespace kimiko
{
}
#endif //KIMIKO_PARSER_H |
dee7e3d93576d552ac06c355e00d08fdd6d14565 | 5c1e71282aee85c4bf5a5783ef0f64b293ce2be7 | /src/pre_processing/preprocessor.cpp | 2e7342e630a2049d868c8a0e867944a1bf50f19e | [] | no_license | asad-ahmed-pk/advanced-project-1 | ec13fbd0edef622e5e8ccf03dcfb3eef8e323a09 | 84d660829df3b40e483cf2bf220cd28ca636bd58 | refs/heads/master | 2022-03-04T20:37:39.857769 | 2019-06-01T19:50:20 | 2019-06-01T19:50:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,526 | cpp | preprocessor.cpp | // preprocessor.cpp
#include "preprocessor.h"
#include "../visualisation/point_cloud_renderer.h"
#include "pcl/io/pcd_io.h"
#include "pcl/filters/passthrough.h"
#include "pcl/filters/statistical_outlier_removal.h"
#include "pcl/filters/extract_indices.h"
#include "pcl/filters/uniform_sampling.h"
#include "Eigen/Eige... |
a07e8cd063891428ed5be1f223c0e5f7b1bd757f | 5e13159827f6ddd0a3b642481a63228d480e4b1e | /chap09/exercises/ex_9.33.cpp | 2970c144b4615c9a44deddfcee6708d44d09e5d2 | [] | no_license | jxzhsiwuxie/cppPrimer | d3bf9c2e4faa7d83a8634ceb5d239e745aaba288 | 99105606ff826f29d58961ab4b921da3f3311bd3 | refs/heads/master | 2022-04-26T18:17:50.858241 | 2022-03-13T06:39:25 | 2022-03-13T06:39:25 | 233,590,715 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,422 | cpp | ex_9.33.cpp | //练习 9.33:在本节最后一个例子中,如果不将 insert 的结果赋予 begin,将会发生什么?
//编写程序,去掉此语句,验证你的答案。
/*
* 对于 vector,在插入新元素之后,如果存储空间被重新分配了,则指向容器的迭代器、指针和引用都会失效。
* 这样循环的终止条件可能永远无法满足。
*/
#include <ctime>
#include <iostream>
#include <random>
#include <vector>
using std::default_random_engine;
using std::uniform_int_distribution;
using std::cout;... |
cdb0fb1688d3e247e5c019fa91d095fd59af487e | 6f1c7fff0bace5c20e027f7fd7ed35bafe4e1328 | /benchmark/benchmark2.cpp | 103749689819e48e9fc7e2bfbb75763dce7ae822 | [] | no_license | fhvilshoj/alg_eng_matrix | f5ffdc52e20355e93f4d0c7f217cebad53a41235 | 2772cc6d0faf08a73108cf2ae271e67586ff206c | refs/heads/master | 2021-01-20T04:22:14.267380 | 2017-03-20T18:25:46 | 2017-03-20T18:25:46 | 82,924,292 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,437 | cpp | benchmark2.cpp | #include<cstdlib>
#include<cstring>
#include<ctime>
#include<iostream>
#include<fstream>
#include "papi.h"
#include "../../pcm/cpucounters.h"
#include "../src/naive.hpp"
#include "../src/oblivious.hpp"
#include "../src/oblivious_s.hpp"
#include "../src/oblivious_cores.hpp"
#include "../src/helper.hpp"
#include "../sr... |
b779bc59da8a770810e54b1ebdc8b6047305df7d | 74736ed1f56efcc18b5ef57358d4c484460ea9af | /src/script/node.cc | f459f05071fb092b50a51f6e9530245c57f19b44 | [] | no_license | peelonet/tempearly | 696bf65d21d7fec3cbeee816c723f05d4fc962ad | 90fb19a762327b7710c54df0a7819d02563ffcf2 | refs/heads/master | 2021-01-18T21:11:23.394499 | 2016-12-27T13:51:50 | 2016-12-27T13:51:50 | 24,793,526 | 0 | 0 | null | 2016-12-27T13:51:51 | 2014-10-04T15:41:10 | C++ | UTF-8 | C++ | false | false | 31,479 | cc | node.cc | #include "interpreter.h"
#include "node.h"
#include "parameter.h"
#include "api/list.h"
#include "api/map.h"
#include "api/range.h"
namespace tempearly
{
Node::Node() {}
bool Node::Evaluate(const Handle<Interpreter>& interpreter,
Handle<Object>& slot) const
{
Result result ... |
7069afca16344d0e2269d593134d3b9363febb53 | a93c9a25e6609b80ef7995cc40febff8f3fca6ae | /类Pascal语言编译器/标头.h | c8a5fb099e61ea148c8d9c3b3b7e1ee6bb6ce150 | [] | no_license | IsaacGuan/Pascal-Compiler | a689167e4c254f34279568564b09d86607741e49 | 5e177a58f24f0614abfc9007458d157cceec00b7 | refs/heads/master | 2020-05-21T08:41:13.198072 | 2017-04-05T01:04:43 | 2017-04-05T01:04:43 | 86,973,909 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,074 | h | 标头.h | #include <stdio.h>
#include <iostream>
using std:: string;
#define MAX 10000
#define ERROR -1
#define # 0
#define id 1 //用户标识符
#define integer 2 //整数
#define decimal 3 //小数
#define plus 4 //加号
#define minus 5 //减号
#define mutiply 6 //乘号
#define divide 7 //除... |
b120bbdddd25478d060ffde8328e4b7dbe5f07f8 | 090d7ad3407513ff808393c8bc5aa6a31b463371 | /Blackjack/Blackjack/Player.cpp | f549c4dc6d6b9f5329051efc45a160e6cd4d66ca | [] | no_license | klemmert/School-Projects | dfac1afc3ff6948915dfa2363b65a26b4f8d5811 | e69f63f0f27e52f45b5f6ef2a46fdbbad8d6c979 | refs/heads/master | 2020-05-30T08:38:23.598600 | 2019-05-31T13:54:35 | 2019-05-31T13:54:35 | 80,969,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | cpp | Player.cpp | #include "pch.h"
#include "Player.h"
#include <vector>
using namespace std;
Player::Player()
{
}
Player::Player(int playerID, int scoreCount, vector<int> hand)
{
id = playerID;
score = scoreCount;
playerHand = hand;
}
Player::~Player()
{
}
void Player::setPlayerScoreCount(int scoreCount)
{
score = scoreCoun... |
8109ac2a4f701f7d8e759c00cd3e2725251e8673 | 59992c2a61b97c656c0f1ffc37324b0bd2b5c05c | /Marvel/renderer/bindables/mvDepthStencil.h | 261aae159a817d96964681d3d33178f03da81638 | [] | no_license | mfkiwl/Marvel | 7f6aca2dd1da54721eee8f02a869782da7ed3686 | dd973859aca6800fbfc8ebd154f9d26bc6acf560 | refs/heads/master | 2023-04-27T08:42:59.017541 | 2021-05-25T16:39:03 | 2021-05-25T16:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,136 | h | mvDepthStencil.h | #pragma once
#include <d3d11.h>
#include "mvBindable.h"
#include "mvComPtr.h"
#include "mvBufferResource.h"
//-----------------------------------------------------------------------------
// forward declarations
//-----------------------------------------------------------------------------
struct ID3D11DepthStencilVi... |
90321a5bba1fa5b66d9a4a3f6a0cbf1038f81c8f | 4e185ce04cff11c1731e624d5a85cd9b8a3ed957 | /RiD_RPGproject/RiD_RPGproject/Gold.cpp | 76667fe4d3527c10816af4f2a24da3bf23f158c6 | [] | no_license | reoskaro434/sfml-game | d509762a59bb16abf26d8e37e34c67083e51f18a | 084647502793cbdd5299ac8c1316f95988950077 | refs/heads/master | 2023-03-25T12:35:42.287522 | 2021-03-26T19:00:11 | 2021-03-26T19:00:11 | 330,765,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | Gold.cpp | #include "Gold.h"
MP::Gold::Gold()
{
}
MP::Gold::Gold(sf::Texture* texturePtr, sf::Font& aFont)
{
aAnimation.loadObjectTextures(texturePtr, 1, 1, 64);
_item_amount_text.setFont(aFont);
setItemAmount(0);
_item_amount_text.setLetterSpacing(1);
_item_amount_text.setCharacterSize(25);
_item_amount_text.setFillColor... |
a3511d61b625c8c06f0180a1afb534edf0e024cd | 9d46d47a2e5aca33a138b271ef84dccbf9c695a4 | /svcman/WinServiceHelper.cpp | fa500e0c7694d3f0201f8e5a7c223d47f356de6e | [
"MIT"
] | permissive | azkurban/win-service-manager-demo | 9c6daca9eac81fd496a9bbaaedef49cb438eecd6 | 39799dcabe5cc4ad01698cbe32a83da4a0ea4cd0 | refs/heads/master | 2022-07-03T18:12:29.252522 | 2020-05-15T20:08:50 | 2020-05-15T20:08:50 | 264,137,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,301 | cpp | WinServiceHelper.cpp | #pragma once
#include "pch.h"
#include "WinServiceHelper.h"
#include "ServiceController.h"
#include "ServiceEnumerator.h"
// Globals
//
//SERVICE_STATUS ssService;
//SERVICE_STATUS_HANDLE hssService;
HANDLE g_hEvent;
WinServiceHelper::WinServiceHelper()
{
InitServiceList();
}
void ... |
11cab570ae0f06b8ade9a88980679fb96b7b5818 | 3b43cf4cfc666798ebe85ed1db8858034b13d45c | /src/point_task.h | 372e52866fb0e025719948b6e35c7959e21df56f | [
"Apache-2.0"
] | permissive | Pandinosaurus/legate.numpy | 5428b80a0a53ab882cd74b5dbf5fd86c7ee82199 | 896f4fd9b32db445da6cdabf7b78d523fca96936 | refs/heads/master | 2023-06-27T04:33:52.982601 | 2021-07-01T21:39:52 | 2021-07-01T21:39:52 | 358,820,941 | 0 | 0 | Apache-2.0 | 2021-08-01T02:57:57 | 2021-04-17T08:06:05 | C++ | UTF-8 | C++ | false | false | 24,528 | h | point_task.h | /* Copyright 2021 NVIDIA Corporation
*
* 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... |
9304c2a59143f34c87ee1e878cb289bc4dd3acef | 91f82b843cf7f7ac1c074a62baed9424f0778ff7 | /code/c++/utils/trunk/utils/xml/test.cpp | 10bbec0be25c0d4198e182c0cfa06808fbbe3aeb | [] | no_license | zeuswang/code | 7009804c6851acf031a0aa176c03314eac682aef | d580f39acfe78fd94e73777547ddfc67591b27f7 | refs/heads/master | 2016-09-06T05:28:52.453145 | 2015-04-10T07:27:20 | 2015-04-10T07:27:20 | 19,226,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,723 | cpp | test.cpp | #include "sxml.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
int main(){
std::string xml=
"<?xml version=\"1.0\" encoding=\"gbk\"?> \
<DOCUMENT> \
<item> \
<key ><![CDATA[beijing]]></key> \
<display> \
<title><![CDATA[XXXXXXXXXXXXXXXX]]></title> \
<url><![... |
79b1e70e7b20836c81d4933b62b04e7198d36c07 | 9c6cfa12a1d7f6d85a1b1a261afb934ca02e88c4 | /90.cpp | 86b2f3521fd9cc250d2af7d55c2428a3615d28df | [] | no_license | wzl476227014/test | 92254475a79d0ed898bbb292ac306a1c1bf052ca | 76118c1f280a46374d61424ecd01b40a99b7e94c | refs/heads/master | 2021-01-19T08:48:21.498503 | 2017-11-18T06:15:19 | 2017-11-18T06:15:19 | 87,680,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | cpp | 90.cpp | /*
* File Name : 90.cpp
* Author : Andrew ()
* Description :
* version 1.0: 2017-11-18 14:07:50
*/
class Solution {
public:
vector<vector<int>> subsetsWithDup(vector<int>& nums) {
vector<vector<int>> res(1);
if(nums.empty())
return {};
sort(nu... |
38a3f89405fd66ffa2b70f6d3a0ba882cec7b395 | a5a500f0fcf4ace40c28f14b8e52d2d26ace24e9 | /CS389_HW1/P1.cpp | 09688c213fb9bda7b08177e3089029fdeabb1504 | [] | no_license | Ryman1262645/HelloWorld | 3108b52a579b8f98efee133c34a25ae77b3b5c6d | c42c895b69b707d7658200db9abb80190fa24819 | refs/heads/master | 2020-03-29T21:23:41.981395 | 2018-10-02T03:33:07 | 2018-10-02T03:33:07 | 150,364,290 | 0 | 0 | null | 2018-09-26T04:13:58 | 2018-09-26T03:37:12 | C++ | UTF-8 | C++ | false | false | 4,694 | cpp | P1.cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdint.h>
#include <cmath>
#include <ctime>
#include <chrono>
#include <fstream>
#include <iostream>
#include <ratio>
#include <random>
#include <algorithm>
using namespace std;
//generates a list of length size with integers of values between 0 and bo... |
9f23b5d5b44728192bd593ae3112f1a6fd142e8c | 4612e46be4ccd2c05c67baa6359b7d0281fd5f1a | /util/concurrency/spin_lock.h | 718fc2a85fc44e9116126b2e0704b757ca377c02 | [
"Apache-2.0"
] | permissive | RedBeard0531/mongo_utils | eed1e06c18cf6ff0e6f076fdfc8a71d5791bb95c | 402c2023df7d67609ce9da8e405bf13cdd270e20 | refs/heads/master | 2021-03-31T01:03:41.719260 | 2018-06-03T11:27:47 | 2018-06-03T11:27:47 | 124,802,061 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | h | spin_lock.h | // spin_lock.h
/**
* Copyright (C) 2008 10gen 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 ... |
fdebe51c2f7e6552f3b98f160b8beb3c30162c3b | 88da7979f4b35a5093c83e8c7a5f469de2154612 | /postfix-mshaynerush-spu-master/main.cpp | 990d4c91b6a6acd39442bb0c927a9ccf1484d20b | [] | no_license | mshaynerush/postfix | 1cfd18433f35132634c83f05a897d2f5723f8041 | 016aa6da634132efe10b08c4b7a151d869a8d596 | refs/heads/main | 2023-07-02T00:08:49.667653 | 2021-08-11T18:35:11 | 2021-08-11T18:35:11 | 395,084,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,000 | cpp | main.cpp | #include "evaluator.h"
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <queue>
using std::cout;
using std::cerr;
using std::endl;
using std::string;
using std::queue;
using std::setw;
using std::fixed;
using std::setprecision;
bool DoubleEquals(double a, double b, double e = 1e-6);
... |
7cac91286f3bc082d2e202a9bf55a5a798af11a4 | 674cad3c5f99f608f920b70c7ea865d72cfe940c | /Uri/Geral/uri2166.cpp | f8e0cd5dfcde334cc7805877f9cc934adc861fcd | [] | no_license | wellvolks/Problemas | c876b6120f1622d614767ecc99dba802c395e772 | 6513ea2b126977f45cb2388f753188e95328af2e | refs/heads/master | 2020-06-30T18:38:15.453372 | 2017-11-20T00:42:36 | 2017-11-20T00:42:36 | 67,306,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | uri2166.cpp | #include <bits/stdc++.h>
using namespace std;
double solve(int qt){
if( qt == 1 ) return 2;
return 2 + 1./solve(qt-1);
}
int main(){
ios::sync_with_stdio(false);
int a;
cin >> a;
if( a == 0 ) cout << "1.0000000000\n";
else cout << fixed << setprecision(10) << 1+1./solve(a) << '\n';
return 0;
... |
0cd3e6e31ea421d927553fe6aa4d0bcb31df24e8 | 29d95430654dc0cb5d617d832d1b39f338b508ea | /main.cpp | 61fbfb3813b69ffeba6ba33cebc3d59dff26f8b0 | [] | no_license | lucaslefaucheur/Heightmap | 32313193488c411fce4cb21a92db98bb19055587 | 6956fa7dc3ca76eda048c143023f8e197ad5cceb | refs/heads/master | 2020-04-10T09:51:30.508924 | 2018-12-08T14:53:03 | 2018-12-08T14:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,174 | cpp | main.cpp | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <cstdlib>
#include <vector>
#include "controls.h"
#include "mesh.h"
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 800
int main() {
vector<GLfloat> pixels = loadImage("/Users/lucaslefaucheur/Desktop/Assignment1/Assignment1/test1.bmp");
... |
fc49995ee7c4e6741d52847935fe424cfc55e0bc | bd194f11cc9a335c07d165d06d41fbfda75d8378 | /qframework/Root/TQNFManualSetter.cxx | f4d05aeaf52f43ce70af6c7230c8bb365a089016 | [] | no_license | sgnoohc/rooutil | f8f52d860c3bdd61433942ebcf1a7fb42ebfc821 | 12dc3198db7660d8402517c5db1b3c63f1dc285a | refs/heads/master | 2023-08-19T01:04:34.859279 | 2022-11-10T15:42:54 | 2022-11-10T15:42:54 | 104,544,253 | 1 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 11,655 | cxx | TQNFManualSetter.cxx | #include "QFramework/TQNFManualSetter.h"
#include "QFramework/TQStringUtils.h"
#include "QFramework/TQIterator.h"
#include "QFramework/TQUtils.h"
#include "QFramework/TQFolder.h"
#include "TMath.h"
#include "TRandom.h"
#include "QFramework/TQHistogramUtils.h"
#include "QFramework/TQNFChainloader.h"
#include <limits>
... |
ad45db4c4484ee95cabc4e1f91b5badabab16138 | a257886a1af2093b8dc094b5750cc78901b0a882 | /CppClassLibrary/undergraduate.h | 045d01a749619d4f40be6e70c9e0d58570476cda | [] | no_license | windwanghuiyong/cpp-class-library | 04962aba9d3db0fbec464105c83b58ad99c4c069 | cdbc957bdd96a64ba7f3465722f71df2cb0ea6c1 | refs/heads/master | 2021-01-11T18:53:00.208176 | 2017-01-21T13:27:53 | 2017-01-21T13:27:53 | 79,647,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | h | undergraduate.h | #include "student.h"
class Undergraduate:public student
{
public:
double getGPA();
void setGPA(double g);
bool isAdult();
protected:
double GPA;
}; |
e2ff08fe08e859bd4ced7fbb27fd3209d935ac6b | ae6dbcfd6a333bf598b871e15a7741fef81f964f | /Components/Sourcecode/BSC/WSCompose/HTMLComparer/CompareChainsDepthGauge.cpp | 7386734de48d14f68dde221c95995c88bdbe6e32 | [] | no_license | xeon2007/WSProf | 7d431ec6a23071dde25226437583141f68ff6f85 | d02c386118bbd45237f6defa14106be8fd989cd0 | refs/heads/master | 2016-11-03T17:25:02.997045 | 2015-12-08T22:04:14 | 2015-12-08T22:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | cpp | CompareChainsDepthGauge.cpp | #include "StdAfx.h"
#include "comparechainsdepthgauge.h"
#include "ComparisonContext.h"
const long CCompareChainsDepthGauge::max_depth = 100;
// paranoia rules
CCompareChainsDepthGauge::CCompareChainsDepthGauge(ComparisonContext* pContext) : m_pContext(pContext)
{
// Added a guard for recursive calls to compare chai... |
e76bfd48c9f432de027b87c8a8eb1e9100a00d23 | 656228d86f1f2b9afa2b3680aa15291c9c275ac2 | /src/registerBank.hpp | f56f3498d9cb834065a0ffba2908f59e842b6eaa | [] | no_license | dpriver/GBcolorEmu | 645e54b6bb86b087ba4ed963b9dfd7a74fdbcebf | 39175cecf87db89676e9a4d6405fb89e62b15692 | refs/heads/master | 2021-08-19T16:43:51.292959 | 2017-11-27T00:40:44 | 2017-11-27T00:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,781 | hpp | registerBank.hpp | #ifndef __REGISTERBANK_HPP
#define __REGISTERBANK_HPP
#include <iostream>
namespace gbcoloremu
{
using regValue_t = uint8_t;
using doubleRegValue_t = uint16_t;
class RegisterBank
{
public:
// Posible 16bit pairings (15..8 | 7..0)
// A - F
// B -... |
5dbe179bd3c93c4cfc9896eff88f813670a88a96 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/autofill/content/renderer/test_password_autofill_agent.h | 1ffef6c633aa271a990e66e83f1a3333e8e06ddf | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 965 | h | test_password_autofill_agent.h | // Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
#define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
#include "components/... |
07feeaeb05a9d3c7fc9388ccd615afb51afbe956 | 3746c4f773541269a811b248dc2b418f0c6c9e7e | /Interfaces/Plugin.h | 63e877eef1d4fac72cf8229ca554bde01ec97826 | [] | no_license | edwardoid/DarkKnight | e36f2d168e2e45b6fefc33613c6dea992666951f | 84b74fa45c2645ff393dd4dd68c337c61fa0d230 | refs/heads/master | 2021-01-17T12:37:37.324087 | 2013-05-27T20:19:49 | 2013-05-27T20:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | h | Plugin.h | #ifndef PLUGIN_H
#define PLUGIN_H
#include "InterfacesGlobal.h"
#include <QObject>
#include "FrameworkUser.h"
class Framework;
class SettingsPageBase;
class EXPORT_INTERFACES Plugin : public QObject,
public FrameworkUser
{
public:
typedef enum
{
Concept = 0,
DataStore
} Type;
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.