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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c3b141c571395a2c012c23c4b37bc54c9ad81ff | e2a51b74091cc0f7ba2ed1567fb246e60444e190 | /nativecrashcatch/src/main/cpp/native-crash-handler.cpp | bc4cb4c3ab1f6be5489a977ae11c9b90abae7509 | [] | no_license | woshiwzy/NativeCrashCatch | 0682b2a39eeadc8b8f116df04c560d45ad290f29 | 09222e955f71cf2fdd5c4f166856105c4a491c27 | refs/heads/master | 2022-05-22T22:39:43.887460 | 2018-01-04T06:38:57 | 2018-01-04T06:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,939 | cpp | native-crash-handler.cpp | //
// Created by 田晓磊 on 2018/1/3.
//
#include <jni.h>
#include <string>
#include <android/log.h>
#include <signal.h>
#include <unistd.h>
#include <sstream>
#define TAG "native-crash-activity.cpp"
#define LOG(str) __android_log_print(ANDROID_LOG_DEBUG,TAG,str)
//注册拦截器的信号
const int handledSignals[] = {
SIGSEGV... |
8c305ad7d1db73006f168c5bd31ea90de4ad5ae7 | a59bad4cb0199ef6936f1abfa8809e45ce27ae06 | /AutoTestTool/AutoTestTool/tcp/tcpclient.cpp | d48c92517048f68c1652ebc177f66a3fdfd9d4c8 | [] | no_license | skyformat99/CleverTool | 442ec63ca78259cd0054c11e80626b0032be3b0c | 6db2970f858a1061a757e12198e7280220996048 | refs/heads/master | 2021-01-01T19:33:23.686552 | 2017-05-05T05:41:47 | 2017-05-05T05:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | cpp | tcpclient.cpp | #include "tcpclient.h"
TcpClient::TcpClient(QHostAddress &addr, int &port, QObject *parent) : QObject(parent)
{
mAddr = addr;
mPort = port;
isConnecting = false;
tcpsocket = new QTcpSocket;
connect(tcpsocket,SIGNAL(connected()),this,SLOT(socketConnected()));
connect(tcpsocket,SIGNAL(disconn... |
70ee01255d7e8f498b03d353d6fdfb1381f3ea91 | f0c3862ea1285c7e5b331d519e9f825a47c2e10d | /PositionsArray.cpp | eab10257b6b61c381d472d384dfe5f77465bb6ec | [] | no_license | amorijs/cs232-baseball-lineup | 8cd96e26a43ea6bfad11c4a4b3875bde7adc500d | 214ca791dbb7612d40a7fdfbdcdacd09bd2b24ea | refs/heads/master | 2021-06-17T10:44:54.480470 | 2017-05-19T06:49:57 | 2017-05-19T06:49:57 | 91,773,056 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,888 | cpp | PositionsArray.cpp | #include"PositionsArray.h"
#include"Statics.h"
#include<iostream>
using namespace std;
PositionsArray::PositionsArray() {
clearArray();
}
int PositionsArray::getPosition(int player, int inning) {
return positions[player][inning];
}
void PositionsArray::findPositionsCombination() {
clearArray();
assignOuts();
as... |
d0152ef21fe043a534d0f7ad1d8f023e43547963 | 24b8109f0b04240c675d864490b94c3f96d9b63f | /Source/RPGGame/Public/UI/UISkillBar.h | c4d2c6d0f08dae1720c1d09bd7d1c95c29fb28e8 | [] | no_license | leerang92/RPGGame | ffee35cc19362bd1719eea203c091366174d2c0c | 1e9fc49085d368c0eefa5a9b11e43c287238861e | refs/heads/master | 2021-08-28T14:54:04.269190 | 2017-12-12T13:37:14 | 2017-12-12T13:37:14 | 112,612,761 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 499 | h | UISkillBar.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "SkillInformation.h"
#include "SkillSlot.h"
#include "UI/UIBaseWindow.h"
#include "UISkillBar.generated.h"
/**
*
*/
UCLASS()
class RPGGAME_API UUISkillBar : public UUIBaseWindow
{
GENERAT... |
8df9967f763b985a708bfe3790f564520bc17d43 | 32a87cda74dacf8289b21aefd63fbcb31d20c535 | /Kassiopeia/Visualization/Source/KSROOTTrackPainter.cxx | ff17312026b16075e52ff647d972ccbddcd8d95a | [] | no_license | Blawker/Kassiopeia | 16c9ed4e203073409cc58e009207950b0f7dde80 | 4f7145bde9972cfa088a1994f98a491646333a8b | refs/heads/master | 2022-12-03T19:28:38.050926 | 2020-08-18T14:16:21 | 2020-08-18T14:16:21 | 279,245,030 | 1 | 0 | null | 2020-07-13T08:38:58 | 2020-07-13T08:38:57 | null | UTF-8 | C++ | false | false | 25,184 | cxx | KSROOTTrackPainter.cxx | #include "KSROOTTrackPainter.h"
#include "KSObject.h"
#include "KSReadFileROOT.h"
#include "KSVisualizationMessage.h"
#include "TColor.h"
#include "TGraph.h"
#include "TStyle.h"
#include <limits>
namespace Kassiopeia
{
KSROOTTrackPainter::KSROOTTrackPainter() :
fPath(""),
fBase(""),
fXAxis("z"),
fYAx... |
296e873d34e6c0adb214fbabc28bbc326ce438c2 | 807285158038bf1f9c7b7d1666ce8c8f90ef7581 | /src/query/ops/rankquantile/RankCommon.h | 10d8ec0f40825185de5b7ec5adf9963eedc350a0 | [] | no_license | jonghunDB/SciDB19.3 | 177ccc421175977d45b679bd61841218c8ea8b17 | e413d086b715112b37b0ae9a2882e0fff3b4cfe6 | refs/heads/master | 2020-05-23T11:42:23.435694 | 2019-07-03T11:12:42 | 2019-07-03T11:12:42 | 186,736,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43,954 | h | RankCommon.h | /*
**
* BEGIN_COPYRIGHT
*
* Copyright (C) 2008-2019 SciDB, Inc.
* All Rights Reserved.
*
* SciDB is free software: you can redistribute it and/or modify
* it under the terms of the AFFERO GNU General Public License as published by
* the Free Software Foundation.
*
* SciDB is distributed "AS-IS" AND WITHOUT ANY WARRANTY... |
72cf9068371093972c70ecd0760964c2185bb5aa | 223317755bac0401621dea07019064647828cdc7 | /Figures/CFigure.h | 7e4147031d8709f05ee19985819c8c84b4a169a5 | [] | no_license | rehamaali/Paint-for-kids | ad7f1aeb955bf08f234e69ba9f1514d61a038b63 | 44fce5241f767bb5bd62cac9a0e3e2a7876c3f9d | refs/heads/master | 2022-01-24T05:37:19.258879 | 2019-05-10T21:16:47 | 2019-05-10T21:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,814 | h | CFigure.h | #ifndef CFIGURE_H
#define CFIGURE_H
#include <fstream>
#include "..\defs.h"
#include "..\GUI\Output.h"
# define M_PI 3.14159265358979323846
//Base class for all figures
class CFigure
{
protected:
int ID; //Each figure has an ID
bool Selected; //true if the figure is selected.
GfxInfo FigGfxInfo; //Figure ... |
0a10e92b7f9acb665e492a1e2dad1b5d2d1210e5 | 9f17ec51d1ab27c9829765ce5ae0cf1bbf5391df | /thread.cpp | 5578ae31f7b235d9acafcc1ac4f1dfe495cae173 | [] | no_license | chyohoo/RdWt | 8f38cc262f41648a27c2f0f452bcbafe412add39 | 5b6a9ea37847636e0e3ee6f76e1e090922036b83 | refs/heads/master | 2022-01-06T06:56:49.170056 | 2019-05-26T13:34:50 | 2019-05-26T13:34:50 | 188,687,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | cpp | thread.cpp | #include "thread.h"
#include <QFile>
#include <QProcess>
#include <QTextStream>
historyThread::historyThread(QObject *parent)
{
}
void historyThread::run()
{
}
|
e9c314940f1fef038a8bf48b8ddd83d4320c4cb0 | 1f383e5c090f0aeb03f94abdb70e74d890e09624 | /src/compiler.cpp | 15722b82c1665cc59d77ccd19fa1443084a990bc | [] | no_license | syall/SIPF | cb29bc1e8da6371bd80e97d21699d4ef9aa72126 | e4cc867ab8be2102a6631f89ad3eefb2a4242103 | refs/heads/main | 2023-04-24T17:30:10.679513 | 2021-05-13T07:26:53 | 2021-05-13T07:26:53 | 350,972,761 | 1 | 0 | null | 2021-05-13T07:26:54 | 2021-03-24T06:39:09 | OpenQASM | UTF-8 | C++ | false | false | 5,775 | cpp | compiler.cpp | #include "GateNode.hpp"
#include "QASMparser.h"
#include <iostream>
#include <fstream>
#include <string>
#include <utility>
#include <cstdio>
#include <cassert>
using namespace std;
string compile_circuit(
string qasmFileName,
vector<pair<pair<int, int>, vector<int>>> &mappings,
vector<vector<pair<int, int... |
e355f6655da600180042cb3a2bd0b173d7c0a085 | 78d884fa15ab28bb54e23c720341ee5474d454d2 | /block/QuaFX.cpp | 0934a9d64ee0fb919193d0107c849e00cfe5ca00 | [] | no_license | dakyri/qua | 14e9bcd67a139712cd197f0aff3bbffc1065465c | 651e8dab7f408b2da53b088e3a9b5271e7bd2c8d | refs/heads/master | 2020-05-21T04:22:02.425586 | 2016-08-16T12:06:03 | 2016-08-16T12:06:03 | 50,508,131 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,458 | cpp | QuaFX.cpp | #include "qua_version.h"
#include <math.h>
#include "SampleFile.h"
#include "AudioBuffer.h"
#include "Block.h"
#include "QuaFX.h"
#include "Qua.h"
#include "Sample.h"
#include "Lambda.h"
#include "Clip.h"
#ifdef QUA_V_VST_HOST
#include "VstPlugin.h"
#endif
#include <iostream>
flag debug_quafx=... |
385fdacdc7f471f9814e8b3935c9c2b00ae3c080 | c18e3cba4f445613b2ed7503061cdfe088d46da5 | /docs/parallel/concrt/codesnippet/CPP/general-best-practices-in-the-concurrency-runtime_6.cpp | 9c07ff7637931a015bdcc24f36c072701abd3105 | [
"CC-BY-4.0",
"MIT"
] | permissive | MicrosoftDocs/cpp-docs | dad03e548e13ca6a6e978df3ba84c4858c77d4bd | 87bacc85d5a1e9118a69122d84c43d70f6893f72 | refs/heads/main | 2023-09-01T00:19:22.423787 | 2023-08-28T17:27:40 | 2023-08-28T17:27:40 | 73,740,405 | 1,354 | 1,213 | CC-BY-4.0 | 2023-09-08T21:27:46 | 2016-11-14T19:38:32 | PowerShell | UTF-8 | C++ | false | false | 424 | cpp | general-best-practices-in-the-concurrency-runtime_6.cpp | // global-scheduler.cpp
// compile with: /EHsc
#include <concrt.h>
using namespace concurrency;
static_assert(false, "This example illustrates a non-recommended practice.");
// Create a Scheduler object at global scope.
// BUG: This practice is not recommended because it can cause deadlock.
Scheduler* globalSchedule... |
b5bfc1b010673091bddb1c2944b28b3c48dd4853 | 764e9173b1f4a3cd69c3c7749320bc3b7b444db5 | /NNSim/BasePatternElem.h | 00789a54ff891b7ddbe7696e145d0100ecc31bd2 | [] | no_license | Bots-United/joebot | c094460405a8d9da0e6a0aeb4f9c97ce3fd48cc7 | 7db2281c217ace01b779e9ee45ecafd25eccbc49 | refs/heads/master | 2020-04-25T08:29:13.208664 | 2005-08-19T06:23:50 | 2005-08-19T06:23:50 | 172,649,088 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | BasePatternElem.h | // BasePatternElem.h: interface for the CBasePatternElem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BASEPATTERNELEM_H__CF5CC414_4CDD_4C1B_B55F_D83A44D03C23__INCLUDED_)
#define AFX_BASEPATTERNELEM_H__CF5CC414_4CDD_4C1B_B55F_D83A44D03C23__INCLUDED_
#if _MSC_VER > 1... |
56dbb68246873324b0bf44f591eb7c22c47bc15d | 901d416ddf0027d4ded73911f639dad69cdb9c85 | /assignment 5_5.cpp | 4ca4f804f57cb6514007e7af039cebf95201e438 | [] | no_license | tuananh19959/T2004E | 4b7b88d759b28b6932175aebbdeff090e1e7aa3d | a9c8cc4519a784515002bbb8be4f148e808dcd6b | refs/heads/master | 2022-09-29T02:41:59.841929 | 2020-06-02T13:04:27 | 2020-06-02T13:04:27 | 262,468,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | assignment 5_5.cpp | #include <stdio.h>
int main(){
int n, fibo, fibo1 = 1, fibo2 = 1;
printf("nhap n:");
scanf("%d",&n);
while(fibo1+fibo2<n){
fibo=fibo1+fibo2;
fibo2=fibo1;
fibo1=fibo;
}printf("%d",fibo);
}
|
c490863b19f6860a6b5425ae82c281e5f1878760 | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/TRiAS/Extensions/Anzeige von ODBC-Daten/DerivedGrid.cpp | d41967fe5915ab75bd4b6f00ffb974634bb58e5c | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 8,362 | cpp | DerivedGrid.cpp | // DerivedGrid.cpp : implementation file
//
#include "pheader.h"
#include "odbcext.h"
#include "DerivedGrid.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSortedGrid
CS... |
5c45b94183ef56d2996348741884b6cefd7368fe | 3f3cd976e9cab107ff30330ff76993169b1b94ef | /src/FairEngine/MeshRenderer.h | 33ec6940435461c2c019eb870b7862d6f43cd5ba | [] | no_license | FairZ/PersonalEngine | 00521ec5b2a72932c2854bd95bb027496db71875 | 23047a325bc5fad8f5a65a1652749ebe7dd4ba8b | refs/heads/master | 2021-09-15T03:14:51.125501 | 2017-12-11T04:42:59 | 2018-05-24T22:21:06 | 105,015,311 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | h | MeshRenderer.h | #ifndef _MESHRENDERER_H_
#define _MESHRENDERER_H_
#include "Component.h"
#include <memory>
#include <vector>
#include <string>
class Mesh;
class Material;
/// \brief Component for rendering meshes
class MeshRenderer : public Component
{
public:
void SetMesh(std::string _meshName);
void SetMaterial(unsigned int _ind... |
970c4d5879249c478225a26928df2df13f64119f | ccc4a696cb22990c81080f0c3a11a5c4b212467c | /Object.cpp | cfc2c2d4f575d6f22088a832bf77d3bcf057c1f6 | [] | no_license | kaifeng7/z-buffer | 84950c1bcc6094a04f3b4a3947c99bf4c57dcae7 | 09f71518092787508834782a60502a3344eb0598 | refs/heads/master | 2020-09-29T22:09:33.332001 | 2019-12-17T13:46:55 | 2019-12-17T13:46:55 | 227,133,421 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,462 | cpp | Object.cpp | #include "include/Object.h"
Object::Object()
{
v_num = 0;
f_num = 0;
file_path = "";
}
Object::Object(std::string path)
{
file_path = path;
v_num = 0;
f_num = 0;
std::ifstream ifs(path.c_str());
if (!ifs.is_open())
{
std::cout << "fail to open map\n";
exit(-1);
}... |
b08ae8de471a7a7d485420997e733e0a847da5f5 | c5bbed363b5d4e887271faeb0361ae7ac6af8b82 | /dp/geeksForGeeksProblems/Easy Problems/maximumSumBitonicSubsequence.cpp | 7ba918f271994c08e4f79f0054b7c2fc6c6fe3bf | [] | no_license | adityachoudharyclg/codingFinalYear | f78be4d59086b1166274c1b0dece714d680c0acb | 9098ce79c65ec0e816b0c801a401a07c98eeb1af | refs/heads/master | 2023-02-12T21:45:22.026770 | 2020-12-31T23:46:49 | 2020-12-31T23:46:49 | 266,867,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,369 | cpp | maximumSumBitonicSubsequence.cpp | #include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int solve(int arr[], int n) {
int lis[n], lds[n];
lis[0] = arr[0];
for (int i = 1; i < n; i++) {
int ans = 0;
for (int j = i - 1; j >= 0; j--) {
if (arr[i] > arr[j] && ans < lis[j]) {
... |
559a7cf5e0480644e5dea440a93803493dad8c19 | 1c6152512f2b0f48460db7d3b5f22e001ece4fdf | /dlgeditdb.h | b43805475b21073aaec3b3a5428e8360e9328fa7 | [] | no_license | presscad/uesoft-AutoPHS | 9190f5fbadc214077d66e6b7d4535f8bff88dd54 | 838ad4b162d097df50556420de92584eba933ad6 | refs/heads/master | 2020-08-26T23:12:04.229290 | 2014-01-26T03:22:52 | 2014-01-26T03:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | h | dlgeditdb.h | //{{AFX_INCLUDES()
#include "datagrid.h"
#include "adodc.h"
//}}AFX_INCLUDES
#if !defined(AFX_DLGEDITDB_H__380142C1_0CBC_11D6_BBA7_00D009619765__INCLUDED_)
#define AFX_DLGEDITDB_H__380142C1_0CBC_11D6_BBA7_00D009619765__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgEditDB.h : header file
//... |
2a5ee1706eb1fb2bfa7382a47364819b9ccfa453 | 9393361c9528b8f3d2942218fbad22830c362d1b | /C++PrimerTemplate/template_Compare.cpp | d9ef8b8c1f371ddd95da341297d846b94f2a9b43 | [] | no_license | 007Robin/Practice | 062b661208e2ac3f9e4f675800dc33a20e7e0785 | a619c9d2d3d891d90d1af14dec204a9b53ad8570 | refs/heads/master | 2021-06-09T09:30:54.946624 | 2020-08-24T03:43:46 | 2020-08-24T03:43:46 | 100,123,229 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | template_Compare.cpp | #include<string>
#include<iostream>
using namespace std;
template<typename T>
int compare(const T& t1, const T& t2){
if (t1 < t2) return -1;
if (t2 < t1) return 1;
return 0;
}
int main(){
cout << compare(10, 5);
cout << compare(1.98, 5.082);
cout << compare(string("or"), string("or"));
}
|
7a611e692e1ac1134d79a403c031b631caf83769 | 7ed941870b6f9480ee587a1d8f87be4682c7a30f | /Day15/Maximum_Consecutive_Gap/Code.cpp | bcf78181bbebcedecb6c6a81598e839c660f49b2 | [] | no_license | shobhit-saini/IB | e7fb6e93a490fa7053b957fae18c83378afeb57f | 667a0f73c8f3be5702970ad79868cd4bee243eba | refs/heads/master | 2020-09-21T22:55:10.953135 | 2020-08-14T04:52:38 | 2020-08-14T04:52:38 | 224,962,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | Code.cpp | int Solution::maximumGap(const vector<int> &A) {
if(A.size()<2) return 0;
vector<int> B = A;
sort(B.begin(),B.end());
int max = 0;
for(int i=0;i<B.size()-1;i++){
if(B[i+1]-B[i] > max)
max = B[i+1]-B[i];
}
return max;
/*int max = A[0], min = A[0], i, diff, max1 = 0, range, m, n,... |
b8fd9f71998f41dc4b0932e4c4795116456d8feb | 9332971e7b16b989a5faad5f67860e527f3fe006 | /Skeleton/Propeller_Functions_02.ino | ecf5eda08c13bf1647a6f23c74e9d8d91421a416 | [] | no_license | suhearsawho/MAESeniorDesign | 67366ea2c8539a5d7ccbd62bac4a841508f30a8d | e3356656eb6b3362c7169b9beda108abb0a0ea2c | refs/heads/master | 2020-03-18T23:13:43.475433 | 2017-06-18T18:54:30 | 2017-06-18T18:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,916 | ino | Propeller_Functions_02.ino | // declare pin numbers for the propellers
const int PROPELLER_SPEED_FRONT_PIN = 123;
const int PROPELLER_SPEED_BACK_PIN = 23241;
const int PROPELLER_PITCH_FRONT_PIN = 123;
const int PROPELLER_PITCH_BACK_PIN = 123;
const int PROPELLER_ROLL_FRONT_PIN = 123;
const int PROPELLER_ROLL_BACK_PIN = 123;
// declare vari... |
9a1ae784a331727225638446d94f9288fc0d3012 | 5713b91dc763d497d2139e7467a9711df17dd98b | /source/d3d10/d3d10_resource.hpp | eb721fca143cf31505e92b849c6e928e8ed6d160 | [
"BSD-3-Clause",
"MIT"
] | permissive | crosire/reshade | f627a3323debef97ecd02b5d0eeec2a0e0dc32b9 | 9782cea39bcd0d8ae37a38798737f235ce680a5b | refs/heads/main | 2023-09-01T06:50:48.074855 | 2023-08-20T13:09:53 | 2023-08-20T13:09:53 | 61,246,596 | 3,611 | 694 | BSD-3-Clause | 2023-09-14T19:11:04 | 2016-06-15T23:02:16 | C++ | UTF-8 | C++ | false | false | 1,202 | hpp | d3d10_resource.hpp | /*
* Copyright (C) 2022 Patrick Mours
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <d3d10.h>
void STDMETHODCALLTYPE ID3D10Resource_GetDevice(ID3D10Resource *pResource, ID3D10Device **ppDevice);
#if RESHADE_ADDON >= 2
HRESULT STDMETHODCALLTYPE ID3D10Buffer_Map(ID3D10Buffer *pResource, D3D10_M... |
5698534cf17c0f2f4006edf59c90864bc172621e | d682bd933cb9bef4e9f26c7d1478f0dbe783bb0f | /old/modules/airblue/lib/PacketGen/src/PacketOutput/crc.cpp | f8ad6c61ed576ef1f3a7c04c32f5d935af16fb0b | [] | no_license | csail/airblue | 18a353c012180cd359c34f39f54bfcc92102e82a | 91846f4915252cfe7ce111c0e17603dc015fd9a9 | refs/heads/master | 2021-01-01T18:17:10.816504 | 2014-12-03T13:29:32 | 2014-12-03T13:29:32 | 26,228,994 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,520 | cpp | crc.cpp | /* crc32.c
* CRC-32 routine
*
* $Id: crc32.c 30405 2009-10-08 15:10:43Z krj $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Copied from README.developer
*
* This program is free software; you can redistribute it and/or
* modify it under t... |
fbc672478770e761c69fcfcc52f4856f32d7a8cf | dde7d8b61d8740d0590c5714df402eb17cfe6269 | /session1/gdb_test/main.cpp | b4829627f8b31defa1d0b4440687edaea11caac8 | [] | no_license | mir1128/GDBTraining | 93c1847c71a45ad72471d5cff4a7937111dd67a6 | 42986c129d76eda4b64cb20dce3898a489e49c94 | refs/heads/master | 2021-01-10T06:43:02.392046 | 2015-12-26T03:07:23 | 2015-12-26T03:07:23 | 46,181,942 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | main.cpp | #include <stdio.h>
#define ARRSIZE 10
void process_array(int *arr) {
for (int i = 0; i < ARRSIZE; ++i) {
arr[i]++;
}
}
int main(int argc, char **argv) {
int arr[ARRSIZE] = {0};
for(int i = 0; i < ARRSIZE; ++i) {
arr[i] = i;
}
for(int j = 0; j < 10; ++j) {
process_array(arr);
}
return 0;
}
|
20156e015438ada26bba56d8ec40848cb0ebb3c9 | 06ecd7fa808168b5680d255d599404ee3356a697 | /c++/.tmp/calculator.cpp | 076f5fae10affb6cb1d11afa8cfe336802e28bc4 | [] | no_license | deirde/kata | bfbe380b4138c26c1f0aa6375ad61896864a0430 | 81a97302c5559cb0bbc26aa4da5ccdbda18a990b | refs/heads/master | 2022-09-24T02:33:12.818331 | 2022-08-26T08:58:14 | 2022-08-26T08:58:14 | 218,734,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | calculator.cpp | #include <iostream>
int main() {
char array[] = {'C', '+', '+', '1', '1'};
for (auto&i : array) {
printf("%c", i);
}
std::cin.get();
return 0;
} |
e051218783b2896e53a4d490b3be77fee62a220e | 1f9be2d5e42817e39ae2b9ef7ead5883b179b6bd | /GameApp/Tower8.cpp | aaa10a040c48b6f694831b0db2c25d30b45c91e8 | [] | no_license | shreyjindal81/CSE335-Project1 | 827a960cd93e2d2d3cc17478bfd22daf1dd46c1b | 04c3bfb80419b79dadcea5e250ef5b5000edcb9f | refs/heads/master | 2023-04-03T14:48:58.296090 | 2021-04-14T10:21:26 | 2021-04-14T10:21:26 | 357,852,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,274 | cpp | Tower8.cpp | #include "pch.h"
#include "Tower8.h"
#include "TowerDart.h"
#include <cmath>
using namespace std;
/// overriden update function
///\param elapsed time since last call to update
void CTower8::Update(double elapsed)
{
if (mPlaced)
{
mTimeRelease -= elapsed;
double TimeBetweenRelease = 5;
int wid = GetWidth()... |
f83ec7cbdd31922f31a3cab7ee7e1eb0b9dfb6c3 | 0f5d6802ee86515d139a1f233421000b37a6c6be | /tests/kjobtrackerstest.h | d08c70bba41f19218710c4fcf98c30e93f374ea3 | [] | no_license | KDE/kjobwidgets | d23a13c9c9072cbc4393fd853f7095fe810ffbc3 | df6715a911bb1879ef491d7355b7692635ba4d00 | refs/heads/master | 2023-08-19T17:46:42.042335 | 2023-08-03T02:55:28 | 2023-08-03T02:55:28 | 42,717,940 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 894 | h | kjobtrackerstest.h | /*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2007 Kevin Ottens <ervin@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef KJOBTRACKERSTEST_H
#define KJOBTRACKERSTEST_H
#include <KJob>
#include <QTimer>
class KTestJob : public KJob
{
Q_OBJECT
public:
enum State {
... |
822a87580368a67d89b32c5711ea248f6c5f51bd | 1a1cc8eca3fb7899212e8b52c873c876d9402f88 | /EX5/main.cpp | aa9bd975e7cd1cf190905cfbcd3f315c81a6311d | [] | no_license | weiyahsu/example | 1063153bcc4bf3f2925c785b20841d5e86c0dbc7 | e1eb06dd849fe5d7d7a3d5bd66b1370f7e16e4cc | refs/heads/master | 2022-09-14T09:27:04.609201 | 2020-05-31T18:42:20 | 2020-05-31T18:42:20 | 268,341,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | main.cpp | #include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int a[11];
int b[9];
int c[9];
int d[9];
int e[20];
for(int i=0;i<12;i++){
cin>>a[i];
}
for(int i=0;i<10;i++){
b[i]... |
08bcc1cab6affeecb68ac61ebb1f02d3dd34f55b | e097ca136d17ff092e89b3b54214ec09f347604f | /src/amtrs/.old/ios/sound-device.hpp | 6b81f55fce76e759e8b40435c9a4518e08e3f768 | [
"BSD-2-Clause"
] | permissive | isaponsoft/libamtrs | 1c02063c06613cc43091d5341c132b45d3051ee0 | 0c5d4ebe7e0f23d260bf091a4ab73ab9809daa50 | refs/heads/master | 2023-01-14T16:48:23.908727 | 2022-12-28T02:27:46 | 2022-12-28T02:27:46 | 189,788,925 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,625 | hpp | sound-device.hpp | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__sound__sound_device_ios__hpp
#define __libamtrs__sound__sound_device_ios__hpp
#inc... |
d41f13d2dc78965c0d8b290317ac3db088ee6601 | e56bf2c4b199e4a88e5894f71b191db3cccd62d1 | /include/util/compress/bzip2.h | 4b19ff2d1f626c155b25774b0a0e2038a90c6250 | [
"Apache-2.0"
] | permissive | seshucalypso/crawler_cpp | 5155fa4f23913647618dff678f1856b33d9cf1ae | e0c8dba77233005b1ab13731d1cbcce274b70778 | refs/heads/master | 2021-06-14T20:24:50.112279 | 2017-04-06T07:45:13 | 2017-04-06T07:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | h | bzip2.h | /**
* @Copyright 2011 Ganji Inc.
* @file ganji/util/compress/bzip2.h
* @namespace ganji::util::compress
* @version 1.0
* @author lisizhong
* @date 2012-05-16
*
* 改动程序后, 请使用tools/cpplint/cpplint.py 检查代码是否符合编码规范!
* 遵循的编码规范请参考: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
* Change Log:
... |
0dea27ea358021e37ce3be088f55e221817384e2 | 454e8708108cf6e2f4d6b0f711573b5473748a26 | /DrawingUtilNG.h | e606ddb83dc83ded4636bdcc613cd16941eae52d | [] | no_license | yymmaa0000/Airline_Flight_Visualization_Group_Project | 0f291326084eed6385f26ead13b49c1341bd1277 | 872f632a1c15ad6d13b5fc8171e1654811ae5ea3 | refs/heads/master | 2020-06-19T00:18:50.189033 | 2019-07-12T03:48:36 | 2019-07-12T03:48:36 | 196,502,525 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 849 | h | DrawingUtilNG.h | #pragma once
#include <string>
namespace DrawingUtilNG {
const double PI = 3.141592653589793;
// draws common shapes, filled in or not
void drawCircle(double centerX, double centerY, double rad, bool fill);
void drawRect(double x1, double y1, double x2, double y2, bool fill);
//converts a color model fr... |
856789ba9236e4bb03e7aa373da888e0d410936d | 73df58bb1c256e35465787c24135f85156694532 | /Engine/Source/Runtime/Slate/Private/Widgets/SViewport.cpp | 95fca0abda075ca5a42eae76b31f79a9f8fbd15b | [] | no_license | igchesnok/AHRUnrealEngine | 9c003bf9988d58ece42be4af030ec6ec092cd12e | d300f83087a2d790f5bd9571dad441c67b2776b6 | refs/heads/master | 2021-01-18T17:49:35.497706 | 2014-10-09T22:32:35 | 2014-10-09T22:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,522 | cpp | SViewport.cpp | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "SlatePrivatePCH.h"
/* SViewport structors
*****************************************************************************/
SViewport::SViewport( )
: ViewportInterface(nullptr)
, bRenderDirectlyToWindow(false)
, bEnableGammaCorrection(true)
{ }... |
6fe4dcb6f7d2957e4ca25d42e051eb08f8b80d40 | d504d1bf27fd2825e439762d3254e4c202497b3c | /candycrush/windowend.cpp | 0d32eb816b26d52e37a838cd75a2145495541693 | [] | no_license | jeffwang0516/CandyCrush-qt | e05f29817bf9a7f5690e008ce94e7abdcdc81062 | 27c2dedb312b546b7cfbd16f98bb4a19068c605c | refs/heads/master | 2021-01-20T11:23:11.238218 | 2015-06-28T15:53:00 | 2015-06-28T15:53:00 | 37,720,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | windowend.cpp | #include "windowend.h"
#include "ui_windowend.h"
windowEnd::windowEnd(int stars, int points, QWidget *parent) :
QDialog(parent),
ui(new Ui::windowEnd),star(stars),point(points)
{
ui->setupUi(this);
if(point>=4000)
ui->label->setText("ACHIEVED");
ui->label_2->setText("SCORE:"+QString::number... |
267221feb3e69bf3c43d428f793da75c14189b50 | cf43f47adbe14d8886d0cca7cafd0d9f66e5b9dc | /44.cc | 6b7434ea12a56277a1b6b7c961fa0ab376fe2e83 | [] | no_license | schildmeijer/project-euler | d3db80ab3b8d1d969feafed5fb02464538ada0c9 | 881e5542db8d4e9702c80fae21eee4cc3e06fffb | refs/heads/master | 2021-01-01T06:33:59.499913 | 2010-02-20T08:20:42 | 2010-02-20T08:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cc | 44.cc | #include <iostream>
#include <vector>
#include <NTL/ZZ.h>
#include <sstream>
#include <math.h>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <map>
#include <set>
#include <bitset>
#include <utility> //for std::make_pair
#include <boost/lambda/lambda.hpp>
#include <boost/foreach.hpp>
#include <boo... |
2f20d917eafacb826438f528b917745813371e11 | 24b5ac1744c2c8e9b5ead545347adbd07d3e7b98 | /magnets.cpp | 4803252fa28e7f8f377ceb04b19f487c45b41b1c | [] | no_license | Jagadish-prasad-mohanty/codeforce-800 | 6b5bcd722a997c7ecc7257b4f84900dd344dc13f | 9b13bc0914cdeaef92bde132bf85105e89db7f35 | refs/heads/master | 2023-04-25T16:30:01.710856 | 2021-05-20T05:59:14 | 2021-05-20T05:59:14 | 369,095,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | magnets.cpp | #include "iostream"
#include "string"
using namespace std;
int main(){
// int n,c1=0,c2=0,res=0;
int n,res=0;
string in,prev="00";
cin>>n;
for(int i=0;i<n;i++){
prev=in;
cin>>in;
if(in!=prev){
prev=in;
res+=1;
}
}
cout<<res;
... |
ccca04fb23cf58a8746371eb62ecedad3289fb24 | dd52ec42a528dfe3f8e42cea014ef4a79c18dcab | /Codeforces/373/373D.cpp | 089f4f515390b5a4a1034baf3cc0ee13a183828d | [] | no_license | sKAR04/CP-Practice | abdc16c5348ec582307580b9f43c10d94079f4ef | 6655b6e9d40b970224fad982d8602e9f57e87133 | refs/heads/master | 2021-04-15T14:31:53.471126 | 2019-05-21T08:39:04 | 2019-05-21T08:39:04 | 126,747,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,607 | cpp | 373D.cpp | /*
#####################################################
# I will win.. maybe not immediately but definitely #
#####################################################
*/
#include <bits/stdc++.h>
using namespace std;
//Optimizations
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC ta... |
9a6b12422109cea2309555e61646769c1d8b2eea | 0bd03832d17887a4a142dcfead0dad847b3da453 | /Primitive.hpp | 1b7e47a43e3ae1e449eae4c67ad13fbd2962f4df | [] | no_license | Frostlag/RayTracer | 12d5b11dc65a0a70ee388976dd69f5c503ab3bcf | 2ee50176bc419f5387ee0234b92a493076bd0558 | refs/heads/master | 2021-01-10T17:22:34.325918 | 2015-12-07T20:52:46 | 2015-12-07T20:52:46 | 49,241,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,828 | hpp | Primitive.hpp | #pragma once
#include <glm/glm.hpp>
#include <functional>
#include "Collision.hpp"
#include "Texture.hpp"
class SceneNode;
class Primitive {
protected:
Primitive();
Texture *texture;
public:
virtual PrimitiveCollisions Collide( glm::vec4 E,glm::vec4 P, glm::mat4 M) = 0;
virtual std::pair<glm::vec4,glm::vec4>... |
d58673ff93423b4aae03c2659e4a6dd6933d18f7 | fe02bb98f1ef8199bef6a693cc523b740a7b6af4 | /upg6.cpp | 5702f9c30e818c18b677a59774f2ce63ee3cfbfe | [] | no_license | wgustavsson1/lektion4 | d395d72db088d444d963fc40c682d56108c73ef7 | bfcc5158dcfcf744568adcce827cee669a9f51b8 | refs/heads/master | 2021-05-07T06:06:46.378878 | 2017-11-22T20:42:50 | 2017-11-22T20:42:50 | 111,726,061 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | upg6.cpp | #include <iostream>
#include <map>
using namespace std;
int main()
{
map<string,int> my_map;
my_map["kaffe"] = 2;
my_map["kaffe"] = 536;
cout << my_map["kaffe"] << endl;
} |
b6390e6c8bdde3bb8ee96ec0db2069908e85f5d7 | 7a73beaaf4002ff7331d56faeb67937d462b5874 | /Satellite.cpp | e10357f3280836f70d2a176ed7ca7b02e0a4190e | [] | no_license | shvthr/ComputerGraphics | 6b244c25600cc4883a2cd44494ddafca6a1e9cfc | 6245fe1275ddedb93618daf25f6dc133ffbbb988 | refs/heads/master | 2021-01-01T04:11:24.050082 | 2016-05-14T22:43:30 | 2016-05-14T22:43:30 | 58,833,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,720 | cpp | Satellite.cpp | #include "Satellite.h"
void Satellite::init(Draw _myDrawer)
{
myDrawer = _myDrawer;
satelliteBackParts.init(_myDrawer);
satelliteMiddleParts.init(_myDrawer);
satelliteRotationSpeed = 0.01;
}
void Satellite::drawParts()
{
glPushMatrix();
glColor3f(0.7f,0.7f,0.7f);
glTranslatef(0.0f,0... |
edc84b1616f0aec215ae67edbcd916fe4d935cf3 | 2293801ef5ce447058b63ab0feaef1c0a06d65a0 | /Project/src/Game.cpp | d768d10340cd4b891aea115513890a835a640ac9 | [] | no_license | MuhammadUsaid/GameProject | dcc46f0a9c5e4dff88c87e22b5845bb6dc105251 | e4b0c68745eb1911f1071f26dc830975de4f67d4 | refs/heads/master | 2020-04-07T19:18:08.366304 | 2018-12-02T14:28:26 | 2018-12-02T14:28:26 | 158,643,055 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,719 | cpp | Game.cpp | #include "Game.h"
#include <SDL2/SDL_image.h>
SDL_Renderer* Game::renderer = nullptr;
//Screen* Game::currentScreen = nullptr;
/** Setting the width and height **/
int Game::width = 1024;
int Game::height = 768;
Game::Game()
{
Init();
}
/****Method To Initialize Everything and show error if something fails****/... |
8d17fb689290b2a9a9cdfe09a2f608d170106268 | d54f5fa86363fd99e91769aafdbe1b4e173b7f1d | /src/graph/minimum_spanning_tree/prim.cpp | c1392b1ec9a287c2e3ab8aa8dcfe49beae82b79a | [] | no_license | mzsrkeen10/cplibrary | 0adba8ed8a17767c0d5309609700006b493b4f95 | 2781115e85303f3eec4959940b95ee55825eda59 | refs/heads/master | 2022-04-06T10:50:38.729457 | 2020-03-01T15:39:03 | 2020-03-01T15:39:03 | 103,259,646 | 0 | 1 | null | 2018-07-05T08:47:27 | 2017-09-12T11:01:56 | C++ | UTF-8 | C++ | false | false | 1,049 | cpp | prim.cpp | /*
最小全域木(prim法)
時間計算量 O(|E|log|V|)
MAX_V : 頂点数の最大値
Usage:
cost[MAX_V][MAX_V]に各辺のコストを格納
Vに頂点数を格納
used[MAX_V]は初期化不要
*/
#include <algorithm>
#include <functional>
#include <queue>
#include <utility>
#define MAX_V 10000
#define INF 1e9
typedef std::pair<int, int> pii; // <cost, ... |
0f8082b5e81394aa9616be09269a698c178ed109 | e51589c8d07081dfdcf1331f0cc0102f1d4f7c62 | /xx.h | 0d0e6a0ffdf69f183af97204d3998d6a996f7b72 | [
"MIT"
] | permissive | catroo/Zephir-CPP | 65d5fe09172cdcf9075cb690c3b9b32b2f7e507c | ddaef0d56b2340d47df50fbae4fa5557907f4a46 | refs/heads/master | 2021-01-18T16:34:40.939030 | 2014-09-25T02:35:42 | 2014-09-25T02:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | h | xx.h |
/*
+--------------------------------------------------------------------------+
| Zephir Language |
+--------------------------------------------------------------------------+
| Copyright (c) 2013-2014 Zephir Team and contributors |
+--... |
11424138fa1e598271c8efbeb2b79c0b99abc1c8 | 6ceed0846869d1a33b40482ea34c18b2c8016571 | /Src/Token.cpp | 182e78c6d84ae1f3df2c6551d7fb47e0e8e58c98 | [
"MIT"
] | permissive | LiChenda/Slessc | 6991b9ec8c569c4ac6b77fb96f5abde1ec68f8aa | f81480651a355407548e874d959dc18ebe579e3d | refs/heads/master | 2016-08-12T18:34:44.600191 | 2015-10-25T14:55:43 | 2015-10-25T14:55:43 | 44,679,210 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | cpp | Token.cpp | #include "Token.h"
using namespace std;
Token::Token() : m_type(OTHER)
{
}
Token::Token(const string &s, Type t) : m_type(t), lexeme(s)
{
}
Token::~Token(){} |
9240f90dfe51b17f320a165072edd640537111af | ca98685f0731a88953dd16f59a977f0ec6a8822a | /src/vlcplayer/glvlcplayer.cpp | 4c4434e058df90d99a88a14a90dd1845737e8014 | [] | no_license | damarbo33/MinimalUI | 2ff15492f1e93acb52b2dfc96c7cd8424b7d7235 | bef959866b68af7573b28abbd3ca6b8c5a720563 | refs/heads/master | 2022-11-07T17:38:08.468750 | 2022-10-27T09:32:33 | 2022-10-27T09:32:33 | 22,223,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,322 | cpp | glvlcplayer.cpp | #include "glvlcplayer.h"
GLVlcPlayer::GLVlcPlayer()
{
//ctor
}
GLVlcPlayer::~GLVlcPlayer()
{
//dtor
}
/*
Modified for openGL
Draws a video to a opengl rect on a SDL surface
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <SDL/... |
4becdd7ac4568d994278de99b136c3951e2f1a32 | 8d39f1699943fa4b540f287557276329b69c7652 | /common/rtkHndImageIO.h | f88e11e9d5936ff41e7b2dfcd8d88414f1e029d5 | [
"BSD-3-Clause",
"CECILL-B",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-cecill-b-en"
] | permissive | open-vv/vv | fdb42c1ba2bb70f5805cb3680b7bd2b5208d287f | 7d8043a8fb86bb58d510ad39da2b71d50109dd5f | refs/heads/master | 2023-06-07T18:26:50.369254 | 2022-10-26T14:59:09 | 2022-10-26T14:59:09 | 78,436,753 | 56 | 20 | NOASSERTION | 2023-05-03T12:14:22 | 2017-01-09T14:36:33 | C++ | UTF-8 | C++ | false | false | 3,924 | h | rtkHndImageIO.h | /*=========================================================================
*
* Copyright RTK Consortium
*
* 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.apa... |
bf663c4f5327c653b0f7cf7b256e7a0f1a435123 | b8f9b0241aea5d1e87d43cfd14a6a2fa0077a2e2 | /src/my_echo/echo.cpp | bc65aaf33d4f063671035877472133656040fa2d | [] | no_license | wordhardqi/muduo_practice | 002f735025ec0fdf53473e812c441fd561847df2 | 29904edbb4c4903a4bf28d0b6a27be935f8c6de8 | refs/heads/master | 2020-03-21T07:07:00.300640 | 2018-06-22T06:01:59 | 2018-06-22T06:01:59 | 138,261,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,189 | cpp | echo.cpp | //
// Created by renming on 6/3/18.
//
#include "echo.h"
#include <muduo/base/Logging.h>
using std::placeholders::_1;
using std::placeholders::_2;
using std::placeholders::_3;
SudokuSolver::SudokuSolver(
muduo::net::EventLoop *loop,
const muduo::net::InetAddress &listenAddr)
: loop_(loop), server_(loop, l... |
ee8415b07cbcd8748a081bbb7f9e039011795a7c | 009ab8d0c1ace43cd7b7c0783aabe43a384d8fbf | /Application/source/meta/M3U.cpp | 806c1327e4019734d451109d9aa2bc39962843fd | [
"MIT"
] | permissive | RoutineFree/TriPlayer | 89abc4044ece99876fbc4dd03e2df4128b61e3b2 | 4e5ee19c992eba033b57444b7f4b312acf339163 | refs/heads/master | 2023-01-28T09:20:23.500344 | 2020-11-27T02:45:23 | 2020-11-27T02:45:23 | 316,519,579 | 0 | 0 | MIT | 2020-11-27T14:13:13 | 2020-11-27T14:13:13 | null | UTF-8 | C++ | false | false | 3,480 | cpp | M3U.cpp | #include <fstream>
#include "Log.hpp"
#include "meta/M3U.hpp"
#include "utils/FS.hpp"
namespace Metadata::M3U {
bool parseFile(const std::string & path, Playlist & playlist) {
// Open file and check if stream is ok
std::ifstream stream(path);
if (!stream.good()) {
Log::writeErro... |
320e920e8a2d45a43b0ff108f20f96ec0a595ae4 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Kernel/FileSystem/SysFS/Subsystems/DeviceIdentifiers/DeviceComponent.cpp | 05cd3b71fdb915cba2e3d476a2421278afb9a493 | [
"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 | 968 | cpp | DeviceComponent.cpp | /*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Devices/Device.h>
#include <Kernel/FileSystem/SysFS/Subsystems/DeviceIdentifiers/DeviceComponent.h>
#include <Kernel/Sections.h>
namespace Kernel {
NonnullRefPtr<SysFSDeviceComponent> SysFSDevic... |
527c866ace2bacfac16ae446da82a41aa94c4a36 | 69b3cc8e9896c3b8ac831767e5872f41d2de758c | /.history/no199_20200422161735.cpp | 57529f792d9b6c82756cda65d820c5cc060f0fda | [] | no_license | enkilee/leetcode | c4d9c906dba590d32e13f8feca167da1b52b9372 | c523cab721d51931633da0a29b162319c8569017 | refs/heads/master | 2023-01-08T19:33:52.309972 | 2020-11-16T12:34:23 | 2020-11-16T12:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | no199_20200422161735.cpp | /*
* @Author: your name
* @Date: 2020-04-22 16:14:24
* @LastEditTime: 2020-04-22 16:17:34
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \leecode\no199.cpp
*/
#include <iostream>
#include <cmath>
#include <vector>
#include <stack>
#include <map>
#include <algorithm>
usi... |
a369226141701cd487ff2e31c565abba4a496cad | 0c83ee408db7b21debbb9f02065f139397b15db2 | /src/CacheAligned.h | 32ef68d8280f6124531bbd4081f19bbbb38c6b1c | [
"BSL-1.0"
] | permissive | yangkehong/EbbRT | d511323c9483050c6f24d196e4950528a801cc16 | cc15c2545b0e003d91e946f0f2ffffe5f6b1bff0 | refs/heads/master | 2020-06-19T19:49:39.526394 | 2019-04-29T18:37:04 | 2019-06-25T22:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | h | CacheAligned.h | // Copyright Boston University SESA Group 2013 - 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef COMMON_SRC_INCLUDE_EBBRT_CACHEALIGNED_H_
#define COMMON_SRC_INCLUDE_EBBRT_CACHEA... |
9c6ecba0cfe60ba0888c3fdf2b276048aee5d44c | 89f91ac3de03a78a7158bfa87b0d4d84a3c47109 | /341.cpp | 35e714606b298b7c32fd3d1b419256ea7501a873 | [] | no_license | xyuanlu/Cultivation | 65a8b098f407443aa35b2fe6d5d77419a1ab0e73 | 9a2dadc56ec17d5af1c780e9224936f1afa86786 | refs/heads/master | 2021-07-06T08:07:11.071012 | 2020-11-08T23:55:46 | 2020-11-08T23:55:46 | 201,869,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,806 | cpp | 341.cpp | /*
341. Flatten Nested List Iterator
Given a nested list of integers, implement an iterator to flatten it.
Each element is either an integer, or a list -- whose elements may also be integers or other lists.
Example 1:
Input: [[1,1],2,[1,1]]
Output: [1,1,2,1,1]
Explanation: By calling next repeatedly unt... |
ec452a67a3619a0e5b802e97acb4fc51e0940701 | 02e95ce001da5b888ff925d919ff27e337d88065 | /BrickGame/NBrick.cpp | 0abe7037c6e0b219d0d57353afe882cb0b9183df | [] | no_license | harukishima/BrickGame-SFML | 464239dec69371d0706d108adc6a60fdc2ff86a7 | a2cd28610434c00e6cd7f515c059a4e9f41ee81e | refs/heads/master | 2020-09-21T04:20:59.565833 | 2019-12-15T14:03:27 | 2019-12-15T14:03:27 | 224,676,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | NBrick.cpp | #include "NBrick.h"
NBrick::NBrick()
{
hpBar = HP = 1;
score = 1;
setFillColor(sf::Color::Green);
brickTex[0].loadFromFile("resource\\03-Breakout-Tiles.png");
brickTex[1].loadFromFile("resource\\04-Breakout-Tiles.png");
setTexture(brickTex);
}
|
81ba1a57f662a37caf6c001244d94c45ee03df4b | bedf80d61f905bae39387e531f5c69f67ab8960d | /strings/rotate.cpp | 30e54b067e93f81c3b85b89bff617757d276eee9 | [] | no_license | Rahul-D78/Interview-prep | 79711df7516b3d2b07545b80e06fe77e48b46834 | be1ef712fcf7bf79dd142b82dc136012dd49b2dd | refs/heads/master | 2023-07-16T06:23:21.520201 | 2021-08-25T16:49:01 | 2021-08-25T16:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | rotate.cpp | #include <iostream>
using namespace std;
void rotate(char *a, int k) {
int i = strlen(a);
while(i >= 0) {
a[i+k] = a[i];
i--;
}
i = strlen(a);
int s = 0;
int j = i-k;
while(j<i) {
a[s] = a[j];
j++;
s++;
}
a[i-k] = '\0';
}
int main() {
char a[100] = "hello";
int k;
cin>>k;
rotate(a, k);
cout<<a... |
ea42477b262902d3806442b2b7180054f74695e7 | d7085a2924fb839285146f88518c69c567e77968 | /KS/SRC/files_misfits.cpp | 23daa0df63c447b892a344654be44b65ac787df0 | [] | no_license | historicalsource/kelly-slaters-pro-surfer | 540f8f39c07e881e9ecebc764954c3579903ad85 | 7c3ade041cc03409a3114ce3ba4a70053c6e4e3b | refs/heads/main | 2023-07-04T09:34:09.267099 | 2021-07-29T19:35:13 | 2021-07-29T19:35:13 | 390,831,183 | 40 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | files_misfits.cpp | // misfit files that refuse to behave in other files_*.cpp files
// With precompiled headers enabled, all text up to and including
// the following line are ignored by the compiler (dc 01/18/02)
#include "global.h"
#include "conglom.cpp"
#include "blur.cpp"
//#include "spiderman_combo_data.cpp"
#include "en... |
72b108564603a9a2a778a1547155ccf87cc3ff10 | 4e6be1627949e2282d5a9ceea45b737ff824ac38 | /DrawingMarkerlessAR/markerlessar.h | bc0d5363bf88c4a2ef426959fe058e6df75b0088 | [] | no_license | pratheba/HandDetection | 111b069f0a2921c6dc2629b3aa1a5821370b63d5 | dcfe72fdbb2a079e920dcf1a886a12d2939ca088 | refs/heads/master | 2021-01-17T15:23:40.654508 | 2016-04-09T04:12:18 | 2016-04-09T04:12:18 | 17,654,003 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | h | markerlessar.h | #ifndef MARKERLESSAR_H
#define MARKERLESSAR_H
/*****************************************************************************
* Markerless AR desktop application.
******************************************************************************
* by Khvedchenia Ievgen, 5th Dec 2012
* http://computer-vision-talks.... |
c8db9027ea4d81b70292f37fabb6a58f5b2ae420 | 7bb393be8958a374f55de42b64b736c1a43d15ce | /HotelApp/Vaerelse.cpp | 4de554a56f43bfcddfeb349acefae4a3d7426dae | [] | no_license | Frederiknoer/Hotel | 98dfac03c74300a614c343b9a2c90e86922d9a2e | fb292c693f085061328fcc5bc0db9265acd241bb | refs/heads/master | 2020-06-13T07:15:20.910612 | 2016-12-03T09:21:32 | 2016-12-03T09:21:32 | 75,414,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82 | cpp | Vaerelse.cpp | //
// Created by Alexander Dupond Larsen on 02/12/2016.
//
#include "Vaerelse.h"
|
c931185de265f301ea3465e369b3eacc9c9d2624 | 1fea014ccd454c7235b51f9287bc8d076a4bddca | /archives/CF#725/B.cpp | f7a1d0f20252820d0302474ddaba328eb6ebd80a | [] | no_license | hadron43/codeforces | baaebf8eeccf1a86b46fb304682cc81209ea3026 | 79bcf2ecbc05bb8d878da704eaa416616d41361e | refs/heads/master | 2023-05-27T01:44:56.121985 | 2021-06-11T15:15:03 | 2021-06-11T15:15:03 | 330,699,669 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | B.cpp | /*
* @hadron43, Expert soon
* Good luck!
*/
#include <bits/stdc++.h>
using namespace std;
#define modulo (int)(1e9 + 7)
#define maxsize (int)(2e5)
typedef long long ll;
vector<ll> arr;
// map<ll, ll> m;
ll T, n, in;
void solve() {
arr.resize(n);
for(ll &x : arr)
cin>>x;
ll sum = 0;
for(ll ... |
8ad265c86cbd69e9fffba8d75a375bbc14f812e7 | 495175179bbddaf76848546213d85b2fa4469197 | /src/template5.cpp | 776f98adeebed43acefa2e4d50e7c0d62a187c28 | [] | no_license | KwonSunwon/Goorm | f80bd41e5a19f1cbcc13c53aaacb2dca960e07c3 | 917a8636818963601a4d186dda56553ee31ccc3e | refs/heads/master | 2023-06-05T16:47:55.965956 | 2021-06-27T14:34:30 | 2021-06-27T14:34:30 | 291,696,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | template5.cpp | #include <iostream>
template<class T>
class Form{
T* _t;
public:
Form(T* t) : _t(t) {}
void print(){
std::cout << *_t << std::endl;
}
};
template <>
class Form<char*>{
char* _t;
public:
Form(char* t) : _t(t) {}
void print(){
std::cout << "Form<char *> : " << _t << std::end... |
ff7bf24456da66abff5baa0415c204c0695e3201 | bc17b47315bf09081b0aefcf46d5113c31f24a33 | /10611.cpp | cf46fbbaeb33d9e5faba4c5334373c5df2b54f53 | [] | no_license | IshanX111/UVA_Problem_Solution | ece9b4d45c56c613bd8b786424060d183946b7bf | 9f4e15e1210400d62192915e476c8741ecbce1da | refs/heads/master | 2023-05-12T08:27:34.384826 | 2023-05-01T18:28:25 | 2023-05-01T18:28:25 | 231,390,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | cpp | 10611.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,i,t,high,mid,low,key,index;
cin>>n;
int a[n];
for(i=0;i<n;i++){
cin>>a[i];
}
cin>>t;
for(i=1;i<=t;i++){
low=0;
high=n-1;
cin>>key;
while(low<=high){
mid=(... |
84216855ef0059188079bc3709816b96901ac3c1 | a457632c2c967e3a398926ecb9a241376a6e7bd6 | /includes/Match.hpp | 8d48cebc6ba154a4b3d9deb9c70c5fb818c8ec4c | [] | no_license | the-only-ahmed/TournementManager | 8f48f1877453891977cebccb4ec8c1a1d45628d8 | 420355a6c05784442cde5b2c5623e8debc4bbf60 | refs/heads/master | 2021-01-20T20:24:02.079468 | 2016-05-30T18:50:32 | 2016-05-30T18:50:32 | 59,941,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | hpp | Match.hpp | #ifndef MATCH_HPP
#define MATCH_HPP
#include "Referee.hpp"
#include "Team.hpp"
#include <stdexcept>
#include <string>
class Match
{
private:
int id;
static int _count;
Referee _ref;
Team _teams[2];
int _score[2];
public:
Match(Referee const& ref);
void setReferee(Referee const& ref);
void ... |
06690fd5700d01461f1da5c19212eb0ac5ea8772 | 8c0d41b4583db082efbec358e0fb8794a05a78a8 | /Anaheim/Class/Tetris/View/TetrisDrawAPI.cpp | 769259fea1661befaba23c6f78cdbaaab8b8ed18 | [] | no_license | y-tsutsu/cli-gundam | 743298030db826b1def9139e2adee63be08dbd7b | 7a00d46dfbce025125f12ef354db5ecc16d54b06 | refs/heads/master | 2021-06-03T15:51:52.739949 | 2018-03-15T15:46:26 | 2018-03-15T15:46:26 | 2,788,986 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,660 | cpp | TetrisDrawAPI.cpp | #include "StdAfx.h"
#include "TetrisDrawAPI.h"
using namespace Anaheim;
using namespace Anaheim::Tetris::View;
/**
* テトリス描画API
*/
GraphicsTetrisDrawAPI::GraphicsTetrisDrawAPI(Control ^canvas)
{
this->canvas = canvas;
this->canvas->Resize += gcnew System::EventHandler(this, &GraphicsTetrisDrawAPI::CanvasResize);
... |
2c69fd7c3bbbccc6b4082e0de2919fc341abe166 | ef268924e126f127eadbc82a709acfdaeb505925 | /0169. Majority Element/169.cpp | f15684f7bf0c0808f42f277d0567caba3793db0c | [] | no_license | HappyStorm/LeetCode-OJ | e7dec57156b67886cbb57dc6401b2164eaed7476 | 8e742bc66a70900bbb7bc0bd740cec6092577a6a | refs/heads/master | 2022-08-30T11:40:57.658447 | 2022-08-09T16:59:49 | 2022-08-09T16:59:49 | 55,757,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | 169.cpp | class Solution {
public:
int majorityElement(vector<int>& nums) {
std::map<int, int> map;
std::map<int, int>::iterator itr;
for(int i=0; i<nums.size(); ++i){
itr = map.find(nums[i]);
if(itr==map.end())
map.insert(std::pair<int, int>(nums[i], 1));
... |
691116959a41e875f4c55bb5febea35d50cde079 | 7a8c8b10775a4b66a37102deb2032f9981c037ca | /CCC-2020/C++/S3.cpp | 9054e8fdcd1b95b050701626fc5df592ce0ddc53 | [] | no_license | Redennison/CCC-Solutions | 561b42d8fc1b078122c4d6bdb03b2b3353412760 | 71cfed60cc5c73e5d43df1adb3a5d708d6477f66 | refs/heads/main | 2023-08-21T05:09:40.175297 | 2021-10-28T06:29:17 | 2021-10-28T06:29:17 | 332,830,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | cpp | S3.cpp | #include <bits/stdc++.h>
using namespace std;
bool isPermutation(map<char,int> fNeedle, map<char,int> fHaystack) {
for (int i=0;i<26;i++) {
char letter = 'a'+i;
if (fNeedle[letter] != fHaystack[letter]) {
return false;
}
}
return true;
}
int main() {
ios_base::sync... |
c527ed460ced8b3ec12d2390817e50d9ef2d605c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2755486_0/C++/Psyduck43/test.cpp | dde401deb47b37da90a223ded1ecdff2eb7169e1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,512 | cpp | test.cpp | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#... |
4c0a7516751f75ffcfd4a6adcf42f8e63d477797 | 1d47f5c5a390852f15b9c462d8b84e2d9206bec8 | /include/AI/FuzzyLogic/GUI/ImGuiFuzzySystemGui.hpp | 974b723ed799c0b1d27b868a42a5e8410b4baa93 | [
"MIT"
] | permissive | Renardjojo/FuzzyLogic | b3ba29d7d983badfc2fc6b1bb70eafb7e1360ee8 | f00b37015f48e37331e668fb230d3652166417da | refs/heads/master | 2023-02-13T09:57:54.658996 | 2021-01-15T17:22:20 | 2021-01-15T17:22:20 | 326,728,765 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,413 | hpp | ImGuiFuzzySystemGui.hpp | /*
* Project : FuzzyLogic
* Editing by Six Jonathan
* Date : 2021-01-11 - 20 h 08
*
* Copyright (C) 2021 Six Jonathan
* This file is subject to the license terms in the LICENSE file
* found in the top-level directory of this distribution.
*/
#pragma once
#include "imgui.h"
#include "implot_internal.h"
#inclu... |
4f3d05804a2fa544ba86ea5397fc775bd2908fe2 | 8aa94b529a862c76fb1d0cbc1458007be23b82f5 | /menu.cpp | 2a4589c032610e2c2d7c1e606210d4c9136eb8b0 | [] | no_license | vsevolodkudla/BlindRunner | 6c24415f763ea24d3bf1193d9552bc30ec00f558 | a559b2f30f1cd774b019838dbfe54037ba5afe4b | refs/heads/master | 2020-12-25T13:34:17.344035 | 2016-06-05T03:11:20 | 2016-06-05T03:11:20 | 60,363,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,289 | cpp | menu.cpp | #include "menu.h"
Menu::Menu(): _timeGrom(12)
{
_device = alcOpenDevice(NULL);
_context = alcCreateContext(_device, NULL);
alcMakeContextCurrent(_context);
}
void Menu::BeginGame()
{
_gameTime.start();
Music("Music/MainBackground.wav", 3, _music);
_gameStage = 2;
Say("Voice/Hello.wav", 0... |
f65ad367bc829a3a9aeccf548767743b6a5a9099 | 72bec3a77a63769dfc88b332831b4b1b62190af9 | /BOJ/2166_다각형의면적.cpp | 4a88849fd3ab6d034bbec447f8d7ebc0be1c4694 | [] | no_license | tghyyhjuujki/ProblemSolving | 5b80c61c8b6387b6f542a4588d29e999687e7916 | cf807d17d64a03f5ba7694b6da86030c31896193 | refs/heads/master | 2023-02-17T00:41:03.822648 | 2021-01-16T19:25:09 | 2021-01-16T19:25:09 | 315,848,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | 2166_다각형의면적.cpp | #include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int N;
double ret;
pair<long long, long long> ary[10001];
double get_size(int a, int b, int c) {
return (double)(ary[a].first * ary[b].second - ary[b].first * ary[a].second +
ary[b].first * ary[c].second - ary[c].first * ary[b].second + ... |
ce83b19be9fc9c703255ac2426deee8511652df3 | 63afb3f63fe37ab55928b261d98cbc03ccdaf1e8 | /engine/XEffeEngine/XInputEventBuff.cpp | f5fa43e920c34cfcc2f28d747cd630e11d2f1171 | [] | no_license | xiajiaonly/XEffect2D | 4b1b0964e62196aa2479a5365b2f5f9ae2130cb6 | f3b864058ac80867070a4e65364171fb3f1ccc37 | refs/heads/master | 2021-01-19T17:42:49.547580 | 2019-03-27T04:13:14 | 2019-03-27T04:13:14 | 12,339,767 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | cpp | XInputEventBuff.cpp | #include "XStdHead.h"
#include "XInputEventBuff.h"
namespace XE{
int XInputEventBuff::getEventProcIndex(const XEventBase *proc)
{
for(std::vector<XEventBase *>::iterator it = m_eventProcs.begin();it != m_eventProcs.end();++ it)
{
if(*it == proc) return it - m_eventProcs.begin();
}
return -1;
}
bool XIn... |
680d11d6582fb8105e60e752d6b18f379c26e44e | 3baf8b6b4d6295d8e2335f706cf9f5f1041de0cb | /src/tree/binary_tree/flatten_binary_tree_to_linked_list/solution.h | 9040148c42c6be77492f47b88e6a8c09e7ed3f5c | [] | no_license | huntinux/leetcode | 710225b935232b5bed388bb1a5a74d0e7eb8628c | 9c676364a4ba4a56035e0f4bc18fe2e18a8db9a6 | refs/heads/master | 2023-03-05T06:35:34.078539 | 2023-02-28T15:29:56 | 2023-02-28T15:29:56 | 48,361,845 | 0 | 0 | null | 2021-04-23T15:08:04 | 2015-12-21T09:06:31 | C | UTF-8 | C++ | false | false | 841 | h | solution.h | #pragma once
#include <vector>
#include "src/tree/binary_tree/common/binary_tree.h"
/*
Given the root of a binary tree, flatten the tree into a "linked list":
The "linked list" should use the same TreeNode class where the right child
pointer points to the next node in the list and the left child pointer is always
nu... |
352dfe29e599669a894a626588f502a4937aaffc | f2ee0909c84a3ee64a21be8118e252602f945808 | /POJ/1325/11050230_AC_16MS_752K.cc | 93c84641139a9734e2bcfc2ddec48117da9678a4 | [] | no_license | zhsl/OJSolutions | 498d5ec8f5101f7848b72a78b7188ef8d177b38f | c6a390bf839105b39dfb33194604841197e58472 | refs/heads/master | 2021-01-12T09:29:59.063957 | 2017-03-19T07:06:54 | 2017-03-19T07:06:54 | 76,168,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cc | 11050230_AC_16MS_752K.cc | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define LL long long
#define Max(a,b) ((a)>(b)?(a):(b))
#define Min(a,b) ((a)<(b)?(a):(b))
#... |
120e3b640f01f6cb65f3664b382bc181d6653499 | ef448a74eb1aeee002fb58b31061d074f7cd0ec3 | /armstrong.cpp | 82caa38a6b64b81921c893f0846e486812a901ec | [] | no_license | RushilKhantwal/Algo-Codes | 68c2c275a4b1de1d7307b73bab91ee606b681497 | d2b93c02573426f5d6a7515920b3340817d1cdbc | refs/heads/master | 2022-11-20T19:43:56.439640 | 2020-07-19T21:45:28 | 2020-07-19T21:45:28 | 264,461,881 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | armstrong.cpp | #include<bits/stdc++.h>
using namespace std;
bool isArm(int n)
{
int sum = 0;
int num = n;
string str = to_string(n);
int i = str.length();
while( num !=0 )
{
sum += pow(num%10,i);
num = num/10;
}
if (sum == n)
retur... |
5ce4b8c0b5b77a0cc2ff04f28829936da4291e6d | 612daf3ba1ef579f28bb1ef0eb6af59782b19f30 | /uri/1215.cpp | 7849c4b133616e54d62b2dd51e086761526f1bcd | [] | no_license | matheusmso/code | 1bf454280f43aad01a82dcddbc2a7f4efb9a0fa8 | d9310b4f4cf426d6d90bc681443cbc40e63723c3 | refs/heads/master | 2021-09-01T16:00:53.715867 | 2017-12-27T21:28:48 | 2017-12-27T21:28:48 | 56,733,932 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | 1215.cpp | #include <bits/stdc++.h>
using namespace std;
#define debug(args...) fprintf(stderr,args)
typedef long long lint;
const int INF = 0x3f3f3f3f;
const lint LINF = 0x3f3f3f3f3f3f3f3f;
const int N = 2e2+7;
char s[N];
set<string> st;
int main() {
while (scanf(" %[^\n]", s) != EOF) {
int l = 0;
int r ... |
8eb13c1b54d68cd1eca60521d4f9c32cf32eac6b | 24b9cc1e966912e1131058e0acca990024d80a2c | /Convex_hull.cpp | 12f94bd333e6a7632583b5aed481cdc7385c35d1 | [] | no_license | Nanjoko/Templetes | 26a7c16f4c4e45ee19cca625b9e5ee144c67fc61 | a362672bf281b9fe2de4908cb99357424ac967f0 | refs/heads/master | 2020-05-01T16:33:11.073883 | 2019-03-25T11:45:58 | 2019-03-25T11:45:58 | 177,574,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | cpp | Convex_hull.cpp | #include <queue>
#include <cmath>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn = 100000 + 10;
int n, l, top;
struct Node {
double x, y;
inline bool operator < (const Node &tmp) const {
return this->x != tmp.x... |
c053247862089c07043a199bc272aa4af033a224 | a0c89f9540b1c429f7bc812d93bdd549c2564bd7 | /FindElementInMatrix.cpp | e06362abe894f7fe7c1983027d3920cf64f74fe5 | [] | no_license | abhinavm31/CP_CipherSchools | eb8ce1b40d85e3f646e240064bc8cb059f7abe70 | 0cd3837633ee898c647d8fe65639504c97c60de1 | refs/heads/main | 2023-03-07T01:22:02.089730 | 2021-02-18T18:28:47 | 2021-02-18T18:28:47 | 338,605,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | FindElementInMatrix.cpp | //Find Element in Matrix
#include <bits/stdc++.h>
using namespace std;
int binarySearch(vector<int> row, int s, int e, int x)
{
return 0;
}
pair<int, int> findElement(vector<vector<int>> matrix, int x)
{
for (int i=0; i<matrix.size(); i++)
{
int j=binarySearch(matrix[i], 0, matrix[i]... |
e26d7552302708c6ac378be2a761f40f26a246ca | 5bc5f7de1c2271479e02d84b25096a0c710e93f6 | /lab14/lab30/lab30.cpp | 0551cdaa731a0bda55f659d9a52e55d67d222523 | [] | no_license | KriSWhitch/Fundamentals-of-Algorithmization-and-Programming-Second-Semester | 1d81a2818747c28513b049b4352f365873c4fac8 | 9eb450493a4ee6fdf9b52f6278920dc12b6d31bb | refs/heads/master | 2022-10-22T00:19:02.455423 | 2020-06-15T18:10:24 | 2020-06-15T18:10:24 | 272,140,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,573 | cpp | lab30.cpp |
#include <fstream>
#include <ctime>
#include <array>
#include <algorithm>
using namespace std;
ofstream cout("output.txt");
const int SIZE = 20001;
void bubbleSort(int arr[], int n) { //сортировка пузырьком
int i, j;
bool swapped;
for (i = 0; i < n - 1; i++) {
swapped = false;
for (j = 0; j < n - i - 1;... |
d240cf842a52ffa4f8f6a147b478c10993df4025 | f83739f6cd23c917debde1f3de4fc8cce28605d3 | /ui/views/app_list/app_list_controller_win.cc | eddf2468d38cace61284e8470b7bb02ecd587b94 | [
"BSD-3-Clause"
] | permissive | sees2012/chromium-src-chrome-browser | 66cb82ac21f90357f2ac2affaa12be6933925e01 | 3946b4728d91c3e6d71ad68142b027352974c6e4 | refs/heads/master | 2021-01-18T18:57:44.490392 | 2013-01-13T00:42:38 | 2013-01-13T00:42:38 | 8,656,743 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,300 | cc | app_list_controller_win.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <sstream>
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/lazy_instance.h"
#include "base/path_service.h"
#include... |
56484e6b86838e82c11fad3a20c021e2cd1a556a | fc38a55144a0ad33bd94301e2d06abd65bd2da3c | /thirdparty/cgal/CGAL-4.13/include/CGAL/IO/STL_writer.h | c872ca9b6c613cd45b90d6f4bf435d773060f921 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"LGPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-commercial-license",
"LGPL-3.0-only",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"Licens... | permissive | bobpepin/dust3d | 20fc2fa4380865bc6376724f0843100accd4b08d | 6dcc6b1675cb49ef3fac4a58845f9c9025aa4c9f | refs/heads/master | 2022-11-30T06:00:10.020207 | 2020-08-09T09:54:29 | 2020-08-09T09:54:29 | 286,051,200 | 0 | 0 | MIT | 2020-08-08T13:45:15 | 2020-08-08T13:45:14 | null | UTF-8 | C++ | false | false | 3,516 | h | STL_writer.h | // Copyright (c) 2017 GeometryFactory
//
// This file is part of CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the GNU
// General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Licensees ... |
b37db9a704995db8d0cf17f1dc00e3185f2410a8 | 8ba9219409efbf3c361373f46020683ea8d56680 | /src/Genie.cpp | 8a2eea5c498639c7e77a6e39671fa77eaaade88b | [
"CC0-1.0"
] | permissive | mhetrick/nonlinearcircuits | 136fa709dcadb699c09d5956e5ae308eb44a0cf0 | d8a3fe7d555923fa811bb3691cfa0b313a62212b | refs/heads/master | 2023-04-09T06:54:58.503246 | 2022-12-09T02:11:32 | 2022-12-09T02:11:32 | 220,133,537 | 30 | 5 | CC0-1.0 | 2022-12-09T02:11:34 | 2019-11-07T02:24:44 | C++ | UTF-8 | C++ | false | false | 7,282 | cpp | Genie.cpp | #include "NLC.hpp"
struct Genie : Module {
enum ParamIds {
NEURON1SENSE_PARAM,
NEURON1RESPONSE_PARAM,
NEURON1IN_PARAM,
NEURON2SENSE_PARAM,
NEURON2RESPONSE_PARAM,
NEURON2IN_PARAM,
NEURON3SENSE_PARAM,
NEURON3RESPONSE_PARAM,
NEURON3IN_PARAM,
NUM_PARAMS
};
enum InputId... |
f26ce29d8594ae47b9ddbfa3c8596dc1b717591d | 5ad8ad5e0c7f63f026db6d2e186cce2dc2a9ac0f | /src/MPC.cpp | d6b71c15c66ebbb0ed8c6b6715e58180ef5c8bbb | [] | no_license | J-Rojas/CarND-MPC-Project | fca0f893aaefd1e3693bd75e77164162f98b12c6 | 9c44da832fd88ee2588f15f9ef143737d38d22dd | refs/heads/master | 2020-12-03T00:40:26.756359 | 2017-07-03T06:25:37 | 2017-07-03T06:25:37 | 96,059,258 | 0 | 0 | null | 2017-07-03T01:31:34 | 2017-07-03T01:31:34 | null | UTF-8 | C++ | false | false | 16,024 | cpp | MPC.cpp | #include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
using CppAD::AD;
/* WRITE UP */
/* Student describes their model in detail. This includes the state, actuators and update equations.
// My model uses these variables:
// x, y fo... |
231f84974bf2598c506818a660ad6170bb962f7a | be3212dd23d5874f065d4ae4606f2378edb32cd4 | /UVa10242_sec.cpp | 6d73ad612f16365f9a0745047f39f01352bcd3b9 | [] | no_license | otaGran/uva | 7af48ad2f5d77240e98064d1cb84ff1ea7a014db | 7c0957aa165355a1a77ef84b6c1b64c694b7d3b6 | refs/heads/master | 2021-09-11T21:01:18.233786 | 2018-04-12T10:29:12 | 2018-04-12T10:29:12 | 103,948,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | cpp | UVa10242_sec.cpp | //
// Created by beans on 3/23/2017.
//
#include <iostream>
using namespace std;
int main(){
struct point{
double x,y;
};
struct line{
point a,b;
};
line tmp[2];
point pt[4];
while(cin){
for (int i = 0; i < 4; ++i) {
cin >> pt[i].x >> pt[i].y;
}
... |
8b61e388796fbfd4a5afeca979ceafc85224437c | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /shared/test/unit_test/command_container/command_container_tests.cpp | 53870e7829b17d873304a45439c33a64fad6dc3b | [
"MIT"
] | permissive | intel/compute-runtime | 17f1c3dd3e1120895c6217b1e6c311d88a09902e | 869e3ec9f83a79ca4ac43a18d21847183c63e037 | refs/heads/master | 2023-09-03T07:28:16.591743 | 2023-09-02T02:04:35 | 2023-09-02T02:24:33 | 105,299,354 | 1,027 | 262 | MIT | 2023-08-25T11:06:41 | 2017-09-29T17:26:43 | C++ | UTF-8 | C++ | false | false | 89,321 | cpp | command_container_tests.cpp | /*
* Copyright (C) 2019-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/command_container/command_encoder.h"
#include "shared/source/command_stream/linear_stream.h"
#include "shared/source/helpers/gfx_core_helper.h"
#in... |
99e7845f8a3f893b6f1d3a6cc173e3debf424428 | 357ee048b8550801082dae709d1ff54f88fbb81f | /src/model_io/urdf/include/iDynTree/ModelIO/URDFModelImport.h | 2aa4eb1e06e33c54fe6c85fc5410f484552ad0ad | [] | no_license | mrkjankovic/idyntree | 349907eed92f90a2e5e7fb9650c95b54974c1009 | e2712ac3ff6d7651120b20979a1aed799b95185b | refs/heads/master | 2021-01-18T16:06:27.449033 | 2016-05-19T11:33:10 | 2016-05-19T11:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,271 | h | URDFModelImport.h | /*
* Copyright (C) 2015 Fondazione Istituto Italiano di Tecnologia
* Authors: Silvio Traversaro
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*/
#ifndef IDYNTREE_URDF_MODEL_IMPORT_H
#define IDYNTREE_URDF_MODEL_IMPORT_H
#include <string>
namespace iDynTree
{
class Model;
/**
* ... |
5dbafb26d3621069d85ceeba33868ce154d6cfe9 | 546cbbbec91e32ca5bc8e7a3f0a7a56efe869915 | /cpp/hr4.cpp | 761ca528b5180949b4157180550b231781c85dd8 | [
"MIT"
] | permissive | amirziai/learning | b0f64aefd6c025cdc8d779ec12f11f38836648fe | eda986ddfa7b07d8a3741452a2a8856a1b30fc92 | refs/heads/master | 2022-10-22T16:49:51.666640 | 2022-09-25T23:49:40 | 2022-09-25T23:49:40 | 99,180,492 | 62 | 37 | MIT | 2018-01-31T04:09:00 | 2017-08-03T02:16:07 | Jupyter Notebook | UTF-8 | C++ | false | false | 631 | cpp | hr4.cpp | #include <iostream>
#include <vector>
#include <set>
using namespace std;
template<typename C>
bool lastGreaterThanFirst(const C& container) {
if (container.empty()) return false;
typename C::const_iterator begin(container.begin());
typename C::const_iterator end(container.end());
return *--end > *begin;
}
int... |
f4db7f3c1fa60070d00623009bef0ea1058628bc | 68c453a90652d6dfb276dd134d56aeb6a4790c14 | /lower/AMF/libamfdriver/hardReset.cpp | ddc05d825fd6ad922ed8569aebba2c99845b55c4 | [] | no_license | dgist-datalab/BlockSSD | f8d8f027afc1f474f54c547c148ca800f4808ab3 | f944a94455f56a42ee3a888431b71d7e555b7671 | refs/heads/master | 2023-03-30T22:37:10.271487 | 2021-03-31T08:56:04 | 2021-03-31T08:56:04 | 352,962,023 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | cpp | hardReset.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "AmfManager.h"
#include "time.h"
double timespec_diff_sec( timespec start, timespec end ) {
double t = end.tv_sec - start.tv_sec;
t += ((double)(end.tv_nsec - start.tv_nsec)/1000000000L);
return t;
}
// void readCb(void *req) {
... |
9c52267f2a27a2d7050343b720221fd99d222e0d | 8152c10b16c7d431e1d292e4bf961f7f88e9b0b5 | /Engine/Beveler.h | e6a7a59d434394b19075dd45e001e2cfee892109 | [] | no_license | liyapeng0711/YPGameBoxHand | 4c0de62564400a2446af25737fdf3af220542a58 | dd69758c3e000074155da753dbe8c98e49782dea | refs/heads/master | 2023-04-16T05:35:44.317608 | 2021-04-01T14:39:51 | 2021-04-01T14:39:51 | 353,730,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | h | Beveler.h | #pragma once
#include "Graphics.h"
class Beveler
{
public:
Beveler() = default;
Beveler(Color baseColor_in);
void DrawOuterBevel(const RectF& rect, int size, Graphics& gfx)const; // rect contains the bevel, looks like outer
void DrawInnerBevel(const RectF& rect, int size, Graphics& gfx)const; // rect contains the ... |
de8a1247be3a90fe16ce27b5b09a6bc24b7e349d | 97195724f8a99189c9afbcb371eb0816da5f2ec7 | /Libraries/YukariTriggers/PeriodicTrigger.cpp | b0e49145d8f6ccb4fa1dc04cb045bb4d9328aa7f | [
"MIT"
] | permissive | mylightyeah/Yukari | a8bc1e98156212df323dc53db2ec9ce16c6103aa | da3e599477302c241b438ca44d6711fdd68b6ef8 | refs/heads/master | 2021-05-22T16:11:23.320608 | 2017-06-16T13:43:00 | 2017-06-16T13:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | PeriodicTrigger.cpp | /** @file */
#include "PeriodicTrigger.h"
using namespace Yukari::Common;
namespace Yukari
{
namespace Triggers
{
PeriodicTrigger::PeriodicTrigger(std::chrono::milliseconds duration)
: m_logger(LoggingService::Instance().getLogger("PeriodicTrigger"))
, m_duration(duration)
{
m_enabled.store(false... |
6978a959aff403b95fd27ad61f4c88bfddc8564e | 179b600c1b38e196e5af8724c8cb8d2c176ec926 | /NaturalSelection/Intermediate/Build/Win64/UE4Editor/Inc/NaturalSelection/NaturalSelectionGameModeBase.gen.cpp | 6119cbbb35972b137873a8516988858336c54321 | [
"MIT"
] | permissive | Balaji-Ganesh-AK/Unreal-Natural-selection-simulation | 14868eaaadfd29b75c41c8c17262e6f5c280ac5e | 22f2bb52a2b3a52b6ec1c05640ce14bf207ac42f | refs/heads/main | 2023-01-19T16:58:46.930472 | 2020-11-16T22:26:42 | 2020-11-16T22:26:42 | 303,009,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,896 | cpp | NaturalSelectionGameModeBase.gen.cpp | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
3eb91f8c931c307b506450cc173e51a01d258df8 | f71803a76fbe608a29effbde0556bec24b0563a4 | /SimpleAuthentication/PlainTextPasswordAuthenticationController.h | e163444bb64a834641b733a124b21da1f78be28c | [
"MIT"
] | permissive | LukeBillo/good-design-practices-in-cpp | f7eaeb4d4ffa49af925145d65d3a3f7052e0b8c1 | 5cd55bbf53ebc9d6cebdb89053551bbdea89ca55 | refs/heads/main | 2023-01-24T18:45:32.134977 | 2020-12-08T23:36:45 | 2020-12-08T23:36:45 | 319,788,281 | 3 | 0 | MIT | 2020-12-08T23:36:46 | 2020-12-08T23:35:29 | null | UTF-8 | C++ | false | false | 376 | h | PlainTextPasswordAuthenticationController.h | #pragma once
#include "AuthenticationController.h"
class PlainTextPasswordAuthenticationController : public AuthenticationController
{
public:
PlainTextPasswordAuthenticationController(UserRepository* userRepository);
virtual bool TryLogin(std::string username, std::string password) override;
virtual void Logout()... |
2d14722b6584c90cd45d3f2ae15bea3fcf9ecd3f | e45eb8d732385940f63fc22996b63e16107a0b10 | /Tema08/ClaseAlumno/alumnocpp.cpp | 5d19835af7be25b711dc99f573234998b6ae97f8 | [] | no_license | montalvillo/Curso-Programacion-Juan | 81d40e600e6ea59aad3fb6feb84f1a60edbb2e72 | 3f8d39a1112ff4569293bbc1d9240ab93a810baf | refs/heads/master | 2021-01-10T06:09:37.303428 | 2015-10-15T11:44:39 | 2015-10-15T11:44:39 | 36,566,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | cpp | alumnocpp.cpp | #include <iostream>
#include "alumnoh.h"
Alumno::~Alumno(){} /**< Conexionado del destructor de la clase */
Alumno::Alumno(string xNombre,string xApellidos, int xEdad,int xDni){
nombre = xNombre; /**< Conexionad del constructor recibe parametros de main */
apellidos = xApellidos; /**< Implementacion del metodo *... |
9657bbefc41fc07419401321fdc811e1db1a98d1 | 804a0d133adb5fe67696753a89fbc83c1be740c1 | /monte_carlo_methods/include/old/distribution.hpp | 8da777e78029132e9dc49faa57393c20baa12776 | [] | no_license | jstanco/MonteCarlo-Methods | b51d8b5f260816267a0338b64332f77a0efc7e9e | 776767c0abb6b94f1552fa1d9a3e1be7ff11efa6 | refs/heads/master | 2021-09-20T05:26:44.676455 | 2018-08-04T00:31:08 | 2018-08-04T00:31:08 | 135,193,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,384 | hpp | distribution.hpp | //created by John Stanco on 5/18/18
#include <utility>
#include <vector>
#ifndef distribution_h
#define distribution_h
//needs to be made faster!
template<class T>
class distribution{
protected:
int len;
std::vector<std::pair<T*, double> > dist;
public:
distribution();
distribution(std::vector<T*>&);
distribut... |
a466283c983d24c5ea858e12c478b98a4b7a5a36 | 60333bc7c575f540eb78f10a4c9b316ec35334c5 | /Classes/LayerGame.h | 78b7c4ee9a1d6fa88be63f435ae97ca20b3173fc | [] | no_license | yitianljt/ShareTest_git | 48e5b2a436cdbb0611e8c232547e911ca95b5ea8 | 57044289553d752e6966ee9ef89874566f8fc6a0 | refs/heads/master | 2020-04-14T12:00:29.638163 | 2014-06-03T11:50:13 | 2014-06-03T11:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | h | LayerGame.h | //
// LayerGame.h
// ShareTest
//
// Created by jintao on 14-5-18.
//
//
#ifndef __ShareTest__LayerGame__
#define __ShareTest__LayerGame__
#include <iostream>
#include "Common.h"
#include "cocos2d.h"
#include "SpriteRunner.h"
class LayerGame:public cocos2d::CCLayer
{
public:
LayerGame();
~LayerGame();
... |
a249d1dc73e133252a8b526feb86c5ea48ebdc3a | 59310c614388ec58c3efb7ec5db9fd3331236aa8 | /dll/xmoe_Krkr/xmoe_Krkr.cpp | de899cadddae5fe25f6ffadb4899fb073ff2a13f | [] | no_license | GameCodes/KrkrLoader | 72eb45bbfe3221276f2c547380609d41360fbc64 | 30d70a029461acabc600e1e26b5d0c48901af8cc | refs/heads/master | 2021-01-24T18:39:24.391625 | 2015-12-17T04:54:58 | 2015-12-17T04:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,330 | cpp | xmoe_Krkr.cpp | /****************************************************************************
Copyright (c) 2014-2015 X'moe
xmoe.project@gmail.com
****************************************************************************/
#include "stdafx.h"
#include "xmoe_Krkr.h"
#include "Locale.h"
#include <wchar.h>
#include "SecondHook.h"
#inc... |
5d83ec5bebd91625d1cb92a95f9c7c0212411779 | 9939aab9b0bd1dcf8f37d4ec315ded474076b322 | /libs/core/serialization/tests/unit/small_big_object.hpp | 4f7527b0652c301db62d1bd809a50cdd97b40507 | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | STEllAR-GROUP/hpx | 1068d7c3c4a941c74d9c548d217fb82702053379 | c435525b4631c5028a9cb085fc0d27012adaab8c | refs/heads/master | 2023-08-30T00:46:26.910504 | 2023-08-29T14:59:39 | 2023-08-29T14:59:39 | 4,455,628 | 2,244 | 500 | BSL-1.0 | 2023-09-14T13:54:12 | 2012-05-26T15:02:39 | C++ | UTF-8 | C++ | false | false | 5,360 | hpp | small_big_object.hpp | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013 Shuangyang Yang
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/////... |
878528310c21bd69a8d1ee3f0509863b86b11767 | 252c2ee58475a4db42984c311ce6528ad2239c7f | /GdalUtil.h | a9de7d341f3df8662e6130a843dcf90acc1bba02 | [] | no_license | lsl1229840757/GeoSystem | c7ed5053c03e9efa2867e1803d0ff6e6f754c61c | 57de4d9935862e6c4b66efda7f4a78fb3fc0e1fd | refs/heads/master | 2020-09-20T23:26:50.626722 | 2019-12-27T07:57:27 | 2019-12-27T07:57:27 | 224,615,990 | 0 | 1 | null | 2019-12-19T19:59:54 | 2019-11-28T09:23:21 | C++ | GB18030 | C++ | false | false | 1,678 | h | GdalUtil.h | #pragma once
#include "gdal.h"
#include "ogr_api.h"
#include "ogr_feature.h"
#include "ogrsf_frmts.h"
#include <qstring.h>
#include <qdebug.h>
#include "GeoMap.h"
#include "GeoPoint.h"
#include "GeoPolyline.h"
#include "GeoPolygon.h"
#include "GeoMultiPolygon.h"
#include "qmessagebox.h"
#include "GeoMultiPolyline.h"
#i... |
eddd0c3dcdcaa1ef830c8e559758dcc212331a30 | 6b6e4281ba67a31443e6c6ee20e0e1bd22de3630 | /UVa-Solutions-master/657.cpp | 80a7b15b4f219d9056b49bbbb2633fce3a72e24b | [] | no_license | Codes-iiita/UVa | fa5b8316afba9152cda983e0a7482ccf214928d9 | 9165bd0ba4912f33e1607762212e9004b2bc2b35 | refs/heads/master | 2023-08-15T10:13:33.678072 | 2021-09-23T09:51:48 | 2021-09-23T09:51:48 | 409,516,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,095 | cpp | 657.cpp | //Steven Kester Yuwono - UVa 657
#include <iostream>
#include <vector>
#include <algorithm>
#define MAX 55
using namespace std;
char field[MAX][MAX];
int width, height;
int countPoint;
vector<int> answer;
// dfs on X
void dfsx(int w, int h){
field[w][h] = '*';
if(w+1 < width){
if (field[w+1][h]=='X'){
dfsx(w... |
265d138ece88ee0932edb333d868593a994bba6c | 9ec780ff13d268f83b1fa16e23d88a5173a2eab2 | /src/Array.h | 1e64e851adfc84c690e39628be6c01d55d9f85e1 | [
"MIT"
] | permissive | TileDB-Inc/TileDB-NYSE-Ingestor | 57f9b8cbca6aaa04645ec83896766c0d43d9c6bd | aa4aff86bd96a4f1e82c4fbc16373cab50c2044d | refs/heads/master | 2021-06-05T00:24:38.102350 | 2021-05-13T14:30:30 | 2021-05-13T14:30:30 | 151,972,604 | 3 | 2 | MIT | 2021-05-13T14:30:31 | 2018-10-07T18:31:29 | C++ | UTF-8 | C++ | false | false | 6,547 | h | Array.h | /**
* @file Array.h
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2018 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, ... |
977570d39cf5cb14a09ff112097affa8dec42200 | 8e39f4709bfe050a64d6496ca41d402750f91944 | /code/14391_종이 조각.cpp | 32975c7041f744a34f51804887e362e36d9b461b | [] | no_license | LeeJehwan/Baekjoon-Online-Judge | 66fd0799087082988ff1a77fd1fda836bd0d6953 | 681a2c937be7a774edc1b21bfed3617e0ba1018b | refs/heads/master | 2020-04-16T17:48:32.470045 | 2019-08-03T17:57:01 | 2019-08-03T17:57:01 | 165,789,670 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | 14391_종이 조각.cpp | #include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
#define endl '\n'
int map[5][5];
int main() {
int n, m;
cin >> n >> m;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
scanf("%1d", &map[i][j]);
}
}
int ans = 0;
for (int i = 0; i < (1 << (n*m)); i++) {
int su... |
88df9d3384d55358e817c3be144db0640c13de12 | 63b48cdab9cc308dc43aa8d4e9755fcc2de2c7df | /Hello AIE/Main.cpp | b7a602399a24a078a3cab2956f48c1e15177d704 | [] | no_license | FinalAngel661/Hello-Aie | 5e121c53f5d4bdd4a12440e1211e5838c5df8f9e | 8e1264d91749343de6788839a848c1e7539a9a28 | refs/heads/master | 2020-09-16T03:49:36.764169 | 2016-08-22T19:20:12 | 2016-08-22T19:20:12 | 66,297,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | Main.cpp | //
// Name: Kelsey Davis <kelsey.davis@students.edu.au>
//
#include <iostream>
int main()
{
printf("Hello this is patrick and I am not a krusty krab");
printf("No this is patrick!");
getchar();
}
|
ca077786d85e1406ad51c0e85c413c59e5e4b0c7 | 00c99550265c9debbc93b9a6d2b1894e1537964f | /inc/leastSquares.hpp | 4850bbb1b9bd624005bec6b15f9ddd2adc686b61 | [] | no_license | MaximeAeva/AnalyticsTools | 8c36d7f370cceb545e6606f882901d728ec7f8ba | a51c6d5feec00c55e35c95a562d0df1c5ad7b694 | refs/heads/master | 2023-06-30T10:25:38.056997 | 2021-07-29T19:46:26 | 2021-07-29T19:46:26 | 310,800,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | hpp | leastSquares.hpp | #ifndef LS_H
#define LS_H
#include <vector>
#include <cmath>
#include <iostream>
#include "struct.hpp"
#include "signal.hpp"
#include "matrix.hpp"
#include "method.hpp"
Matrix<float> lstSqr(std::vector<Point> f, int deg);
std::vector<Point> residuals(std::vector<Point> f, Matrix<float> coeff);
#endif |
00e4e5cf95b1cc8345a859efc40e0177393f69fc | d76e86c698452a5b00e1a06ed5caaaae237429c2 | /portable/ipc/PacketReader.cpp | bdbf000d93dfe1290767edf7e305383fdfd4fc78 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | asokolsky/libunistd | 90e38718f451a3482a6fe880da3b87b79a7cf7d8 | 8002a231e913e56726369d4901486dc7318391f6 | refs/heads/master | 2020-05-16T19:59:20.055857 | 2019-04-24T01:02:39 | 2019-04-24T01:02:39 | 183,275,391 | 1 | 0 | MIT | 2019-04-24T17:22:41 | 2019-04-24T17:22:41 | null | UTF-8 | C++ | false | false | 1,258 | cpp | PacketReader.cpp | // portable/PacketReader.cpp
// Libunistd Copyright 2016/1/16 Robin.Rowe@cinepaint.org
// License open source MIT/BSD
#include "PacketReader.h"
namespace portable
{
template<>
PacketReader& operator>>(PacketReader& packet,std::string& data)
{ const bool ok = packet.Read(data);
// std::cout<<"read string" << std::end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.