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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e7cd1713048176bb76f338491b673c0a5ea4b49 | da978e0f8c05d69c580ee3f78148b5b6c30dcd82 | /SNESpaduino.cpp | e45ea6fffc120c82a00f75cd484412450d37b43b | [] | no_license | tobiloeb/make-block-reloaded | 7fec8c958d8e9a335af61b01294996125166dd6f | c11ba875ef39118bf1930f47ad2e089f57d9f4ff | refs/heads/master | 2021-01-18T03:33:09.654358 | 2018-08-14T16:49:59 | 2018-08-14T16:49:59 | 85,812,964 | 0 | 0 | null | 2017-03-22T10:08:09 | 2017-03-22T10:08:09 | null | UTF-8 | C++ | false | false | 1,420 | cpp | SNESpaduino.cpp | /*******************************
*
* File: SNESpaduino.cpp
* Description: SNESpaduino library: Use an Arduino to read the button states of a SNES Gamepad
* Author: Damon Dransfeld
* Web: http://tacticalcode.de
* License: CC-BY-SA 3.0 ( http://creativecommons.org/licenses/by-sa/3.0/legalcode )
*
****************... |
b41ac22d72d7ece69d286e0f9aead5b21bb868b8 | 5a3391a34d17da15bb49377ee60fdf7c5c54ddf0 | /include/Point.h | 44c9a60ec2c4a334dee8d91116e3d846bfc66ede | [] | no_license | bahuljain/Raytra | fa74608deb59e3325c23b73bf05d6ddd9dd3eed7 | c63178db2fa44135029c840bdb0d681c27d89962 | refs/heads/master | 2021-05-01T03:37:58.901061 | 2016-11-18T02:56:28 | 2016-11-18T02:56:28 | 70,050,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | h | Point.h | //
// Created by bahuljain on 10/4/16.
//
#ifndef RAYTRA_POINT_H
#define RAYTRA_POINT_H
#include "Vector.h"
class Point {
public:
float x, y, z;
Point() {
this->x = 0.0;
this->y = 0.0;
this->z = 0.0;
};
Point(float x, float y, float z) {
this->x = x;
this->y ... |
f1bef883c789ce5b86437199cf0891c3116117a9 | 7a52fc9bf72fcfd49ba49fa469421a1451391f8a | /spectrum.cpp | 35affe8b0d78f042c8f930036145324dd1f36671 | [] | no_license | jpupu/alcaroite-ng | 4c0a074901714d29473a8f76e2ccf7d726fea5cd | e8fd3cc43feab276fcc50abba4def51f44a35e86 | refs/heads/master | 2021-01-01T17:47:11.338151 | 2015-09-16T19:41:26 | 2015-09-16T19:41:26 | 28,053,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,653 | cpp | spectrum.cpp | #include "spectrum.hpp"
#include "pupumath.hpp"
#include <cmath>
using namespace pupumath;
Spectrum::Spectrum(const vec3& linear_rgb)
: samples(spectrum_ns::linear_rgb_to_spectrum(linear_rgb))
{
}
namespace spectrum_ns {
// Fitting functions from
// http://psgraphics.blogspot.fi/2014/11/converting-spectra-to-xyz... |
4403566d1f7f0b20610b2170937291dd94f0a761 | 4667145a410412f5c093f47e67674c3fb03c042c | /Sprookjesmobiel/UI/MenuWidget.cpp | 8dc25f152d9b2bd2e3f433cb3a9bd34b3a89c7e7 | [] | no_license | nik3122/SprookjesMobiel | f23776046329d2dfb184e742c14d756a000874ec | 7cd368125a9711da9857810b21f4fd4d84a1c76a | refs/heads/master | 2022-03-07T06:13:47.467035 | 2019-10-23T21:34:14 | 2019-10-23T21:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,628 | cpp | MenuWidget.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MenuWidget.h"
#include "Kismet/GameplayStatics.h"
#include "Gameplay/Camera/MenuCamera.h"
#include "Engine.h"
void UMenuWidget::SetMainMenu() {
Cast<AMenuCamera>(UGameplayStatics::GetPlayerController(this, 0)->GetPawn())->SetCame... |
a4e05d28dab1b2e60527ef2a51bbe9a28fffd3d7 | 64b8b4be8047a5e489440c3aa1665da0d2a3b397 | /src/ui/view.cpp | fe58c63b473e092803cdc652c73c1bcdf5d577d8 | [] | no_license | rkargon/render-denoising | 50c8378dc4ee79eef4172885c9386755aadc0df1 | 0aaf50e2c59213df4b6d5b966f5a6eda7943196c | refs/heads/master | 2020-03-18T08:21:56.638533 | 2019-03-20T04:35:53 | 2019-03-20T04:35:53 | 134,505,031 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,831 | cpp | view.cpp | #include "view.h"
#include "pathtracer/pathtracer.h"
#include "scene/scene.h"
#include "scene/QuaternionCamera.h"
#include "viewformat.h"
#include <QApplication>
#include <QCommandLineParser>
#include <QDebug>
#include <QFileDialog>
#include <QKeyEvent>
#include <QMessageBox>
#include <iostream>
View::View(QWidget ... |
6a9bf4edd54aaf0dd89463865eca24a70969903c | 7eec6b7ca96bcda64bedfdbca48bc0007cd8797c | /CP/CN/COOK82C.cpp | 0c4256c74b2411c7a9d1cf960263c277877dc249 | [] | no_license | im5ushant/DSA | 1071185ae7bd0efb4f411b171a3307ce20ec3f86 | 06e54dba3a63823738e27fd9fcb7ec9deff2f4f1 | refs/heads/main | 2023-06-13T07:33:47.983425 | 2021-07-04T14:02:59 | 2021-07-04T14:02:59 | 372,206,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | COOK82C.cpp | #include <bits/stdc++.h>
#include <algorithm>
typedef long long ll;
using namespace std;
int main()
{
int N, M;
cin >> N >> M;
ll *arr = new ll[N];
for (int i = 0; i < N; i++)
{
cin >> arr[i];
}
sort(arr, arr + N);
queue<ll> q1;
int ptr = N - 1;
int ctr = 0;
for (in... |
1e29f3e2288e8b39fbf57af1f3de6a7a90d69897 | 3385445ac830d258de2884b870d1341996d264cd | /vin/cbm.cpp | 54c7942b9ceef6a4e24dfed3d5f5e8d3c50261e7 | [] | no_license | petermilne/mdsshell | a2824ea363d14b5629fa31aa14d24076215b5375 | 888a5c8ac61f932aee3630890131227d92bf37f8 | refs/heads/master | 2023-05-11T14:35:30.767863 | 2023-04-04T09:28:19 | 2023-04-04T09:28:19 | 51,762,958 | 0 | 1 | null | 2019-02-20T08:54:06 | 2016-02-15T14:59:59 | C | UTF-8 | C++ | false | false | 5,320 | cpp | cbm.cpp | /* ------------------------------------------------------------------------- */
/* cbm.cpp - channel block mask ops */
/* ------------------------------------------------------------------------- */
/* Copyright (C) 2005 Peter Milne, D-TACQ Solutions Ltd
* ... |
4ceb1ab47680d6cdc260f5fb1791d76a236da349 | e10ee6c221da71d5e815adb5022f86ced6a5ad47 | /propertispaser/src/include/propertispaser.h | cbab3e6f1f45c2a2ac4d45cd584b7178df11e863 | [] | no_license | macguan/testcplus | fef5ce55f675b865987b344394231574c2686eb7 | 59e5c7abd77b65270aa094961fbe40714f825a15 | refs/heads/master | 2022-11-24T20:03:34.913430 | 2020-08-04T03:58:57 | 2020-08-04T03:58:57 | 284,859,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | propertispaser.h | #ifndef _PROPERTIES_PASER_
#define _PROPERTIES_PASER_
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
//using namespace std;
using std::map;
using std::vector;
using std::string;
namespace properties_paser{
map<string,string> getProperties(string filename);
string getValueFromPaser(... |
1beb503a933afe6e18edbf8a2f433ff4fe533b7c | 0c1cf91c88d26b1525707a0ed9aa111c4e36264e | /src/platform/Device.cpp | a549fe5211cff6ca9129e93eeda092c90c4f5c12 | [
"MIT"
] | permissive | Etskh/Jotun | e686aa0c356ff18ea8f3c070fd9c66465cfbfa5f | df0ba5884c478fce87f63523f7458ab7e5425590 | refs/heads/master | 2021-01-01T18:30:01.093458 | 2014-10-24T22:07:06 | 2014-10-24T22:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,430 | cpp | Device.cpp |
#include <string.h> // for memset
#include "Device.h"
#include "core/Colour.h"
bool CheckSDLError( bool bCondition, const char* szCondition, const char* errorMsg, const char* file, int line ) {
if( bCondition ) {
return true;
}
else {
char buffer[1024];
sprintf( buffer, "%s failed in %s at line %d\n%s S... |
66ae06006981542cec4473ba74ccd0090b616bc7 | ac81e219f6ab76d1dc64e2906d81836c24315fe2 | /RTCode/TextureManager.cpp | 4a217da0c40b46ec1500f3961bdb173b019e4eac | [] | no_license | Atrix256/MoriRT | c75c2a05ffffa3e1ef162a527f25bedf3f66b3fc | 4eaf5a5957586225b5cadc01d20d18a959dabf01 | refs/heads/master | 2021-05-01T18:39:56.749718 | 2012-09-11T05:56:05 | 2012-09-11T05:56:05 | 5,725,224 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,885 | cpp | TextureManager.cpp | /*======================================================
TextureManager.cpp
Holds and manages textures
======================================================*/
#include "TextureManager.h"
#include "Texture.h"
#include "RayTracer.h"
#include "PlatformBase.h"
#include <string.h>
CTextureManager Texture... |
886e9927d8c7b9d2d277c463225fd13e4a76a2d2 | 72a4a5ddd57a2c6f63968d4d9252935bbf177fea | /RedisDecode.cpp | 3dc8f382a62ae3aa97f54b4dedf27cefae14dbcf | [] | no_license | JosquinIMBERT/BGPRedisSaver | 2f9b0016bb55e824a746b10be6dbb90f7534f7d8 | 72cadef109a0e29c24e21ba4c7ef845458abf8a9 | refs/heads/master | 2023-06-25T10:16:29.332042 | 2021-07-26T12:09:12 | 2021-07-26T12:09:12 | 381,351,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,297 | cpp | RedisDecode.cpp | //
// Created by josqu on 02/07/2021.
//
#include <iostream>
#include <vector>
#include <boost/algorithm/string.hpp>
#include "RedisDecode.h"
using namespace std;
namespace RedisDecode {
unsigned int from_myencoding(string str) {
unsigned int val = 0, coef = 1, l;
for (unsigned long i = 0; i < s... |
f31443f6b58a8cd8e399e34f73324c3d55a70349 | 538358b6eac39226136b9c68627f904d23f232ec | /AudioAnalyser.cpp | 0317690f068098b6cab1be459d66d02a000fcc87 | [] | no_license | msedd/lightcontrol | c59f5927167d26500d0f00dfeb93681a908eab6e | 3e17f3b97be269c00e23da65a53a96afa50bfb9a | refs/heads/master | 2021-01-22T04:34:25.328247 | 2012-10-04T21:40:11 | 2012-10-04T21:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | AudioAnalyser.cpp | /*
* AudioAnalyser2.cpp
*
* Created on: 04.10.2012
* Author: mse
*/
#include "AudioAnalyser.h"
#include "fft.h"
#include <Arduino.h>
AudioAnalyser::AudioAnalyser() {
// TODO Auto-generated constructor stub
}
AudioAnalyser::~AudioAnalyser() {
// TODO Auto-generated destructor stub
}
void AudioAnalyser:... |
e1f52927702e5ba50eff8355df1743111f8c3d16 | 6de5afdddf9905478cd85543ba1edc8e6b275006 | /src/IOAgent.h | 8037db8c318d89a9f6b395bfedbf611eb65efa63 | [] | no_license | kcratie/PCAkern | 4aa8da0a9fa223434358f82c9cd12f0475c855bb | d60386fda731fadea487dd017a2bc930812f3386 | refs/heads/master | 2021-01-10T20:59:54.466403 | 2014-04-30T01:15:29 | 2014-04-30T01:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | h | IOAgent.h | /*
* IOAgent.h
*
* Created on: Apr 6, 2014
* Author: kcratie
*/
#ifndef IOAGENT_H_
#define IOAGENT_H_
#include "Configuration.h"
#include <cstdlib>
#include <fstream>
#include <fftw3.h>
#include "Configuration.h"
using namespace std;
namespace PCAkern {
class IIOAgent
{
public:
IIOAgent(){}
virtual ~I... |
1f1a9cc61b83477ae92ed2f72442d0f4a0f91786 | 199db94b48351203af964bada27a40cb72c58e16 | /lang/uk/gen/Bible48.h | 654f6dce084a5d601b78a84c6ffbd91b77f85bb4 | [] | no_license | mkoldaev/bible50cpp | 04bf114c1444662bb90c7e51bd19b32e260b4763 | 5fb1fb8bd2e2988cf27cfdc4905d2702b7c356c6 | refs/heads/master | 2023-04-05T01:46:32.728257 | 2021-04-01T22:36:06 | 2021-04-01T22:36:06 | 353,830,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,845 | h | Bible48.h | #include <map>
#include <string>
class Bible48
{
struct uk1 { int val; const char *msg; };
struct uk2 { int val; const char *msg; };
struct uk3 { int val; const char *msg; };
struct uk4 { int val; const char *msg; };
struct uk5 { int val; const char *msg; };
struct uk6 { int val; const char *msg; };
public:
stati... |
8b35562ddf3f0c2c4dd8bee476fbbace6f04423a | 72fc6d0816cfde4af7c34e9c86669dcd29f44a58 | /TimerQueue.h | 01d87835f097ac66eb2b2c86c80b0cf0b785a5b1 | [] | no_license | mzahng160/mini-muduo | e9be345490935a894491ae86a1192cd6c3f27873 | b259cd88055b5a172cf7208c3a18d355e168b764 | refs/heads/master | 2020-05-27T18:43:39.658194 | 2019-08-20T10:03:27 | 2019-08-20T10:03:27 | 188,747,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | h | TimerQueue.h | #ifndef _TIMERQUEUE_H
#define _TIMERQUEUE_H
#include "Declear.h"
#include "IChannelCallback.h"
#include "IRun.h"
#include "Timestamp.h"
#include "Timer.h"
#include <set>
#include <vector>
class TimerQueue : public IChannelCallback
,IRun2
{
public:
TimerQueue(EventLoop* pLoop);
~TimerQueu... |
3c21f3dd8d3bb8cb702388a4787f0f19f701e734 | c47f85f33897c32b41dfd79eb9ecc34fcc0fe2c6 | /Modules/ProstateNav/TransPerinealProstateRobot/.svn/text-base/igtlCoordinateMessage.cxx.svn-base | f3e227bcbae4aa0577a18167f1a96d2c11186983 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-3dslicer-1.0",
"BSD-3-Clause"
] | permissive | pieper/ModelDraw | 1193b716209fdac6a38d48d42a8b9ffcf067a43c | 2ec77974b2c1a8f666704957be854877238e0f0c | refs/heads/master | 2020-05-21T00:19:35.884629 | 2015-06-25T08:42:14 | 2015-06-25T08:42:14 | 2,093,941 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,651 | igtlCoordinateMessage.cxx.svn-base | /*=========================================================================
Program: Open IGT Link Library
Module: $RCSfile: $
Language: C++
Date: $Date: $
Version: $Revision: $
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANT... | |
9d820068c7b77028e78a8a21815680027ed9a715 | 455ecd26f1439cd4a44856c743b01d711e3805b6 | /java/include/android.widget.ShareActionProvider.hpp | 53569cce7af5914c40399b4c90634a31078ae55d | [] | no_license | lbguilherme/duvidovc-app | 00662bf024f82a842c808673109b30fe2b70e727 | f7c86ea812d2ae8dd892918b65ea429e9906531c | refs/heads/master | 2021-03-24T09:17:17.834080 | 2015-09-08T02:32:44 | 2015-09-08T02:32:44 | 33,072,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,353 | hpp | android.widget.ShareActionProvider.hpp | #pragma once
#include "../src/java-core.hpp"
#include <jni.h>
#include <cstdint>
#include <memory>
#include <vector>
#include "java.lang.Object.hpp"
#include "android.view.ActionProvider.hpp"
namespace android { namespace content { class Context; } }
namespace android { namespace content { class Intent; } }
namespac... |
d7b2bd937bdbd68bc60eea65db4fe7336f46888e | 5ec7e608435f0ab01102518fcf44b44c6bd7f240 | /queen/node_modules/serialport/src/serialport_unix.cpp | 2b5d2684d2a56df589477ff61985addfef80b2bf | [
"MIT"
] | permissive | jiahuang/ant-farm | 4cb59ec661a48a8da0d44bbfefd7ce07035e9b28 | ebcb717e9b2940f5897666aa81a0f777e28869d0 | refs/heads/master | 2016-09-10T08:57:57.933749 | 2013-05-01T13:50:42 | 2013-05-01T13:50:42 | 6,831,801 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,165 | cpp | serialport_unix.cpp |
#ifndef WIN32
#include "serialport.h"
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
#if defined(MAC_OS_X_VERSION_10_4) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4)
#include <sys/ioctl.h>
#include <IOKi... |
68e8fe993bf44d55c293c81133c34844735966b7 | 2d9f24b1c9a007b0100adb38d8c9d2007bdbe3fe | /Code/20200722_Diameter_of_tree_std-freejia.cpp | 5621d3d50c2427aadd614e11922d31b31f053f18 | [
"MIT"
] | permissive | std-freejia/hymni.study | e644420748eeba6cfffbb8ce32c6f534e66f16ed | 6c1f5f5f64f931c8da0580a09efa37929b3b502f | refs/heads/master | 2023-04-23T21:12:19.720356 | 2021-05-16T02:37:01 | 2021-05-16T02:37:01 | 269,624,799 | 1 | 1 | null | null | null | null | UHC | C++ | false | false | 1,708 | cpp | 20200722_Diameter_of_tree_std-freejia.cpp | #include <string>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string.h>
using namespace std;
// 트리의 지름 백준 1967
/*
트리에 존재하는 모든 경로들 중에서 가장 긴 것의 길이를 말한다.
노드의 개수 n(1 ≤ n ≤ 10,000)
둘째 줄부터 n번째 줄까지 각 간선에 대한 정보
부모 노드의 번호를 나타내고, 두 번째 정수는 자식 노드를, 세 번째 정수는 간선의 가중치
루트 노드의 번호는 항상 1이라고 가정... |
7ce5b1c099b5d2c574b54b320e66a31e52e1a079 | 6bc3f5955699fcdac540823c51354bc21919fb06 | /CS-Academy/82/82C.cpp | 6ce70638ffcc7455b99fa52b648edafe753e5893 | [] | no_license | soroush-tabesh/Competitive-Programming | e1a265e2224359962088c74191b7dc87bbf314bf | a677578c2a0e21c0510258933548a251970d330d | refs/heads/master | 2021-09-24T06:36:43.037300 | 2018-10-04T14:12:00 | 2018-10-04T14:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376 | cpp | 82C.cpp | //In The Name of Allah
//Tue 30/3/97
#include <bits/stdc++.h>
#define Init ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define fori(i,a,b) for(ll i = a; i < b;i++)
#define forar(i,n) fori(i,0,n)
#define WFile freopen("test.in","r",stdin),freopen("test.out","w",stdout)
#define Log(x) cout << "Log: " << x << end... |
b97db2070f914551eeaa2f75663c1186321841e9 | 87aec15c3c524913c090af163af77d8e2e45f9a7 | /Data Structures Examples/3rd_assignment/hash.h | 6f8a6ca1c38071ae34b392976fba78c9cd847344 | [] | no_license | Brian1273/code | ba38fa1dac8c8fd406493c4d3544303cf5e6cdce | 86b921801b262badb67b7e5bb5b8d0743356b1f7 | refs/heads/master | 2020-12-24T20:52:28.612119 | 2017-03-16T08:33:21 | 2017-03-16T08:33:21 | 59,105,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,220 | h | hash.h | // Brian Dunn
// CS 163
// assignment 3
// Filename: hash.h
// Purpose: This is the header file for the hash table class and notes class. The notes class has functions to add, retrieve, copy and display. The hash table class has functions for insert, retrieve, remove, edit info, display all, and display keyword by chap... |
a283077b3d82ba50a08b5daf284c344adcd389c3 | 28de82ff6e140e4143b7dff87ea385c75fcfda91 | /src/Game.h | 5ce5b8a5977b21bc47c51c3f4b13dcbb4a132ab9 | [] | no_license | jjwest/spacecraze | 496c64ed3ee57947ae6bd2ff45c13bdc19220125 | 98e79c80220fd4044de54132f32984cf08e95625 | refs/heads/master | 2021-01-19T09:10:39.715356 | 2017-11-28T21:03:44 | 2017-11-28T21:03:44 | 87,734,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | h | Game.h | #ifndef GAME_H
#define GAME_H
#include <SDL2/SDL.h>
#include <memory>
#include "GameState.h"
#include "ScoreKeeper.h"
class Game
{
public:
Game();
~Game();
void run();
private:
SDL_Window* window = nullptr;
SDL_Renderer* renderer = nullptr;
ScoreKeeper score;
State current_state_id = S... |
2d27c555bcaa23cd897f4d06ce0892308a1d4df7 | 49c69709e7f856ba0f1f1875210837359dfcd125 | /lm/game01/Board.hpp | 3a7dfaae432fedb9c9e8a5dd0ce29a3ef47faeee | [] | no_license | NadzwyczajnaGrupaRobocza/papuc_exercises | 1198139567928e72c399d34bfebf9d5b0c77ee61 | 099ab051d1bcce32090e2078e7e64d2c52e23aa8 | refs/heads/master | 2020-05-21T16:41:25.999334 | 2018-02-02T18:06:32 | 2018-02-02T18:06:32 | 61,226,420 | 1 | 7 | null | 2018-02-02T17:45:28 | 2016-06-15T17:19:13 | C++ | UTF-8 | C++ | false | false | 256 | hpp | Board.hpp | #pragma once
#include <SFML/Graphics.hpp>
namespace lmg01
{
class Board
{
public:
Board(const sf::View&);
void drawOn(sf::RenderTarget&);
private:
void drawEmptyBoard(sf::RenderTarget&);
sf::View currentView;
int N;
int M;
};
}
|
fe2cdfe4199466f94604f7f911cbac8e82f508ef | 2db236f309e0b34b946b8241ca66fd2cb8858d58 | /02_单链表/test.cpp | 3040cf39ace20a3fa4e777fd4994a0fe31ca7f21 | [] | no_license | hg5249345/DataStructure | d0d144490903ebe15effa19e89f1697fb037a9f3 | 611eb9ab55435792509aa9831308803fe3e4011e | refs/heads/master | 2020-06-09T18:42:35.784976 | 2015-09-26T11:46:25 | 2015-09-26T11:46:25 | 41,530,477 | 1 | 0 | null | 2015-08-28T15:28:39 | 2015-08-28T06:12:03 | C++ | UTF-8 | C++ | false | false | 1,039 | cpp | test.cpp | #include <iostream>
#include <gtest/gtest.h>
using namespace std;
#include "SingleList.h"
#pragma comment(lib,"../gtestd.lib")
int main(int argc, char** argv)
{
/*
SingleList<int> list;
for(int i=0; i<20; i++){
list.Insert(i*3, i);
}
for(int j=0; j<5; j++){
list.Insert(3, j*3);
}
c... |
662fd119bc2f83aeaf047a83f8a5af135c261845 | 2107d152a5d6a3edaab442a283f3ab76a840235e | /algorithms/graph/dijkstras_algorithm.cpp | 651a3906e43a5926bcd745756a89da37af186590 | [
"MIT"
] | permissive | sureshmangs/Code | 99ad6f42eff376faabe33eabcc82e2d035272724 | 5ef858173e8ef4db765c1154396a7c63614a8670 | refs/heads/master | 2023-06-22T20:50:03.912025 | 2023-06-17T13:53:45 | 2023-06-17T13:53:45 | 231,209,878 | 19 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,679 | cpp | dijkstras_algorithm.cpp | // Priority Queue Implementation
#include<bits/stdc++.h>
using namespace std;
#define INF INT_MAX
typedef pair<int, int> iPair;
void adjListGraph(vector<pair<int, int> > adj[], int s, int d, int w){
// undirected graph
adj[s].push_back({d, w});
adj[d].push_back({s, w});
}
void dijkstras(vector<pair<int,... |
c7379afa18a644ebfd6c618ca472c8ab51b74908 | dfe9c54f2a2a6e9964404a065cc98b6a91d88e83 | /include/ESAT/core/Visitor.h | b290442d5ee235ee941994233959a5225b392b42 | [] | no_license | alvaroCanet/GraphicEngine | 25c2037b248048c33d4288c8fc4d4d4a0f9e5711 | 070c49d82e7caf7a043a768127291d772b316968 | refs/heads/master | 2021-01-10T19:16:33.049497 | 2015-06-21T09:35:25 | 2015-06-21T09:35:25 | 37,783,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | Visitor.h | #ifndef _VISITOR_H__
#define _VISITOR_H__
#include "glm/glm.hpp" // --> Mathematical functions
#include "ESAT/core/Materials/Material_Shadow.h"
#include <ESAT\core\Ptr\ref_ptr.h>
#include <ESAT\core\UniformBlock.h>
typedef glm::vec3 vec3;
namespace ESAT {
namespace core {
class Node;
class Visitor
{
public:
... |
ac11066eb1cf1d26801d62af8377d913b60fbf4e | 1b30fe279bdb494e6099b8c2a9fa2e5f553514e6 | /VideoXpertSdk-ExampleRunner/Source/Bookmarks/DeleteBookmark.cpp | 0e65e4e3469a86ff2cdb108da6c47f2e2bc48eba | [] | no_license | pelcointegrations/VideoXpertSdk-Examples | 1698009547b17b87ea7fcf965ea11c03946e4645 | ad6cde92feb91368290530ca04c8721eb6849de8 | refs/heads/master | 2022-01-19T07:18:41.753929 | 2022-01-12T20:00:47 | 2022-01-12T20:00:47 | 165,760,147 | 3 | 1 | null | 2021-04-21T19:45:15 | 2019-01-15T01:01:40 | C# | UTF-8 | C++ | false | false | 3,639 | cpp | DeleteBookmark.cpp | #include "stdafx.h"
#include "DeleteBookmark.h"
#include "Utility.h"
using namespace std;
using namespace VxSdk;
using namespace ExampleRunner::Common;
/// <summary>
/// Delete a selected bookmark from the current system.
/// </summary>
/// <param name="dataModel">Instance of data model.</param>
Plugin* ExampleRunner... |
484f04b1760fe6a0d937ba6bc34fc701d0ea6be4 | fc356c345fe7bd23772cc2fc790e8f4767e21702 | /trust-anchor/tests/test-curl.cpp | 09d183e343a9ac9237224c3fc22cef8b55e2d340 | [
"Apache-2.0"
] | permissive | bitboom/middleware | 68a3ac32d8fc68764498b4e405fe451af0f7a6fc | 31e6146335114f6c6697e1bd307213d4d8b20136 | refs/heads/main | 2023-07-08T21:24:09.360941 | 2021-08-13T14:31:55 | 2021-08-13T14:31:55 | 395,670,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,719 | cpp | test-curl.cpp | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
145dec0553966c70e733f7c93077663260ab8e85 | e94559835dec204537927865800f95b81a191b7f | /Tympan/gui/tools/OImageGlf.cpp | ee7ad9c542b9037c1a67d803fc67cc2c8685eb09 | [] | no_license | FDiot/code_tympan3 | 64530a3fc8a392cdbe26f478a9ea9ce03abab051 | cf4383c4a162962b68df470e2bf757ad534880b9 | refs/heads/master | 2022-04-07T10:54:05.711913 | 2019-10-24T13:27:42 | 2019-10-24T13:27:42 | 239,812,326 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,357 | cpp | OImageGlf.cpp | /*
* Copyright (C) <2012> <EDF-R&D> <FRANCE>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is dis... |
7e5129dd7e4dce6755c95c30d11eaf0f717cb16e | b07470a5a76e31bbce274c756298bd76832b81c6 | /3-algorithm/les05/count.cpp | 9ef50b146b3bd0200e72729cab345063e6b33be4 | [] | no_license | SophistCedar/cplusplus | 52315176b6a0bee2e823667f44c92e95f73e223e | 72ce4f9a333a8c85ea66891d4c5d443e10a6fdf4 | refs/heads/master | 2022-07-28T06:40:17.103817 | 2020-05-24T05:33:32 | 2020-05-24T05:33:32 | 261,966,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | cpp | count.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool IsOdd (int i) {
return ((i%2)==1);
}
int main(void)
{
// 定义一个向量
vector<int> vec;
for(int i = 0; i < 5; i++){
vec.push_back(i);
vec.push_back(i*3);
}
cout << "向量的大小:" << vec.size() << endl;
... |
9223d0378102458e82308a4580b8101b63da2112 | cf58ec40b7ea828aba01331ee3ab4c7f2195b6ca | /BSNES/core/ui_qt/main.cpp | 5fe4a648ba504f231a5c86024cdfb76812d39352 | [] | no_license | nicoya/OpenEmu | e2fd86254d45d7aa3d7ef6a757192e2f7df0da1e | dd5091414baaaddbb10b9d50000b43ee336ab52b | refs/heads/master | 2021-01-16T19:51:53.556272 | 2011-08-06T18:52:40 | 2011-08-06T18:52:40 | 2,131,312 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | cpp | main.cpp | #include "main.hpp"
#include "resource/resource.rcc"
//nall::string <> QString interface: allows string streaming; automatically converts to UTF-16
class utf8 : public nall::string {
public:
template<typename T> utf8& operator<<(T t) { string::operator<<(t); return *this; }
operator const QString() const { return ... |
1c0ee1315f61c95ba4a70b62b18892b21697e1a4 | 04b021cb3fd6274a80ed322775fd4bc14cf161ea | /chrgf/main.cpp | 4dcd71c56de0d5573a292d1d41ae4c9375aa6722 | [] | no_license | ashishcas/programs | f402c82fdac1aefca2db123db2391c441acf333d | fbfd90fa06b36346033b63e33619af34b9e9caf1 | refs/heads/master | 2020-03-17T13:53:40.676577 | 2019-08-20T15:54:04 | 2019-08-20T15:54:04 | 133,649,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,i=0;
a = rand() % 100 + 1;
int b;
cout<<a<<endl;
while(1)
{
cout << "Guess the number" << endl;
cin>>b;
if(a==b)
{
cout<<"no of guesses :"<<i<<endl;
cout<<"correct guess"<<endl;
break;
}
... |
d703fa445bf5b404dc32bda6ddc1d48add69b90f | 157c4426121dcd81c5e1e67a0f51aa5cfe4f76a4 | /CS162/Visual_Studio/Merrill/Merrill/Treasury.hpp | 556328edfb6a3c012fa342464bc07f7770f07115 | [] | no_license | bkooma/OSU_BSCS | ea99040ce325a52a9ffd71a05d8a1169d04b370d | b29734abc0d4ee438c83018ded3f324ba54f3bca | refs/heads/master | 2021-01-01T18:58:54.061691 | 2017-08-24T22:46:19 | 2017-08-24T22:46:19 | 97,426,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | hpp | Treasury.hpp | /* Treasury.hpp is the Treasury class specification file.*/
#include "Space.hpp"
//include guard
#ifndef TREASURY_HPP
#define TREASURY_HPP
class Treasury : public Space
{
public:
Treasury(std::string value) : Space(value) {}; //default constructor
char menu();
void displayTag();
void displayImage();
};
#endi... |
42ca9ff9a829c157d275c7e0615ba780deafed91 | c1f957eb43db13516e0e4eba9112c96cfca603b2 | /Backtracking/GenerateAllParenthesesII.cpp | 7ab1d7c79673b03bbc18057af321daebc9ad11f0 | [] | no_license | Kethavath9199/InterviewBit | 84c671b057e60659e2fae2ac515ce209ae4dceea | 288ee6e231fb7dd0fc0d5d1c58aca39e56cf7274 | refs/heads/master | 2022-12-14T08:02:18.663790 | 2020-09-15T08:58:59 | 2020-09-15T08:58:59 | 295,669,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cpp | GenerateAllParenthesesII.cpp | #define pb push_back
vector<string> output;
void GenerateParentheses(int NumOpen, int A, string s){
if(A == 0){
for(int i = 0; i < NumOpen; i++){
s += ')';
}
output.pb(s);
return;
}
GenerateParentheses(NumOpen+1, A-1, s+'(');
if(NumOpen > 0){
... |
d762c3860f00afec4019257aa27cc07d87bef5f0 | 7cde35a74052fe6311a6abb8fd8f5a7d98d27bd7 | /src/main/dialog_global_pref.cpp | 71a61b339539903bca8cc558a558c45f9cdeebdf | [] | no_license | chys87/tiary | 7c2648857457d820bf1535865f25bc99c942d5a0 | 4beb95048280bb9096d5771b40c2f2071daf4333 | refs/heads/master | 2023-06-22T02:12:17.464305 | 2023-06-16T09:01:35 | 2023-06-16T09:01:35 | 3,160,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,518 | cpp | dialog_global_pref.cpp | // -*- mode:c++; tab-width:4; -*-
// vim:ft=cpp ts=4
/***************************************************************************
*
* Tiary, a terminal-based diary keeping system for Unix-like systems
* Copyright (C) 2009, 2018, 2019, chys <admin@CHYS.INFO>
*
* This software is licensed under the 3-clause BSD lic... |
a91be0b347411be92440b0156d9d942be0cb04a5 | bc66ac57d0277878f8e607615927337698a947c0 | /ABChw2/main.cpp | 7ca2708ef674a555bd8eefb726189fead41fc7ef | [] | no_license | Mihash08/ABChw2 | 47d4782b5120261f1c4753a8424d16c8f4cbb4ff | df9ece9a1c3c2508648a571facc503ca27c4774e | refs/heads/main | 2023-08-25T18:51:04.908142 | 2021-10-24T19:32:43 | 2021-10-24T19:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,233 | cpp | main.cpp |
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <fstream>
#include "container.h"
void error() {
std::cout << "Command line input error";
}
int main(int argc, char* argv[]) {
if(argc != 5) {
error();
return 1;
}
std::cout << "Pro... |
9b5a27885894e790ef2fe86a0d884321b4a59c45 | 96acf3a861e705b9e45f759d496086aa8158866a | /2156_포도주시식.cpp | ef2dabcb4f84836e47319860dd1b18472156b0de | [] | no_license | jinhyukoo/BJ | 8fa6f4ccb223327bacc4ad85bfe210560aa63235 | 80957bfd1900aebe8609420b43882af10899522d | refs/heads/master | 2021-07-08T00:28:05.147554 | 2021-01-30T15:03:05 | 2021-01-30T15:03:05 | 225,291,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | 2156_포도주시식.cpp | #include<iostream>
using namespace std;
int main(void){
int c, s[10001], d[10001];
cin>>c;
for(int i = 1 ;i<=c;i++)
cin>>s[i];
if(c==1){cout<<s[1]; return 0;}
if(c==2){cout<<s[1]+s[2]; return 0;}
d[1] = s[1]; d[2] = d[1] + s[2]; d[3] = max(max(s[1]+s[3],s[2]+s[3]),s[1]+s[2]);
int r = d[3];
for(int i... |
cd4ed4606dc51b33553a472364a77b8d38ef5e05 | 37ff7ac9a448627a609dd7d98bbc31ca45e288e0 | /BoostedTop.cc | 5dd2ce96c14b29291299132c09315f2cf8523704 | [] | no_license | burofiz/BoostedTop | bf14219687a077a87eda1d3716b59ccc46be2a1b | 698e3fd6ac33688788066a406cef4de765676657 | refs/heads/master | 2020-09-20T14:26:32.559845 | 2019-11-27T21:03:59 | 2019-11-27T21:03:59 | 224,510,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,965 | cc | BoostedTop.cc | #include "BoostedTop.h"
#include <iostream>
#include <sstream>
#include <TCanvas.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TMath.h>
#include <TFile.h>
#include <TTree.h>
#include <TRandom3.h>
#include <LV.h>
#include <ConfigParser.h>
#include <NeutrinoSolver.h>
#include "NNJet.h"
#include "BAnalysis.h"
usin... |
3ce9c490c434370c2a9efd0a0af32a5a854f5d17 | 46cbb66a37a14b61ccd3c409cb99f38aac0db6b1 | /image/histimage.h | 8a75febe841aa3d931739241e4fcd8f4c7b63461 | [] | no_license | 295924038/robotics | 55855ef128ba026ba626e69eeda25013d71e0d60 | 9401e5dbcde51b37ef9a058ab236611cf13489c6 | refs/heads/master | 2020-07-05T02:40:37.635433 | 2019-08-22T09:56:50 | 2019-08-22T09:56:50 | 202,497,170 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | h | histimage.h | /*
* histimage.h
*
* Created on: Jan 25, 2019
* Author: Hu XP
*/
#ifndef HISTIMAGE_H_
#define HISTIMAGE_H_
#include <opencv2/opencv.hpp>
#include <map>
#include <vector>
#include <memory>
#include "utils.h"
namespace walgo {
bool hist(const cv::Mat& input, std::vector<double>& output, st... |
046eb92665349355e7a83191e7d6c6fa8e689448 | b8d672c6acfd438100dee757eb307ad8104bbaa8 | /1037.cpp | 80911829df94caab70743eda058abb2c4e827769 | [] | no_license | zhang35/PAT-Basic-Level | 4925b74fa39f1e1dbe19e2012a62194c9a6da669 | 9f7612a1800c8955bc384ddbc33954152f23b26d | refs/heads/master | 2020-09-25T11:06:06.582651 | 2020-07-22T23:22:56 | 2020-07-22T23:22:56 | 225,992,475 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | 1037.cpp | #include <stdio.h>
int main(){
int p[3];
int a[3];
scanf("%d.%d.%d %d.%d.%d", &p[0], &p[1], &p[2], &a[0], &a[1], &a[2]);
for (int i=0; i<3; i++){
a[i] -= p[i];
}
int knut = a[0] * 17 * 29 + a[1] * 29 + a[2];
if (knut<0){
printf("-");
knut *= -1;
}
a[2] = knu... |
a9afad186a1fe11dfb800d2972b862d4a8db057e | 7e0ec0e32282307dd5bf051602cc6c2ea268452c | /src/rads/chomp/include/chomp/cubes/cellmain.h | 652f6b56abd455dd408a54b713dda09d60268eef | [] | no_license | caosuomo/rads | 03a31936715da2a9131a73ae80304680c5c3db7e | 71cab0d6f0711cfab67e8277e1e025b0fc2d8346 | refs/heads/master | 2021-01-20T10:18:58.222894 | 2018-05-24T02:18:58 | 2018-05-24T02:18:58 | 1,039,029 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,624 | h | cellmain.h | /// @addtogroup homology
/// @{
/////////////////////////////////////////////////////////////////////////////
///
/// @file cellmain.h
///
/// This file contains the definition of some functions that are common
/// for all types of cubical cells, independent of the details of their
/// implementation, mainly the compu... |
80899bc5c34ae7a59c217c3b2f93db5f098c4671 | f519601785318eb9c5101f2baad03186c9768ee9 | /matrix/matrix_stats.cpp | 33e591709f5fd3be8e6c2943d5056d300cc9cc90 | [
"Apache-2.0"
] | permissive | flashxio/FlashX | d28f35468060411b39530b1b5d9d5951dafeab3b | 2a649ffad07238344942ca7f7ae3d6c1d784b70d | refs/heads/release | 2021-01-17T01:12:50.343015 | 2017-08-21T02:18:33 | 2017-08-21T02:18:33 | 19,077,386 | 72 | 29 | Apache-2.0 | 2019-01-08T20:54:48 | 2014-04-23T16:41:37 | C++ | UTF-8 | C++ | false | false | 2,895 | cpp | matrix_stats.cpp | /*
* Copyright 2016 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* 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 ... |
5e253a90893a84a1479d8a0d7ff20c8890d2c359 | dd994c1dcf4ac94c15f1ebe4caba322de70b0d9e | /108/Server/Engine/engine/core/csgIoMgr.h | bac611f8bd6eb7cfe828b7d00fcecd2e94ffd146 | [] | no_license | coderguang/miniGameEngine | 8a870a5b9e4f92065d4cb44a69d44348911382d2 | 93eb522b74c5763941d45d3afdfa6793efeba253 | refs/heads/master | 2022-02-16T07:31:43.983958 | 2019-08-22T09:53:17 | 2019-08-22T09:53:17 | 113,191,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | h | csgIoMgr.h | #ifndef _ENGINE_CORE_CSG_IOMGR_H_
#define _ENGINE_CORE_CSG_IOMGR_H_
#include "boost/asio.hpp"
#include "boost/core/noncopyable.hpp"
#include "engine/def/boost_def.h"
#include "framework/DesignPattern/Singleton.h"
namespace csg
{
class CCsgIoMgr:public virtual Singleton<CCsgIoMgr>
{
public:
boos... |
a74328c148aef00b3f38014847c7cb7c94984175 | 3b8929a003db7e8e1c6017ebac73f4ccc724557f | /BaseVideoFusion.h | b01cb33600610a21a3b9c772ff42712b19183385 | [] | no_license | deceive777xv/GFF-Cameras-frame-fusion | b6c28ed021aa9af944046ee4b86d70af42ece779 | 7e5a558ea6fe0bc7665fdadf418257c306bb8291 | refs/heads/master | 2023-03-17T12:50:31.041072 | 2020-02-25T08:41:34 | 2020-02-25T08:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | h | BaseVideoFusion.h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: BaseVideoFusion.h
* Author: ilya
*
* Created on April 29, 2019, 11:11 AM
*/
#ifndef BASEVIDEOFUSION_H
#define BASE... |
6106028b33610ac57fd74718145f1acc7ce6c027 | cd8293d1f9c5f63bb28386afee913c5a52663171 | /TopAnalysis/plugins/BoostedTTbarFlatTreeProducerGenLevel.cc | d4614eeb95e0518fe0d5254fedc4b9d8644173bc | [] | no_license | jabuschh/UserCode | c3da13ef4589e581d67771496386d65709f3ccc8 | f935f6ddda9ba731cd4ae55dae328f21b1be59fa | refs/heads/master | 2021-11-30T22:29:28.124304 | 2018-11-08T09:38:38 | 2018-11-08T09:38:38 | 156,729,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,766 | cc | BoostedTTbarFlatTreeProducerGenLevel.cc | #include <string>
#include <cmath>
#include <functional>
#include <vector>
#include <cassert>
#include "Math/SpecFuncMathMore.h"
#include "TMath.h"
#include "TVectorD.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "fastjet/contrib/Njettiness.hh"
#include "fastjet/tools/MassDropTagger.hh"
#include "f... |
da94f5e34f063fd9243e412fa01779e74d7bd45f | b4a0013a02296600226294639c47c56d08abdb09 | /src/vm_tools/vm_time/CTimeb.h | bfcb5bee6608dfa502f8bdc4820e242abfbda4ea | [] | no_license | vincentma0001/vm_tools | 817001c34568763504efa1c46945fcf71ea208f4 | de9427b6db6953150a966f46f903a7ae9aef5131 | refs/heads/main | 2023-06-25T16:37:10.076705 | 2020-11-26T14:03:56 | 2020-11-26T14:03:56 | 306,869,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,092 | h | CTimeb.h | // ================================================================================================ //
// == == //
// == CTimeb.h == //
// == ... |
104d0e4060e5bbd996e9fe8e400a789aecc8e575 | fb4046401e3267c648b2b8722967c23a9f25e760 | /surena4/build/surena_usb/surena_usb_automoc.cpp | 8e477b8267f9c9fb38ab4fb23b97800e1359c9ce | [] | no_license | MiladShafiee/SURENA4WalkingRos-Gazebo | 1c25c698f2311cf41ba5f4abdaf18195530e67f5 | 3b1b3702eafe2a29c26fc022d8d7a51e65c50b10 | refs/heads/master | 2020-04-13T08:51:23.202073 | 2019-01-04T12:06:46 | 2019-01-04T12:06:46 | 163,094,160 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149 | cpp | surena_usb_automoc.cpp | /* This file is autogenerated, do not edit*/
#include "moc_can.cpp"
#include "moc_epose.cpp"
#include "moc_mainwindow.cpp"
#include "moc_usbhid.cpp"
|
31f93cfb6f5aefbe6e5fc504228978eba3e08b62 | d62d179f9ad43ed22cee561a97c589c90c178cec | /modules/boost/simd/operator/include/boost/simd/toolbox/operator/functions/simd/common/preprocessed/map.hpp | 6a60c8009538b1e808f5d79c753be6355d113cb7 | [
"BSL-1.0"
] | permissive | timblechmann/nt2 | 89385373c14add7e2df48c9114a93e37a8e6e0cf | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | refs/heads/master | 2021-01-16T23:49:00.220699 | 2013-03-11T09:31:23 | 2013-03-11T09:31:23 | 8,702,183 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,058 | hpp | map.hpp | namespace boost { namespace simd { namespace ext { } } } namespace boost { namespace dispatch { namespace meta { template< class Func , class A0 > BOOST_FORCEINLINE :: boost :: simd :: ext :: implement< boost::simd::tag::map_ ( unspecified_<Func> , generic_< unspecified_<A0> > ) , tag::cpu_ > dispatching( boost::simd::... |
855db6642f4a74b002e55725e15b68fd9c3023ad | 66330f7a1ff0b8447b4245474ab4de48727fd1c5 | /libs/algebra/include/nil/crypto3/algebra/fields/detail/element/fp6_2over3.hpp | f3c3088e9b153db8c283c68919983bbdf6ac23ee | [
"MIT"
] | permissive | everscalecodes/knapsack-snark | fd3cc6155125ae6ff0fc56aa979f84ba6a8c49c7 | 633515a13906407338a81b9874d964869ddec624 | refs/heads/main | 2023-07-18T06:05:22.319230 | 2021-08-31T16:10:16 | 2021-08-31T16:10:16 | 447,180,824 | 0 | 1 | MIT | 2022-01-12T10:53:21 | 2022-01-12T10:53:20 | null | UTF-8 | C++ | false | false | 15,672 | hpp | fp6_2over3.hpp | //---------------------------------------------------------------------------//
// Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
bc5a8486a9544cd60a55f5f8c5191108be610289 | 27865fc7f9e647e76e2e761be9bd6cfddd4405d6 | /empyrean/src/base/Win32Memory.h | cbade19d7cc60e5f566342f05c7fa2775d123ee0 | [] | no_license | Ugbot/empyrean | 7503649d093af9902fd5078b2d2bebaf300ac0a4 | 91ed6066b39e826e1dff199a56220d71fd6fc334 | refs/heads/master | 2021-01-20T06:26:17.296305 | 2005-03-02T09:26:02 | 2005-03-02T09:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,689 | h | Win32Memory.h | #ifndef PYR_WIN32_MEMORY_H
#define PYR_WIN32_MEMORY_H
#ifndef WIN32
#error Win32Memory.h requires Win32 API
#endif
#include <windows.h>
namespace pyr {
/**
* Implements a C++ allocator that uses the Win32 heap allocation
* instead of malloc and free. This lets us allocate memory in our
* heap... |
6a35b745808b2a0a1b26e8936b373715e536d646 | b46ab2f75a3fe3c18feb702f461ccb1fddc0c7ed | /autoflip_integrated_calculators/calculators/shot_boundary_visualization_calculator.cc | dd33c6d0d3b70e070d21c1e91b2eb143d3a5bf28 | [
"Apache-2.0"
] | permissive | fantasycz/intern-for-design | b505879e5892eebda2f624bc0ac73d1de865d64f | 899a7bb475bf3a0e9196011a7639b64e213e11fd | refs/heads/master | 2022-12-15T01:47:52.889843 | 2020-09-09T20:25:58 | 2020-09-09T20:25:58 | 276,504,430 | 0 | 0 | Apache-2.0 | 2020-07-01T23:38:28 | 2020-07-01T23:38:28 | null | UTF-8 | C++ | false | false | 5,199 | cc | shot_boundary_visualization_calculator.cc | // Copyright 2019 The MediaPipe 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
9ebb35275b3695e9a44c15a50f7ec00d12974e8d | 8d82b94743562c27b9b60ef4fd89da173f683839 | /1_IntroToC++/025_enum_no_type_safe.cpp | bcd7fe2d7083be2ffd7ffdd3c98891c90eb2ec3e | [] | no_license | ROM-robotics/lecture_cpp | ea8b9cd323813b685fdd240538c268e1d797bff1 | 011d42e79a0d2c5df24349c76c73ea9e0e433a1d | refs/heads/master | 2022-11-16T07:08:29.511423 | 2020-07-08T06:01:00 | 2020-07-08T06:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | 025_enum_no_type_safe.cpp | // always interpreted as integers
// so u can compare enumeration values from completely different types
#include <iostream>
using namespace std;
enum Fruit{apple,strawberry,melon};
enum Vegatable{tomato,cucumber,onion};
void foo(){
if(tomato == apple){
cout<<"tomato and apple are same values"<<endl;
}
}
int main()... |
7b34efa534f4ef6443226971e1bcba49c10cd4b0 | ed743effcd46ee57bf641bc8361620a52674c5a8 | /the_Next_Node_of_BinaryTreeNode.cpp | 2e6bf15935b01aa7c950425ff8b63ceb4a64d202 | [] | no_license | giturtle/Cpp | 8c3a9f2ccd12791984fbabfb8d0caa48d3dac54b | 9556305ec85c3c285688b9aaf7595e8964d83269 | refs/heads/master | 2020-05-02T21:48:47.470744 | 2019-09-07T15:58:46 | 2019-09-07T15:58:46 | 178,232,290 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | the_Next_Node_of_BinaryTreeNode.cpp |
//the Next Node of BinaryTreeNode
//二叉树结点的下一结点
BinaryTreeNode* GetNextNode(BinaryTreeNode* pNode) {
if (pNode == nullptr)
return nullptr;
BinaryTreeNode* pNext = nullptr;
if (pNode->right != nullptr) {
BinaryTreeNode* right = pNode->right;
while (right->left != nullptr)
right = right->left;
pNext = ri... |
aede145a4c731021300823f11be6deb264847210 | 0a9a614314f9bb804b33b011fdcb297929b2c896 | /CTest11.3(ClickEllipseMove)/CTest11.3(ClickEllipseMove)/CTest11.3(ClickEllipseMove)View.h | 8f44caaabecfac40263e6acadfed6710db6fe7f8 | [] | no_license | WSJ-github/MFC | f217d6bb0881c6ec8d0091eb9406823be1da513d | 64d264f183f6f1fda5d4d3f42d4385b8780b40fa | refs/heads/master | 2021-03-26T16:18:26.672169 | 2020-06-08T16:16:26 | 2020-06-08T16:16:26 | 247,721,744 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,229 | h | CTest11.3(ClickEllipseMove)View.h |
// CTest11.3(ClickEllipseMove)View.h : CCTest113ClickEllipseMoveView 类的接口
//
#pragma once
class CCTest113ClickEllipseMoveView : public CView
{
protected: // 仅从序列化创建
CCTest113ClickEllipseMoveView();
DECLARE_DYNCREATE(CCTest113ClickEllipseMoveView)
// 特性
public:
CCTest113ClickEllipseMoveDoc* GetDocument() const;
... |
2a6990bb6306f4ebe948ba43802c876eb4b23213 | 8b5db3bc9f2afe52fce03a843e79454319f3c950 | /hardware/intel/img/hwcomposer/include/PhysicalDevice.h | f271021bb5f15994c3c37f9aa449759efb9ea4e2 | [] | no_license | 10114395/android-5.0.0_r5 | 619a6ea78ebcbb6d2c44a31ed0c3f9d5b64455b2 | d023f08717af9bb61c2a273a040d3986a87422e1 | refs/heads/master | 2021-01-21T19:57:16.122808 | 2015-04-02T04:39:50 | 2015-04-02T04:39:50 | 33,306,407 | 2 | 2 | null | 2020-03-09T00:07:10 | 2015-04-02T11:58:28 | C | UTF-8 | C++ | false | false | 3,311 | h | PhysicalDevice.h | /*
// Copyright (c) 2014 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 law o... |
f28192e259cd70e7873c7bead7ac0123ffc6a435 | 9f48878caa37ac5f2ccf938fc476efa47c89c644 | /src/PointwiseFunctions/GeneralRelativity/InverseSpacetimeMetric.hpp | 88806226e9f4837a4660fcb0369d0fd0bff372fa | [
"MIT"
] | permissive | sxs-collaboration/spectre | 34f7733ab4c75dbca2f432028145fed110c9ef24 | 96f573cf158201f712da2bfb3378edf497a35a0d | refs/heads/develop | 2023-08-19T11:18:18.465609 | 2023-08-19T04:24:25 | 2023-08-19T04:24:25 | 87,570,510 | 149 | 190 | NOASSERTION | 2023-09-14T20:10:35 | 2017-04-07T17:28:20 | C++ | UTF-8 | C++ | false | false | 3,014 | hpp | InverseSpacetimeMetric.hpp | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <utility>
#include "DataStructures/DataBox/Prefixes.hpp"
#include "DataStructures/DataBox/Tag.hpp"
#include "DataStructures/Tensor/EagerMath/DeterminantAndInverse.hpp"
#i... |
a2c75b6031129c5b85d6ca670fff744e93a3b7cb | 4f98acd943807cfa593c61b4332548fd3cd6fb72 | /CodeJam/2017R1C/Prob_B_ParentingPartnering.cpp | 7f084b4ec522f4f9a2405f88cb08f35895efddcd | [] | no_license | mrkimkim/Competitive-Programming-Summary | 9086986782bef615db2002a3be3f3d8317c80345 | fa75693818c8ec65f623d98b11c1fe0123bc7200 | refs/heads/master | 2021-01-20T05:25:10.793615 | 2017-11-12T10:33:14 | 2017-11-12T10:33:14 | 89,775,003 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,864 | cpp | Prob_B_ParentingPartnering.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <queue>
#include <algorithm>
#include <functional>
#include <cmath>
#define M_PI 3.14159265358979323846
#define ll long long
#define pii pair <int, int>
#define pll pair <long, long>
#define pil pair <int, long>
#define pli pair <long, int>
#define pdd p... |
c9663123ab834970ca79574262b37986b8f6febe | 98b1e51f55fe389379b0db00365402359309186a | /midterm/cavity_new/cavity/0.38/p | 489a5a214207984c40be285bddc624655f5d78f8 | [] | no_license | taddyb/597-009 | f14c0e75a03ae2fd741905c4c0bc92440d10adda | 5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927 | refs/heads/main | 2023-01-23T08:14:47.028429 | 2020-12-03T13:24:27 | 2020-12-03T13:24:27 | 311,713,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,222 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
0b07dd9e284f0cca4df79c6aa715ee23dd250dec | f7d94f943bd73b57e220080290d44dff2b7a077d | /Banco.h | fce365b29e06fc1763543f4f04f17c049c5c7491 | [] | no_license | vitoraaa/tp-1 | fe49c4bfe58b146be24362376d31101606f0a0b6 | b5fa9f0992441f1a9838d75386ab04d957da24a5 | refs/heads/master | 2020-07-23T19:14:50.015055 | 2019-09-10T23:21:40 | 2019-09-10T23:21:40 | 207,679,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 60 | h | Banco.h | #pragma once
class Banco
{
public:
Banco();
~Banco();
};
|
b5f2635825dea3eb716d34a497b1d792c84de7fa | 0efaffd684a5e668710f6b54f7ce82110befb1f4 | /interrupts/interrupts.ino | 04a537f1da4b838174001553d37379bc08123227 | [] | no_license | alinasomcutean/DMP-Labs | 6428ada5ec93ab61a1921c04ca214a63f13c006d | 816a636dd5740d8f79bfcd60c21e96e12be669d2 | refs/heads/master | 2022-11-21T16:18:51.871026 | 2020-07-22T18:52:21 | 2020-07-22T18:52:21 | 281,758,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,130 | ino | interrupts.ino | // Include the header for the avr interrupt system
#include "avr/interrupt.h"
// Include the LCD library
#include <LiquidCrystal.h>
// Init the LCD
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
volatile int buttonVariable; //public variable that can be modified by the ISR
void setup(void)
{
buttonVariable = 0... |
77532aa21d46fc07cdc002d6829573297162dd76 | 819cd54e5628a2abc62a7580e171fbb9b2d23e91 | /DX_SPProject/number.cpp | f706453cb44e10582c6ba5e4c1e4a3db4d75dc09 | [] | no_license | ikedatatsuya0802/ikeda | 93541950786b943ed8e261f30c0b7693adea617d | 182613e0c7c72604e48638c9d167b533c979f27d | refs/heads/master | 2020-03-28T09:33:16.297294 | 2017-06-02T05:28:58 | 2017-06-02T05:28:58 | 73,037,579 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 6,438 | cpp | number.cpp | //=============================================================================
//
// タイトル シーンファイル(2DDX)
// ファイル名 number.cpp
// 作成者 AT13A284_07 池田達哉
// 作成日 2016/04/20
//
//=============================================================================
//==================================================================... |
b787b3100ce60f79e8c6d74eaa4d279615ec7eb1 | 004d22a5bc7cb95d14c3a62fcf40636750b81955 | /Classes/JhTopBar.h | 5c73f0c1e95c6089a9ea768a1a08671fff86b82e | [] | no_license | AndyZhou3087/JH-HJ | a065178033ff2e2071c49ce1e9092c35d00d3403 | 27649957fa779f0f33f3dfefbc2b3bd3080fe0aa | refs/heads/master | 2021-04-05T23:55:07.856431 | 2018-07-31T03:39:50 | 2018-07-31T03:39:50 | 125,144,875 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,832 | h | JhTopBar.h | #ifndef _TOPBAR_H_
#define _TOPBAR_H_
#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"
#include "JhUIScroll.h"
#include "JhNature.h"
USING_NS_CC;
class JhTopBar:public Node
{
public:
JhTopBar();
~JhTopBar();
virtual bool init();
CREATE_FUNC(JhTopBar);
void sh... |
813911692c86f84da32608c2edabc044b739cfd1 | f84b1b3655fd51d4bbe1f7f075370851371b0e12 | /test/standalone.cpp | d763cdb0b0c13a3ad210b6591be64854a4d5fb67 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zzlljj/iface | 28138727daa34a661981a9cf129dd9e121f45051 | 2a1134d7e6b518a8e2a35950b93524369865ff31 | refs/heads/master | 2023-02-14T05:31:31.686859 | 2021-01-07T20:16:46 | 2021-01-07T20:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | standalone.cpp | //
// Tests for syntax errors, missing headers, etc.
//
#include "iface.h"
int main()
{
struct S {
void f() const {}
};
IFACE((f, void() const)) lifted{S{}};
} |
37f413336b8f8a515eef2de3a16d913fa72b3c48 | a1fcc43917e58fec79aaa5b0b9e4acc7b120ed6b | /include/core/boot.h | d1ca58c9ba26d17b4a7cd3f5b0823cb0f47fd457 | [] | no_license | FrozenSource/Cardinal | 297cc4e426bd0a62f1a17abac0f8943805d80fc2 | 3d2a8bb3a745097c025387d8bc7a39f77dea2223 | refs/heads/master | 2023-01-23T08:12:55.856850 | 2020-11-20T21:55:32 | 2020-11-20T21:55:32 | 314,685,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | h | boot.h | #pragma once
#include <core/module.h>
#include <std/types.h>
#include <std/memory.h>
#include <std/string.h>
#include <std/convert.h>
enum eMemoryType : uint32_t {
AVAILABLE = 1,
RESERVED = 2
};
struct tDevice {
uint32_t uiDeviceId;
uint32_t uiSlice;
uint32_t uiPart;
};
struct tMe... |
11369c4d80234124f0be06f14ad36839f24c55ba | f76c3860ec120eab1018ce1eb69d22e16865074d | /package/demo_package.cpp | 2451e735fb7ba8a7d12271927c38a4f06d9c9f17 | [] | no_license | mambaru/wfc_demo | cc481c0156179d42e9132fe851212f27d57a4405 | d16a288159ccc801308633b4d1a6400d68183346 | refs/heads/master | 2023-08-17T11:08:21.091703 | 2023-08-04T08:54:52 | 2023-08-04T08:54:52 | 161,487,583 | 0 | 0 | null | 2020-06-18T22:19:34 | 2018-12-12T12:49:45 | C++ | UTF-8 | C++ | false | false | 607 | cpp | demo_package.cpp | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015, 2022
//
// Copyright: See COPYING file that comes with this distribution
//
#include "demo_build_info.h"
#include "demo_package.hpp"
#include "demo/demo_module.hpp"
#include "hash/hash_module.hpp"
#include "pingpong/pingpong_module.hpp"
#include <wf... |
74b0cfa644d594725d387b016a0aa5e8fad81a31 | 1b77d51dcd3d203c19c9d9cdb56203daf972cd95 | /contro/calloc.cpp | 2e6dd4e3184d3bcd506cde32deaaebc35945438e | [] | no_license | VuXuanTuong/-ghinho | 20ff7fb57ee52f190d53374b7f0fa141c2c9f836 | 23c290619aba5a8dca06f61c2ca28428d4483935 | refs/heads/master | 2021-06-21T22:54:57.154055 | 2017-08-17T19:45:23 | 2017-08-17T19:45:23 | 100,602,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | calloc.cpp | #include <stdio.h>
#include <stdlib.h>
int main()
{
float *calloc1, *calloc2;
int i;
calloc1=(float*) calloc(3,sizeof(float));// dau "," khac vs * trong malloc nghia la o day n cu nhat mot th clear xong den th tip , nghia la lay ra n o nho roi lam cho n0 ==0 r ms thao tac
calloc2=(float*) calloc(3,sizeof(f... |
30c5b4b7d7cd2423cd5d2beabaff7a1c2cd62d86 | efc5d5e76f8402b4eb5b5c84f19e274d140bf529 | /justZUMO/ZumoShield/examples/BorderDetect/BorderDetect.ino | b93c42b4655b07e66e60ed1e01a0df6db9dd787f | [
"MIT"
] | permissive | kontikiki/pixy2_myRepo | 1b326c5a08c26c0a097910f688e958c4587462ac | b011c4af79c68f449faeaa93cdac25b59f484360 | refs/heads/master | 2021-03-25T19:07:47.405045 | 2020-03-16T08:20:46 | 2020-03-16T08:20:46 | 247,639,950 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,163 | ino | BorderDetect.ino | #include <Wire.h>
#include <ZumoShield.h>
#define LED 13
// this might need to be tuned for different lighting conditions, surfaces, etc.
#define QTR_THRESHOLD 1500 // microseconds
// these might need to be tuned for different motor types
#define REVERSE_SPEED 200 // 0 is stopped, 400 is full speed
#define TURN... |
53745d0010bdf5f8788e7301cf9194be9fcb3aaa | 3a75a5e961a63442194ad63c0d07654be2f3de99 | /geneSequencer.cpp | 3786b71a4454cb9448964ffafe8ef1a826b3a042 | [] | no_license | kcochran9/Programming-Assignment-5 | 7424904e6cef348253e57aac1b192b5be8ef9cd8 | c9646e8edfcfab4c5a35a3a48877501ac9b389c8 | refs/heads/master | 2020-04-07T00:14:43.226731 | 2018-11-29T13:23:14 | 2018-11-29T13:23:14 | 157,895,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | geneSequencer.cpp |
#include "geneSequencer.h"
PowerOnSelfTest(){
allele a;
a.testAlleleA;
allele b;
b.testAlleleB;
gene g;
g.testGene;
chromosome c;
c.testChromosome;
} |
d6e03b891177b4e9c549b30c2a09202acbc61190 | 29bf5dd33123e25024607d87f6b3904cff71f0ab | /CFGame.cpp | 5af4f83a3a6d92d6f8ed53120d411cdfd7a10adb | [] | no_license | DaphneDD/connect_four | e87b7bf12295f871fb30d1c526bc3485c86e2e50 | 5e4b72efb26031ba238be476d8c85bc5692a8f8c | refs/heads/master | 2020-04-28T02:29:13.061141 | 2019-10-30T23:01:39 | 2019-10-30T23:01:39 | 174,900,002 | 0 | 0 | null | 2019-10-30T23:01:40 | 2019-03-11T00:47:38 | C++ | UTF-8 | C++ | false | false | 1,488 | cpp | CFGame.cpp | #include "CFGame.hpp"
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
CFGame::CFGame(Player* p1ptr, Player* p2ptr)
:board()
{
player1 = p1ptr;
player2 = p2ptr;
}
int CFGame::_getColNumber()
{
int colNo;
cout << "Please enter a column number (1 - 7):\t";
cin >> colNo;
while (colNo < 1 || c... |
a269619303ee87f90bc0cb53876d5582f74b7572 | 4cd59cb891155ae2b4ddfe26f29ae6eb09a19ece | /sobeautifulyouare/source/module/strategy/sprint/sprint.h | c149747da5b1e2240249a4697e31a13ea0b3cc56 | [] | no_license | Ayle3125/darwin-op2 | 3656b7e4c7c6739b8f429b4a1b6c76a1d3148428 | fb0dc81efebd3d094776ae5883c14c333fa7bf21 | refs/heads/master | 2021-03-24T10:18:34.621057 | 2016-07-24T04:33:21 | 2016-07-24T04:33:21 | 88,521,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | h | sprint.h | #ifndef _SPRINT_H_
#define _SPRINT_H_
#include <strategy.h>
#define IMG_WIDTH 320
#define IMG_HEIGHT 240
class Sprint:public Strategist
{
public:
Sprint();
~Sprint();
private:
BallTracker *tracker;
BallFollower *follower;
Motion *motion;
//compass *compasspro;
//findline *findline;
bool m... |
10b03ab32dd88dfdc94a93a05e5a4ca42d68d80d | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /mail/bincimap/files/patch-src_greeting.cc | b792f4ba09d4a0820e3a2ce448d41d1bfd47d5ea | [
"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 | 617 | cc | patch-src_greeting.cc | greeting.cc:72:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
version = "v"VERSION" ";
^
1 error generated.
--- src/greeting.cc.orig 2018-08-04 05:50:47 UTC
+++ src/greeting.cc
@@ -69,7 +69,7 @@ void Binc::showGreeting... |
0a7ae7a4b0351bc28f1f4ea58d37af95472d16ec | 1e844386f4a003c09c4ebf1c4ffa8231ba89cb18 | /sfont.h | 13917fe70cd7ff8e24c3d39bb1bf9b91e886d7c4 | [] | no_license | davy7125/sftools | 7dcd33998445b7515795bd8f035ac95fb0dfb2c1 | 2e89c14baf849de5c36c9d842f7365ed8ad0261a | refs/heads/master | 2021-07-03T01:14:44.763522 | 2020-08-30T15:28:13 | 2020-08-30T15:28:13 | 291,443,122 | 1 | 1 | null | 2020-08-30T09:52:32 | 2020-08-30T09:52:32 | null | UTF-8 | C++ | false | false | 7,328 | h | sfont.h | //=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id:$
//
// Copyright (C) 2010 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ve... |
9d64672c7a70eabaf57059be99f691894e495a16 | f425e6e98a37d088820ea330c61e9e535a8ca6cb | /pow4.cpp | 8bcf5006f5ec7bbb1d25183a8db55473426fde4d | [] | no_license | AshwinRagu/training-camp-in-c | 69ca5f4a92c6108c854a9583afe36cf604761356 | fc1b7a6051d5e63e281d527846b40c820e1ad379 | refs/heads/master | 2020-04-09T16:55:51.379554 | 2018-12-10T01:54:08 | 2018-12-10T01:54:08 | 160,466,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | pow4.cpp | #include<stdio.h>
#include<math.h>
int main()
{
int n,a=0,x;
printf("INPUT : ");
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
x=pow(i,4);
a=a+x;
}
printf("output : %d",a);
}
|
9cd3b1e52d5c2e046a1bb742e1e5967c4d056c53 | 2c62295c3131e0f458a7dc3eb6babc58e836b4e3 | /src/core/array.cc | 88a6c3d3abb7c6befdee5f4268f5d50a3bf2898f | [] | no_license | a-schaefers/clasp | 8f66102d449dd029965baf4f06b5af706d320295 | f0cb8960867be6ed58a82066abb0da2df9da72b3 | refs/heads/master | 2020-12-23T18:49:23.676733 | 2019-09-29T03:01:45 | 2019-09-29T03:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129,872 | cc | array.cc | /*
File: array.cc
*/
/*
Copyright (c) 2014, Christian E. Schafmeister
CLASP is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
Se... |
1a993d7870521b30560272948376e9189e01c251 | f2a7ccf0c802990adb27d93daba4823c38e17763 | /utilities/GA_Typedefs.h | 73d3456a2067cd50861a3d441563b559867eb942 | [] | no_license | zubia456/geneticalgorithm | 4532f5437d9f48a7b28aade33d46c6f979f88394 | bb0d1181fefa7630b261a961a4b6009d43fabaf3 | refs/heads/master | 2021-01-10T01:51:32.320674 | 2015-12-02T01:48:16 | 2015-12-02T01:48:16 | 48,709,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | GA_Typedefs.h | /**
* @file GA_Typedefs.h
* @author zshahid
*
*/
#include <vector>
/// The typedef for a chromosome
typedef std::vector<bool> Chromosome;
/// The typedef for a population
typedef std::vector<Chromosome> POPULATION;
|
c14a2c6222bbbc630bb02980669a5ea6e9873b6e | b0075e2d7115361860b48c11005d59bdabea8a10 | /hmailserver/source/Server/Common/Tracking/ChangeNotification.cpp | 46b735f1bba8b4917fad872a819e45da8e7a7a3d | [] | no_license | hmailserver/hmailserver | 73f7d61912db856c3f610e3b829fd7a5135b6bc6 | 12ff3d6ab48b9c6181433f1c0b01ba8c8941abd4 | refs/heads/master | 2023-08-06T11:03:44.558427 | 2023-07-27T13:10:52 | 2023-07-27T13:10:52 | 18,572,902 | 822 | 332 | null | 2023-07-24T14:29:28 | 2014-04-08T19:57:15 | C++ | UTF-8 | C++ | false | false | 1,612 | cpp | ChangeNotification.cpp | // Copyright (c) 2010 Martin Knafve / hMailServer.com.
// http://www.hmailserver.com
#include "stdafx.h"
#include "ChangeNotification.h"
#ifdef _DEBUG
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
namespace HM
{
ChangeNotification::ChangeNotification(NotificationType typ... |
a8c237dc49bf03f26991e74219dade79fa1ab535 | bdd6a162ec0446a1fd63d4fa9b67c0535b8a118d | /Common/Tree.hpp | 69735540e0a09e5bfeedb6802d930668c927c112 | [] | no_license | IllogicalMagic/template_compiler | 7edd05e6ce3c4fce2351de0c67cf3456cce04d63 | f5d7ac4187c00479ac76f749b1cfc360a047fd3d | refs/heads/master | 2021-09-10T18:04:28.117160 | 2018-03-30T16:21:27 | 2018-03-30T16:21:27 | 106,079,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,138 | hpp | Tree.hpp | #ifndef TEMPLATE_TREE_INCLUDED_HPP
#define TEMPLATE_TREE_INCLUDED_HPP
#include "Common/List.hpp"
template<typename V, typename C>
struct Tree {
using Value = V;
// List of childs
using Childs = C;
};
template<typename V>
using TreeLeaf = Tree<V, Nil>;
template<template<typename, typename> typename F, typename... |
846a7d8bb660c8ad1738dfe52f3c310d4e4eb6e7 | e9304497b6da3b72654f87a66f1e632ded5c7732 | /Logger.h | cf61cf96208b190a8057956f9268f3c3eae93a69 | [] | no_license | k024zz/IndexSimulation | 3ef2c603c14431d255bbfca56ebbc0639b4b114d | 1ba76804aeede7dd7a85482daf51aacde008179c | refs/heads/master | 2021-01-10T09:34:19.116184 | 2015-12-11T00:40:41 | 2015-12-11T00:40:41 | 47,649,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | Logger.h | #pragma once
#include <iostream>
#include <fstream>
using namespace std;
// singleton patterm for Logger
#define LOGFILE "log.txt"
class Logger {
private:
Logger() {}
static Logger* instance;
FILE* file;
public:
static Logger* getInstance();
void print(string text);
void println(string text);
~Logger();
};
|
1a06c65ab4c08a7f75e420d6eda4d331d4e29a73 | a65005be4b28ec1bd79f042c5f68886afe87d3ad | /src/plugins/render/datatypes/uniforms.inl | 1127746cf052aa5327a87a4e5edb96c0d8ac845a | [
"MIT"
] | permissive | jonike/possumwood | 00a3ea5db91b3dc3e32a4ec8f0d2c89db48869f7 | 039054680a12eaa33b44cc1b0f345608e78a9bb7 | refs/heads/master | 2021-08-16T05:12:17.080470 | 2017-11-01T23:10:32 | 2017-11-01T23:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | inl | uniforms.inl | #pragma once
#include "uniforms.h"
#include <cassert>
#include "glsl_traits.h"
namespace possumwood {
template<typename T>
void Uniforms::addUniform(const std::string& name, const UpdateType& updateType,
std::function<T()> updateFunctor) {
UniformHolder uniform;
uniform.name = name;
u... |
fa98c214c3f59b00bb9c4d212522b9f8ce9a5faa | 30ab0bb4a3aa4206907f9706f7596347f1bb184e | /tarea24/tarea24_2.cpp | 6b0e79ce0adb6c4060199af8528539f7301130f0 | [] | no_license | Erick2G/Computadoras-y-Programacion-2018 | 00af453e5c743704e962e86ae6738f6c60ebbd4d | 8fd713dff43b4bcfc0e83af356b51d0de98bcd01 | refs/heads/master | 2021-07-05T20:35:06.777640 | 2020-04-30T04:24:44 | 2020-04-30T04:24:44 | 102,692,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | tarea24_2.cpp | #include<stdio.h>
int main(int argc, char *argv[]){
FILE *ptrArchivo;
int datoLeido;
ptrArchivo=fopen("datos.dat","rb");
if(ptrArchivo==NULL){
printf("Error al abrid el archivo\n");
}else{
while(!feof(ptrArchivo)){
fscanf(ptrArchivo,"%d",&datoLeido);
printf("Dato: %d\n", datoLeido);
}
fc... |
3a0f7b339eff8e51def95b9086cd0d3ef314734d | 72ca3c783d4946c361c7adc1ee0e728a46337d5b | /configs/PistolCloud.cpp | 65a92be8c80e8cc21d97d42b29d3796c7780852c | [] | no_license | pennyworth12345/ContactConfigCompare | bedad3c99a097509aa2fe676a07f6e3850b62aec | e871366e36c80ad339aaab512b87b69bfe323040 | refs/heads/master | 2020-07-03T17:49:12.394661 | 2019-08-12T19:15:33 | 2019-08-12T19:15:33 | 201,992,619 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | PistolCloud.cpp | class PistolCloud
{
class RifleAssaultCloud1
{
intensity = 1;
interval = 1;
lifeTime = 0.05;
position[] = {0, 0, 0};
simulation = "particles";
type = "RifleAssaultCloud1";
};
class RifleAssaultDust1
{
enabled = "(humidity interpolate [0.2,0.20001,1,0]) * (distToSurface interpolate [1.0,1.01,1,0])";
... |
f1b252e7d317680b69020f4c13d7e317d74855d4 | 28e68ea2330110071d2b89c1a899e09d0ff118cd | /Microsoft180/offer100issues/issueNo4_smallestK.h | 8ead6f67390669234dd99593381ec1aa6b7d19b2 | [] | no_license | lstjsuperman/pursuitOfHappiness | a7a98c4c9b79455e1f709ed88958839a4a0a8db7 | 52f82c94e6a5182e4de485a38561fb9ea44a1aa8 | refs/heads/master | 2021-01-01T16:39:21.043306 | 2014-05-12T07:35:52 | 2014-05-12T07:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | h | issueNo4_smallestK.h | #ifndef __ISSUE_NO4__
#define __ISSUE_NO4__
#include <set>
#include <iostream>
using std::cout;
using std::endl;
typedef multiset<int, greater<int> > IntMaxHeap;
void getSmallestK(const vector<int>& a, IntMaxHeap& ret, unsigned k) {
if (a.size() < 0 || k == 0) {
return;
}
for (vector<int>::const_... |
734dcf33f9d1ec9291e40fd00296bba7383a4c10 | 7db45c07515791f0e7a0631d1d57df8bb8281707 | /i4/gui/scroll_bar.cc | f229f4ab9061a5f7b1ebfba6223c24396db332a7 | [] | no_license | TheStormkeeper/golgotha | ec53befc4c793f3a0d293febff222dfccefcc68f | b61bf92ec6af3c4df8b399bce35c829b8e027a95 | refs/heads/master | 2021-01-12T15:26:18.713429 | 2015-11-06T18:00:53 | 2015-11-06T18:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,429 | cc | scroll_bar.cc | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, con... |
e0f1cdbb0c466002df06ef945d6674263f023e8b | c6e79a477188283faf85546c26bc7f8e2f95fd5b | /Folha 1 PAC/05Garcom10.cpp | a2b1fda8d1159a526b124634cdf8c02a84a47ca2 | [] | no_license | gbsantana/C | 88bd41c72631202d1a34ce53db5dca8befbca9ce | 67929b97c38964501c2ab2b895c5b31ead0fa627 | refs/heads/main | 2023-07-17T15:36:57.011714 | 2021-09-04T02:29:04 | 2021-09-04T02:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | 05Garcom10.cpp | /*Faça um programa, utilizando a função abaixo,para calcular e exibir o valor total a ser pago por um cliente
de um restaurante, considerando os 10% do garçom. O usuário deverá fornecer o valor do gasto do cliente.
Faça a função valor_garcom: recebe como parâmetro o valor do gasto do cliente, calcula e retorna o valor... |
ba9b889388f95346f58a5c1c2efd1c3d81745f49 | 62d44a389230d34a44be2f7dd33e32b6d8b617bd | /CUACS/animal.h | 63d76f95cecb0080858bf7a861ece6bc5d11324b | [] | no_license | Xahannist/3004cuACS | 94c231b5b19ad681e2e0dc8f33b0ff0a1ff1c859 | 2f9461bf85b76d5c77a117163dbe2eb112fe0d7d | refs/heads/master | 2020-09-01T07:31:33.777120 | 2019-08-02T18:00:24 | 2019-08-02T18:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,392 | h | animal.h | #ifndef ANIMAL_H
#define ANIMAL_H
#include<QString>
using namespace std;
class Animal
{
public:
//This is the basic constructor that is to be used when creating a new animal
//This constructor does not contain any of the algorithm matching attributes
//Animal(QString, int, int, QString, bool, QString, QStr... |
1ebbb879f9d3d286c3a6f88434c8e49deceb7e05 | 5744e6f936ace66df924ac0e304baf0eef71f657 | /src/maudio/Sample.cpp | 7adb6cb8e90b3d442c1045ccdd9995681f121358 | [] | no_license | minsulander/moon | c8cbff86c6f04f1d1fa2b19f76b871cdad08379b | 2bc7531969f6268ae607c84bf2454e0c0d6705a5 | refs/heads/master | 2021-01-10T06:43:09.026487 | 2013-03-02T16:05:23 | 2013-03-02T16:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,113 | cpp | Sample.cpp | #include "Sample.h"
#include <mlog/Log.h>
#include <osgDB/FileUtils>
#include <vorbis/vorbisfile.h>
#include <sndfile.h>
#include <string.h>
// ssize_t is missing on windows... needed by mpg123
#ifdef WIN32
#define ssize_t long
#endif
#include <mpg123.h>
#include <sstream>
using namespace mlog;
namespace maudio {
... |
3382ef7e87c66260c13089701d9402e6f33946d2 | 623b789ed23fd222bb2ac672ecba4d52506c61ea | /DP/poj_3666_good_question/solution.cpp | 9235809af076aaf800cac2971ddcb5d8fa964905 | [] | no_license | AndrewShf/AlgorithmProblems | 1665bd57970b82b5e5dec2bdad8b26332289be40 | c5d954d7d56ed57232e41f07846fa6aa349a828b | refs/heads/master | 2022-05-30T07:03:22.865171 | 2020-04-24T09:36:02 | 2020-04-24T09:36:02 | 158,952,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | solution.cpp | #include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <stack>
#define ll long long
#define local
using namespace std;
const int MOD = 1e9 + 7;
const int inf = 0x3f3f3f3f;
const double PI = acos(-1.0);
co... |
94650ed0fa5e5f451e17379fde8e7d3b2bf865bd | 3d658a30742b6e54f80682dab0c0215d9e2895f4 | /src-server/lib/cpp/d2ai_agent.cpp | 37a56af0e5c6760774b840cd9e148bb7a337741b | [
"MIT"
] | permissive | 2aius/d2ai | ae3b1b6926f5245faf833f8310a91dae66e27a1d | 24fd6dd51a75607c424a2a581e127d026564f04b | refs/heads/master | 2020-04-11T01:16:07.502412 | 2018-12-13T17:42:26 | 2018-12-13T17:42:26 | 161,410,395 | 17 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | d2ai_agent.cpp | #include "d2ai_agent.h"
namespace d2ai {
Agent::Agent(const std::string& name)
: name(name),
gameInfo(GameInfo::NOT_DECODED) {
}
std::string Agent::select(const CaptainInfo& cap) {
// return first available hero
for (auto const& h : cap.getHeroes())
if (!h.isBanned() && !h.isPicked()) retur... |
21ac0c1b60b552635a840170ebf1c82329cf178d | fae7789cf55bb08a0e67a8c2ae9f081db4c01500 | /misc/weboswebpage.cpp | 6484c09a5e1384d8c769dc1f4b0957038ff07a62 | [
"Apache-2.0"
] | permissive | dudochkin-victor/WebKitSupplemental | c772196465a86d74e90274ba59d6de179f07d466 | 0dddbdbc97ebb1c7ad81ef508e03f92cb2ec1019 | refs/heads/master | 2021-01-16T19:44:05.670624 | 2013-05-21T00:14:06 | 2013-05-21T00:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,481 | cpp | weboswebpage.cpp | /* @@@LICENSE
*
* Copyright (c) 2012 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
1c604edd39a18d6c33a0acf131e5fd23b732d9fd | 205a8492aa7c5d8f03a06483ca721e730b3911e7 | /Engine/WeakPointer.h | 3124f8a9b1fde2756a83a1d120d686b72af0111b | [] | no_license | HitheshwarMittapelly/GameEngine | a14ceff683a4c137977731aea31c313a713e4305 | f660de3e32e4668acf254a2c9d31acf41e605f9f | refs/heads/master | 2021-03-29T00:23:58.013411 | 2020-03-17T07:49:02 | 2020-03-17T07:49:02 | 247,908,138 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,228 | h | WeakPointer.h | #pragma once
#include "SmartPointer.h"
template <class T>
class WeakPointer
{
template <class U>
friend class SmartPointer;
template <class U>
friend class WeakPointer;
public:
WeakPointer() : m_refCount(nullptr), m_ObjectPtr(nullptr)
{ }
WeakPointer(const SmartPointer<T> & i_Other)
{
m_ObjectPtr = ... |
d4d11523c29b1d5842a3453d6b1dad4fb75d38fe | a7c1bf95c7760585b687e4827f76d6ebcb2e0191 | /library/graph.hpp | 5d0c5935ee57c13065c513e52d8da6dc786df433 | [] | no_license | yakamoto69/jhelper | 7da0589b1bbc4f125d4286d076a144547c469943 | a272e298ed1db45a425713b8aab4d86ca843adc0 | refs/heads/master | 2021-07-07T03:52:00.664192 | 2020-12-24T08:50:28 | 2020-12-24T08:50:28 | 218,291,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,285 | hpp | graph.hpp | #include "common.hpp"
V<Vi> buildUGraph(int N, Vi &from, Vi &to) {
V<Vi> g(N);
for (int i = 0; i < from.size(); ++i) {
g[from[i]].pb(to[i]);
g[to[i]].pb(from[i]);
}
return g;
}
/**
* 隣接行列使うようになっているので、隣接リストバージョンが欲しい
*/
bool topological_sort(const V<Vi> &g, Vi &res) {
Vi deg(g.size(), 0);
for (aut... |
ff5092ce65fc1436a1400061246441b696e74334 | aa5e26d5d642ee6239863290acbd81a729ee39f3 | /Dock.h | 46111bd07f728750f5563e814475415817574335 | [] | no_license | michalrus/poo-organizer | 2180510b1b6407203dcd6ac4fff76df4ca8e9732 | 0ffb9e3071f8c4b94c3c2e7df2daa83eb190bc69 | refs/heads/master | 2021-01-10T06:37:41.374504 | 2008-06-09T20:07:06 | 2008-06-09T20:07:06 | 46,613,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | h | Dock.h | #ifndef DOCK_H
# define DOCK_H
# include <QWidget>
class QTextEdit;
class QHBoxLayout;
class QTimer;
class Dock : public QWidget
{
Q_OBJECT
public:
Dock (QWidget *parent = 0);
protected:
virtual void changeText () = 0;
void setText (const QString &text);
static QString htmlize (QString s);
private slots... |
4175f06d9e28718f60d7c521d0fb2043b57da22f | 3d1acc0d88ddbe58f68e583886134158992b293e | /Arrays/peak_element.cpp | 26b3a1500a2832af999f66506a8c3cfdf7828224 | [] | no_license | SIDDHANTSEHGAL1198/Data-Structures-and-Algorithms | f39fc01424d4c4bcc293936e89ac0b7e91dc515f | 7e154b9a3d99f3aae184fa65f06f032cd051f4a8 | refs/heads/master | 2023-07-15T00:34:02.824517 | 2021-08-04T06:27:23 | 2021-08-04T06:27:23 | 249,383,537 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | peak_element.cpp | #include <iostream>
using namespace std;
int peakElement(int arr[],int low,int high,int n)
{
int mid=low+(high-low)/2;
if((mid==0 || arr[mid-1]<=arr[mid]) && (mid==n-1 || arr[mid]>=arr[mid+1]))
{
return arr[mid];
}
else if((arr[mid-1]>arr[mid] && mid>0))
{
return peakElement(a... |
e2080c8cd97d08be56bf072ce2a5bdfe79948755 | e2de85f83de242fc5b066a81eb55205c750ebc29 | /omaha/goopdate/app_command_completion_observer.h | 96fc64614412b4c0d3569df6a1ee54d1b0b4732a | [
"Apache-2.0"
] | permissive | google/omaha | 1a1c7f985388c0acedb05e9cee4e208de900f41c | 8fa5322c5c35d0cede28f4c32454cb0285490b6d | refs/heads/main | 2023-08-30T21:01:52.783638 | 2023-05-31T23:48:27 | 2023-05-31T23:48:27 | 38,279,227 | 2,705 | 805 | Apache-2.0 | 2023-09-07T17:36:59 | 2015-06-30T00:49:42 | C++ | UTF-8 | C++ | false | false | 4,344 | h | app_command_completion_observer.h | // Copyright 2013 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
186dded8b3d415874c43ee6ade9caac43ec4df5f | 733537fc26ae67f389866b7f8248fee646f55d40 | /src/nucleotide.h | e247836c332dc83320e735e2fbd978980c6b0afc | [] | no_license | PlumpMath/cenogenetic | e2430b97798012ce0053f785a82e6310c20a20d2 | 71e04091ff39cd91f833f66686ff4259d175e02d | refs/heads/master | 2021-01-18T20:19:22.511520 | 2013-06-29T22:47:55 | 2013-06-29T22:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,442 | h | nucleotide.h | #ifndef CENO_FUNC_H
#define CENO_FUNC_H
#include <functional>
#include <memory>
#include <string>
#include <vector>
#define CENOTYPES(T) \
using func_t = ClosedFunction<T>; \
using func_ptr_t = std::unique_ptr<func_t>; \
using funcs_t = std::vector<func_ptr_t>; \
using term_t = T; \
using terms_t = std::vector<te... |
831c3843eb210a601535ebe074bcd0831aeaf5df | 57040e855ec1d81b8e6ae3d9db8cbecc1bb0a0e2 | /C++/算法/十六进制转八进制.cpp | d80da3560bba5a2c32de6667e38b1ef5779b92eb | [] | no_license | TRLVMMR/algorithm | 32f2a06fef0228c98766bb4a19895eed737d2602 | b11f4096f234efe0473e4adc096a02e0ef1e4fa7 | refs/heads/master | 2020-03-18T17:36:41.174465 | 2018-12-02T13:49:25 | 2018-12-02T13:49:25 | 135,039,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 101 | cpp | 十六进制转八进制.cpp | #include<cstdio>
int main()
{
int num;
scanf("%x", &num);
printf("%o", num);
return 0;
}
|
7079b2e18288a92f5670590b2e72becdc3e1957b | 86bbef537ddfff74a71b3ae365bbacdb030d8097 | /PS/BOJ/C++/8393.cc | 245820f2a17793530fd52eda330745e7802b9fdb | [] | no_license | gun2841/guno | 5262a4cfb4d1d952d96875434a29e78549c8306a | 32cdcdf2cfeccd07d83a9a1a72645bac4c365688 | refs/heads/master | 2022-05-05T03:49:22.164304 | 2022-03-30T03:49:49 | 2022-03-30T03:49:49 | 165,786,624 | 0 | 1 | null | 2020-09-02T21:05:10 | 2019-01-15T04:43:10 | HTML | UTF-8 | C++ | false | false | 106 | cc | 8393.cc | #include <iostream>
using namespace::std;
int main(void)
{
int n;
cin >> n;
cout << (1+n)*n/2;
} |
5007023b05009aa96387052e4305bd6b933ae742 | 9eafaab2609947750b9dc0b22ecf0c6bffbb3c3c | /800/arithmetic_array.cpp | 5944012edf09056a65b2b06d0aed23f7ab292509 | [] | no_license | MohitOhlyan/CodeForcesSolutions | a39be2525584de94a3a6f3d771c0ae41fc1d9107 | 157da770ef92ece4b1509ecae0dcc02f6ed1db72 | refs/heads/main | 2023-08-18T05:56:42.678516 | 2021-10-08T10:47:31 | 2021-10-08T10:47:31 | 371,438,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | arithmetic_array.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> v;
int t,n;
cin>>t;
for(int i = 0;i<t;i++){
cin>>n;
int sum = 0;
for(int j = 0;j<n;j++){
int k;
cin>>k;
sum = sum+k;
v.push_back(k);
}
if(n<sum){
cout<<sum - n<<endl;
}
e... |
4b77f37f0e708c437ab181092812fd969da3a485 | 08966ebb020e5638aed4da32cb6314f84bf4bd9a | /arxiv/version-01/sketches/on_board/slave_augv_motor_ctrl_sketch/slave_augv_motor_ctrl_sketch.ino | cef95fbc4c92992739e4785f90bce1caffe3943a | [] | no_license | yashrahmed/augv-project | 2b4e46e310b69ab6925c3de8d574c2044c118bcd | 3a5b7d899505410d3ddb47245a3c271cd1f2a225 | refs/heads/main | 2023-07-01T12:07:45.604733 | 2023-06-26T03:14:27 | 2023-06-26T03:14:27 | 309,003,108 | 0 | 0 | null | 2021-07-30T05:44:05 | 2020-11-01T01:32:41 | CMake | UTF-8 | C++ | false | false | 2,753 | ino | slave_augv_motor_ctrl_sketch.ino | #include <Wire.h>
#include <AccelStepper.h>
#define IMU_I2C_ADD (0x28)
#define MOTOR_CTRL_I2C_ADD (0x04)
AccelStepper leftStepper = AccelStepper(AccelStepper::FULL4WIRE, 10, 11, 12, 13);
AccelStepper rightStepper = AccelStepper(AccelStepper::FULL4WIRE, 6, 7, 8, 9);
const float left_wheel_scale_factor = 1.0;
const fl... |
832e47e25138067bc84b4bc9f93628f4f10013b0 | ca2832db048a2aae48fe3328de0054641965d466 | /Engine-Noisette/Engine-Noisette/Combo.cpp | db880d6bb8a790dca70ce8b75625c43d3562656e | [] | no_license | Elencrak/EngineNoisette | 966db162e6d43005092903f97c8defe2c5da2169 | ba5e6d9cdce96dc6843b327cdb41d3d5e4d05200 | refs/heads/master | 2021-01-10T17:13:35.166562 | 2016-01-12T20:45:19 | 2016-01-12T20:45:19 | 49,322,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | Combo.cpp | #include "stdafx.h"
#include "Combo.h"
Combo::Combo()
{
}
Combo::~Combo()
{
}
void Combo::Execute()
{
std::list<Action*>::iterator it;
for (it = m_comboAction.begin(); it != m_comboAction.end(); ++it) {
Action* tmp = *it;
tmp->Execute();
}
}
void Combo::Add(Action* p_action)
{
m_comboAction.push_back(p_ac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.