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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f6d0446d6a59ecb411ae67d3ddc389f9620480b | 711e5c8b643dd2a93fbcbada982d7ad489fb0169 | /XPSP1/NT/admin/hmonitor/snapin/ccdialog.cpp | 142e7de7554b9e45e96b098b5b69eddbc8213610 | [] | no_license | aurantst/windows-XP-SP1 | 629a7763c082fd04d3b881e0d32a1cfbd523b5ce | d521b6360fcff4294ae6c5651c539f1b9a6cbb49 | refs/heads/master | 2023-03-21T01:08:39.870106 | 2020-09-28T08:10:11 | 2020-09-28T08:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | ccdialog.cpp | // CcDialog.cpp : implementation file
//
#include "stdafx.h"
#include "snapin.h"
#include "CcDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCcDialog dialog
C... |
623ed015c1c3c806d16bec2fdc2bc10e1d7a0b15 | 4014150cd05e54812bc081955da0e06f5bf987b0 | /OrPinhas_and_AvivShabtay/Pool.h | 977c278ffea4b694c43419094e878e6c69536dbd | [] | no_license | orpinhas20/OrPinhas_and_AvivShabtay_repo | 84024d929b4de9928ef0a3fc334317e8751c974d | d29c722905c85ed0cac5627b1aaadf28ae994e0b | refs/heads/master | 2023-05-31T16:01:04.027087 | 2021-06-06T09:23:43 | 2021-06-06T09:23:43 | 372,459,199 | 0 | 0 | null | 2021-06-06T09:23:43 | 2021-05-31T09:55:27 | C++ | UTF-8 | C++ | false | false | 1,035 | h | Pool.h | #ifndef __POOL_H
#define __POOL_H
#include <iostream>
using namespace std;
class Pool final
{
private:
bool isHavingEntertainment;
const char* openingHours;
public:
/*
* Not doing anything, just create empty prototype of pool.
*/
Pool() = default;
/*
* Define new Pool in the hotel.
*/
explicit Pool(b... |
d52781d22aade009429a46ec3986a5d04525caf0 | 545d33764716a8288a266bc52257a939d0c83855 | /LeetcodeSubmissions/leetcodeWeeklyChallenges/WeeklyChallenge186/ConstrainedSubsetSum.cpp | b47984b0c0168e69765f1c5c8422e982e4482526 | [] | no_license | bankaboy/CodingPracticeAndChallenges | 71d1a261e6d64619011900dd42757e58d39d8101 | 19709076af8e86c96d94310b1a5655b52f74e155 | refs/heads/master | 2022-11-26T14:13:40.427722 | 2020-07-31T13:49:38 | 2020-07-31T13:49:38 | 266,075,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,436 | cpp | ConstrainedSubsetSum.cpp | /* Constrained Subset sum
Given an integer array nums and an integer k, return the maximum
sum of a non-empty subset of that array such that for every two
consecutive integers in the subset, nums[i] and nums[j],
where i < j, the condition j - i <= k is satisfied.
A subset of an array is obtained by deleting some num... |
c672ff66c7f5e71a9dd767b448aa3fc51933bfbe | e15942415003af06d094871f19dd6f7cdc5f67e0 | /TextAnalysis/vtkSelectArraySlices.h | a31f5af8c7e39f1ccd23e319c4e3a7ef36b23ed3 | [
"BSD-3-Clause"
] | permissive | SCS-B3C/VTK5.6 | e5b48b6b3c7a09d4d6b5c6c468b1053af0c39d37 | d4afb224f638c1f7e847b0cd3195ea8a977bb602 | refs/heads/master | 2021-01-13T02:37:03.081012 | 2011-04-08T12:06:58 | 2011-04-08T12:06:58 | 1,587,076 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,273 | h | vtkSelectArraySlices.h | /*=========================================================================
Program: Visualization Toolkit
Module: vtkSelectArraySlices.h
-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandi... |
aaad32c1faf5c99c60b71cf2fd115b20c2a10eca | 6680f8d317de48876d4176d443bfd580ec7a5aef | /Header/ProjectConfig/misToolProperties.h | dcab87d40040f3a0e5a821041af52371dd6b4cbc | [] | no_license | AlirezaMojtabavi/misInteractiveSegmentation | 1b51b0babb0c6f9601330fafc5c15ca560d6af31 | 4630a8c614f6421042636a2adc47ed6b5d960a2b | refs/heads/master | 2020-12-10T11:09:19.345393 | 2020-03-04T11:34:26 | 2020-03-04T11:34:26 | 233,574,482 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,850 | h | misToolProperties.h | #pragma once
//***************************** keep it independent fro itk,vtk,igstk,..********************************
#include "misMacros.h"
#include "misToolImageStrct.h"
#include "misToolTypeEnum.h"
#include "serializable.h"
enum misToolRepresentationType
{
SpatialObj2D,
SpatialObj3D,
BiopsySpatialObj2D,
Bio... |
e27e29584d7a45a68a8376dcca395dc22ae6b3e9 | 0821376f6c416eedcf5bc5b7d7038e54f5e8a371 | /src/bit.cpp | c742c63dbd86d1412cd3f34f234d086dc340b3a8 | [] | no_license | androids7/jvm-3 | 9def06af895fb5e8016f657cc7a0e7c9aeed4010 | e74e688eb6d62825b8e183ec4a717fe7a0687a11 | refs/heads/master | 2020-03-18T08:21:07.853238 | 2018-05-20T01:21:55 | 2018-05-20T01:21:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,964 | cpp | bit.cpp | //
// THIS FILE MUST *NOT* BE INCLUDED IN CMakeLists.txt
//
#pragma once
#include <cstdio>
#include <string>
#include <bit.hpp>
#include "bit.hpp"
namespace jvm {
template<typename T>
Data<T>::Data(Endianness endianness) {
m_endianness = endianness;
}
template<typename T>
Data<T>::Data(T number, Endianness ... |
0fcf1c220b906ee45e0cfcd572f2f92c1f453be5 | e9bfb2c0b13b7b12d02959deed48f8316bcb81d5 | /cracking/sumNthIteration.cpp | 5c39e2722c18ec0722f2d3f332473ce06fea15ab | [] | no_license | hdarwish/Problem-Solving | d893aef3306ab78e364ea82532fed5ca4371adc9 | 1efa38a4d802c1e4305504e89d653cf15a00d4f5 | refs/heads/master | 2023-03-07T16:03:55.040639 | 2021-08-29T00:41:30 | 2021-08-29T00:41:30 | 212,748,311 | 0 | 0 | null | 2023-03-03T09:28:36 | 2019-10-04T06:17:02 | JavaScript | UTF-8 | C++ | false | false | 1,921 | cpp | sumNthIteration.cpp | // Find the sum of elements in after nth iteration for below operation on array.
// original array 4 6 8 3 6 sum = 27
// iteration1 -2 -2 5 -3 sum = -2 (a1= a2-a1)
// iteration2: 0 -7 8 sum= 1
// iteration3: 7 -15 sum =-8
// O(n) Solution needed
// Solution
// Nth coefficients can be computed as ... |
e9c709bd073c4c560ac86aca4818168154d3848c | 3de2841c062d1e5b5a6b1f59c5fd48cf62022fab | /tetris/GameMenuApplication.cc | 5b971def6a6a3f5c7ccbad999228416752cee790 | [] | no_license | Zolomon/Tetris | c3ef35a6fc67c3d4182032d4ddbd77d8a55f1c2d | bf865242ec1c686d9926474562d2ed6a68bf7ea4 | refs/heads/master | 2021-01-01T06:34:06.046091 | 2015-09-18T13:02:30 | 2015-09-18T13:02:30 | 40,090,785 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,142 | cc | GameMenuApplication.cc | #include "GameScreen.h"
#include <tchar.h>
#include "GameMenuApplication.h"
#include "Settings.h"
#include "GameScreenType.h"
GameMenuApplication::GameMenuApplication(std::shared_ptr<Game> game) : game(game), menuChoice(0) {
}
void GameMenuApplication::update(entityx::TimeDelta dt) {
auto commands = game->getComman... |
6d9f4653f6a8b9ac7446b407f3dfaa20cce6a59f | eac0b17eef6ef20b922777e53ca1adc5e5556f75 | /Projekt/Hal/ISR/InterruptHandler.cpp | d47f4b6716cb22595d9f109b2ab8ccecfe7dec9d | [] | no_license | mbutkereit/conveyor | e98aee296734cabd77fddce8e8761bd99a810fab | 95c055fa292896f2c1f99f55c29bfce2f9326d1c | refs/heads/master | 2021-01-24T00:52:48.104919 | 2017-01-12T23:35:36 | 2017-01-12T23:35:36 | 68,626,303 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,600 | cpp | InterruptHandler.cpp | #include "InterruptHandler.h"
const struct sigevent* ISR_DIO(void* arg, int id) {
struct sigevent* event = (struct sigevent*) arg;
int code = 0;
uint8_t interruptregister = in8(0x30F); //Magic Numbber
//Ist der Interrupt von Port b oder c
if ((interruptregister & 0xA) != 0) { //Magic Number
//Interrupt R... |
3c872616fa628700f2fbec077afa258c1bc2d9b7 | b9610aaab0beff05c6c11259232eba5f516b1473 | /CInputInfoDlg.cpp | 07853fb59758730d9111634b2d57c6e5c83a3587 | [] | no_license | leeathefei/testQtOracle | aab85676c1f66d81ee5ddc1fc252cb9cb577d99c | 01d6881d1d73784fe6baa7ed769ecbb21185d652 | refs/heads/master | 2021-01-15T15:57:29.002204 | 2015-05-14T04:57:32 | 2015-05-14T04:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | CInputInfoDlg.cpp | #include "CInputInfoDlg.h"
CInputInfoDlg::CInputInfoDlg(QWidget *parent)
: QWidget(parent)
{
setupUi(this);
connect(pbOK, SIGNAL(clicked()),this, SLOT(onOk()));
connect(pbCancel, SIGNAL(clicked()),this, SLOT(onCancel()));
}
CInputInfoDlg::~CInputInfoDlg()
{
}
void CInputInfoDlg::onOk()
{
emit okMsg();
}
vo... |
dcefd627b8088ec660929a01c6d30f604a4c76c8 | 7bd07c76ff208db142281fe17b29f147c1221ce6 | /02 Arrays/19Program.cpp | 25461647705c497ba986fa03ad8917db9cb4503c | [] | no_license | KranteshSingh/CPlusPlus | c53d27e3f1bd208867cbf85968f1032b46dd1aff | 28ce0ff7254d5d2dab1b3fb24a78562df789fa99 | refs/heads/master | 2020-07-30T09:20:51.198665 | 2019-11-01T06:43:32 | 2019-11-01T06:43:32 | 210,170,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | 19Program.cpp | #include <bits/stdc++.h>
using namespace std;
#include <cmath>
int main()
{
int testCase;
long long size;
cin >> testCase;
while (testCase != 0)
{
cin >> size;
int i;
long long myArray[size];
/// Inserting elements into the array
for (i = 0; i < size - 1; i... |
c5026d30bd8ab41dc681f5c027af0b8793c30e73 | de56d89876dcc5d613818bfcf7cec58a6170a7eb | /Chapter2/main_40.cpp | 90d41b53feb031246a375b959baa81de292b8ada | [] | no_license | Knabin/AlgorithmQ | 41d28a00d0890f3c7f15f6c0eac24ccc71fb17f4 | d51cf35a4f1900c5827d1913e0868326ed6afd4a | refs/heads/master | 2023-06-20T10:38:37.878128 | 2021-07-17T08:04:46 | 2021-07-17T08:04:46 | 267,623,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | main_40.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void)
{
int n, m, i, p1 = 0, p2 = 0, p3 = 0;
cin >> n;
vector<int> vN(n);
for (i = 0; i < n; ++i)
cin >> vN[i];
sort(vN.begin(), vN.end());
cin >> m;
vector<int> vM(m);
for (i = 0; i < m; ++i)
cin >> vM[i];
sort(vM.... |
c6f8fc7228b80af2448b096377eb7fdb90777e18 | 00e25af8a9e13da59919e9e442ac79dc3c2f23b3 | /stack.h | 45722be87e572770faf0de4037dbf5a11ef582b4 | [
"Zlib"
] | permissive | pallas/libite | a5d3168bc2db4b669d26ab766c79542793aee691 | 3f3b686ec0d335ba6ca55d7a800c2d6342f213d1 | refs/heads/master | 2021-01-20T11:09:16.996391 | 2019-01-14T03:37:12 | 2019-01-14T03:37:12 | 28,788,425 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | stack.h | #ifndef LITE__STACK_H
#define LITE__STACK_H
#include <lace/do_not_copy.h>
#include "link.h"
#include <cassert>
#include <cstddef>
namespace lite {
template <class X>
struct stack_link : private link<X> {
typedef stack_link type;
template <class T, typename stack_link<T>::type T::*L>
friend class stack;
b... |
848e2419b941ad5366c20aecdacd7fedff5b1e4b | 0c35e42c9133c5fdef5e19a9c020f81519d30e71 | /src/lib/file/FileFlags.h | b9cc3c59d7551246a904b9faf2296bb00fd04c58 | [
"MIT"
] | permissive | ryancalhoun/fit | 1ea495161516d46526e34da4d8943aba8f3a4e1b | dbe8bdf2d700981cd76fc0ed5c0946856ae785de | refs/heads/master | 2020-12-31T00:19:23.377119 | 2016-04-14T00:53:48 | 2016-04-14T00:53:48 | 47,153,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | h | FileFlags.h | #pragma once
#include "File.h"
class FileFlags
{
public:
FileFlags(int flags);
int openFlags() const;
int createFlags() const;
protected:
int _flags;
};
inline FileFlags::FileFlags(int flags)
: _flags(flags)
{}
|
4fd3eba402a7be93a5edf714b581bb1b5ec0d61e | 2bf8d5d39ee0e1ff184739a762b47568c3648a4e | /othermat.h | 795b1ec6b1d0546e5da4cdaccfc298e248a60659 | [] | no_license | wpoynter/DDI-Codebook | a85e2690da22353427f8843751109e1036a0c7c5 | ba23bd9b4c0734b5d37355a8fbff37bf8c6a8e63 | refs/heads/master | 2016-09-10T17:42:11.292260 | 2014-06-10T14:55:08 | 2014-06-10T14:55:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | h | othermat.h | #ifndef OTHERMAT_H
#define OTHERMAT_H
#include <vector>
#include <memory>
#include "ddientity.h"
#include "labl.h"
#include "txt.h"
#include "notes.h"
#include "table.h"
#include "citation.h"
namespace DDI {
class OtherMat : public DDIEntity
{
private:
//Attributes
std::string URI;
//Children
std::v... |
b12e50a27ab10b42cd0def80a29410cda1faecdf | 2f5d5047750d0e208d0d9f53d7a4959f1e7504c4 | /timeRun.h | aa86ac72e239d215da0d9f4c0d0c62da3c25c4f9 | [] | no_license | HCl8/travel-simulation | 5cbb59716b7651aafac0ccca8b89540a7fe8a4bc | 2ca166dadc4bd6684b28de309163fa36494247fc | refs/heads/master | 2022-11-27T00:18:56.785740 | 2020-08-08T08:14:16 | 2020-08-08T08:14:16 | 286,001,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | timeRun.h | #pragma once
#include <QObject>
#include <QTimerEvent>
#include <vector>
using std::vector;
class timeRun : public QObject
{
Q_OBJECT
public:
timeRun(QObject *);
~timeRun();
void setNowTime(int NewTime);
int GetNowTime();
private:
void timerEvent(QTimerEvent *event);
void trave(void);
bool startFlag;
int time... |
8a271b06455a740e66c8d7d02dada20f2874bf15 | 966941c155643fd77691069d9895739d5290ec6f | /PA1/WaveBufferT.cpp | 82e25f952fa10ec0848777376fcf2119b2d121ef | [] | no_license | AlxNmc/llm-audio-player | ddba110219a2bc25f57b2fa4e57bf44eb5598ac4 | 301c982a66e6ea58b08b77ba95a24717175f85cb | refs/heads/main | 2023-03-28T16:04:47.872862 | 2021-03-29T14:40:03 | 2021-03-29T14:40:03 | 352,671,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,606 | cpp | WaveBufferT.cpp | #include "WaveBufferT.h"
#include <ThreadHelper.h>
WaveBufferT::WaveBufferT(int id,
ThreadCounter* wb_counter,
std::future<void>* wb_kill_future,
std::condition_variable* cv_wb_done,
HWAVEOUT* hWaveOut)
:t_id(id),
counter(wb_counter),
buffer(new char[2048]),
empty(true),
cv_wb_done(cv_wb_done),... |
0eaa393d3ecc7f38458c3087fef6ed159a9e472d | 2a1dac76dc66a369528f8031df881b046f5d6e1d | /FinalProject/Random.cpp | 42b451564cb44508967b03734d364b8334912027 | [] | no_license | Draouch/CCOMP | 2257ed59c321cbf2d4cf47c3d7d61fc536de9eb6 | 40ad4904a20e5af74f06704ec3d43958ebfaae9e | refs/heads/master | 2020-12-25T16:47:49.793030 | 2016-12-02T01:03:42 | 2016-12-02T01:03:42 | 65,996,285 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | Random.cpp | #include "Random.h"
#include <ctime>
#include <cstdlib>
using namespace std;
template <typename T>
T template_random(const T a){
return a;
}
int generarRandom(int num){
int randomNumero = rand();
return template_random<int>((randomNumero % num) + 1);
}
|
bcc49a021c109b812f5f9cede4488fd2a56d08b9 | 73d65106516f60544a6d3707919c3fd533b5f099 | /lectures/Week7/allShapes.cpp | 75ae4b6c006474fbf6d773f1bee0959d5a7b7cb3 | [] | no_license | pkgoesdigital/systems-pickle | 8ee77f228367adb89965e4a43f55c926f8157b38 | d5714a49259d6e550805e200be9f9c15ddaa9fd9 | refs/heads/master | 2020-09-16T08:01:59.949003 | 2019-11-24T07:09:02 | 2019-11-24T07:09:02 | 223,706,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,708 | cpp | allShapes.cpp | #include <iostream>
class Shape {
protected:
int x;
int y;
public:
Shape() {
std::cout << "Shape const\n";
this->x = 0;
this->y = 0;
}
Shape(int x, int y) {
std::cout << "Shape const2\n";
this->x = x;
this->y = y;
}
// Copy constr
Shape(const Shape& s) {
std::cout << "Sh... |
798c21f6fa7a9c02521aa1fad1a23227b445ff1a | 2f9ba18568a5a8263f0169b6a403d5313458ac01 | /day05/vec3.cpp | 1b0223010e261e16a2c6c189ea296ec8f1b50b87 | [] | no_license | UgoLi/Stl | ff7df413fc8f038a2738b98e6ea12f5fa8de4e22 | 4a86e74dede6f656beea41dcce85f11a5ff03902 | refs/heads/master | 2021-05-11T02:17:10.304800 | 2018-01-21T17:17:10 | 2018-01-21T17:17:10 | 118,356,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,451 | cpp | vec3.cpp | #include <vector>
#include <algorithm>
#include "print.h"
bool intCmp (int a, int b) {
return a > b;
}
class Complex {
public:
Complex (int real = 0, int imag = 0) :
m_real (real), m_imag (imag) {}
friend ostream& operator<< (ostream& os,
Complex const& c) {
return os << c.m_real << ... |
56a864baa08e11be7e0502fd8b5946bc1ee4d36d | 3540fbb7cec997ea56e66b18466e199fc48cc5ab | /core/src/SpruceEngine.h | c556a4bd82d8a2e49b6cc08bdd95e9ed3c4ac944 | [
"MIT"
] | permissive | ExaBerries/spruce-old | 935ba82404929472a274effa920b27183378b3b7 | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | refs/heads/master | 2022-12-26T16:48:57.382907 | 2020-10-11T04:33:13 | 2020-10-11T04:33:13 | 96,041,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | h | SpruceEngine.h | #pragma once
#include <types.h>
#include <app/API.h>
#include <app/ApplicationFwd.h>
#include <app/pipeline/FramePipeline.h>
#include <backend/Window.h>
#include <backend/ApplicationBackend.h>
#include <graphics/renderer/RendererAbstractor.h>
#include <graphics/renderer/api/APIContext.h>
namespace spruce {
class Spru... |
14ed2b38171fd78492cea2d5611185286eb70d38 | 6e1400698247ca82601dd108ec10eab33da9d9e2 | /VisibilityProblemLibrary/Minima/minmaxcalculator.cpp | cbe8288e3294fd461bf408816cb7db178b7e2e79 | [] | no_license | klauste/ShortestPathToVisibility | 104271822845293f56170bbb85233bb02ff4b63c | 98a619728e43a432603e320f68713f0022d15a00 | refs/heads/master | 2022-04-20T21:28:52.919539 | 2020-04-20T06:38:51 | 2020-04-20T06:38:51 | 239,519,894 | 1 | 0 | null | 2020-03-09T14:51:29 | 2020-02-10T13:35:46 | C++ | UTF-8 | C++ | false | false | 13,693 | cpp | minmaxcalculator.cpp | #include "Minima/minmaxcalculator.h"
SPV::MinMaxCalculator::MinMaxCalculator (Polygon p, Point s, Point e) :
BendEventCalculator (p, s, e) {}
void SPV::MinMaxCalculator::calculateMinima()
{
if (directPathExists) {
return;
}
calculateBendEvents();
bool minimumFound = false;
currentEvent... |
97c414e458e5a8162b1112a6ad4bd950fb87019b | 5ef1b93978798319a0e60ca74baac58e091d99fd | /include/cocaine/framework/service_client/session.inl | f8f0c9974a016bd6d76d7247a392f1e758b28c0b | [] | no_license | kod3r/cocaine-framework-native | d4a77a44176727f5421b74fdda66ad9d4fb6d65f | 4a4a2f5600bb22e9562d8d2884396822b7ff39c9 | refs/heads/master | 2021-01-22T10:14:15.340792 | 2013-10-29T20:38:49 | 2013-10-29T20:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | inl | session.inl | #ifndef COCAINE_FRAMEWORK_SERVICE_SESSION_INL
#define COCAINE_FRAMEWORK_SERVICE_SESSION_INL
template<class Event>
cocaine::framework::session<Event>::session(
const std::shared_ptr<service_connection_t>& client,
session_id_t id,
future_type&& downstream
) :
m_client(client),
m_id(id),
m_downstr... |
88d4f3479a0cb6464d5f0c63c4bfc8c0082d28c1 | c8fb65a63dac3cec249719a04b6cae032fba1eae | /source/src/Timer.h | 48e9e54442719177d70059884a2eba8c9e9221b6 | [] | no_license | adolfosrs/pengo-game | 05613ca0b84acc496d0f7541cbda93fc3ac7f832 | 624e97d027bd7c2de7b5906b0db5e595821236b9 | refs/heads/master | 2021-01-10T14:51:22.123459 | 2016-02-16T23:39:08 | 2016-02-16T23:39:08 | 51,878,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,142 | h | Timer.h | //-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#ifndef TIMER_H
#define TIMER_H
#include <time.h>
//-----------------------------------------------------------------------------
//-----------------------... |
de0406caba0df0b95358b8677bd415293bb14053 | e6f8c63578c8617cf13794c921aff29ff6c56230 | /serialization/deserialize_tuple.hpp | 254aa38c3bd99ba309e0617c26fb33403e0d25f6 | [] | no_license | simonask/grace-base | 8b76c60c9b3d1eae0b32d9dd3432d6d2ccb669ea | ab5a0fd4fc7583c3f3b59f2c18770f5fe0a9abc5 | refs/heads/master | 2021-03-13T00:01:01.765633 | 2013-10-03T14:46:40 | 2013-10-03T14:46:40 | 12,755,495 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,977 | hpp | deserialize_tuple.hpp | //
// slot_invoke.hpp
// grace
//
// Created by Simon Ask Ulsnes on 08/09/12.
// Copyright (c) 2012 Simon Ask Consulting. All rights reserved.
//
#ifndef grace_slot_invoke_hpp
#define grace_slot_invoke_hpp
#include "serialization/document_node.hpp"
#include "base/basic.hpp"
#include "base/any.hpp"
namespace grac... |
a3031846b8b2abbee646dbc779591d1bbde1b171 | 9ea6a57db4e23796151620af6306c5834037a2a1 | /Cpp/Effective_Modern_Cpp/Type_Deduction/FUNCTION_TEMPLATES/CASE_2__PARAMTYPE_IS_UNIVERSAL_REFERENCE/A_universal_reference_intro.cpp | 3257b87b16d133a165a0144e5e20fa2cde278db5 | [] | no_license | dhustkoder/code_backup | 787943f9cbb081141e491f19d6d89a770a214bae | e6201423fba2cfedea09d144df048a94daa1750d | refs/heads/master | 2020-04-06T09:52:43.528775 | 2016-11-29T11:37:33 | 2016-11-29T11:37:33 | 41,769,153 | 2 | 0 | null | 2015-09-05T04:33:17 | 2015-09-01T23:46:01 | C++ | UTF-8 | C++ | false | false | 953 | cpp | A_universal_reference_intro.cpp | #include <iostream>
#define LOG(x) std::cout << x << std::endl
// ParamType is a universal reference
// Things can be less abvious for templates taking universal reference parameters.
// Such parameters are declared like Rvalue references. (i.e., in a function template taking
// a type parameter T, a universal re... |
15d3fdc920c1cbae51b7919b12e915b8b9d17181 | 1c468effad4818ba36e303318c0ecb78843054c5 | /SDL_Pong/v0.1/Splash_Screen.h | 3d9235b8aa825f8503dc8da5a12f1103375018fa | [
"Apache-2.0"
] | permissive | thelinked/EarlyProjects | b24d30679366f78595505f9f68494d3812bc5b2f | cdd6e60ba71743193f06d068b9eac81e3dadd7e8 | refs/heads/master | 2016-09-03T06:50:48.108589 | 2012-09-06T00:08:02 | 2012-09-06T00:08:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | h | Splash_Screen.h | #ifndef SPLASH_H
#define SPLASH_H
using namespace std;
//This class isn't really needed. Everything could have been done in main but I'm trying new stuff like alpha blending between two surfaces and animation so I kept it seperate.
class Splash_Screen
{
private:
//Surfaces
//--------------------... |
7dfe71af677cfcacb8452562ae271b37b0add897 | e28c9d822afbad715bf33ec915c18e8d805c9394 | /runtime/include/fletcher/logging.h | bc9ff40d81cf2c3ff42d4f2dbdfbea619afea9e1 | [
"Apache-2.0"
] | permissive | lvandam/fletcher | c0ee981cb6b4c2093446da0f2de7184c7b285af3 | 152961e445ab3a7a1b4a79e9562bb402ce283834 | refs/heads/master | 2020-03-21T20:32:27.014588 | 2018-07-09T09:21:23 | 2018-07-09T09:21:23 | 139,013,548 | 0 | 0 | Apache-2.0 | 2018-06-28T12:13:27 | 2018-06-28T12:13:27 | null | UTF-8 | C++ | false | false | 1,297 | h | logging.h | // Copyright 2018 Delft University of Technology
//
// 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 l... |
96a432ceb6fc1f4da2d3f87fc69115f321b84063 | e0904d35f0b89fed8ebdeb6e08864c0208006954 | /Applications/DataExplorer/VtkVis/VtkAddFilterDialog.h | fad923dd77e40f48f44c19f4eda82d56a487e4cd | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ufz/ogs | e3f7b203ac960eeed81c3ad20e743b2ee2f4753e | 073d0b9820efa5149578259c0137999a511cfb4f | refs/heads/master | 2023-08-31T07:09:48.929090 | 2023-08-30T09:24:09 | 2023-08-30T09:24:09 | 1,701,384 | 125 | 259 | BSD-3-Clause | 2021-04-22T03:28:27 | 2011-05-04T14:09:57 | C++ | UTF-8 | C++ | false | false | 1,168 | h | VtkAddFilterDialog.h | /**
* \file
* \author Lars Bilke
* \date 2010-02-23
* \brief Definition of the VtkAddFilterDialog class.
*
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* ... |
43bebd5f1201da63e450e590d2598577e9b8657b | 650b45dc73f6e11db663c58e71bbf1c3da3ddb8c | /libvast/test/tests/hash.cpp | 07410877e81f71cf23faa6a7fc76496619815e24 | [
"BSD-3-Clause"
] | permissive | sbilly/vast | 82e4d5a16e6c6bc40d1d19a4f7b1b1f7dea17645 | 9c39ac2edd0acd36c501805b55951704d42a938e | refs/heads/master | 2021-01-17T23:45:39.633710 | 2016-04-22T02:22:29 | 2016-04-22T02:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,060 | cpp | hash.cpp | #include "vast/util/hash/crc.hpp"
#include "vast/util/hash/murmur.hpp"
#include "vast/util/hash/xxhash.hpp"
#define SUITE util
#include "test.hpp"
using namespace vast;
using namespace vast::util;
TEST(murmur hash) {
CHECK(murmur3<32>::digest(42) == 3160117731);
}
TEST(xxhash) {
CHECK(xxhash64::digest("42", 42)... |
800a1471176d23eb67ac8043d82f2c35fc64c02a | d7c94f4a713aaf0fbb3dbb9b56c9f6945e0479c1 | /URI Online Judge/uri2762.cpp | 0bbf542abd1cfdfa3710d24543560ce319800137 | [] | no_license | fonte-nele/Competitive-Programming | 2dabb4aab6ce2e6dc552885464fefdd485f9218c | faf0c6077ae0115f121968f7b70f4d68f9ce922b | refs/heads/master | 2021-06-28T09:24:07.708562 | 2020-12-27T14:45:15 | 2020-12-27T14:45:15 | 193,268,717 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | uri2762.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string frase, frase2, frase3;
cin >> frase;
for(int i = 0; i < (int)frase.size(); i++)
{
if(frase[i] == '.')
{
frase2 = frase.substr(0,i);
frase3... |
d83bb011400b306a0b88f5f653d464e36ddeffab | 02e2accd33e8810cb50bd8555cdb92f2a49301e7 | /cegui/src/ScriptModules/Python/bindings/output/CEGUI/indexing_suite/shared_proxy_impl.hpp | 49b018ccac0b3180b506c9687fce3536b4e77a04 | [
"MIT"
] | permissive | cegui/cegui | fa6440e848d5aea309006496d2211ddcd41fefdf | 35809470b0530608039ab89fc1ffd041cef39434 | refs/heads/master | 2023-08-25T18:03:36.587944 | 2023-08-12T15:50:41 | 2023-08-12T15:50:41 | 232,757,330 | 426 | 78 | MIT | 2023-08-12T15:40:02 | 2020-01-09T08:15:37 | C++ | UTF-8 | C++ | false | false | 3,327 | hpp | shared_proxy_impl.hpp | // This file has been generated by Py++.
//
// Header file shared_proxy_impl.hpp
//
// The shared implementation of the element proxy (const and non-const
// versions). Multiple proxy pointers can refer to the same shared
// implementation, meaning that only one object requires updating to
// affect all proxy pointer... |
b6324f327aec8ac3cb90352e0d111b23aac168e8 | d2c7ee16251214022a86ac36ba139581f540bb93 | /logger.h | 994a2269b2fddf7f4de438919a489910bbe40fea | [] | no_license | jbarreneche/ipc_elevador | 1229bf5c5a6aff64b306ff29b61b73bfa7e1f2d3 | 1dc9265f9e079db47188783ca5b09016c1e57352 | refs/heads/master | 2021-01-02T06:33:07.284865 | 2012-06-27T20:48:15 | 2012-06-27T20:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,108 | h | logger.h | #ifndef LOGGER
#define LOGGER
#include "lockFile.h"
#include <string>
#define MAX_TIMESTAMP_LENGTH 20
class Logger {
public:
Logger( char* processName, char* pathname );
//logea a stdout
Logger( const char* processName );
Logger();
vo... |
a83a83cd5ecf92645aa5f7e3504b17a3dd51fc87 | 779d484f8500e5d810ec5bcc2687469fc1e67820 | /spindash/collision/triangle.h | 663f2c6299457539a9883823115a835e08dfc502 | [
"BSD-2-Clause"
] | permissive | Kazade/Spindash | fca6c1e5e87a587b8a7d131c3d9de04fd64ba94a | 45ccbafe1941d65823a67880270c165d3888de21 | refs/heads/master | 2020-12-24T14:26:27.610353 | 2015-08-10T08:00:51 | 2015-08-10T08:00:51 | 3,550,902 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | triangle.h | #ifndef TRIANGLE_H
#define TRIANGLE_H
#include "collision_primitive.h"
#include "../typedefs.h"
class Triangle : public CollisionPrimitive {
public:
Triangle():
CollisionPrimitive(nullptr) {}
const kmVec2& point(const uint32_t i) { return points_[i]; }
kmVec2* points() { return points_; }
v... |
61113a6f23a59a224a146796684d643005d71710 | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/lib/python/client/ssl.h | fe1ab5e0fd0ce02a130359fcee33c92fc4887cec | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | C++ | false | false | 3,109 | h | ssl.h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
58ceed80672b4530780ad125c52d5001f738f4eb | dfa82d66000b3e3e081b316be45892271265f133 | /include/DepthUI/Control.h | 6f97562a3278d7379cb36517ae06c59725ce822f | [
"MIT"
] | permissive | weizhengwei/DepthUI | 07ab3fd3970817c73d44f6455cb22e8ce6476477 | 736d3d92164d63fc9577e9d7510abb304cc9146f | refs/heads/master | 2021-05-28T16:41:22.383972 | 2015-03-26T05:09:11 | 2015-03-26T05:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | h | Control.h | #pragma once
#include "Base.h"
#include "ViewLayout.h"
#include "EventBinder.h"
#include "Shader.h"
#include "Hierarchy.h"
namespace DepthUI{
class DEPTHUI_API Control : public Hierarchy
{
public:
Control(std::string name, Control * parent);
Control(std::string name);
~Control(){};
public:
// common properties
u... |
d117d53d6a128a3a900dd6f07afc3e6867ea87a3 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /lang/halide/files/patch-src_LLVM__Runtime__Linker.cpp | d7d77fcf3de38afa8cb13e21de75ed577942c296 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 690 | cpp | patch-src_LLVM__Runtime__Linker.cpp | --- src/LLVM_Runtime_Linker.cpp.orig 2022-08-17 05:20:15 UTC
+++ src/LLVM_Runtime_Linker.cpp
@@ -833,7 +833,7 @@ std::unique_ptr<llvm::Module> get_initial_module_for_t
if (module_type != ModuleGPU) {
if (module_type != ModuleJITInlined && module_type != ModuleAOTNoRuntime) {
// OS-dependent m... |
2336004db598eee06eb92d3bd68c33a7a6528a11 | 4b73a36745e969cf9d222c111d1baa39cb3d254a | /test/src/algorithm/adjacent_remove.cpp | 2c2863f33ae19e666624ac09dba8dd60df8f99d9 | [
"MIT"
] | permissive | Ornito/jln.mp | f3cc94e7b34523d40777171c5d38fdb2c817287e | 9553e3d3bc6424f8cfc4e550fdab5ec94d97594e | refs/heads/master | 2023-05-05T02:51:29.101364 | 2021-05-22T22:40:31 | 2021-05-22T22:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,676 | cpp | adjacent_remove.cpp | #include "test.hpp"
#include "test/numbers.hpp"
#include "jln/mp/smp/algorithm/adjacent_remove.hpp"
#include "jln/mp/smp/number/operators.hpp"
TEST_SUITE_BEGIN()
TEST()
{
using namespace jln::mp;
using namespace ut::ints;
test_pack2<adjacent_remove_if, equal<>>();
test_pack2<adjacent_remove_if, void>();
... |
732b66a51539f45b704d91d376fee95587be3f08 | 477d8a96326bbfb121239d4caf5008110fb55a32 | /src/engine/Env_Objects/SwampTree.h | 994a61c53f4e561a4fd134efa30b6e6c46306eba | [] | no_license | petertran-21/untitled-ghost-game | b59daffa38c911d307d329b8342109bf91a65d49 | 07d0e307d48911c84342fae0030d3511af4adeca | refs/heads/master | 2020-12-29T22:08:39.042845 | 2020-05-15T21:00:39 | 2020-05-15T21:00:39 | 238,747,600 | 8 | 0 | null | 2020-05-15T21:00:40 | 2020-02-06T17:41:40 | C++ | UTF-8 | C++ | false | false | 441 | h | SwampTree.h | #ifndef SWAMPTREE_H
#define SWAMPTREE_H
#define SWAMPTREE_SUBTYPE 125
#include "Controller.h"
#include "MainEnvObj.h"
using namespace std;
class SwampTree : public MainEnvObj{
public:
SwampTree(DisplayObjectContainer* container, DisplayObjectContainer* drawContainer);
bool mined = false;
... |
a816f4caa8ff97c76fc96f0fb8ac435ab99463aa | 111ac4c1457a4439f21003a6461360154f34ffeb | /Pinball/Source/Pinball/PinballBumper.h | 6b1bab202b3e4d3d66470b71f957adc28a0ba863 | [] | no_license | Tavera15/LuigiPinball | 020da7fdd96ae78e1d54bb52562037621c79698f | bb6bba4d11b52c361f959c7d7fd3cc83df7dec91 | refs/heads/master | 2020-04-17T06:34:49.248288 | 2019-03-22T02:50:16 | 2019-03-22T02:50:16 | 166,330,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 943 | h | PinballBumper.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "PinballBumper.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FBumperEvent);
class APinballBall;
UCLASS()
class PINBALL_API APinballBumper : public AActor
... |
2538c274e4f172af7e598d1e52424677d4fba9f2 | f0b1b7e58d1aaa97edd2097d2dc3573968641c93 | /006#zigzag-conversion/solution.cpp | 0ab0961f30817f5ed526154a08ca8ddd0b1bc6bf | [
"MIT"
] | permissive | llwwns/leetcode_solutions | 7189d8f262265e9507fc95a0aab9b305834728bd | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | refs/heads/master | 2021-01-17T08:11:58.056630 | 2016-11-17T07:58:18 | 2016-11-17T07:58:18 | 39,186,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 906 | cpp | solution.cpp | class Solution {
public:
string convert(string s, int numRows) {
int len = s.length();
if (len <= 1 || numRows <= 1) return s;
string ret(len, 0);
int i, j, k, t = 0;
numRows--;
int drow = numRows << 1;
int col = len / drow;
for (j = 0; j * d... |
e456118cd13f72f9646ca5c4e8e14385584b36f1 | 13600aaacced1fa4625127419358d794423d5f02 | /static/static_variable/static_variable/log.cpp | 19b45dafb31541565d76d5e2092b72aa249780aa | [] | no_license | Iam-El/LearnCPLUS | e86b497a4b669a8b532061affea111e4292bdbac | 9175eb69cb75962e4f9cab99eb148d82f321471c | refs/heads/master | 2022-10-09T13:33:34.659832 | 2020-06-10T03:14:42 | 2020-06-10T03:14:42 | 269,827,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | log.cpp | //
// log.cpp
// static_variable
//
// Created by Elsy Fernandes on 6/9/20.
// Copyright © 2020 Iam_El. All rights reserved.
//
#include "log.hpp"
#include <iostream>
int var1=10; // create a gobal variable
static void testFuction(){
std::cout<<"elsy";
}
|
b88a8965ee7fe275c8928b99dad64e7f25911a1c | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/abseil-cpp/absl/synchronization/notification.h | 8986d9a4083d0cde639fccafe76a554f67f068b9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later"
] | 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 | 5,098 | h | notification.h | // Copyright 2017 The Abseil Authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
a288aa0a1c5d8630900fd968494339b9d07d79c5 | f61be064cd8d1a5f721c80b3d0146ce081964f45 | /src/OAT/oat_124.tcc | 75fb3beaaf7314835e752f926d177b27472438b3 | [
"Apache-2.0"
] | permissive | lief-project/LIEF | 415fe42c22c97a06b36f0ed385f19de16b7c09d2 | 1ecfbf1fd8c22de5252f4e8b1a2e83199941faf5 | refs/heads/master | 2023-08-29T05:54:58.862920 | 2023-08-27T19:33:23 | 2023-08-27T19:33:23 | 85,205,851 | 3,933 | 657 | Apache-2.0 | 2023-09-09T03:44:33 | 2017-03-16T14:34:53 | C++ | UTF-8 | C++ | false | false | 3,382 | tcc | oat_124.tcc | /* Copyright 2017 - 2023 R. Thomas
* Copyright 2017 - 2023 Quarkslab
*
* 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 req... |
cab7422880725aa54fe14ef42f3137ab54c726ae | db844e0875bfb86ec61d43dca3a5e689d567168b | /쉬운거.cpp | 0d846a2bd6e66280a67a46b364f25469215f3ded | [] | no_license | Siihyun/Algorithm | 6f264a45219cfc196cb36579960e3b4d5a3dbbb8 | 9e679dcf6a2c6d62a88e2e657ed1c07679732c9d | refs/heads/master | 2020-05-18T22:45:03.856680 | 2019-07-09T11:49:07 | 2019-07-09T11:49:07 | 184,696,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | cpp | 쉬운거.cpp | #include<stdio.h>
int main(void){
long long a,b;
int testcase;
// scanf("%d",&testcase);
// for(int i = 0 ; i < testcase ; i++){
scanf("%lld %lld",&a,&b);
printf("%d\n",a+b);
// }
return 0;
}
|
8de49d5de4f572eec8aee18295d6e070932312a2 | 0be6c3faad7a7536a3929fc68d9bbce80d5832dd | /Gap125Final/Gap125Final/MotherBase.h | 3cdfd172a07f25de40f6b28dff10cee1e41bc0f1 | [] | no_license | jack0073j/New-Gap125 | 191bb568ad5eda03a2ef37b2dd10f69c34bab84e | 5aecdfdaf27337b30cf86ee549c67e72bb12be3d | refs/heads/master | 2021-01-01T04:30:37.721048 | 2016-05-20T22:45:02 | 2016-05-20T22:45:02 | 59,330,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | h | MotherBase.h | #pragma once
class MotherBase
{
public:
MotherBase();
MotherBase(int f, int j);
~MotherBase();
int theBedCanUse=0;
int GetFoodInt();
int GetJunkInt();
int GetBedInt();
int GetTranquilizersInt();
int GetFirstAidKitInt();
float GetDefensePercentage();
void AdjustFood(int i);
void AdjustJunk(int i);
void Adju... |
d81f2254df89efd2b8f9d78995303086404b85c9 | e5ef3a75620a9abb270fc7602a17b0273d3c13ca | /CodeForces/765B.cpp | 6b4200cb8f5d7c40283ca758da3293fa60e6cdae | [] | no_license | Zyloc/Algorithm-and-library | 19197fab8f5ddc35b11daba5f4a5776f2a2da62c | 213034bfd013cc3c03e8cc5c4fe07111ddbfb021 | refs/heads/master | 2020-04-12T06:25:45.782093 | 2018-02-15T22:38:00 | 2018-02-15T22:38:00 | 60,200,527 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | 765B.cpp | /*
* Satyam Swarnkar (Zyloc), NIT Silchar
*/
#include <bits/stdc++.h>
#define lli long long int
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin>>s;
map<char,lli>mp;
int lastPos(-1);
for(char c='a';c<='z';c++){
for(int i=0;i<s.length();i++){
if(s[i] == c){
... |
e531f5f99d64917b8447c4444f060ab97756ff4f | f01194e047dd38a8568cddf9565e54411fd17596 | /Practice Codes/apr15_piano.cpp | 9ec2eb289c7a4bec0f6f98f6e57ca1702ecff232 | [] | no_license | 2012ankitkmr/My-works | 118df8cf651785d19b962ee9afc2278d12d5a69a | 910e5425e2ded2fb59a3613d33d3468dc1be1158 | refs/heads/master | 2020-04-05T23:08:29.182573 | 2017-02-24T12:19:03 | 2017-02-24T12:19:03 | 52,659,326 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | apr15_piano.cpp | #include <stdio.h>
#include<string.h>
int main(){
int t,len,button,product,length,i,n,counter;
char string[105];
for(scanf("%d",&t);t--;){
scanf("%s",string);
length=strlen(string);
len=0;
scanf("%d",&n);
for(i=0;i<length;i++){
if(string[i]=='S')
len++;
else
len+=2;
}
i=1;
button=12*n... |
97803c32c6942c2ce9c8ccd1b12baaeb083f55ce | 6a4a8741ac5903082e294baf037a1f98cf0a1cf2 | /src/leetcode/ValidateBinarySearchTree.cpp | 31235a2d2449da101a77b7791b6f24dbc5214f6e | [
"Apache-2.0"
] | permissive | bin3/challenge | a99526aa4c91e96174b82c7b23ad62057904dd16 | 8886420613a21a9bdd19eefd58126a0e595b4cd7 | refs/heads/master | 2020-06-03T06:14:33.396801 | 2013-03-12T11:57:02 | 2013-03-12T11:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,906 | cpp | ValidateBinarySearchTree.cpp | /*
* Copyright (c) 2013 Binson Zhang.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licens... |
d2b85b179d31204f0edfb93c1cf38f5bd65fa53f | e8a01ad141bf6dc73c893162358e6834bb89a70b | /leetcode/combinations.cc | d07175fd5a36aa8b060ae9de95fdb05e3d4d515f | [] | no_license | xunzhang/lcode | 23a6e1b2457e61c034957a0357d16eae1638032c | 90d7a59fdbe678485b05926ba7c22329e7641286 | refs/heads/master | 2021-01-17T14:57:35.309405 | 2016-06-20T14:50:32 | 2016-06-20T14:50:32 | 43,831,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cc | combinations.cc | class Solution {
public:
void bt(int start, int n, int k, vector<int> & tmp, vector<vector<int>> & result) {
if(k == 0) {
result.push_back(tmp);
return;
}
for(int i = start; i <= n - k + 1; ++i) {
tmp.push_back(i);
bt(i + 1, n, k - 1, tmp, result);
tmp.pop_back();
}
}
... |
ad556fb89b9cbaf09f587a80727511b954d4cb6a | d5401be7966a6ab9eab1f21b29b67966b7e8b3ac | /gpl/RiscOS/Apps/!GCC/Examples/C++/cc/exception | a133e45ed3d6aba79c25d521ceb1f4db050b9449 | [] | no_license | winfreddy88/RISCOS5 | f1155ffc2b5a2c2b32e62ff4faa3ddbd5c103bb9 | 8b435a0647bfea6488d8b81c687fe332a6c14ec0 | refs/heads/master | 2020-04-14T12:06:37.556383 | 2019-01-02T11:34:02 | 2019-01-02T11:34:02 | 163,830,872 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | exception | /* Simple demonstration of exception handling. */
#include <stdio.h>
void foo (void)
{
printf ("in foo\n");
throw ("hello world");
printf ("in foo shouldn't be here\n");
}
int main (void)
{
try {
printf ("trying foo\n");
foo ();
printf ("in main shouldn't be here\n");
}
catch (const char *s... | |
d1a1e0898f44b8915642be58ed5901234cca5907 | 91b98f84f22ee2f2491141f808593cd78c139d7f | /include/oneapi/tbb/parallel_for_each.h | 0c86e0306664c85d3d6d9c13887ef7cf5b0496bc | [
"MIT"
] | permissive | rollingrock/EngineFixesVR | 67f0077169712b0a22280e2e5038d234237235d1 | d936583776561053421a4c6bed0d9de440d53556 | refs/heads/master | 2023-02-12T21:53:51.157463 | 2023-01-30T21:01:37 | 2023-01-30T21:01:37 | 254,220,945 | 75 | 9 | MIT | 2023-01-30T20:34:08 | 2020-04-08T23:10:07 | C++ | UTF-8 | C++ | false | false | 21,544 | h | parallel_for_each.h | /*
Copyright (c) 2005-2020 Intel 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 la... |
e6d39e815dc4d6799986ad26efffb3cb6d63a7e3 | fb8c3d986843561efdb2f4ecdd4b0f09c926cc28 | /c2html.cpp | f97db51a2e76b1191f292af98a174805b3ce304d | [] | no_license | o11c/c2html | 970f860045dc66f2b7d58f1999e842c0134f4ab3 | ef2e00a23bef9f47683086a814512afb95a62df3 | refs/heads/master | 2021-01-16T21:24:25.483295 | 2014-02-01T00:46:47 | 2014-02-01T00:46:47 | 16,425,298 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,312 | cpp | c2html.cpp | #include "c-lex.hpp"
#include <cassert>
void printe(const char *s)
{
while (*s)
{
switch (*s)
{
case '<': printf("<"); break;
case '>': printf(">"); break;
case '&': printf("&"); break;
default: putchar(*s); break;
}
++s;
}
}
void ... |
229b20aee8519d22769c4d2b5077a3a35ab146e7 | 3d4a1870dfbc24ddd17eac34c2b2f994cf42b054 | /app/source/Enemy.h | 98d4366f84f3327d74e63c2c016e0d114ebf7de0 | [] | no_license | Valentineed/Platformer | 9cf63abaee61d89a6d1aa518c1343b386fa2a459 | 2f90037feedcad3448070a88bdfc3495025fc118 | refs/heads/master | 2022-07-29T01:51:23.978278 | 2020-05-24T15:21:50 | 2020-05-24T15:21:50 | 266,358,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | h | Enemy.h | #pragma once
#include "GameObject.h"
#include "Player.h"
#include "Maths/vec4.h"
namespace Game
{
class Enemy : public GameObject
{
public:
Enemy(Resources::Mesh& mesh, Core::DataStructure::Graph* root, Game::Player* player, std::string filePath, float mass = 1, Core::Maths::vec3 position = { 0, 0, 0 }, Core::M... |
bd521b6a71350d0762ac6039576771d64837758c | f40941b4318a2dc32c2e765c12ac431e2f886a63 | /Encode-Decode/EncodeDecode.cpp | eec6d9989d27ed976b17fb4285e3972c66ff2c9a | [] | no_license | tyeknapp2/ICPC-La_Salle-Practice-Instruction | d79bde59af4b3dc1f3046881540d3613a0733651 | 75fc96540794f194d489986287db985908cd1fb4 | refs/heads/master | 2020-08-29T17:31:09.589933 | 2019-11-15T15:58:22 | 2019-11-15T15:58:22 | 218,111,937 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | cpp | EncodeDecode.cpp | #include <iostream>
#include <string>
using namespace std;
string decode(string in)
{
string out = "";
/**
* This for loop increments by two because we are guaranteed an encoded string of even length due to the encoding method.
* You can think of the it at encoding pairs a char followed by an int and tha... |
22bafe91879c436c7bb1f87bd41500687cb9949a | 6452f40cf692dffbee483e8f968f190f7114e2f4 | /vXboxInterfaceAPI/vXboxInterface.cpp | f452233a0996f5fa9dbb6fe4b85afbb1dec30cd6 | [] | no_license | batroutman/AFK-Controller | f130ec80afa104a176e91418ca83e23daa3bded6 | 57e26875b71e1b00f5073e33656b392f51156305 | refs/heads/master | 2021-08-29T05:26:50.270935 | 2021-08-03T13:26:59 | 2021-08-03T13:26:59 | 107,336,748 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,969 | cpp | vXboxInterface.cpp | #include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <crtdbg.h>
#include <iostream>
using namespace std;
extern "C"
{
#include <setupapi.h>
#include <Hidsdi.h>
}
#include <Dbt.h>
#include <tchar.h>
#include "vXboxApi.h"
#include "vXboxInterface.h"
#ifdef STATIC_LIB
#undef VXBOX_AP... |
d5c8845b040ee9753ca670e9064c509aa6fc0777 | cadb836d9ac9c9e3b618cf44c936015a0aea24a8 | /ge1600/LT1690_2023-02-26_Stone_Game_VII.cpp | 424628f049dddfee79c4f8d5633f1cff44e7cd42 | [] | no_license | checkoutb/LeetCodeCCpp | c6341a9fa5583a69046555a892bb41052624e83c | 38832f7ccadf26b781cd8c9783c50916d1380554 | refs/heads/master | 2023-09-03T22:35:50.266523 | 2023-09-03T06:31:51 | 2023-09-03T06:31:51 | 182,722,336 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 2,541 | cpp | LT1690_2023-02-26_Stone_Game_VII.cpp |
#include "../header/myheader.h"
class LT1690
{
public:
// D D
//vector<int> dp(n, 0), dp2(n, 0);
//for (l = n - 2; l >= 0; --l) {
// for (r = l + 1; r < n; ++r) {
// dp2[r] = prefix[r - 1] - (l > 0 ? prefix[l - 1] : 0) - dp2[r - 1];
// dp2[r] = max(dp2[r], prefix[r] - prefix... |
5f1bf9e02d7e1cd4566c779d6cdb53c11fd38ef0 | 194840d144b77f3b662db6e3663c820db0807a46 | /ProductLuaIdeCAPI/need_trans/core/AudioFrame.h | aadbf820680656d71f0dfdaf30e286a1f38bb19a | [] | no_license | ToTPeople/my_own_tools | 7cac7d84854b58d92f2ef4a538aea4ec06f5992c | d2509e7b399e076234162b8d757910627beec4b6 | refs/heads/master | 2020-03-24T03:46:05.723395 | 2018-07-26T12:15:49 | 2018-07-26T12:15:49 | 142,432,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | AudioFrame.h | #ifndef AudioFrame_h
#define AudioFrame_h
#include "core/Frame.h"
NS_MEDIA_BEGIN
class AudioFrame :public Frame {
public:
AudioFrame();
~AudioFrame();
virtual void addAudioFrameData(MMTOOLS::FrameData *audioFrameData);
virtual bool assembleFrame();
};
NS_MEDIA_END
#endif /* AudioFrame_h */
|
386eda96ce036d512b63eb03e36e2e51bd969909 | 2bce6da26d51c32e9ff2bda3c564136c622e596c | /source/thirdparty/libigl/include/igl/speye.cpp | 54af00c71bb76c154dbb97fabc2f862e583d2c84 | [
"MPL-2.0",
"GPL-3.0-only",
"MIT"
] | permissive | jpcy/xatlas | 37dc66f4c2cc45130926d1d8723b94f85964a918 | f700c7790aaa030e794b52ba7791a05c085faf0c | refs/heads/master | 2023-08-15T00:11:07.888384 | 2022-07-25T23:06:01 | 2022-07-25T23:06:01 | 140,512,438 | 1,662 | 179 | MIT | 2023-08-08T17:30:59 | 2018-07-11T02:43:53 | C++ | UTF-8 | C++ | false | false | 1,053 | cpp | speye.cpp | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... |
f60916f732d5e33e3140dd55d5f492e2358506ba | 9ff35738af78a2a93741f33eeb639d22db461c5f | /.build/Android-Debug/jni/app/Uno.IO.BinaryReader.cpp | a9b51afd75535c0d1b89d9f332d33193fe1be2b7 | [] | no_license | shingyho4/FuseProject-Minerals | aca37fbeb733974c1f97b1b0c954f4f660399154 | 643b15996e0fa540efca271b1d56cfd8736e7456 | refs/heads/master | 2016-09-06T11:19:06.904784 | 2015-06-15T09:28:09 | 2015-06-15T09:28:09 | 37,452,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,662 | cpp | Uno.IO.BinaryReader.cpp | // This file was generated based on 'C:\ProgramData\Uno\Packages\UnoCore\0.1.0\Source\Uno\IO\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#include <app/Uno.ArgumentOutOfRangeException.h>
#include <app/Uno.FormatException.h>
#include <app/Uno.IO.BinaryReader.h>
#include <app/Uno.IO.EndOfStr... |
059d496653b3a1f57fe968dc2c3b60b2b475c1da | 0f53f3646b0a25d4e1210de8b4983894c917da26 | /Logger/include/GameLoggerPrivate.h | 454ef3f28644cb09631d9a2cee307044f420ab5c | [] | no_license | dchelemen/OpenglExperimentProject | b09dd404aaad114007f408ec79aa43b3344b021a | 4867ade3a70098184d0fa6578122015271d6e7a9 | refs/heads/master | 2020-05-19T06:46:07.491687 | 2019-06-24T06:00:19 | 2019-06-24T06:00:19 | 184,881,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | h | GameLoggerPrivate.h | #pragma once
#include "Logger/include/Export.h"
#include <string>
#include <queue>
#include <functional>
#include <thread>
namespace std
{
class thread;
}
class CGameLoggerPrivate
{
public:
enum CLogType
{
LOGTYPE_ERROR,
LOGTYPE_INFO
};
public:
CGameLoggerPrivate();
~CGameLoggerPrivate();
void setFileN... |
e4f9fa1e4737cbbeee60af2df8a9605a64817fa2 | 50c2a39b3794e6eb6b6c81b509c16c2161b6cd73 | /gears-engine/VertexBuffer.h | c678061bc0628a83a44a9db467559d7c91c108c5 | [] | no_license | complexmuhm/gears-engine | 549345a6796dfcc11136e65ae237da6a05ea8aa1 | ea6a5e6db1d756fed5463cdd9722585e1cd7dc37 | refs/heads/master | 2020-09-26T08:42:00.220792 | 2019-12-09T01:40:56 | 2019-12-09T01:40:56 | 226,219,554 | 2 | 0 | null | 2019-12-07T16:21:50 | 2019-12-06T01:19:29 | C++ | UTF-8 | C++ | false | false | 480 | h | VertexBuffer.h | #pragma once
#include "Bindable.h"
#include <vector>
struct Vertex
{
Vertex(
float x, float y, float z,
float r, float g, float b, float a,
float u, float v)
: x(x), y(y), z(z)
, r(r), g(g), b(b), a(a)
, u(u), v(v)
{}
float x, y, z;
float r, g, b, a;
float u, v;
};
class VertexBuffer : public Bindab... |
fd217ca7fc02d040a4007d66a61d157af86a87c0 | 0fe1865c43bbb50ccf5defdb6dcffa717e0b4dbd | /TurnAround/project/Classes/AppUtils.cpp | 4120ee6f1ce5ffbdc973a69435024fc361eb4db8 | [] | no_license | yujianathz/TurnAround | 24d02f5080b01ce14a4d6ec00f90c0429aa99924 | 23f45ac3dfcb64267fadde8545577ff0d45cd150 | refs/heads/master | 2020-12-24T06:53:21.603518 | 2016-07-21T09:16:31 | 2016-07-21T09:16:31 | 63,854,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,884 | cpp | AppUtils.cpp | #include "AppUtils.h"
#include "tolua_fix.h"
#include "LuaBasicConversions.h"
#include "CCLuaValue.h"
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
#include "AppUtils_ios.h"
#endif
void AppUtils::openShare(const std::string& shareText, const std::string& shareImage, const std::string& shareTitle, const std::string& sha... |
5e183a2699bc8616fe245590c49bb0dceeb0b668 | 461619a84c6617ceaf2b7913ef58c99ff32c0fb5 | /designpattern/dependency_injection/dependency_injection/src/dependency_injection/round_brackets.cpp | f85505d67dae612f9b4454af6a1ca189983b02fa | [
"MIT"
] | permissive | bg1bgst333/Sample | cf066e48facac8ecd203c56665251fa1aa103844 | 298a4253dd8123b29bc90a3569f2117d7f6858f8 | refs/heads/master | 2023-09-02T00:46:31.139148 | 2023-09-01T02:41:42 | 2023-09-01T02:41:42 | 27,908,184 | 9 | 10 | MIT | 2023-09-06T20:49:55 | 2014-12-12T06:22:49 | Java | UTF-8 | C++ | false | false | 349 | cpp | round_brackets.cpp | // ヘッダのインクルード
// 独自のヘッダ
#include "round_brackets.h" // class_round_brackets
// メンバ関数create_brackets_string
std::string class_round_brackets::create_brackets_string(std::string str){
// 丸括弧付きの文字列を返す.
return "(" + str + ")"; // strの前後を"("と")"で囲んで返す.
}
|
7a85ab38e7b16d26247b64d294d93cc17120bd42 | 37cd80524cd474015991621cfbacc7e0cd46a4ef | /top interview/2.Add Two Numbers/solution.cpp | 73e72b6870bcb37354e75f071d0b6d2571008465 | [] | no_license | ly1996/SimpleAlgorithms | b6df996993276df3003e6a36b5fcffb30889c7ef | a9b6c5d04c6de86030fe094433d67ee6b49305c4 | refs/heads/master | 2020-03-28T03:18:24.125560 | 2019-01-17T06:18:11 | 2019-01-17T06:18:11 | 147,636,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,664 | cpp | solution.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
//把l1作为返回的节点
ListNode* tmp1 = l1;
ListNode* tmp2 = l2;
... |
be2283000ada1ff90ff947ca581ee634c81d6c11 | d54916fe57f229a05361b822a22b881d15819c7f | /CONTEST/CC/LUNCHTIME_DEC_2020/test.cpp | dc381950998c03a6d031ac66ef64ab1ae07ec378 | [] | no_license | ksb451/Cpp_DSA | 73dc8773fc4b5d896b133410809efce97437b9aa | 10544373f3e6558cf57d2270a30550b4761b0715 | refs/heads/master | 2023-06-25T10:48:04.473323 | 2021-07-22T17:04:31 | 2021-07-22T17:04:31 | 168,570,132 | 0 | 1 | null | 2020-10-26T15:03:34 | 2019-01-31T17:53:57 | C++ | UTF-8 | C++ | false | false | 2,549 | cpp | test.cpp | #include <bits/stdc++.h> // This will work only for g++ compiler.
#define for0(i, n) for (int i = 0; i < (int)(n); ++i) // 0 based indexing
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i) // 1 based indexing
#define forc(i, l, r) for (int i = (int)(l); i <= (int)(r); ++i) // closed interver from l to r r incl... |
818a47609b9d06ffd843826d0d930c47f490dc86 | 1f77e45570b2b59b2c3b913869d780c86039cb5b | /src/draw/escena.cpp | a61ce28000a94814ad8b9a4b6d4d3c9e9e95fba5 | [
"MIT"
] | permissive | pcamarillor/Exploratory3D | 38cfb9eff4fcf0525c0edd1dbfeaee4e813d67db | 10705d201376b98bdf8f19fca398a3bf341807c9 | refs/heads/master | 2016-09-06T17:13:29.638960 | 2015-09-27T22:47:23 | 2015-09-27T22:47:23 | 41,456,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | escena.cpp | #include "escena.h"
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
Escena::Escena()
{
}
Escena::~Escena()
{
}
void Escena::Abrir(char* path)
{
ifstream fichero(path);
string cad;
Objeto3D *tmp;
float x,y,z;
char *str;
... |
028dae33740f4de474e24b4e0b64885506295dac | bb274d1aa2b1536ed0478aa27073044b94873a4e | /taksofon v2/Payphone/Payphone/process.cpp | c0ecb85b2d1a0ef708235adf5898e08b04fc13b9 | [] | no_license | nareykov/Projects | 211fd8da119d6fd8e9a468b46b6b14d94fe44d39 | 93fd79a257b2ae10efbeea319155c9eceebce8af | refs/heads/master | 2021-01-18T20:53:10.663494 | 2017-06-14T17:07:39 | 2017-06-14T17:07:39 | 86,997,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,018 | cpp | process.cpp | #include "process.h"
#ifdef _WIN32
LPSTR Process::PipeName = "\\\\.\\pipe\\$SecurityATmLine$";
HANDLE Process::hNamedPipe;
LPSTR Process::SecondPipeName = "\\\\.\\pipe\\SecondPipe";
HANDLE Process::hSecondPipe;
HANDLE Process::UserEvent;
LPSTR Process::UserEventName = "User";
HANDLE Process::PhoneEvent;
LPSTR Process:... |
ab47f280178cdec2de0f0b2fd2b46c77ca6ea783 | 5a33aad281c9e3e77a69bfb91e2c9bc6999eee2d | /New folder/GameCastleVania_Tahitu/DoorChangeStage.h | 37d428a6f26acd12fd2e5d6db56e55ea23bd6070 | [] | no_license | ducptd98/NMGame | e353e157ad7e377e9f8bcad6aa2f3bb75bd49704 | f0f2efd49815a72be618b8b484e6dc190a0b60b5 | refs/heads/master | 2021-09-24T14:14:58.872031 | 2018-10-10T05:53:35 | 2018-10-10T05:53:35 | 152,369,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | DoorChangeStage.h | #pragma once
#include "DrawableObject.h"
enum DOOR_ACTION
{
DA_CAMERA_RUN1,
DA_OPEN_DOOR,
DA_SIMON_RUN,
DA_CLOSE_DOOR,
DA_CAMERA_RUN2
};
class DoorChangeStage : public DrawableObject
{
public:
bool updating;
bool openned;
DOOR_ACTION doorAction;
void onAABBCheck(BaseObject* other);
void openDoor();
void u... |
0317204f45d332432f2b4e597795a73ef22f9c59 | a696549255433a0d499d7c5dda18d3128ab66055 | /src/arch/runtime/system_event/pipe_event.hpp | f935ca325781b6ee27862dc98861d2780b33c5c8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dk-dev/rethinkdb | 90cdfdff672a2693842f779d21d60d87c290a39d | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | refs/heads/next | 2022-03-14T15:43:50.758116 | 2021-11-30T02:49:09 | 2022-02-20T22:47:44 | 12,976,019 | 0 | 0 | Apache-2.0 | 2022-02-21T01:10:42 | 2013-09-20T14:50:36 | C++ | UTF-8 | C++ | false | false | 661 | hpp | pipe_event.hpp | // Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef ARCH_RUNTIME_SYSTEM_EVENT_PIPE_EVENT_HPP_
#define ARCH_RUNTIME_SYSTEM_EVENT_PIPE_EVENT_HPP_
#include <stdint.h>
#include "errors.hpp"
struct pipe_event_t {
public:
pipe_event_t();
~pipe_event_t();
void consume_wakey_wakeys();
// You may... |
5f6ba1d15a6bf5d0378e8740a6dd8f4402df242c | 2ffd841a75f7057dea6eb392cf4c32eb1aed6c16 | /creature.hpp | 22e2fae03fc71e83ba8063d7e0ba413844d479c1 | [] | no_license | mnladish/Battle | c0692936f152c0b95f0f17abb23ec7c151c18204 | f2966e4144c61b7997cb8c3a7a2b17f00fcda1d3 | refs/heads/master | 2023-01-23T10:19:09.362369 | 2017-05-15T01:11:18 | 2017-05-15T01:11:18 | 91,283,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | hpp | creature.hpp | /********************************************************
** Program Name: Fantasy Combat
** Author: Megan Ladish
** Date: 5/14/17
** Description: This program is simulates a role-playing
** fantasy combat dice-rolling game between 5 types of
** creatures. You run it with executable file fantasy.
*********************... |
0612192f50d0e1f6894d4ba96e766310894c69ba | 92c440453a691f17b5ffb3f5d75f272d996f11ca | /inc/LV_to_flavour_function.h | a9e98b3698e025ddbd134d264826d6419814293b | [] | no_license | arguelles/LVTools | 46d38c86fb1678dc72f0040e26c7343e8fd3c7d6 | d516b9ae889f3ecdedcd5ce12ff2908e783fbcb0 | refs/heads/master | 2020-04-06T06:05:57.538924 | 2018-02-07T01:37:00 | 2018-02-07T01:37:00 | 50,935,382 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,767 | h | LV_to_flavour_function.h | #ifndef _LV_TWO_FLAVOR_FUNCTION_
#define _LV_TWO_FLAVOR_FUNCTION_
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <ctime>
#include <iomanip>
#include <stdexcept>
#include <cmath>
#include <vector>
#include <numeric>
#include <functional>
//#include <vector> //make code slower
... |
31b8474a0b16f55b11d02a96c74c8418c190fc6e | fa05f647fac7667f141a66565ed0422de447fdeb | /Valid Palindrome.cpp | 7788ae267f0ecffd2a02f9b3cdf75512166d4281 | [] | no_license | Hausdorffcode/leetcode_cpp | 9fb42032f07b2bacfbf3972d772e98ca7d2c5096 | 42c750941e458885d0359b01bdaae0a0eb5c5c8f | refs/heads/master | 2021-01-19T07:15:49.748179 | 2017-09-28T13:00:55 | 2017-09-28T13:00:55 | 87,532,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | Valid Palindrome.cpp | //https://leetcode.com/problems/valid-palindrome/#/description
//time O(n), space O(1)
class Solution {
public:
bool isPalindrome(string s) {
if (s.size() == 0) return true;
//transform(s.begin(), s.end(), s.begin(), ::tolower);
int len = s.size();
int p = 0, q = len-1;
whil... |
05bb053030517d077583b0d33199d5f12654ea0e | cefc92919b5d3112f6147face6c73c3f503138dd | /RayTracer/Surface.h | fccae84216f7fa4ac415c227fa7a1cc919caea21 | [] | no_license | FabioStrappazzonFHNW/raytracer | 5400fb233bc020be4afecf0f896e8516fd01257c | 7405e5b633dc41fbff5a97064e2d21079815799e | refs/heads/master | 2021-07-25T20:41:42.582873 | 2017-11-07T21:11:16 | 2017-11-07T21:11:16 | 109,889,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | Surface.h | #pragma once
#include <vector>
struct SDL_Surface;
class Color;
class Vec3d;
class Surface
{
public:
Surface(const char* name, int size = 0);
Surface(const Surface&) = delete;
Surface& operator=(const Surface&) = delete;
Surface(Surface&& rhs);
Surface& operator=(Surface&& rhs);
~Surface();
Color getColor(V... |
4db841cf53546c4e8cc0d7f53d19eedafd19bd9f | c24dbe3a46c12c3bdb3a1c75b57aa3f17db2d76f | /include/graph_data_structures/containers/compressed_adjacency_list.hpp | b05b9d0e823d648872744941abbb1d2b491375ff | [] | no_license | alexmihy/parallel-task1 | 32bf00c4f7b046b9cc5c8c6035b844cfc0b5bcc1 | 1fd4cab639caa4e7417e7030e002f8da92f1922e | refs/heads/master | 2021-08-17T06:52:37.604710 | 2017-11-20T21:55:55 | 2017-11-20T21:55:55 | 111,452,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,670 | hpp | compressed_adjacency_list.hpp | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template <typename _TVertexValue, typename _TEdgeWeight>
CompressedAdjacencyList<_TVertexValue, _TEdgeWeight>::CompressedAdjacencyList(int _vertices_count, long long _edges_count, bool _directed)
{
Ba... |
b2ddf55fa4b0477a6860aff7d41f0ab47aba977a | 76c9aff83160904f0383735fdaf211b77602a57b | /tags/bakalarka_final/src/code/FFT_field/triangle.cpp | ee45964ce567c22c655222ffd7315f070f898ea0 | [] | no_license | ppershing/ppershing-bsc-thesis | 9e8d310beed9ed8a5cbec921f96f056d1982710f | 1e016765dc4128c5abdc88a94d344c0b2a406f88 | refs/heads/master | 2021-01-19T11:37:27.137139 | 2011-01-13T14:19:45 | 2011-01-13T14:19:45 | 32,278,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,850 | cpp | triangle.cpp | #include <stdio.h>
#include <algorithm>
#include <vector>
#include <cassert>
using namespace std;
#define MAX 1500010
#define FOR(q,n) for(int q=0; q<n; q++)
int n;
vector<long long> data,data2,holder;
vector<int> bitReversal;
/*
#define LOG_SIZE 6
#define FFT_SIZE 64
long long prime=193; //2114... |
06f4548f73354fd15bec708717c560786c8743bc | 6c996ca5146bd307a062f38819acec16d710656f | /workspace/iw8/code_source/src/cgame_mp/cg_vehicle_hud_mp.cpp | c4209eb8d8e8fa6fe200acbf3ec7e36f3a253292 | [] | no_license | Omn1z/OpenIW8 | d46f095d4d743d1d8657f7e396e6d3cf944aa562 | 6c01a9548e4d5f7e1185369a62846f2c6f8304ba | refs/heads/main | 2023-08-15T22:43:01.627895 | 2021-10-10T20:44:57 | 2021-10-10T20:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,319 | cpp | cg_vehicle_hud_mp.cpp | /*
==============
CG_VehicleHudMP_DrawCompass
==============
*/
void __fastcall CG_VehicleHudMP_DrawCompass(LocalClientNum_t localClientNum, CompassType compassType, bool cropPartialMap, const rectDef_s *parentRect, const rectDef_s *rect, const float boundsRadius, const vec4_t *color, const bool largeMap, GfxImage *ma... |
e5b6b93a71788051868f0c8b35125e64baa3454a | 650f32ec6c8a83646a043133fd95f0f3d6269aa3 | /book/CH08/S18_Creating_a_compute_pipeline.h | 4c0bf47a9d40ce56ab60397de0852d954dbad8e6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | THISISAGOODNAME/vkCookBook | 0478b3eb80dec179f38dc2812416f3c3f4cb22f8 | d022b4151a02c33e5c58534dc53ca39610eee7b5 | refs/heads/master | 2021-01-25T11:49:37.695292 | 2017-07-23T14:28:52 | 2017-07-23T14:28:52 | 93,948,327 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 983 | h | S18_Creating_a_compute_pipeline.h | //
// Created by aicdg on 2017/6/22.
//
//
// Chapter: 08 Graphics and Compute Pipelines
// Recipe: 18 Creating a compute pipeline
#ifndef VKCOOKBOOK_S18_CREATING_A_COMPUTE_PIPELINE_H
#define VKCOOKBOOK_S18_CREATING_A_COMPUTE_PIPELINE_H
#include "Common.h"
namespace VKCookbook {
bool CreateComputePipeline( Vk... |
4bfc4696b41a457d3949a10ffea9491553ca37f4 | e2bd7bf66a01a835a87ee43773d40d6c9a88d96c | /source/digits_hits/src/GateMaterialMuHandler.cc | 8217d32310baf00a912f1a527a444ef5078c7a5c | [] | no_license | sansiri20/opengate-public | 900136e98ce6e324819d944474b12e3c6da8e668 | 06d46c29e8c78d7b0fc81052cfb44cf002c60bd0 | refs/heads/master | 2021-05-26T17:27:53.975226 | 2013-05-21T12:56:53 | 2013-05-21T12:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,072 | cc | GateMaterialMuHandler.cc | #ifndef GATEMATERIALMUHANDLER_CC
#define GATEMATERIALMUHANDLER_CC
#include "GateMaterialMuHandler.hh"
#include "GateMuTables.hh"
#include "GateMiscFunctions.hh"
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <map>
using std::map;
using std::string;
GateMaterialMuHandler::GateMate... |
f8822404d59a40a5c68fa9f78b2b556196f79cfe | 6e47a23ee434aa63aa24185d8f7c24efffb810b1 | /app/CApp_OnInit.cpp | 8d99076c2f7726e51f0fdb3b48b383612d77fe58 | [
"MIT"
] | permissive | TeodorDre/sdl-experience | 76096d1594a99249a455590872c756c9170a1d8f | 8214ceae85d463b1a392bedef2e93d47b99b6859 | refs/heads/master | 2020-09-21T08:18:40.112855 | 2019-11-29T01:31:11 | 2019-11-29T01:31:11 | 224,738,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | CApp_OnInit.cpp | //
// Created by Andrew Slesarenko on 2019-11-28.
//
#include "./../CApp.h"
#include "./../app/CSurface/CSurface.h"
#include "SDL/SDL.h"
bool CApp::OnInit() {
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
return false;
}
if ((Surf_Display = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF)... |
228360f48267d2668f3c0913b22060fabc8f89e3 | 4c85604429b09349fca76a7fb03556ceae68cec0 | /ModifiedRaven/VS2010/Buckland_Chapter7 to 10_Raven/Goal_FollowPartialPath.cpp | ce29d48843ad04245ad4a8a0e14ac58d6e96c783 | [] | no_license | FreyAlecJ/Frey_Portfolio | a51fca0514967335e50d1e0dd8f324d6b394b9b8 | 0d1e69dc73bc182ce11faa1638b3a481c154a45d | refs/heads/master | 2021-08-30T23:02:11.398334 | 2017-12-19T18:51:06 | 2017-12-19T18:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | cpp | Goal_FollowPartialPath.cpp | #include "Goal_FollowPartialPath.h"
Goal_FollowPartialPath::Goal_FollowPartialPath()
{
}
Goal_FollowPartialPath::~Goal_FollowPartialPath()
{
}
|
f84697fc654687a59e1488ea8f5ccca1f24ad51a | 93a5efdef550be91db022b878b78abeefe3d2a8c | /tvm/include/tvm/VirtualMachine.hpp | 72e3e6663ab6a2ec118f026c1c4be5df49215314 | [
"Apache-2.0"
] | permissive | Leonardo2718/tVM | fdfe76cd93bc8ecff65f244f6fa2f9eee29894bb | ab32ed43755893384f5418f9fb9d5029e81429f5 | refs/heads/master | 2020-06-12T00:37:28.524676 | 2019-06-24T15:23:52 | 2019-06-24T15:23:52 | 194,137,929 | 0 | 0 | Apache-2.0 | 2019-06-27T17:36:32 | 2019-06-27T17:36:32 | null | UTF-8 | C++ | false | false | 1,287 | hpp | VirtualMachine.hpp | #ifndef TVM_VIRTUALMACHINE_HPP_
#define TVM_VIRTUALMACHINE_HPP_
#include "tvm/Module.hpp"
#include "tvm/OperandStack.hpp"
#include "tvm/instructions.hpp"
#include "tvm/Compiler.hpp"
#include <cstring>
#include <ostream>
#include <string>
#include <vector>
#include <memory>
namespace tvm {
class ExecutionContext;
cl... |
c321f921f8032a00247f80ae03688f795bfdeae2 | f413257f503efe1849ddf4ef36234da910b54283 | /main.cpp | caaa346632eda66e500c155171310d4b026d8ba9 | [] | no_license | alexjmeech/SearchEngine | c1886c238b740d538bc01e4705d8e2d044cccc34 | 153dae35b6a92129fafa0c5439171e9219896fa6 | refs/heads/master | 2020-06-18T16:15:33.395409 | 2019-07-11T09:44:09 | 2019-07-11T09:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cpp | main.cpp | #include "InputProcessor.h"
#include "SearchEngine.h"
using namespace std;
int main()
{
InputProcessor::getInstance();
SearchEngine engine;
return 0;
}
|
bc4ff5814a14d90dbc4afcde46717c00a47cc90b | 2b51d398445abdd6a197d48894283adf123aa8bb | /Leet-Code/maxSubArray.cpp | 42eef2fef482557b2a7f1b27eb75656f32cfe2ef | [] | no_license | HussainAbuwala/Competitive-Programming | 364a365201026f49bbb527628eea1322801aa699 | b018237fce0c34784506841824f144026e82d6bb | refs/heads/main | 2023-03-26T01:22:19.325511 | 2021-03-24T17:10:28 | 2021-03-24T17:10:28 | 351,161,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,923 | cpp | maxSubArray.cpp | int maxSubArrayBruteForce(vector<int>& nums) {
int maxSum = nums[0];
int temp = 0;
for (int i = 0; i < nums.size(); i++){
for(int j = i; j < nums.size(); j++){
temp = findSum(nums, i, j);
if(maxSum < temp){
maxSum = temp;
}
}
}
retu... |
802b786040daffa82dbe00eca97ef74f0e8c6d35 | 9ceb2d12c8fae02d6aad2d4d29478b604fcffdc1 | /samples/GuiAPI_ConsoleApp/ConsoleApp.cpp | 020789255919f8adde267de1c1ced1839323fe4a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | odayibasi/swengine | 0b39b37b2e50be4de87e58236b8fad7b388a1fb8 | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | refs/heads/master | 2021-01-20T13:49:06.639523 | 2020-02-16T08:31:53 | 2020-02-16T08:31:53 | 14,394,652 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,870 | cpp | ConsoleApp.cpp | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWServices.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SW... |
2a2eb41c77de243ea4e6a20e8777c7995d087d8b | cc9ae71207dc667c2e0be27671ced5c86f2f71a3 | /test/oldstudy/func-request.cpp | c3e46a77c954bcaf4ce9f15983530027d88c3eed | [] | no_license | xm0629/c-study | aed8480aa30b35637bfca307e009eb8b827b328d | 26183be9c91b2b53bd71b6693fe6d39823bc5d63 | refs/heads/master | 2020-04-09T11:35:48.047562 | 2019-03-30T15:27:01 | 2019-03-30T15:27:01 | 160,316,327 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | func-request.cpp | # include <iostream>
using namespace std;
float add(float x, float y); // 对函数 add 声明
int main()
{ float a, b, c;
cout << "Please entar a, b:\n";
cin >> a >> b;
c = add(a, b);
cout << "sum = " << c << endl;
return 0;
}
float add(float x, float y)
{
float z;
z = x + y;
return (z);
... |
17deedceace4b13adc8f90f521301a6ca0b3ddc9 | aa92351325895aca2b1826794f719640114c5d5f | /larrecodnn/CVN/func/HitType.h | a113e5c4c026d673fe5847ccc195723f82b2f8b1 | [] | no_license | LArSoft/larrecodnn | 5e51a10459f47075a57de3cf988351efe78be6d9 | 6210026191ea3e3494d5e466824a56bf7053c086 | refs/heads/develop | 2023-08-31T15:29:51.158362 | 2023-08-16T02:43:25 | 2023-08-16T02:43:25 | 244,723,816 | 0 | 24 | null | 2023-06-28T21:13:08 | 2020-03-03T19:30:14 | C++ | UTF-8 | C++ | false | false | 535 | h | HitType.h | ////////////////////////////////////////////////////////////////////////
// \file HitType.h
///\brief Defines an enumeration for cellhit classification
///
// \author psihas@fnal.gov
////////////////////////////////////////////////////////////////////////
#ifndef LCVN_HITTYPE_H
#define LCVN_HITTYPE_H
namespace lc... |
9c7b69b831b9ac545b2381225eb4e53923cf6bf3 | 9d58243fb3f239447c8e889862988b6e527e8828 | /UvNetLib/thread/i_lock.h | dca5a56d3a48c3ec3b2068a9d9587c54ab330ae6 | [] | no_license | roctomato/UvNetLib | 855cb8f852af4902a87093c495933e8703c189be | 6d091a01b0b8757e49b5672a66bd6121dcd7a857 | refs/heads/master | 2023-01-09T12:04:53.191908 | 2020-09-15T07:39:32 | 2020-09-15T07:39:32 | 259,222,956 | 0 | 1 | null | 2020-10-13T21:32:36 | 2020-04-27T06:16:10 | C++ | UTF-8 | C++ | false | false | 1,490 | h | i_lock.h | #ifndef __LS_ILOCK_H__
#define __LS_ILOCK_H__
/*! \brief 各种读写锁的统一接口
*
* 该抽象类包括四个纯虚函数:
* ReadLock() 上读取锁.
* ReadUnlock() 解读取锁
* WriteLock() 上写入锁.
* WriteUnlock() 解写入锁
*/
class IRWLock {
public:
virtual ~IRWLock() = 0;
virtual void ReadLock() = 0;
virtual void ReadUnlock() = 0;
virtual void... |
0fd3ef52dc278bb97c062728ae7ca95575d8617e | 56cb0d5fe1c7428dac7a2851432854c2f39995e7 | /src/master/node.h | d60998a39f04b4574e14e3f1d984bf16076db510 | [
"MIT"
] | permissive | EdgeLab-FHDO/ResourceAllocationE2EL | b52f222c0fb80d23a60b56bc4175692dc0fc3dbd | 426d0104ab3439c1b107262aeade340999a8bafb | refs/heads/master | 2021-01-05T07:11:29.236322 | 2020-04-14T17:52:12 | 2020-04-14T17:52:12 | 240,926,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | h | node.h | #ifndef NODE_H
#define NODE_H
#include <string>
#include <vector>
#include "server.h"
#include "client.h"
class Server;
class Client;
using namespace std;
class Node
{
private:
string name;
int application_id;
string location_point_of_access;
string location_zone;
//vector... |
8eeeb56f3db4427051dedc788ba638fdcf8eda9c | 2d42904659a81473365db2cfb40f85d2a6106d99 | /Midterm/Code - Progress/Version 1.75 and Source/midtermCode1.75/midtermCode1.75.ino | cbc37821be476e3ea64649ee4dbddd531f2115d3 | [] | no_license | emres13/DT-Lab-2- | e122f1f553bc999e60488d7c778bd2efd4ce50e7 | 221b1acc6e3a0eeb97afd61229cfef141cca6270 | refs/heads/master | 2021-01-21T11:39:45.117499 | 2016-05-16T21:33:18 | 2016-05-16T21:33:18 | 51,342,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,980 | ino | midtermCode1.75.ino |
/*
Code by: Emre Sardogan
March 18, 2016 @ Parsons School of Design
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Credits to: Angelo Casimiro (4/27/14)(Android-Bluetooth)
: Shawn Hymel @ SparkFun Electronics(GestureSensor)
: AdaFruit NeoPixel Library-Example Sketches... |
dbd6741187782d3ad388882c71e457d37cda1b39 | e6b5b881206037d76d58fdf49620b388d3ff4ec0 | /Larry's Array.cpp | 3163b4b6a56377a87fcbca6a8f26ef6627a5dab5 | [] | no_license | hsmfawaz/UVA-Solutions-cpp | e684f005cc7461c38ccadf04f79dcf94acd02fdc | 5b56dcfbca5de8f7a21b8c0f165ade8109bbf246 | refs/heads/master | 2021-05-10T21:41:37.780423 | 2018-04-20T13:41:48 | 2018-04-20T13:41:48 | 118,236,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | Larry's Array.cpp | #include <bits/stdc++.h>
using namespace std;
#define FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define sz(a) int((a).size())
#define sza(a) (int)(sizeof(a)/sizeof((a)[0]))
#define all(c) (c).begin(),(c).end()
#define rep(i,a,n) for (int i=(a);i<(n);i++)
#define clr(x) memset(x,0,sizeof x)
#define ft... |
5fe64ea11d66c1bfe8f884dd7304c7e9fce8684a | 9322288578d3580d3d169e665ed9b55fe64684e1 | /LIB_GO_UTILS/GoUtils.h | 00fcc57ba13705060f55df36938f2a27f50806e1 | [
"MIT"
] | permissive | gabrielmsantos/go_tools | 1a75a81b8e9afa8cd4d097ef70b4c84d5a33cd9d | 514c852b49c75f206b4a940f7d46ee0162e146ab | refs/heads/master | 2020-04-11T19:36:22.926351 | 2018-12-16T20:57:59 | 2018-12-16T20:57:59 | 162,040,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | h | GoUtils.h | #ifndef GOUTILS_H
#define GOUTILS_H
#define MAX_BOARD 19
#define MIN_BOARD 4
class GoUtils
{
public:
//====================================================================================
static short BoardPositionToMove(unsigned int x, unsigned int y, int currentPlayer)
{
return (short)((((x+1)* (MA... |
022f0ac07e5d5f34f5979c7e620c2437fc7fcb0f | 6f65910380844b6709a27bb7108f311799ade2d3 | /cui_raw/cui_rawImpl/Rect/Rect.cpp | fcff0cd6de02b66db4bff3b799e67c544699661b | [
"MIT"
] | permissive | alecmus/cui | 088645a9865b1dca3a35803de8c41f3e9f97dc5b | bbfc1cbeeac43b717b05094d69adf8a57469d125 | refs/heads/master | 2021-12-29T21:14:49.589472 | 2021-12-18T21:09:13 | 2021-12-18T21:09:13 | 247,939,686 | 8 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,474 | cpp | Rect.cpp | //
// Rect.cpp - rectangle implementation
//
// cui framework, part of the liblec library
// Copyright (c) 2016 Alec Musasa (alecmus at live dot com)
//
// Released under the MIT license. For full details see the
// file LICENSE.txt
//
#include "../cui_rawImpl.h"
LRESULT CALLBACK cui_rawImpl::RectProc(HWND hWnd, UINT... |
367bc56ddcd99c5d08181d3ed95d74d2a8540c6e | 45de2a21c0f1a9d45876e8e829fdd91c048659c6 | /Assignment7/sendAByteArd/sendAByteArd.ino | cc0bd8604d533667a502871bfe5d65766eabc4cf | [] | no_license | muji786/Summer2017-CreativeComputing | 8e6a380d353180fbee14fd9c65e8dfec674768e1 | bf406afedf25d34f5186778391f817caa36f7f09 | refs/heads/master | 2020-06-24T00:39:32.668649 | 2017-08-11T05:58:00 | 2017-08-11T05:58:00 | 96,911,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | ino | sendAByteArd.ino | int blueLED1 = 2;
int redLED1 = 3;
int greenLED1 = 4;
int blueLED2 = 13;
int redLED2 = 12;
int greenLED2 = 11;
int speaker = 8;
void setup() {
Serial.begin(9600);// initialize serial communications
pinMode(redLED1, OUTPUT);
pinMode(blueLED1, OUTPUT);
pinMode(greenLED1, OUTPUT);
pinMode(redLED2, OUTPUT);
... |
5c54ba43aeb98fd5f2c86a3eeee60d552732f298 | 4ec79fe82909b9c8d3910154821d38cdc8941efc | /链表1.cpp | 5514dbaa99d3d90c835c48ea6e0b055890857d24 | [] | no_license | hysjryrsmy/data_structure | b9602caa7cbc7b83b50a4a6c522e06c166ef15b3 | f2a3728db19664470e1c71bbf13d089b4aa5af0b | refs/heads/master | 2023-07-14T07:06:30.828969 | 2021-08-23T08:17:28 | 2021-08-23T08:17:28 | 368,058,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,737 | cpp | 链表1.cpp |
//链表特点:元素之间前后依赖,串联而成;链表的元素不能随机访问;元素前面和后面不会出现多个元素相连的情况;一般只有一个表头
//链表的构造、插入、遍历、删除、反转
//链表的插入:时间复杂度为O(n)
//insert(node,index) : 将node插入到链表中下标为index的位置
//实现方法:
// 1.找到链表中要插入的位置
// 2.令待插入结点的next指针指向插入位置的当前结点
// 3.令插入位置之前的当前结点的next指针指向待插入结点
//链表的遍历:时间复杂度O(n)
//从头结点开始通过当前结点的指针找到下一节点直至表尾,并输出所有结点的值
//ou... |
8d23c20f1d8f054ca96bb3fbbefe1fc3f0419279 | e0950f2457ea3c3daad349e9add30aa954fbcf4d | /studentuse.cpp | 701dd8af8f7436998a98e520f9c6ae8562059c39 | [] | no_license | RakshithMakam/OOPS-Practice | 5b56efa425fea9d7ab1c5433e5e4e34e0df2816a | f8d7ff6f2596246d348a841a34b7d89d68c4102b | refs/heads/main | 2023-04-22T11:09:42.522100 | 2021-05-09T13:42:45 | 2021-05-09T13:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | studentuse.cpp | #include <iostream>
#include "student.cpp"
using namespace std;
int main()
{
student s1;
s1.display();
student *s2 = new student;
s2->display();
student s3(20);
s3.display();
student *s4 = new student(10);
s4->display();
student s5(17, 100);
s5.display();
... |
d504ead45800f4f59da9f85c5976e4b564284ad2 | 8989d2b1129b3993d1e2fe05463307bdee046580 | /H264Extension/src/lib/H264AVCDecoderLib/CabacReader.cpp | e9d3bab614588171507f454e1e11a59ceffa5402 | [] | no_license | ssah8524/SVC-Layer-multiplexing-demultiplexing | ca74f37a4a593afe2e6dc7fb95ea3b0fed5a6f0d | c50ef87df013536602760cc6b01922ce0ad66ddf | refs/heads/master | 2021-01-17T19:59:10.912529 | 2016-10-23T21:38:20 | 2016-10-23T21:38:20 | 71,729,778 | 3 | 1 | null | 2017-05-03T19:41:22 | 2016-10-23T21:07:05 | C++ | UTF-8 | C++ | false | false | 36,932 | cpp | CabacReader.cpp |
#include "H264AVCDecoderLib.h"
#include "H264AVCCommonLib/Tables.h"
#include "H264AVCCommonLib/ContextTables.h"
#include "H264AVCCommonLib/CabacContextModel2DBuffer.h"
#include "H264AVCCommonLib/TraceFile.h"
#include "H264AVCCommonLib/Transform.h"
#include "CabaDecoder.h"
#include "CabacReader.h"
#include "BitReadBuff... |
3388f859b1131a57197461bb78cf6161dda57011 | b90cfaa74c38a75ca6848130d8cea6cd4a9619d3 | /Commons/GRSCOMException.h | 46f692a33932fc85d53ff705f06e407922252649 | [
"MIT"
] | permissive | GamebabyRockSun/GRSDXRSamples | 6c0fd136778415a41cd16cc32ec709201f57824e | cc1b6bad6c8edfb133ccf9cbef146b1addcb4369 | refs/heads/master | 2023-02-09T00:24:02.673549 | 2023-02-05T08:46:55 | 2023-02-05T08:46:55 | 209,525,042 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 186 | h | GRSCOMException.h | #pragma once
class CGRSCOMException
{
public:
CGRSCOMException(HRESULT hr) : m_hrError(hr)
{
}
HRESULT Error() const
{
return m_hrError;
}
private:
const HRESULT m_hrError;
};
|
0aa64e22ced1e34ad153e6261fa87776c53df984 | ef006621f8b0d23f474c99eefffc011d55c0c3e5 | /distribution.cpp | 46b615317faf17f8d5a2090a3af70902102e1442 | [] | no_license | Fantasya/Bornes-Ecossaises | f05782312f3d7da01c00a3b72fc19707fa608f41 | e922f4775d2b761f7329c162fc5b86dd4fba6786 | refs/heads/master | 2016-08-07T00:42:16.689448 | 2013-11-17T15:38:33 | 2013-11-17T15:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,874 | cpp | distribution.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
#include "Def.h"
using namespace std;
void initialisation_pioche (t_pioche pioche)
{
int i,j;
string couleurs[NB_COULEURS] = {"Roug", "Jaun", "Vert", "Bleu", "Noir", "Marr"};
for (i=0; i<NB_COULEURS; i++)
{
for (j=0; j<CARTES_PAR_COULEUR... |
ae001b69132d6a1a3a22d3d5d081de9a1d05e1de | 185fd1a373f19c9a55586fe9a49a315513afc365 | /src/log.cxx | 22151c18ee7a5de5f4c18c8ac250c3df7bb79de8 | [] | no_license | EXio4/IPoIRC | 2cdef2ed7a5f9d71c524fb5ef36027f1f1140014 | 4f01ce211aa394f8060e0d47bd9de11644439777 | refs/heads/master | 2021-01-21T04:25:55.792806 | 2016-08-01T23:24:37 | 2016-08-01T23:24:37 | 4,438,613 | 4 | 0 | null | 2014-10-03T16:07:52 | 2012-05-24T22:07:26 | C | UTF-8 | C++ | false | false | 700 | cxx | log.cxx |
#include <iostream>
#include "log.h"
namespace Log {
class NullBuffer : public std::streambuf {
public:
int overflow(int c) { return c; }
};
NullBuffer null_buffer;
std::ostream null_str(&null_buffer);
static Level log_level = Debug;
void set_log_level(Level l) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.