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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30a1a6ace8f97497f77b428f862a8eae50044595 | 1ab5a08b2993b0a7d61f8ff35557ad8cfcd70963 | /src/rdtree_cursor.hpp | c3d3ee3aff3f6b3d02cdb919418661206899ee67 | [
"BSD-3-Clause"
] | permissive | rvianello/chemicalite | 1a5346a216293e26ba5199cf61874e9f04af06db | 79db94d394fca9d7e30f28ea2095446f98590382 | refs/heads/master | 2023-06-02T02:28:58.306742 | 2023-05-30T19:31:34 | 2023-05-30T19:31:34 | 9,153,859 | 39 | 5 | NOASSERTION | 2021-05-08T11:52:17 | 2013-04-01T19:08:41 | C | UTF-8 | C++ | false | false | 728 | hpp | rdtree_cursor.hpp | #ifndef CHEMICALITE_RDTREE_CURSOR_INCLUDED
#define CHEMICALITE_RDTREE_CURSOR_INCLUDED
#include <memory>
#include <vector>
#include <sqlite3ext.h>
extern const sqlite3_api_routines *sqlite3_api;
class RDtreeNode;
class RDtreeConstraint;
/*
** Structure to store a deserialized rd-tree record.
*/
class RDtreeCursor : ... |
58f2dcd8ecfeaecce480a6d9c8dce99061c72f81 | c485cb363d29d81212427d3268df1ddcda64d952 | /dependencies/CEGUI/Samples/common/include/CEGuiD3D9BaseApplication.h | 86cf509bb78c08c4e514e1e6a8450bfa8453844f | [] | no_license | peplopez/El-Rayo-de-Zeus | 66e4ed24d7d1d14a036a144d9414ca160f65fb9c | dc6f0a98f65381e8280d837062a28dc5c9b3662a | refs/heads/master | 2021-01-22T04:40:57.358138 | 2013-10-04T01:19:18 | 2013-10-04T01:19:18 | 7,038,026 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,965 | h | CEGuiD3D9BaseApplication.h | /***********************************************************************
filename: CEGuiD3D9BaseApplication.h
created: 24/9/2004
author: Paul D Turner
*************************************************************************/
/************************************************************************... |
a6d15d3351714fc958fe5483c9c3133e11aaa5db | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_function_4812.cpp | ef804529fc25728cdee679d3305f4d24631941be | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,837 | cpp | httpd_function_4812.cpp | void ssl_pphrase_Handle(server_rec *s, apr_pool_t *p)
{
SSLModConfigRec *mc = myModConfig(s);
SSLSrvConfigRec *sc;
server_rec *pServ;
char *cpVHostID;
char szPath[MAX_STRING_LEN];
EVP_PKEY *pPrivateKey;
ssl_asn1_t *asn1;
unsigned char *ucp;
long int length;
X509 *pX509Cert;
B... |
1b5ef6b4d02239a1f65d5ae49a9d914eabae3518 | e96140fe29ac734c9985ba8835b13a38deda8a23 | /extension/test/gui/test-style.cpp | b652605be85d329b5e3c373fef0c6b1f3bf30c00 | [
"MIT"
] | permissive | fanzcsoft/wxExtension | 33efbd379188584d6ef6a2a08fff07ed7fc3e374 | e99bd2c83502fac64db0aece657a480d0352d2ba | refs/heads/master | 2020-03-27T04:36:04.115835 | 2018-08-17T18:45:56 | 2018-08-17T18:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,604 | cpp | test-style.cpp | ////////////////////////////////////////////////////////////////////////////////
// Name: test-style.cpp
// Purpose: Implementation for wxExtension unit testing
// Author: Anton van Wezenbeek
// Copyright: (c) 2015 Anton van Wezenbeek
///////////////////////////////////////////////////////////////////////////... |
049eead99ae0b0b911fec4908aaa332251a67709 | 9db8fe57921d005d3e4fd077fb084148ac2b2464 | /mainwindow.cpp | af6821189da5ad493453b55b1178f1136c1c4650 | [] | no_license | cyt2017/caliberate | 213aa803c810acfd59bbe31461940ebb04a6b7d7 | 50808d8838e3c9b90ee1277812548c1d17b0a2dd | refs/heads/master | 2021-01-22T02:52:38.230678 | 2018-01-14T12:03:18 | 2018-01-14T12:03:18 | 102,255,064 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,443 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->lineEdit_boardX->setText(QString::number(8));
ui->lineEdit_boardY->setText(QString::number(6));
ui->lineEdit_boardSize->setText("10... |
24923ffa725f6de5911e51bd4c46b65c6895af9f | 39fe085377f3c7327e82d92dcb38083d039d8447 | /core/sql/optimizer/QRDescGenerator.cpp | 4cb561ccefbf124888cab5d9a2cd5ffb6372e02e | [
"Apache-2.0"
] | permissive | naveenmahadevuni/incubator-trafodion | 0da8d4c7d13a47d3247f260b4e67618c0fae1539 | ed24b19436530b2c214e4bf73280bc8e3f419669 | refs/heads/master | 2021-01-22T04:40:52.402291 | 2015-07-16T00:02:50 | 2015-07-16T00:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120,514 | cpp | QRDescGenerator.cpp | /**********************************************************************
// @@@ START COPYRIGHT @@@
//
// (C) Copyright 2008-2014 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... |
ec80431b6bce7aa0b55b055e536fd00764d7346d | 9eb2245869dcc3abd3a28c6064396542869dab60 | /benchspec/CPU/510.parest_r/build/build_base_mytest-64.0000/source/libparest/parameter/field_discretization.cc | 316d98f72842627c511b6f15985a3bc2467f875b | [] | no_license | lapnd/CPU2017 | 882b18d50bd88e0a87500484a9d6678143e58582 | 42dac4b76117b1ba4a08e41b54ad9cfd3db50317 | refs/heads/master | 2023-03-23T23:34:58.350363 | 2021-03-24T10:01:03 | 2021-03-24T10:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,980 | cc | field_discretization.cc | #include <base/quadrature_lib.h>
#include <base/parameter_handler.h>
#include <lac/vector.h>
#include <grid/tria_iterator.h>
#include <dofs/dof_accessor.h>
#include <dofs/dof_handler.h>
#include <dofs/dof_constraints.h>
#include <dofs/dof_tools.h>
#include <fe/fe.h>
#include <fe/fe_dgq.h>
#include <libparest/utilities... |
9a9b42e5dd99adbe22ba17bb4da373f26b11c917 | 04866171457b2527f72a6c6d69c58f5a40188f75 | /alarm/src/alarm.ino | afd8e3b3e797fc818947342ece017e8c9efff47d | [] | no_license | meisteg/TempAlarmFirmware | 379a1a4a977f11f72ba87a995a37ce1a3c911e9c | b39c341a09018f8efadcfd31f2f47c7d592be6ed | refs/heads/master | 2021-07-06T14:52:33.217724 | 2021-04-10T20:11:18 | 2021-04-10T20:11:18 | 228,218,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,579 | ino | alarm.ino | /*
* Copyright (C) 2020 Gregory S. Meiste <http://gregmeiste.com>
*
* 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... |
ec30b270b36ec2be51c545694fe09e31ee3d3e46 | 592a279f868ebe8c0fbdffc1136461c85e818cad | /algo/acm/codeforces/1-14/6b.cc | 98de7f2872e64f597c29533b58cf19eb790ad9ff | [
"Unlicense"
] | permissive | seckcoder/lang-learn | ad0e849e7575a47bd5cd88d1ff4c56a4eec8ec65 | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | refs/heads/master | 2021-01-20T06:56:49.322037 | 2015-10-28T22:25:05 | 2015-10-28T22:25:05 | 13,863,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,166 | cc | 6b.cc | //#define SECK_DEBUG
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <cstdlib>
#include <numeric>
#include <ctime>
#include <algorithm>
#include <set>
#include <string>
#include <iomanip>
#include <cmath>
#include <map>
#include <functional>
#include <climits>
#include <cstdio>
#inc... |
127e543f0bad8ebbc4928e187a8a832372f444d2 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Kernel/FileSystem/FATFS/Definitions.h | 938fc064b3aec6da2901d08d010fe59b553687d7 | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 1,921 | h | Definitions.h | /*
* Copyright (c) 2022, Undefine <undefine@undefine.pl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/DOSPackedTime.h>
#include <AK/EnumBits.h>
#include <AK/Types.h>
namespace Kernel {
struct [[gnu::packed]] FAT32BootRecord {
u8 boot_jump[3];
char oem_identifier[8];
u16 byt... |
ddc144d85bd9cab8e46fe175b6af9c5c61af42e0 | ef21d605f07fb9b342f050b0ce4ecfb8dd5f3aab | /Classes/TSStagePlayLayerCommon.cpp | fb4deb1ce55f4951cb8894142cb5a991a14cf5b3 | [] | no_license | timxie2008/TreasuresGleaner | 532384b09969408f2545278e41237a8192f92ac8 | ba325746c5b66345ab99399b27e235c766a3653f | refs/heads/master | 2021-01-22T01:33:14.331450 | 2012-11-16T05:18:20 | 2012-11-16T05:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | TSStagePlayLayerCommon.cpp |
#include "TSStagePlayLayerCommon.h"
TSStagePlayLayerCommon::TSStagePlayLayerCommon(CAStage* pstage, CAStageLayer* playerParent) : CAStageLayer(pstage, playerParent)
{
_Trace("%s allocated", __FUNCTION__);
}
TSStagePlayLayerCommon::~TSStagePlayLayerCommon(void)
{
_Trace("%s destroyed", __FUNCTION__);
}
|
cd33e1bc0ec9b8bc589eee57acd520b62b5a27c2 | 2d5aaa49e25a54ad67d2e3af147da40de823afdb | /c++/constructores.cpp | b00dde326a8fce6a5f4e0bab6ee823deebc9fc4c | [] | no_license | Juanp-Romero/Programacion_21_I_H1 | b014d10f927604b8ef132d21ef8dc78e58cf0f0a | b2a102be60f04e353d7772905c5ff0b85ab97c48 | refs/heads/main | 2023-07-18T19:47:44.431377 | 2021-09-24T15:29:18 | 2021-09-24T15:29:18 | 395,780,985 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | cpp | constructores.cpp | /******************************************************************************
Name: Principios de constructores
Author: Juan Romero
Date: 31/08/2021
Purpose: Explicar los principios básicos de constructores
Usage:
*******************************************************************************/
#include <stdio.h... |
08459c8f4c62f44931ddf6aa14b9f3982e96e5f8 | 6f75b8771085d4809611c1a6d8981bc86afa533f | /CodeChef/Junelong/fifth_tire2.cpp | 47d1ec03079e521f505873af3dc0ffbfaaf210bc | [] | no_license | ohil17yo36/CodeChef-Long | 507ba9ce398294876eb563f940417b327917f6be | 688a03858c6d9787aaec0e0ac3187be752eb7d11 | refs/heads/master | 2021-01-13T02:08:11.572643 | 2015-09-03T12:31:31 | 2015-09-03T12:31:31 | 41,857,237 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,335 | cpp | fifth_tire2.cpp | #include <cstdio>
#include <cstdlib>
#include <vector>
using namespace std;
#define lli long long int
#define mod 1000000007
inline lli scan( )
{
lli n1 = 0;
char c;
for( c = getchar_unlocked(); c==' ' || c=='\n' || c == '\t'; c = getchar_unlocked());
for( ; c > 0x2f && c... |
4a779c94ae7ab3ff779886d4683fabbe7e28b7ed | 58a49ee5a72d6788963dcc89a9af5b905ab7c5c8 | /pipes/split.h | 4772e05fc82ddc3adec8c0d26225bb9bd1cf60a2 | [] | no_license | dzendmitry/pp-stepic | 5f383b3f8a5621f6e94f3a7474bf072590b289a0 | 6de3ae1c9fac068977e8d88f5827c83e4a6906e1 | refs/heads/master | 2021-01-10T12:26:08.833407 | 2016-02-28T14:20:35 | 2016-02-28T14:20:35 | 48,170,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | h | split.h | #include <sstream>
#include <string>
#include "trim.h"
struct s_split
{
enum empties_t { empties_ok, no_empties };
};
template <typename Container>
Container& split(
Container& result,
const typename Container::value_type& s,
typename Container::value_type::value_type del... |
5f8be55834cbe21ac7ed6f6dfdbb4a72fae85cf7 | 31f5cddb9885fc03b5c05fba5f9727b2f775cf47 | /engine/core/render/base/shader/editor/node/math/shader_node_abs.cpp | d9af4e564066d0fe3d14d6c6625577e9d5a6e78e | [
"MIT"
] | permissive | timi-liuliang/echo | 2935a34b80b598eeb2c2039d686a15d42907d6f7 | d6e40d83c86431a819c6ef4ebb0f930c1b4d0f24 | refs/heads/master | 2023-08-17T05:35:08.104918 | 2023-08-11T18:10:35 | 2023-08-11T18:10:35 | 124,620,874 | 822 | 102 | MIT | 2021-06-11T14:29:03 | 2018-03-10T04:07:35 | C++ | UTF-8 | C++ | false | false | 1,519 | cpp | shader_node_abs.cpp | #include "shader_node_abs.h"
#include "shader_node_operation_rules.h"
#ifdef ECHO_EDITOR_MODE
namespace Echo
{
ShaderNodeAbs::ShaderNodeAbs()
: ShaderNode()
{
m_inputDataTypes =
{
{"any", "A"},
};
m_inputs.resize(m_inputDataTypes.size());
m_output... |
00f3000ae2db939682125c6702ee533c2fbff95c | 8c9940503495a5db7f9536e1132ebac8347a209d | /hdbextractor/cpp/tags/release-0.90.0/qt/hdbextractor-qt/src/qhdbxconnectionevent.h | bffb54dff05f5d451ea8e8e7611177236bc5841a | [] | no_license | bourtemb/hdbpp-test | 38ed2694af4c55fe27fc2b822a46affedcd0f627 | cd74223a7a3f38e98457db7dd340837966a686d3 | refs/heads/master | 2021-01-11T08:40:53.915159 | 2016-12-13T14:20:23 | 2016-12-13T14:20:23 | 76,670,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | qhdbxconnectionevent.h | #ifndef QHDBXCONNECTIONEVENT_H
#define QHDBXCONNECTIONEVENT_H
#include <qhdbxevent.h>
#include <hdbextractor.h>
#include <QString>
class QHdbXConnectionEvent : public QHdbXEvent
{
public:
explicit QHdbXConnectionEvent(Hdbextractor::DbType dbType,
const QString & host,
... |
03196d7226a01b3151911c5dbbe8b8f7551dbfb5 | 14b72f948bc838f17973d6672565fe9b8ec02ef3 | /ezio/Backtrace.cpp | f422242eed36197091782bb906b52851f3df936e | [] | no_license | cout/ezio | ddf5e02050252ae3c5b8c485309d1767688cba2b | fdeb7d23a3ec9b1cb82e96c364a66f6ca0975074 | refs/heads/master | 2021-03-12T20:26:24.509546 | 2011-12-23T17:39:21 | 2011-12-23T17:39:21 | 1,016,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | cpp | Backtrace.cpp | #include "Backtrace.hpp"
#include "Regex.hpp"
#include "cxx_demangle.hpp"
#include <sstream>
#include <cstdlib>
#include <execinfo.h>
ezio::Backtrace::
Backtrace(size_t ignore_frames)
: locations_()
{
size_t n;
void * buffer[8192];
n = ::backtrace((void **)&buffer, sizeof(buffer));
char * * strings = bac... |
f239ac83616a84ff7780f3a6b03b1fdb2a4bfbe9 | 13e60c8f5ca481ad171843288665c00e3530c178 | /exec/src/tests/OrnsteinUhlenbeckProblem.cpp | eed67c8137393b397f9c081389d4a92fd954ae6f | [] | no_license | Inchman/Inchman | 54b08b925041d839a8c4b9427c717be2f009599b | f9d3576c998a0f50a984eab91c12ad07ff785109 | refs/heads/master | 2021-03-12T22:03:38.735495 | 2014-08-25T17:50:08 | 2014-08-25T17:50:08 | 15,157,306 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,557 | cpp | OrnsteinUhlenbeckProblem.cpp | #include "OrnsteinUhlenbeckProblem.h"
#include "Compartment.h"
namespace gpgmp {
/**
Sets up the species and the source compartment. We use the pre-defined
drift-diffusion method gpgmp::DT_ORNSTEIN_UHLENBECK and set the kernel
parameters accordingly.
\see setComputeDriftDiffusivityMethod
\see setParameter
... |
e83b8bd110741941edc40fa87312139c2d189657 | d55d0b8e7432cf834df42a193206f32b9c0c9e1c | /Hello/Hello.cpp | 43f7079da5c8a451a071efe6fdbd0414ebf0cdd6 | [] | no_license | Hongwei-L/Win10EffectivePowermode | ade9763e1e361a0c75e4f2db201614e293729241 | e880b8f67a01d47f4c9b39c3947bf5f6d0ad851c | refs/heads/master | 2023-01-07T14:49:20.057865 | 2020-11-05T09:41:02 | 2020-11-05T09:41:02 | 310,253,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | cpp | Hello.cpp | // Hello.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <windows.h>
#include <powersetting.h>
#pragma comment(lib, "Powrprof.lib")
const TCHAR* Effective_PowerMode[]{
__TEXT("BatterySaver"),
__TEXT("BetterBattery"),
__TEXT("Balanc... |
c919377f23dd206e0047258d0d172be91607db74 | bf5bc8f2dc8533b0a329e6dc0217a8c768c65e68 | /tp1/include/ColorImage.h | b4f775f3f24d26a9cb23c7991da58cd3fa9e720a | [] | no_license | guillaume-gomez/Rep-Code | 598fd908f9c4e3cf7db29385b5ca99e257dcc094 | 8dd41059fa76174bf3d12e65e8a8373be16491ff | refs/heads/master | 2021-06-27T14:16:43.692061 | 2017-01-29T18:45:14 | 2017-01-29T18:45:14 | 27,116,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | ColorImage.h | #ifndef COLORIMAGE_H_INCLUDED
#define COLORIMAGE_H_INCLUDED
typedef unsigned short int ushort;
typedef unsigned char ubyte;
typedef unsigned int uint;
#include "Color.h"
class ColorImage
{
private :
ushort width;
ushort height;
Color * array;
public :
ColorImage(u... |
fbc9e933c100f051c04258f67c5e0c3cbcba9958 | 121c754ec3cf9e5844eece7ce8808e2d616dc947 | /src/lighting/ShadowVolume.cpp | 1826319b7ed77e8f98ff6b9a9cd7350f198c4410 | [] | no_license | forry/Lexoanim | 57eaa5bbac1da2d41b16efe1549a4b95a0ff43de | 05adf8a39ad7f19e2171f010577f194d504bd723 | refs/heads/master | 2016-09-06T09:09:07.503852 | 2011-10-27T13:29:14 | 2011-10-27T13:30:52 | 2,619,825 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,835 | cpp | ShadowVolume.cpp | /**
* @file
* ShadowVolume class implementation.
*
* @author PCJohn (Jan Pečiva), Foreigner (Tomas Starka)
*/
#include <osg/BlendFunc>
#include <osg/CullFace>
#include <osg/Depth>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/LightModel>
#include <osg/Material>
#include <osg/Stencil>
#include <osg/St... |
31864f43f593259ce7d5ffe9279f9f86ea11c50f | b27d06a03ef7a0b20afc4942f6d917619500b3f1 | /poprawka kolokwium 1 - 2014.cpp | 91417d24c2bb46a7317cba36c330c2a786e08060 | [] | no_license | StanczakDominik/algi | a860111820f03c59fc874525570a0ac9125c5c84 | 9312fb2ad661b8a4e2656de415999395981d3edc | refs/heads/master | 2021-01-10T15:46:20.887535 | 2016-01-20T19:13:31 | 2016-01-20T19:13:31 | 46,993,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,797 | cpp | poprawka kolokwium 1 - 2014.cpp | Węzeł drzewa dwumianowego
struct node
{
int key;
int h;
node *child, *prev, *next;
}
node *head;
void AddTreeToQueue(node *tree)
{
int h = tree->h;
node *p = head;
if(!p) head = tree;
while(p->h<h)
{
p = p->next;
}
if(p->next->h == h) p->next = MergeTree(Extract(p), tr... |
23457fee812334b0e00ca80b5106088f7c4d25b1 | 9bb2bd52ad9831ac4c64ae9ef4a86965e74c0160 | /contests/abc029/d.cpp | f8b8fe1655bc51eaef0f450d6ca0938e01b0dc75 | [] | no_license | hiranoo/atcoder | f31560a60ee8f94379b4e958e598d0e733b0f2b3 | aab6709d5819521b7a213cbf78dc6b33de69269e | refs/heads/master | 2023-08-12T05:00:02.984971 | 2021-09-28T12:08:02 | 2021-09-28T12:08:02 | 370,005,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,774 | cpp | d.cpp | #include <vector>
#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <bitset>
#include <stack>
#include <queue>
#include <bits/stdc++.h>
#include <atcoder/segtree>
#include <time.h>
#define rep(i, s, t) for(int i = (s); i <= (t); i++)
#define repd(i, s, t) for(int i ... |
2bb212561d1dc05926cddd20cd35875ed73f839c | 9270b70d8c92062b5636100b09d2105b22a274ad | /Battleship/inc/GameData.h | 731dd73539b814a99d7b756d05e022ddf337adc3 | [] | no_license | naelektryzowany/Battleship | bff2b4c413ee0be2da05b547956d767e25102be6 | aac880360011fb547b3569e61854f81816978417 | refs/heads/master | 2020-11-23T22:16:19.226695 | 2020-01-26T17:43:37 | 2020-01-26T17:43:37 | 227,843,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | GameData.h | #ifndef GAME_DATA_H
#define GAME_DATA_H
class GameData {
public:
GameData(double ratio, int shipsLeft, int shipsDown) : mRatio(ratio), mShipsLeft(shipsLeft), mShipsDown(shipsDown) {}
double getRatio() const;
int getSipsLeft() const;
int getShipsDown() const;
private:
double mRat... |
60a117e41d1a06af66a47f1c48c3346ee022b025 | cf4e7cfba5f4aa4e88778d87418d017096d21d54 | /Elections - cpp/party.cpp | 0ca9124df2ee894029e117a9ce8e930917b2988c | [] | no_license | MayCesana/Elections-cpp | e0acf2dc3a4c0594b8b4748a537701e44a4b63ba | 790897eafb5f61a9cbd80fb35708e5e139a53ebf | refs/heads/main | 2023-04-09T09:35:15.410266 | 2021-04-28T09:49:39 | 2021-04-28T09:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,720 | cpp | party.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include "party.h"
using namespace std;
namespace Elections
{
party::party(const string& name, const citizen& prime, int serial, int numOfDistricts) : serial(serial),
PrimeCandidate(prime), partyName(name)
{
if (numOfDistricts < 0)
throw inval... |
6731fbcf27c1fd5df2031fe99323edef96b32e7d | b67cce54b0b1456aadb32a25455d37e87323871e | /test/perft.cpp | 98f3dd86e98b515658668bdc5cb1ba56cab76a9c | [] | no_license | ngynkvn/chess | 19b65679be287a9b0651a2ee353d051db51e345f | 6432c102ef9ce34a53fc9c7dcd6ddcdbca12093f | refs/heads/master | 2021-04-12T08:13:57.600201 | 2019-10-03T16:48:43 | 2019-10-03T16:48:43 | 126,072,403 | 0 | 13 | null | 2019-05-08T16:09:28 | 2018-03-20T19:36:08 | C++ | UTF-8 | C++ | false | false | 1,253 | cpp | perft.cpp | #include "Board.h"
#include "Search.h"
#include "Move.h"
#include "pertf.h"
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <map>
//Based off perft function here:
//http://chessprogramming.wikispaces.com/Perft
/*
* Perft functions allow for the testing of move generation algorithm... |
6f3c9153d8c22614fc4dd1b1533343aace28c0a6 | 66f53c945a91158a9439e1bbea8cb8b823df556b | /include/DTL/Utility/Copy.hpp | 5a07fc0ad8970825b2351db968d176768871b1c4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | sitRyo/DungeonTemplateLibrary | cded163e2953b6c3218668a4fb6ab1b820d81d90 | d8964db68fef28a292790ce9661e881cc3a5fa2d | refs/heads/master | 2020-08-15T13:17:50.391650 | 2019-10-15T02:06:37 | 2019-10-15T02:06:37 | 215,349,428 | 1 | 0 | BSL-1.0 | 2019-10-15T16:46:02 | 2019-10-15T16:46:02 | null | UTF-8 | C++ | false | false | 3,692 | hpp | Copy.hpp | /*#######################################################################################
Made by Kasugaccho
Made by As Project
https://github.com/Kasugaccho/DungeonTemplateLibrary
wanotaitei@gmail.com
This code is licensed under CC0.
##############################################################################... |
42b4642b5e1d366df83586997278f4c02d79e415 | 661bb25db192b744bd10d6c3ca702a7e307c602d | /TribesAscendSDK/HeaderDump/Engine.ChannelDownload.h | a0721e6e0066cf17e6d4a85cd94388b9929312ef | [] | no_license | Orvid/TASDK | 9582682f0f60a6f6fce5caea3cdd978f401565b3 | 6057c26b8185b08bc47c58ddecefe0f14becf566 | refs/heads/master | 2020-12-25T01:06:16.876697 | 2013-08-02T16:26:25 | 2013-08-02T16:26:25 | 11,539,096 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 168 | h | Engine.ChannelDownload.h | #pragma once
namespace UnrealScript
{
class ChannelDownload;
}
#include "Engine.Download.h"
namespace UnrealScript
{
class ChannelDownload : public Download
{
};
}
|
fbda0bc6a37a8595a0933f67d5606726795c39ae | 64589428b06258be0b9b82a7e7c92c0b3f0778f1 | /Codeforces/Rounds/977/E.cpp | 767cd8d5f3466197df6031341e2bdbc5ac8cd3e1 | [] | no_license | splucs/Competitive-Programming | b6def1ec6be720c6fbf93f2618e926e1062fdc48 | 4f41a7fbc71aa6ab8cb943d80e82d9149de7c7d6 | refs/heads/master | 2023-08-31T05:10:09.573198 | 2023-08-31T00:40:32 | 2023-08-31T00:40:32 | 85,239,827 | 141 | 27 | null | 2023-01-08T20:31:49 | 2017-03-16T20:42:37 | C++ | UTF-8 | C++ | false | false | 857 | cpp | E.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAXN 200009
#define MAXM ((1e+18) + 100)
#define MOD 1000000007
#define INF 1000000009
#define EPS 1e-9
#define FOR(x,n) for(int x=0; (x)<(n); (x)++)
#define FOR1(x,n) for(int x=1; (x)<=(n); (x)++)
#define pb push_back
#define all(x) x.begin(), x.end()
typedef pair<... |
9417220708ed05a0ed0ce533e73ffeb3ee536a0a | 1495647af9e5941772ab7d383b4cf78cdb0fb77f | /Tree/Home/tree_global.cpp | f11b26ee5a73b7f262920c2476c582ccef0102d7 | [] | no_license | Imran4424/Data-Structure | aa7e33b567406dd9bf25be7cc35d72f0cee761a9 | 9b6b8e5367849e133aa437040946794db63399b1 | refs/heads/master | 2022-04-07T12:47:23.894934 | 2022-02-10T16:13:12 | 2022-02-10T16:13:12 | 124,618,740 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | tree_global.cpp | #include <iostream>
using namespace std;
struct node{
int data;
node *left;
node *right;
};
node *root = new node;
node *ptr;
void insert_tree(int info)
{
node *temp = new node;
temp->data = info;
temp->left = NULL;
temp->right = NULL;
if(root == NULL){
root = temp;
}
... |
f8972c6245b16ea513f277f1a2f0058726624f23 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/inetsrv/iis/ui/admin/comprop/machine.cpp | 0ccb1e68f709ed81ae7f2c9be1785fc8f38b6f4e | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,726 | cpp | machine.cpp | /*++
Copyright (c) 1994-1998 Microsoft Corporation
Module Name :
machine.cpp
Abstract:
IIS Machine properties page
Author:
Ronald Meijer (ronaldm)
Project:
Internet Services Manager
Revision History:
--*/
//
// Include Files
//
#include "stdafx.h"
... |
4f404688ac9594382a55b9732c5fe1433ed47161 | eeedb5c3368637421ae7335dcc921ad9366f9e09 | /healthbarhandler.cpp | baae85a6e7a8064d498861551fe78f513645fc2a | [] | no_license | CaptainDreamcast/House | 520ecc5efb6b4b133d2eaac29aa43b2eec754bd2 | 3967c8f54274a80723c5e756c2026b53986577bf | refs/heads/master | 2020-04-19T06:51:58.774149 | 2019-01-28T20:24:45 | 2019-01-28T20:24:45 | 168,030,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,671 | cpp | healthbarhandler.cpp | #include "healthbarhandler.h"
#include <prism/blitz.h>
#include "gamescreen.h"
#include "playerhandler.h"
#include "titlehandler.h"
#include "backgroundhandler.h"
static struct {
int mHouseMaxHealth;
int mHouseCurrentHealth;
int mPlayerMaxHealth;
int mPlayerCurrentHealth;
int mHouseBGAnimationID;
int mHouseF... |
882118a4ab4049c5cbd5df58c69855807173e991 | 5ca1c8bee4fb4decde14e4bc92034086add8130d | /Release/Qt/AttentivenessParameter/mainwindow.cpp | 2a515d2b0fc7c23c6b4c8a940675b47b634d687c | [] | no_license | BlackBerryPi/Attentiveness-Parameter | f5a72a695efebbf3174825482ab13d2ddda6ecf6 | 49e3669ea48601ae1c6c4189c5cf19b2850ccb19 | refs/heads/master | 2021-09-11T19:43:08.249838 | 2018-04-02T12:54:19 | 2018-04-02T12:54:19 | 125,729,787 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,763 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QString>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->BaudRateSpinBox->setValue(9600);
const auto infos = QSerialPortInfo::availablePorts();
for (co... |
40ae859f68f345dda1c72cb291316af0ff6a1b8e | f5798b166c808c8d5f69afd77285243bb74db8f2 | /main.cpp | a529ec3227200f3bf6e035b9b9748bc1bda70313 | [
"MIT"
] | permissive | LorieMc/Demo | fd7f31122a9adba6bf9f85660d20f35966e3af0a | 35360e2de7635e426941f889ce38c00b7e53cbe1 | refs/heads/master | 2021-01-17T18:52:56.328385 | 2015-06-14T21:57:04 | 2015-06-14T21:57:04 | 37,427,632 | 0 | 0 | null | 2015-06-14T20:03:18 | 2015-06-14T20:03:18 | null | WINDOWS-1252 | C++ | false | false | 27,350 | cpp | main.cpp | /*-------------\
| main.cpp | Demo Challenge OpenGL 3.3 Framework
\*-------------/ ------------------------------------------------------------------------------------------*\
Version 3.3 - 06/05/2015
Author: Godvalve
Email: godvalve@hotmail.com
Participate in the Demo Challenge. Visit: http://demochr... |
32041a6c824dc865aba71761a8beb4e40702c94e | 2c78b4a6c5479bd388669b2f954b10cfa3e5a67f | /include/bm/bm_sim/queue.h | 309a9c98d484af0f9406ca2bff18b7cb4b591de6 | [
"Apache-2.0"
] | permissive | p4lang/behavioral-model | f543d155215df7b37843b36e5d11d63712404218 | 7d7c3c7c5b82c14a8d70ecd82ad15635425f01d9 | refs/heads/main | 2023-09-03T19:31:48.415229 | 2023-08-21T16:45:31 | 2023-08-21T16:45:31 | 29,883,110 | 507 | 399 | Apache-2.0 | 2023-09-08T00:58:09 | 2015-01-26T21:43:23 | C++ | UTF-8 | C++ | false | false | 4,112 | h | queue.h | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
85c37a3ccb110dc3a682cc57c69074dea52b4757 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/core/scoring/rna/chemical_shift/RNA_ChemicalShiftEnergy.cc | 228eb58d041a47dbaceb95c2078d2dda54177d1c | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 4,088 | cc | RNA_ChemicalShiftEnergy.cc | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
f6e945fefff452c64d9eff9d52e1cbbd8b730475 | 6d8adaaa4d85dfb33f903770d7e5a8ef4c60773f | /MOOS_Aug2322/MOOSCore/Core/libMOOS/Comms/EndToEndAudit.cpp | 23e20508822a483e5d432d26ceaf3112ee8397c1 | [] | no_license | moos-ivp/svn-mirror | 3509614f054dbc9d2ecc19d503b3f20298138f66 | d537fa58f7891688bb64220e35c267ae6ef4f476 | refs/heads/master | 2023-06-25T15:10:16.009010 | 2023-06-14T12:45:58 | 2023-06-14T12:45:58 | 82,476,527 | 6 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 3,826 | cpp | EndToEndAudit.cpp | #include "MOOS/libMOOS/Comms/EndToEndAudit.h"
///////////////////////////////////////////////////////////////////////////
//
// This file is part of the MOOS project
//
// MOOS : Mission Oriented Operating Suite A suit of
// Applications and Libraries for Mobile Robotics Research
// Copyright (C) Paul Newman
/... |
a6240d9f2ecfee708072ab438d6ee89a963cedbc | 437af6dbbcd4d4150575803173abd3603e824064 | /02-24/1/ac/ethan.cpp | b10873a910465cc346b9140cf89270caae4bee7d | [] | no_license | masonsbro/spring-2017-contests-solutions | 7aead43b0646c86aecfe5071df504a2d6505c3dd | 7b071514f59333d817f93465cb92c1676a3356d1 | refs/heads/master | 2021-01-22T05:10:18.115948 | 2017-02-26T02:10:46 | 2017-02-26T02:10:46 | 81,625,115 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | ethan.cpp | #include <cstdio>
#include <cassert>
using namespace std;
int t, c, g;
int main() {
scanf(" %d", &t);
assert(1 <= t && t <= 100);
for (int q = 0; q < t; q++) {
scanf(" %d %d", &c, &g);
assert(c != g);
assert(1 <= c && c <= 1000);
assert(1 <= g && g <= 1000);
if (c ... |
a93aea9ca98c57003300077d477fb31145a44d8f | 353c425bb93fa21fead24c5c6766a017289ccbea | /leimoban2/leimoban2/类模板与继承.cpp | 4cee5f4f3c6ee356252ed256c74a7467c4ca3c6a | [] | no_license | kass31415926/Play | 7b51ddd9b0657e6f53833f0569ceff117cca2029 | 9f7a92d79127513e72bd799220593e99fd0c3be5 | refs/heads/master | 2023-06-24T03:50:42.819532 | 2021-07-22T10:30:27 | 2021-07-22T10:30:27 | 347,595,022 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 491 | cpp | 类模板与继承.cpp | //#include <iostream>
//using namespace std;
//#include <string>
//
////类模板与继承
////
//
//
//template<class T>
//class Base
//{
//public:
//
// T m;
//};
//
//
////class Son :public Base//需要知道父类中的T的类型
//class Son:public Base<int>
//{
//
//};
//
//void test01()
//{
// Son s1;
//}
//
//template<class T1,class T2>
//class ... |
00209e2242fc520a2ff336fae04b2211b74b0b88 | 9e778aec516e3faaf9f7b926f49298a900cdff54 | /Platform Game/Motor2D/GUI_Logo.cpp | b87051da7bdbff43e2cb041565ba02e4f28d2e5f | [
"MIT"
] | permissive | Sebi-Lopez/DevGame | a6e1795b7c7fd3340800639b97a266996b880f54 | 03ea048fcf1f60816c621d24ab08828a71d7d737 | refs/heads/master | 2020-03-31T02:44:08.014203 | 2018-12-23T22:52:11 | 2018-12-23T22:52:11 | 151,837,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | GUI_Logo.cpp | #include "GUI_Logo.h"
#include "SDL/include/SDL_rect.h"
#include "j1GUI.h"
#include "j1App.h"
#include"j1Textures.h"
GUI_Logo::GUI_Logo(int x, int y, SDL_Rect& atlasrect, GUI_Object* parent) : GUI_Object(x, y, parent)
{
position.x = x;
position.y = y;
section = atlasrect;
}
GUI_Logo::~GUI_Logo() {
App->tex->UnL... |
0a22ad71bf056dbb3eeeb9ed81c11063829bb878 | 59bb7cd19de46a5402198d9f69c88bc39e0c13a4 | /gyro_code (1).ino | 582653e73d29a7e46b9dd1a648c61c6564690dea | [] | no_license | FENIL2909/one_dimensional_flight_controller | 955b1b18a7938ae9b518d191f9b6d0495e15bfdf | 06cdfbaab6ffe89a76355eea3bf5bc19994728d1 | refs/heads/master | 2020-03-27T09:11:27.005009 | 2018-08-27T16:00:55 | 2018-08-27T16:00:55 | 146,320,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,801 | ino | gyro_code (1).ino | #include <Wire.h>
#include <Servo.h>
//for taking raw values from accelerometer:
double raw_accel_x, raw_accel_y, raw_accel_z;
//corrected values:
double gforce_x, gforce_y, gforce_z;
//for taking raw values from gyro:
double raw_gyro_x,raw_gyro_y,raw_gyro_z;
//for corrected values:
double rot_x, rot_y, rot_z;
//... |
8691e5e8d8d1230d3f98ad5fa1e27a585d6eb20a | 316d364b4be050ba1f04c4079ad5db49e61bf234 | /ISO15765Proxy/iso15765.h | 8cd00c3285de2c36151cdbe79a414eb40fb2f289 | [] | no_license | diorcety/j2534-tools | a49d4f53c1a807b8fe830f0bb39907b59fed9a3e | 1ba06377ef1e889ec3dbee8f98dda92f24e82f1e | refs/heads/master | 2021-01-17T18:09:11.869420 | 2016-08-15T14:24:14 | 2016-08-15T14:24:14 | 65,738,110 | 8 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 5,485 | h | iso15765.h | #pragma once
#ifndef __ISO15765_H
#define __ISO15765_H
#include "internal.h"
#include "configurable_channel.h"
#include <list>
DEFINE_SHARED(TransferISO15765)
DEFINE_SHARED(MessageFilterISO15765)
DEFINE_SHARED(ChannelISO15765)
DEFINE_SHARED(DeviceISO15765)
DEFINE_SHARED(LibraryISO15765)
class LibraryISO15765: publi... |
5747c5cebeb587663eb3b973be8cbc2a53534337 | 303e4568e29ede8059e3a5d61124246baaf5bdc6 | /kja_main.ino | 6460be10590eaf5f51a47088909597d0e0bafcfc | [] | no_license | onuryunus/kja | f006f3914750d843bb13b33ef70bc30af29fdccc | 2a08434cfce2695e568ef32b99551db4370c79a3 | refs/heads/master | 2020-03-15T04:01:56.712338 | 2018-06-01T08:44:37 | 2018-06-01T08:44:37 | 131,955,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,435 | ino | kja_main.ino | #include <EEPROM.h>
#include <SoftwareSerial.h>
#include <SPI.h>
#include <SD.h>
#include <ADXL345dual.h>
#include <Wire.h>
File myFile;
ADXL345 device;
String fileName = String();
const int rxpin = 7;
const int txpin = 6;
char k = 'A';
unsigned int filenumber;
SoftwareSerial bluetooth(rxpin, txpin);
int Sdo = 9;
int ... |
0ef229df46a9b7f7a262bb4b0582650298ee7eaf | d871ce70c7c3c8d58dbd90f9abbbc68e2c986e39 | /TodoWindow.h | 7ac12ff61429bf0633193f81c2e8b0a4bc4fbbfc | [] | no_license | gidzzz/qalendar | 28dd4f677ec218b4b0352cf68a82c01d8c8cc807 | 5a6c75bf6919e94a0aa664f5468bce8fe2032a4c | refs/heads/master | 2020-12-24T15:49:43.176869 | 2015-07-30T20:58:12 | 2015-07-30T20:58:12 | 37,643,821 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 625 | h | TodoWindow.h | #ifndef TODOWINDOW_H
#define TODOWINDOW_H
#include "ui_TodoWindow.h"
#include <CTodo.h>
#include "ChangeClient.h"
class TodoWindow : public QMainWindow, public ChangeClient
{
Q_OBJECT
public:
TodoWindow(CTodo *todo, QWidget *parent);
~TodoWindow();
void onChange();
private:
Ui::TodoWindow *ui... |
f2c284cf1d28be4c88439e8aa73139b616eacb2f | 3e8fea939b969905d058ef9584ad83dcc3b2e391 | /client/src/gui/gfx/PlayerDrawable.cpp | 383c22bbf674bdceaebc2cabeb5654d7e765da6a | [] | no_license | NiceTwice/rtype | 2a508dc4ccba0e229435cfdbaa40845dd71bf3f1 | 6a5f2a13955e6d8e90ad70156efa5f6dd6d50225 | refs/heads/master | 2020-03-20T00:52:36.997634 | 2018-06-12T12:59:31 | 2018-06-12T12:59:31 | 137,059,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,918 | cpp | PlayerDrawable.cpp | //
// PlayerDrawable.cpp for rtype in /home/lanquemar/rendu/rtype
//
// Made by Adrien Vasseur
// Login <adrien.vasseur@epitech.eu>
//
// Started on Wed Dec 28 17:54:04 2016 Adrien Vasseur
// Last update Wed Dec 28 17:54:04 2016 Adrien Vasseur
//
#include <tools/Chrono.hpp>
#include <gui/MainWindow.hpp>
#include ... |
8286c7427b3b00c245ca82b4e6c36a4e4de212e0 | 3a851c70709912dae1e034380a9f62fcb6927058 | /Linked Lists/Segregating Even and Odd LL.cpp | 9f729ba7edd34d6eda1692d35af0cbeec29db1db | [] | no_license | talrejamohit03/DataStructuresAndAlgorithms | 3ee0fc35f8fc75bb4b3cfdf75eaf9875a35fccbc | f8d2db7040ed69e85331f489963ae9b7ff7ae5ac | refs/heads/main | 2023-02-18T09:28:29.959585 | 2021-01-21T08:32:55 | 2021-01-21T08:32:55 | 331,559,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,800 | cpp | Segregating Even and Odd LL.cpp | #include <iostream>
using namespace std;
struct lnode{
int data;
lnode *next;
};
typedef lnode* LPTR;
void inpLL(LPTR &L){
LPTR T;
int n;
cout<<"New Linked List\n";
cout<<"Enter element (-1 to terminate): ";
cin>>n;
while(n!=-1){
LPTR temp;
temp=new(lnode);
temp->d... |
e0c22d558b6ab54a4d3a31f83a5c2aa0ccee4d2b | cab700fb27171e2cadeefff2aab6d970d8dd9714 | /VSIPerf/include/ModularAlgorithmBase.h | 6a83becfa382b0f9edbf84981446aad97ea1e85c | [] | no_license | rushioda/Seed_perf | a298e38c86afd76bc0e2c59ffe0931e76676b3ec | 716f4f65233f6e29ddfae879a4e91845fe26db5d | refs/heads/main | 2023-04-08T08:54:06.135237 | 2021-04-18T13:46:30 | 2021-04-18T13:46:30 | 359,153,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | ModularAlgorithmBase.h | #ifndef ModularAlgorithmBase_H
#define ModularAlgorithmBase_H
#include <EventLoop/Algorithm.h>
#include <include/TreeManager.h>
#include <include/ProcessorBase.h>
class TH1;
class ModularAlgorithmBase : public EL::Algorithm
{
public:
int prop_do_selectRegion;
std::string prop_regionName;
std::string prop_... |
96b88228e516f5b74d48eac9412fb64abb38eef8 | 58daa687cadfc694190ff26b6733f6397d845e17 | /9dp/wordBreak.cpp | b3d8bbf36df7556fdf60504206bbd97754517ffd | [] | no_license | xiaoyongaz/jslintcode | d40dcac86b9062b9b0fe9a03fde80abf3ce5aa9a | a13f5ddffa44be151d4edb32887a9cdf21dc2cb9 | refs/heads/master | 2022-12-09T21:03:35.050902 | 2020-04-20T21:55:16 | 2020-04-20T21:55:16 | 240,986,322 | 0 | 1 | null | 2022-12-06T17:29:13 | 2020-02-17T00:01:37 | JavaScript | UTF-8 | C++ | false | false | 1,575 | cpp | wordBreak.cpp | #include <vector>
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <string>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <unordered_set>
using namespace std;
class Solution {
public:
bool wordBreakHelper(string &s, int start, int end, vector<vector<int>> &wordMap, un... |
cdc3e573199c994c133e36b4e7ccf23d5764836f | 5d4f3ccfbea9e92f4cb0907f50e618d728059941 | /student_details.cpp | 754a5f4d0d1daaafec38e18726767e168b53edbf | [
"MIT"
] | permissive | govind1996/COMPETITIVE-PROGRAMMING | b563a369bc76b498e6ab8d0d9a350d8d4216ea57 | 338d5a7026a444a509f65bccfce5eab9c91c5a03 | refs/heads/master | 2018-12-22T13:32:17.328655 | 2018-10-03T15:00:45 | 2018-10-03T15:00:45 | 108,137,687 | 2 | 2 | MIT | 2018-10-03T15:00:47 | 2017-10-24T14:21:36 | C++ | UTF-8 | C++ | false | false | 669 | cpp | student_details.cpp | #include<bits/stdc++.h>
using namespace std;
class student
{
string name;
int roll;
string adr;
public:
student(string sname,int sroll,string sadr)
{
name=sname;
roll=sroll;
adr=sadr;
}
~student()
{
cout<<"Student's name is "<<name<<endl;
cout<<"... |
577490725c4fdf2f14f14de721caa0f4347bddff | 6d5f2e99ae89e6c59bdafed707f5a5db673dec23 | /src/misc/readLinesFromFile.cpp | 486d5f48a05c0e7277beeb8eb8774892df796bc7 | [
"MIT"
] | permissive | bencabrera/grawitas | b633ae1dbbbb3da8a37b61b2cb48c493d7c299d2 | 8eda68846ed283afe70d56d68375525a1140de70 | refs/heads/master | 2022-03-27T08:27:16.948509 | 2018-01-19T09:48:37 | 2018-01-19T09:48:37 | 81,924,748 | 7 | 7 | MIT | 2022-01-25T18:14:46 | 2017-02-14T08:49:49 | C++ | UTF-8 | C++ | false | false | 371 | cpp | readLinesFromFile.cpp | #include "readLinesFromFile.h"
#include <boost/algorithm/string/trim.hpp>
std::vector<std::string> read_lines_from_file(std::istream& input)
{
std::vector<std::string> lines;
std::string line;
while(std::getline(input,line))
{
boost::trim(line);
if(!line.empty() && line.front() != '#')
... |
9f93d73df5f7ca2d4277ea3ca24781f2c01d2980 | 67ed6034aa03c89fa11c4d73a2643f999fdca30c | /1570_dot_product_sparse_vector.cc | f2d8b43f857dfa43854170f4d42a5e80ebc3a62b | [] | no_license | yichen-git/leetcode | 092037624c99fc4d1af3b0b62e03d8bd5a9fe187 | 02f1ad3c869d83b356c60a6e9bddb29d747123dd | refs/heads/master | 2023-01-22T13:18:00.572925 | 2020-11-22T21:31:58 | 2020-11-22T21:31:58 | 177,897,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cc | 1570_dot_product_sparse_vector.cc | class SparseVector {
public:
map<int, int> omap;
SparseVector(vector<int> &nums) {
for (int i = 0; i < nums.size(); i++) {
if (nums[i] != 0)
this->omap.insert(make_pair(i, nums[i]));
}
}
// Return the dotProduct of two sparse vectors
int dotProdu... |
f244a77104c625bc6c33c786c4d57fb4358025d1 | 78a3cc861b46d0385c7efc54ceda9d62818e12a2 | /include/skland/graphic/font.hpp | 6a3265bbbb87958774c7a9d7e773a2b4664a7f35 | [
"Apache-2.0"
] | permissive | zhanggyb/skland | 90f618ae713996b115170860092703bb2099f348 | 055d91a6830b95d248d407c37a8a2fa20b148efd | refs/heads/master | 2020-06-15T17:17:37.258046 | 2017-11-12T15:04:19 | 2017-11-12T15:04:19 | 75,276,770 | 20 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,404 | hpp | font.hpp | /*
* Copyright 2016 Freeman Zhang <zhanggyb@gmail.com>
*
* 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 applic... |
f3b1857767be6b79e911ad962095d31c53a88f69 | 1d9e60a377ce2b0b94234e90c3156f212f2a7e9b | /4/ListEx/ListExDlg.cpp | ec20d5e1a21cfaaed0bfe16954e5e25ff68940e9 | [] | no_license | seehunter/visual_c-_reff_skill_code | fd13ceec2c34bd827f2556638bbc190be46d9b93 | 1a99bd875c32a04cbcc07c785b61270821c58341 | refs/heads/master | 2020-04-09T21:28:33.030596 | 2018-12-06T01:59:25 | 2018-12-06T01:59:25 | 160,603,401 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,246 | cpp | ListExDlg.cpp | // ListExDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "ListEx.h"
#include "ListExDlg.h"
#include ".\listexdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// 对话框数据
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void D... |
889b1bc2e6ba6f2ff94b77eb16d65effa81b8409 | c7bec767654da14be79942ae694e2f884e797a07 | /Validation/GEMCosmicMuonStand/interface/gemcrValidation.h | 25b0a10ab6134e4e5fa2463806707f20cd8810f3 | [] | no_license | hyunyong/QC8 | 0b880d69834613eba2c9f2dd0ea740bcf7279008 | 432e37364ea8d9505ef2889e5c5b190d051ad265 | refs/heads/master | 2020-04-28T03:44:48.693885 | 2019-03-11T07:36:58 | 2019-03-11T07:36:58 | 174,949,365 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,882 | h | gemcrValidation.h | #ifndef gemcrValidation_H
#define gemcrValidation_H
#include "Validation/MuonGEMHits/interface/GEMBaseValidation.h"
#include <DataFormats/GEMRecHit/interface/GEMRecHit.h>
#include <DataFormats/GEMRecHit/interface/GEMRecHitCollection.h>
#include <DataFormats/TrackReco/interface/Track.h>
#include <DataFormats/TrackingRe... |
be57877c9a1ddc8a200a3914501b93c21bf15a7d | 6465889bd2d49d3c6e02146d1fbeaf0edb4d9271 | /140-Suma de digitos.cpp | 773edc671667d5d9ba3683da0e2b54ee74905f0a | [
"MIT"
] | permissive | MiguelJiRo/Acepta-el-reto | aef75839875d49eeea8f84b52a9cc8e82b1c2c4f | d34e24be2ba685010c0747bde904803a6b9e4cea | refs/heads/master | 2021-06-25T03:55:32.109208 | 2020-11-18T15:16:36 | 2020-11-18T15:16:36 | 150,131,722 | 2 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 786 | cpp | 140-Suma de digitos.cpp | // Miguel Jiménez Rodríguez
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
bool resuelve();
int resuelveCaso(int num);
int main() {
// Para la entrada por fichero.
/*#ifndef DOMJUDGE
std::ifstream in("casos.txt");
auto cinbuf = std::cin.rdbuf(in.rdbuf());
#endif*/
while (resuelv... |
696dd230512275a3bed5c95f662ac5c182ef7965 | a93cf8f695c1d1d97b8d0b9ccec6932c5e499ff8 | /Cpp/jaewon/solveac_lv3/1764 듣보잡/1764 듣보잡/1764 듣보잡.cpp | c8952e46c5b932d9a379a98ddf1b57f52f091a12 | [] | no_license | tmdwns1101/AlgorithmStudy | 0abc108a7a73895934da2633998c7a90137d49ea | e8ca069e202f40e074b7311626fe8da8af057589 | refs/heads/master | 2021-07-22T11:32:30.817108 | 2020-05-20T16:28:27 | 2020-05-20T16:28:27 | 165,377,838 | 0 | 1 | null | 2020-02-07T07:56:16 | 2019-01-12T11:02:59 | C++ | UTF-8 | C++ | false | false | 1,415 | cpp | 1764 듣보잡.cpp | /*
문제
김진영이 듣도 못한 사람의 명단과, 보도 못한 사람의 명단이 주어질 때, 듣도 보도 못한 사람의 명단을 구하는 프로그램을 작성하시오.
입력
첫째 줄에 듣도 못한 사람의 수 N, 보도 못한 사람의 수 M이 주어진다.
이어서 둘째 줄부터 N개의 줄에 걸쳐 듣도 못한 사람의 이름과, N+2째 줄부터 보도 못한 사람의 이름이 순서대로 주어진다.
이름은 띄어쓰기 없이 영어 소문자로만 이루어지며, 그 길이는 20 이하이다.
N, M은 500,000 이하의 자연수이다.
출력
듣보잡의 수와 그 명단을 사전순으로 출력한다.
*/
#include <iostrea... |
e8d67aaed5d9eac7d92531d0924a7bb212e4009a | ebe1eaf68b4ebe941e564ecaf536a06d625e1eda | /Engine/include/XSEIMaterialReader.h | 76bd5db675dcaf59c35715480ca965ca0dd20b94 | [] | no_license | przemyslaw-szymanski/x-source-engine | 54a23e9ad740f7ab1b4a439f87733c366233eb58 | 1afa8c0dea628b6a252ee40aef39c31ec99d3c97 | refs/heads/master | 2020-12-24T15:41:01.851654 | 2015-08-07T14:37:12 | 2015-08-07T14:37:12 | 13,867,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | h | XSEIMaterialReader.h | #ifndef XSE_IMATERIAL_READER_H
#define XSE_IMATERIAL_READER_H
#include "XSECommon.h"
namespace XSE
{
namespace Resources
{
class CMaterial;
}
class IMaterialReader
{
public:
virtual ~IMaterialReader() {}
virtual i32 Read(Resources::CMaterial* pMat, xst_unknown pData, cul32& ulDataSize) = 0;
pr... |
bb3872945c687406df63c30a4c543a21aeb984fa | 21837a0df7796db604b94f82c4f146f96e2c6bcc | /model/manager/singleshotmanager.cpp | 7ff488fe5e50396fe455372d94d609e2703145dc | [] | no_license | yonderfx/yonder | b17b3312d13a3f3f93fb666dc4a4ddfd19caffe4 | 56bd5b0b8e822b0338752b41debf2e7514f2a25b | refs/heads/master | 2020-04-22T14:18:13.696362 | 2014-07-23T19:24:22 | 2014-07-23T19:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,156 | cpp | singleshotmanager.cpp | #include "singleshotmanager.h"
/*!
* Performs default startup
*/
SingleshotManager::SingleshotManager(QString project_path, QSqlDatabase db, MediaManager *media, QObject *parent) :
SoundManager(project_path, QString("singleshot"), db, media, parent)
{
this->path = QString("%1/%2").arg(this->project_path, "s... |
ada495ccd4a193b7eb5b29cbd3454d86505cb339 | 2b30d2124f46e335fab96012feb1d98e60711a79 | /uva/t.cpp | 5f965d17bbaddfecc38fa1e827cd27a3ab5255b7 | [] | no_license | ldfaiztt/algorithm-3 | 9ac150c5a1b67dccbe8f56c386f809fa99d3d4be | 8a1f078b291723459047b91064ee4d7b9da5e889 | refs/heads/master | 2021-01-15T10:36:09.657594 | 2014-07-09T18:23:48 | 2014-07-09T18:23:48 | 39,565,754 | 6 | 5 | null | 2015-07-23T12:21:18 | 2015-07-23T12:21:18 | null | UTF-8 | C++ | false | false | 607 | cpp | t.cpp | #include <iostream>
#include <list>
using namespace std;
int graph[100][100];
int n, x, y, steps;
list<int> path;
void walk(int pos){
for(int i = 0; i < n; i++){
if(graph[pos][i] > 0){
graph[pos][i] --;
graph[i][pos] --;
walk(i);
}
}
path.push_back(pos+... |
320b6d8adbd3ebe6532b3360845578b1e064645b | ce7a9b1afd0f10b028353b50cf8092bb65c6e713 | /include/xtrainer/tools/log.h | 301f7186bf4b010b8a632b45e8c3868a7cbf7bfa | [
"MIT"
] | permissive | carbonXIII/xTrainer | 471b8cf561f5884d4a15a9be1f8215c0ba2fa9fd | f3d615f35b21986cc2078028311306207fe00801 | refs/heads/master | 2022-05-22T13:54:32.726639 | 2019-10-11T02:38:27 | 2019-10-11T02:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | h | log.h | /*
* log.h
*
* Created on: Dec 18, 2017
* Author: Jordan Richards
*/
#ifndef TOOLS_LOG_H_
#define TOOLS_LOG_H_
#include <iostream>
#include <fstream>
namespace xtrainer{
//A simple logger that uses macros to prepend messages with the function signature
struct Logger{
Logger() {}
void useStdErr(bool us... |
0b12f3132fe2baca7c066cdbe5f2f568795330a5 | c36597e246af0c633e54a61cc0be4a6f2871be53 | /Practice2/src/circleCollider.cpp | c165266826d2513da94b3c35538ebde66fc4407a | [] | no_license | Andresmag/U-TAD_AudioProgramming | 5d379dc4889f97c70a75604032e7b3d5a431b6de | b9b807c1049ac99f111efd709f51c70a518aac4c | refs/heads/master | 2023-01-09T16:45:05.084772 | 2020-11-05T13:12:42 | 2020-11-05T13:12:42 | 310,293,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | circleCollider.cpp | #include "vec2.h"
#include "circleCollider.h"
CircleCollider::CircleCollider(const Vec2& _vCenter, float _fRadius)
: m_vCenter(_vCenter)
, m_fRadius(_fRadius)
{
}
bool CircleCollider::collides(const Collider& other) const
{
return other.collides(m_vCenter, m_fRadius);
}
bool CircleCollider::collides(const Vec2& c... |
82c8d76a6b1948f61d62924f972322bb3f28b01f | 1b2b44b1b91be455918a069c9788b5978fabca44 | /Arduino/Text_Scrolling_Static/Text_Scrolling_Static.ino | 91aa016f89c6d9ad0b264bc1e595d703408ef644 | [] | no_license | ckuzma/rgb-led-light-board | f2b737745696603124dd63d53de78d290438d38d | 7e0eb0fd2cc76e684a9ae70a8a6fe3f83f4e1586 | refs/heads/master | 2023-06-08T02:48:35.345300 | 2023-05-23T19:52:10 | 2023-05-23T19:52:10 | 248,360,529 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | ino | Text_Scrolling_Static.ino | // Arduino OTA stuff
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
// Get configuration values
#include "config.h"
const char* ssid = STASSID;
const char* password = STAPSK;
const char* host = "OTA-RGB-LED-LightBoard";
// NeoMatrix stuff
#include <Adafruit... |
f4dcb4778cb97b823c89d8b524958fc208cdb2df | e4a2d8c37af0f2e42e826618d5a680fcd371aba2 | /cCollectionsPractices/main.cpp | b80e092ce41ebb2f78f5ef8bb02bb68b8473c01a | [] | no_license | bajieSummer/HelloWorld | 9dca7193317a92fa859fb08a6342a717bf851ec0 | 49e8468cc5407bf185608c1c368c3c63caeb4dec | refs/heads/master | 2021-03-22T05:10:24.102867 | 2018-01-04T06:40:57 | 2018-01-04T06:40:57 | 111,384,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | main.cpp | #include<iostream>
//#include<iterator>
#include<array>
int main(){
std::cout<<"hello world array";
typedef std::array<int,3> MyIntArray;
MyIntArray marray = {2,3,4};
MyIntArray::iterator iter = marray.begin();
while(iter!=marray.end()){
std::cout<<*iter;
iter++;
}
// std::ite... |
f46f706835ce68d414b6a6c5c59e9501674f4c2d | 505e3b9d89454a7811d8a2f39a48b9837d6f3efb | /curve/src/main.cpp | e4d62094a71464b69a89b23a23a81fced2c32542 | [
"MIT"
] | permissive | msmania/curve | 83ce9689d90d508159f0b198121c14282fe7fc19 | ca38ec48799e445a830bd5defea8a211aa3f0e3e | refs/heads/master | 2021-07-10T15:36:55.740662 | 2017-10-14T00:08:18 | 2017-10-14T00:08:18 | 105,320,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,237 | cpp | main.cpp | #include <windows.h>
#include <iostream>
#include <fstream>
#include <curvecore.h>
using namespace curve;
void Log(LPCWSTR format, ...) {
va_list v;
va_start(v, format);
vwprintf(format, v);
va_end(v);
}
void show_usage() {
std::wcout
<< L"Usage: curve [command] [args...]" << std::endl
<< std::endl... |
46769b175180c3313d36a181ee3d8124a221e3d7 | 120bc89da1229dcd49bd45b741b1ee42156fa697 | /UWPProjects/com.mtaulty.AJHoloServer/AJHoloServerServiceEventArgs.h | 733436de5fd1dd24352c23d71e142b8ef0b90e43 | [
"MIT"
] | permissive | mtaulty/AllJoynHoloSharing | fa55a3d1d9c077038b07b2be1ef1cf0dd4604579 | 211ebfc4eb68d2bdbcd41ba3fc3a60014b6cfa82 | refs/heads/master | 2020-12-03T03:46:31.519793 | 2017-06-29T11:55:51 | 2017-06-29T11:55:51 | 95,772,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,887 | h | AJHoloServerServiceEventArgs.h | //-----------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// For more information, see: http://go.microsoft.com/fwlink/?LinkI... |
b1d79d7b86b00c7cc0eebd8da602c1b5c8e7da61 | c09ffb7701d38365123beea17150a056d7e6090c | /HDU/HDU2175 汉诺塔IX.cpp | 17e62700fbbe9cdbf499668ab3158d59d4a4c5b2 | [] | no_license | Reno-Jarrison/Code-Repository-for-Problem-Solving | f100aa1190c3a7d23955d4756a9afa8353c8edbe | b2715b696cdb4b0416e334a5bd231beea66cfca0 | refs/heads/main | 2023-04-12T08:08:16.151731 | 2021-05-11T01:29:07 | 2021-05-11T01:29:07 | 315,653,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cpp | HDU2175 汉诺塔IX.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)&&n)
{
int cnt=0;
while(!(m&1)) cnt++,m>>=1;
printf("%d\n",cnt+1);
}
} |
29546ce4494f4a63e77b756c11f59bcc2569d26d | 67e0183f9731e48637c315fadc7ec0b81cd62cde | /assignment10/assignment10/assignment10.cpp | af0ac0c691eff5ead14443d6ff8c5c3e3695e4de | [] | no_license | szhongren/H212 | 5a8dcf1de654edc2baf436c7ae81363251e7f3e2 | 2f812fabe9bc9f3b3404aa2b9047ed4eeff11441 | refs/heads/master | 2016-09-01T23:11:24.375538 | 2014-10-16T20:07:57 | 2014-10-16T20:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,427 | cpp | assignment10.cpp | // Zhongren Shao, Assignment 10
#include "std_lib_facilities.h"
//pool class for managing the memory allocations, contains pointers to the first and last unsigned chars of the pool
class Pool
{
public:
// default constructor, takes a parameter specifying the size of pool
Pool (int size)
{
// loop to e... |
05bf8f82662314b567cf8231f188aa4e9fb3206e | 6064006ee42ab5c8a31d586277ac92e68e0d73ea | /udp_process/external_measurement_data.pb.h | 5f05fe9c401b20fd42a560366f5498b01056883b | [] | no_license | xxsmall/PAE_predict | 43f0f65717f656e821ce9b64a6a884593c61ddb6 | b51bf186bca28b5316542cde4b0cd3ec3c9cb8d5 | refs/heads/master | 2020-05-30T05:22:39.398957 | 2019-05-31T08:34:30 | 2019-05-31T08:34:30 | 189,558,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 34,528 | h | external_measurement_data.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: external_measurement_data.proto
#ifndef PROTOBUF_INCLUDED_external_5fmeasurement_5fdata_2eproto
#define PROTOBUF_INCLUDED_external_5fmeasurement_5fdata_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOB... |
77709f12264ca826304e72412338b8cc0a99e759 | 15d545d0af08dbc091256ef3d591b2d5a5e37656 | /laboratorio 4 y 5/level05.cpp | 61bc789b2f5d82b1b5adb1cf6b78fbac92aa60e8 | [] | no_license | MarvikDC/lenguaje_de_programacion_1_ | 733418e816dd4ff807d94c0ea3ecbfb96fe1eb7f | 37b639d7630ab96afde2146644a1ae303aa05457 | refs/heads/master | 2021-06-04T12:29:19.137694 | 2018-12-08T14:00:25 | 2018-12-08T14:00:25 | 148,730,995 | 1 | 1 | null | 2020-05-14T17:19:44 | 2018-09-14T03:30:38 | C++ | UTF-8 | C++ | false | false | 348 | cpp | level05.cpp | #include <iostream>
#include<vector>
#include<math.h>
using namespace std;
int g(int& x);
int f(int& x);
void h(int x, int y){
int i=7;
int& r=i;
r=9;
i=10;
cout<<r<<' '<<i<<'\n';
vector<vector<double>>v;
double val = v[f(x)][g(y)];
double& var = v[f(x)][g(y)];
... |
ea3a2b6212eb33d0daf58fe2c5692353fabfdfad | 0ba2b9e668087c335cac87f610f56a3dff763f69 | /Software-Render/draw.cpp | f7185668c3b5cbfab6ff25bf0c6151cc8bdb84d6 | [] | no_license | Prakosza/Software-Render | bff8c22716c807d9fdaf582a077831a7a6ff2b7a | d706031d66193a14a82d43e9ddc2234aa893f0d2 | refs/heads/master | 2020-12-30T13:46:24.592804 | 2017-05-27T21:12:40 | 2017-05-27T21:12:40 | 91,252,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,526 | cpp | draw.cpp | #include "stdafx.h"
#include<iostream>
#include "vecs.h"
#include "tgaimage.h"
#include "vecs.h"
#include "model.h"
#include "draw.h"
void triangle(Vec2<int> a,Vec2<int> b,Vec2<int> c,TGAImage &image, TGAColor &color)
{
int minx=999999,maxx=0,miny=999999,maxy=0;
Vec3<int> produkt;
if(a.x>maxx)
maxx=a.x;
if(a.x<... |
0d136c5917d62349f723e330885e19c04df818a5 | 44956a1a7dac852c59316c3d7f8d71eb91cb2b91 | /mainwindow.cpp | 406554a35c36907eed6560783f2d2db011b9f472 | [] | no_license | duny31030/Production_System | 666fbd4babe8010c46f392522bd9b47b6f85f9ad | 4e582b1a5a644874c12ce3b3e7071b1b5a420e75 | refs/heads/master | 2020-05-19T16:41:45.825241 | 2019-05-19T02:20:31 | 2019-05-19T02:20:31 | 185,116,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,725 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtGui>
#include <QtWidgets>
#include <QMap>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <QString>
#include <QDebug>
#include <QChar>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::... |
8efd8e0061decc89608c5630d0e60bf7492e0dbc | bb73c18c5873e9af485b8d82a6d70536297cbf10 | /tests/common/registeredgadget2.cpp | d4b40e95554b59fd4915ca3c4576632640db76a4 | [
"Apache-2.0"
] | permissive | SnowMoon-Dev/underline | a229b2d5bea5c09a0642d9b9cbc1502e54e12cad | ae3f5a225e3f6e896bf9cf4d6ce3bd68be2d250f | refs/heads/master | 2022-02-14T17:19:51.946605 | 2019-07-14T05:12:19 | 2019-07-14T05:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | registeredgadget2.cpp | #include <QCoreApplication>
#include "registeredgadget.h"
#include "underline.h"
#include "registeredgadget2.h"
RegisteredGadget2::RegisteredGadget2()
{
}
QList<RegisteredGadget> RegisteredGadget2::list() const
{
return m_list;
}
void RegisteredGadget2::setList(const QList<RegisteredGadget> &list)
{
m_list ... |
a7bf7fe10dac1e82d79e6755fa42524d091ede1a | 1213bcf770a94a89b39be8dc7b99a3f7e35fd369 | /src/alloy/compiler/passes/simplification_pass.h | 19e1023fbbca2f9458efb51d40faced116cec147 | [] | no_license | wtfaremyinitials/xenia | c86e4625a1dd084d97d44c3242e2faf208bca2b8 | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | refs/heads/master | 2020-12-31T02:43:53.168712 | 2014-01-14T22:06:05 | 2014-01-14T22:06:05 | 15,918,955 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,232 | h | simplification_pass.h | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
a1acca2de0c1eb739ad6dc65f17517cd39d01055 | 73397c5d441334a7fc80cbfb3885343a664e5f3a | /wam_dir/devel/.private/wam_srvs/include/wam_srvs/OrtnMove.h | 0d118b234a554264ca85ddd83735adb8e2003697 | [] | no_license | shardrv/RobotArm | 17d827a4bd32f77f642bfe3b2fa22e627a6d456f | 6d1aa7ed9cc02517aea4f626d39b8ba9eac7468f | refs/heads/master | 2020-08-09T03:42:26.453931 | 2020-02-11T19:39:01 | 2020-02-11T19:39:01 | 213,982,341 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | h | OrtnMove.h | // Generated by gencpp from file wam_srvs/OrtnMove.msg
// DO NOT EDIT!
#ifndef WAM_SRVS_MESSAGE_ORTNMOVE_H
#define WAM_SRVS_MESSAGE_ORTNMOVE_H
#include <ros/service_traits.h>
#include <wam_srvs/OrtnMoveRequest.h>
#include <wam_srvs/OrtnMoveResponse.h>
namespace wam_srvs
{
struct OrtnMove
{
typedef OrtnMoveRequ... |
bbc9d093535923050e3a2d3b0fbad8fb5ac67cac | 03685ac2a6c0a7b9bef79616b827774a23a0c367 | /server/include/head_controller.h | 6ed02099213ad4a406f4f54bfa5b76eeef67f65f | [
"MIT"
] | permissive | jenny5-robot/jenny5-html5 | 99370e30894833531a5f6aaa18629f0c764961df | b23ab10d6a0896cbf8d7c5728fa6fdb4b4327e9c | refs/heads/master | 2020-12-30T16:15:59.607396 | 2019-10-17T17:10:59 | 2019-10-17T17:10:59 | 90,975,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,019 | h | head_controller.h | // Author: Mihai Oltean, https://mihaioltean.github.io, mihai.oltean@gmail.com
// More details: https://jenny5.org, https://jenny5-robot.github.io/
// Source code: github.com/jenny5-robot
// License: MIT
// ---------------------------------------------------------------------------
#ifndef head_controller_H
#define he... |
2db58c43ab1b1086145cfa1b25a42df242b053c0 | d6c0360526df8cc1760ca9465a3bb8a7ef26b445 | /ptree/ptree.cpp | 61cba6e9dcfba7c6b8996a58e37af988b8e8e339 | [] | no_license | alekseibutiaev/experience | 44eda6a54e24abeca16291d6885970c88d34f7c2 | 354dc415d937996842a37cd8f215b60a8ae8115e | refs/heads/master | 2023-08-17T15:09:18.318428 | 2023-08-12T17:53:40 | 2023-08-12T17:53:40 | 109,396,253 | 2 | 0 | null | 2022-05-20T20:48:40 | 2017-11-03T13:03:20 | C | UTF-8 | C++ | false | false | 3,195 | cpp | ptree.cpp | // ptree.cpp : Defines the entry point for the console application.
//
#if defined( WIN32 ) || defined( WIN64 )
#include "stdafx.h"
#endif
#include <cassert>
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/foreach.hpp>
#if 0
... |
f596e128211042fd027971879bdff648e4344872 | f6d541fd92ace6e4f6bd34fa218216b6b64ccb2e | /AmandasUtilityLibrary/Public/aul/rw_recursive_mutex.h | f944eeff20b8e3b0fafb6486c951781d8e684775 | [] | no_license | ameythaler/AmandasUtilityLibrary | 478ab23158c35f39b22ccccec20a0bb691a68889 | 1b5ad368a105bd31b608bfcd264814bee5f11b1a | refs/heads/master | 2021-07-14T19:39:40.634605 | 2019-03-22T05:43:26 | 2019-03-22T05:43:26 | 167,513,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | rw_recursive_mutex.h | #pragma once
#if AUL_MSVC
#include "Windows.h"
#elif AUL_STD
#include <mutex>
#endif // AUL_MSVC
#include <atomic>
#include "aul/lockable.h"
#include "aul/synchronizer.h"
namespace aul
{
class rw_recursive_mutex : public rw_lockable
{
public:
rw_recursive_mutex();
#if AUL_MSVC
~rw_rec... |
43c844d131d94b95bcbbd0c25e8c816da2ef3528 | 51fd60e6b377e7150dfd0b5f56f5314a79e38aad | /src/emu/console.cpp | 7a39b30c9ea6fbf768526493c0442728e35779ac | [] | no_license | fsword7/mse.old | 106d32598f64854401577d36eaab526cb22186eb | 27ed81142845b930ff1b6746cc16fc60479ef11e | refs/heads/master | 2022-03-08T21:00:27.821539 | 2019-10-29T02:52:51 | 2019-10-29T02:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,367 | cpp | console.cpp |
#include "emu/emucore.h"
#include "emu/commands.h"
std::vector<std::string> split(std::string const &line)
{
std::istringstream buffer(line);
std::vector<std::string> ret;
std::copy(std::istream_iterator<std::string>(buffer),
std::istream_iterator<std::string>(),
... |
1a0fdb815df463d3b69cfe63f3518943bc74b3d3 | 318f4c88ea77251660e7dbee9182ca138d7b95d9 | /Cplusplus/isCousins.cpp | 117080f8f4c026ebf43a77334ce7fe23b629a45d | [] | no_license | Sahil12S/LeetCode | b1548aec56c7eb30139b0f2975329c6ed9034379 | 5a9916827e969cd4adbc394779e1bb3ba576f6e2 | refs/heads/master | 2021-06-02T07:39:00.503814 | 2020-09-23T03:21:53 | 2020-09-23T03:21:53 | 145,740,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,027 | cpp | isCousins.cpp | /**
* In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.
* Two nodes of a binary tree are cousins if they have the same depth, but have different parents.
* We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the ... |
b299b6e9e5f2135721a895baca43be7873461c35 | d6f21c8a208d74be24f274bcb3a701a2da7a9494 | /src/gl/Object.hpp | e4491cdae2f608d2883fe6d42b39fa6a8ff9c303 | [] | no_license | hstefan/HelloTriangle | 9af76043bde472febd84d7544a7132644382a984 | 047c49d4a0603c9d3262b7b03b84d7a80adcaa8a | refs/heads/master | 2016-09-10T03:28:56.175689 | 2013-12-28T04:57:58 | 2013-12-28T04:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | hpp | Object.hpp | #pragma once
#include <GL3/gl3w.h>
namespace gl
{
template <class T = GLuint>
class Object
{
public:
inline const T& identifier() const;
protected:
T _id;
};
template <class T>
inline const T& Object<T>::identifier() const
{
return _id;
}
} |
c5ceeec87c3c77ece32e2a9341b9e9c0e610fdba | b0899eb26a5213f7d86b5f8be60f1e8dc7db6d03 | /include/AmbientOcclusion.h | 4809a175f9e0b68354acac60b2df324c7dd99434 | [] | no_license | redclock/GIEngine | bbdb440fa0d1ded2233ce728083c7c5ae5114f65 | 0c95238e6b3f81a27eccca6f2c97a0e5f3c08580 | refs/heads/master | 2021-01-23T10:44:50.191656 | 2014-06-30T03:25:37 | 2014-06-30T03:25:37 | 21,327,591 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,234 | h | AmbientOcclusion.h | #pragma once
#include <d3dx9.h>
#include "Point3.h"
#include "DynamicTexture.h"
class CDeferredShade;
class CAmbientOcclusion
{
private:
LPD3DXEFFECT m_effect;
CDynamicTexture m_texRandom;
CDynamicTexture m_texSSRandom;
UINT m_samples;
UINT m_patternCount;
void CreateRandomTexture(UINT sample... |
1b3b36a8b59dec5a0ed8c97761a4cbd7de81ed1b | 05600d518eff5fb576db96f9b1f75c85a31dae54 | /Testing/Testing.ino | 7e5ee810ecb0e0d0756d2577248c14e5dc387a93 | [] | no_license | chattah/Arduino-Testing | 244e452fce1da6d1d165cb42fb4108485af80b26 | f98f8ed127d28b52e04ad5e5c080b744416f3ad8 | refs/heads/master | 2021-01-01T04:59:10.773851 | 2017-07-15T02:31:47 | 2017-07-15T02:31:47 | 97,285,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | ino | Testing.ino | /*
Name: Testing.ino
Created: 7/14/2017 8:43:19 PM
Author: JoelL
*/
int led = 13;
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(led, OUTPUT);
}
// the loop function runs over and over again until power down or reset
void loop() {
Serial.println("ON");
... |
d56605e32e5b44a9ce55988f7a8e52664735f9bf | 5722258ec3ce781cd5ec13e125d71064a67c41d4 | /java/util/stream/LongStreamProxy.cpp | 7c7b9f8cde412dcd89c10667a9da83d4a6a9dcea | [] | no_license | ISTE-SQA/HamsterJNIPP | 7312ef3e37c157b8656aa10f122cbdb510d53c2f | b29096d0baa9d93ec0aa21391b5a11b154928940 | refs/heads/master | 2022-03-19T11:27:03.765328 | 2019-10-24T15:06:26 | 2019-10-24T15:06:26 | 216,854,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,065 | cpp | LongStreamProxy.cpp | #include "net/sourceforge/jnipp/JNIEnvHelper.h"
#include "LongStreamProxy.h"
// includes for parameter and return type proxy classes
#include "java\util\function\LongPredicateProxy.h"
#include "java\util\function\SupplierProxy.h"
#include "java\util\function\ObjLongConsumerProxy.h"
#include "java\util\function\BiConsu... |
c5581cc61c212769399591f00e5605291844b4b8 | 9852ff4c9cdee2d23811c6802d5b64e67e2c0e3a | /Source/TreasureHunter/Public/Widget/Lobby/CreateSessionWidget.h | 50b34bbc7a5feb19da12326ed814c9658084d43c | [] | no_license | RedChiken/TreasureHunter | a29c17da78e1c33f00d639d077fa37b1c17a72de | 4b7e4e19ceb9857425661ea0e436a7cd7b034583 | refs/heads/master | 2022-12-01T10:09:03.969448 | 2020-04-02T09:09:05 | 2020-04-02T09:09:05 | 82,168,825 | 0 | 0 | null | 2020-04-02T09:52:25 | 2017-02-16T10:27:59 | C++ | UTF-8 | C++ | false | false | 652 | h | CreateSessionWidget.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "THOutGameDefines.h"
#include "CreateSessionWidget.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnCreateSession, FString, HostName, int32, MaxP... |
d4908afd90b8b92d3b494ee78016bc67367cac23 | 61eb3c918ea2ac1949a71edfa63781ed56b474d4 | /src/solar/math/Math.h | ef0705b63898c21de203dea2c0d973606ac5d985 | [] | no_license | jacob-doll/SolarEngine | aa3a11011aa488bb1d41a72956105cb361a4902d | e5557586189ad6efb29afe65b7e8ff09e9fed19c | refs/heads/master | 2021-08-17T07:24:56.944246 | 2017-11-20T22:30:08 | 2017-11-20T22:30:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | Math.h | #pragma once
namespace solar
{
#undef M_PI
static const float M_PI = 3.14159265358979323846264338327950288f;
static const float M_HALF_PI = M_PI * 0.5f;
static const float M_DEGTORAD = M_PI / 180.0f;
static const float M_DEGTORAD_2 = M_PI / 360.0f; // M_DEGTORAD / 2.f
static const float M_RADTODEG = 1.0f / ... |
82806a054c316bff6a212a1de99c7d97c0018d5a | c80f25d24cee6ed8dba1513c227886c07d83cf75 | /WeaponGirl_1/Client/trunk/Classes/Network/Login/MsgLoginCreateNewUser.cpp | d34b445d348754a7533d13b2805fd706a915ab03 | [
"MIT"
] | permissive | cnsuhao/newProBase | c250e54ead43efb57363347d1700649a35617d15 | 4fe81d30740a2a0857ca6e09a281fed1146e6202 | refs/heads/master | 2021-08-23T14:19:24.568828 | 2015-11-27T13:37:54 | 2015-11-27T13:37:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,346 | cpp | MsgLoginCreateNewUser.cpp | ////////////////////////////////////////////////////////////////////////
// Copyright(c) 2011-2014, WuHan GoodGame, All Rights Reserved
// Moudle: MsgLoginCreateNewUser.cpp
// Author: 彭文奇(Peng Wenqi)
// Created: 2014-11-4
////////////////////////////////////////////////////////////////////////
#include "./MsgLogi... |
55cde06813e41b1ceea4a4f758feae9803f0d40f | 6c93d85f5b2c36a3288b0c4a2db1c255a14e2c77 | /src/CreateColor.cpp | d64ffb938dcf3d9776bc58a4618179ef0449897d | [] | no_license | TANG-Kai/pyfx | af30bfc8e0f5c93132f02916eb1f9ea95c13d4b7 | 9fa4bd738ce90a8d40e68c4e0490601df78cceba | refs/heads/master | 2021-01-25T06:49:22.308713 | 2013-11-12T22:58:10 | 2013-11-12T22:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | CreateColor.cpp | #include "CreateColor.h"
using namespace vr;
const Color CreateColor::eval(const Vector &p) const
{
return Color(
evalIf(m_R, p),
evalIf(m_G, p),
evalIf(m_B, p),
evalIf(m_A, p));
}
const float CreateColor::evalIf(const ScalarField *v, const Vector &p) const
{
return (v != NULL) ? v->eval(p) : 0.0... |
7f1dc2a99e95cd20200762a6f343767d24626f5b | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/60/1031.c | 6f52610f94c7a840d248e6d16da693fcc6d25e90 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | c | 1031.c | int main()
{
int n,i,j,count=0,prime=0;
scanf("%d",&n);
int su[10000];
for(i=1;i<=n;i++){
for(j=1;j<i;j++){
if(i%j==0){
count+=1;
}
}
if(count==1){
su[prime]=i;
prime+=1;
}
count=0;
}
count=0;
for(i=0;i<prime;i++){
if(su[i+1]-su[i]==... |
869a75808b62cd9e25cb970b6f46d3e345a386d9 | 773302a87be49038487bb12af120fa716df08921 | /src/core/script/parser_unittest.cpp | 7b713bf2c89fdb907c1d58c0dfb49d93f7b60355 | [
"BSL-1.0"
] | permissive | williamnagels/linker | c2a4fac1740f711967ab182b4e18203ffd5d7a8d | a1e309c11e6ad8ed956475d90ddc8aa498049b66 | refs/heads/master | 2018-09-28T19:50:43.941416 | 2018-06-07T16:15:13 | 2018-06-07T16:15:13 | 106,322,418 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | parser_unittest.cpp | #include <boost/test/unit_test.hpp>
#include "src/include/core/script/parser.h"
BOOST_AUTO_TEST_SUITE(parser)
BOOST_AUTO_TEST_CASE(parse_some_script)
{
N_Core::N_Parser::Parser parser("testfiles/simple_script");
BOOST_CHECK_EQUAL(std::distance(std::begin(parser), std::end(parser)), 3);
BOOST_CHECK_EQUA... |
da578ef925272955521dc2976bd38d486596dbd9 | 9ab80aff674b22544e4f73aec960ee2bd69e5939 | /VideoTranscoder.h | 27003f7d75b02c3414c893bab6381f4201cb7b7e | [] | no_license | savasozkan/video-transcoder | ec1576ee74ff72c5715333a22ca882148c482ad6 | db6b4b488a45fea30c4b89ec8c21d96841cc1afa | refs/heads/master | 2021-01-10T04:07:12.706768 | 2015-10-07T13:38:37 | 2015-10-07T13:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,634 | h | VideoTranscoder.h | /*!
**************************************************************************************
* \file VideoTranscoder.h
* \author
* - Savas Ozkan
*************************************************************************************
*/
#pragma once
extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavform... |
96b683f2302649d8db31b72cab9569f550a1fbd7 | f251f8ed67493aaf89fad9535b29adf0d2f995a1 | /soj_1009.cpp | a808507d7d0dd6d08fc4e02706a0cd7f393ee338 | [] | no_license | 443singer/soj | 4fe391c908e9f0b90201bb7367245753a90ec8a5 | d98ed24d5d0796cc85b2979bae82bd0728f529f2 | refs/heads/master | 2021-08-30T19:42:04.328587 | 2017-12-19T07:13:32 | 2017-12-19T07:13:32 | 114,731,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | soj_1009.cpp | #include <cstdio>
#include <iostream>
using namespace std;
const int N = 1003;
long long dp[N][13];
int a[10] = {1000,400,200,100,40,20,10,4,2,1};
bool flag = false;
long long dfs(int n,int u) {
if(n==0) return 1;
for(int i = u ; i < 10 ; ++i) {
if(n-a[i]>=0) {
if(dp[n-a[i]][i]) d... |
cd8b2ada5310c50e7edbcb52203a14f784dbf6cd | 245ed7c43ecb4923b6e8d5298b7bba34cf525c10 | /leetcode_169_majority element.cpp | 8b281aab82cfc4d2a351259e69b3b6cc16641f86 | [] | no_license | Elaine-DWL/shuati_record | 86f2ed7c458a986808261abedc60864a4ff87e2a | 300fbea8cf5c8658d111966624fba69d6a82cebd | refs/heads/master | 2022-12-18T01:32:52.516446 | 2020-09-05T10:28:25 | 2020-09-05T10:28:25 | 293,052,250 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,207 | cpp | leetcode_169_majority element.cpp | // 这道题是要求数组中的众数,且其数量 > n/2
#include <iostream>
#include <map>
#include <vector>
using namespace std;
// 法1 遍历 借助hash 66.3% 16ms
class Solution{
public:
int majorityElement(vector<int>& nums){
map<int, int> myhash;
int maj = nums[0];
int num_maj=1;
for(int i=0; i<nums.size(); i++){
... |
782a83b8fcffc3eec993b7979fb2eb68181cc306 | 68684e53c3d5db80c60e40ddd678e9821042c5fa | /d08/ex01/span.hpp | bb7ba8e5c21fc2c60246cccfb9a98ef5af4b76b6 | [] | no_license | pacifistes/Piscine_cpp | fdb550d1a2d4fba428ca37b2b6e056b272871fb8 | 063fe4387d0e31141e0eb3863f5722e5ccf3a50a | refs/heads/master | 2021-03-16T09:42:49.760895 | 2018-10-16T19:23:34 | 2018-10-16T19:23:34 | 90,257,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | hpp | span.hpp | #ifndef SPAN_CLASS_H
# define SPAN_CLASS_H
#include <vector>
#include <iostream>
#include <exception>
#include <algorithm>
class Span {
public :
Span(void);
Span(unsigned int maxElem);
virtual ~Span(void);
Span(Span const &span);
Span & operator=(Span const &span);
void addNumber(int Number);
void add... |
70a6fb54e7ea8d1a176d3c02da8e1fcd36540f89 | ab615e46f9e941503f73c37d39c350ac990bce65 | /src/engine/datatype/3D/Quaternion.cpp | 7558b939244e57c36d34793307e49e270de89978 | [] | no_license | minhtri258gb/GameEngine | 89b6a2ab65e4a3b6246e24363ef513f3346785c6 | 84ff04c689998069127fbda45c72c1a96dff629a | refs/heads/main | 2023-05-25T16:34:55.432557 | 2023-05-15T11:49:45 | 2023-05-15T11:49:45 | 217,287,861 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,653 | cpp | Quaternion.cpp | #define __MT_QUATERNION_CPP__
#include <sstream>
#include <cmath>
#include <limits>
#include "Math3D.h"
#include "../../exception/BoundingException.h"
using namespace std;
using namespace mt;
Quaternion::Quaternion()
{
set(0.0f, 0.0f, 0.0f, 1.0f);
}
Quaternion::Quaternion(float x, float y, float z, float w)
{
se... |
5ff173d91503f6392df67c84a40611c3a44c6b75 | d2d04505217dabff3d85130d1ab57a16c6d1e7c8 | /src/Loader.cpp | 949a2ef8bfd3c49a9025fd6bfd7c1cd3f922006b | [] | no_license | hanglove34/arcade | 4762724abfb17295b4d1bb14f372ef9777ce8d82 | 1ed80ef773aa0a0cb88ff7c6e5562b2c55917bc0 | refs/heads/master | 2023-03-31T12:57:28.001146 | 2021-04-01T13:01:16 | 2021-04-01T13:01:16 | 353,701,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,599 | cpp | Loader.cpp | //
// EPITECH PROJECT, 2019
// Arcade
// File description:
// src
//
#include "Loader.hpp"
#include "IDisplayModule.hpp"
#include "IGameModule.hpp"
template<>
IGameModule *DLLoader<IGameModule>::getInstance(const std::string &path) {
const std::string comp(".so");
if (path.find(comp) == std::string::npos)
... |
296228e857efca9fcd8996995ce88765bac2ebe5 | 8aea173f3ec466d39547ae9f60ed36650103baf7 | /Implementations/11 - Math (4)/11.2 - Combinatorics (5)/Combo Plus.cpp | 4e45bc98fa95521e324bafdfeef4d556721022dd | [] | no_license | arvindr9/USACO | 8593936a1e7a373050991b25b345e64d1da9457f | 9ea3acc92d841452abfce01622029789a9a3ba76 | refs/heads/master | 2021-04-06T11:55:39.456470 | 2018-03-11T14:40:04 | 2018-03-11T14:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | Combo Plus.cpp | /**
* Description: Extends combo to a power of a prime
* Verification: https://dmoj.ca/problem/tle17c4p5
*/
typedef pair<ll,ll> pll;
template<int SZ> struct ComboExtended {
pll fac[SZ+1], ifac[SZ+1], mod;
ll MOD = 1;
void init(pll _mod) { // prime, power
mod = _mod; F0R(i,mod.s) MOD *= mo... |
de4635a13a1db8b670cd146c75786aaf7c737deb | 037b3e6bb59ab23a13178c4466628a14b9dd3f01 | /felicia/drivers/imu/imu_format.h | b13e61ce65ee45cc7d9bca46ef2aa60c9fcd7e55 | [
"BSD-3-Clause"
] | permissive | hyunjunekim/felicia | ce8ec8c8802f5008f85acc0caf7ccc19cd86c3ad | 3b5eeb5f93c59c5364d3932bc407e054977aa1ec | refs/heads/master | 2022-04-01T03:22:18.649612 | 2019-12-10T16:24:54 | 2019-12-10T16:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | h | imu_format.h | // Copyright (c) 2019 The Felicia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FELICIA_DRIVERS_IMU_IMU_FORMAT_H_
#define FELICIA_DRIVERS_IMU_IMU_FORMAT_H_
#include <vector>
#include "felicia/core/lib/base/export.h"
#incl... |
55ca18e73565883fbb9c16a0456b7947fb38ce94 | 462a984c485d8ba2071749a073cd2e7e7d9e596c | /Classes/PlayerScene.h | dfd6819d8d457c74338fa1ff366c3c08899bf5a3 | [
"MIT"
] | permissive | phuocpeter/Monopoly-Wireless | fceb31d53a4b6101e763a7f72944427d108754d3 | 5895c937d9cbe1924c8ed5dca2059dc3432310f3 | refs/heads/master | 2021-06-01T04:12:58.044823 | 2016-06-22T19:42:38 | 2016-06-22T19:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | PlayerScene.h | //
// PlayerScene.hpp
// MGM
//
// Created by Tran Thai Phuoc on 2016-06-13.
//
//
#ifndef __PLAYER_SCENE_H__
#define __PLAYER_SCENE_H__
#include "cocos2d.h"
#include "extensions/cocos-ext.h"
#include "ui/CocosGUI.h"
#include "network/HttpClient.h"
USING_NS_CC;
USING_NS_CC_EXT;
class PlayerScene: public Layer
{
... |
7812e919957bd4509118e912fb887a5a6a68ee3d | 2366a20ebed64eeec04bfd8262bc2296981aa61e | /MainMenuState.hpp | 5ff06af0a62ca50b0f766cbf697c7aa0a26c95a5 | [] | no_license | NotAPenguin0/KeiyakuGame | 5f494a62dc2c567e493ca0dcf40abe7c731505ed | 027c5818cbf91f6c91124fa4424c8bdf22d48c92 | refs/heads/master | 2020-03-18T20:04:28.917827 | 2018-06-04T16:36:51 | 2018-06-04T16:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | hpp | MainMenuState.hpp | #ifndef KEIYAKU_MAIN_MENU_STATE_HPP_
#define KEIYAKU_MAIN_MENU_STATE_HPP_
#include "GameState.hpp"
#include "depend/resource_manager/MusicManager.hpp"
#include "depend/resource_manager/FontManager.hpp"
#include "depend/ui/Button.hpp"
#include <SFML\Graphics\Sprite.hpp>
#include <SFML\Graphics\Text.hpp>
namespace Ke... |
fcc4b13c6a6623173f80f86e743eeeda0dfa0e58 | 4ae279d209ae03b58a2d413055b7444f3f79eaf1 | /qtfiles/qt_mainwindow.cpp | 4e45a2914f857cdff4605c25e40750a833b96016 | [] | no_license | Mehooz/Movie-Crawler | 834ad63c822dce2ec5576838ea33c4c253d96454 | 5628f89953c967e4566e14aa4f98826b918e995f | refs/heads/master | 2021-01-05T18:29:22.158599 | 2020-04-05T02:40:10 | 2020-04-05T02:40:10 | 241,102,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,124 | cpp | qt_mainwindow.cpp | #include "qt_mainwindow.h"
#include <QIcon>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
QWidget* widget=new QWidget;
this->setCentralWidget(widget);
setWindowTitle("Information Collection Sys");
toolbar=addToolBar("Tool");
statusbar=statusBar();
//QAction
//image!!
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.